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

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

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

CS BGP v4. Fall 2014

Inter-domain Routing. Outline. Border Gateway Protocol

CS 268: Computer Networking. Next Lecture: Interdomain Routing

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

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

COMP/ELEC 429 Introduction to Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

Internet Routing : Fundamentals of Computer Networks Bill Nace

Inter-Domain Routing: BGP

An overview of how packets are routed in the Internet

Internet Routing Protocols Lecture 03 Inter-domain Routing

Inter-Domain Routing: BGP II

BGP. Autonomous system (AS) BGP version 4

Internet Routing Protocols Lecture 01 & 02

CS 268: Computer Networking

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

Inter-Domain Routing: BGP II

Lecture 18: Border Gateway Protocol

BGP. Autonomous system (AS) BGP version 4

BGP. Autonomous system (AS) BGP version 4

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

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

TELE 301 Network Management

Lecture 17: Border Gateway Protocol

PART III. Implementing Inter-Network Relationships with BGP

15-744: Computer Networking BGP

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

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

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

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

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

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

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

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

Professor Yashar Ganjali Department of Computer Science University of Toronto.

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

Internet inter-as routing: BGP

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

Interdomain routing CSCI 466: Networks Keith Vertanen Fall 2011

Lecture 16: Border Gateway Protocol

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

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

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

IP Addressing & Interdomain Routing. Next Topic

Routing Unicast routing protocols

! Distance vector routing! Link state routing.! Path vector routing! BGP: Border Gateway Protocol! Route aggregation

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

Routing. Jens A Andersson Communication Systems

Routing(2) Inter-domain Routing

Border Gateway Protocol

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

Routing(2) Inter-domain Routing

Routing Protocols. Autonomous System (AS)

Ravi Chandra cisco Systems Cisco Systems Confidential

Interdomain Routing. EE122 Fall 2011 Scott Shenker

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

internet technologies and standards

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

Routing Between Autonomous Systems (Example: BGP4) RFC 1771

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

Inter-Domain Routing: BGP

Planning for Information Network

Internet Interconnection Structure

CSCI Topics: Internet Programming Fall 2008

Why dynamic route? (1)

Interdomain Routing. Networked Systems (H) Lecture 11

Link State Routing & Inter-Domain Routing

Routing in the Internet

CS321: Computer Networks Unicast Routing

Configuring BGP. Cisco s BGP Implementation

Routing Protocols --- Exterior Gateway Protocol

Lecture 19: Network Layer Routing in the Internet

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm

Master Course Computer Networks IN2097

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

Dynamics of Hot-Potato Routing in IP Networks

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

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

Border Gateway Protocol (BGP-4)

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

Introduction to IP Routing. Geoff Huston

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

Routing part 2. Electrical and Information Technology

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

Overview. Problem: Find lowest cost path between two nodes Factors static: topology dynamic: load

Routing(2) Inter-domain Routing

Configuring BGP community 43 Configuring a BGP route reflector 44 Configuring a BGP confederation 44 Configuring BGP GR 45 Enabling Guard route

Network Layer: Routing

Connecting to a Service Provider Using External BGP

Interdomain Routing. EE122 Fall 2012 Scott Shenker

Advanced Computer Networks

CSCD 433/533 Advanced Networks Spring 2016

Computer Networking Introduction

CSE 222 Graduate Networking

Network Protocols. Routing. TDC375 Autumn 03/04 John Kristoff - DePaul University 1

CS118 Discussion Week 7. Taqi

Chapter 7 Routing Protocols

Architectures and Protocols for Integrated Networks. Intra-domain and Inter-domain Routing Protocols

Transcription:

CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol) Intra-domain routing The Story So Far Routing protocols generate the forwarding table Two styles: distance vector, link state Scalability issues: Distance vector protocols suffer from count-to-infinity Link state protocols must flood information through network Today s lecture How to make routing protocols support large networks How to make routing protocols support business policies 2 Inter-domain Routing: Hierarchy Flat routing not suited for the Internet Doesn t scale with network size Storage Each node cannot be expected to store routes to every destination (or destination network) Convergence times increase Communication Total message count increases Administrative autonomy Each internetwork may want to run its network independently E.g hide topology information from competitors Solution: Hierarchy via autonomous systems 3 1

Internet s Hierarchy What is an Autonomous System (AS)? A set of routers under a single technical administration Use an interior gateway protocol (IGP) and common metrics to route packets within the AS Connect to other ASes using gateway routers Use an exterior gateway protocol (EGP) to route packets to other AS s IGP: OSPF, RIP (last class) Today s EGP: BGP version 4 4 An example 2c 3b 3a 2a 3c AS 3 1c AS 2 2b 1b 1a AS 1 1d Intra-AS routing algorithm + Inter-AS routing algorithm Forwarding table 5 The Problem Easy when only one link leading to outside AS Much harder when two or more links to outside ASes Which destinations reachable via a neighbor? Propagate this information to other internal routers Select a good route from multiple choices Inter-AS routing protocol Communication between distinct ASes Must be the same protocol! 6 2

History Mid-80s: EGP Reachability protocol (no shortest path) Did not accommodate cycles (tree topology) Evolved when all networks connected to NSF backbone Result: BGP introduced as routing protocol Latest version = BGP 4 BGP-4 supports CIDR Primary objective: connectivity not performance 7 BGP Preliminaries Pairs of routers exchange routing info over TCP connections (port 179) One TCP connection for every pair of neighboring gateway routers Routers called BGP s BGP s exchange routing info as messages TCP connection + messages BGP session Neighbor ASes exchange info on which CIDR prefixes are reachable via them 8 Choices for Routing How to propagate routing information? Link state or distance vector? No universal metric policy decisions Problems with distance-vector: Very slow convergence Problems with link state: Metric used by ISPs not the same loops LS database too large entire Internet BGP: Path vector 9 3

