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)

Slides:



Advertisements
Similar presentations
Multihoming and Multi-path Routing
Advertisements

Multihoming and Multi-path Routing
Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
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.
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.
Part II: Inter-domain Routing Policies. March 8, What is routing policy? ISP1 ISP4ISP3 Cust1Cust2 ISP2 traffic Connectivity DOES NOT imply reachability!
Univ. of TehranComputer Network1 Computer Networks Computer Networks (Graduate level) University of Tehran Dept. of EE and Computer Engineering By: Dr.
TIE Breaking: Tunable Interdomain Egress Selection Renata Teixeira Laboratoire d’Informatique de Paris 6 Université Pierre et Marie Curie with Tim Griffin.
Routing Jinyang Li. Administravia Hand in PS1 to Hui Zhang before you leave! me project teamlist by Oct-1.
Practical and Configuration issues of BGP and Policy routing Cameron Harvey Simon Fraser University.
Instability of BGP ASPP Supervised by Prof. Chiu and Prof. John Presented by Hui Wang.
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.
Slide -1- February, 2006 Interdomain Routing Gordon Wilfong Distinguished Member of Technical Staff Algorithms Research Department Mathematical and Algorithmic.
Dynamics of Hot-Potato Routing in IP Networks Renata Teixeira (UC San Diego) with Aman Shaikh (AT&T), Tim Griffin(Intel),
Computer Networking Lecture 10: Inter-Domain Routing
Internet Routing (COS 598A) Today: Interdomain Traffic Engineering Jennifer Rexford Tuesdays/Thursdays.
Ion Stoica October 2, 2002 (* this presentation is based on Lakshmi Subramanian’s slides) EE 122: Inter-domain routing – Border Gateway Protocol (BGP)
Internet Routing (COS 598A) Today: Multi-Homing Jennifer Rexford Tuesdays/Thursdays 11:00am-12:20pm.
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.
Border Gateway Protocol(BGP) L.Subramanian 23 rd October, 2001.
BGP Attributes and Path Selections
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
Network Sensitivity to Hot-Potato Disruptions Renata Teixeira (UC San Diego) with Aman Shaikh (AT&T), Tim Griffin(Intel),
Authors Renata Teixeira, Aman Shaikh and Jennifer Rexford(AT&T), Tim Griffin(Intel) Presenter : Farrukh Shahzad.
© 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.
Redundancy, Symmetry and Load Balancing Presented by Sagi Shporer.
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.
Border Gateway Protocol
Dynamics of Hot-Potato Routing in IP Networks Jennifer Rexford AT&T Labs—Research Joint work with Renata Teixeira (UCSD),
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.
BGP4 - Border Gateway Protocol. Autonomous Systems Routers under a single administrative control are grouped into autonomous systems Identified by a 16.
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.
Controlling the Impact of BGP Policy Changes on IP Traffic Jennifer Rexford IP Network Management and Performance AT&T Labs – Research; Florham Park, NJ.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #08: SOLUTIONS Shivkumar Kalyanaraman: GOOGLE: “Shiv.
Interdomain Routing and BGP Routing NJIT May 3, 2003 Timothy G. Griffin AT&T Research
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.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—5-1 Customer-to-Provider Connectivity with BGP Connecting a Multihomed Customer to a Single Service.
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
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.
Inter-Domain Routing: BGP, Routing Policies, etc.
CS 3700 Networks and Distributed Systems
Border Gateway Protocol
CS 3700 Networks and Distributed Systems
Border Gateway Protocol
COS 561: Advanced Computer Networks
BGP supplement Abhigyan Sharma.
Interdomain Traffic Engineering with BGP
Module Summary BGP is a path-vector routing protocol that allows routing policy decisions at the AS level to be enforced. BGP is a policy-based routing.
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
BGP Policies Jennifer Rexford
COS 561: Advanced Computer Networks
BGP Instability Jennifer Rexford
Presentation transcript:

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)

2 Real World: Multiple Links Between Domains Client Web server Multiple links Middle of path

3 BGP Decision Process Highest local preference Lowest AS path length Lowest MED (with same next hop AS) I-BGP < E-BGP Lowest IGP cost to next hop Lowest router ID of BGP speaker

4 BGP Route Selection Process Prefer largest LOCAL-PREF If same LOCAL-PREF prefer the shortest AS-PATH. If AS-PATHs are the same prefer the lowest MED. If MED is same, prefer min-cost NEXT-HOP If routes learned from EBGP or IBGP, prefer paths learnt from EBGP Final tie-break: Prefer the route with I-BGP ID (IP address)

