Avatar CS Knowledge Wiki

14 BGP 与真实世界的互联网

Each ISP would have 公式 routers. Companies also put servers within IXPs, (though IXPs at the beginning were there for housing routers)

1.jpg

2.jpg

Each ISP would have ~[公式] routers. Companies also put servers within IXPs, (though IXPs at the beginning were there for housing routers)

BGP: does not use Bellman-Ford or Dijkstra#

Each BGP router advertise routes to their neighbors {a prefix + a list of AS’s to reach that a prefix through this router}

Each BGP router selects one or more paths of AS’s based on its own preference (by local policies chosen by the AS administrator)

Loops can be detected (duplicate AS in the path)

3.jpg

Why path in BGP?#

A router may dislike a certain AS (e.g. security reason, geo-political issue, etc.)

There is a “trust” relationship between an end-host and the border gateway router that host connects to. Therefore,it is hard to detect lies about the AS paths since BGP protocol is based on a mutual trust between two connected border gateway routers, (although there exist algorithms/techniques to verify whether the path being advertised is valid).

4.jpg

BGP details#

BGP neighbors establish a TCP connection, and send a “keep alive” message every 60 seconds

Also called “path vector” algorithm

5.jpg

Commercial Internet: customer-provider relationship#

6.jpg

Customers pay providers for carrying packets, but how should providers charge each other?

7.jpg

Stub AS – transit AS — transit AS — transit AS — stub AS: who pay the center transit AS? There were agreements and settlements between ISPs for dealing these situations (which would make them “peers”), and the center transit AS only carries the traffic if such settlements exist (i.e. if they are “peers”).

8.jpg

But this agreement situation needs to stop at a “top-level”, i.e., “Tier-1” providers. “Tier 1” network are peers with all other “Tier 1” network.

9.jpg

Tier 1 ISP has access to the entire Internet Region. Each Internet Region has its own Tier 1 ISPs, and an ISP only gets promoted to “Tier 1” if it is big enough (carries large enough traffic, which means the ISP has invested a lot in its infrastructure). And Tier 1 ISP does not charge each other (since they are of similar large size).

10.jpg

For non Tier 1 ISPs, if an advertised path goes through a non-peer AS, it would not select the path, but would select the path that goes to “Tier 1”.

11.jpg

12.jpg

13.jpg

Multicast: single-source, multi-destination#

14.jpg

15.jpg

16.jpg

A portion of IP v4 address is reserved for Group ID. Sending packets to such IP v4 address would send the packet to each members of the group.

17.jpg

For broadcasting from a source, the paths form a spanning tree rooted at the source, and therefore by reversing the routing table for the source as the destination, you get the required spanning tree. This is called Reverse Path Broadcasting.

18.jpg

RPB + pruning gives RPF

参考资料#

BGP漫谈 ↗

Knowledge map

知识图谱

当前文档、同目录指南与引用关系。

准备中 全局图谱

正在构建知识图谱...

拖动节点 · 滚动缩放 · 点击打开

帮助与支持

这篇文档有帮助吗?

请给我们反馈以改进文档质量
(点击按钮后会打开邮箱)

帮助改进文档

所有文档均开源,发现问题或不清楚的地方?提交 PR 来帮助改进。

编辑此页面 了解如何贡献 →

需要更多帮助?

加入社区或直接联系获取支持

文件管理器 /
位置 /
内容
Knowledge explorer

知识图谱

全部知识 准备图谱...
文章 文档 标签 分类

正在加载知识网络...

拖动节点 · 滚动缩放 · 单击查看详情 · 双击打开页面
标签云 / Tag Cloud