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

Similar documents
Lecture 18: Border Gateway Protocol

Lecture 17: Border Gateway Protocol

Lecture 16: Border Gateway Protocol

CSE 561 Lecture 6, Spring David Wetherall

CSE 222 Graduate Networking

Interdomain routing CSCI 466: Networks Keith Vertanen Fall 2011

IP Addressing & Interdomain Routing. Next Topic

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

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

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

Lecture 17: Router Design

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

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

COMP/ELEC 429 Introduction to Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

Inter-Domain Routing: BGP

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

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

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

Internet Routing Protocols Lecture 01 & 02

Inter-Domain Routing: BGP

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

Internet Routing : Fundamentals of Computer Networks Bill Nace

Internet inter-as routing: BGP

CS BGP v4. Fall 2014

Inter-domain Routing. Outline. Border Gateway Protocol

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

Internet Routing Protocols Lecture 03 Inter-domain Routing

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

TELE 301 Network Management

CS 268: Computer Networking. Next Lecture: Interdomain Routing

BGP. Autonomous system (AS) BGP version 4

Inter-Domain Routing: BGP II

BGP. Autonomous system (AS) BGP version 4

Inter-Domain Routing: BGP II

CS519: Computer Networks. Lecture 4, Part 5: Mar 1, 2004 Internet Routing:

PART III. Implementing Inter-Network Relationships with BGP

BGP. Autonomous system (AS) BGP version 4

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

Ravi Chandra cisco Systems Cisco Systems Confidential

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

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

Border Gateway Protocol

CS 268: Computer Networking

internet technologies and standards

PATH VECTOR ROUTING AND THE BORDER GATEWAY PROTOCOL

CS118 Discussion Week 7. Taqi

Connecting to a Service Provider Using External BGP

INTERDOMAIN ROUTING POLICY

Inter-Domain Routing: BGP

Unit 3: Dynamic Routing

Routing Unicast routing protocols

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

Routing. Jens A Andersson Communication Systems

Interdomain Routing. EE122 Fall 2011 Scott Shenker

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

Some Foundational Problems in Interdomain Routing

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

Service Provider Multihoming

INTERDOMAIN ROUTING POLICY READING: SECTIONS PLUS OPTIONAL READING

Configuring BGP. Cisco s BGP Implementation

Lecture 19: Network Layer Routing in the Internet

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

Service Provider Multihoming

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

CS321: Computer Networks Unicast Routing

Introduction to IP Routing. Geoff Huston

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

Routing Concepts. IPv4 Routing Forwarding Some definitions Policy options Routing Protocols

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

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

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

Lecture 13: Traffic Engineering

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

Interdomain Routing. EE122 Fall 2012 Scott Shenker

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

Master Course Computer Networks IN2097

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

Lecture 17: Router Design

CSCD 433/533 Advanced Networks Spring 2016

Connecting to a Service Provider Using External BGP

Planning for Information Network

BGP Protocol & Configuration. Scalable Infrastructure Workshop AfNOG2008

CSE 461 Interdomain routing. David Wetherall

15-744: Computer Networking BGP

Backbone Networks. Networking Case Studies. Backbone Networks. Backbone Topology. Mike Freedman COS 461: Computer Networks.

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

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

Service Provider Multihoming

Why dynamic route? (1)

CSc 450/550 Computer Networks Internet Routing

Routing Basics ISP/IXP Workshops

Computer Networking Introduction

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

Inter-Domain Routing: BGP

Routing in the Internet

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

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

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

Transcription:

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

Overview Autonomous Systems Each network on the Internet has its own goals Path-vector Routing Allows scalable, informed route selection Border Gateway Protocol How routing gets done on the Internet today

The Internet is Complicated Inter-domain versus intra-domain routing You at work Peering point Consumer ISP Large corporation Backbone service provider Consumer ISP Peering point Large corporation Consumer ISP Small corporation You at home 3

A Brief History Original ARPAnet had single routing protocol Dynamic DV scheme, replaced with static metric LS algorithm New networks came on the scene NSFnet, CSnet, DDN, etc The total number of nodes was growing exponentially With their own routing protocols (RIP, Hello, ISIS) And their own rules (e.g. NSF AUP) New requirements Huge scale: millions of routers Varying routing metrics Need to express business realities (policies) 4

