15-744: Computer Networking L-6 Inter-Domain Routing.

Slides:



Advertisements
Similar presentations
CS Summer 2003 CS672: MPLS Architecture, Applications and Fault-Tolerance.
Advertisements

Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
CS540/TE630 Computer Network Architecture Spring 2009 Tu/Th 10:30am-Noon Sue Moon.
Path Vector Routing NETE0514 Presented by Dr.Apichan Kanjanavapastit.
© J. Liebeherr, All rights reserved 1 Border Gateway Protocol This lecture is largely based on a BGP tutorial by T. Griffin from AT&T Research.
Border Gateway Protocol Autonomous Systems and Interdomain Routing (Exterior Gateway Protocol EGP)
Fundamentals of Computer Networks ECE 478/578 Lecture #18: Policy-Based Routing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
1 Interdomain Routing Protocols. 2 Autonomous Systems An autonomous system (AS) is a region of the Internet that is administered by a single entity and.
Univ. of TehranComputer Network1 Computer Networks Computer Networks (Graduate level) University of Tehran Dept. of EE and Computer Engineering By: Dr.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
1 Network Architecture and Design Routing: Exterior Gateway Protocols and Autonomous Systems Border Gateway Protocol (BGP) Reference D. E. Comer, Internetworking.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
The Border Gateway Protocol (BGP) Sharad Jaiswal.
Computer Networking Lecture 10: Inter-Domain Routing
More on BGP Check out the links on politics: ICANN and net neutrality To read for next time Path selection big example Scaling of BGP.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: EGP, BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
15-744: Computer Networking L-5 Inter-Domain Routing.
Routing and Routing Protocols
Routing.
Feb 12, 2008CS573: Network Protocols and Standards1 Border Gateway Protocol (BGP) Network Protocols and Standards Winter
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network Considering the Advantages of Using BGP.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
Computer Networks Layering and Routing Dina Katabi
Inter-domain Routing Don Fussell CS 395T Measuring Internet Performance.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
CS551: Inter-domain Routing Christos Papadopoulos (
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking BGP, Flooding, Multicast routing.
1 Interdomain Routing (BGP) By Behzad Akbari Fall 2008 These slides are based on the slides of Ion Stoica (UCB) and Shivkumar (RPI)
CS 3700 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 8/20/15.
Lecture 4: BGP Presentations Lab information H/W update.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
Border Gateway Protocol
BGP V1.1. When is BGP Applicable Basic BGP Peer Configuration Troubleshooting BGP Connections BGP Operation and Path Attributes Route Import/Export Selected.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Xuan Zheng (modified by M. Veeraraghavan) 1 BGP overview BGP operations BGP messages BGP decision algorithm BGP states.
Advance Computer Networking L-3 BGP Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan Seshan at.
Border Gateway Protocol (BGP) W.lilakiatsakun. BGP Basics (1) BGP is the protocol which is used to make core routing decisions on the Internet It involves.
More on Internet Routing A large portion of this lecture material comes from BGP tutorial given by Philip Smith from Cisco (ftp://ftp- eng.cisco.com/pfs/seminars/APRICOT2004.
Network Layer4-1 Intra-AS Routing r Also known as Interior Gateway Protocols (IGP) r Most common Intra-AS routing protocols: m RIP: Routing Information.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol) Copyright ©, Carnegie Mellon University.
An internet is a combination of networks connected by routers. When a datagram goes from a source to a destination, it will probably pass through many.
INTER-DOMAIN ROUTING AND BORDER GATEWAY PROTOCOL Dr. Rocky K. C. Chang 22 November
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
1 Border Gateway Protocol (BGP) and BGP Security Jeff Gribschaw Sai Thwin ECE 4112 Final Project April 28, 2005.
BGP and ICMP. Exterior Gateway Protocol (EGP) Like RIP, but no metrics. Just if reachable. Rtr inside a domain collects reachability information and informs.
BGP Basics BGP uses TCP (port 179) BGP Established unicast-based connection to each of its BGP- speaking peers. BGP allowing the TCP layer to handle such.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
Inter-domain Routing Outline Border Gateway Protocol.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
Border Gateway Protocol BGP-4 BGP environment How BGP works BGP information BGP administration.
Inter-Domain Routing. Routing Hierarchies Flat routing doesn’t scale –Each node cannot be expected to have routes to every destination (or destination.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol) Copyright ©, Carnegie Mellon University.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Border Gateway Protocol
COS 561: Advanced Computer Networks
BGP supplement Abhigyan Sharma.
Lixin Gao ECE Dept. UMASS, Amherst
Routing.
Department of Computer and IT Engineering University of Kurdistan
Dan LI CS Department, Tsinghua University
BGP Instability Jennifer Rexford
Computer Networks Protocols
Routing.
Presentation transcript:

15-744: Computer Networking L-6 Inter-Domain Routing

L -6; © Srinivasan Seshan, Inter-Domain Routing Border Gateway Protocol (BGP) Assigned reading [LAB00] Delayed Internet Routing Convergence

L -6; © Srinivasan Seshan, Outline External BGP (E-BGP) Internal BGP (I-BGP) Multi-Homing Stability Issues

L -6; © Srinivasan Seshan, 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 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 exchanges

L -6; © Srinivasan Seshan, Example EGP IGP EGP IGP EGP

L -6; © Srinivasan Seshan, History Mid-80s: EGP Reachability protocol (no shortest path) Did not accommodate cycles (tree topology) Evolved when all networks connected to NSF backbone Result: BGP introduced as routing protocol Latest version = BGP 4 BGP-4 supports CIDR Primary objective: connectivity not performance

L -6; © Srinivasan Seshan, 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’s

L -6; © Srinivasan Seshan, Solution: 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 loops

L -6; © Srinivasan Seshan, Interconnecting 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 load

L -6; © Srinivasan Seshan, Hop-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)

