CS 268: Computer Networking. Next Lecture: Interdomain Routing

Similar documents
Next Lecture: Interdomain Routing : Computer Networking. Outline. Routing Hierarchies BGP

15-744: Computer Networking BGP

CS 268: Computer Networking

Important Lessons From Last Lecture Computer Networking. Outline. Routing Review. Routing hierarchy. Internet structure. External BGP (E-BGP)

CS 640: Introduction to Computer Networks. Intra-domain routing. Inter-domain Routing: Hierarchy. Aditya Akella

Outline Computer Networking. Inter and Intra-Domain Routing. Internet s Area Hierarchy Routing hierarchy. Internet structure

CS BGP v4. Fall 2014

Internet Routing Protocols Lecture 01 & 02

Internet Routing Protocols Lecture 03 Inter-domain Routing

Lecture 18: Border Gateway Protocol

TELE 301 Network Management

Lecture 17: Border Gateway Protocol

COMP/ELEC 429 Introduction to Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

Lecture 16: Interdomain Routing. CSE 123: Computer Networks Stefan Savage

Inter-Domain Routing: BGP II

Interdomain Routing Reading: Sections P&D 4.3.{3,4}

CS4450. Computer Networks: Architecture and Protocols. Lecture 15 BGP. Spring 2018 Rachit Agarwal

Inter-Domain Routing: BGP II

PART III. Implementing Inter-Network Relationships with BGP

CS 457 Networking and the Internet. The Global Internet (Then) The Global Internet (And Now) 10/4/16. Fall 2016

Lecture 16: Border Gateway Protocol

Internet Routing : Fundamentals of Computer Networks Bill Nace

Interdomain Routing Reading: Sections K&R EE122: Intro to Communication Networks Fall 2007 (WF 4:00-5:30 in Cory 277)

Inter-domain Routing. Outline. Border Gateway Protocol

Professor Yashar Ganjali Department of Computer Science University of Toronto.

internet technologies and standards

Inter-Domain Routing: BGP

Internet Protocols Fall Lectures Inter-domain routing, mobility support, multicast routing Andreas Terzis

An overview of how packets are routed in the Internet

BGP. Autonomous system (AS) BGP version 4

Interdomain Routing. EE122 Fall 2011 Scott Shenker

BGP. Autonomous system (AS) BGP version 4

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

CS Networks and Distributed Systems. Lecture 8: Inter Domain Routing

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

Border Gateway Protocol (an introduction) Karst Koymans. Monday, March 10, 2014

BGP. Autonomous system (AS) BGP version 4

Advanced Computer Networks

Interdomain Routing. EE122 Fall 2012 Scott Shenker

Lecture 4: Intradomain Routing. CS 598: Advanced Internetworking Matthew Caesar February 1, 2011

CSCD 433/533 Network Programming Fall Lecture 14 Global Address Space Autonomous Systems, BGP Protocol Routing

Internet inter-as routing: BGP

Inter-AS routing. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley

How does a router know where to send a packet next?

Inter-Domain Routing: BGP

Routing on the Internet. Routing on the Internet. Hierarchical Routing. Computer Networks. Lecture 17: Inter-domain Routing and BGP

Interdomain routing CSCI 466: Networks Keith Vertanen Fall 2011

CSCI-1680 Network Layer: Inter-domain Routing Rodrigo Fonseca

Interdomain Routing. Networked Systems (H) Lecture 11

IP Addressing & Interdomain Routing. Next Topic

Border Gateway Protocol (an introduction) Karst Koymans. Tuesday, March 8, 2016

Configuring BGP. Cisco s BGP Implementation

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

EE 122: Inter-domain routing Border Gateway Protocol (BGP)

Border Gateway Protocol

Master Course Computer Networks IN2097

CS321: Computer Networks Unicast Routing

Dynamics of Hot-Potato Routing in IP Networks

Department of Computer and IT Engineering University of Kurdistan. Computer Networks II Border Gateway protocol (BGP) By: Dr. Alireza Abdollahpouri

Ravi Chandra cisco Systems Cisco Systems Confidential

Routing part 2. Electrical and Information Technology

BGP. Border Gateway Protocol (an introduction) Karst Koymans. Informatics Institute University of Amsterdam. (version 17.3, 2017/12/04 13:20:08)

Internet Measurements. Motivation

BGP. Border Gateway Protocol A short introduction. Karst Koymans. Informatics Institute University of Amsterdam. (version 18.3, 2018/12/03 13:53:22)

BGP Policy Routing Richard T. B. Ma

BGP Configuration. BGP Overview. Introduction to BGP. Formats of BGP Messages. Header

BGP Protocol & Configuration. Scalable Infrastructure Workshop AfNOG2008

This appendix contains supplementary Border Gateway Protocol (BGP) information and covers the following topics:

