Inter-Domain Routing: BGP

Similar documents
Inter-Domain Routing: BGP

Inter-Domain Routing: BGP

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

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

Inter-Domain Routing: BGP II

Inter-Domain Routing: BGP II

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

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. 24: Internet Routing November 19, 2018

Lecture 18: Border Gateway Protocol

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

Inter-domain Routing. Outline. Border Gateway Protocol

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

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

Master Course Computer Networks IN2097

CS BGP v4. Fall 2014

IP Addressing & Interdomain Routing. Next Topic

CSE 461 Interdomain routing. David Wetherall

Internet Routing : Fundamentals of Computer Networks Bill Nace

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

Inter-Domain Routing: BGP

Lecture 17: Border Gateway Protocol

Internet Routing Protocols Lecture 01 & 02

TELE 301 Network Management

Master Course Computer Networks IN2097

Routing Basics. ISP Workshops. Last updated 10 th December 2015

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

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

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

COMP/ELEC 429 Introduction to Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

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

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

EECS 122, Lecture 17. The Distributed Update Algorithm (DUAL) Optimization Criteria. DUAL Data Structures. Selecting Among Neighbors.

Routing Basics ISP/IXP Workshops

Small additions by Dr. Enis Karaarslan, Purdue - Aaron Jarvis (Network Engineer)

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

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

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

Link State Routing & Inter-Domain Routing

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

Routing Basics. Campus Network Design & Operations Workshop

Routing Basics. Routing Concepts. IPv4. IPv4 address format. A day in a life of a router. What does a router do? IPv4 Routing

Internet Routing Protocols Lecture 03 Inter-domain Routing

Interdomain routing CSCI 466: Networks Keith Vertanen Fall 2011

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

Routing Basics ISP/IXP Workshops

Lecture 19: Network Layer Routing in the Internet

Introduction to The Internet

Routing Basics. ISP Workshops

Introduction to The Internet

CSE 561 Lecture 6, Spring David Wetherall

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

BGP Case Studies. ISP Workshops

Introduction to exterior routing. Autonomous Systems

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

Network Layer (Routing)

Some Foundational Problems in Interdomain Routing

Routing(2) Inter-domain Routing

BGP Protocol & Configuration. Scalable Infrastructure Workshop AfNOG2008

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

Introduction to Networking. Topologies and Definitions. Network Topology and Definitions. Some Icons. Network Topologies. Network Topologies

Basic Idea. Routing. Example. Routing by the Network

Routing(2) Inter-domain Routing

Back to basics J. Addressing is the key! Application (HTTP, DNS, FTP) Application (HTTP, DNS, FTP) Transport. Transport (TCP/UDP) Internet (IPv4/IPv6)

Dynamic Routing. The Protocols

Routing by the Network

Routing(2) Inter-domain Routing

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

Internet Routing Protocols, DHCP, and NAT

Routing in the Internet

BGP Multihoming ISP/IXP Workshops

BGP101. Howard C. Berkowitz. (703)

internet technologies and standards

CS 268: Computer Networking. Next Lecture: Interdomain Routing

BGP Multihoming. ISP/IXP Workshops

Introduction to IP Routing. Geoff Huston

What is an Internet exchange Point (IXP)?

Module 14 Transit. Objective: To investigate methods for providing transit services. Prerequisites: Modules 12 and 13, and the Transit Presentation

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

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

CSCD 433/533 Advanced Networks Spring 2016

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

3/10/2011. Copyright Link Technologies, Inc.

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

PART III. Implementing Inter-Network Relationships with BGP

Networking 101 ISP/IXP Workshops

Route Filtering. Types of prefixes in IP core network: Internal Prefixes External prefixes. Downstream customers Internet prefixes

Chapter IV: Network Layer

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

Service Provider Multihoming

Route Filtering. Types of prefixes in IP core network: Internal Prefixes External prefixes. Downstream customers Internet prefixes

Routing Basics. SANOG July, 2017 Gurgaon, INDIA

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

Unicast Routing. TCP/IP class

Internet Measurements. Motivation

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

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

Routing. Jens A Andersson Communication Systems

Life After IPv4 Depletion

Transcription:

Inter-Domain Routing: BGP Stefano Vissicchio UCL Computer Science CS 3035/GZ01

