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

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

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

CS BGP v4. Fall 2014

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

Internet Routing : Fundamentals of Computer Networks Bill Nace

15-744: Computer Networking BGP

CS 268: Computer Networking

Lecture 18: Border Gateway Protocol

Inter-Domain Routing: BGP II

COMP/ELEC 429 Introduction to Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

Inter-Domain Routing: BGP II

Inter-Domain Routing: BGP

Lecture 17: Border Gateway Protocol

Inter-domain Routing. Outline. Border Gateway Protocol

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

Lecture 16: Border Gateway Protocol

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

Internet Routing Protocols Lecture 01 & 02

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

Professor Yashar Ganjali Department of Computer Science University of Toronto.

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

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

TELE 301 Network Management

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

Routing Protocols. Autonomous System (AS)

Interplay Between Routing, Forwarding

BGP. Autonomous system (AS) BGP version 4

Computer Networking. Intra-Domain Routing. RIP (Routing Information Protocol) & OSPF (Open Shortest Path First)

Routing(2) Inter-domain Routing

BGP. Autonomous system (AS) BGP version 4

BGP. Autonomous system (AS) BGP version 4

CS321: Computer Networks Unicast Routing

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

IP Addressing & Interdomain Routing. Next Topic

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

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

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

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

Internet Routing Protocols Lecture 03 Inter-domain Routing

CSc 450/550 Computer Networks Internet Routing

An overview of how packets are routed in the Internet

PART III. Implementing Inter-Network Relationships with BGP

Inter-Domain Routing: BGP

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

Ravi Chandra cisco Systems Cisco Systems Confidential

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

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

Routing Protocols --- Exterior Gateway Protocol

Interdomain routing CSCI 466: Networks Keith Vertanen Fall 2011

Network Layer: Routing

Introduction to IP Routing. Geoff Huston

Routing Between Autonomous Systems (Example: BGP4) RFC 1771

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

Routing(2) Inter-domain Routing

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

Dynamics of Hot-Potato Routing in IP Networks

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

internet technologies and standards

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

Routing(2) Inter-domain Routing

Routing in the Internet

Internet Interconnection Structure

CSE 222 Graduate Networking

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

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

CS118 Discussion Week 7. Taqi

Computer Networking Introduction

IP Forwarding Computer Networking. Graph Model. Routes from Node A. Lecture 11: Intra-Domain Routing

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

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

CSE 561 Lecture 6, Spring David Wetherall

Interdomain Routing. EE122 Fall 2011 Scott Shenker

Routing. Info 341 Networking and Distributed Applications. Addresses, fragmentation, reassembly. end-to-end communication UDP, TCP

Border Gateway Protocol

CSCD 433/533 Advanced Networks Spring 2016

Inter-Autonomous-System Routing: Border Gateway Protocol

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

Master Course Computer Networks IN2097

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

Connecting to a Service Provider Using External BGP

CSCI Topics: Internet Programming Fall 2008

2011, Sushile Tejwani

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

Inter-Autonomous-System Routing: Border Gateway Protocol

Why dynamic route? (1)

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

Planning for Information Network

Vendor: Alcatel-Lucent. Exam Code: 4A Exam Name: Alcatel-Lucent Border Gateway Protocol. Version: Demo

CSC458 Lecture 6. Administrivia. Inter-domain Routing IP Addressing. Midterm will Cover Following Topics (2) Midterm will Cover Following Topics

Network Protocols. Routing. TDC375 Winter 2002 John Kristoff - DePaul University 1

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

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Chapter 4: outline. Network Layer 4-1

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

Securing BGP. Geoff Huston November 2007

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

ICS 351: Today's plan. OSPF BGP Routing in general

Transcription:

Important Lessons From Last Lecture 15-441 Computer Networking Inter-Domain outing BGP (Border Gateway Protocol) Every router needs to be able to forward towards any destination Forwarding table must be complete Can rely on friends to tell you how to get there (DV) Can get an entire map of the network (LS) Key challenges What if a router fails or is added? need to inform everyone Soft-state recovery What if people have inconsistent/different views? Loops, count to infinity Copyright, 2007-10 Carnegie Mellon University 2 outing eview Outline The Story So Far IP forwarding requires next-hop information outing 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 outing hierarchy Internet structure External BGP (E-BGP) 3 4 1

A Logical View of the Internet? outing Hierarchies After looking at IP/ OSPF descriptions End-hosts connected to routers outers exchange messages to determine connectivity NOT TUE! Flat routing doesn t scale Storage Each node cannot be expected to store routes to every destination (or destination network) Convergence times increase Communication Total message count increases Key observation Need less information with increasing distance to destination Need lower diameters networks Solution: area hierarchy 5 6 Areas outing Hierarchy Divide network into areas Areas can have nested sub-areas Hierarchically address nodes in a network Sequentially number top-level areas Sub-areas of area are labeled relative to that area Nodes are numbered relative to the smallest containing area 7 Area-Border! outer! Backbone Areas! Lower-level Areas! Partition Network into Areas 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 Constraint: no path between two sub-areas of an area can exit that area 8 2

