6.829 BGP Recitation Rob Beverly September 29, 2006.

Slides:



Advertisements
Similar presentations
Chapter 4: Network Layer
Advertisements

CS Summer 2003 CS672: MPLS Architecture, Applications and Fault-Tolerance.
Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
CS540/TE630 Computer Network Architecture Spring 2009 Tu/Th 10:30am-Noon Sue Moon.
© 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.
Best Practices for ISPs
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.
Routing Jinyang Li. Administravia Hand in PS1 to Hui Zhang before you leave! me project teamlist by Oct-1.
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.
Mini Introduction to BGP Michalis Faloutsos. What Is BGP?  Border Gateway Protocol BGP-4  The de-facto interdomain routing protocol  BGP enables policy.
1 Policy-Based Path-Vector Routing Reading: Sections COS 461: Computer Networks Spring 2006 (MW 1:30-2:50 in Friend 109) Jennifer Rexford Teaching.
Computer Networking Lecture 10: Inter-Domain Routing
Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet Protocol m Datagram.
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
04/05/20011 ecs298k: Routing in General... lecture #2 Dr. S. Felix Wu Computer Science Department University of California, Davis
© 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.
UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
BGP Attributes and Path Selections
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
TCOM 515 Lecture 6.
Inter-domain Routing: Today and Tomorrow Dr. Jia Wang AT&T Labs Research Florham Park, NJ 07932, USA
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Introduction to BGP.
1 Introduction to Computer Networks Ilam University By: Dr. Mozafar Bag-Mohammadi Routing.
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.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Lecture 4: BGP Presentations Lab information H/W update.
Chapter 9. Implementing Scalability Features in Your Internetwork.
CS 356: Computer Network Architectures Lecture 13: Dynamic Routing Protocols: Border Gateway Protocol [PD] chapter Xiaowei Yang
Border Gateway Protocol
BGP V1.1. When is BGP Applicable Basic BGP Peer Configuration Troubleshooting BGP Connections BGP Operation and Path Attributes Route Import/Export Selected.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
BGP4 - Border Gateway Protocol. Autonomous Systems Routers under a single administrative control are grouped into autonomous systems Identified by a 16.
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.
A Measurement Study on the Impact of Routing Events on End-to-End Internet Path Performance Feng Wang 1, Zhuoqing Morley Mao 2 Jia Wang 3, Lixin Gao 1,
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.
CSCI-1680 Network Layer: Inter-domain Routing Based partly on lecture notes by Rob Sherwood, David Mazières, Phil Levis, Rodrigo Fonseca John Jannotti.
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.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Scaling IGP and BGP in Service Provider Networks.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—5-1 Customer-to-Provider Connectivity with BGP Connecting a Multihomed Customer to a Single Service.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
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.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Introducing Confederations.
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.
Boarder Gateway Protocol (BGP)
Border Gateway Protocol
CS 3700 Networks and Distributed Systems
Border Gateway Protocol
BGP supplement Abhigyan Sharma.
Module Summary BGP is a path-vector routing protocol that allows routing policy decisions at the AS level to be enforced. BGP is a policy-based routing.
BGP Overview BGP concepts and operation.
Computer Networks Protocols
Presentation transcript:

6.829 BGP Recitation Rob Beverly September 29, 2006

Addressing and Assignment

Area-Routing Review… Why does Internet Scale? –Hierarchical Addressing How are addresses assigned? Classfull Addressing: –e.g. class A -> first bit 0, 7 bits network, 24 bits host –What’s wrong with classes? Classless Interdomain Routing (CIDR)

CIDR Stop-gap measure to prevent: –Address depletion –Route table growth Arbitrary network boundaries (not byte) Allows for proper sizing (not just 2^{8,16,24}) Allows for aggregation Stroke Format: prefix/mask e.g /8

CIDR Example: – /24 (class C) – /24 (class C) –Aggregate as: /23 What about: – /24 (class C) – /24 (class C) –Can this be aggregated as: /23? No! –3 = (binary) –4 = (binary) –Differ in first 7 bits, so cannot aggregate

Routing Nomenclature We use lots of acronyms, keep them straight: –IGP: interior gateway protocol, e.g. OSPF, ISIS, RIP Optimized for: Shortest Path, loop-free –EGP: exterior gateway protocol, e.g. BGP Optimized for: scalability, policy –BGP types: iBGP: internal BGP eBGP: external BGP iBGP != IGP

Brief Tangent: AS & IP Assignment Useful information for pset and debugging Who assigns IP addresses? –ARIN to regional registries (RIRs) who subdelegate –Lookup: athena$ whois –h whois.arin.net Who assigns AS numbers? –ARIN –Range? 2^16 –Lookup: athena$ whois –h whois.arin.net “AS3” Who maintains IP->AS (or AS->IP) mapping? –Not centralized –Lookup: routing table

BGP Policy