Shortest Path Doesn t Work All nodes need common notion of link costs Incompatible with commercial relationships National ISP1 National ISP2 YES NO Regional ISP3 Regional ISP2 Regional ISP1 Cust3 Cust2 Cust1 5

A Technical Solution Separate routing inside a domain from routing between domains Inside a domain use traditional interior gateway protocols (RIP, OSPF, etc)» You ve seen these already Between domains use Exterior Gateway Protocols (EGPs)» Only exchange reachability information (not specific metrics)» Decide what to do based on local policy What is a domain? 6

Autonomous Systems Internet is divided into Autonomous Systems Distinct regions of administrative control Routers/links managed by a single institution Service provider, company, university, Hierarchy of Autonomous Systems Large, tier-1 provider with a nationwide backbone Medium-sized regional provider with smaller backbone Small network run by a single company or university Interaction between Autonomous Systems Internal topology is not shared between ASes but, neighboring ASes interact to coordinate routing 7

Inter-domain Routing Border routers summarize and advertise their routes to external neighbors and vice-versa Border routers apply policy Internal routers can use notion of default routes AS1 R1 R3 R2 Autonomous system 1 Border router Core is default-free; routers must have a route to all networks in the world But what routing protocol? R5 R4 Autonomous Border system router 2 R6 AS2 8

Issues with Link-state Topology information is flooded High bandwidth and storage overhead Forces nodes to divulge sensitive information Entire path computed locally per node High processing overhead in a large network Minimizes some notion of total distance Works only if policy is shared and uniform Typically used only inside an AS E.g., OSPF and IS-IS 9

Distance Vector almost there Advantages Hides details of the network topology Nodes determine only next hop toward the destination Disadvantages Minimizes some notion of total distance, which is difficult in an interdomain setting Slow convergence due to the counting-to-infinity problem ( bad news travels slowly ) Idea: extend the notion of a distance vector To make it easier to detect loops 10

Path-vector Routing Extension of distance-vector routing Support flexible routing policies Avoid count-to-infinity problem Key idea: advertise the entire path Distance vector: send distance metric per destination Path vector: send the entire path for each destination 3 d: path (2,1) d: path (1) 2 1 data traffic data traffic d 11

Loop Detection Node can easily detect a loop Look for its own node identifier in the path E.g., node 1 sees itself in the path 3, 2, 1 Node can simply discard paths with loops E.g., node 1 simply discards the advertisement 3 d: path (2,1) d: path (1) 2 1 d: path (3,2,1) 12

Policy Support Each node can apply local policies Path selection: Which path to use? Path export: Which paths to advertise? Examples Node 2 may prefer the path 2, 3, 1 over 2, 1 Node 1 may not let node 3 hear the path 1, 2 2 3 2 3 1 1 13

Border Gateway Protocol Interdomain routing protocol for the Internet Prefix-based path-vector protocol Policy-based routing based on AS Paths Evolved during the past 27 years 1989 : BGP-1 [RFC 1105], replacement for EGP 1990 : BGP-2 [RFC 1163] 1991 : BGP-3 [RFC 1267] 1995 : BGP-4 [RFC 1771], support for CIDR 2006 : BGP-4 [RFC 4271], update 14

Basic BGP Operation Establish session AS1 Exchange all active routes BGP session AS2 Exchange incremental updates While connection is ALIVE exchange route UPDATE messages 15

Step-by-Step A node learns multiple paths to destination Stores all of the routes in a routing table Applies policy to select a single active route and may advertise the route to its neighbors Incremental updates Announcement» Upon selecting a new active route, add own node id to path» and (optionally) advertise to each neighbor Withdrawal» If the active route is no longer available» send a withdrawal message to the neighbors 16

A Simple BGP Route Destination prefix (e.g., 128.112.0.0/16) Route attributes, including AS path (e.g., 7018 88 ) Next-hop IP address (e.g., 12.127.0.121) AS 88 Princeton 192.0.2.1 AS 7018 AT&T 12.127.0.121 AS 11 Harvard 128.112.0.0/16 AS path = 88 Next Hop = 192.0.2.1 128.112.0.0/16 AS path = 7018 88 Next Hop = 12.127.0.121 17

