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

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

Chapter IV: Network Layer

Chapter 4: outline. Network Layer 4-1

CSCI Topics: Internet Programming Fall 2008

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

Chapter 4: Network Layer

DATA COMMUNICATOIN NETWORKING

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

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

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

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

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

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

Lecture 19: Network Layer Routing in the Internet

Computer Networking Introduction

PART III. Implementing Inter-Network Relationships with BGP

Chapter 4: Network Layer, partb

CSC 4900 Computer Networks: Routing Protocols

Inter-Domain Routing: BGP

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

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

Routing in the Internet

Chapter 4 Network Layer

Network layer: Overview. Network layer functions Routing IP Forwarding

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

Internet inter-as routing: BGP

COMP211 Chapter 5 Network Layer: The Control Plane

Internet rou)ng. V. Arun CS491G: Computer Networking Lab University of MassachuseFs Amherst

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

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

CSc 450/550 Computer Networks Internet Routing

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

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

5.1 introduction 5.5 The SDN control 5.2 routing protocols plane. Control Message 5.3 intra-as routing in Protocol the Internet

IP Addressing & Interdomain Routing. Next Topic

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

CSCE 463/612 Networks and Distributed Processing Spring 2018

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

CSCE 463/612 Networks and Distributed Processing Spring 2018

Chapter 5 Network Layer: The Control Plane

Inter-Autonomous-System Routing: Border Gateway Protocol

Chapter 4: Network Layer

Inter-Autonomous-System Routing: Border Gateway Protocol

Chapter 4: Network Layer. TDTS06 Computer networks. Subnets. Subnets. Subnets. IP Addressing: introduction

CNT Computer and Network Security: BGP Security

Routing Unicast routing protocols

Master Course Computer Networks IN2097

Inter-domain Routing. Outline. Border Gateway Protocol

CS118 Discussion 1A, Week 7. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

CS 3516: Computer Networks

Master Course Computer Networks IN2097

Introduction to Communication Networks Spring Unit 16 Global Internetworking

Routing. Jens A Andersson Communication Systems

Internet Routing : Fundamentals of Computer Networks Bill Nace

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

Network Layer: Routing

Interdomain routing CSCI 466: Networks Keith Vertanen Fall 2011

Network layer: Overview. Network layer functions Routing IP Forwarding

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

Chapter 4: Network Layer: Part II

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

Topics for This Week

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Network Layer: Control Plane 5-2

11/13/2017 Network Layer (SSL) Network-layer functions. Recall the two network-layer functions:

COMP/ELEC 429 Introduction to Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

EC441 Fall 2018 Introduction to Computer Networking Chapter 5: Network Layer Control Plane

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

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

Interplay Between Routing, Forwarding

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

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

Master Course Computer Networks IN2097

Routing part 2. Electrical and Information Technology

Chapter 4: Network Layer

Network Layer: Routing. Routing. Routing protocol. Graph abstraction for routing algorithms: graph nodes are routers graph edges are physical links

Course on Computer Communication and Networks. Lecture 7 Network Layer, Chapter 4 (6/e) - Part B (7/e Ch5)

DATA COMMUNICATOIN NETWORKING

CSC 8560 Computer Networks: Control Plane

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

Routing. Outline. Algorithms Scalability

Network Layer: Routing

Module 3 Network Layer CS755! 3-1!

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

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

ETSF10 Internet Protocols Routing on the Internet

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

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

Lecture 17: Border Gateway Protocol

Computer Networks. Instructor: Niklas Carlsson

Unit 3: Dynamic Routing

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

Lecture 9. Network Layer (cont d) Network Layer 1-1

Internetworking: Global Internet and MPLS. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Professor Yashar Ganjali Department of Computer Science University of Toronto.

Inter-Domain Routing: BGP

EECS 3214: Computer Networks Protocols and Applications

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

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Transcription:

Inter-AS routing Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley Some materials copyright 1996-2012 J.F Kurose and K.W. Ross, All Rights Reserved

Chapter 4: outline 4.1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What's inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing Network Address Translation (NAT) DHCP ICMP IPv6 IPsec 4.5 Routing algorithms Link state Distance vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP 4.7 Broadcast and multicast routing 2

Shortest path routing Problems with always taking shortest path: All traffic must travel on shortest path All nodes must do same link cost calculation Not possible to enforce various business rules National ISP 1 National ISP 2 Regional ISP 1 Regional ISP 2 Regional ISP 3 Customer 1 Customer 2 Customer 3 3

Shortest path routing Example: customer 3 talking to customer 1 Shortest path transits Regional ISP 2 Regional ISP 2 isn't being paid by either customer National ISP 1 National ISP 2 Regional ISP 1 Regional ISP 2 Regional ISP 3 Customer 1 Customer 2 Customer 3 4