CSCI-1680 Network Layer: Inter-domain Routing Rodrigo Fonseca

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

CS118 Discussion Week 7. Taqi

CS 43: Computer Networks. 24: Internet Routing November 19, 2018

Some Foundational Problems in Interdomain Routing

Routing. Jens A Andersson Communication Systems

Routing Between Autonomous Systems (Example: BGP4) RFC 1771

Introduction. Keith Barker, CCIE #6783. YouTube - Keith6783.

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 16, 2017

CSCI-1680 Network Layer: Inter-domain Routing Rodrigo Fonseca

Inter-Autonomous-System Routing: Border Gateway Protocol

Routing Unicast routing protocols

ISP Border Definition. Alexander Azimov

Interplay Between Routing, Forwarding

Inter-Autonomous-System Routing: Border Gateway Protocol

Routing(2) Inter-domain Routing

Border Gateway Protocol - BGP

BGP made easy. John van Oppen Spectrum Networks / AS11404

Graph abstraction: costs. Graph abstraction 10/26/2018. Interplay between routing and forwarding

CSE/EE 461 Lecture 11. Inter-domain Routing. This Lecture. Structure of the Internet. Focus How do we make routing scale?

Routing on the Internet! Hierarchical Routing! The NSFNet 1989! Aggregate routers into regions of autonomous systems (AS)!

CSc 450/550 Computer Networks Internet Routing

Communication Networks

BGP Attributes and Path Selection

BGP Attributes and Policy Control

How the Internet works? The Border Gateway Protocol (BGP)

BGP Attributes and Policy Control

6.829 BGP Recitation. Rob Beverly September 29, Addressing and Assignment

Network Layer (Routing)

BGP. Inter-domain routing with the Border Gateway Protocol. Iljitsch van Beijnum Amsterdam, 13 & 16 March 2007

Module 6 Implementing BGP

Transcription:

CS 268: Computer Networking L-3 BGP Next Lecture: Interdomain Routing BGP Assigned Reading MIT BGP Class Notes [Gao00] On Inferring Autonomous System Relationships in the Internet 2

Outline Need for hierarchical routing BGP ASes, Policies BGP Attributes BGP Path Selection ibgp Inferring AS relationships Problems with BGP Convergence Sub optimal routing 3 Routing Hierarchies Flat routing doesn t scale Each node cannot be expected to have routes to every destination (or destination network) Key observation Need less information with increasing distance to destination Two radically different approaches for routing The area hierarchy The landmark hierarchy 4

Areas 1.2.1 1.2.2 1 2 1.1 2.1 1.2 3 3.1 3.2 2.2 2.2.1 2.2.2 Divide network into areas Areas can have nested sub-areas Constraint: no path between two sub-areas of an area can exit that area Hierarchically address nodes in a network Sequentially number toplevel areas Sub-areas of area are labeled relative to that area Nodes are numbered relative to the smallest containing area 5 Routing Within area Each node has routes to every other node Outside area Each node has routes for other top-level areas only Inter-area packets are routed to nearest appropriate border router Can result in sub-optimal paths 6

Path Sub-optimality 1 2 2.1 2.2 1.1 1.2.1 1.2 start end 2.2.1 3 3.2.1 3 hop red path vs. 2 hop green path 3.1 3.2 7 A Logical View of the Internet National (Tier 1 ISP) Default-free with global reachability info Eg: AT & T, UUNET, Sprint Regional (Tier 2 ISP) Regional or country-wide Eg: Pacific Bell Local (Tier 3 ISP) Eg: Telerama DSL Tier 3 Tier 2 Tier 2 Customer Provider Tier 1 Tier 1 Tier 2 8

Landmark Routing: Basic Idea Source wants to reach LM 0 [a], whose address is c.b.a: Source can see LM 2 [c], so sends packet towards c Entering LM 1 [b] area, first router diverts packet to b Entering LM 0 [a] area, packet delivered to a Not shortest path Packet may not reach landmarks LM 1 [b] LM 2 [c] r 2 [c] r 1 [b] LM 0 [a] r 0 [a] Network Node Path Landmark Radius 9 Landmark Routing: Example d.d.f d.i.g d.i.k d.d.a d.d.d d.d.e d.d.j d.i.i d.i.w d.d.b d.d.c d.d.l d.d.k d.i.u d.i.v d.n.h d.n.n d.n.x d.n.t d.n.q d.n.o d.n.p d.n.r d.n.s 10

