BGP Wedgies ---- Bad Policy Interactions that Cannot be Debugged

Slides:



Advertisements
Similar presentations
Introduction to IP Routing Geoff Huston. Routing How do packets get from A to B in the Internet? A B Internet.
Advertisements

Multihoming and Multi-path Routing
Multihoming and Multi-path Routing
Network Layer: Internet-Wide Routing & BGP Dina Katabi & Sam Madden.
Fundamentals of Computer Networks ECE 478/578 Lecture #18: Policy-Based Routing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
Interdomain Routing and The Border Gateway Protocol (BGP) CL Oct 27, 2004 Timothy G. Griffin Intel Research, Cambridge UK
Best Practices for ISPs
1 Tutorial 5 Safe “Peering Backup” Routing With BGP Based on:
Tutorial 5 Safe Routing With BGP Based on: Internet.
Mini Introduction to BGP Michalis Faloutsos. What Is BGP?  Border Gateway Protocol BGP-4  The de-facto interdomain routing protocol  BGP enables policy.
Structure of the Internet Update for 1 st H/Wk We will start lab next week Paper presentation at the end of the session Next Class MPLS.
Changed made by MF on 29/10/04 Delete Change Add –All slides Obtained Geoff Huston’s review – done on 26/10/2004 Obtained Doc Team’s proof read - done.
Internet Networking Spring 2004 Tutorial 5 Safe “Peering Backup” Routing With BGP.
W4140 Network Laboratory Lecture 9 Nov 12 - Fall 2006 Shlomo Hershkop Columbia University.
On the Death of BGP MSN July 8, 2004 Timothy G. Griffin Intel Research, Cambridge UK
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.
Inherently Safe Backup Routing with BGP Lixin Gao (U. Mass Amherst) Timothy Griffin (AT&T Research) Jennifer Rexford (AT&T Research)
BGP Wedgies ---- Bad Policy Interactions that Cannot be Debugged NANOG 31 May 23-25, 2004 Timothy G. Griffin Intel Research, Cambridge UK
Economic Incentives in Internet Routing Jennifer Rexford Princeton University
BGP Wedgies ---- Bad Policy Interactions that Cannot be Debugged JaNOG / Kyushu
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.
Building a Strong Foundation for a Future Internet Jennifer Rexford ’91 Computer Science Department (and Electrical Engineering and the Center for IT Policy)
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
Inter-domain Routing Outline Border Gateway Protocol.
NOC Lessons Learned TEIN2 and CERNET Xing Li
Redundancy, Symmetry and Load Balancing Presented by Sagi Shporer.
Egress Route Selection for Interdomain Traffic Engineering Design considerations beyond BGP.
Métaroutage L’école d’été RÉSCOM 2007 Calcotoggio, Corse, 21 Juin
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.
CS 4396 Computer Networks Lab BGP. Inter-AS routing in the Internet: (BGP)
© 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.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—3-1 Route Selection Using Policy Controls Using Multihomed BGP Networks.
Michael Schapira, Princeton University Fall 2010 (TTh 1:30-2:50 in COS 302) COS 561: Advanced Computer Networks
Expectation for IPv6 Dec.19th, 2000 Noriyuki Kishikawsa NEC Corporation.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—5-1 Customer-to-Provider Connectivity with BGP Connecting a Multihomed Customer to Multiple Service.
MPLS Virtual Private Networks (VPNs)
Routing and Addressing in Next-Generation EnteRprises (RANGER)
CS 3700 Networks and Distributed Systems
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
CS 3700 Networks and Distributed Systems
Keeping local stuff local
Border Gateway Protocol
COS 561: Advanced Computer Networks
Interdomain Traffic Engineering with BGP
Lame DNS Server Sweeping
Introduction to Internet Routing
Net 323 D: Networks Protocols
Net 323 D: Networks Protocols
Guide: Dr. Vishal Sharma Group 8: Pujara Chirag ( )
Cours BGP-MPLS-IPV6-QOS
Netscope: Traffic Engineering for IP Networks
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
An Update on Multihoming in IPv6 Report on IETF Activity
Lessons Learned TEIN2 and CERNET
COS 561: Advanced Computer Networks
Nadi, Fiji 2 September :00-17:30
BGP Policies Jennifer Rexford
COMP/ELEC 429/556 Introduction to Computer Networks
BGP Interactions Jennifer Rexford
Report for APNIC Member Meeting Friday 3rd September Nadi, Fiji
COS 561: Advanced Computer Networks
BGP Instability Jennifer Rexford
Presentation transcript:

BGP Wedgies ---- Bad Policy Interactions that Cannot be Debugged tim.griffin@intel.com http://www.cambridge.intel-research.net/~tgriffin/ APNIC 18 Routing SIG September 2, 2004 Fiji

What is a BGP Wedgie? BGP policies make sense locally Interaction of local policies allows multiple stable routings Some routings are consistent with intended policies, and some are not If an unintended routing is installed (BGP is “wedged”), then manual intervention is needed to change to an intended routing When an unintended routing is installed, no single group of network operators has enough knowledge to debug the problem ¾ wedgie full wedgie

¾ Wedgie Example peer peer AS 1 implements backup link by sending AS 2 a “depref me” community. AS 2 implements this community so that the resulting local pref is below that of routes from it’s upstream provider (AS 3 routes) AS 3 AS 4 provider provider customer AS 2 primary link provider backup link customer customer AS 1

And the Routings are… Intended Routing Unintended Routing AS 1 AS 2 Note: this would be the ONLY routing if AS2 translated its “depref me” community to a “depref me” community of AS 3 Note: This is easy to reach from the intended routing just by “bouncing” the BGP session on the primary link.

Recovery Requires manual intervention Can be done in AS 1 or AS 2 AS 1 Bring down AS 1-2 session Bring it back up! Requires manual intervention Can be done in AS 1 or AS 2

Load Balancing Example peer peer AS 3 AS 4 provider provider customer customer AS 2 AS 5 primary link for prefix P2 backup link for prefix P1 primary link for prefix P1 backup link for prefix P2 AS 1 Recovery for prefix P1 may cause a BGP wedgie for prefix P2 …

Full Wedgie Example AS 3 AS 4 AS 2 AS 5 AS 1 AS 1 implements backup links by sending AS 2 and AS 3 a “depref me” communities. AS 2 implements its community so that the resulting local pref is below that of its upstream providers and it’s peers (AS 3 and AS 5 routes) AS 5 implements its community so that the resulting local pref is below its peers (AS 2) but above that of its providers (AS 3) peer peer AS 3 AS 4 provider provider customer customer AS 2 peer peer AS 5 backup links provider primary link customer customer AS 1

And the Routings are… Intended Routing Unintended Routing AS 3 AS 4

Recovery?? AS 3 AS 4 AS 3 AS 4 AS 2 AS 5 AS 2 AS 5 AS 1 AS 1 Bring down AS 1-2 session Bring up AS 1-2 session

Recovery AS 3 AS 4 AS 1 AS 2 AS 3 AS 4 AS 5 AS 3 AS 4 AS 2 AS 5 AS 2 Bring down AS 1-2 session AND AS 1-5 session Bring up AS 1-2 session AND AS 1-5 session Try telling AS 5 that it has to reset a BGP session that is not associated with a BEST route!

A Global ISP (or Corporate Intranet) Implemented with 5 ASes AU++ AP EMEA LA NA

Full Wedgie Example, in a new Guise AP Message: Same problems can arise with “traffic engineering” across domains. EMEA LA AU Intended Routing for some prefixes in AU

Recommendations Be aware of BGP Wedgies Interdomain communities that can tweak a route’s preference should be defined with care and consistently implemented Tools to enumerate all stable routings would be useful inherently exponential in theory, but may not be that bad in practice (on instances much smaller than global Internet!) I’m currently attempting an implementation on top of http://nms.lcs.mit.edu/bgp/rcc/

Comments Appreciated! tim.griffin@intel.com