AS Numbers (ASNs) ASNs are 16 bit values 64512 through 65535 are private Currently over 15,000 in use Genuity: 1 MIT: 3 CMU: 9 UC San Diego: 7377 AT&T: 7018, 6341, 5074, UUNET: 701, 702, 284, 12199, Sprint: 1239, 1240, 6211, 6242, ASNs represent units of routing policy 10 Distance Vector with Path Each routing update carries the entire ASlevel path so far AS_Path attribute 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 Advertisement depends on metrics/cost/preference etc. Advantage: Metrics are local - AS chooses path, protocol ensures no loops 11 Hop-by-hop Model BGP advertises to neighbors only those routes that it uses Consistent with the hop-by-hop Internet paradigm Consequence: hear only one route from neighbor (although neighbor may have chosen this from a large set of choices) Could impact view into availability of paths 12 4

Policy with BGP BGP provides capability for enforcing various policies Policies are not part of BGP: they are provided to BGP as configuration information Enforces policies by Choosing appropriate paths from multiple alternatives Controlling advertisement to other AS s 13 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 An AS can favor or disfavor certain AS s for traffic transit from itself 14 Open Announces AS ID BGP Messages Determines hold timer interval between keep_alive or update messages, zero interval implies no keep_alive Keep_alive Sent periodically (but before hold timer expires) to s to ensure connectivity. Sent in place of an UPDATE message Notification Used for error notification TCP connection is closed immediately after notification 15 5

BGP UPDATE Message List of withdrawn routes Network layer reachability information List of reachable prefixes Path attributes Origin Path Local_pref MED Metrics All prefixes advertised in message have same path attributes 16 Path Selection Criteria Attributes + external (policy) information Examples: Policy considerations Preference for AS Presence or absence of certain AS Hop count Path origin 17 LOCAL PREF Local (within an AS) mechanism to provide relative priority among BGP exit points R5 R1 AS 100 AS 200 R2 AS 300 R3 Local Pref = 500 Local Pref =800 I-BGP R4 AS 256 Prefer routers announced by one AS over another or general preference over routes 18 6

AS_PATH List of traversed AS s 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 19 Multi-Exit Discriminator (MED) Hint to external neighbors about the preferred path into an AS Different AS choose different scales Used when two AS s connect to each other in more than one place More useful in a customer provider setting Not honored in other settings Will see later why 20 MED 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 21 7

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 22 Decision Process (First cut) Rough processing order of attributes: Select route with highest LOCAL-PREF Select route with shortest AS-PATH Apply MED (to routes learned from same neighbor) How to set the attributes? Especially local_pref? Policies in action 23 A Logical View of the Internet Tier 1 ISP Default-free with global reachability info Tier 2 ISP Regional or country-wide Typically route through tier-1 Customer Tier 3/4 ISPs Local Route through higher tiers Stub Tier 3 Tier 2 Tier 2 Tier 1 Tier 1 Tier 2 Stub AS End network such as IBM or UW-Madison 24 8

Inter-ISP Relationships: Transit vs. Peering Transit ($$ 1/2) ISP P Transit ($$$) ISP Y Transit ($) Transit ($$$) Transit ($$$) Transit ($) ISP Z Peering (0) Transit ($$) ISP X Transit ($$) These relationships have the greatest impact on BGP policies 25 Illustrating BGP Policies provider customer AS 4 Frank s AS 3 Internet Barn AS 2 Which route should Frank pick to 13.13.0.0./16? AS 1 13.13.0.0/16 26 Policy I: Prefer Customer routing Route learned from customer preferred over route learned from, preferred over route learned from provider provider customer AS 4 local pref = 80 local pref = 90 AS 3 local pref = 100 Set appropriate local pref AS 2 to reflect preferences: Higher Local preference values are preferred AS 1 13.13.0.0/16 27 9

Policy II: Import Routes provider route route customer route ISP route provider provider customer customer 28 Policy II: Export Routes provider route route customer route ISP route To provider provider To To To customer To customer filters block 29 Policy II: Valley-Free Routes Valley-free routing Number links as (+1, 0, -1) for provider, and customer In any valid path should only see sequence of +1, followed by at most one 0, followed by sequence of -1 Why? Consider the economics of the situation How to make these choices? Prefer-customer routing: LOCAL_PREF Valley-free routes: control route advertisements (see previous slide) 30 10

BGP Route Selection Summary Highest Local Preference Enforce relationships E.g. prefer customer routes over routes Shortest ASPATH Lowest MED i-bgp < e-bgp traffic engineering Lowest IGP cost to BGP egress Lowest router ID Throw up hands and break ties 31 Internal vs. External BGP BGP can be used by R3 and R4 to learn routes How do R1 and R2 learn best routes? AS1 R1 R3 E-BGP R4 AS2 R2 Use I-BGP Create a full mesh TCP connections Use this to exchanged BGP route information 32 Link Failures Two types of link failures: Failure on an E-BGP link Failure on an I-BGP Link These failures are treated completely different in BGP Why? 33 11

Failure on an E-BGP Link If the link R1-R2 goes down The TCP connection breaks BGP routes are removed This is the desired behavior E-BGP session AS1 R1 AS2 R2 Physical link 138.39.1.1/30 138.39.1.2/30 34 Failure on an I-BGP Link If link R1-R2 goes down, R1 and R2 should still be able to exchange traffic The indirect path through R3 must be used Thus, E-BGP and I-BGP must use different conventions with respect to TCP endpoints 138.39.1.2/30 R2 Physical link 138.39.1.1/30 R1 R3 I-BGP connection 35 Next Class Multicast Service model IGMP IP Multicast routing protocols Overlay-based multicast 36 12