BGP: Inter-Domain Routing Protocol Noah Treuhaft U.C. Berkeley.

Slides:



Advertisements
Similar presentations
The Impact of Policy and Topology on Internet Routing Convergence NANOG 20 October 23, 2000 Abha Ahuja InterNap *In collaboration with.
Advertisements

Internet Routing Instability Craig Labovitz, G. Robert Malan, Farham Jahanian University of Michigan Presented By Krishnanand M Kamath.
Part IV: BGP Routing Instability. March 8, BGP routing updates  Route updates at prefix level  No activity in “steady state”  Routing messages.
Advanced Networks 1. Delayed Internet Routing Convergence 2. The Impact of Internet Policy and Topology on Delayed Routing Convergence.
Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
CS540/TE630 Computer Network Architecture Spring 2009 Tu/Th 10:30am-Noon Sue Moon.
Network Layer4-1 Hierarchical Routing scale: with 200 million destinations: r can’t store all dest’s in routing tables! r routing table exchange would.
Lecture 9 Overview. Hierarchical Routing scale – with 200 million destinations – can’t store all dests in routing tables! – routing table exchange would.
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.
CSC 600 Internetworking with TCP/IP Unit 6a: IP Routing and Exterior Routing Protocols (Ch. 14, 15) Dr. Cheer-Sun Yang Spring 2001.
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.
Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What’s inside a router 4.4 IP: Internet Protocol –Datagram format.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
Internet Routing Instability Labovitz et al. Sigcomm 1997 Largely adopted from Ion Stoica’s slide at UCB.
Delayed Internet Routing Convergence Craig Labovitz, Abha Ahuja, Abhijit Bose, Farham Jahanian Presented By Harpal Singh Bassali.
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)
14 – Inter/Intra-AS Routing
© 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.
Border Gateway Protocol(BGP) L.Subramanian 23 rd October, 2001.
Inter-domain Routing Outline Border Gateway Protocol.
Inter-domain Routing Don Fussell CS 395T Measuring Internet Performance.
Dr. John P. Abraham Professor University of Texas Pan American Internet Routing and Routing Protocols.
14 – Inter/Intra-AS Routing Network Layer Hierarchical Routing scale: with > 200 million destinations: can’t store all dest’s in routing tables!
Internet Routing: Measurement, Modeling, and Analysis Dr. Jia Wang AT&T Labs Research Florham Park, NJ 07932, USA
Chapter 22 Network Layer: Delivery, Forwarding, and Routing
I-4 routing scalability Taekyoung Kwon Some slides are from Geoff Huston, Michalis Faloutsos, Paul Barford, Jim Kurose, Paul Francis, and Jennifer Rexford.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Introduction to BGP.
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.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
RSC Part II: Network Layer 6. Routing in the Internet (2 nd Part) Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are,
Introduction 1 Lecture 19 Network Layer (Routing Protocols) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &
CS 3830 Day 29 Introduction 1-1. Announcements r Quiz 4 this Friday r Signup to demo prog4 (all group members must be present) r Written homework on chapter.
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.
Border Gateway Protocol
Network Layer r Introduction r Datagram networks r IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP r What’s inside a router r Routing.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
Xuan Zheng (modified by M. Veeraraghavan) 1 BGP overview BGP operations BGP messages BGP decision algorithm BGP states.
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.
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.
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.
Routing in the Inernet Outcomes: –What are routing protocols used for Intra-ASs Routing in the Internet? –The Working Principle of RIP and OSPF –What is.
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.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
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.
Border Gateway Protocol. Intra-AS v.s. Inter-AS Intra-AS Inter-AS.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
1 Internet Routing 11/11/2009. Admin. r Assignment 3 2.
Abha Ahuja InterNap Craig Labovitz Microsoft Research
Border Gateway Protocol
BGP supplement Abhigyan Sharma.
COS 561: Advanced Computer Networks
Routers Routing algorithms
COS 561: Advanced Computer Networks
COMP/ELEC 429/556 Introduction to Computer Networks
Computer Networks Protocols
Presentation transcript:

BGP: Inter-Domain Routing Protocol Noah Treuhaft U.C. Berkeley

The need for routing in the Internet Need to get packets from source to destination How do you do this? –Network is a collection of point-to-point links connected by routers –Routers’ decisions determine which links you transit –Routing proceeds hop by hop (contrast with source routing) –How do you determine the next hop? Could configure it statically But the Internet needs a routing system and protocol to exchange complex and changing routing info

External and internal gateway protocols Autonomous System (AS) – a single administrative domain (ISP, customer) External Gateway Protocols exchange routing information between routers of different AS’s. –Goal: support routing policies, scale Internal Gateway Protocols exchange routing information among an AS’s own routers –Goal: optimize route taken

Distance vector protocols messages relative to sender –Essentially a routing table Contrast with link state protocols – messages “flooded” to all nodes –Shortest path first (Dijkstra) algorithm builds routing table

Classless inter-domain routing Internet routing was once based on network classes Trading classes for variable-length prefixes allows aggregation –Greater flexibility in address allocation –Less routing information required

BGP communication A Border Gateway Protocol (BGP) session consists of a TCP connection between two routers –If connection fails, associated state is dropped. Message types: OPEN, UPDATE, NOTIFICATION, KEEPALIVE UPDATE format:

BGP attributes ORIGIN – BGP speaker’s unique identifier AS-PATH – AS’s that relayed this message NEXT-HOP MULTI-EXIT-DISCRIMINATOR (MED) – metric for multiple paths between 2 AS’s LOCAL-PREF – metric for multiple paths to same prefix COMMUNITY – update categorization

Internal-BGP Same messages, attributes as External-BGP Different rules for readvertising prefixes –Does not readvertise routes from one I-BGP speaker to another –Prevents looping (E-BGP uses the ASN and AS-PATH for this) Route reflection: adding hierarchy for scalability AS confederation: subdivision of a logical AS into multiple AS’s

Route Information Propagation In the Internet Using BGP Matthew Denny U.C. Berkeley

Introduction Internet consists of different Autonomous Systems (ASs), which consist of admin. defined domains of hosts (e.g. ISPs, universities, companies, etc.) Hosts in each AS must be able to send packets to any other host on the Internet ASs have routers which exchange routing info. with other ASs using BGP –How do ASs ensure “full reachability” of the Internet, given no central authority? –How well does the current route information propagation scheme perform?

Outline Introduction Structure of ASs BGP policies of ASs Why does it work? Now, does it really work?

Structure of ASs Somewhat hiearchical (but becoming less so) 3 Types of relationships –Customer-Provider: customer AS pays provider AS for access to rest of Internet: provider provides transit service End customers pay ISPs, and ISPs in lower “tiers” pay ISPs in higher tiers –Peers: ASs that allow each other transit service ISPs on same tier, usually involves no fees –Customer-Backup Provider: Provider if primary provider fails. May be peers otherwise Use BGP to communicate route info. at Network Exchange Points (NAPs) and private peering points

AS BGP Policies Customers export all of their routes and routes of their customers to providers, but not routes from peers or other providers Peers export their routes and routes of their customers to other peers, but not routes from peers or other providers Providers export all of their routes to customers Usually, backup providers “promoted” to provider from peer upon failure of primary If an AS recieves 2 routes for same prefix, usually exports the best by some path selection algorithm

AS BGP Policies AS1AS2 AS3AS / / / / / / / / / / / / / / / / / / / /26

AS BGP Policy Details Export Policy –To indicate priority of route, most ASs use communities [Labovitz 2000b] Import Policy –AS Path loop detection, not usually selective. Use communities to infer local pref Path Selection –If AS has multiple routes for same prefix, best route decided by local pref; AS Path and MED are tiebreakers

