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

Slides:



Advertisements
Similar presentations
1 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP — Border Gateway Protocol Routing Protocol used between AS’s Currently Version.
Advertisements

CS Summer 2003 CS672: MPLS Architecture, Applications and Fault-Tolerance.
Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
CSCI-1680 Network Layer: Inter-domain Routing Based partly on lecture notes by Rob Sherwood, David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
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.
Path Vector Routing NETE0514 Presented by Dr.Apichan Kanjanavapastit.
© 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.
Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What’s inside a router 4.4 IP: Internet Protocol –Datagram format.
CPS-356 Network Layer: Inter-domain Routing Based partly on lecture notes by Xiaowei Yang, Rodrigo Foncesa, Rob Sherwood, David Mazières, Phil Levis, John.
CS 164: Global Internet Slide Set In this set... More about subnets Classless Inter Domain Routing (CIDR) Border Gateway Protocol (BGP) Areas with.
Computer Networking Lecture 10: Inter-Domain Routing
More on BGP Check out the links on politics: ICANN and net neutrality To read for next time Path selection big example Scaling of BGP.
Ion Stoica October 2, 2002 (* this presentation is based on Lakshmi Subramanian’s slides) EE 122: Inter-domain routing – Border Gateway Protocol (BGP)
CSEE W4140 Networking Laboratory Lecture 5: IP Routing (OSPF and BGP) Jong Yul Kim
14 – Inter/Intra-AS Routing
© 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 in Wired Nets CS 215 W 01 - Mario Gerla. Routing Principles Routing: delivering a packet to its destination on the best possible path Routing.
Border Gateway Protocol(BGP) L.Subramanian 23 rd October, 2001.
Inter-domain Routing Outline Border Gateway Protocol.
Inter-domain Routing Don Fussell CS 395T Measuring Internet Performance.
14 – Inter/Intra-AS Routing Network Layer Hierarchical Routing scale: with > 200 million destinations: can’t store all dest’s in routing tables!
Inter-domain Routing: Today and Tomorrow Dr. Jia Wang AT&T Labs Research Florham Park, NJ 07932, USA
Introduction to BGP.
1 Interdomain Routing (BGP) By Behzad Akbari Fall 2008 These slides are based on the slides of Ion Stoica (UCB) and Shivkumar (RPI)
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
CS 3700 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 8/20/15.
RSC Part II: Network Layer 6. Routing in the Internet (2 nd Part) Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are,
Lecture 4: BGP Presentations Lab information H/W update.
Chapter 9. Implementing Scalability Features in Your Internetwork.
Border Gateway Protocol
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
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.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Xuan Zheng (modified by M. Veeraraghavan) 1 BGP overview BGP operations BGP messages BGP decision algorithm BGP states.
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
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.
Network Layer4-1 Intra-AS Routing r Also known as Interior Gateway Protocols (IGP) r Most common Intra-AS routing protocols: m RIP: Routing Information.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Internet Protocols. ICMP ICMP – Internet Control Message Protocol Each ICMP message is encapsulated in an IP packet – Treated like any other datagram,
An internet is a combination of networks connected by routers. When a datagram goes from a source to a destination, it will probably pass through many.
4: Network Layer4b-1 OSPF (Open Shortest Path First) r “open”: publicly available r Uses Link State algorithm m LS packet dissemination m Topology map.
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)
Spring 2010CS 3321 Interdomain Routing. Spring 2010CS 3322 How to Make Routing Scale Flat versus Hierarchical Addresses Inefficient use of Hierarchical.
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.
1 Border Gateway Protocol (BGP) and BGP Security Jeff Gribschaw Sai Thwin ECE 4112 Final Project April 28, 2005.
BGP Basics BGP uses TCP (port 179) BGP Established unicast-based connection to each of its BGP- speaking peers. BGP allowing the TCP layer to handle such.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
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.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
CS 3700 Networks and Distributed Systems
Border Gateway Protocol
Border Gateway Protocol
BGP supplement Abhigyan Sharma.
CSCI-1680 Network Layer: Inter-domain Routing
Routers Routing algorithms
COMP/ELEC 429/556 Introduction to Computer Networks
CSCI-1680 Network Layer: Inter-domain Routing
Computer Networks Protocols
Presentation transcript:

CSCI-1680 Network Layer: Inter-domain Routing Based partly on lecture notes by Rob Sherwood, David Mazières, Phil Levis, Rodrigo Fonseca 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 How to prevent X from forwarding transit between B and C? How to avoid transit between CBA ? –B: BAZ -> X –B: BAZ -> C ? (=> Y: CBAZ and Y:CAZ) B A C X Y Z 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 all neighbors –E.g., “I can reach prefix /16 through ASes ” Select a single path by routing policy Critical: learn many paths, propagate one –Add your AS number to advertised path

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

BGP Protocol Details Separate roles of speakers and gateways –Speakers talk BGP with other ASs –Gateways are routers 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 Implications Explicit AS Path == Loop free –Except under churn, IGP/EGP mismatch Reachability not guaranteed –Decentralized combination of policies Not all ASs know all paths AS abstraction -> loss of efficiency Scaling –48K ASs –500K+ prefixes –ASs with one prefix: –Most prefixes by one AS: 2992 (AS10620, TelMex Col) Source: cidr-report 14Oct2014

BGP Table Growth 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

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: /16 AS Path: ASN 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: –telnet route-views.linx.routeviews.org –show ip bgp /16 longer-prefixes All paths are learned internally (iBGP) Not a production device