COS 561: Advanced Computer Networks

Slides:



Advertisements
Similar presentations
Multihoming and Multi-path Routing
Advertisements

Multihoming and Multi-path Routing
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)
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.
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.
1 Traffic Engineering for ISP Networks Jennifer Rexford IP Network Management and Performance AT&T Labs - Research; Florham Park, NJ
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.
Stable Internet Routing Without Global Coordination Jennifer Rexford Princeton University Joint work with Lixin Gao (UMass-Amherst)
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)
Internet Routing (COS 598A) Today: Multi-Homing Jennifer Rexford Tuesdays/Thursdays 11:00am-12:20pm.
Economic Incentives in Internet Routing Jennifer Rexford Princeton University
Stable Internet Routing Without Global Coordination Jennifer Rexford AT&T Labs--Research
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.
Backbone Networks Jennifer Rexford COS 461: Computer Networks Lectures: MW 10-10:50am in Architecture N101
Interdomain Routing Policy COS 461: Computer Networks Spring 2011 Mike Freedman 1.
Multipath Routing Jennifer Rexford Advanced Computer Networks Tuesdays/Thursdays 1:30pm-2:50pm.
Stable Internet Routing Without Global Coordination Jennifer Rexford AT&T Labs--Research
Stable Internet Routing Without Global Coordination Jennifer Rexford AT&T Labs--Research Joint work with Lixin Gao.
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
I-4 routing scalability Taekyoung Kwon Some slides are from Geoff Huston, Michalis Faloutsos, Paul Barford, Jim Kurose, Paul Francis, and Jennifer Rexford.
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network BGP Attributes and Path Selection Process.
CS 3700 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 8/20/15.
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks BGP.
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.
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.
Controlling the Impact of BGP Policy Changes on IP Traffic Jennifer Rexford IP Network Management and Performance AT&T Labs – Research; Florham Park, NJ.
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.
Stable Internet Routing Without Global Coordination Jennifer Rexford Princeton University Joint work with Lixin Gao,
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.
Mike Freedman Fall 2012 COS 561: Advanced Computer Networks Traffic Engineering.
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
Chapter 4: Network Layer
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:
Border Gateway Protocol
CS 3700 Networks and Distributed Systems
Controlling the Impact of BGP Policy Changes on IP Traffic
Border Gateway Protocol
Chapter 4: Network Layer
COS 561: Advanced Computer Networks
Interdomain Traffic Engineering with BGP
Cours BGP-MPLS-IPV6-QOS
Can Economic Incentives Make the ‘Net Work?
CS 4700 / CS 5700 Network Fundamentals
Department of Computer and IT Engineering University of Kurdistan
COS 561: Advanced Computer Networks
CS 3700 Networks and Distributed Systems
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
CS 3700 Networks and Distributed Systems
COS 561: Advanced Computer Networks
Chapter 4: Network Layer
Backbone Networks Mike Freedman COS 461: Computer Networks
BGP Policies Jennifer Rexford
COMP/ELEC 429/556 Introduction to Computer Networks
BGP Interactions Jennifer Rexford
COS 461: Computer Networks
Fixing the Internet: Think Locally, Impact Globally
BGP Instability Jennifer Rexford
Computer Networks Protocols
Network Layer: Internet Inter-Domain Routing
Presentation transcript:

COS 561: Advanced Computer Networks BGP Policies Jennifer Rexford Fall 2016 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks http://www.cs.princeton.edu/courses/archive/fall16/cos561/

Outline BGP route selection Ensuring BGP stability (Multi-homed traffic engineering) Propane paper (Ryan Beckett)

BGP Route Selection

Border Gateway Protocol ASes exchange info about who they can reach IP prefix: block of destination IP addresses AS path: sequence of ASes along the path Policies configured by the AS’s operator Path selection: which of the paths to use? Path export: which neighbors to tell? 3 “12.34.158.0/24: path (2,1)” “12.34.158.0/24: path (1)” 2 1 data traffic data traffic 12.34.158.5

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

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

BGP Decision Process on a Router Routing Information Base Store all BGP routes for each destination prefix Withdrawal message: remove the route entry Advertisement message: update the route entry Selecting the best route Consider all BGP routes for the prefix Apply rules for comparing the routes Select the one best route Use this route in the forwarding table Send this route to neighbors

BGP Decision Process Highest local preference Shortest AS path Set by import policies upon receiving advertisement Shortest AS path Included in the route advertisement Lowest origin type Included in advertisement or reset by import policy Smallest multiple exit discriminator Included in the advertisement or reset by import policy Smallest internal path cost to the next hop Based on intradomain routing protocol (e.g., OSPF) Smallest next-hop router id Final tie-break

