1 Interdomain Routing Policy Reading: Sections 4.3.3 plus optional reading COS 461: Computer Networks Spring 2008 (MW 1:30-2:50 in COS 105) Jennifer Rexford.

Slides:



Advertisements
Similar presentations
BGP Policy Jennifer Rexford.
Advertisements

1 Interdomain Traffic Engineering with BGP By Behzad Akbari Spring 2011 These slides are based on the slides of Tim. G. Griffin (AT&T) and Shivkumar (RPI)
BGP Convergence Jennifer Rexford. Outline Border Gateway Protocol (BGP) –Prefix-based routing at the AS level –Policy-based path-vector protocol –Incremental.
Network Layer: Internet-Wide Routing & BGP Dina Katabi & Sam Madden.
CS540/TE630 Computer Network Architecture Spring 2009 Tu/Th 10:30am-Noon Sue Moon.
© 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.
Professor Yashar Ganjali Department of Computer Science University of Toronto
INTERDOMAIN ROUTING POLICY COS 461: Computer Networks Spring 2010 (MW 3:00-4:20 in COS 105) Mike Freedman
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.
BGP EE 122, Fall 2013 Sylvia Ratnasamy Material thanks to Ion Stoica, Scott Shenker, Jennifer Rexford, and many other.
PATH VECTOR ROUTING AND THE BORDER GATEWAY PROTOCOL READING: SECTIONS PLUS OPTIONAL READING COS 461: Computer Networks Spring 2010 (MW 3:00-4:20.
Practical and Configuration issues of BGP and Policy routing Cameron Harvey Simon Fraser University.
Interdomain Routing and The Border Gateway Protocol (BGP) Courtesy of Timothy G. Griffin Intel Research, Cambridge UK
1 Policy-Based Path-Vector Routing Reading: Sections COS 461: Computer Networks Spring 2006 (MW 1:30-2:50 in Friend 109) Jennifer Rexford Teaching.
INTERDOMAIN ROUTING POLICY READING: SECTIONS PLUS OPTIONAL READING COS 461: Computer Networks Spring 2009 (MW 1:30-2:50 in COS 105) Mike Freedman.
Stable Internet Routing Without Global Coordination Jennifer Rexford Princeton University Joint work with Lixin Gao (UMass-Amherst)
Computer Networking Lecture 10: Inter-Domain Routing
Interdomain Routing Establish routes between autonomous systems (ASes). Currently done with the Border Gateway Protocol (BGP). AT&T Qwest Comcast Verizon.
Internet Routing (COS 598A) Today: Interdomain Traffic Engineering Jennifer Rexford Tuesdays/Thursdays.
Inherently Safe Backup Routing with BGP Lixin Gao (U. Mass Amherst) Timothy Griffin (AT&T Research) Jennifer Rexford (AT&T Research)
IP Addressing & Interdomain Routing. Next Topic  IP Addressing  Hierarchy (prefixes, class A, B, C, subnets)  Interdomain routing Physical Data Link.
Internet Routing (COS 598A) Today: Multi-Homing Jennifer Rexford Tuesdays/Thursdays 11:00am-12:20pm.
Economic Incentives in Internet Routing Jennifer Rexford Princeton University
Interdomain Routing Jennifer Rexford Advanced Computer Networks Tuesdays/Thursdays 1:30pm-2:50pm.
Backbone Networks Jennifer Rexford COS 461: Computer Networks Lectures: MW 10-10:50am in Architecture N101
© 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.
Interdomain Routing Policy COS 461: Computer Networks Spring 2011 Mike Freedman 1.
1 Internet Topology COS 461: Computer Networks Spring 2007 (MW 1:30-2:50 in Friend 004) Jennifer Rexford Teaching Assistant: Ioannis Avramopoulos
1 Internet Topology COS 461: Computer Networks Spring 2006 (MW 1:30-2:50 in Friend 109) Jennifer Rexford Teaching Assistant: Mike Wawrzoniak
Stable Internet Routing Without Global Coordination Jennifer Rexford AT&T Labs--Research Joint work with Lixin Gao.
Interdomain Routing and the Border Gateway Protocol (BGP) Reading: Section COS 461: Computer Networks Spring 2011 Mike Freedman
ROUTING PROTOCOLS PART IV ET4187/ET5187 Advanced Telecommunication Network.
BGP CS168, Fall 2014 Sylvia Ratnasamy
Jennifer Rexford Fall 2010 (TTh 1:30-2:50 in COS 302) COS 561: Advanced Computer Networks Stub.
Computer Networks Layering and Routing Dina Katabi
Inter-domain Routing Outline Border Gateway Protocol.
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.
CSE 461: Interdomain Routing
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks BGP.
PATH VECTOR ROUTING AND THE BORDER GATEWAY PROTOCOL 1.
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.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429/556 Introduction to Computer Networks Inter-domain routing Some slides used with.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
1 Agenda for Today’s Lecture The rationale for BGP’s design –What is interdomain routing and why do we need it? –Why does BGP look the way it does? How.
Michael Schapira, Princeton University Fall 2010 (TTh 1:30-2:50 in COS 302) COS 561: Advanced Computer Networks
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
1 Internet Routing: BGP Routing Convergence Jennifer Rexford Princeton University
1 Internet Routing 11/11/2009. Admin. r Assignment 3 2.
CS 3700 Networks and Distributed Systems
CS 3700 Networks and Distributed Systems
Border Gateway Protocol
COS 561: Advanced Computer Networks
BGP supplement Abhigyan Sharma.
Interdomain Traffic Engineering with BGP
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
Backbone Networks Mike Freedman COS 461: Computer Networks
BGP Policies Jennifer Rexford
BGP Interactions Jennifer Rexford
COS 461: Computer Networks
COS 561: Advanced Computer Networks
BGP Instability Jennifer Rexford
Computer Networks Protocols
Presentation transcript:

1 Interdomain Routing Policy Reading: Sections plus optional reading COS 461: Computer Networks Spring 2008 (MW 1:30-2:50 in COS 105) Jennifer Rexford Teaching Assistants: Sunghwan Ihm and Yaping Zhu

2 Goals of Today’s Lecture BGP convergence –Causes of BGP routing changes –Path exploration during convergence Business relationships between ASes –Customer-provider: customer pays provider –Peer-peer: typically settlement-free Realizing routing policies –Import and export filtering –Assigning preferences to routes Multiple routers within an AS –Disseminated BGP information within the AS –Combining with intradomain routing information

3 BGP Convergence

4 Causes of BGP Routing Changes Topology changes –Equipment going up or down –Deployment of new routers or sessions BGP session failures –Due to equipment failures, maintenance, etc. –Or, due to congestion on the physical path Changes in routing policy –Changes in preferences in the routes –Changes in whether the route is exported Persistent protocol oscillation –Conflicts between policies in different ASes

5 BGP Session Failure BGP runs over TCP –BGP only sends updates when changes occur –TCP doesn’t detect lost connectivity on its own Detecting a failure –Keep-alive: 60 seconds –Hold timer: 180 seconds Reacting to a failure –Discard all routes learned from the neighbor –Send new updates for any routes that change AS1 AS2

6 Routing Change: Before and After (1,0) (2,0) (3,1,0) (2,0) (1,2,0) (3,2,0)

7 Routing Change: Path Exploration AS 1 –Delete the route (1,0) –Switch to next route (1,2,0) –Send route (1,2,0) to AS 3 AS 3 –Sees (1,2,0) replace (1,0) –Compares to route (2,0) –Switches to using AS (2,0) (1,2,0) (3,2,0)

8 Routing Change: Path Exploration Initial situation –Destination 0 is alive –All ASes use direct path When destination dies –All ASes lose direct path –All switch to longer paths –Eventually withdrawn E.g., AS 2 –(2,0)  (2,1,0) –(2,1,0)  (2,3,0) –(2,3,0)  (2,1,3,0) –(2,1,3,0)  null (1,0) (1,2,0) (1,3,0) (2,0) (2,1,0) (2,3,0) (2,1,3,0) (3,0) (3,1,0) (3,2,0)

9 BGP Converges Slowly Path vector avoids count-to-infinity –But, ASes still must explore many alternate paths –… to find the highest-ranked path that is still available Fortunately, in practice –Most popular destinations have very stable BGP routes –And most instability lies in a few unpopular destinations Still, lower BGP convergence delay is a goal –Can be tens of seconds to tens of minutes –High for important interactive applications –… or even conventional application, like Web browsing

10 Business Relationships

11 Business Relationships Neighboring ASes have business contracts –How much traffic to carry –Which destinations to reach –How much money to pay Common business relationships –Customer-provider  E.g., Princeton is a customer of USLEC  E.g., MIT is a customer of Level3 –Peer-peer  E.g., UUNET is a peer of Sprint  E.g., Harvard is a peer of Harvard Business School

12 Customer-Provider Relationship Customer needs to be reachable from everyone –Provider tells all neighbors how to reach the customer Customer does not want to provide transit service –Customer does not let its providers route through it d d provider customer provider Traffic to the customerTraffic from the customer announcements traffic

13 Customer Connecting to a Provider Provider 1 access link 2 access links Provider 2 access routers Provider 2 access PoPs

14 Multi-Homing: Two or More Providers Motivations for multi-homing –Extra reliability, survive single ISP failure –Financial leverage through competition –Better performance by selecting better path –Gaming the 95 th -percentile billing model Provider 1 Provider 2

15 Princeton Example Internet: customer of USLEC and Patriot Research universities/labs: customer of Internet2 Local non-profits: provider for several non-profits Patriot USLEC Internet2

16 Peer-Peer Relationship Peers exchange traffic between customers –AS exports only customer routes to a peer –AS exports a peer’s routes only to its customers –Often the relationship is settlement-free (i.e., no $$$) peer Traffic to/from the peer and its customers d announcements traffic

17 AS Structure: Tier-1 Providers Tier-1 provider –Has no upstream provider of its own –Typically has a national or international backbone Top of the Internet hierarchy of ~10 ASes –AOL, AT&T, Global Crossing, Level3, UUNET, NTT, Qwest, SAVVIS (formerly Cable & Wireless), and Sprint –Full peer-peer connections between tier-1 providers

18 AS Structure: Other ASes Other providers –Provide transit service to downstream customers –… but, need at least one provider of their own –Typically have national or regional scope –Includes several thousand ASes Stub ASes –Do not provide transit service to others –Connect to one or more upstream providers –Includes the vast majority (e.g., 85-90%) of the ASes

19 Realizing BGP Routing Policy

20 BGP Policy: Applying Policy to Routes Import policy –Filter unwanted routes from neighbor  E.g. prefix that your customer doesn’t own –Manipulate attributes to influence path selection  E.g., assign local preference to favored routes Export policy –Filter routes you don’t want to tell your neighbor  E.g., don’t tell a peer a route learned from other peer –Manipulate attributes to control what they see  E.g., make a path look artificially longer than it is

21 BGP Policy: Influencing Decisions Best Route Selection Apply Import Policies Best Route Table Apply Export Policies Install forwarding Entries for best Routes. Receive BGP Updates Best Routes Transmit BGP Updates Apply Policy = filter routes & tweak attributes Based on Attribute Values IP Forwarding Table Apply Policy = filter routes & tweak attributes Open ended programming. Constrained only by vendor configuration language

22 Import Policy: Local Preference Favor one path over another –Override the influence of AS path length –Apply local policies to prefer a path Example: prefer customer over peer AT&T Sprint Yale Tier-2 Tier-3 Local-pref = 100 Local-pref = 90

23 Import Policy: Filtering Discard some route announcements –Detect configuration mistakes and attacks Examples on session to a customer –Discard route if prefix not owned by the customer –Discard route that contains other large ISP in AS path Patriot Princeton USLEC /16

24 Export Policy: Filtering Discard some route announcements –Limit propagation of routing information Examples –Don’t announce routes from one peer to another AT&T Sprint UUNET

25 Export Policy: Filtering Discard some route announcements –Limit propagation of routing information Examples –Don’t announce routes for network-management hosts or the underlying routers themselves USLEC Princeton network operator

26 Export Policy: Attribute Manipulation Modify attributes of the active route –To influence the way other ASes behave Example: AS prepending –Artificially inflate the AS path length seen by others –To convince some ASes to send traffic another way Patriot Princeton USLEC /16 Sprint 88

27 BGP Policy Configuration Routing policy languages are vendor-specific –Not part of the BGP protocol specification –Different languages for Cisco, Juniper, etc. Still, all languages have some key features –Policy as a list of clauses –Each clause matches on route attributes –… and either discards or modifies the matching routes Configuration done by human operators –Implementing the policies of their AS –Business relationships, traffic engineering, security, … –

28 Multiple Routers in an AS

29 AS is Not a Single Node AS path length can be misleading –An AS may have many router-level hops AS 4 AS 3 AS 2 AS 1 BGP says that path 4 1 is better than path 3 2 1

30 An AS is Not a Single Node Multiple routers in an AS –Need to distribute BGP information within the AS –Internal BGP (iBGP) sessions between routers AS1 AS2 eBGP iBGP

31 Internal BGP and Local Preference Example –Both routers prefer the path through AS 100 on the left –… even though the right router learns an external path I-BGP AS 256 AS 300 Local Pref = 100 Local Pref = 90 AS 100 AS 200

32 An AS is Not a Single Node Multiple connections to neighboring ASes –Multiple border routers may learn good routes –… with the same local-pref and AS path length Multiple links

33 Early-Exit or Hot-Potato Routing Diverse peering locations –Both costs, and middle Comparable capacity at all peering points –Can handle even load Consistent routes –Same destinations advertised at all points –Same AS path length for a destination at all points Customer A Customer B multiple peering points Provider A Provider B Early-exit routing

34 Realizing Hot-Potato Routing Hot-potato routing –Each router selects the closest egress point –… based on the path cost in intradomain protocol BGP decision process –Highest local preference –Shortest AS path –Closest egress point –Arbitrary tie break A B C D G E F A B dst

35 Joining BGP and IGP Information Border Gateway Protocol (BGP) –Announces reachability to external destinations –Maps a destination prefix to an egress point  /16 reached via Interior Gateway Protocol (IGP) –Used to compute paths within the AS –Maps an egress point to an outgoing link  reached via

36 IGP Joining BGP with IGP Information AS 7018 AS / BGP /16 destination next hop /30 destinationnext hop /16 Next Hop = Forwarding Table /16 destinationnext hop /

37 Some Routers Don’t Need BGP Customer that connects to a single upstream ISP –The ISP can introduce the prefixes into BGP –… and the customer can simply default-route to the ISP Qwest Yale University Nail up default routes /0 pointing to Qwest Nail up routes /16 pointing to Yale /16

38 Some Routers Don’t Need BGP Routers inside a “stub” network –Border router may speak BGP to upstream ISPs –But, internal routers can simply “default route” Patriot Princeton University /16 AS 88 USLEC BGP

39 Conclusions BGP is solving a hard problem –Routing protocol operating at a global scale –With tens of thousands of independent networks –That each have their own policy goals –And all want fast convergence Key features of BGP –Prefix-based path-vector protocol –Incremental updates (announcements and withdrawals) –Policies applied at import and export of routes –Internal BGP to distribute information within an AS –Interaction with the IGP to compute forwarding tables