Interdomain Routing David Andersen 15-744 Spring 2007 Carnegie Mellon University.

Slides:



Advertisements
Similar presentations
Improving Internet Availability. Some Problems Misconfiguration Miscoordination Efficiency –Market efficiency –Efficiency of end-to-end paths Scalability.
Advertisements

AGORA: A Market for Internet Connectivity Nick Feamster, Georgia Tech Ramesh Johari, Stanford Vijay Vazirani, Georgia Tech.
Multihoming and Multi-path Routing
CS 4251: Computer Networking II Nick Feamster Spring 2008
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)
1 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP — Border Gateway Protocol Routing Protocol used between AS’s Currently Version.
CS Summer 2003 CS672: MPLS Architecture, Applications and Fault-Tolerance.
Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
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.
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.
CPS-356 Network Layer: Inter-domain Routing Based partly on lecture notes by Xiaowei Yang, Rodrigo Foncesa, Rob Sherwood, David Mazières, Phil Levis, John.
1 Network Architecture and Design Routing: Exterior Gateway Protocols and Autonomous Systems Border Gateway Protocol (BGP) Reference D. E. Comer, Internetworking.
Practical and Configuration issues of BGP and Policy routing Cameron Harvey Simon Fraser University.
S ufficient C onditions to G uarantee P ath V isibility Akeel ur Rehman Faridee
Mini Introduction to BGP Michalis Faloutsos. What Is BGP?  Border Gateway Protocol BGP-4  The de-facto interdomain routing protocol  BGP enables policy.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
INTERDOMAIN ROUTING POLICY READING: SECTIONS PLUS OPTIONAL READING COS 461: Computer Networks Spring 2009 (MW 1:30-2:50 in COS 105) Mike Freedman.
BGP: Inter-Domain Routing Protocol Noah Treuhaft U.C. Berkeley.
Slide -1- February, 2006 Interdomain Routing Gordon Wilfong Distinguished Member of Technical Staff Algorithms Research Department Mathematical and Algorithmic.
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.
Inherently Safe Backup Routing with BGP Lixin Gao (U. Mass Amherst) Timothy Griffin (AT&T Research) Jennifer Rexford (AT&T Research)
15-744: Computer Networking L-5 Inter-Domain Routing.
Ion Stoica October 2, 2002 (* this presentation is based on Lakshmi Subramanian’s slides) EE 122: Inter-domain routing – Border Gateway Protocol (BGP)
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.
Interdomain Routing Policy COS 461: Computer Networks Spring 2011 Mike Freedman 1.
Border Gateway Protocol(BGP) L.Subramanian 23 rd October, 2001.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
Interdomain Routing (Nick Feamster) February 4, 2008.
Computer Networks Layering and Routing Dina Katabi
Information-Centric Networks04a-1 Week 4 / Paper 1 Open issues in Interdomain Routing: a survey –Marcelo Yannuzzi, Xavier Masip-Bruin, Olivier Bonaventure.
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.
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks BGP.
Chapter 9. Implementing Scalability Features in Your Internetwork.
CS 356: Computer Network Architectures Lecture 13: Dynamic Routing Protocols: Border Gateway Protocol [PD] chapter Xiaowei Yang
Border Gateway Protocol
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
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.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #08: SOLUTIONS Shivkumar Kalyanaraman: GOOGLE: “Shiv.
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.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Scaling IGP and BGP in Service Provider Networks.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
Border Gateway Protocol (BGP) (Bruce Maggs and Nick Feamster)
Michael Schapira, Princeton University Fall 2010 (TTh 1:30-2:50 in COS 302) COS 561: Advanced Computer Networks
Securing BGP Bruce Maggs. BGP Primer AT&T /8 Sprint /16 CMU /16 bmm.pc.cs.cmu.edu Autonomous System Number Prefix.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol) Copyright ©, Carnegie Mellon University.
1 Internet Routing 11/11/2009. Admin. r Assignment 3 2.
CS 3700 Networks and Distributed Systems
Border Gateway Protocol
CS 3700 Networks and Distributed Systems
Securing BGP Bruce Maggs.
Border Gateway Protocol
Interdomain Routing (Nick Feamster).
BGP supplement Abhigyan Sharma.
Interdomain Traffic Engineering with BGP
Cours BGP-MPLS-IPV6-QOS
Routers Routing algorithms
Border Gateway Protocol (BGP)
Presentation transcript:

Interdomain Routing David Andersen Spring 2007 Carnegie Mellon University

Outline What does the Internet look like? Relationships between providers –Enforced by: Export filters and import ranking BGP: The Border Gateway Protocol –Design goals –Protocol basics Updates, withdrawals, path vector concept –eBGP and iBGP –Scaling with confederations and route reflectors –BGP decision process, MEDs, localpref, and path length; load balancing –Failover and scalability Multi-homing and address allocation Convergence problems Preview of stability

The Internet: Attempt 1 End-hosts Routers

The Internet: Zooming In ASes: Independently owned & operated commercial entities CMU (PSC) Comcast Abilene AT&T Cogent Autonomous Systems (ASes) BGP IGPs (OSPF, etc)

ASes Economically independent All must cooperate to ensure reachability Routing between: BGP Routing inside: Up to the AS –OSPF, E-IGRP, ISIS (You may have heard of RIP; almost nobody uses it) Inside an AS: Independent policies about nearly everything.

The Internet: Zooming In 2x CMU Comcast Abilene AT&T Cogent Autonomous Systems (ASes) BGP All ASes are not equal

AS relationships Very complex economic landscape. Simplifying a bit: –Transit: “I pay you to carry my packets to everywhere” (provider-customer) –Peering: “For free, I carry your packets to my customers only.” (peer-peer) Technical defn of tier-1 ISP: In the “default- free” zone. No transit. –Note that other “tiers” are marketing, but convenient. “Tier 3” may connect to tier-1.

Zooming in 4 Tier 1 ISP Tier 2 Tier 1 ISP Tier 2 Tier 3 Tier 2: Regional/National Tier 3: Local