Shortest path routing Example: customer 3 talking to customer 1 Goes through National ISP 1 & 2 Regional 3 is paying National ISP 2 Regional 1 is paying National ISP 1 National ISP 1 National ISP 2 Regional ISP 1 Regional ISP 2 Regional ISP 3 Customer 1 Customer 2 Customer 3 5

Shortest path routing Example: customer 3 talking to customer 2 Regional 2 and 3 are peered Avoid going through National ISP 2 since then both regionals would incur expense National ISP 1 National ISP 2 Regional ISP 1 Regional ISP 2 Regional ISP 3 Customer 1 Customer 2 Customer 3 6

Other routing issues Policies may be political, security, or economic: Some examples (Tanenbuam): Don't carry commercial traffic on educational network Never send Pentagon traffic through Iraq Use TeliaSonera instead of Verizon because it is cheaper Don't use AT&T in Australia because performance is poor Traffic starting or ending at Apple should not transit Google 7

Link-state, disadvantages Floods topology information High bandwidth and storage requirements Nodes divulge potentially sensitive information Entire path computed locally High processing overhead for large network Distance calculation hides information Everyone has to have a shared notion of link cost Typically used within one organization Autonomous System (AS) e.g. university, company, ISP Popular link-state protocols: OSPF, IS-IS 8

Disadvantages: Distance-vector Count to infinity, "bad news travels slow" Slow to converge Hides information that you might need in an inter-as setting Advantages: Summarizes details of network topology Trades optimality for scalability Each node only needs to know about next hop 9

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

Detecting loops Path-vector can easily detect loop Look for your own node ID in the path e.g. node 1 sees itself in path "3, 2, 1" Node can discard paths with loops e.g. node 1 drops advertisement 3 d: path (2,1) d: path (1) 2 1 d: path (3,2,1) 11

Flexible routing policies Each node can apply local policies: Path selection: Which path to use? Path export: Which path to advertise? 2 3 2 3 1 1 Node 2 may prefer the path "2, 3, 1" over the path "2, 1". Perhaps it is cheaper. Node 1 may not export the path "1, 2". Perhaps node 1 reserves the 1->2 link for special traffic. 12

Scaling up and up How to scale to the global Internet? Add another level of hierarchy! Routing amongst Autonomous Systems (ASes) Distinct regions of admin control Routers/links managed by a single institution ASes can use policy-based routing Interaction between ASes Neighboring ASes interact to coordinate routing Internal topology not shared 13

Autonomous System Numbers Each AS assigned a unique number Before 2007: AS Numbers 16-bit After 2007: IANA began allocating 32-bit AS numbers Currently over 50,000 allocated Level 3: 1 MIT: 3 Harvard: 11 Yale: 29 Princeton: 88 AT&T: 7018, 6341, 5074, UUNET: 701, 702, 284, 12199, Sprint: 1239, 1240, 6211, 6242, 14

AS stub Stub AS Single connection to another AS AS only carries local traffic e.g. Small corporation, university 15

AS multihomed Multihomed AS Connected to multiple ASes Refuses to carry transit traffic Improves reliability 16

AS transit Transit AS Connected to multiple ASes Designed to carry transit and local traffic 17

Peering point Peering point Allows ASes to connect directly, bypassing a transit AS. 18

AS-level topology Inter-AS routing Destinations are IP prefixes (e.g. 12.0.0.0/8) Nodes are Autonomous Systems (ASes) Edges are links and business relationships 3 4 5 1 Client 2 7 6 Web server 19

Scale: Inter-AS routing challenges IP prefixes: 200,000+ ASes: 20K+ visible, 50k+ allocated Routers: millions Privacy: ASes don't want other to known topology ASes don't want business relationships exposed Policy: No internet-wide notion of link cost metric Need control over where you send traffic, who you send traffic through, etc. 20

Interconnected ASes 3c 3a 3b AS3 1a 1c 1d 1b Intra-AS Routing algorithm AS1 Forwarding table Inter-AS Routing algorithm 2a 2c AS2 2b Forwarding table configured by both intraand inter-as routing algorithm Intra-AS sets entries for internal destinations Inter-AS & intra-as sets entries for external destinations 21

Suppose router in AS1 receives datagram destined outside of AS1: Router should forward packet to gateway router, but which one? Inter-AS tasks AS1 must: 1. Learn which dests are reachable through AS2, which through AS3 2. Propagate this reachability info to all routers in AS1 Job of inter-as routing! 3c other networks 3b AS3 3a 1a AS1 1c 1d 1b 2a AS2 2c 2b other networks 22