5 Route Selection Summary Highest Local Preference Shortest ASPATH Lowest MED i-BGP < e-BGP Lowest IGP cost to BGP egress Lowest router ID traffic engineering Enforce relationships

6 Hot-Potato Routing San Francisco Dallas New York Hot-potato routing = route to closest egress point when there is more than one route to destination ISP network 9 10 dest multiple egress points -All traffic from customer to peers -All traffic to customer prefixes with multiple connections

7 Hot-Potato Routing Change San Francisco Dallas New York ISP network dest failure - planned maintenance - traffic engineering 11 Routes to thousands of destinations switch egress points!!! Consequences:  Transient forwarding instability  Traffic shift  Interdomain routing changes 11

8 Tuning BGP to control the outgoing traffic Principle  To control its outgoing traffic, a domain must tune the BGP decision process on its own routers How to tune the BGP decision process ? Filter some routes learned from some peers  local-pref usual method of enforcing economical relationships  MED usually, MED value is set when sending a route but some routers allow to insert a MED in a received route  allows to prefer routes over others with same AS Path length  IGP cost to nexthop setting of IGP cost for intradomain traffic engineering several routes in forwarding table instead of one

9 Local Preference AS1 AS2 MED Load-Balancing Knobs in BGP LOCAL-PREF: outbound traffic, local preference (box-level knob) MED: Inbound-traffic, typically from the same ISP (link-level knob)

10 Local Preference Attribute Local to AS  It is never advertised to an eBGP peer. Used to influence BGP path selection AS /24 AB / Preferred by all AS3847 routers /24 80 AS 3847 G FE CD Default 100  Highest local-pref preferred For example, you can express the policy “prefer private connect” by making the “local_pref” be 150 and leaving all other peers at 100.

11 Controlling incoming traffic by outbound BGP routes Outbound BGP routes make traffic come in  It’s a lot harder to control inbound traffic as other ASs’ policies complicate your life! If you are a stub AS with a single connection  Not much you need to do except to filter out routes not in your AS If you are a multi-homed stub AS,  Want to control through which link/provider that traffic to certain destinations in your AS may take, to load balance or for back-up If you are an ISP, you want to minimize transit cost,  carry transit traffic from customers only !  use “hot-potato” routing to hand off traffic to peers/providers as soon as possible  to load balance, or to ensure reliability with back-up routes

12 Why Inbound Traffic is Hard to Manage Other ASes decide how to send to you  Destination-based routing  Other ASes decide which path to take  Based on their own policies AS 2 doesn’t know how AS 1 will send traffic toward p p

13 Tuning BGP to control the incoming traffic Principle  To control its incoming traffic, a domain must tune the BGP advertisements sent by its own routers How to tune the BGP advertisements ?  Do not announce some routes to from some peers advertise some prefixes only to some peers  MED insert MED=IGP cost, usually requires bilateral agreement  AS-Path artificially increase the length of AS-Path

14 AS Prepending Artificial increasing AS path length  Prepend your own AS in the path  E.g., turn “3 4 5” into “ ”  Hope to make the path less attractive 1 3 “ ” “3 4 5”

15 ASPATH Padding: Shed inbound traffic Padding will (usually) force inbound traffic from AS 1 to take primary link AS /24 ASPATH = customer AS 2 provider /24 backupprimary /24 ASPATH = 2

16 Padding May Not Shut Off All Traffic AS /24 ASPATH = customer AS 2 provider /24 ASPATH = 2 AS 3 provider AS 3 will send traffic on “backup” link because it prefers customer routes and local preference is considered before ASPATH length! Padding in this way is often used as a form of load balancing backupprimary

17 Multiple Exit Discriminator (MED) Tell your neighbor what you want  MED attribute to indicate receiver preference  Decision process picks route with smallest MED  Can use MED for “cold potato” routing  But, have to get your neighbor to accept MEDs 1 3 “3 4 5” with MED=2 “3 4 5” with MED=1

18 Hot Potato Routing: Closest Egress Point / IGP distances egress 1 egress 2 This Router has two BGP routes to /24. Hot potato: get traffic off of your network as Soon as possible. Go for egress 1!

19 Getting Burned by the Hot Potato High bandwidth Provider backbone Low bandwidth customer backbone Heavy Content Web Farm tiny http request huge http reply SFFNYC San Diego

20 Cold Potato Routing with MEDs (Multi-Exit Discriminator Attribute) Heavy Content Web Farm /24 MED = /24 MED = 56 This means that MEDs must be considered BEFORE IGP distance! Prefer lower MED values Note1 : some providers will not listen to MEDs Note2 : MEDs need not be tied to IGP distance

21 MEDs Can Export Internal Instability Heavy Content Web Farm /24 MED = /24 MED = 56 OR FLAP