Area Hierarchy Addressing Path Sub-optimality 1 2 Can result in sub-optimal paths 1.1 2.1 2.2 2.2.2 1 2 2.1 2.2 1.2.1 1.2.2 1.2 3 2.2.1 1.1 1.2 1.2.1 start end 2.2.1 3 3.2.1 3.1 3.2 3 hop red path vs. 2 hop green path 3.1 3.2 9 10 Outline A Logical View of the Internet? outing hierarchy Internet structure External BGP (E-BGP) After looking at IP/ OSPF descriptions End-hosts connected to routers outers exchange messages to determine connectivity NOT TUE! 11 12 3

Internet s Area Hierarchy What is an Autonomous System (AS)? A set of routers under a single technical administration, using an interior gateway protocol (IGP) and common metrics to route packets within the AS and using an exterior gateway protocol (EGP) to route packets to other AS s Each AS assigned unique ID AS s peer at network exchanges 13 AS Numbers (ASNs) ASNs are 16 bit values 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, 64512 through 65535 are private Currently over 15,000 in use ASNs represent units of routing policy 14 Example A Logical View of the Internet? 1 2 IGP EGP 1.1 1.2 2.1 IGP 2.2 2.2.1 IP/OSPF not very scalable area hierarchies ISP ISP 5 IGP EGP EGP EGP 3 3.1 3.2 IGP EGP 4.1 4.2 IGP 4 NOT TUE EITHE! ISP s aren t equal Size Connectivity 5.1 5.2 15 16 4

A Logical View of the Internet Transit vs. Peering Tier 1 ISP Default-free with global reachability info Tier 2 ISP egional or country-wide Tier 3 ISP Local Tier 3 Tier 2 Tier 2 Customer Provider Tier 1 Tier 1 Tier 2 Transit ($$ 1/2) Transit ($$$) ISP P ISP Y Transit ($) Transit ($$$) Transit ($$$) ISP Z Transit ($$) Peering ISP X Transit ($$) Transit ($$) 17 18 Policy Impact Valley-free routing Number links as (+1, 0, -1) for provider, peer and customer In any 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 Outline outing hierarchy Internet structure External BGP (E-BGP) 19 20 5

History Choices Mid-80s: EGP eachability protocol (no shortest path) Did not accommodate cycles (tree topology) Evolved when all networks connected to NSF backbone esult: BGP introduced as routing protocol Latest version = BGP 4 BGP-4 supports CID Primary objective: connectivity not performance 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 21 22 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 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? Poor interaction during high load 23 24 6

Hop-by-hop Model Examples of BGP Policies BGP advertises to neighbors only those routes that it uses Consistent with the hop-by-hop Internet paradigm e.g., AS1 cannot tell AS2 to route to other AS s in a manner different than what AS2 has chosen (need source routing for that) BGP enforces policies by choosing paths from multiple alternatives and controlling advertisement to other AS s 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 25 26 BGP Messages BGP UPDATE Message Open Announces AS ID 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 peers to ensure connectivity. Sent in place of an UPDATE message Notification Used for error notification TCP connection is closed immediately after notification 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 27 28 7

Path Selection Criteria Attributes + external (policy) information Examples: Hop count Policy considerations Preference for AS Presence or absence of certain AS Path origin Link dynamics LOCAL PEF Local (within an AS) mechanism to provide relative priority among BGP routers (e.g. 3 over 4) 1 AS 100 5 AS 200 2 AS 300 3 AS 256 Local Pref = 500 Local Pref = 800 I-BGP 4 29 30 LOCAL PEF Common Uses Peering vs. transit Prefer to use peering connection, why? In general, customer > peer > provider Use LOCAL PEF to ensure this 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 31 32 8

Multi-Exit Discriminator (MED) MED Hint to external neighbors about the preferred path into an AS Non-transitive attribute Different AS choose different scales Hint to 1 to use 3 over 4 link Cannot compare AS40 s values to AS30 s 1 AS 10 180.10.0.0 MED = 50 AS 40 2 Used when two AS s connect to each other in more than one place 3 180.10.0.0 MED = 120 180.10.0.0 MED = 200 4 AS 30 33 34 MED Decision Process 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 NY Processing order of attributes: Select route with highest LOCAL-PEF Select route with shortest AS-PATH Apply MED (if routes learned from same neighbor) ISP1 ignores MED from ISP2 ISP2 obeys MED from ISP1 ISP2 ends up carrying traffic most of the way 35 36 9

Internal vs. External BGP Important Concepts BGP can be used by 3 and 4 to learn routes How do 1 and 2 learn routes? 1 AS1 2 3 E-BGP 4 AS2 Wide area Internet structure and routing driven by economic considerations Customer, providers and peers BGP designed to: Provide hierarchy that allows scalability Allow enforcement of policies related to structure Mechanisms Path vector scalable, hides structure from neighbors, detects loops quickly 37 38 10