Setting forwarding table in router 1d AS1 learns that subnet x reachable via AS3 (gateway 1c), but not via AS2 Inter-AS protocol propagates info to all internal routers Router 1d determines from intra-as routing info that its interface I is on the least cost path to 1c Installs forwarding table entry (x,i) other networks 3b 3c AS3 3a 1a AS1 1c 1d x 1b 2a AS2 2c 2b other networks 23

Choosing among multiple ASes Now suppose AS1 learns from inter-as protocol that subnet x is reachable from AS3 and AS2. To configure forwarding table, router 1d must determine towards which gateway it should forward packets for dest x This is also job of inter-as routing protocol! other networks 3b 3c AS3 3a 1a AS1 1c 1d? x 1b 2a AS2 2c 2b other networks 24

Choosing among multiple ASes Now suppose AS1 learns from inter-as protocol that subnet x is reachable from AS3 and AS2. To configure forwarding table, router 1d must determine towards which gateway it should forward packets for dest x This is also job of inter-as routing protocol! Hot potato routing: send towards closest router Learn from inter-as protocol that subnet x is reachable via multiple gateways Use routing info from intra-as protocol to determine costs of least-cost paths to each of the gateways Hot potato routing: choose the gateway that has the smallest least cost Determine from forwarding table the interface I that leads to least-cost gateway. Enter (x,i) in forwarding table 25

Internet inter-as routing: BGP BGP (Border Gateway Protocol): De facto inter-domain routing protocol "glue that holds the Internet together" BGP allows each AS to: ebgp: Obtain subnet reachability information from neighboring ASes ibgp: Propagate reachability information to all AS-internal routers Determine good routes to other networks based on reachability information and policy Subnet to advertise its existence : "I am here" 26

BGP session: BGP basics Two BGP routers (peers) exchange BGP messages Path vector protocol, advertise paths to different prefixes Exchanged over semi-permanent TCP connections When AS3 advertises a prefix to AS1: AS3 promises it will forward datagrams towards that prefix AS3 can aggregate prefixes in its advertisement other networks 3b 3c AS3 3a 1a AS1 BGP message 1c 1d 1b 2a AS2 2c 2b other networks 27

BGP basics: distributing path info Using ebgp session between 3a and 1c, AS3 sends prefix reachability info to AS1. 1c can then use ibgp to distribute new prefix to all routers in AS1 1b can then re-advertise new reachability info to AS2 over 1b-to- 2a ebgp session When router learns of new prefix, it creates entry for prefix in its forwarding table. other networks 3b 3a AS3 1a AS1 1c 1d ebgp session ibgp session 1b 2a AS2 2c 2b other networks 28

Path attributes and BGP routes Advertised prefix includes BGP attributes prefix + attributes = route AS-PATH: contains ASs through which prefix advertisement has passed: e.g., AS 67, AS 17 NEXT-HOP: indicates specific internal-as router to next-hop AS. (may be multiple links from current AS to next-hop-as) Gateway router uses import policy to accept/decline e.g., never route through AS x policy-based routing 29

BGP route selection Router may learn about more than 1 route to destination AS, selects route based on: 1. Local preference value attribute: policy decision 2. Shortest AS-PATH 3. Closest NEXT-HOP router: hot potato routing 4. Additional criteria 30

BGP messages BGP messages exchanged between peers over TCP connection BGP messages: OPEN: opens TCP connection to peer and authenticates sender UPDATE: advertises new path (or withdraws old) KEEPALIVE: keeps connection alive in absence of UPDATES; also ACKs OPEN request NOTIFICATION: reports errors in previous msg; also used to close connection 31

BGP routing policy B legend: provider network W A C X customer network: Y A,B,C are provider networks X,W,Y are customer (of provider networks) X is dual-homed: attached to two networks X does not want to route from B via X to C.. so X will not advertise to B a route to C 32

BGP routing policy (2) B legend: provider network W A C X customer network: Y A advertises path AW to B B advertises path BAW to X Should B advertise path BAW to C? No way! B gets no revenue for routing CBAW since neither W nor C are B s customers B wants to force C to route to w via A B wants to route only to/from its customers! 33

Why different Intra-, Inter-AS routing? Policy: Inter-AS: Admin wants control over how its traffic routed, who routes through its net. Intra-AS: Single admin, so no policy decisions needed Scale: Hierarchical routing saves table size, reduced update traffic Performance: Intra-AS: Can focus on performance Inter-AS: Policy may dominate over performance 34

Inter-AS routing Summary Scaling routing to Internet scale Routing between independent ASes Allows routing to encode business rules Border Gateway Protocol (BGP) A path vector protocol The glue that holds the Internet together 35