Interdomain Routing. Outline

Similar documents
Exterior Gateway Protocols (BGP)

Outline. EE 122: Interdomain Routing Protocol (BGP) BGP Routing. Internet is more complicated... Ion Stoica TAs: Junda Liu, DK Moon, David Zats

Internet inter-as routing: BGP

CS551 External v.s. Internal BGP

The goal of this lecture is to explain how routing between different administrative domains

Lecture 18: Border Gateway Protocol"

How To Understand Bg

Border Gateway Protocol BGP4 (2)

HP Networking BGP and MPLS technology training

Multihoming and Multi-path Routing. CS 7260 Nick Feamster January

Border Gateway Protocol (BGP)

Internet inter-as routing: BGP

Using the Border Gateway Protocol for Interdomain Routing

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to:

Introduction to Routing

Module 7. Routing and Congestion Control. Version 2 CSE IIT, Kharagpur

Internet Routing Protocols Lecture 04 BGP Continued

BGP Best Path Selection Algorithm

APNIC elearning: BGP Basics. Contact: erou03_v1.0

Inter-domain Routing. Outline. Border Gateway Protocol

Based on Computer Networking, 4 th Edition by Kurose and Ross

Advanced BGP Policy. Advanced Topics

Week 4 / Paper 1. Open issues in Interdomain Routing: a survey

Routing Protocol - BGP

Examination. IP routning på Internet och andra sammansatta nät, DD2491 IP routing in the Internet and other complex networks, DD2491

BGP route propagation. Internet AS relationships, Routing policy on Internet paths. Example of commercial relationship. Transit vs.

6.263 Data Communication Networks

A Case Study Design of Border Gateway Routing Protocol Using Simulation Technologies

APNIC elearning: BGP Attributes

basic BGP in Huawei CLI

BGP Basics. BGP Uses TCP 179 ibgp - BGP Peers in the same AS ebgp - BGP Peers in different AS's Private BGP ASN. BGP Router Processes

Our goal is to explain how routing between different administrative domains works in

Active measurements: networks. Prof. Anja Feldmann, Ph.D. Dr. Nikolaos Chatzis Georgios Smaragdakis, Ph.D.

Today s Agenda. Note: it takes years to really master BGP Many slides stolen from Prof. Zhi-Li Zhang at Minnesota and from Avi Freedman s slides

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

BGP Attributes and Path Selection

--BGP 4 White Paper Ver BGP-4 in Vanguard Routers

Configuring BGP. Cisco s BGP Implementation

Network Level Multihoming and BGP Challenges

How To Set Up Bgg On A Network With A Network On A Pb Or Pb On A Pc Or Ipa On A Bg On Pc Or Pv On A Ipa (Netb) On A Router On A 2

BGP Terminology, Concepts, and Operation. Chapter , Cisco Systems, Inc. All rights reserved. Cisco Public

JNCIA Juniper Networks Certified Internet Associate

Analyzing Capabilities of Commercial and Open-Source Routers to Implement Atomic BGP

BGP as an IGP for Carrier/Enterprise Networks

The ISP Column. An Introduction to BGP the Protocol

ITRI CCL. IP Routing Primer. Paul C. Huang, Ph.D. ITRI / CCL / N300. CCL/N300; Paul Huang 1999/6/2 1

Multihomed BGP Configurations

Chapter 49 Border Gateway Protocol version 4 (BGP-4)

E : Internet Routing

Border Gateway Protocol (BGP-4)

BGP1 Multihoming and Traffic Engineering

Understanding Virtual Router and Virtual Systems

Routing in Small Networks. Internet Routing Overview. Agenda. Routing in Large Networks

Administra0via. STP lab due Wednesday (in BE 301a!), 5/15 BGP quiz Thursday (remember required reading), 5/16

DD2491 p Inter-domain routing and BGP part I Olof Hagsand KTH/CSC

Transitioning to BGP. ISP Workshops. Last updated 24 April 2013

BGP4 Case Studies/Tutorial

Bell Aliant. Business Internet Border Gateway Protocol Policy and Features Guidelines

Increasing Path Diversity using Route Reflector

Can Forwarding Loops Appear when Activating ibgp Multipath Load Sharing?

Module 12 Multihoming to the Same ISP

Disaster Recovery Design Ehab Ashary University of Colorado at Colorado Springs

Chapter 6: Implementing a Border Gateway Protocol Solution for ISP Connectivity

Understanding Route Aggregation in BGP

