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

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

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

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

Inter-Domain Routing: BGP

IP Addressing & Interdomain Routing. Next Topic

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

COMP/ELEC 429 Introduction to Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

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

Inter-AS routing and BGP. Network Layer 4-1

Professor Yashar Ganjali Department of Computer Science University of Toronto.

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

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

PART III. Implementing Inter-Network Relationships with BGP

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

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

Interdomain routing CSCI 466: Networks Keith Vertanen Fall 2011

Inter-domain Routing. Outline. Border Gateway Protocol

Routing in the Internet

Internet Routing Protocols Lecture 01 & 02

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

Lecture 18: Border Gateway Protocol

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

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

Routing Unicast routing protocols

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

Chapter IV: Network Layer

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

PATH VECTOR ROUTING AND THE BORDER GATEWAY PROTOCOL

Chapter 4: Network Layer

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

Routing. Jens A Andersson Communication Systems

Network Layer: Routing

Lecture 17: Border Gateway Protocol

Computer Networking Introduction

Internet inter-as routing: BGP

CS 204: BGP. Jiasi Chen Lectures: MWF 12:10-1pm Humanities and Social Sciences

Chapter 4: Network Layer. Lecture 12 Internet Routing Protocols. Chapter goals: understand principles behind network layer services:

Introduction to IP Routing. Geoff Huston

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

CSc 450/550 Computer Networks Internet Routing

Chapter 4: outline. Network Layer 4-1

CS BGP v4. Fall 2014

DATA COMMUNICATOIN NETWORKING

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Why dynamic route? (1)

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

Internet Routing Protocols Lecture 03 Inter-domain Routing

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 14, 2013

Routing part 2. Electrical and Information Technology

Internet Routing : Fundamentals of Computer Networks Bill Nace

TELE 301 Network Management

Chapter 4: Network Layer, partb

ETSF10 Internet Protocols Routing on the Internet

internet technologies and standards

Network layer: Overview. Network layer functions Routing IP Forwarding

Inter-Domain Routing: BGP

Routing Protocols --- Exterior Gateway Protocol

BGP. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Routing Protocols. Autonomous System (AS)

CSCI Topics: Internet Programming Fall 2008

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

Interdomain Routing. EE122 Fall 2011 Scott Shenker

CSC 4900 Computer Networks: Routing Protocols

Inter-Domain Routing: BGP

Master Course Computer Networks IN2097

CS 268: Computer Networking. Next Lecture: Interdomain Routing

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

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

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

Introduction to Communication Networks Spring Unit 16 Global Internetworking

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms

Master Course Computer Networks IN2097

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice

Interplay Between Routing, Forwarding

CMSC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala October 9, 2018 (a) October 18 October 9,

Inter-Autonomous-System Routing: Border Gateway Protocol

CSCE 463/612 Networks and Distributed Processing Spring 2018

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

Network Routing. Packet Routing, Routing Algorithms, Routers, Router Architecture

CSE 461 Interdomain routing. David Wetherall

Inter-Domain Routing: BGP II

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

Inter-Autonomous-System Routing: Border Gateway Protocol

Routing. Outline. Algorithms Scalability

Lecture 19: Network Layer Routing in the Internet

CS555, Spring /5/2005. April 12, 2005 No classes attend Senior Design Projects conference. Chapter 4 roadmap. Internet AS Hierarchy

Routing(2) Inter-domain Routing

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

Unit 3: Dynamic Routing

EECS 122, Lecture 16. Link Costs and Metrics. Traffic-Sensitive Metrics. Traffic-Sensitive Metrics. Static Cost Metrics.

Topics for This Week

HY 335 Φροντιστήριο 8 ο

Internet Interconnection Structure

Interdomain Routing. EE122 Fall 2012 Scott Shenker

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

COMP211 Chapter 5 Network Layer: The Control Plane

CS321: Computer Networks Unicast Routing

CSCD 433/533 Advanced Networks Spring 2016

ITTC Introduction to Communication Networks The University of Kansas EECS 563 Network Routing

Transcription:

Routing on the Internet Computer Networks Lecture 17: Inter-domain Routing and BGP In the beginning there was the ARPANET: route using GGP (Gateway-to-Gateway Protocol), a distance vector routing protocol Problems: needed flag-hour to update routing protocol incompatibility across vendors Routing on the Internet Solution: hierarchical routing administrative autonomy: each network admin can control routing within its own network internet: network of networks allows the Internet to scale: with 200 million hosts, each router can t store all destinations in its routing table route updates alone will swamp the links Aggregate routers into regions of autonomous systems (ASs) 1.1 border routers 4.4 4.1 4.3 2.2 2.1 4.2 AS4 3.2 3.3 3.1 3.4 AS3 Hierarchical Routing Gateway/border router neighboring ASs interact to coordinate routing direct link to router in other AS(s) keeps in its routing table: next hop to other ASs all hosts within its AS hosts within an AS only keep a default route to the border router 1.1 border routers 4.4 4.1 4.3 2.2 2.1 4.2 AS4 3.2 3.1 3.4 3.3 AS3 3.1 dest next 1.* 1.1 2.* 2.1 4.* 2.1 3.2 3.2 3.3 3.3 3.4 3.4

Hierarchical Routing Routers in the same AS run same routing protocol intra-as routing protocol each AS uses its own link metric routers in different ASs can run different intra-as routing protocol 2.2 2.1 3.2 3.3 The NSFNet 1989 Area hierarchy: backbone/core: NSFNet regional networks: MichNet, BARRNET, Los Nettos, Cerfnet, JVCNet, NEARNet, etc. campus networks point of presence (pop) Customer networks Users NSFNet backbone Regional networks [Walrand] internal topology is not shared between ASs 1.1 border routers 3.1 3.4 AS3 4.4 4.1 4.3 4.2 AS4 [Halabi] [Merit Networks] Commercialization (1994) AS Structure: Other ASs Roughly hierarchical At center: Tier-1 ISPs Tier-1 ASs: top of the Internet hierarchy of ~10 Ass: AOL, AT&T, Global Crossing, Level3, Verizon/UUNET, NTT, Qwest, SAVVIS (formerly Cable & Wireless), Sprint, etc. full (N 2 ) peering relationships between Tier-1 providers has no upstream provider Tier-1 providers interconnect (peer) privately Tier-1 providers also interconnect at public network access points (NAPs) AT&T Sprint Verizon [Walrand] Lower tier providers provide transit service to downstream customers but, need at least one provider of their own typically have national or regional scope includes several thousand ASs Stub ASs do not provide transit service to others connect to one or more upstream providers includes the vast majority (e.g., 85-90%) of the ASs national/international coverage [Halabi]

Tier-2 ISPs: Smaller (Often Regional) ISPs Connect to one or more tier-1 ISPs, possibly other tier-2 ISPs pays tier-1 ISP for connectivity to rest of Internet tier-2 ISP is customer of tier-1 provider Tier 1 ISP NAP s also peer privately with each other, and interconnect at NAPs Tier-3 ISPs and Local ISPs Last hop ( access ) network (closest to end systems) Local and tier- 3 ISPs are customers of higher tier ISPs connecting them to rest of Internet Tier-3 ISP NAP A Packet Passes Through Many Networks Tier-3 ISP NAP AS Number Trivia AS number is a 16-bit quantity 65,536 unique AS numbers Some are reserved numbers (e.g., for private ASs) only 64,510 are available for public use Managed by Internet Assigned Numbers Authority (IANA) gives blocks of 1,024 to Regional Internet Registries RIRs assign AS numbers to institutions 49,649 AS numbers in visible use (Feb 15) In 2007 started assigning 32-bit AS #s

Growth of AS numbers To learn more about Internet AS state see: Geoff Huston s CIDR Report http://www.cidr-report.org/as2.0/ CAIDA skitter maps: http://www.caida.org/research/topology/as_core_network/ AS_Network.xml Interdomain Routing AS-level topology destinations are CIDR address prefixes (APs, e.g., 12.0.0.0/8) nodes are Autonomous Systems (ASs) edges are business relationships 3 4 5 1 2 Client 7 6 Web server Challenges for Interdomain Routing Scale address prefixes (APs): 200,000 and growing ASs: ~50,000 visible ones, and 60K allocated routers: at least in the millions Proprietary information: ASs don t want to divulge internal topologies nor their business relationships with neighbors Policy no Internet-wide notion of a link cost metric need control over where you send traffic and who can send traffic through you Why SPF is not Suitable Topology information is flooded high bandwidth and storage overhead nodes must divulge sensitive commercial information Entire path computed locally per node high processing overhead in a large network Route computation minimizes some notion of total distance all traffic must travel on shortest paths