BGP Autonomous System Numbers (ASNs) Routing preference: –Customers: advertise all routes to customers, import their routes –Peers: advertise my customers to my peers, import their routes –Providers: advertise my customers, import their routes

BGP Policy Motivation for peering rules Org peers with Sprint Sprint peers with UUNET Org gets transit from UUNET Org UUNET Sprint dst1 srcdst2 Why would Sprint not advertise UUNET routes to Org?

BGP by Example: Hot-Potato ISP A ISP B srcdst ISP A and B peer on both east and west coasts

BGP by Example: Hot-Potato ISP A ISP B srcdst Consider src to dst conversation

BGP by Example: Hot-Potato ISP A ISP B srcdst Note Asymmetric path! – Very Common

BGP by Example: Multihoming Most customers don’t run BGP: –Simply default route to ISP –ISP injects customer route into BGP (or customer’s address space is from ISP) –Why BGP for multihoming? Scenarios: –Customer has own address space –Customer has provider address space –Customer multihomes with single ISP –Customer multihomes with two ISPs

Multihoming to Single Provider ISP A Cust Consider two default routes here. What is the outcome? ISP and changes within ISP affect customer’s inbound traffic! Load share outbound traffic: reordering!

Multihoming to Single Provider ISP A Cust / /16 Advertise: / /16 + MEDs Advertise: / /16 + MEDs

Multihoming to Single Provider ISP A Cust / /16 Advertise: / /16 Advertise: / /16 ISP sets localprefs differently on inbound customer routes perhaps based on community

Multihoming: Own Address Space ISP AISP B Cust /8 Advertise: / /9 Advertise: / /9

Multihoming: Own Address Space ISP AISP B Cust /8 Advertise: /8 with ASPATH Pre-pending Advertise: /8 backup

Multihoming: Provider Address Space ISP AISP B Cust / / /24 LPM Punches holes in the aggregated routing tables

Route Reflection

iBGP Need to distribute routes within the AS Why not inject into IGP? –How many BGP routes? Lots, ~ k –Scalability of link-state database –Too much control traffic flooding Use iBGP full mesh internally Never redistribute a route heard via iBGP to other iBGP neighbors

iBGP Physical and logical topology may be very different Must have an IGP running first to establish TCP-based BGP sessions Physical TopologyLogical Topology

Route Reflection Full-mesh of iBGP sessions Requires (n(n-1)/2) iBGP sessions Not scalable: e.g. 50 routers = 1225 sessions Solution: hierarchy plus minor tweak to BGP protocol New types: –Route Reflector (RR) –Route Reflector Client (RC) (no change)

Route Reflection by Example RC1 RC2 RC3 RC4 RR2 RR1RR3 RRs redistribute routes from RCs to all iBGP neighbors (other RRs) RRs redistribute routes from all iBGP neighbors to their RCs

Route Reflection by Example RC1 RC2 RC3 RC4 RR2 RR1RR3 AS /8 RR1 redistributes to RR2 and RR3 RR1 redistributes to her client RC1 RR3 redistributes to RC3 and RC4

BGP Badness

SIGCOMM06: Wang et. al “A Measurement Study on the Impact of Routing Events on E2E Internet Path Performance” Experimental Methodology: –BGP Beacon multihomed to 2 AS –Advertises and withdraws on predetermined schedule –Planetlab Active Measurement 37-to-1 –UDP, Ping, Traceroute

Experimental Methodology plab1plab2plab3plab4 Internet BGP Beacon BGP Beacon withdraws r1 and r2 on predetermined schedule. Restores r1 And r2 on schedule. r1 r2

Routing Events + Path Perf Loss correlated to both withdrawals and restores Observe two periods of loss on a withdrawal Observe loss even when second path is restored – non-intuitive High-level reasons: BGP policy limiting advertisements, MRAI timer

E2E Traffic Probe Received packet order Seq no Paper attempts to explain these two loss events

Route Withdrawal == loss Beacon Plab Box ISP A ISP B ISP C = customer = peer = traffic flow

Route Withdrawal == loss Beacon Plab Box withdraw ISP A ISP B ISP C

Route Withdrawal == loss Beacon Plab Box ISP A ISP B ISP C = traffic flow announce

Route Withdrawal == loss Beacon Z Plab Box withdraw ISP A ISP B ISP C Z sends withdrawal because of policy: never send peer route to another peer

Route Restoration == loss?!? Beacon Plab Box = customer = peer = traffic flow

Route Restoration == loss?!? C BAZ Beacon Plab Box advertise C advertises beacon route to B, but waits (due to MRAI) before sending to A

Route Restoration == loss?!? C BAZ Beacon Plab Box withdraw ?? No route B can’t advertise route from C to A because of iBGP rules. Since B has new best route via C, B must poison previous route via Z. Sends withdrawal to A. A has no route, traffic dropped.

Route Restoration == loss?!? C BAZ Beacon Plab Box withdraw MRAI timer fires. Announce route, traffic restored.