1 Leveraging BGP Dynamics to Reverse-Engineer Routing Policies Sridhar Machiraju Randy H. Katz UC, Berkeley OASIS Retreat, Summer 2005.

Slides:



Advertisements
Similar presentations
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)
Advertisements

Network Layer: Internet-Wide Routing & BGP Dina Katabi & Sam Madden.
CS540/TE630 Computer Network Architecture Spring 2009 Tu/Th 10:30am-Noon Sue Moon.
Lecture 9 Overview. Hierarchical Routing scale – with 200 million destinations – can’t store all dests in routing tables! – routing table exchange would.
© 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 BGP Anomaly Detection in an ISP Jian Wu (U. Michigan) Z. Morley Mao (U. Michigan) Jennifer Rexford (Princeton) Jia Wang (AT&T Labs)
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.
Practical and Configuration issues of BGP and Policy routing Cameron Harvey Simon Fraser University.
BGP: Inter-Domain Routing Protocol Noah Treuhaft U.C. Berkeley.
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)
Ion Stoica October 2, 2002 (* this presentation is based on Lakshmi Subramanian’s slides) EE 122: Inter-domain routing – Border Gateway Protocol (BGP)
Interdomain Routing EECS 122: Lecture 11 Department of Electrical Engineering and Computer Sciences University of California Berkeley.
14 – Inter/Intra-AS Routing
Hot Potatoes Heat Up BGP Routing Jennifer Rexford AT&T Labs—Research Joint work with Renata Teixeira, Aman Shaikh, and.
Dynamics of Hot-Potato Routing in IP Networks Jennifer Rexford AT&T Labs—Research Joint work with Renata Teixeira, Aman.
Border Gateway Protocol(BGP) L.Subramanian 23 rd October, 2001.
UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.
R OUTING IN THE INTERNET. A UTONOMOUS SYSTEM ( AS ) Collections of routers that has the same protocol, administative and technical control Intra-AS routing.
Computer Networks Layering and Routing Dina Katabi
Inter-domain Routing Don Fussell CS 395T Measuring Internet Performance.
14 – Inter/Intra-AS Routing Network Layer Hierarchical Routing scale: with > 200 million destinations: can’t store all dest’s in routing tables!
EQ-BGP: an efficient inter- domain QoS routing protocol Andrzej Bęben Institute of Telecommunications Warsaw University of Technology,
Internet Routing: Measurement, Modeling, and Analysis Dr. Jia Wang AT&T Labs Research Florham Park, NJ 07932, USA
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.)
© 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.
Information-Centric Networks04a-1 Week 4 / Paper 1 Open issues in Interdomain Routing: a survey –Marcelo Yannuzzi, Xavier Masip-Bruin, Olivier Bonaventure.
Introduction to BGP.
1 Controlling IP Spoofing via Inter-Domain Packet Filters Zhenhai Duan Department of Computer Science Florida State University.
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.
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks BGP.
Border Gateway Protocol
Dynamics of Hot-Potato Routing in IP Networks Jennifer Rexford AT&T Labs—Research Joint work with Renata Teixeira (UCSD),
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.
On Understanding of Transient Interdomain Routing Failures Feng Wang, Lixin Gao, Jia Wang, and Jian Qiu Department of Electrical and Computer Engineering.
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.
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.
Detecting Selective Dropping Attacks in BGP Mooi Chuah Kun Huang November 2006.
CS 4396 Computer Networks Lab BGP. Inter-AS routing in the Internet: (BGP)
CSCI-1680 Network Layer: Inter-domain Routing Based partly on lecture notes by Rob Sherwood, David Mazières, Phil Levis, Rodrigo Fonseca John Jannotti.
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.
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—6-1 Scaling Service Provider Networks Scaling IGP and BGP in Service Provider Networks.
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.
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.
CS 3700 Networks and Distributed Systems
Border Gateway Protocol
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
CS 3700 Networks and Distributed Systems
Jian Wu (University of Michigan)
Border Gateway Protocol
COS 561: Advanced Computer Networks
BGP supplement Abhigyan Sharma.
Interdomain Traffic Engineering with BGP
BGP Overview BGP concepts and operation.
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
BGP Policies Jennifer Rexford
COS 461: Computer Networks
BGP Instability Jennifer Rexford
Presentation transcript:

1 Leveraging BGP Dynamics to Reverse-Engineer Routing Policies Sridhar Machiraju Randy H. Katz UC, Berkeley OASIS Retreat, Summer 2005

2 Outline Internet Routing and Policies Goal Proposed Solution Evaluation Conclusions and Future Work

3 Internet Routing Two-level –Intra-domain (OSPF, IS-IS etc.) –Inter-domain (BGP) Border Gateway Protocol –Policy-aware –Path-vector –Based on bilateral peering relationships

4 BGP Routing Policies Often proprietary and rarely revealed Influence –Whether or not to accept routes –Route selection process –Whether or not to propagate routes to neighbors

5 BGP Routing Policies (contd.) AS A 1.Route with highest local preference 2.Route with smallest # of hops 3.Route learnt over IGP 4.Route with smallest MED, same next hop 5.Route learnt over eBGP 6.Route with smallest IGP metric 7.Route advertised by smallest ID router a) Apply import policies b) Tie-breaking steps in route selection c) Apply export policies