How does it work? Full Reachability –Provider/Customer relationships form a DAG Assumes everyone below tier 1 has a provider Convergence –Can diverge, and checking for convergence is an NP Complete Problem [Griffin 99] –Assuming strict preferences on route selection and the above structure, [Gao 2000] proves that BGP systems will converge –Will this hold as peering becomes more common?

Now, Does it Really Work? Potential Problems –Route Instability Large number of unneeded messages leads to router CPU flooding –Routers lose Keep-Alive messages go “down” “Route Flap” Problem –Route Convergence Routes that change (e.g. failover to a backup provider) may take a long time to propagate correctly through system Can cause intermittent loss of connectivity

Route Instability Study Labovitz et. al. performed a study to measure instability in BGP Updates [Labovitz 1997, 1999] –Logged BGP update messages at 5 NAPs , and analyzed instability events Routes withdrawn that are re-announced, and “pathological” withdraws Some events due to route or policy instability, or pathological behavior

Initial Instability Findings In 1996, 45,000 prefixes, 1,500 unique AS paths, 1,300 ASs, 3-6 million BGP update messages/day Messages dominated by pathological withdraws Redundant updates have strong periodicity of 60 sec. Redundant Updates correspond with network usage Instability not dominated by small number of ASs or routes

Many Problems due to Router Software Implementation Pathological withdraws due to “stateless BGP” –Announce withdraws to router peers that did not originally receive an announcement Periodicity due to min. advertisement timer that was fixed in one BGP implementation New methods developed to prevent route flaps –BGP messages have higher priority than data, esp Keep-Alives. Labovitz et. al. contacted router vendors, who released patches to fix these bugs

Follow-up Results June 1996, 2M pathological withdrawls/day, 10K in June 1998 –Due to at least partial “stateful BGP” in most routers In 1998, duplicate announcements 40% of traffic –Bug in router software where non-transitive attribute is errantly “propagated” –Min. advertisement timer allows routes to change back to original value before transmission; router still sends these routes In 1998, vast majority of route fluctuation due to MED changes –Come from 2 ISPs that dynamically assign MEDs from IGP. Effectively make IGP changes globally visible

Route Convergence For a set of real host addresses, Labovitz et. al. inject routing events and observe convergence behavior [Labovitz 2000] –Route failures, new routes, and routes with new path –Simulated backup routes by inflating AS path –Analyzed BGP traffic –Tested faults affect on routes by sending ICMP messages to web sites from set of addresses

Convergence Findings Delay in failovers ave. 3 min., but up to 15 min. (more than 30 sec. expected) Messages/event and convergence time/event varies from ISP to ISP Significant increase in packet loss and latency around faults Routers use per peer min. advertisement timers, which delays convergence Wait for min. advertisement timer to send updates that have loops in them; should use sender side loop detection instead

Conclusions Describe structure of ASs in Internet and how they exchange routing information via BGP Discuss work that shows that this structure should work given specific assumptions Discuss work that shows, in practice, Internet had instability and convergence problems, but many of these were due to implementation problems

References [Gao 2000] L. Gao and J, Rexford “Stable Internet Routing Without Global Coordination”, SIGMETRICS 2000 [Labovitz 1997] C. Labovitz, G.R. Malan, F. Jahanian, “Internet Routing Instability”, SIGCOMM 97. [Labovitz 1999] C. Labovitz, G.R. Malan, F. Jahanian, “Origins of Internet Routing Instability”, INFOCOMM 1999 [Labovitz 2000] C. Labovitz, A. Ahuja, A. Bose, F. Jahanian. “Delayed Internet Routing Convergence”, SIGCOMM 1999 [Labovitz 2000b] C. Labovitz, R. Wattenhofer, S. Venkatachary, A. Ahuja. “The Impact of Internet Policy and Topology on Delayed Routing Convergence”. Microsoft Tech. Report MSR-TR , 2000.