Routing Table for Router g Landmark Level Next hop LM 2 [d] LM 1 [i] 2 1 f k d.d.f LM 0 [e] 0 f LM 0 [k] LM 0 [f] 0 0 r0 = 2, r1 = 4, r2 = 8 hops How to go from d.i.g to d.n.t? g-f-e-d-u-t How does path length compare to shortest path? g-k-i-u-t k f d.d.b Router g d.d.d d.d.a d.d.c d.d.l d.d.k d.n.h d.n.x d.n.n d.n.q d.n.o d.n.p d.i.g d.d.e d.i.i d.d.j d.i.u d.n.t d.n.s d.n.r d.i.w Router t d.i.k 11 Outline Need for hierarchical routing BGP ASes, Policies BGP Attributes BGP Path Selection ibgp Inferring AS relationships 12

Autonomous Systems (ASes) Autonomous Routing Domain Glued together by a common administration, policies etc Autonomous system is a specific case of an ARD ARD is a concept vs AS is an actual entity that participates in routing Has an unique 16 bit ASN assigned to it and typically participates in inter-domain routing Examples: MIT: 3, CMU: 9 AT&T: 7018, 6341, 5074, UUNET: 701, 702, 284, 12199, Sprint: 1239, 1240, 6211, 6242, How do ASes interconnect to provide global connectivity How does routing information get exchanged 13 Nontransit vs. Transit ASes ISP 1 ISP 2 Traffic NEVER flows from ISP 1 through NET A to ISP 2 (At least not intentionally!) NET A Nontransit AS might be a corporate or campus network. Could be a content provider IP traffic 14

Customers and Providers provider provider customer IP traffic customer Customer pays provider for access to the Internet 15 The Peering Relationship peer provider A peer customer B C Peers provide transit between their respective customers traffic allowed traffic NOT allowed Peers do not provide transit between peers Peers (often) do not exchange $$$ 16

Peering Wars 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 ) Don t Peer You would rather have customers Peers are usually your competition Peering relationships may require periodic renegotiation Peering struggles are by far the most contentious issues in the ISP world! Peering agreements are often confidential. 17 Routing in the Internet Link state or distance vector? No universal metric policy decisions Problems with distance-vector: Bellman-Ford algorithm may not converge Problems with link state: Metric used by routers not the same loops LS database too large entire Internet May expose policies to other AS s 18

Solution: Distance Vector with Path Each routing update carries the entire path Loops are detected as follows: When AS gets route check if AS already in path If yes, reject route If no, add self and (possibly) advertise route further Advantage: Metrics are local - AS chooses path, protocol ensures no loops 19 BGP-4 BGP = Border Gateway Protocol Is a Policy-Based routing protocol Is the EGP of today s global Internet Relatively simple protocol, but configuration is complex and the entire world can see, and be impacted by, your mistakes. 1989 : BGP-1 [RFC 1105] Replacement for EGP (1984, RFC 904) 1990 : BGP-2 [RFC 1163] 1991 : BGP-3 [RFC 1267] 1995 : BGP-4 [RFC 1771] Support for Classless Interdomain Routing (CIDR) 20

BGP Operations (Simplified) Establish session on TCP port 179 AS1 Exchange all active routes BGP session AS2 Exchange incremental updates While connection is ALIVE exchange route UPDATE messages 21 Interconnecting BGP Peers BGP uses TCP to connect peers Advantages: Simplifies BGP No need for periodic refresh - routes are valid until withdrawn, or the connection is lost Incremental updates Disadvantages Congestion control on a routing protocol? Inherits TCP vulnerabilities! Poor interaction during high load 22

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 23 Policy with BGP BGP provides capability for enforcing various policies Policies are not part of BGP: they are provided to BGP as configuration information BGP enforces policies by choosing paths from multiple alternatives and controlling advertisement to other AS s Import policy What to do with routes learned from neighbors? Selecting best path Export policy What routes to announce to neighbors? Depends on relationship with neighbor 24

Examples of BGP Policies A multi-homed AS refuses to act as transit Limit path advertisement A multi-homed AS can become transit for some AS s Only advertise paths to some AS s Eg: A Tier-2 provider multi-homed to Tier-1 providers An AS can favor or disfavor certain AS s for traffic transit from itself 25 Export Policy An AS exports only best paths to its neighbors Guarantees that once the route is announced the AS is willing to transit traffic on that route To Customers Announce all routes learned from peers, providers and customers, and self-origin routes To Providers Announce routes learned from customers and selforigin routes To Peers Announce routes learned from customers and selforigin routes 26

Import Routes provider route peer route customer route ISP route From provider From provider From peer From peer From customer From customer 27 Export Routes provider route peer route customer route ISP route To provider From provider To peer To peer To customer To customer filters block 28

BGP UPDATE Message List of withdrawn routes Network layer reachability information List of reachable prefixes Path attributes Origin Path Metrics All prefixes advertised in message have same path attributes 29 Path Selection Criteria Information based on path attributes Attributes + external (policy) information Examples: Hop count Policy considerations Preference for AS Presence or absence of certain AS Path origin Link dynamics 30