6 BGP Routing Policies (contd.) AS A 1.Route with highest local preference 2.Route with smallest # of hops 3.Route learnt over IGP 4.Route with smallest MED, same next hop 5.Route learnt over eBGP 6.Route with smallest IGP metric 7.Route advertised by smallest ID router a) Apply import policies b) Tie-breaking steps in route selection c) Apply export policies

7 Outline Internet Routing and Policies Goal Proposed Solution Evaluation Conclusions and Future Work

8 Goal Reverse-engineer local preference values Why? –Assist operators in performing inter- domain traffic engineering (TE) –Prevent mis-configured and divergence- causing policies –To understand Internet routing and influence future architectures

9 Prior Work AS relationships –[Subram02characterizing, Wang03inferring, Gao01inferring] –Analyze BGP routing tables Use BGP dynamics for root cause analysis –[Feldmann04locating, Caesar03localizing]

10 Outline Internet Routing and Policies Goal Proposed Solution Evaluation Conclusions and Future Work

11 Solution Overview Leverage BGP dynamics to infer routing policies A D X BC 1.ABDX Router in X fails D withdraws DX from B D withdraws DX from C B withdraws BDX from A 2.ACDX C withdraws CDX from A 3.A withdraws ACDX Loc_pref(B) > Loc_pref(C)

12 Basic Observation ObsDec: AS A advertises paths in order of decreasing preference if –No new paths are advertised to A –A’s policy is unchanged ObsInc: AS A advertises paths in order of increasing preference if –No paths are withdrawn from A –A’s policy is unchanged

13 Proposed Algorithm To use ObsDec –Look at PrefixDown events Use timeout to classify per-prefix updates at a BGP speaker into events Consider events in which a(n initially) stable route was withdrawn. –During PrefixDown New short-lived paths may be advertised in pathological convergence processes

14 Pathological Convergence Process e.g., A’s local preference is not dependent only on next-hop AS A D X BC 1.ABDX Router in X fails D withdraws DX from B,C C selects CEX C advertised CEX to A 2.ACEX B withdraws BDX from A E withdraws EX from C C withdraws CEX from A 3.A withdraws ACEX Loc_pref(B) > Loc_pref(C) E Loc_pref(CEX) >

15 Justifying Heuristics Policies mostly dependent only on next hop A neighbor that did not export earlier will not do so after failure too. Induced updates are rare ([Feldmann04]) New short-lived path advertisements are limited by MRAI timer (30secs) unlike withdraw messages –Only look at first/last update

16 Deducing local preferences BGP router/monitor of AS A observes, for prefix P, a PrefixDown event –Stable route R1 UVWXZD –Followed by route update R2 UVWYD Deduce W’s locpref(X) >= W’s locpref(Y)

17 Deducing local preferences Use ObsDec and ObsInc –On update stream(s) PrefixDown/ PrefixUp events If R1 preferred over R2, –length(R1) > length(R2) implies locpref(R1) > locpref(R2) (+ve inference) –length(R1) = locpref(R2) (-ve inference)

18 Outline Internet Routing and Policies Goal Proposed Solution Evaluation Conclusions and Future Work

19 Simulations Use SSFNet; pathological example A D BC Default: Shortest path preferred Locpref A (ABD) > Locpref A (AD) Locpref B (BCD) > Locpref B (BD) D advertises to A,B,C 1.C receives AD B advertises BD to A 2.C receives ABD C advertises CD to B B chooses BCD B advertises BCD to A A prefers AD to ABCD 3.C receives AD updates seen by C ABD is not less preferred than AD by A!

20 Simulations If policies depend only on next hop… A D BC Default: Shortest path preferred Locpref A (AB*D) > Locpref A (AD) Locpref B (BC*D) > Locpref B (BD) D advertises to A,B,C 1.C receives AD B advertises BD to A 2.C receives ABD C advertises CD to B B chooses BCD B advertises BCD to A A prefers ABCD to AD 3.C receives ABCD updates seen by C B does prefer BCD over over BD.

21 Archived BGP Data Routeviews archived BGP data –About 50 peers –Updates from Jan 2003 – Jan 2005 –Jan 2005 – million events available – PrefixDown and PrefixUp events MRAI timer –Inferences regarding IP prefixes 6% Positive inferences

22 Validation Whois registries –Incomplete –Confusion regarding RPSL syntax Some specs seem correct – AS5511 –Validated 3 cases manually with registered policy 5511,6505(4),21826 > 5511,3549,21826 –Path prepending was seen to be useless

23 Consistency Validation

24 Consistency Validation Same inference was made from each of the views No new path seen in any of the views –Our heuristic does not see induced updates

25 Applications Non-conforming policies –Deviant policy in about prefixes! –Verio prefers GBX over AS15270, a customer of Verio Inter-domain TE –OpenTransit prefers AS6505 over AS354; path prepending does not help

26 Outline Internet Routing and Policies Goal Proposed Solution Evaluation Conclusions and Future Work

27 Conclusions and Future Work A novel approach to reverse-engineer local preference using BGP dynamics Pros –Prefix owners (edge ASs) can artificially cause events! More simulations and validation –Clarify/determine when heuristic fails (induced updates)