Inter-Domain Routing: BGP

Similar documents
Inter-Domain Routing: BGP

Inter-Domain Routing: BGP II

Inter-Domain Routing: BGP

Inter-Domain Routing: BGP II

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

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

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?

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 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 16, 2017

TELE 301 Network Management

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

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

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

Lecture 17: Border Gateway Protocol

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

Inter-Domain Routing: BGP

Internet Routing : Fundamentals of Computer Networks Bill Nace

Inter-domain Routing. Outline. Border Gateway Protocol

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

CS BGP v4. Fall 2014

Lecture 19: Network Layer Routing in the Internet

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

IP Addressing & Interdomain Routing. Next Topic

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

COMP/ELEC 429 Introduction to Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

Some Foundational Problems in Interdomain Routing

Internet Routing Protocols Lecture 01 & 02

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

Routing(2) Inter-domain Routing

Routing(2) Inter-domain Routing

Network Layer (Routing)

CS 268: Computer Networking. Next Lecture: Interdomain Routing

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

Master Course Computer Networks IN2097

Master Course Computer Networks IN2097

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

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

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

Interdomain routing CSCI 466: Networks Keith Vertanen Fall 2011

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

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

Inter-Autonomous-System Routing: Border Gateway Protocol

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

Introduction to IP Routing. Geoff Huston

Computer Networking Introduction

Chapter IV: Network Layer

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

Inter-Autonomous-System Routing: Border Gateway Protocol

Routing in the Internet

CSc 450/550 Computer Networks Internet Routing

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

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

Chapter 4: outline. Network Layer 4-1

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:

Interdomain Routing. Networked Systems (H) Lecture 11

Link State Routing & Inter-Domain Routing

Why dynamic route? (1)

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

CSCI Topics: Internet Programming Fall 2008

Basic Idea. Routing. Example. Routing by the Network

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

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

Introduction to Computer Networks

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

Routing by the Network

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

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

Introduction. Keith Barker, CCIE #6783. YouTube - Keith6783.

Chapter 4: Network Layer, partb

CS321: Computer Networks Unicast Routing

Internet Routing Protocols Lecture 03 Inter-domain Routing

Routing Basics ISP/IXP Workshops

Routing Basics. ISP Workshops

The Case for Separating Routing from Routers

Routing Basics. Campus Network Design & Operations Workshop

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

CSE 561 Lecture 6, Spring David Wetherall

Routing(2) Inter-domain Routing

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

Lecture 16: Border Gateway Protocol

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

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

Interplay Between Routing, Forwarding

CSCE 463/612 Networks and Distributed Processing Spring 2018

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

DATA COMMUNICATOIN NETWORKING

Introduction to BGP ISP/IXP Workshops

Chapter 4: Network Layer

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

CSE 461 Interdomain routing. David Wetherall

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

PART III. Implementing Inter-Network Relationships with BGP

Professor Yashar Ganjali Department of Computer Science University of Toronto.

Unicast Routing. TCP/IP class

CSC 4900 Computer Networks: Routing Protocols

Table of Contents. Cisco Introduction to EIGRP

Transcription:

Inter-Domain Routing: BGP Brad Karp UCL Computer Science (drawn mostly from lecture notes by Hari Balakrishnan and Nick Feamster, MIT) CS 3035/GZ01 4 th December 2014

Outline Context: Inter-Domain Routing Relationships between ASes Enforcing Policy, not Optimality BGP Design Goals BGP Protocol ebgp and ibgp BGP Route Attributes Synthesis: Policy through Route Attributes 2

Context: Inter-Domain Routing So far, have studied intra-domain routing Domain: group of routers owned by a single entity, typically numbering at most 100s Distance Vector, Link State protocols: types of Interior Gateway Protocol (IGP) Today s topic: inter-domain routing Routing protocol that binds domains together into global Internet Border Gateway Protocol (BGP): type of Exterior Gateway Protocol (EGP) 3