BGP Attributes Local pref: Statically configured ranking of routes within AS AS path: ASs the announcement traversed Origin: Route came from IGP or EGP Multi Exit Discriminator: preference for where to exit network Community: opaque data used for inter-isp policy Next-hop: where the route was heard from 18

Export Active Routes In conventional path vector routing, a node has one ranking function, which reflects its routing policy 19

BGP Decision Process Default decision for route selection Highest local pref, shortest AS path, lowest MED, prefer ebgp over ibgp, lowest IGP cost, router id Many policies built on default decision process, but Possible to create arbitrary policies in principal» Any criteria: BGP attributes, source address, prime number of bytes in message,» Can have separate policy for inbound routes, installed routes and outbound routes Limited only by power of vendor-specific routing language 20

Example: Local Pref AS 4 local pref = 80 AS 5 local pref = 90 AS 3 local pref = 100 Higher Local preference values are more preferred AS 2 AS 1 13.13.0.0/16 21

Example: Short AS Path Shorter AS Paths are more preferred AS701 UUnet 128.2/16 9 AS9 CMU (128.2/16) AS7018 AT&T 128.2/16 9 128.2/16 9 701 AS73 Univ of Wash 128.2/16 9 7018 1239 AS1239 Sprint 128.2/16 9 7018 22

AS Paths vs. Router Paths Mr. BGP says that path 4 1 is better than path 3 2 1 AS 3 AS 4 AS 2 AS 1 23

BGP Has Lots of Problems Instability Route flapping (network x.y/z goes down tell everyone) Long AS-path decision criteria defaults to DV-like behavior (bouncing) Not guaranteed to converge, NP-hard to tell if it does Scalability still a problem >500,000 network prefixes in default-free table today Tension: Want to manage traffic to very specific networks (eg. multihomed content providers) but also want to aggregate information. Performance Non-optimal, doesnt balance load across paths 24

A History of Settlement The telephone world LECs (local exchange carriers) (e.g., pacbell, nynex) IXCs (inter-exchange carriers) (e.g., sprint, at&t) LECs MUST provide IXCs access to customers This is enforced by laws and regulation When a call goes from one phone company to another: Call billed to the caller The money is split up among the phone systems this is called settlement 25

Business Relationships Neighboring ASes have business contracts How much traffic to carry Which destinations to reach How much money to pay Common business relationships Customer-provider» E.g., Princeton is a customer of USLEC» E.g., MIT is a customer of Level3 Peer-peer» E.g., UUNET is a peer of Sprint» E.g., Harvard is a peer of Harvard Business School 26

Customer/Provider Customer needs to be reachable from everyone Provider tells all neighbors how to reach the customer Customer does not want to provide transit service Customer does not let its providers route through it Traffic to the customer Traffic from the customer announcements provider d provider traffic d customer customer 27

Multi-Homing Customers may have more than one provider Extra reliability, survive single ISP failure Financial leverage through competition Better performance by selecting better path Gaming the 95 th -percentile billing model Provider 1 Provider 2 28

Peer-to-Peer Relationship Peers exchange traffic between customers AS exports only customer routes to a peer AS exports a peer s routes only to its customers Often the relationship is settlement-free (i.e., no $$$) Traffic to/from the peer and its customers announcements peer traffic peer d 29

Tier-1 Providers Make up the core of the Internet Has no upstream provider of its own Typically has a national or international backbone Top of the Internet hierarchy of ~10-20 ASes E.g., AT&T, Level3, NTT, Qwest, SAVVIS (formerly Cable & Wireless), Sprint, Verizon Full peer-peer connections between tier-1 providers 30

Traditional Tiered Internet graphics courtesy Craig Labovitz 31

The New Reality Settlement free Pay for BW Pay for access BW 32

BGP Summary Interdomain-routing Exchange reachability information (plus hints) BGP is based on path vector routing Local policy to decide which path to follow Traffic exchange policies are a big issue $$$ Complicated by lack of compelling economic model (who creates value?) Can have significant impact on performance 33

For next time Router architecture: how to forward pkts quickly Read Ch 3.4 in P&D Keep going on Project 2 34