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

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

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

Introduc)on to Computer Networks

Inter-Domain Routing: BGP

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

Routing Between Autonomous Systems (Example: BGP4) RFC 1771

Internet Interconnection Structure

Internet Routing : Fundamentals of Computer Networks Bill Nace

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

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

CS BGP v4. Fall 2014

Inter-domain Routing. Outline. Border Gateway Protocol

BGP. Border Gateway Protocol (an introduction) Karst Koymans. Informatics Institute University of Amsterdam. (version 17.3, 2017/12/04 13:20:08)

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

BGP. Border Gateway Protocol A short introduction. Karst Koymans. Informatics Institute University of Amsterdam. (version 18.3, 2018/12/03 13:53:22)

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

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

internet technologies and standards

BGP Routing and BGP Policy. BGP Routing. Agenda. BGP Routing Information Base. L47 - BGP Routing. L47 - BGP Routing

BGP. Autonomous system (AS) BGP version 4

Border Gateway Protocol (BGP-4)

BGP. Autonomous system (AS) BGP version 4

BGP. Autonomous system (AS) BGP version 4

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

c2001, Dr.Y.N.Singh, EED, IITK 2 Border Gateway Protocol - 4 BGP-4 (RFC intended to be used for routing between Autonomou

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

COMP/ELEC 429 Introduction to Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

Advanced Computer Networks

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

Interdomain routing CSCI 466: Networks Keith Vertanen Fall 2011

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

Routing(2) Inter-domain Routing

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

BGP Attributes (C) Herbert Haas 2005/03/11 1

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

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

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

BGP. Attributes 2005/03/11. (C) Herbert Haas

Routing Protocols --- Exterior Gateway Protocol

Internet Routing Protocols Lecture 01 & 02

Configuration prerequisites 45 Configuring BGP community 45 Configuring a BGP route reflector 46 Configuring a BGP confederation 46 Configuring BGP

TELE 301 Network Management

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

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

Ravi Chandra cisco Systems Cisco Systems Confidential

PART III. Implementing Inter-Network Relationships with BGP

Advanced Computer Networks

CS321: Computer Networks Unicast Routing

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

Lecture 18: Border Gateway Protocol

Lecture 17: Border Gateway Protocol

Table of Contents. BGP Configuration 1

Protecting an EBGP peer when memory usage reaches level 2 threshold 66 Configuring a large-scale BGP network 67 Configuring BGP community 67

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

Multiprotocol BGP (MBGP)

Border Gateway Protocol - BGP

CSCI Topics: Internet Programming Fall 2008

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

Architectures and Protocols for Integrated Networks. Intra-domain and Inter-domain Routing Protocols

2011, Sushile Tejwani

BGP. BGP Overview. Formats of BGP Messages. I. Header

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

Routing(2) Inter-domain Routing

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

Internet Protocols Fall Lectures Inter-domain routing, mobility support, multicast routing Andreas Terzis

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

Table of Contents 1 BGP Configuration 1-1

Advanced Computer Networks

Inter-Autonomous-System Routing: Border Gateway Protocol

Border Gateway Protocol

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

Other Developments: CIDR

ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE. External Routing BGP. Jean Yves Le Boudec 2015

University of Belgrade - School of Electrical Engineering Department of Telecommunications

APNIC elearning: BGP Basics. 30 September :00 PM AEST Brisbane (UTC+10) Revision: 2.0

Configuring BGP. Cisco s BGP Implementation

Inter-Autonomous-System Routing: Border Gateway Protocol

Internet Routing Protocols Lecture 03 Inter-domain Routing

Advanced Computer Networks

BGP Attributes and Path Selection

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

Routing in the Internet

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

BGP-v4 Theory and Practice

Internet inter-as routing: BGP

BGP Protocol & Configuration. Scalable Infrastructure Workshop AfNOG2008

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

Advanced Computer Networks

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

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

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

Link State Routing & Inter-Domain Routing

Routing part 2. Electrical and Information Technology

Why dynamic route? (1)

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

Graph abstraction: costs. Graph abstraction 10/26/2018. Interplay between routing and forwarding

Securing BGP. Geoff Huston November 2007

LACNIC XIII. Using BGP for Traffic Engineering in an ISP

Routing Unicast routing protocols

Transcription:

CSCI-1680 Network Layer: Inter-domain Routing Rodrigo Fonseca Based partly on lecture notes by Rob Sherwood, David Mazières, Phil Levis, John Jannotti

Today Last time: Intra-Domain Routing (IGP) RIP distance vector OSPF link state Inter-Domain Routing (EGP) Border Gateway Protocol Path-vector routing protocol

Why Inter vs. Intra Why not just use OSPF everywhere? E.g., hierarchies of OSPF areas? Hint: scaling is not the only limitation BGP is a policy control and information hiding protocol intra == trusted, inter == untrusted Different policies by different ASs Different costs by different ASs

Types of ASs Local Traffic source or destination in local AS Transit Traffic passes through an AS Stub AS Connects to only a single other AS Multihomed AS Connects to multiple ASs Carries no transit traffic Transit AS Connects to multiple ASs and carries transit traffic

AS Relationships B X Z A C Y How to prevent X from forwarding transit between B and C? How to avoid transit between CBA? B: BAZ -> X ( B advertises BAZ to X ) B: BAZ -> C? (=> Y: CBAZ and Y:CAZ) Example from Kurose and Ross, 5 th Ed

Choice of Routing Algorithm Constraints Scaling Autonomy (policy and privacy) Link-state? Requires sharing of complete information Information exchange does not scale Can t express policy Distance Vector? Scales and retains privacy Can t implement policy Can t avoid loops if shortest path not taken Count-to-infinity

Path Vector Protocol Distance vector algorithm with extra information For each route, store the complete path (ASs) No extra computation, just extra storage (and traffic) Advantages Can make policy choices based on set of ASs in path Can easily avoid loops

BGP - High Level Single EGP protocol in use today Abstract each AS to a single node Destinations are CIDR prefixes Exchange prefix reachability with neighbors E.g., I can reach prefix 128.148.0.0/16 through ASes 44444 3356 14325 11078 May choose to not advertise some paths to some neighbors Select a single path by routing policy Critical: learn many paths, propagate one Add your ASN to advertised path

BGP Implications Explicit AS Path == Loop free Except under churn, IGP/EGP mismatch Not all ASs know all paths Reachability not guaranteed Decentralized combination of policies AS abstraction -> loss of efficiency Scaling 55K ASs 685K+ prefixes ASs with one prefix: 21292 Most prefixes by one AS: 5551 (AS4538 ERX-CERNET- BKB - China Education and Research Network Center) Source: cidr-report 17Oct2017

Why study BGP? Critical protocol: makes the Internet run Only widely deployed EGP Active area of problems! Efficiency Cogent vs. Level3: Internet Partition Spammers use prefix hijacking Pakistan accidentally took down YouTube Egypt disconnected for 5 days

BGP Example AS 2 AS 3 AS 1 1.2.0.0/16 AS 4 Only 1 Router Per AS (for now) AS 5

BGP Example AS 2 AS 3 1.2.0.0/16: AS 1 AS 1 1.2.0.0/16 1.2.0.0/16: AS 1 AS 4 Only 1 Router Per AS (for now) AS 5

BGP Example AS 2 1.2.0.0/16: AS 2 1 AS 3 AS 1 1.2.0.0/16 AS 4 Only 1 Router Per AS (for now) AS 5 1.2.0.0/16: AS 5 1

BGP Example AS 2 AS 3 AS 1 1.2.0.0/16 AS: 3 2 1 AS: 4 5 1 AS 4 Only 1 Router Per AS (for now) AS 5

BGP Example AS 2 AS 3 AS 1 1.2.0.0/16 AS 4 Only 1 Router Per AS (for now) AS 5

BGP Protocol Details Separate roles of speakers and gateways Speakers talk BGP with other ASs Gateways are routes that border other Ass Can have more gateways than speakers Speakers know how to reach gateways Speakers connect over TCP on port 179 Bidirectional exchange over long-lived connection

BGP Table Growth Source: bgp.potaroo.net

BGP Table Growth for v6 Source: bgp.potaroo.net

Integrating EGP and IGP Stub ASs Border router clear choice for default route Inject into IGP: any unknown route to border router Inject specific prefixes in IGP E.g., Provider injects routes to customer prefix Backbone networks Too many prefixes for IGP Run internal version of BGP, ibgp All routers learn mappings: Prefix -> Border Router Use IGP to learn: Border Router -> Next Hop

ibgp AS 2 AS 3 AS 1 1.2.0.0/16 AS 4 Only 1 Router Per AS (for now) AS 5

ibgp AS 2 AS 3 AS 1 1.2.0.0/16 Multiple Peering Points! AS 4 ibgp keeps AS consistent AS 5

BGP Messages Base protocol has four message types OPEN Initialize connection. Identifies peers and must be first message in each direction UPDATE Announce routing changes (most important message) NOTIFICATION Announce error when closing connection KEEPALIVE Make sure peer is alive Extensions can define more message types E.g., ROUTE-REFRESH [RFC 2918]

Anatomy of an UPDATE Withdrawn routes: list of withdrawn IP prefixes Network Layer Reachability Information (NLRI) List of prefixes to which path attributes apply Path attributes ORIGIN, AS_PATH, NEXT_HOP, MULTI-EXIT-DISC, LOCAL_PREF, ATOMIC_AGGREGATE, AGGREGATOR, Each attribute has 1-byte type, 1-byte flags, length, content Can introduce new types of path attribute e.g., AS4_PATH for 32-bit AS numbers

Example NLRI: 128.148.0.0/16 AS Path: ASN 44444 3356 14325 11078 Next Hop IP: same as in RIPv2 Knobs for traffic engineering: Metric, weight, LocalPath, MED, Communities Lots of voodoo

BGP State BGP speaker conceptually maintains 3 sets of state Adj-RIB-In Adjacent Routing Information Base, Incoming Unprocessed routes learned from other BGP speakers Loc-RIB Contains routes from Adj-RIB-In selected by policy First hop of route must be reachable by IGP or static route Adj-RIB-Out Subset of Loc-RIB to be advertised to peer speakers

Demo Route views project: http://www.routeviews.org telnet route-views.linx.routeviews.org show ip bgp 128.148.0.0/16 longer-prefixes All paths are learned internally (ibgp) Not a production device

Next class BGP Policy Routing and Security