The Basics of BGP (Border Gateway Protocol) Routing and its .ppt
《The Basics of BGP (Border Gateway Protocol) Routing and its .ppt》由会员分享,可在线阅读,更多相关《The Basics of BGP (Border Gateway Protocol) Routing and its .ppt(70页珍藏版)》请在麦多课文档分享上搜索。
1、The Basics of BGP (Border Gateway Protocol) Routing and its Performance in Todays Internet,Presenter: Sophia PokuSlides taken from presentation by Nina Taft,Outline,1. Highlights 2. Addressing and CIDR 3. BGP Messages and Prefix Attributes 4. BGP Decision and Filtering Processes 5. I-BGP 6. Route Re
2、flectors 7. Multihoming 8. Aggregation 9. Routing Instability 10. BGP Table Growth,Routing Protocols,E-BGP,A,AS2,AS (Autonomous System) - a collection of routers under the same technical and administrative domain.EGP (External Gateway Protocol) - used between two ASs to allow them to exchange routin
3、g information so that traffic can be forwarded across AS borders. Example: BGP,Routers used,Internal Router: directly connects networks belonging to the same area It runs a single copy of the basic routing protocol Border/Boundary Router: exchanges routing information with routers belonging to other
4、 AS,Purpose: to share connectivity information,border router,internal router,BGP,A,AS1,AS2,BGP Sessions,Primary function is to exchange network-reachability information (includes AS #s) Uses TCP to establish connection Initially node advertises ALL routes it wants neighbor to know (could be 50K rout
5、es) Ongoing only inform neighbor of changes One router can participate in many BGP sessions.,AS1,AS2,AS3,Configuration and Policy,A BGP node has a notion of which routes to share with its neighbor. It may only advertise a portion of its routing table to a neighbor. A BGP node does not have to accept
6、 every route that it learns from its neighbor. It can selectively accept and reject messages. What to share with neighbors and what to accept from neighbors is determined by the routing policy, that is specified in a routers configuration file.,Addressing Schemes,Original addressing schemes (class-b
7、ased): 32 bits divided into 2 parts: Class A 0xxx or 1-126 in decimal; subnet mask:255.0.0.0 Class B 10xx or 128-192 in decimal Subnet mask:255.255.0.0 Class C 110x or 192-223 in decimal, Subnet Mask:255.255.255.0,2 million nets 256 hosts,CIDR (Classless Inter-Domain Routing),CIDR introduced to solv
8、e 2 problems: exhaustion of IP address space size and growth rate of routing table,Problem #1: Lifetime of Address Space,Example: an organization needs 500 addresses. A single class C address not enough (256 hosts). Instead a class B address is allocated. (64K hosts) Thats overkill -a huge waste. CI
9、DR allows networks to be assigned on arbitrary bit boundaries. permits arbitrary sized masks: 178.24.14.0/23 is valid requires explicit masks to be passed in routing protocols CIDR solution for example above: organization is allocated a single /23 address (equivalent of 2 class Cs).,Problem #2: Rout
10、ing Table Size,Without CIDR:,232.71.0.0 232.71.1.0 232.71.2.0 232.71.255.0,With CIDR:,232.71.0.0/16,CIDR: Classless Inter-Domain Routing,Address format . The prefix denotes the upper P bits of the IP address. E.g. in CIDR address 206.13.01.48/25, the “/25” indicates the first 25 bits are used to ide
11、ntify a unique network, the remaining bits are hosts Idea - use aggregation - provide routing for a large number of customers by advertising one common prefix. This is possible because nature of addressing is hierarchical Summarizing routing information reduces the size of routing tables, but allows
12、 to maintain connectivity. Aggregation is critical to the scalability and survivability of the Internet,Address Arithmetic: Address Blocks,The pair defines an address block: Examples: 128.15.0.0/16 = 128.15.0.0 - 128.15.255.255 188.24.0.0/13 = 188.24.0.0 - 188.31.255.255 consider 2nd octet in binary
13、: Address block sizes a /13 address block has 232-13 addresses(=524288) (/16 has 232-16 =65536) a /13 address block is 8 times as big as a /16 address block because 232-13 = 232-16 * 23,CIDR: longest prefix match,Because prefixes of arbitrary length allowed, overlapping prefixes can exist. Example:
14、router hears 124.39.0.0/16 from one neighbor and 124.39.11.0/24 from another neighbor Router forwards packet according to most specific forwarding information, called longest prefix match Packet with destination 124.39.11.32 will be forwarded using /24 entry. Packet w/destination 124.39.22.45 will b
15、e forwarded using /16 entry,Will CIDR work ?,For CIDR to be successful need: address registries must assign addresses using CIDR strategy providers and subscribers should configure their networks, and allocate addresses to allow for a maximum amount of aggregation BGP must be configured to do aggreg
16、ation as much as possible Factors that complicate achieving aggregation multihoming, proxy aggregation, changing providers,Four Basic Messages,Open: Establishes BGP session (uses TCP port #179) Notification: Report unusual conditions Update: Inform neighbor of new routes that become active Inform ne
17、ighbor of old routes that become inactive Keepalive: Inform neighbor that connection is still viable,BGP Database,1.Neighbor tableList of BGP neighbors2. BGP forwarding tableList of all networks learned from each neighbor 3. IP routing tableList of best path to destination networks,OPEN Message,Duri
18、ng session establishment, two BGP speakers exchange their AS numbers BGP identifiers (usually one of the routers IP addresses) Router ID Holdtime Open messages are confirmed using a keep-alive message sent by a peer and must be confirmed before updates A BGP speaker has option to refuse a session Se
19、lect the value of the hold timer:maximum time to wait to hear something from other end before assuming session is down. authentication information (optional),NOTIFICATION and KEEPALIVE Messages,NOTIFICATION Indicates an error terminates the TCP session gives receiver an indication of why BGP session
20、 terminated Examples: header errors, hold timer expiry, bad peer AS, bad BGP identifier, malformed attribute list, missing required attribute, AS routing loop, etc. KEEPALIVE protocol requires some data to be sent periodically. If no UPDATE to send within the specified time period, then send KEEPALI
21、VE message to assure partner that connection still alive,UPDATE Message,Updates are sent using TCP to ensure delivery used to either advertise and/or withdraw unfeasible prefixes from routing table path attributes: list of attributes that pertain to ALL the prefixes in the Reachability Info field,Wi
22、thdrawn routes length (2 octets),Withdrawn routes (variable length),Total path attributes length (2 octets),Path Attributes (variable length),Reachability Information (variable length),FORMAT:,Advertising a prefix,When a router advertises a prefix to one of its BGP neighbors: information is valid un
23、til first router explicitly advertises that the information is no longer valid BGP does not require routing information to be refreshed if node A advertises a path for a prefix to node B, then node B can be sure node A is using that path itself to reach the destination.,BGP Attributes,Attributes: ro
24、utes learned via BGP have associated properties that are used to determine the best route to a destination when multiple paths exist to a particular destination Local Preference Multi-Exit Discriminator (MED) Origin AS-path Next-hop,Attribute: ORIGIN,ORIGIN: Who originated the announcement? Where wa
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- THEBASICSOFBGPBORDERGATEWAYPROTOCOLROUTINGANDITSPPT

链接地址:http://www.mydoc123.com/p-373230.html