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

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

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

CS BGP v4. Fall 2014

CS 268: Computer Networking. Next Lecture: Interdomain Routing

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

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

CS 268: Computer Networking

Lecture 18: Border Gateway Protocol

Lecture 17: Border Gateway Protocol

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

15-744: Computer Networking BGP

COMP/ELEC 429 Introduction to Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

Internet Routing : Fundamentals of Computer Networks Bill Nace

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

Inter-domain Routing. Outline. Border Gateway Protocol

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

Internet Routing Protocols Lecture 01 & 02

Inter-Domain Routing: BGP

Inter-Domain Routing: BGP II

Inter-Domain Routing: BGP II

Lecture 16: Border Gateway Protocol

Routing(2) Inter-domain Routing

internet technologies and standards

CS321: Computer Networks Unicast Routing

Professor Yashar Ganjali Department of Computer Science University of Toronto.

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

Ravi Chandra cisco Systems Cisco Systems Confidential

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

Inter-Domain Routing: BGP

TELE 301 Network Management

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

BGP. Autonomous system (AS) BGP version 4

BGP. Autonomous system (AS) BGP version 4

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

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

BGP. Autonomous system (AS) BGP version 4

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

Interdomain routing CSCI 466: Networks Keith Vertanen Fall 2011

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

IP Addressing & Interdomain Routing. Next Topic

Dynamics of Hot-Potato Routing in IP Networks

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

PART III. Implementing Inter-Network Relationships with BGP

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

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

Routing(2) Inter-domain Routing

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

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

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

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

CSc 450/550 Computer Networks Internet Routing

COM-208: Computer Networks - Homework 6

CS118 Discussion Week 7. Taqi

CSE 561 Lecture 6, Spring David Wetherall

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

Internet Routing Protocols Lecture 03 Inter-domain Routing

Internet Interconnection Structure

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

Routing Protocols --- Exterior Gateway Protocol

Routing(2) Inter-domain Routing

Routing Between Autonomous Systems (Example: BGP4) RFC 1771

Border Gateway Protocol

Master Course Computer Networks IN2097

Connecting to a Service Provider Using External BGP

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

Routing Basics ISP/IXP Workshops

CSE 222 Graduate Networking

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

Routing Protocols. Autonomous System (AS)

Network Layer (Routing)

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

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

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

Routing Basics. Campus Network Design & Operations Workshop

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

BGP Routing inside an AS

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

An overview of how packets are routed in the Internet

CSCI Topics: Internet Programming Fall 2008

Interdomain Routing. Networked Systems (H) Lecture 11

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

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

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

Introduction to Computer Networks

Internet inter-as routing: BGP

Configuring BGP. Cisco s BGP Implementation

Inter-Autonomous-System Routing: Border Gateway Protocol

Link State Routing & Inter-Domain Routing

Border Gateway Protocol - BGP

Lecture 19: Network Layer Routing in the Internet

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

Outline. Organization of the global Internet. BGP basics Routing policies The Border Gateway Protocol How to prefer some routes over others

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

How does a router know where to send a packet next?

Routing Basics. ISP Workshops

Interplay Between Routing, Forwarding

Inter-Autonomous-System Routing: Border Gateway Protocol

Computer Networking Introduction

Interdomain Routing. EE122 Fall 2011 Scott Shenker

Transcription:

Outline 15-441 15-441 Computer Networking 15-641 Lecture 10: Inter-Domain outing Border Gateway Protocol -BGP Peter Steenkiste Fall 2016 www.cs.cmu.edu/~prs/15-441-f16 outing hierarchy Internet structure External BGP (E-BGP) Internal BGP (I-BGP) 2 Inter and Intra-Domain outing Internet s Area Hierarchy Inter Domain Intra Domain + Areas Switched Ethernet Intra Domain What is an Autonomous System ()? A set of routers under a single technical administration, using an interior gateway protocol (IGP) and common metrics to route packets within the and using an exterior gateway protocol (EGP) to route packets to other s Each assigned unique ID Only transit domains really need it es peer with other es at network exchanges Gateway routers forward packets across es 3 4 1

Numbers (Ns) A Logical View of the Internet? Ns are 16 bit values Genuity: 1 MIT: 3 CMU: 9 UC San Diego: 7377 AT&T: 7018, 6341, 5074, UUNET: 701, 702, 284, 12199, Sprint: 1239, 1240, 6211, 6242, 64512 through 65535 are private Ns represent units of routing policy Logical consequence of hierarchy: repeat the intra-domain solutions at inter-net level Based on IP and OSPF style routing protocols NOT TUE! Lots of problems with this picture 5 6 A Logical View of the Internet A More Interesting Example es play different roles in the Internet Tier 1 ISP: gobal, internet wide connectivity Tier 2 ISP: regional or country-wide Tier 3 ISP: local Emergent property: Businesses specialize Business relationships Tier 3 Tier 2 Tier 2 Customer Provider Tier 1 Tier 1 Tier 2 Transit ($$ 1/2) ISP P ISP Y Transit ($) ISP Z Peering ISP X Peering ISP Q 7 8 2

Policy and Economics ules WHY? Consider the economics of the Internet Why does an ISP forward packets? Emergent property: Valley-free routing Number links as (+1, 0, -1) for provider, peer and customer In any path should only see sequence of +1, followed by at most one 0, followed by sequence of -1-1 0 +1corresponds to a valley and means an ISP is forwarding packets for free Worse: it is paying its providers for it Outline outing hierarchy Internet structure External BGP (E-BGP) Internal BGP (I-BGP) 9 10 History Choices Mid-80s: EGP eachability protocol (no shortest path) Did not accommodate cycles (tree topology) Evolved when all networks connected to NSF backbone Commercialization led to richer topologies esult: BGP introduced as routing protocol Latest version is BGP-4 - supports CID Primary objective: Connectivity not performance espect business relationships Allow for local policies in each 11 Link state or distance vector? Constraint: No universal metric policy decisions Problems with distance-vector: Bellman-Ford algorithm may converge slowly Problems with count to infinity Problems with link state: Metric used by routers not the same loops LS database too large entire Internet May expose policies to other s 12 3