Context: Why Another Routing Protocol? Scaling challenge: millions of hosts on global Internet ultra-naïve approach: use DV or LS routing, each 32- bit host address is a destination naïve approach: use DV or LS routing, each subnet s address prefix (i.e., Ethernet broadcast domain) is a destination DV and LS cannot scale to these levels prohibitive message complexity for LS flooding loops and slow convergence for DV Keeping routes current costs traffic proportional to product of number of nodes and rate of topological change 4

Context: Scaling Beyond the Domain Address allocation challenge: Each host on Internet must have unique 32- bit IP address How to enforce global uniqueness? Onerous to consult central authority for each new host Hierarchical addressing: solves scaling and address allocation challenges 5

Context: Hierarchical Addressing Divide 32-bit IP address hierarchically e.g., 128.16.64.200 is host at UCL e.g., 128.16.64 prefix is UCL CS dept e.g., 128.16 prefix is all of UCL destination is a prefix writing prefixes: 128.16/16 means high 16 bits of 128.16.x.y netmask 255.255.0.0 means to find prefix of 32- bit address, bit-wise AND 255.255.0.0 with it prefixes need not be multiples of 8 bits long 6

Hierarchical Addressing: Pro Routing protocols generally incur cost that increases with number of destinations Hierarchical addresses aggregate Outside UCL, single prefix 128.16 can represent thousands of hosts on UCL network End result: reduces number of destinations in global Internet routing system Centralized address allocation easier for smaller user/host population Hierarchical addresses assure global uniqueness with only local coordination Inside UCL, local authority can allocate low-order 16 bits of host IP addresses under 128.16 prefix End result: decentralized unique address allocation 7

Hierarchical Addressing: Con Inherent loss of information from global routing protocol! less optimal routes Nodes outside UCL know nothing about UCL internal topology UCL host in Antarctica has 128.16 prefix! all traffic to it must be routed via London Host addresses indicate both host identity and network attachment point Suppose move my UCL laptop to Berkeley IP address must change to Berkeley one, so aggregates under Berkeley IP prefix! 8

Context: Autonomous Systems A routing domain is called an Autonomous System (AS) Each AS known by unique 16-bit number IGPs (e.g., DV, LS) route among individual subnets EGPs (e.g., BGP) route among ASes AS owns one or handful of address prefixes; allocates addresses under those prefixes AS typically a commercial entity or other organization ASes often competitors (e.g., different ISPs) 9

Global Internet Routing: Naïve View Find globally shortest paths Dense connectivity with many redundant paths Route traffic cooperatively onto lightly loaded paths 10

Global Internet Routing: Naïve View No correspondence to reality! Find globally shortest paths Dense connectivity with many redundant paths Route traffic cooperatively onto lightly loaded paths 11

Global Internet Routing, Socialist Style Multiple, interconnected ISPs ISPs all equal: in how connected they are to other ISPs in geographic extent of their networks 12

Global Internet Routing, Socialist Style Multiple, interconnected ISPs ISPs all equal: Little correspondence to reality! in how connected they are to other ISPs in geographic extent of their networks 13

Global Internet Routing: Capitalist Style Tiers of ISPs: Tier 3: local geographically, end customers Tier 2: regional geographically Tier 1: global geographically, ISP customers, no default routes Each ISP an AS, runs own IGP internally AS operator sets policies for how to route to others, how to let others route to his AS 14

Global Internet Routing: Capitalist Style Reality! Tiers of ISPs: Tier 3: local geographically, end customers Tier 2: regional geographically Tier 1: global geographically, ISP customers, no default routes Each ISP an AS, runs own IGP internally AS operator sets policies for how to route to others, how to let others route to his AS 15

Outline Context: Inter-Domain Routing Relationships between ASes Enforcing Policy, not Optimality BGP Design Goals BGP Protocol ebgp and ibgp BGP Route Attributes Synthesis: Policy through Route Attributes 16

AS-AS Relationships: Customers and Providers Smaller ASes (corporations, universities) typically purchase connectivity from ISPs Regional ISPs typically purchase connectivity from global ISPs Each such connection has two roles: Customer: smaller AS paying for connectivity Provider: larger AS being paid for connectivity Other possibility: ISP-to-ISP connection 17