Agenda We study how to route over the Internet 1. Context The Internet, a network of networks Relationships between ASes 2. Inter-domain routing 3. BGP 2

We have studied Intra-Domain Routing Domain 1 (e.g., UCL) 1.2.3.48 1.2.3.156 5.6.7.11 host host DNS host host... DNS 1.2.2.0/23 255.255.254. 1.2.3.19 0 router router router 5.6.7.0/24 Internet Domain: single organization, typically owning 100s routers 3

We now look at Inter-Domain Routing Domain 1 (e.g., UCL) Domain 2 (e.g., JANET) Domain 3 (e.g., Cambridge) 4

in the Big Internet Domain 10 (e.g., GEANT) Domain 172 (e.g., Internet2) Domain 2 (e.g., JANET) Domain 1 (e.g., UCL) Domain 3 (e.g., Cambridge) Domain 564 (e.g., CENIC) Domain 1771 (e.g., Berkeley) 5

in the Big Internet Domain 10 (e.g., GEANT) Domain 172 (e.g., Internet2) About Domain 60,000 2 Ases on (e.g., Dec JANET) 5 th, 2017 (see cidr-report.org) Domain 1 (e.g., UCL) Domain 3 (e.g., Cambridge) Domain 564 (e.g., CENIC) Domain 1771 (e.g., Berkeley) 6

Domains == Autonomous Systems In inter-domain routing, a domain is also called Autonomous System (AS) Each AS known by unique 32-bit number used to be 16 bits, but expanded in 2006 AS owns one or a handful of address prefixes assigned by Regional Internet Registries (RIRs) RIPE, ARIN, LACNIC, APNIC, AFRINIC overseen by IANA 7

Agenda We study how to route over the Internet 1. Context The Internet, a network of networks Relationships between ASes 2. Inter-domain routing 3. BGP 8

Global Internet Routing: Naïve View Shared, densely connected infrastructure ASes cooperate to find globally optimal paths e.g., globally shortest and lightly loaded paths No correspondence to reality! 10

Global Internet Routing: Socialist Style Multiple, interconnected Internet Service Providers (ISPs) ISPs all equal: in connectivity and network extent Little correspondence to reality! 11

Global Internet Routing: Capitalist Style Tiers of ISPs: Tier 3: local ISPs Tier 2: regional ISPs Tier 1: worldwide ISPs Some relation to reality! ISPs are business entities Routing follows money, per-as policies 12

AS Relationships Basic connectivity model: customer-provider Customer: smaller AS paying for connectivity (e.g., corporations, universities) Provider: larger AS being paid for connectivity (e.g., regional ISPs) Alternative: peering Two ASes mutually forward their own traffic, but there is no exchange of money 13

AS Relationship: Customer-Provider Provider allow customer to route to (nearly) all destinations in its routing tables It provides transit to customer s traffic Transit nearly always involves payment from customer to provider 14

AS Relationship: Peering Two ASes mutually allow one another to route to some destinations usually, ISPs peer for customers destinations Contractual agreement, but usually no money changes hands as long as traffic ratio is narrower than, e.g., 4:1 15

Incentives to Peer Typically, two ISPs notice their own direct customers originate a lot of traffic for the other Peering ISPs avoids paying transit costs to providers for this traffic; shunt it directly to one another Often better performance (shorter latency, lower loss rate) as avoid transit via another provider Easier than attracting one another s customers Note: Tier 1s must typically peer with one another to build complete, global routing tables 16

Disincentives to Peer Yet, ISPs compete with each other Peering doesn t let ISPs charge anybody Transit traffic enables to charge customers Peering contracts must be renegotiated often Peers need to agree on how to handle asymmetric traffic loads between them Nobody really knows if and how traffic patterns will change after peering 17

Agenda We study how to route over the Internet 1. Context 2. Inter-domain routing Goals Basic scheme 3. BGP 18

Inter-Domain Routing: Goals Scalability Each Internet host must have unique IP address Internet hosts are millions (potentially, trillions?) Onerous / impractical to consult central authority for each new host 19

Internet Address Allocation is Hierarchical Routers keep track IP prefixes Divide 32-bit IP address hierarchically e.g., 128.16.64.200 is a host at UCL e.g., 128.16.64/24 prefix is UCL CS dept e.g., 128.16/16 prefix is all of UCL 20

