1 Interdomain Routing (BGP) By Behzad Akbari Fall 2008 These slides are based on the slides of Ion Stoica (UCB) and Shivkumar (RPI)

Slides:



Advertisements
Similar presentations
Rensselaer Polytechnic Institute 1 Today’s Big Picture Large ISP Dial-Up ISP Access Network Small ISP Stub Large number of diverse networks.
Advertisements

CS Summer 2003 CS672: MPLS Architecture, Applications and Fault-Tolerance.
CS540/TE630 Computer Network Architecture Spring 2009 Tu/Th 10:30am-Noon Sue Moon.
Lecture 9 Overview. Hierarchical Routing scale – with 200 million destinations – can’t store all dests in routing tables! – routing table exchange would.
© J. Liebeherr, All rights reserved 1 Border Gateway Protocol This lecture is largely based on a BGP tutorial by T. Griffin from AT&T Research.
Border Gateway Protocol Autonomous Systems and Interdomain Routing (Exterior Gateway Protocol EGP)
Fundamentals of Computer Networks ECE 478/578 Lecture #18: Policy-Based Routing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
1 Interdomain Routing Protocols. 2 Autonomous Systems An autonomous system (AS) is a region of the Internet that is administered by a single entity and.
Interdomain Routing and The Border Gateway Protocol (BGP) Courtesy of Timothy G. Griffin Intel Research, Cambridge UK
1 Network Architecture and Design Routing: Exterior Gateway Protocols and Autonomous Systems Border Gateway Protocol (BGP) Reference D. E. Comer, Internetworking.
CS 164: Global Internet Slide Set In this set... More about subnets Classless Inter Domain Routing (CIDR) Border Gateway Protocol (BGP) Areas with.
Interdomain Routing and The Border Gateway Protocol (BGP) Courtesy of Timothy G. Griffin Intel Research, Cambridge UK
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
The Border Gateway Protocol (BGP) Sharad Jaiswal.
Computer Networking Lecture 10: Inter-Domain Routing
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Interdomain Routing Computer Science Division Department of Electrical Engineering and Computer.
Announcement Paper summary due at 11:59PM before the class Sometimes there are two papers which are closely related. In your summary –Share the problem.
15-744: Computer Networking L-5 Inter-Domain Routing.
Ion Stoica October 2, 2002 (* this presentation is based on Lakshmi Subramanian’s slides) EE 122: Inter-domain routing – Border Gateway Protocol (BGP)
Interdomain Routing EECS 122: Lecture 11 Department of Electrical Engineering and Computer Sciences University of California Berkeley.
Feb 12, 2008CS573: Network Protocols and Standards1 Border Gateway Protocol (BGP) Network Protocols and Standards Winter
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network Considering the Advantages of Using BGP.
ROUTING PROTOCOLS PART IV ET4187/ET5187 Advanced Telecommunication Network.
Border Gateway Protocol(BGP) L.Subramanian 23 rd October, 2001.
Inter-domain Routing Outline Border Gateway Protocol.
Internet Routing: Measurement, Modeling, and Analysis Dr. Jia Wang AT&T Labs Research Florham Park, NJ 07932, USA
Inter-domain Routing: Today and Tomorrow Dr. Jia Wang AT&T Labs Research Florham Park, NJ 07932, USA
Introduction to BGP.
IP is a Network Layer Protocol Physical 1 Network DataLink 1 Transport Application Session Presentation Network Physical 1 DataLink 1 Physical 2 DataLink.
CS 3700 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 8/20/15.
CS 268: Lecture 9 Inter-domain Routing Protocol Scott Shenker and Ion Stoica Computer Science Division Department of Electrical Engineering and Computer.
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks BGP.
Border Gateway Protocol
Network Layer r Introduction r Datagram networks r IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP r What’s inside a router r Routing.
Advance Computer Networking L-3 BGP Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan Seshan at.
Border Gateway Protocol (BGP) W.lilakiatsakun. BGP Basics (1) BGP is the protocol which is used to make core routing decisions on the Internet It involves.
More on Internet Routing A large portion of this lecture material comes from BGP tutorial given by Philip Smith from Cisco (ftp://ftp- eng.cisco.com/pfs/seminars/APRICOT2004.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429/556 Introduction to Computer Networks Inter-domain routing Some slides used with.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #08: SOLUTIONS Shivkumar Kalyanaraman: GOOGLE: “Shiv.
CS 268: Lecture 11 Inter-domain Routing Protocol Karthik Lakshminarayanan UC Berkeley (substituting for Ion Stoica) (*slides from Timothy Griffin and Craig.
Interdomain Routing and BGP Routing NJIT May 3, 2003 Timothy G. Griffin AT&T Research
CSCI-1680 Network Layer: Inter-domain Routing Based partly on lecture notes by Rob Sherwood, David Mazières, Phil Levis, Rodrigo Fonseca John Jannotti.
INTER-DOMAIN ROUTING AND BORDER GATEWAY PROTOCOL Dr. Rocky K. C. Chang 22 November
Routing in the Inernet Outcomes: –What are routing protocols used for Intra-ASs Routing in the Internet? –The Working Principle of RIP and OSPF –What is.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
1 Agenda for Today’s Lecture The rationale for BGP’s design –What is interdomain routing and why do we need it? –Why does BGP look the way it does? How.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
Michael Schapira, Princeton University Fall 2010 (TTh 1:30-2:50 in COS 302) COS 561: Advanced Computer Networks
Inter-domain Routing Outline Border Gateway Protocol.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
Border Gateway Protocol BGP-4 BGP environment How BGP works BGP information BGP administration.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
1 Internet Routing 11/11/2009. Admin. r Assignment 3 2.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Working at a Small-to-Medium Business or ISP – Chapter 6
CS 3700 Networks and Distributed Systems
Border Gateway Protocol
CS 3700 Networks and Distributed Systems
Border Gateway Protocol
BGP supplement Abhigyan Sharma.
Lixin Gao ECE Dept. UMASS, Amherst
BGP Overview BGP concepts and operation.
CSCI-1680 Network Layer: Inter-domain Routing
Department of Computer and IT Engineering University of Kurdistan
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
Working at a Small-to-Medium Business or ISP – Chapter 6
COMP/ELEC 429/556 Introduction to Computer Networks
BGP Instability Jennifer Rexford
Computer Networks Protocols
Presentation transcript:

1 Interdomain Routing (BGP) By Behzad Akbari Fall 2008 These slides are based on the slides of Ion Stoica (UCB) and Shivkumar (RPI)

2 Today Internet Structure Large ISP Dial-Up ISP Stub Small ISP Stub

3 Autonomous Systems (AS) Internet is not a single network! The Internet is a collection of networks, each controlled by different administrations An autonomous system (AS) is a network under a single administrative control

4 AS Numbers (ASNs) ASNs are 16 bit values through are “private” Genuity: 1 AT&T: 7018, 6341, 5074, … UUNET: 701, 702, 284, 12199, … Sprint: 1239, 1240, 6211, 6242, … … Currently over 11,000 in use.

5 IP Address Allocation and Assignment: Internet Registries IANA RFC Internet Registry IP Allocation Guidelines RFC Address Allocation for Private Internets RFC An Architecture for IP Address Allocation with CIDR ARIN APNIC RIPE Allocate to National and local registries and ISPs Addresses assigned to customers by ISPs

6 Internet Routing Internet organized as a two level hierarchy First level – autonomous systems (AS’s)  AS – region of network under a single administrative domain AS’s run an intra-domain routing protocols  Distance Vector, e.g., RIP  Link State, e.g., OSPF Between AS’s runs inter-domain routing protocols, e.g., Border Gateway Routing (BGP)  De facto standard today, BGP-4

7 Example AS-1 AS-2 AS-3 Interior router BGP router

8 Intra-Domain AS-1 AS-2 AS-3 Interior router BGP router Intra-domain routing protocol aka Interior Gateway Protocol (IGP), e.g. OSPF, RIP

9 Inter-Domain AS-2 Interior router BGP router Inter-domain routing protocol aka Exterior Gateway Protocol (EGP), e.g. BGP AS-1 AS-3

10 Inter-Domain Routing Global connectivity is at stake Inevitably leads to one single protocol that everyone must speak  Unlike many choices in intra-domain routing What are the requirements?  Scalability  Flexibility in choosing routes If you were to choose, link state based or distance vector based? BGP is sort of a hybrid: Path vector protocol

11 Border Gateway Protocol Part I: E-BGP R border routerinternal router E-BGP R2R1R3 AS1 AS2  Two types of routers  Border router (Edge), Internal router (Core)

12 Purpose of E-BGP R border router internal router E-BGP R2R1R3 A AS1 AS2 you can reach net A via me table at R1: dest next hop AR2 Share connectivity information across ASes

13 Part II: I-BGP, Carrying Info within an AS R border router internal router R1 AS1 R4 R5 B AS3 E-BGP R2R3 A AS2 announce B I-BGP E-BGP

14 I-BGP I-BGP neighbors do not announce routes received via I-BGP to other I-BGP neighbors. E-BGP update I-BGP updates Problem: Injecting external routes into IGP (e.g. OSPF) does not scale and causes BGP policy information to be lost I-BGP can be used to disseminate BGP routes to all routers in AS BGP route + IGP route suffice to create forwarding table

15 Join I-BGP with IGP to Create Forwarding Table AS 1AS / I-BGP: /16 Next Hop = /30 Forwarding Table /16 destinationnext hop / I-BGP /16 destinationnext hop + IGP /30 destinationnext hop E-BGP

16 Multiple Routing Processes on a Single Router Forwarding Table OSPF Domain BGP OS kernel OSPF Process OSPF Routing tables BGP Process BGP Routing tables Forwarding Table Manager

17 Routing between ISPs Routing protocol (BGP) contains reachability information (no metrics)  Not about optimizing anything  All about policy (business and politics) Why?  Metrics optimize for a particular criteria  AT&T’s idea of a good route is not the same as UUnet’s  Scale What a BGP speaker announces or not announces to a peer determines what routes may get used by whom

18 Nontransit vs. Transit ASes ISP 1 ISP 2 Nontransit AS might be a corporate or campus network. NET A Traffic NEVER flows from ISP 1 through NET A to ISP 2 IP traffic Internet Service providers (often) have transit networks

19 Selective Transit NET B NET C NET A provides transit between NET B and NET C and between NET D and NET C NET A NET D NET A DOES NOT provide transit Between NET D and NET B Most transit networks transit in a selective manner… IP traffic

20 Customers and Providers Customer pays provider for access to the Internet provider customer IP traffic provider customer

21 Customers Don’t Always Need BGP provider customer Default route /0 pointing to provider. Configured route /24 pointing to customer /24 Static routing is the most common way of connecting an autonomous routing domain to the Internet. This helps explain why BGP is a mystery to many …

22 Customer-Provider Hierarchy IP traffic provider customer

23 The “Peering” Relationship peer customerprovider Peers provide transit between their respective customers Peers do not provide transit between peers Peers (often) do not exchange $$$ traffic allowed traffic NOT allowed

24 Peering Provides Shortcuts Peering also allows connectivity between the customers of “Tier 1” providers. peer customerprovider

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

26 AS-Path Sequence of AS’s a route traverses Used for loop detection and to apply policy / / /16 AS-1 AS-2 AS-3 AS-4 AS /16 AS-2 AS-3 AS /16 AS-2 AS /16 AS-2 AS-5

27 BGP Operations (Simplified) Establish session on TCP port 179 Exchange all active routes Exchange incremental updates AS1 AS2 While connection is ALIVE exchange route UPDATE messages BGP session

28 Four Types of BGP Messages Open : Establish a peering session. Keep Alive : Handshake at regular intervals. Notification : Shuts down a peering session. Update : Announcing new routes or withdrawing previously announced routes. Announcement = prefix + attributes values

29 Attributes are Used to Select Best Routes /24 pick me! /24 pick me! /24 pick me! /24 pick me! Given multiple routes to the same prefix, a BGP speaker must pick at most one best route (Note: it could reject them all!)

30 Example: Multiple AS Paths AS701 AS73 AS7018AS1239AS / /

31 Shorter Doesn’t Always Mean Shorter AS 4 AS 3 AS 2 AS 1 Path 4 1 is “better” than path 3 2 1

32 Implementing Customer/Provider and Peer/Peer relationships Enforce transit relationships  Outbound route filtering Enforce order of route preference  provider < peer < customer

33 Import Routes From peer From peer From provider From provider From customer From customer provider routecustomer routepeer routeISP route

34 Export Routes To peer To peer To customer To customer To provider From provider provider routecustomer routepeer routeISP route filters block

35 Example AS Graph The subgraph showing all ASes that have more than 100 neighbors in full graph of 11,158 nodes. July 6, Point of view: AT&T route-server Does not reflect true topology

36 BGP Issues BGP designed for policy not performance Susceptible to router misconfiguration  Blackholes: announce a route you cannot reach Incompatible policies  Solutions to limit the set of allowable policies

37 More Issues Scaling the I-BGP mesh  Confederations  Route Reflectors BGP Table Growth  140K prefixes and growing  Address aggregation (CIDR)  Address allocation Dynamics of BGP  Inherent vs. accidental oscillation  Rate limiting and route flap dampening  Lots and lots of redundant info  Slow convergence time