15-441 Computer NetworkingOutlineA Logical View of the Internet?Internet’s Area HierarchyAS Numbers (ASNs)ExampleSlide 7A Logical View of the InternetTransit vs. PeeringPolicy ImpactSlide 11ChoicesSolution: Distance Vector with PathInterconnecting BGP PeersHop-by-hop ModelExamples of BGP PoliciesBGP MessagesBGP UPDATE MessagePath Selection CriteriaLOCAL PREFLOCAL PREF – Common UsesAS_PATHMulti-Exit Discriminator (MED)MEDSlide 25Decision ProcessImportant Concepts15-441 Computer NetworkingLecture 10: Inter-Domain RoutingBGP (Border Gateway Protocol)These slides proudly ripped from Srini Seshan and Dave Anderson, 15-441 F’06Outline•Internet Structure/Routing Hierarchy•External BGP (E-BGP)•Internal BGP (I-BGP)A Logical View of the Internet?RRRR R•After looking at RIP/OSPF descriptions•End-hosts connected to routers•Routers exchange messages to determine connectivity•NOT TRUE!Internet’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•Each AS assigned unique ID•AS’s peer at network exchangesAS Numbers (ASNs)ASNs are 16 bit values 64512 through 65535 are “private”•Genuity: 1 •MIT: 3•CMU: 9•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 useExample1 231.11.22.12.23.13.22.2.144.14.255.15.2EGPIGPEGPEGPIGPIGPIGPIGPEGPEGPA Logical View of the Internet?RRRR R•RIP/OSPF not very scalable area hierarchies•NOT TRUE EITHER!•ISP’s aren’t equal•Size•ConnectivityISPISPA 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•LocalCustomerProviderTransit vs. PeeringISP XISP YISP ZISP PTransit ($$)Transit ($$$)Transit ($$ 1/2)Transit ($$)PeeringTransit ($$$)Transit ($)Transit ($$)Transit ($$$)Policy 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 situationOutline•Internet Structure/Routing Hierarchy•External BGP (E-BGP)•Internal BGP (I-BGP)Choices•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’sSolution: 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 loopsInterconnecting 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 loadHop-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)•BGP enforces policies by choosing paths from multiple alternatives and controlling advertisement to other AS’sExamples 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 itselfBGP 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 notificationBGP 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 attributesPath Selection Criteria•Attributes + external (policy) information•Examples:•Hop count•Policy considerations•Preference for AS•Presence or absence of certain AS•Path origin•Link dynamicsLOCAL PREF•Local (within an AS) mechanism to provide relative priority among BGP routers (e.g. R3 over R4) R1 R2R3 R4I-BGPAS 256AS 300Local Pref = 500 Local Pref = 800AS 100R5AS 200LOCAL PREF – Common Uses•Peering vs. transit•Prefer to use peering connection, why?•In general, customer > peer > provider•Use LOCAL PREF to ensure thisAS_PATH•List of traversed AS’sAS 500AS 300AS 200 AS 100180.10.0.0/16 300 200 100170.10.0.0/16 300 200170.10.0.0/16 180.10.0.0/16Multi-Exit Discriminator (MED)•Hint to external neighbors about the preferred path into an AS •Non-transitive attribute •Different AS choose different scales•Used when two AS’s connect to each other in more than one placeMED•Hint to R1 to use R3 over R4 link•Cannot compare AS40’s values to AS30’sR1 R2R3 R4AS 30AS 40180.10.0.0MED = 120180.10.0.0MED = 200AS 10180.10.0.0MED = 50MED•MED is typically used in provider/subscriber scenarios•It can lead to unfairness if used between ISP because it may force one ISP to carry more traffic:SFNY•ISP1 ignores MED from ISP2•ISP2 obeys MED from ISP1•ISP2 ends up carrying traffic most of the wayISP1ISP2Decision Process•Processing order of attributes:•Select route with highest LOCAL-PREF•Select route with shortest AS-PATH•Apply MED (if routes learned from same neighbor)Important Concepts•Wide area Internet structure and routing driven by economic considerations•Customer, providers and peers•BGP designed to:•Provide hierarchy that allows scalability•Allow enforcement of policies related to structure•Mechanisms•Path vector –
View Full Document