L -6; © Srinivasan Seshan, AS Categories Stub: an AS that has only a single connection to one other AS - carries only local traffic. Multi-homed: an AS that has connections to more than one AS, but does not carry transit traffic Transit: an AS that has connections to more than one AS, and carries both transit and local traffic (under certain policy restrictions)

L -6; © Srinivasan Seshan, AS Categories AS1 AS3 AS2 AS1 AS2 AS3AS1 AS2 Stub Multi-homed Transit

L -6; © Srinivasan Seshan, Policy with BGP BGP provides capability for enforcing various policies Policies are not part 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’s

L -6; © Srinivasan Seshan, Examples 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 itself

L -6; © Srinivasan Seshan, Routing Information Bases (RIB) Routes are stored in RIBs Adj-RIBs-In: routing info that has been learned from other routers (unprocessed routing info) Loc-RIB: local routing information selected from Adj-RIBs-In (routes selected locally) Adj-RIBs-Out: info to be advertised to peers (routes to be advertised)

L -6; © Srinivasan Seshan, BGP Common Header Length (2 bytes)Type (1 byte) Marker (security and message delineation) 16 bytes Types: OPEN, UPDATE, NOTIFICATION, KEEPALIVE

L -6; © Srinivasan Seshan, BGP 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 notification

L -6; © Srinivasan Seshan, BGP 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 attributes

L -6; © Srinivasan Seshan, Path Selection Criteria Information based on path attributes Attributes + external (policy) information Examples: Hop count Policy considerations Preference for AS Presence or absence of certain AS Path origin Link dynamics

L -6; © Srinivasan Seshan, LOCAL PREF Local (within an AS) mechanism to provide relative priority among BGP routers R1R2 R3R4 I-BGP AS 256 AS 300 Local Pref = 500Local Pref =800 AS 100 R5 AS 200

L -6; © Srinivasan Seshan, AS_PATH List of traversed AS’s AS 500 AS 300 AS 200AS / / / /16

L -6; © Srinivasan Seshan, CIDR and BGP AS X /24 AS Y /24 AS T (provider) /23 AS Z What should T announce to Z?

L -6; © Srinivasan Seshan, Options Advertise all paths: Path 1: through T can reach /23 Path 2: through T can reach /24 Path 3: through T can reach /24 But this does not reduce routing tables! We would like to advertise: Path 1: through T can reach /22

L -6; © Srinivasan Seshan, Sets and Sequences Problem: what do we list in the route? List T: omitting information not acceptable, may lead to loops List T, X, Y: misleading, appears as 3-hop path Solution: restructure AS Path attribute as: Path: (Sequence (T), Set (X, Y)) If Z wants to advertise path: Path: (Sequence (Z, T), Set (X, Y)) In practice used only if paths in set have same attributes

L -6; © Srinivasan Seshan, Multi-Exit Discriminator (MED) Hint to external neighbors about the preferred path into an AS Non-transitive attribute (we will see later why) Different AS choose different scales Used when two AS’s connect to each other in more than one place

L -6; © Srinivasan Seshan, MED Hint to R1 to use R3 over R4 link Cannot compare AS40’s values to AS30’s R1R2 R3R4 AS 30 AS MED = MED = 200 AS MED = 50

L -6; © Srinivasan Seshan, MED 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: SF NY ISP1 ignores MED from ISP2 ISP2 obeys MED from ISP1 ISP2 ends up carrying traffic most of the way ISP1 ISP2