Economics of Packets Transit: Customer pays the provider Who is who? Usually, the one who can “live without” the other. AT&T does not need CMU, but CMU needs some ISP. What if both need each other? Peering. –Instead of sending packets over $$ transit, set up a direct connection and exchange traffic for free! (traceroute

Tier 1s must peer by definition Peering can give: –Better performance –Lower cost –More “efficient” routing (keeps packets local) But negotiating can be very hairy!

Business and peering Cooperative competition (brinksmanship) Much more desirable to have your peer’s customers –Much nicer to get paid for transit Peering “tiffs” are relatively common 31 Jul 2005: Level 3 Notifies Cogent of intent to disconnect. 16 Aug 2005: Cogent begins massive sales effort and mentions a 15 Sept. expected depeering date. 31 Aug 2005: Level 3 Notifies Cogent again of intent to disconnect (according to Level 3) 5 Oct :50 UTC: Level 3 disconnects Cogent. Mass hysteria ensues up to, and including policymakers in Washington, D.C. 7 Oct 2005: Level 3 reconnects Cogent During the “outage”, Level 3 and Cogent’s singly homed customers could not reach each other. (~ 4% of the Internet’s prefixes were isolated from each other)

Formalizing Relationships Provider: –Sends: all routes to customer and customer’s routes to everyone –Prefers: Route to customers over peers/providers Peering: –Sends: to customers but not to other peers or providers. –Prefers: Route to peer over providers Customer: –Sends: to customers but not to peers or other providers –Prefers: Anything else.

Enforcing relationships Two mechanisms: Export filters –Control what you send over BGP Import ranking –Controls which route you prefer of those you hear. –“LOCALPREF” – Local Preference. More later. Terminology nit: Both people at the BGP session level are called “BGP peers” regardless of business relationship. So you have a BGP peering session with your provider…

BGP version 4 Design goals: –Scalability as more networks connect –Policy: ASes hould be able to enforce business/routing policies Result: Flexible attribute structure, filtering –Cooperation under competition: ASes should have great autonomy for routing and internal architecture But BGP should provide global reachability

BGP Route Advertisement Autonomous Systems (ASes) Session (over TCP) Traffic

BGP messages –OPEN –UPDATE Announcements –Dest Next-hop AS Path … other attributes … – / Withdrawals –KEEPALIVE Keepalive timer / hold timer Key thing: The Next Hop attribute

Path Vector ASPATH Attribute –Records what ASes a route went through –Loop avoidance: Immediately discard –Short path heuristics Like distance vector, but fixes the count- to-infinity problem

Two Flavors of BGP External BGP (eBGP): exchanging routes between ASes Internal BGP (iBGP): disseminating routes to external destinations among the routers within an AS eBGP iBGP

Two flavors? Most ASes have more than one “border” router that talks to other peers Must disseminate information inside the AS and through the AS. –Must be loop-free. –Must have complete visibility. AS is a monolithic entity, so routers must be consistent For every external destination, each router picks the same route that it would have picked had it seen the best routes from each eBGP router in the AS.

iBGP and the gooey insides iBGP is not an IGP –Does not set up forwarding state internally! –Requires that you have an IGP so that all routers can talk to all other routers Original: Full mesh iBGP –Simple! All routers see all routes –But, causes scaling problems. Route Reflectors and Confederations

Scaling iBGP w/Route Reflectors A BGP router with clients –RR selects a single best-path for each prefix and sends it to all clients If RR learns a route via eBGP or iBGP from a client, it re-advertises to everyone If RR learns via non-client iBGP, it only advertises to clients (Figure. )

Problems with RRs Only 1? Single point of failure, etc. –But that’s pretty easy to fix. More serious: All clients take same path –May mess up traffic engineering Common solution: Hierarchicy of RRs Note: Properly configuring iBGP, RRs, eBGP and your IGP to be loop-free is actually quite difficult! –Not all RR configurations provide visibility –Inconsistency can lead to loops

Picking Paths By agreed-upon convention: –Weight (don’t worry about it) –Local Preference Used to express peer/provider/cust, etc., and outbound load balancing –Local route –AS Path length –Origin –MED – Multi-exit discriminator Set by the route sender as an inbound load balancing / locality suggestion

Load balancing Outbound is “easy” (you have control) –Set localpref according to goals Inbound is tough (nobody has to listen) –AS path prepending –MEDs Hot and Cold Potato Routing (picture) Often ignored unless contracts involved Practical use: tier-1 peering with a content provider

Failover BGP is designed for scaling more than fast failover –Many mechanisms favor this balance –Route flap damping, for example. If excess routing changes (“flapping”), ignore for some time. Has unexpected effects on convergence times. –Route advertisement/withdrawal timers in the 30 second range –Effect: tens of seconds to many minutes to recover from “simple” failures. –15-30 minute outages not uncommon.

Multi-homing (More later in the semester) Connect to multiple providers –Goal: Higher availability, more capacity Problems: –Provider-based addressing breaks –Everyone needs their own address space

BGP problems Convergence: BGP may explore many routes before finding the right new one. –Labovitz et al., SIGCOMM 2000 Correctness: routes may not be valid, visible, or loop-free. Security: There is none! –Some providers filter what announcements their customers can make. Not all do. –See paper discussion site for pointers

Summary Internet is a set of federated independent networks They must play nicely for everybody to be connected to everybody else Routing is done using BGP –Simple protocol –Extremely complex configuration flexibility –Many open research problems in policy, scalability, failover, configuration, correctness, security.

Acknowledgements Much of the outline of this lecture is derived from a similar course by Hari Balakrishnan. Several slides are from Nick Feamster