Solution: Distance Vector with Path Each routing update carries the entire path Loops are detected as follows: When gets route, check if already in path If yes, reject route If no, add self and (possibly) advertise route further Advantage: Metrics are local - chooses path, protocol ensures no loops 13 Policy-based outing: 1 to X X? 1 2 1. eceive reachability destination for destination X Select path to X based on local policies 2. Advertise your path to X selectively Use local policies to decide who to advertise it to Colors are flipped for 2 14 Interconnecting BGP Peers BGP uses TCP to connect peers Advantages: Simplifies BGP No need for periodic refresh - routes are valid until withdrawn, or the connection is lost Incremental updates Disadvantages Congestion control on a routing protocol? Poor interaction with other traffic during high load Hop-by-hop Model BGP only advertises routes that it uses to its neighbors Consistent with the hop-by-hop Internet paradigm e.g., 1 cannot tell 2 to route to other s in a manner different than what 2 has chosen BGP enforces policies by 1. choosing paths from multiple alternatives and 2. controlling advertisement to other s 15 16 4

Examples of BGP Policies A multi-homed refuses to act as transit Limit path advertisement A multi-homed can become transit for some s Only advertise paths to some s An can favor or disfavor certain s for traffic transit from itself By choosing those paths among the options Some Examples Transit ($$ 1/2) ISP P ISP Y Transit ($) ISP Z Peering ISP X 17 18 BGP Messages Open Announces ID Determines hold timer interval between keep_alive or update messages, zero interval implies no keep_alive Keep_alive Sent periodically (but before hold timer expires) to peers to ensure connectivity. Sent in place of an UPDATE message Notification Used for error notification TCP connection is closed immediately after notification BGP UPDATE Message List of withdrawn routes Network layer reachability information List of reachable prefixes Path attributes Origin Path Metrics: used by policies for path selection All prefixes advertised in message have same path attributes 19 20 5

LOCAL PEF LOCAL PEF Common Uses Local (within an ) mechanism to provide relative priority among BGP routers (e.g. 3 over 4) 1 100 5 200 2 300 outers have a default LOCAL PEF Can be changed for specific es Peering vs. transit Prefer to use peering connection, why? 3 256 Local Pref = 500 Local Pref = 800 I-BGP 4 In general, customer > peer > provider Use LOCAL PEF to ensure this 21 22 _PATH List of traversed s 200 100 170.10.0.0/16 180.10.0.0/16 300 Multi-Exit Discriminator (MED) Hint to external neighbors about the preferred path into an Non-transitive attribute Different choose different scales Used when two s connect to each other in more than one place 500 180.10.0.0/16 300 200 100 170.10.0.0/16 300 200 23 24 6

MED MED Hint to 1 to use 3 over 4 link Cannot compare 40 s values to 30 s MED is typically used in provider/subscriber scenarios It can lead to unfairness if used between ISP because it may force one ISP to carry more traffic: 1 10 180.10.0.0 MED = 50 40 2 SF ISP1 ISP2 NY 3 180.10.0.0 MED = 120 180.10.0.0 MED = 200 4 ISP1 ignores MED from ISP2 ISP2 obeys MED from ISP1 ISP2 ends up carrying traffic most of the way 30 25 26 Path Selection Criteria outing and Forwarding in the Internet: Prefixes Attributes + external (policy) information ough ordering for path selection Highest LOCAL-PEF Captures business relationships and other factors Shortest -PATH Lowest origin type Lowest MED (if routes learned from same neighbor) ebgp over ibgp-learned Lowest internal routing cost to border router Tie breaker, e.g., lowest router ID Network ID Node ID 27 Prefix grows along path 7

BGP and Prefixes BGP advertisements specify prefix reachability Prefix network ID in a CID world BGP can also merge advertisements: Example: 4 /20 advertisements that share the top 18 bits in their prefix can become a single /18 adv., if the reachability information is the same Can also leverage the longest prefix rule to merge entries: Example: if only three of the prefix share reachability information, you can create a /18 and a /20 prefix Outline outing hierarchy Internet structure External BGP (E-BGP) Internal BGP (I-BGP) 29 30 Internal vs. External BGP I-BGP oute Advertisements BGP can be used by 3 and 4 to learn routes How do 1 and 2 learn routes? Border gateways also need to run an internal routing protcol Establish connectivity between routers inside I-BGP: uses same messages as E-BGP I-BGP uses different rules about re-advertising prefixes: Prefix learned from E-BGP can be advertised to I-BGP neighbor and vice-versa, but Prefix learned from I-BGP neighbors cannot be advertised to other I-BGP neighbors direct connections (TCP) for I-BGP routers eason: PATH is the same and thus danger of looping. 1 1 2 3 E-BGP 4 2 1 1 2 3 E-BGP 4 2 I-BGP 31 32 8

How Do ISPs Peer? Important Concepts Public peering: use network to connect large number of ISPs in Internet exchange Point (IXP) Managed by IXP operator Layer 2 private network Efficient: can have 100s of ISPs Has led to increase in peering Private peering: directly connect ISP border routers Set up as private connection Typically done in an Internet exchange Point (IXP) Wide area Internet structure and routing driven by economic considerations Customer, providers and peers BGP designed to: Provide hierarchy that allows scalability Allow enforcement of policies related to structure Mechanisms Path vector scalable, hides structure from neighbors, detects loops quickly 33 34 9