B. Quoitin, S. Uhlig, C. Pelsser, L. Swinnen and O. Bonaventure

Doing Don ts: Modifying BGP Attributes within an Autonomous System

BGP Router Startup Message Flow

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Understanding Large Internet Service Provider Backbone Networks

B. Quoitin, S. Uhlig, C. Pelsser, L. Swinnen and O. Bonaventure

Outline. Internet Routing. Alleviating the Problem. DV Algorithm. Routing Information Protocol (RIP) Link State Routing. Routing algorithms

BGP Route Analysis and Management Systems

Quantifying the BGP routes diversity inside a tier-1 network

ASSEMBLER A BGP-COMPATIBLE MULTIPATH INTER-DOMAIN ROUTING PROTOCOL

Gateway of last resort is to network

ECSE-6600: Internet Protocols Exam 2

> Border Gateway Protocol (BGP-4) Technical Configuration Guide. Ethernet Routing Switch. Engineering

CSC458 Lecture 6. Homework #1 Grades. Inter-domain Routing IP Addressing. Administrivia. Midterm will Cover Following Topics

BGP FORGOTTEN BUT USEFUL FEATURES. Piotr Wojciechowski (CCIE #25543)

Load balancing and traffic control in BGP

Route Discovery Protocols

Border Gateway Protocol (BGP) Conformance and Performance Testing

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

An Overview of Solutions to Avoid Persistent BGP Divergence

Masterkurs Rechnernetze IN2097

BGP: Frequently Asked Questions

- Border Gateway Protocol -

Outline. Outline. Outline

GregSowell.com. Mikrotik Routing

Border Gateway Protocol, Route Manipulation, and IP Multicast

The Case for Source Address Routing in Multihoming Sites

Configuring BGP Services

Border Gateway Protocol Best Practices

Transcription:

Interdomain Routing David Andersen 15-744 Spring 2007 Carnegie Mellon University Outline What does the Internet look like? Relationships between providers Enforced by: Export filters and import ranking BGP: The Border Gateway Protocol Design goals Protocol basics Updates, withdrawals, path vector concept ebgp and ibgp Scaling with confederations and route reflectors BGP decision process, MEDs, localpref, and path length; load balancing Failover and scalability Multi-homing and address allocation Convergence problems Preview of stability 1

The Internet: Attempt 1 End-hosts Routers The Internet: Zooming In ASes: Independently owned & operated commercial entities Comcast IGPs (OSPF, etc) BGP AT&T Abilene Cogent Autonomous Systems (ASes) CMU (PSC) 2

ASes Economically independent All must cooperate to ensure reachability Routing between: BGP Routing inside: Up to the AS OSPF, E-IGRP, ISIS (You may have heard of RIP; almost nobody uses it) Inside an AS: Independent policies about nearly everything. The Internet: Zooming In 2x Comcast BGP AT&T Abilene Autonomous Systems (ASes) CMU All ASes are not equal Cogent 3

AS relationships Very complex economic landscape. Simplifying a bit: Transit: I pay you to carry my packets to everywhere (provider-customer) Peering: For free, I carry your packets to my customers only. (peer-peer) Technical defn of tier-1 ISP: In the defaultfree zone. No transit. Note that other tiers are marketing, but convenient. Tier 3 may connect to tier-1. Zooming in 4 Tier 1 ISP Tier 1 ISP Tier 2 Tier 2: Regional/National Tier 2 Tier 2 Tier 3: Local Tier 3 4

Economics of Packets Transit: Customer pays the provider Who is who? Usually, the one who can live without the other. AT&T does not need CMU, but CMU needs some ISP. What if both need each other? Peering. Instead of sending packets over $$ transit, set up a direct connection and exchange traffic for free! (traceroute www.pitt.edu) Tier 1s must peer by definition Peering can give: Better performance Lower cost More efficient routing (keeps packets local) But negotiating can be very hairy! 5

Business and peering Cooperative competition (brinksmanship) Much more desirable to have your peer s customers Much nicer to get paid for transit Peering tiffs are relatively common 31 Jul 2005: Level 3 Notifies Cogent of intent to disconnect. 16 Aug 2005: Cogent begins massive sales effort and mentions a 15 Sept. expected depeering date. 31 Aug 2005: Level 3 Notifies Cogent again of intent to disconnect (according to Level 3) 5 Oct 2005 9:50 UTC: Level 3 disconnects Cogent. Mass hysteria ensues up to, and including policymakers in Washington, D.C. 7 Oct 2005: Level 3 reconnects Cogent During the outage, Level 3 and Cogent s singly homed customers could not reach each other. (~ 4% of the Internet s prefixes were isolated from each other) Formalizing Relationships Provider: Sends: all routes to customer and customer s routes to everyone Prefers: Route to customers over peers/providers Peering: Sends: to customers but not to other peers or providers. Prefers: Route to peer over providers Customer: Sends: to customers but not to peers or other providers Prefers: Anything else. 6

Enforcing relationships Two mechanisms: Export filters Control what you send over BGP Import ranking Controls which route you prefer of those you hear. LOCALPREF Local Preference. More later. Terminology nit: Both people at the BGP session level are called BGP peers regardless of business relationship. So you have a BGP peering session with your provider BGP version 4 Design goals: Scalability as more networks connect Policy: ASes hould be able to enforce business/routing policies Result: Flexible attribute structure, filtering Cooperation under competition: ASes should have great autonomy for routing and internal architecture But BGP should provide global reachability 7

BGP Autonomous Systems (ASes) Route Advertisement Traffic Session (over TCP) BGP messages OPEN UPDATE Announcements Dest Next-hop AS Path other attributes 128.2.0.0/16 196.7.106.245 2905 701 1239 5050 9 Withdrawals KEEPALIVE Keepalive timer / hold timer Key thing: The Next Hop attribute 8

Path Vector ASPATH Attribute Records what ASes a route went through Loop avoidance: Immediately discard Short path heuristics Like distance vector, but fixes the count-to-infinity problem Two Flavors of BGP ibgp ebgp External BGP (ebgp): exchanging routes between ASes Internal BGP (ibgp): disseminating routes to external destinations among the routers within an AS 9

Two flavors? Most ASes have more than one border router that talks to other peers Must disseminate information inside the AS and through the AS. Must be loop-free. Must have complete visibility. AS is a monolithic entity, so routers must be consistent For every external destination, each router picks the same route that it would have picked had it seen the best routes from each ebgp router in the AS. ibgp and the gooey insides ibgp is not an IGP Does not set up forwarding state internally! Requires that you have an IGP so that all routers can talk to all other routers Original: Full mesh ibgp Simple! All routers see all routes But, causes scaling problems. Route Reflectors and Confederations 10

Scaling ibgp w/route Reflectors A BGP router with clients RR selects a single best-path for each prefix and sends it to all clients If RR learns a route via ebgp or ibgp from a client, it re-advertises to everyone If RR learns via non-client ibgp, it only advertises to clients (Figure. ) Problems with RRs Only 1? Single point of failure, etc. But that s pretty easy to fix. More serious: All clients take same path May mess up traffic engineering Common solution: Hierarchicy of RRs Note: Properly configuring ibgp, RRs, ebgp and your IGP to be loop-free is actually quite difficult! Not all RR configurations provide visibility Inconsistency can lead to loops 11

Picking Paths By agreed-upon convention: Weight (don t worry about it) Local Preference Used to express peer/provider/cust, etc., and outbound load balancing Local route AS Path length Origin MED Multi-exit discriminator Set by the route sender as an inbound load balancing / locality suggestion Load balancing Outbound is easy (you have control) Set localpref according to goals Inbound is tough (nobody has to listen) AS path prepending MEDs Hot and Cold Potato Routing (picture) Often ignored unless contracts involved Practical use: tier-1 peering with a content provider 12

Failover BGP is designed for scaling more than fast failover Many mechanisms favor this balance Route flap damping, for example. If excess routing changes ( flapping ), ignore for some time. Has unexpected effects on convergence times. Route advertisement/withdrawal timers in the 30 second range Effect: tens of seconds to many minutes to recover from simple failures. 15-30 minute outages not uncommon. Multi-homing (More later in the semester) Connect to multiple providers Goal: Higher availability, more capacity Problems: Provider-based addressing breaks Everyone needs their own address space 13

BGP problems Convergence: BGP may explore many routes before finding the right new one. Labovitz et al., SIGCOMM 2000 Correctness: routes may not be valid, visible, or loop-free. Security: There is none! Some providers filter what announcements their customers can make. Not all do. See paper discussion site for pointers Summary Internet is a set of federated independent networks They must play nicely for everybody to be connected to everybody else Routing is done using BGP Simple protocol Extremely complex configuration flexibility Many open research problems in policy, scalability, failover, configuration, correctness, security. 14

Acknowledgements Much of the outline of this lecture is derived from a similar course by Hari Balakrishnan. Several slides are from Nick Feamster 15