AS-AS Relationship: Transit Provider-Customer AS- AS connections: transit Provider allows customer to route to (nearly) all destinations in its routing tables Transit nearly always involves payment from customer to provider 18

AS-AS Relationship: Peering Peering: two ASes (usually ISPs) mutually allow one another to route to some of the destinations in their routing tables Typically these are their own customers (whom they provide transit) By contract, but usually no money changes hands, so long as traffic ratio is narrower than, e.g., 4:1 19

Financial Motives: Peering and Transit Peering relationship often between competing ISPs Incentives to peer: Typically, two ISPs notice their own direct customers originate a lot of traffic for the other Each can avoid paying transit costs to others 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 stealing one another s customers Tier 1s must typically peer with one another to build complete, global routing tables 20

Financial Motives: Peering and Transit (cont d) Disincentives to peer: Economic disincentive: transit lets ISP charge customer; peering typically doesn t Contracts must be renegotiated often Need to agree on how to handle asymmetric traffic loads between peers 21

Outline Context: Inter-Domain Routing Relationships between ASes Enforcing Policy, not Optimality BGP Design Goals BGP Protocol ebgp and ibgp BGP Route Attributes Synthesis: Policy through Route Attributes 22

The Meaning of Advertising Routes When AS A advertises a route for destination D to AS B, it effectively offers to forward all traffic from AS B to D Forwarding traffic costs bandwidth ASes strongly motivated to control which routes they advertise no one wants to forward packets without being compensated to do so e.g., when peering, only let neighboring AS send to specific own customer destinations enumerated peering contract 23

Advertising Routes for Transit Customers ISP motivated to advertise routes to its own customers to its transit providers Customers paying to be reachable from global Internet More traffic to customer, faster link customer must buy If ISP hears route for its own customer from multiple neighbors, should favor advertisement from own customer 24

Routes Heard from Providers If ISP hears routes from its provider (via a transit relationship), to whom does it advertise them? Not to ISPs with peering relationships; they don t pay, so no motivation to provide transit service for them! To own customers, who pay to be able to reach global Internet 25

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 26

Routes Advertised to Peers Which routes should an ISP advertise to ASes with whom it has peering relationships? Routes for all own downstream transit customers Routes to ISP s own addresses Not routes heard from upstream transit provider of ISP; peer might route via ISP for those destinations, but doesn t pay Not routes heard from other peering relationships (same reason!) 27

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 28

Route Export: Summary ISPs typically provide selective transit Full transit (export of all routes) for own transit customers in both directions Some transit (export of routes between mutual customers) across peering relationship Transit only for transit customers (export of routes to customers) to providers These decisions about what routes to advertise motivated by policy (money), not by optimality (e.g., shortest paths) 29

Route Import Router may hear many routes to same destination network Identity of advertiser very important Suppose router hears advertisement to own transit customer from other AS Shouldn t route via other AS; longer path! Customer routes higher priority than routes to same destination advertised by providers or peers Routes heard over peering higher priority than provider routes Peering is free; you pay provider to forward via them customer > peer > provider 30

Outline Context: Inter-Domain Routing Relationships between ASes Enforcing Policy, not Optimality BGP Design Goals BGP Protocol ebgp and ibgp BGP Route Attributes Synthesis: Policy through Route Attributes 31

Border Gateway Protocol (BGP): Design Goals Scalability in number of ASes Support for policy-based routing tagging of routes with attributes filtering of routes Cooperation under competitive pressure BGP designed to run on successor to NSFnet, the former single, government-run backbone 32

BGP Protocol BGP runs over TCP, port 179 Router connects to other router, sends OPEN message Both routers exchange all active routes in their tables (possibly minutes, depending on routing table sizes) In steady state, two main message types: announcements: changes to existing routes or new routes withdrawals: retraction of previously advertised route No periodic announcements needed; TCP provides reliable delivery 33

BGP Protocol (cont d) BGP doesn t chiefly aim to compute shortest paths (or minimize other metric, as do DV, LS) Chief purpose of BGP is to announce reachability, and enable policy-based routing BGP announcement: IP prefix: [Attribute 0] [Attribute1] [ ] 34