DOC PREVIEW
CMU CS 15441 - BGP (Border Gateway Protocol)

This preview shows page 1-2-3-4 out of 12 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

115-441 Computer NetworkingInter-Domain RoutingBGP (Border Gateway Protocol)Lecture #13: 02-24-04 2Outline• Routing hierarchy• Internet structure• External BGP (E-BGP)• Internal BGP (I-BGP)Lecture #13: 02-24-04 3Routing Hierarchies• Flat routing doesn’t scale• Storage Æ Each node cannot be expected to store routes to every destination (or destination network)• Convergence times increase• Communication Æ Total message count increases• Key observation• Need less information with increasing distance to destination• Need lower diameters networks• Solution: area hierarchyLecture #13: 02-24-04 4Areas• Divide network into areas• Areas can have nested sub-areas• Hierarchically address nodes in a network• Sequentially number top-level areas• Sub-areas of area are labeled relative to that area• Nodes are numbered relative to the smallest containing area2Lecture #13: 02-24-04 5Routing Hierarchy• Partition Network into “Areas”• Within area• Each node has routes to every other node• Outside area• Each node has routes for other top-level areas only• Inter-area packets are routed to nearest appropriate border router• Constraint: no path between two sub-areas of an area can exit that areaBackbone AreasLower-level AreasArea-BorderRouterLecture #13: 02-24-04 6Area Hierarchy Addressing1231.11.22.12.23.13.22.2.12.2.21.2.11.2.2Lecture #13: 02-24-04 7Path Sub-optimality1231.11.22.12.23.13.22.2.13 hop red pathvs.2 hop green pathstartend3.2.11.2.1• Can result in sub-optimal pathsLecture #13: 02-24-04 8Outline• Routing hierarchy• Internet structure• External BGP (E-BGP)• Internal BGP (I-BGP)3Lecture #13: 02-24-04 9A Logical View of the Internet?RRRR R• After looking a RIP/OSPF descriptions• End-hosts connected to routers• Routers exchange messages to determine connectivity• NOT TRUE!Lecture #13: 02-24-04 10Internet’s Area Hierarchy• What is an Autonomous System (AS)?• A set of routers under a single technical administration, using an interior gateway protocol (IGP) and common metrics to route packets within the AS and using an exterior gateway protocol (EGP) to route packets to other AS’s• Sometimes AS’s use multiple IGPs and metrics, but appear as single AS’s to other AS’s• Each AS assigned unique ID• AS’s peer at network exchangesLecture #13: 02-24-04 11AS Numbers (ASNs)ASNs are 16 bit values 64512 through 65535 are “private”• Genuity: 1 • MIT: 3• JANET: 786• UC San Diego: 7377• AT&T: 7018, 6341, 5074, …• UUNET: 701, 702, 284, 12199, …• Sprint: 1239, 1240, 6211, 6242, …•…ASNs represent units of routing policyCurrently over 15,000 in useLecture #13: 02-24-04 12Example1231.11.22.12.23.13.22.2.144.14.255.15.2EGPIGPEGPEGPIGPIGPIGPIGPEGPEGP4Lecture #13: 02-24-04 13A Logical View of the Internet?RRRR R• RIP/OSPF not very scalable Æ area hierarchies• But, ISP’s aren’t equal• Size• Connectivity• NOT TRUE EITHER!ISPISPLecture #13: 02-24-04 14A Logical View of the InternetTier 1 Tier 1Tier 2Tier 2Tier 2Tier 3• Tier 1 ISP• “Default-free” with global reachability info• Tier 2 ISP• Regional or country-wide• Tier 3 ISP• LocalCustomerProviderLecture #13: 02-24-04 15Transit vs. PeeringISP XISP YISP ZISP PTransit ($)Transit ($$$)Transit ($$ 1/2)Transit ($$)PeeringTransit ($$$)Transit ($)Transit ($$)Transit ($$$)Lecture #13: 02-24-04 16Policy Impact• “Valley-free” routing• Number links as (+1, 0, -1) for provider, peer and customer• In any path should only see sequence of +1, followed by at most one 0, followed by sequence of -1• WHY?• Consider the economics of the situation5Lecture #13: 02-24-04 17Outline• Routing hierarchy• Internet structure• External BGP (E-BGP)• Internal BGP (I-BGP)Lecture #13: 02-24-04 18Choices• Link state or distance vector?• No universal metric – policy decisions• Problems with distance-vector:• Bellman-Ford algorithm may not converge• Problems with link state:• Metric used by routers not the same – loops• LS database too large – entire Internet• May expose policies to other AS’sLecture #13: 02-24-04 19Solution: Distance Vector with Path• Each routing update carries the entire path• Loops are detected as follows:• When AS gets route check if AS already in path• If yes, reject route• If no, add self and (possibly) advertise route further• Advantage:• Metrics are local - AS chooses path, protocol ensures no loopsLecture #13: 02-24-04 20Interconnecting BGP Peers• BGP uses TCP to connect peers• Advantages:• Simplifies BGP• No need for periodic refresh - routes are valid until withdrawn, or the connection is lost• Incremental updates• Disadvantages• Congestion control on a routing protocol?• Poor interaction during high load6Lecture #13: 02-24-04 21Hop-by-hop Model• BGP advertises to neighbors only those routes that it uses• Consistent with the hop-by-hop Internet paradigm• e.g., AS1 cannot tell AS2 to route to other AS’s in a manner different than what AS2 has chosen (need source routing for that)Lecture #13: 02-24-04 22Policy with BGP• BGP provides capability for enforcing various policies• Policies are notpart of BGP: they are provided to BGP as configuration information• BGP enforces policies by choosing paths from multiple alternatives and controlling advertisement to other AS’sLecture #13: 02-24-04 23Examples of BGP Policies• A multi-homed AS refuses to act as transit• Limit path advertisement• A multi-homed AS can become transit for some AS’s• Only advertise paths to some AS’s• An AS can favor or disfavor certain AS’s for traffic transit from itselfLecture #13: 02-24-04 24BGP Messages• Open• Announces AS ID• Determines hold timer – interval between keep_alive or update messages, zero interval implies no keep_alive• Keep_alive• Sent periodically (but before hold timer expires) to peers to ensure connectivity.• Sent in place of an UPDATE message• Notification• Used for error notification• TCP connection is closed immediately after notification7Lecture #13: 02-24-04 25BGP UPDATE Message• List of withdrawn routes• Network layer reachability information• List of reachable prefixes• Path attributes• Origin• Path• Metrics• All prefixes advertised in message have same path attributesLecture #13: 02-24-04 26Path Selection Criteria• Information based on path attributes• Attributes + external (policy)