Hierarchical Addressing: Pros Reduction of number of destinations in global Internet routing system Outside UCL, single prefix 128.16/16 can represent thousands of hosts on UCL network Decentralized allocation of unique addresses Inside UCL, local authority can allocate low-order 16 bits of host IP addresses under 128.16 prefix Based on the intuition that centralized address allocation is easier for smaller user/host population 21

Hierarchical Addressing: Cons Inherent loss of information from global routing protocol; implies less optimal routes External ASes know nothing about UCL s addresses: all traffic via London if UCL has host in Antarctica Host addresses indicate both host identity and network attachment point Suppose I move my UCL laptop to Berkeley: IP address must change, so it aggregates under Berkeley IP prefix! 22

Inter-Domain Routing: Goals Scalability in number of ASes and prefixes Yet, 60k ASes and 700k announced prefixes 23

Inter-Domain Routing: Goals Scalability in number of ASes and prefixes Yet, 60k ASes and 700k announced prefixes Enforcing policies, not optimality! ASes are competitors, and routing must reflect commercial agreements We need cooperation under competitive pressure BGP designed to run on successor to NSFnet, the former single, government-run backbone 24

Intra-Domain Protocols aren t appropriate Insufficient scalability DV and LS cannot scale to Internet routing prohibitive message complexity for LS flooding loops and slow convergence for DV No support for policies DV and LS compute shortest paths How to reflect commercial agreements? 25

Hence, BGP... New goals raise the need for a new protocol BGP is the de-facto inter-domain routing protocol It allows to route between ASes, with policies BGP is complementary to LS and DV protocols BGP is an Exterior Gateway Protocol (EGP), as it runs between ASes LS and DV are Interior Gateway Protocols (IGPs), since they run among subnets inside a single AS 26

Agenda We study how to route over the Internet 1. Context 2. Inter-domain routing Goals Basic scheme 3. BGP 27

Inter-domain Routing Principles ASes exchange coarse-grained information At a per-as level rather than at a per-router one Scalable, support Internet business model competition à information hiding Each AS implements autonomous routing choices Custom route selection Custom route filtering 28

Routes are Offers to Carry Traffic AS A can offer to forward traffic from AS B to a destination D A advertises to B a route for destination D Forwarding traffic has a cost bandwidth, network resources, etc. Routes reflect economic agreement between ASes e.g., B pays A for the forwarded traffic 29

ASes Autonomously Select Routes Each AS selects one among the many routes received for the same destination e.g., routers may hear a different route from each neighbouring AS In route selection, the identity of advertiser is key ASes are profit-driven Customer traffic is remunerative, peering traffic is neutral and provider traffic is a cost Customer routes > peer routes > provider routes 30

ASes Filter Routes ASes import only some routes from neighbours Strongly motivated to control which routes to avoid e.g., don t carry traffic for a provider (for free) But also export only some routes to neighbours e.g., only let peering AS send to specific customer destinations enumerated peering contract Note: only selected routes are exported! 31

Routes Heard from Customers An ISP is motivated to advertise routes to reach its own customers to everybody Customers pay to be reachable from global Internet More traffic à customer will buy a faster link If an ISP hears route for its own customer from multiple neighbours, it should favour advertisement from its own customer 32

Routes Heard from Providers If ISP hears routes from its provider (via a transit relationship), it passes them to customers only Customers pay to reach global Internet Not to peers or providers: they don t pay, so no motivation to provide transit service for them! 33

Example: Routes Heard from Providers ISP P announces route to C P, own customer, to X X doesn t announce C P to Y or Z; no revenue from peering X announces C P to C i ; they re paying to be able to reach everywhere 34

Routes Advertised to Peers Which routes should an ISP advertise to ASes with whom it has peering relationships? Routes to ISP s own addresses Routes for all own downstream customers Not routes heard from upstream transit providers, which don t pay Not routes heard from other peerings: don t pay 35

Example: Routes Advertised to Peers ISP X announces C i to Y and Z ISP X doesn t announce routes heard from ISP P to Y or Z ISP X doesn t announce routes heard from ISP Y to ISP Z, or vice-versa 36

Route Filtering: Summary ISPs typically provide selective transit Full transit (export of all routes) for own customers in both directions Some transit (export of routes between mutual customers) across peering relationship Customer-only transit (export of routes to customers) for providers Route advertisements are based on policies (money), not optimality (e.g., shortest paths) 37