L -6; © Srinivasan Seshan, Other Attributes ORIGIN Source of route (IGP, EGP, other) NEXT_HOP Address of next hop router to use Used to direct traffic to non-BGP router Check out for full explanationhttp://

L -6; © Srinivasan Seshan, Decision 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)

L -6; © Srinivasan Seshan, Outline External BGP (E-BGP) Internal BGP (I-BGP) Multi-Homing Stability Issues

L -6; © Srinivasan Seshan, Internal vs. External BGP R3R4 R1 R2 E-BGP BGP can be used by R3 and R4 to learn routes How do R1 and R2 learn routes? Option 1: Inject routes in IGP Only works for small routing tables Option 2: Use I-BGP AS1 AS2

L -6; © Srinivasan Seshan, Internal BGP (I-BGP) Same messages as E-BGP Different rules about re-advertising prefixes: Prefix learned from E-BGP can be advertised to I-BGP neighbor and vice-versa, but Prefix learned from one I-BGP neighbor cannot be advertised to another I-BGP neighbor Reason: no AS PATH within the same AS and thus danger of looping.

L -6; © Srinivasan Seshan, Internal BGP (I-BGP) R3R4 R1 R2 E-BGP I-BGP R3 can tell R1 and R2 prefixes from R4 R3 can tell R4 prefixes from R1 and R2 R3 cannot tell R2 prefixes from R1 R2 can only find these prefixes through a direct connection to R1 Result: I-BGP routers must be fully connected (via TCP)! contrast with E-BGP sessions that map to physical links AS1 AS2

L -6; © Srinivasan Seshan, Link Failures Two types of link failures: Failure on an E-BGP link Failure on an I-BGP Link These failures are treated completely different in BGP Why?

L -6; © Srinivasan Seshan, Failure on an E-BGP Link AS1 R1 AS2 R2 Physical link E-BGP session / /30 If the link R1-R2 goes down The TCP connection breaks BGP routes are removed This is the desired behavior

L -6; © Srinivasan Seshan, Failure on an I-BGP Link R1 R2 R3 Physical link I-BGP connection / /30 If link R1-R2 goes down, R1 and R2 should still be able to exchange traffic The indirect path through R3 must be used Thus, E-BGP and I-BGP must use different conventions with respect to TCP endpoints

L -6; © Srinivasan Seshan, Outline External BGP (E-BGP) Internal BGP (I-BGP) Multi-Homing Stability Issues

L -6; © Srinivasan Seshan, Multi-homing With multi-homing, a single network has more than one connection to the Internet. Improves reliability and performance: Can accommodate link failure Bandwidth is sum of links to Internet Challenges Getting policy right (MED, etc..) Addressing

L -6; © Srinivasan Seshan, Multi-homing to Multiple Providers Major issues: Addressing Aggregation Customer address space: Delegated by ISP1 Delegated by ISP2 Delegated by ISP1 and ISP2 Obtained independently ISP1ISP2 ISP3 Customer

L -6; © Srinivasan Seshan, Address Space from one ISP Customer uses address space from ISP1 ISP1 advertises /16 aggregate Customer advertises /24 route to ISP2 ISP2 relays route to ISP1 and ISP3 ISP2-3 use /24 route ISP1 routes directly Problems with traffic load? / /24 ISP1ISP2 ISP3 Customer

L -6; © Srinivasan Seshan, Pitfalls ISP1 aggregates to a /19 at border router to reduce internal tables. ISP1 still announces /16. ISP1 hears /24 from ISP2. ISP1 routes packets for customer to ISP2! Workaround: ISP1 must inject /24 into I-BGP / /16 ISP1ISP2 ISP3 Customer /24

L -6; © Srinivasan Seshan, Address Space from Both ISPs ISP1 and ISP2 continue to announce aggregates Load sharing depends on traffic to two prefixes Lack of reliability: if ISP1 link goes down, part of customer becomes inaccessible. Customer may announce prefixes to both ISPs, but still problems with longest match as in case / /24 ISP1ISP2 ISP3 Customer

L -6; © Srinivasan Seshan, Address Space Obtained Independently Offers the most control, but at the cost of aggregation. Still need to control paths ISP1ISP2 ISP3 Customer

L -6; © Srinivasan Seshan, Outline External BGP (e-BGP) Internal BGP (i-BGP) Multi-Homing Stability Issues

L -6; © Srinivasan Seshan, Signs of Routing Instability Record of BGP messages at major exchanges Discovered orders of magnitude larger than expected updates Bulk were duplicate withdrawals Stateless implementation of BGP – did not keep track of information passed to peers Impact of few implementations Strong frequency (30/60 sec) components Interaction with other local routing/links etc.