Important BGP Attributes Local Preference AS-Path MED Next hop 31 LOCAL PREF Local (within an AS) mechanism to provide relative priority among BGP routers R1 AS 100 R5 AS 200 R2 AS 300 R3 AS 256 Local Pref = 500 Local Pref =800 I-BGP R4 32

LOCAL PREF Common Uses Handle routes advertised to multi-homed transit customers Should use direct connection (multihoming typically has a primary/backup arrangement) Peering vs. transit Prefer to use peering connection, why? In general, customer > peer > provider Use LOCAL PREF to ensure this 33 AS_PATH List of traversed AS s Useful for loop checking and for path-based route selection (length, regexp) AS 200 AS 100 170.10.0.0/16 180.10.0.0/16 AS 300 AS 500 180.10.0.0/16 300 200 100 170.10.0.0/16 300 200 34

Multi-Exit Discriminator (MED) Hint to external neighbors about the preferred path into an AS Non-transitive attribute Different AS choose different scales Used when two AS s connect to each other in more than one place 35 MED Typically used when two ASes peer at multiple locations Hint to R1 to use R3 over R4 link Cannot compare AS40 s values to AS30 s R1 AS 10 180.10.0.0 MED = 50 AS 40 R2 R3 180.10.0.0 MED = 120 180.10.0.0 MED = 200 R4 AS 30 36

MED MED is typically used in provider/subscriber scenarios It can lead to unfairness if used between ISP because it may force one ISP to carry more traffic: SF ISP1 ISP2 ISP1 ignores MED from ISP2 ISP2 obeys MED from ISP1 ISP2 ends up carrying traffic most of the way NY 37 Route Selection Process Highest Local Preference Enforce relationships Shortest ASPATH Lowest MED i-bgp < e-bgp Lowest IGP cost to BGP egress Lowest router ID Traffic engineering Throw up hands and break ties 38

Internal vs. External BGP BGP can be used by R3 and R4 to learn routes How do R1 and R2 learn routes? Option 1: Inject routes in IGP Only works for small routing tables Option 2: Use I-BGP R1 AS1 R3 E-BGP R4 AS2 R2 39 Internal BGP (I-BGP) Same messages as E-BGP Different rules about re-advertising prefixes: Prefix learned from E-BGP can be advertised to I-BGP neighbor and vice-versa, but Prefix learned from one I-BGP neighbor cannot be advertised to another I-BGP neighbor Reason: no AS PATH within the same AS and thus danger of looping. 40

Internal BGP (I-BGP) R3 can tell R1 and R2 prefixes from R4 R3 can tell R4 prefixes from R1 and R2 R3 cannot tell R2 prefixes from R1 R2 can only find these prefixes through a direct connection to R1 Result: I-BGP routers must be fully connected (via TCP)! contrast with E-BGP sessions that map to physical links AS1 R1 R2 R3 E-BGP R4 AS2 I-BGP 41 Route Reflector ebgp update ibgp updates RR RR RR Mesh does not scale Each RR passes only best routes, no longer N 2 scaling problem 42

Policy Impact Different relationships Transit, Peering Export policies selective export Valley-free routing Number links as (+1, 0, -1) for customer-toprovider, peer and provider-to-customer In any path should only see sequence of +1, followed by at most one 0, followed by sequence of -1 43 How to infer AS relationships? Can we infer relationship from the AS graph From routing information From size of ASes /AS topology graph From multiple views and route announcements L. Gao, "On Inferring Autonomous System Relationships in the Internet," IEEE/ACM Transactions on Networks, V. 9, N. 6, (December 2001), pp. 733-745. Three-pass heuristic Data from University of Oregon RouteViews L. Subramanian, S. Agarwal, J. Rexford, R. H. Katz, Characterizing the Internet hierarchy from multiple vantage points, Proc. IEEE Infocomm, (2002). Data from multiple vantage points 44

Gao s Basic Algorithm Phase 1: Identify the degrees of the ASes from the tables Phase 2: Annotate edges with transit relation AS u transits traffic for AS v if it provides its provider/peer routes to v. Phase 3: Identify P2C, C2P, Sibling edges P2C If and only if u transits for v, and v does not, Sibling otherwise Peering relationship? 45 How does Phase 2 work? Notion of Valley free routing Each AS path can be Uphill Downhill Uphill Downhill Uphill P2P P2P -- Downhill Uphill P2P Downhill How to identify Uphill/Downhill Heuristic: Identify the highest degree AS to be the end of the uphill path (path starts from source) 46

Next Lecture: Congestion Control Congestion Control Assigned Reading [Chiu & Jain] Analysis of Increase and Decrease Algorithms for Congestion Avoidance in Computer Networks [Jacobson and Karels] Congestion Avoidance and Control 47