View Full Document

CMU CS 15441 - BGP (Border Gateway Protocol)

Documents in this Course
lecture

lecture

34 pages

lecture

lecture

38 pages

lecture

lecture

18 pages

lecture

lecture

28 pages

lecture

lecture

11 pages

Lecture

Lecture

64 pages

lecture

lecture

10 pages

lecture

lecture

19 pages

Lecture 6

Lecture 6

43 pages

Exam

Exam

14 pages

lecture

lecture

38 pages

Debugging

Debugging

23 pages

lecture

lecture

60 pages

review

review

27 pages

lecture

lecture

12 pages

The Web

The Web

28 pages

Lecture

Lecture

40 pages

lecture

lecture

42 pages

lecture

lecture

9 pages

lecture

lecture

10 pages

lecture

lecture

49 pages

lecture

lecture

26 pages

Project

Project

5 pages

lecture

lecture

40 pages

lecture

lecture

9 pages

lecture

lecture

41 pages

lecture

lecture

32 pages

lecture

lecture

36 pages

lecture

lecture

34 pages

lecture

lecture

45 pages

lecture

lecture

26 pages

lecture

lecture

6 pages

lecture

lecture

51 pages

Project

Project

16 pages

lecture

lecture

44 pages

lecture

lecture

13 pages

lecture

lecture

42 pages

lecture

lecture

36 pages

Project

Project

13 pages

Project

Project

33 pages

lecture

lecture

43 pages

lecture

lecture

49 pages

Load more
Download BGP (Border Gateway Protocol)
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view BGP (Border Gateway Protocol) and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view BGP (Border Gateway Protocol) 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?