L -6; © Srinivasan Seshan, Route Flap Storm Overloaded routers fail to send Keep_Alive message and marked as down I-BGP peers find alternate paths Overloaded router re-establishes peering session Must send large updates Increased load causes more routers to fail!

L -6; © Srinivasan Seshan, Route Flap Dampening Routers now give higher priority to BGP/Keep_Alive to avoid problem Associate a penalty with each route Increase when route flaps Exponentially decay penalty with time When penalty reaches threshold, suppress route

L -6; © Srinivasan Seshan, BGP Limitations: Oscillations AS 0 AS 2 AS 1 R (*R,1R,2R) (0R,*R,2R)(0R,1R,*R)

L -6; © Srinivasan Seshan, BGP Limitations: Oscillations AS 0 AS 2 AS 1 R (-,*1R,2R) (*0R,-,2R) (*0R,1R,-) W W W    (*R,1R,2R) (0R,*R,2R) (0R,1R,*R)

L -6; © Srinivasan Seshan, BGP Limitations: Oscillations AS 0 AS 2 AS 1 R (-,*1R,2R) (-,-,*2R) (01R,*1R,-) 01R    (-,*1R,2R) (*0R,-,2R) (*0R,1R,-)

L -6; © Srinivasan Seshan, BGP Limitations: Oscillations AS 0 AS 2 AS 1 R (-,-,*2R) (*01R,10R,-) 10R    (-,*1R,2R) (-,-,*2R) (01R,*1R,-)

L -6; © Srinivasan Seshan, BGP Limitations: Oscillations AS 0 AS 2 AS 1 R (-,-,-) (-,-,*20R) (*01R,10R,-) 20R    (-,-,*2R) (*01R,10R,-)

L -6; © Srinivasan Seshan, BGP Limitations: Oscillations AS 0 AS 2 AS 1 R (-,*12R,-) (-,-,*20R) (*01R,-,-) 12R    (-,-,-) (-,-,*20R)(*01R,10R,-)

L -6; © Srinivasan Seshan, BGP Limitations: Oscillations AS 0 AS 2 AS 1 R (-,*12R,21R) (-,-,-)(*01R,-,-) 21R (-,*12R,-) (-,-,*20R)(*01R,-,-)  

L -6; © Srinivasan Seshan, BGP Oscillations Can possible explore every possible path through network  (n-1)! Combinations Limit between update messages (MinRouteAdver) reduces exploration Forces router to process all outstanding messages Typical Internet failover times New/shorter link  60 seconds Results in simple replacement at nodes Down link  180 seconds Results in search of possible options Longer link  120 seconds Results in replacement or search based on length

L -6; © Srinivasan Seshan, Next Lecture: Routing Alternatives Overlay routing techniques Landmark hierarchies Synchronization of periodic messages Assigned reading [S+99] The End-to-End Effects of Internet Path Selection [Tsu88] The Landmark Hierarchy: A New Hierarchy for Routing in Very Large Networks

L -6; © Srinivasan Seshan, Problems Routing table size Need an entry for all paths to all networks Required memory= O((N + M*A) * K) N: number of networks M: mean AS distance (in terms of hops) A: number of AS’s K: number of BGP peers

L -6; © Srinivasan Seshan, Routing Table Size Mean AS DistanceNumber of AS’s 2, , , BGP Peers/Net ,000203,00020 NetworksMemory 27, , ,000 1,040,000 Problem reduced with CIDR

L -6; © Srinivasan Seshan, Issues with Multi-homing Symmetric routing While preference symmetric paths, many are asymmetric Packet re-ordering May trigger TCP’s fast retransmit algorithm Other concerns: Addressing, DNS, aggregation

L -6; © Srinivasan Seshan, Multi-homing to a Single Provider ISP Customer R1 R2 Easy solution: Use IMUX or Multi-link PPP Hard solution: Use BGP Makes assumptions about traffic (same amount of prefixes can be reached from both links)

L -6; © Srinivasan Seshan, Multi-homing to a Single Provider ISP Customer R1 R2 If multiple prefixes, may use MED Good if traffic load to prefixes is equal If single prefix, load may be unequal Break-down prefix and advertise different prefixes over different links R / /16

L -6; © Srinivasan Seshan, Multi-homing to a Single Provider ISP Customer R1R2 For traffic to customer, same as before: Use MED Good if traffic load to prefixes is equal For traffic to ISP: R3 alternates links Multiple default routes R / /16

L -6; © Srinivasan Seshan, Multi-homing to a Single Provider ISP Customer R1R2 Most reliable approach No equipment sharing Use MED R / /16 R4