CS 3700 Networks and Distributed Systems

Slides:



Advertisements
Similar presentations
1 Interdomain Traffic Engineering with BGP By Behzad Akbari Spring 2011 These slides are based on the slides of Tim. G. Griffin (AT&T) and Shivkumar (RPI)
Advertisements

Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
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.
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.
Interdomain Routing and The Border Gateway Protocol (BGP) Courtesy of Timothy G. Griffin Intel Research, Cambridge UK
The Border Gateway Protocol (BGP) Sharad Jaiswal.
Computer Networking Lecture 10: Inter-Domain Routing
14 – Inter/Intra-AS Routing
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.
14 – Inter/Intra-AS Routing Network Layer Hierarchical Routing scale: with > 200 million destinations: can’t store all dest’s in routing tables!
Internet Routing: Measurement, Modeling, and Analysis Dr. Jia Wang AT&T Labs Research Florham Park, NJ 07932, USA
1 Interdomain Routing (BGP) By Behzad Akbari Fall 2008 These slides are based on the slides of Ion Stoica (UCB) and Shivkumar (RPI)
CS 3700 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 8/20/15.
CS 3830 Day 29 Introduction 1-1. Announcements r Quiz 4 this Friday r Signup to demo prog4 (all group members must be present) r Written homework on chapter.
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.
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.
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.
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.
Computer Networks Lecture 8: Network layer Part III
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
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
1 Internet Routing 11/11/2009. Admin. r Assignment 3 2.
Routing in the Internet
14 – Inter/Intra-AS Routing
Chapter 4: Network Layer
CS 3700 Networks and Distributed Systems
2017 session 1 TELE3118: Network Technologies Week 6: Network Layer Control Plane Inter-Domain Routing Protocols Some slides have been adapted from:
Boarder Gateway Protocol (BGP)
Border Gateway Protocol
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
CSE390 – Advanced Computer Networks
Border Gateway Protocol
BGP (cont) 1. BGP Peering 2. BGP Attributes
Chapter 4: Network Layer
COS 561: Advanced Computer Networks
BGP supplement Abhigyan Sharma.
Interdomain Traffic Engineering with BGP
Introduction to Internet Routing
Lixin Gao ECE Dept. UMASS, Amherst
Cours BGP-MPLS-IPV6-QOS
CS 4700 / CS 5700 Network Fundamentals
Department of Computer and IT Engineering University of Kurdistan
COS 561: Advanced Computer Networks
Routers Routing algorithms
CS 3700 Networks and Distributed Systems
Dan LI CS Department, Tsinghua University
Inter-domain Routing Protocol
Chapter 4: Network Layer
CS 3700 Networks and Distributed Systems
Chapter 4: Network Layer
COS 561: Advanced Computer Networks
Chapter 4: Network Layer
COMP/ELEC 429/556 Introduction to Computer Networks
BGP Instability Jennifer Rexford
Computer Networks Protocols
Network Layer: Internet Inter-Domain Routing
Presentation transcript:

CS 3700 Networks and Distributed Systems Christo Wilson 8/22/2012 CS 3700 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 8/20/15 Defense

Network Layer, Control Plane Function: Set up routes between networks Key challenges: Implementing provider policies Creating stable paths Data Plane Application Presentation Session Transport Network RIP OSPF BGP Control Plane Data Link Physical

ASs, Revisited AS-1 AS-3 Interior Routers AS-2 BGP Routers

AS Numbers Each AS identified by an ASN number 16-bit values 64512 – 65535 are reserved Currently, there are > 20000 ASNs AT&T: 5074, 6341, 7018, … Sprint: 1239, 1240, 6211, 6242, … Northeastern: 156 North America ASs  ftp://ftp.arin.net/info/asn.txt

Inter-Domain Routing Global connectivity is at stake! Thus, all ASs must use the same protocol Contrast with intra-domain routing What are the requirements? Scalability Flexibility in choosing routes Cost Routing around failures Question: link state or distance vector? Trick question: BGP is a path vector protocol

BGP Border Gateway Protocol Relatively simple protocol, but… De facto inter-domain protocol of the Internet Policy based routing protocol Uses a Bellman-Ford path vector protocol Relatively simple protocol, but… Complex, manual configuration Entire world sees advertisements Errors can screw up traffic globally Policies driven by economics How much $$$ does it cost to route along a given path? Not by performance (e.g. shortest paths)

BGP Relationships Peer 2 has no incentive to route 1 3 Provider Peer 2 has no incentive to route 1 3 Peers do not pay each other Customer Peer 1 Provider Peer 2 Customer Peer 3 Customer pays provider Customer

Tier-1 ISP Peering Inteliquent Centurylink Verizon Business AT&T Level 3 Sprint XO Communications

Peering Wars Reduce upstream costs Improve end-to-end performance Don’t Peer Reduce upstream costs Improve end-to-end performance May be the only way to connect to parts of the Internet You would rather have customers Peers are often competitors Peering agreements require periodic renegotiation Peering struggles in the ISP world are extremely contentions, agreements are usually confidential

Two Types of BGP Neighbors Exterior routers also speak IGP IGP eBGP eBGP iBGP iBGP

Full iBGP Meshes Question: why do we need iBGP? OSPF does not include BGP policy info Prevents routing loops within the AS iBGP updates do not trigger announcements eBGP iBGP

Path Vector Protocol 120.10.0.0/16: AS 2  AS 3  AS 4 AS-path: sequence of ASs a route traverses Like distance vector, plus additional information Used for loop detection and to apply policy Default choice: route with fewest # of ASs AS 4 120.10.0.0/16 AS 3 130.10.0.0/16 AS 5 AS 2 110.10.0.0/16 120.10.0.0/16: AS 2  AS 3  AS 4 130.10.0.0/16: AS 2  AS 3 110.10.0.0/16: AS 2  AS 5 AS 1

BGP Operations (Simplified) Establish session on TCP port 179 AS-1 Exchange active routes BGP Session AS-2 Exchange incremental updates

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

BGP Attributes Some attributes used to select “best” path LocalPREF Local preference policy to choose most preferred route Overrides default fewest AS behavior Multi-exit Discriminator (MED) Chooses peering point for your network Specifies path for external traffic destined for an internal network Other attributes control how routes are shared with others Import Rules What route advertisements do I accept? Export Rules Which routes do I forward to whom?

Route Selection Summary Highest Local Preference Enforce relationships Shortest AS Path Lowest MED Traffic engineering Lowest IGP Cost to BGP Egress When all else fails, break ties Lowest Router ID

Shortest AS Path != Shortest Path 9 hops 2 ASs 4 hops 4 ASs Source ? ? Destination

Hot Potato Routing 5 hops total, 2 hops cost 3 hops total, 3 hops cost Source 3 hops total, 3 hops cost ? ? Destination

Importing Routes ISP Routes From Provider From Peer From Peer From Customer

Exporting Routes $$$ generating routes Customer and ISP routes only To Provider To Peer To Peer To Customer Customers get all routes

AS Relationships: It’s Complicated Typical models of AS relationships are simple Each AS pair has exactly one relationship Each relationship is the same for all prefixes Unfortunately, in practice it’s much more complicated Rise of widespread peering Regional, per-prefix peerings Tier-1’s being shoved out by “hypergiant” content providers Internet Exchange Points (IXPs) dominating traffic volume Also, BGP is 100% insecure Totally possible to poison or steal routes :(