Inter-domain Routing Protocol

Slides:



Advertisements
Similar presentations
CS540/TE630 Computer Network Architecture Spring 2009 Tu/Th 10:30am-Noon Sue Moon.
Advertisements

© 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)
Does BGP Solve the Shortest Paths Problem? Timothy G. Griffin Joint work with Bruce Shepherd and Gordon Wilfong Bell Laboratories, Lucent Technologies.
Part IV BGP Modeling. 2 BGP Is Not Guaranteed to Converge!  BGP is not guaranteed to converge to a stable routing. Policy inconsistencies can lead to.
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.
Lecture 14: Inter-domain Routing Stability CS 268 class March 8 th, 2004 (slides from Timothy Griffin’s tutorial and Craig Labovitz’s NANOG talk)
Interdomain Routing and The Border Gateway Protocol (BGP) Courtesy of Timothy G. Griffin Intel Research, Cambridge UK
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
© 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.
ROUTING PROTOCOLS PART IV ET4187/ET5187 Advanced Telecommunication Network.
Inter-domain Routing Outline Border Gateway Protocol.
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.
CS 268: Lecture 9 Inter-domain Routing Protocol Scott Shenker and Ion Stoica Computer Science Division Department of Electrical Engineering and Computer.
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.
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.
CS 268: Lecture 11 Inter-domain Routing Protocol Karthik Lakshminarayanan UC Berkeley (substituting for Ion Stoica) (*slides from Timothy Griffin and Craig.
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.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
Michael Schapira, Princeton University Fall 2010 (TTh 1:30-2:50 in COS 302) COS 561: Advanced Computer Networks
Inter-domain Routing Outline Border Gateway Protocol.
CSci5221: BGP Policies1 Inter-Domain Routing: BGP, Routing Policies, etc. BGP Path Selection and Policy Routing Stable Path Problem and Policy Conflicts.
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.
1 Internet Routing 11/11/2009. Admin. r Assignment 3 2.
Working at a Small-to-Medium Business or ISP – Chapter 6
CS 3700 Networks and Distributed Systems
2017 session 1 TELE3118: Network Technologies Week 6: Network Layer Control Plane Inter-Domain Routing Protocols Some slides have been adapted from:
Boarder Gateway Protocol (BGP)
Border Gateway Protocol
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
CS 3700 Networks and Distributed Systems
An Analysis of BGP Convergence Properties
Border Gateway Protocol
Chapter 4: Network Layer
COS 561: Advanced Computer Networks
BGP supplement Abhigyan Sharma.
Interdomain Traffic Engineering with BGP
Introduction to Internet Routing
Lixin Gao ECE Dept. UMASS, Amherst
Routing.
Cours BGP-MPLS-IPV6-QOS
Department of Computer and IT Engineering University of Kurdistan
COS 561: Advanced Computer Networks
Routers Routing algorithms
CS 3700 Networks and Distributed Systems
Dan LI CS Department, Tsinghua University
COS 561: Advanced Computer Networks
Inter-domain Routing Outline Homework #3 solutions
CS 3700 Networks and Distributed Systems
Introduction to Computer Networks
COS 561: Advanced Computer Networks
Working at a Small-to-Medium Business or ISP – Chapter 6
COMP/ELEC 429/556 Introduction to Computer Networks
COS 461: Computer Networks
BGP Instability Jennifer Rexford
Computer Networks Protocols
Routing.
Network Layer: Internet Inter-Domain Routing
Presentation transcript:

Inter-domain Routing Protocol 2007

Overview An Introduction to BGP BGP and the Stable Paths problem Convergence of BGP in the real world The End-to-End Effects of Internet Path Selection

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

Internet Routing Internet organized as a two level hierarchy First level – autonomous systems (AS’s) AS – region of network under a single administrative domain AS’s run an intra-domain routing protocols Distance Vector, e.g., RIP Link State, e.g., OSPF Between AS’s runs inter-domain routing protocols, e.g., Border Gateway Routing (BGP) De facto standard today, BGP-4

Inter-domain Routing basics Internet is composed of over 20000 AS’s All AS’s must cooperate to ensure reachability BGP = Border Gateway Protocol Policy-Based routing protocol De facto inter-domain routing protocol of Internet Relatively simple protocol, but… Extremely complex configuration flexibility: entire world can see, and be impacted by, configuration mistakes Many open research problems in policy, scalability, failover, configuration, correctness, security.

BGP Basics Use TCP - AS’s exchange Border Gateway Protocol (BGP), based on Bellman-Ford path vector AS’s exchange reachability information through their BGP routers, only when routes change BGP routing information – a sequence of AS’s indicating the path traversed by a route General operations of a BGP router: Learns multiple paths Picks best path according to its AS policies Install best pick in IP forwarding tables

BGP Operations (Simplified) AS1 Establish session on TCP port 179 BGP session Exchange all active routes AS2 While connection is ALIVE exchange route UPDATE messages Exchange incremental updates

Various Types of ISPs Tier-1 ISPs have “default-free” routing tables (i.e., they don’t have any default routes), and typically have global reachability information. There are a handful of these today (about five or so). Tier 1 ISP Tier 1 ISP Tier 2 Tier 2 Tier 2 Tier 3 Tier 2: Regional/National Tier 3: Local

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.

Customers and Providers IP traffic provider customer customer Customer pays provider for access to the Internet

The “Peering” Relationship Peers provide transit between their respective customers Peers do not provide transit between peers Peers (often) do not exchange $$$ peer customer provider traffic allowed traffic NOT allowed

Peering Provides Shortcuts customer provider Peering also allows connectivity between the customers of “Tier 1” providers.

Peering Wars Peer Don’t Peer Reduces upstream transit costs Can increase end-to-end performance May be the only way to connect your customers to some part of the Internet (“Tier 1”) You would rather have customers Peers are usually your competitors Peering relationships may require periodic renegotiation Peering struggles are by far the most contentious issues in the ISP world! Peering agreements are often confidential.

Architecture of Dynamic Routing OSPF BGP AS 1 EIGRP IGP = Interior Gateway Protocol AS 2 Metric based: OSPF, IS-IS, RIP, EIGRP (cisco) EGP = Exterior Gateway Protocol Policy based: BGP

AS-Path Sequence of AS’s a route traverses Used for loop detection and to apply policy AS-3 AS-4 130.10.0.0/16 120.10.0.0/16 AS-5 AS-2 110.10.0.0/16 120.10.0.0/16 AS-2 AS-3 AS-4 AS-1 130.10.0.0/16 AS-2 AS-3 110.10.0.0/16 AS-2 AS-5

Four Types of BGP Messages Open : Establish a peering session. Keep Alive : Handshake at regular intervals. Notification : Shuts down a peering session. Update : Announcing new routes or withdrawing previously announced routes. announcement = prefix + attributes values

Two Types of BGP Neighbor Relationships External Neighbor (eBGP) in a different Autonomous Systems Internal Neighbor (iBGP) in the same Autonomous System AS1 iBGP is routed using Interior Gateway Protocol (IGP) such as OSPF/IS-IS eBGP iBGP AS2

iBGP Peers Must be Fully Meshed iBGP is needed to avoid routing loops within an AS Injecting external routes into IGP does not scale and causes BGP policy information to be lost BGP does not provide “shortest path” routing eBGP update iBGP updates iBGP neighbors do not announce routes received via iBGP to other iBGP neighbors.

Important BGP attributes Local PREF Local preference policy to choose “most” preferred route Multi-exit Discriminator (MED) Which peering point to choose? Import Rules What route advertisements do I accept? Export Rules Which routes do I forward to whom?

Route Selection Summary Highest Local Preference Enforce relationships Shortest ASPATH Lowest MED i-BGP < e-BGP Traffic engineering Lowest IGP cost to BGP egress Throw up hands and break ties Lowest router ID

Import Routes provider route customer route peer route ISP route From

Export Routes provider route peer route customer route ISP route To From provider To peer To peer To customer To customer filters block

Overview An Introduction to BGP BGP and the Stable Paths problem Convergence of BGP in the real world The End-to-End Effects of Internet Path Selection

What Problem is BGP solving? Underlying problem Distributed means of computing a solution Shortest Paths RIP, OSPF, IS-IS X? BGP Having an X can aid in the design of policy analysis algorithms& heuristics aid in the analysis and design of BGP and extensions help explain some BGP routing anomalies provide a fun way of thinking about the protocol Our focus

Q : How simple can X get? A: The Stable Paths Problem (SPP) 2 1 0 2 0 2 5 5 2 1 0 An instance of the SPP : 2 graph of nodes and edges node 0, called the origin for each non-zero node, a set or permitted paths to the origin—this set always contains the “null path” ranking of permitted paths at each node—null path is always least preferred 4 2 0 4 3 0 4 1 3 3 0 1 3 0 1 0 most preferred … least preferred (not null) 1 When modeling BGP : nodes represent BGP speaking border routers, and 0 represents a node originating some address block

A Solution to a Stable Paths Problem 2 A solution is an assignment of permitted paths to each node such that 2 1 0 2 0 5 5 2 1 0 2 node u’s assigned path is either the null path or is a path uwP, where wP is assigned to node w and {u,w} is an edge in the graph, each node is assigned the highest ranked path among those consistent with the paths assigned to its neighbors. 4 2 0 4 3 0 4 1 3 3 0 1 1 3 0 1 0 A Solution need not represent a shortest path tree, or a spanning tree.

Example: SHORTEST1 2 0 2 1 0 1 0 1 3 0 1 2 4 3 0 4 2 0 4 3 3 0

Example: SHORTEST1 (Solution) 2 0 2 1 0 1 0 1 3 0 1 2 4 3 0 4 2 0 4 3 3 0

Example: SHORTEST2 2 0 2 1 0 1 0 1 3 0 1 2 4 2 0 4 3 0 4 3 3 0

Example: SHORTEST2 (Solution) 2 0 2 1 0 1 0 1 3 0 1 2 4 2 0 4 3 0 4 3 3 0

Example: GOOD GADGET 2 1 0 2 0 1 3 0 1 0 1 2 4 3 0 4 2 0 4 3 3 0

Example: GOOD GADGET (Solution) 2 1 0 2 0 1 3 0 1 0 1 2 4 3 0 4 2 0 4 3 No another solution: 1 chooses (1 0) 2 chooses (2 1 0) 3 chooses (3 0) 4 chooses (4 3 0) 3 0

A Stable Paths Problem may have multiple solutions 1 2 0 1 0 1 2 0 1 0 1 2 0 1 0 1 1 1 2 2 2 2 1 0 2 0 2 1 0 2 0 2 1 0 2 0 DISAGREE First solution Second solution

Example: NAUGHTY GADGET 2 1 0 2 0 1 3 0 1 0 1 2 4 3 0 4 2 0 4 3 3 4 2 0 3 0

Example: NAUGHTY GADGET (Solution 1) 2 1 0 2 0 1 3 0 1 0 1 2 4 3 0 4 2 0 4 3 4 2 0 3 0 3

Example: NAUGHTY GADGET (Solution 2) 2 1 0 2 0 1 3 0 1 0 1 2 4 3 0 4 2 0 4 3 4 2 0 3 0 3

SPP explains possibility of BGP divergence BGP is not guaranteed to converge to a stable routing. Policy inconsistencies can lead to “livelock” protocol oscillations. See “Persistent Route Oscillations in Inter-domain Routing” by K. Varadhan, etc. ISI report, 1996 The SPP view : Solvable Can Diverge If you can’t solve this problem, then you don’t understand the protocol must diverge must converge

Example: NAUGHTY GADGET 2 1 0 2 0 1 3 0 1 0 1 2 4 3 0 4 2 0 4 3 3 4 2 0 3 0

That was one round of oscillation! Example: BAD GADGET 1 2 4 3 2 1 0 2 0 1 3 0 1 0 4 2 0 4 3 0 3 4 2 0 3 0 That was one round of oscillation!

Example: BAD GADGET 2 1 0 2 0 1 3 0 1 0 1 2 4 2 0 4 3 0 4 3 3 4 2 0 3 0 2 chooses (2 0) 4 chooses (4 2 0) 3 chooses (3 4 2 0) 1 chooses (1 0)

Example: BAD GADGET 2 1 0 2 0 1 3 0 1 0 1 2 4 2 0 4 3 0 4 3 3 4 2 0 3 0 2 chooses (2 0) 4 chooses (4 2 0) 3 chooses (3 4 2 0) 1 chooses (1 0) … 2 chooses (2 1 0) …

Example: BAD GADGET 2 1 0 2 0 1 3 0 1 0 1 2 4 2 0 4 3 0 4 3 3 4 2 0 3 0 2 chooses (2 0) 4 chooses (4 2 0) 3 chooses (3 4 2 0) 1 chooses (1 0) … 4 chooses ( ) …

Example: BAD GADGET 2 1 0 2 0 1 3 0 1 0 1 2 4 2 0 4 3 0 4 3 3 4 2 0 3 0 2 chooses (2 0) 4 chooses (4 2 0) 3 chooses (3 4 2 0) 1 chooses (1 0) … 3 chooses (3 0) …

Example: BAD GADGET 2 1 0 2 0 1 3 0 1 0 1 2 4 2 0 4 3 0 4 3 3 4 2 0 3 0 2 chooses (2 0) 4 chooses (4 2 0) 3 chooses (3 4 2 0) 1 chooses (1 0) … 4 chooses (4 3 0) …

Example: BAD GADGET 2 1 0 2 0 1 3 0 1 0 1 2 4 2 0 4 3 0 4 3 3 4 2 0 3 0 2 chooses (2 0) 4 chooses (4 2 0) 3 chooses (3 4 2 0) 1 chooses (1 0) … 1 chooses (1 3 0) …

Example: BAD GADGET 2 1 0 2 0 1 3 0 1 0 1 2 4 2 0 4 3 0 4 3 3 4 2 0 3 0 2 chooses (2 0) 4 chooses (4 2 0) 3 chooses (3 4 2 0) 1 chooses (1 0) … 2 chooses (2 0) …

Example: BAD GADGET 2 1 0 2 0 1 3 0 1 0 1 2 4 2 0 4 3 0 4 3 3 4 2 0 3 0 2 chooses (2 0) 4 chooses (4 2 0) 3 chooses (3 4 2 0) 1 chooses (1 0) … 4 chooses (4 2 0) …

That was one round of oscillation! Example: BAD GADGET 2 1 0 2 0 1 3 0 1 0 1 2 4 2 0 4 3 0 4 3 3 4 2 0 3 0 2 chooses (2 0) 4 chooses (4 2 0) 3 chooses (3 4 2 0) 1 chooses (1 0) … 3 chooses (3 4 2 0) … That was one round of oscillation!

That was one round of oscillation! Example: BAD GADGET 2 1 0 2 0 1 3 0 1 0 1 2 4 2 0 4 3 0 4 3 3 4 2 0 3 0 2 chooses (2 0) 4 chooses (4 2 0) 3 chooses (3 4 2 0) 1 chooses (1 0) … 1 chooses (1 0) … That was one round of oscillation!

BAD GADGET : No Solution 1 2 4 3 2 1 0 2 0 1 3 0 1 0 4 2 0 4 3 0 3 4 2 0 3 0 In a BGP-like protocol each node local decisions at least one node can always improve its path Result: persistent oscillation

SURPRISE : Beware of Backup Policies 1 2 3 2 1 0 2 0 1 3 0 1 0 3 4 2 0 3 0 4 4 0 4 2 0 4 3 0 BGP is not robust : it is not guaranteed to recover from network failures. Becomes BAD GADGET if link (4, 0) goes down !

PRECARIOUS Has a solution, but can get “trapped” 4 1 3 6 5 2 4 3 1 0 4 5 3 1 2 0 4 3 1 2 0 1 2 1 2 0 1 0 2 1 0 2 0 3 1 0 3 1 2 0 3 6 5 5 3 1 0 5 6 3 1 2 0 5 3 1 2 0 6 3 1 0 6 4 3 1 2 0 6 3 1 2 0 This part has a solution only when node 1 is assigned the direct path (1 0). As with DISAGREE, this part has two distinct solutions

Theoretical Results The problem of determining whether an instance of stable paths problem is solvable is NP-complete Shortest path route selection is provably safe

What is to be done? Inter-AS coordination Static Approach Dynamic Approach Extend BGP with a dynamic means of detecting and suppressing policy-based oscillations? Inter-AS coordination Automated Analysis of Routing Policies (This is very hard). These approaches are complementary

Overview An Introduction to BGP BGP and the Stable Paths problem Convergence of BGP in the real world The End-to-End Effects of Internet Path Selection

Convergence in the real-world? [Labovitz99] Experimental results from two year study which measured 150,000 BGP faults injected into peering sessions at several ISPs Found: Internet averages 3 minutes to converge after failover Some multihomed failovers (short to long ASPath) require 15 minutes

BGP Convergence Example AS0 AS1 AS2 AS3 *B R via AS3 B R via AS0,AS3 B R via AS2,AS3 B R via AS0,AS3 B R via AS2,AS3 B R via AS1,AS3 * *B R via 203 *B R via 013 B R via 103

Convergence Result If we assume unbounded delay on BGP processing and propagation Full BGP mesh BGP peers Constrained shortest path first selection algorithm Convergence time of BGP is O(N!), where N number of BGP speakers There exists possible ordering of messages such that BGP will explore all possible ASPaths of all possible lengths

Overview An Introduction to BGP BGP and the Stable Paths problem Convergence of BGP in the real world The End-to-End Effects of Internet Path Selection

End-to-end effects of Path Selection Goal of study: Quantify and understand the impact of path selection on end-to-end performance Basic metric Let X = performance of default path Let Y = performance of best path Y-X = cost of using default path Technical issues How to find the best path? How to measure the best path?

Approximating the best path Key Idea Use end-to-end measurements to extrapolate potential alternate paths Rough Approach Measure paths between pairs of hosts Generate synthetic topology – full NxN mesh Conservative approximation of best path Question: Given a selection of N hosts, how crude is this approximation?

Methodology For each pair of end-hosts, calculate: Average round-trip time Average loss rate Average bandwidth Generate synthetic alternate paths (based on long-term averages) For each pair of hosts, graph difference between default path and alternate path

Courtesy: Stefan Savage

Courtesy: Stefan Savage

Courtesy: Stefan Savage

Courtesy: Stefan Savage

Why Path Selection is imperfect? Technical Reasons Single path routing Non-topological route aggregation Coarse routing metrics (AS_PATH) Local policy decisions Economic Reasons Disincentive to offer transit Minimal incentive to optimize transit traffic