Why SPF is not Suitable All nodes need common notion of link costs works only if policy is shared and uniform Incompatible with commercial relationships Why Not Distance Vector? Advantages hides details of the network topology nodes determine only next hop toward the destination Regional ISP3 National ISP1 Regional ISP2 National ISP2 Regional ISP1 YES NO Disadvantages route computation still entails minimization of some notion of total distance, which is difficult in an interdomain setting slow convergence due to reliance on counting-to-infinity to detect routing loop Cust3 Cust2 Cust1 Instead use path vector easier loop detection [after Rexford] Path-Vector Routing Avoid counting-to-infinity by advertising entire path distance vector: send distance metric per destination path vector: send the entire path for each destination Loop detection: each node looks for its own node identifier in advertised path and discards paths with loops e.g., node 1 sees itself in the path (3, 2, 1) and discards the path Other Advantage: Flexible Policies 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 want node 3 to hear of the path 1, 2 3 d: path (2,1) d: path (1) 2 1 data traffic data traffic d: path (3,2,1) d 2 3 1 2 3 1

Internet inter-as Routing: BGP BGP (Border Gateway Protocol) is the de facto standard for inter-as routing 06/89 v.1 06/90 v.2 EGP (Exterior Gateway Protocol) to BGP transition 10/91 v.3 BGP installed 07/94 v.4 de facto standard Internet inter-as Routing: BGP BGP provides each AS a means to: use prefix-based path-vector protocol propagates AP reachability to all routers inside the AS obtains AP reachability from neighboring ASs determines good routes to APs based on reachability information and policy Inter-AS routing is policy driven, not load-sensitive, generally not QoS-based When an AS advertises an AP to another AS, it is promising to forward any packets the other AS sends to the AP an AS can aggregate CIDR APs in its advertisement BGP runs over TCP Pairs of BGP routers (BGP peers) establish semipermanent TCP connections: BGP sessions advantage of using TCP: reliable transmission allows for incremental updates: updates only when changes occur disadvantage: TCP congestion control mechanism slows down route updates that could decongest link! Failure detection: TCP doesn t detect lost connectivity on its own instead, BGP must detect failure sends KEEPALIVE packets every 60 seconds hold timer: 180 seconds BGP sessions do not correspond to physical links, but rather business relationship BGP Messages BGP messages: OPEN: opens TCP connection to peer and authenticates sender UPDATE: advertises a new active path (or withdraws one no longer available) KEEPALIVE: keeps connection alive in the absence of UPDATEs; also acknowledges OPEN request NOTIFICATION: reports errors in previous message; also used to close connection [after Rexford]

BGP Operations Establish session on TCP port 179 Exchange all active routes BGP session Path Attributes & BGP Routes When advertising an AP, advertisement includes BGP attributes Two important attributes: AS-PATH: the path vector of ASs through which the advertisement for an AP passed through NEXT-HOP: the specific internal-as router to next-hop AS (there may be multiple exits from current AS to next-hop-as) Exchange incremental updates While connection is ALIVE, exchange route UPDATE messages Path Attributes & BGP Routes Sample BGP entry: destination NEXT-HOP AS-PATH 198.32.163.0/24 202.232.1.8 2497 2914 3582 4600 address range 198.32.163.0/24 is in AS 4600 to get there, send to next hop router at address 202.232.1.8 the path there goes through ASs 2497, 2914, 3582, in order AS path chosen may not be the shortest AS path Router path may be longer than AS path s 2 AS hops, 11 router hops 3 AS hops, 7 router hops d [after Rexford] Causes of BGP Routing Changes Topology changes equipments going up or down deployment of new routers or sessions BGP session failures due to equipment failures, maintenance, etc. or, due to congestion on the physical path Changes in routing policy changes in preferences in the routes changes in whether the route is exported Persistent protocol oscillation conflicts between policies of different ASs

BGP Session Failure Reacting to a failure discard all routes learned from the neighbor send new updates for any routes that change overhead increases with # of routes reason why many Tier-1 ASs filter out prefixes longer than /24 Routing Change: Before and After delete the route (1, 0) switch to next route (1, 2, 0) send route (1, 2, 0) to AS3 AS3 sees (1, 2, 0) replace (1,0) compares to route (2, 0) switches to using 0 (1, 0) (2, 0) 1 2 (3, 1, 0) (1, 2, 0) 3 (3, 2, 0)