Hot-Potato Routing dest multiple egress points New York San Francisco 9 10 ISP network this and the next slide explain the problem. explain egress point link weights determine both intradomain path and selection of egress points Dallas Hot-potato routing = route to closest egress point when there is more than one best BGP route to destination

Routing Policies Economics Traffic engineering Enforce business relationships Pick routes based on revenue and cost Get traffic out of the network as early as possible Traffic engineering Balance traffic over edge links Select routes with good end-to-end performance Security and scalability Filter routes that seem erroneous Prevent the delivery of unwanted traffic Limit the dissemination of small address blocks

BGP Stability Without Global Coordination http://www.cs.princeton.edu/courses/archive/fall16/cos561/papers/BGPstability01.pdf

Customer-Provider Relationship Customer pays provider for Internet access Provider exports customer’s routes to everybody Customer exports only to downstream customers Traffic to the customer Traffic from the customer advertisements d provider traffic provider customer d customer

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 Traffic to/from the peer and its customers advertisements peer peer traffic d

Three Restrictions on Policies Route export Do not export a route learned from one peers or provider, to another Route selection Prefer a route learned from a customer over a route learned from a peer or provider AS graph No cycle of provider-customer relationships Together: guarantee convergence to unique, stable route assignment

Valid and Invalid Paths Valid paths: “6 4 3 d” and “8 5 d” Invalid paths: “6 5 d” and “1 4 3 d” Valid paths: “1 2 d” and “7 d” Invalid path: “5 8 d” 1 2 3 4 d 5 6 Provider-Customer Peer-Peer 7 8

Solving the Convergence Problem Result Safety: guaranteed convergence to unique stable solution Inherent safety: holds under failures and policy changes Definitions System state: current best route at each AS Activating AS: re-do decision based on neighbor choices Sketch of (constructive) proof Find an activation sequence that leads to a stable state Any “fair” sequence (eventually) includes this sequence

Rough Sketch of the Proof Two phases Walking up the customer-provider hierarchy Walking down the provider-customer hierarchy 1 2 3 4 d 5 6 Provider-Customer Peer-Peer 7 8

System is stable because ASes act like this Two Interpretations System is stable because ASes act like this High-level argument Export and topology assumptions are reasonable Path selection rule matches with financial incentives Empirical results BGP routes for popular prefixes stable for ~10 days Most instability from a few flapping destinations ASes should follow rules for system stability Encourage operators to obey these guidelines … and provide ways to verify the configuration Need to consider more complex relationships

Multi-Homing

Why Connect to Multiple Providers? Reliability Reduced fate sharing Survive ISP failure Performance Multiple paths Select the best Financial Leverage through competition Game 95th-percentile billing model Provider 1 Provider 2

Outbound Traffic: Pick a BGP Route Easier to control than inbound traffic IP routing is destination based Sender determines where the packets go Control only by selecting the next hop Border router can pick the next-hop AS Cannot control selection of the entire path Provider 1 Provider 2 “(1, 3, 4)” “(2, 7, 8, 4)”

Outbound Traffic: Shortest AS Path No import policy on border router Pick route with shortest AS path Arbitrary tie break (e.g., router-id) Performance? Shortest path is not necessarily best Propagation delay or congestion Load balancing? Could lead to uneven split in traffic E.g., one provider with shorter paths E.g., too many ties with a skewed tie-break d s

Outbound Traffic: Primary and Backup Single policy for all prefixes High local-pref for session to primary provider Low load-pref for session to backup provider Outcome of BGP decision process Choose the primary provider whenever possible Use the backup provider when necessary But… What if you want to balance traffic load? What if you want to select better paths?

Outbound Traffic: Load Balancing Selectively use each provider Assign local-pref across destination prefixes Change the local-pref assignments over time Useful inputs to load balancing End-to-end path performance data E.g., active measurements along each path Outbound traffic statistics per destination prefix E.g., packet monitors or router-level support Link capacity to each provider Billing model of each provider

Outbound Traffic: What Kind of Probing? Lots of options HTTP transfer UDP traffic TCP traffic Traceroute Ping Pros and cons for each Accuracy Overhead Dropped by routers Sets off intrusion detection systems How to monitor the “paths not taken”?

Outbound Traffic: How Often to Change? Stub ASes have no BGP customers So, routing changes do not trigger BGP updates TCP flows that switch paths Out-of-order packets during transition Change in round-trip-time (RTT) Impact on the providers Uncertainty in the offered load Interaction with their own traffic engineering? Impact on other end users Good: move traffic off of congested paths Bad: potential oscillation as other stub ASes adapt?

Propane Paper Ryan Beckett