Intra-domain routing. CS 640: Introduction to Computer Networks. Inter-domain Routing: Hierarchy. Aditya Akella

Similar documents
Exterior Gateway Protocols (BGP)

Inter-domain Routing. Outline. Border Gateway Protocol

Lecture 18: Border Gateway Protocol"

6.263 Data Communication Networks

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

Border Gateway Protocol (BGP)

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

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

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

Interdomain Routing. Outline

Border Gateway Protocol BGP4 (2)

Using the Border Gateway Protocol for Interdomain Routing

Dove siamo? Architecture of Dynamic Routing

Internet inter-as routing: BGP

APNIC elearning: BGP Attributes

BGP Best Path Selection Algorithm

Border Gateway Protocol (BGP-4)

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

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

Masterkurs Rechnernetze IN2097

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

How To Understand Bg

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

E : Internet Routing

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

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

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

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

Internet inter-as routing: BGP

CS551 External v.s. Internal BGP

BGP Attributes and Path Selection

Can Forwarding Loops Appear when Activating ibgp Multipath Load Sharing?

Network Level Multihoming and BGP Challenges

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

Route Discovery Protocols

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

BGP Router Startup Message Flow

APNIC elearning: BGP Basics. Contact: erou03_v1.0

Internet Routing Protocols Lecture 04 BGP Continued

Router and Routing Basics

Routing Protocol - BGP

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

HP Networking BGP and MPLS technology training

IK2205 Inter-domain Routing

GregSowell.com. Mikrotik Routing

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

Introduction to Routing

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

Routing with OSPF. Introduction

Advanced Networking Routing: RIP, OSPF, Hierarchical routing, BGP

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

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

Advanced BGP Policy. Advanced Topics

Understanding Route Aggregation in BGP

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

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

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

basic BGP in Huawei CLI

Interdomain Routing. Project Report

How To Make A Network Plan Based On Bg, Qos, And Autonomous System (As)

Chapter 1 INTRODUCTION

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science. Abstract

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

IP Routing. CS 552 Richard Martin (with slides from S. Savage and S. Agarwal)

Routing Protocols (RIP, OSPF, BGP)

The ISP Column. An Introduction to BGP the Protocol

Understanding Large Internet Service Provider Backbone Networks

Dynamic Routing Protocols II OSPF. Distance Vector vs. Link State Routing

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

How To Make A Full Autonomous System Work

BGP. 1. Internet Routing

Configuring and Testing Border Gateway Protocol (BGP) on Basis of Cisco Hardware and Linux Gentoo with Quagga Package (Zebra)

Understanding Route Redistribution & Filtering

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

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Introduction to TCP/IP

Chapter 4. Distance Vector Routing Protocols

Load balancing and traffic control in BGP

Configuring BGP. Cisco s BGP Implementation

BGP4 Case Studies/Tutorial

OSPF Version 2 (RFC 2328) Describes Autonomous Systems (AS) topology. Propagated by flooding: Link State Advertisements (LSAs).

CLASSLESS INTER DOMAIN ROUTING - CIDR

ECSE-6600: Internet Protocols Exam 2

Internet Control Message Protocol (ICMP)

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

Multihomed BGP Configurations

Peering Planning Cooperation: Failover Matrices

BGP: Border Gateway Protocol

IP Routing Configuring RIP, OSPF, BGP, and PBR

Using OSPF in an MPLS VPN Environment

IAB IPv6 Multi-Homing BOF. Jason Schiller Senior Internet Network Engineer IP Core Infrastructure Engineering UUNET / MCI

Textbook Required: Cisco Networking Academy Program CCNP: Building Scalable Internetworks v5.0 Lab Manual.

Network-Wide Prediction of BGP Routes

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

BGP1 Multihoming and Traffic Engineering

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

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

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

JNCIA Juniper Networks Certified Internet Associate

BGP: Frequently Asked Questions

Transcription:

CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol) Intra-domain routing The Story So Far Routing protocols generate the forwarding table Two styles: distance vector, link state Scalability issues: Distance vector protocols suffer from count-to-infinity Link state protocols must flood information through network Today s lecture How to make routing protocols support large networks How to make routing protocols support business policies 2 Inter-domain Routing: Hierarchy Flat routing not suited for the Internet Doesn t scale with network size Storage Each node cannot be expected to store routes to every destination (or destination network) Convergence times increase Communication Total message count increases Administrative autonomy Each internetwork may want to run its network independently E.g hide topology information from competitors Solution: Hierarchy via autonomous systems 3 1

Internet s Hierarchy What is an Autonomous System (AS)? A set of routers under a single technical administration Use an interior gateway protocol (IGP) and common metrics to route packets within the AS Connect to other ASes using gateway routers Use an exterior gateway protocol (EGP) to route packets to other AS s IGP: OSPF, RIP (last class) Today s EGP: BGP version 4 Similar to an inter-network Could also be a group of internetworks owned by a single commercial entity 4 An example 3b 3a 2a 2c 3c AS 3 1c AS 2 2b 1a AS 1 1d 1b Intra-AS routing algorithm + Inter-AS routing algorithm Forwarding table 5 The Problem Easy when only one link leading to outside AS Much harder when two or more links to outside ASes Which destinations reachable via a neighbor? Propagate this information to other internal routers Select a good route from multiple choices Inter-AS routing protocol Communication between distinct ASes Must be the same protocol! 6 2

BGP Preliminaries Pairs of routers exchange routing info over TCP connections (port 179) One TCP connection for every pair of neighboring gateway routers Routers called BGP s BGP s exchange routing info as messages TCP connection + messages BGP session Neighbor ASes exchange info on which CIDR prefixes are reachable via them Primary objective: reachability not performance 7 ASNs are 16 bit values AS Numbers (ASNs) 64512 through 65535 are private Currently over 15,000 in use Genuity: 1 MIT: 3 CMU: 9 UC San Diego: 7377 AT&T: 7018, 6341, 5074, UUNET: 701, 702, 284, 12199, Sprint: 1239, 1240, 6211, 6242, ASNs represent units of routing policy 8 Distance Vector with Path Each routing update carries the entire ASlevel path so far AS_Path attribute Loops are detected as follows: When AS gets route, check if AS already in path If yes, reject route If no, add self and (possibly) advertise route further Advertisement depends on metrics/cost/preference etc. Advantage: Metrics are local - AS chooses path, protocol ensures no loops 9 3

Hop-by-hop Model BGP advertises to neighbors only those routes that it uses Consistent with the hop-by-hop Internet paradigm Consequence: hear only one route from neighbor (although neighbor may have chosen this from a large set of choices) Could impact view into availability of paths 10 Policy with BGP BGP provides capability for enforcing various policies Policies are not part of BGP: they are provided to BGP as configuration information Enforces policies by Choosing appropriate paths from multiple alternatives Controlling advertisement to other AS s 11 Examples of BGP Policies A multi-homed AS refuses to act as transit Limit path advertisement A multi-homed AS can become transit for some AS s Only advertise paths to some AS s An AS can favor or disfavor certain AS s for traffic transit from itself 12 4

BGP Messages Open Announces AS ID Determines hold timer interval between keep_alive or update messages, zero interval implies no keep_alive Keep_alive Sent periodically (but before hold timer expires) to s to ensure connectivity. Sent in place of an UPDATE message Notification Used for error notification TCP connection is closed immediately after notification 13 BGP UPDATE Message List of withdrawn routes Network layer reachability information List of reachable prefixes Path attributes Origin Path Local_pref this is set locally MED this is set externally Metrics All prefixes advertised in message have same path attributes 14 Path Selection Criteria Attributes + external (policy) information Examples: Policy considerations Preference for AS Presence or absence of certain AS Hop count Path origin 15 5

LOCAL PREF Local (within an AS) mechanism to provide relative priority among BGP exit points R1 AS 100 R5 AS 200 R2 AS 300 R3 Local Pref = 500 Local Pref =800 I-BGP R4 AS 256 Prefer routers announced by one AS over another or general preference over routes 16 AS_PATH List of traversed AS s AS 200 AS 100 170.10.0.0/16 180.10.0.0/16 AS 300 AS 500 180.10.0.0/16 300 200 100 170.10.0.0/16 300 200 17 Multi-Exit Discriminator (MED) Hint to external neighbors about the preferred path into an AS Different AS choose different scales Used when two AS s connect to each other in more than one place More useful in a setting Not honored in other settings Will see later why 18 6

MED Hint to R1 to use R3 over R4 link Cannot compare AS40 s values to AS30 s R1 AS 10 180.10.0.0 MED = 50 AS 40 R2 R3 180.10.0.0 MED = 120 180.10.0.0 MED = 200 R4 AS 30 19 MED MED is typically used in /subscriber scenarios It can lead to unfairness if used between ISP because it may force one ISP to carry more traffic: SF ISP1 ISP2 ISP1 ignores MED from ISP2 ISP2 obeys MED from ISP1 ISP2 ends up carrying traffic most of the way NY 20 Decision Process (First cut) Rough processing order of attributes: Select route with highest LOCAL-PREF Select route with shortest AS-PATH Apply MED (to routes learned from same neighbor) How to set the attributes? Especially local_pref? Policies in action 21 7

A Logical View of the Internet Tier 1 ISP Default-free with global reachability info Tier 2 ISP Regional or country-wide Typically route through tier-1 Customer Tier 3/4 ISPs Local Route through higher tiers Stub AS End network such as IBM or UW-Madison Stub Tier 3 Tier 2 Tier 2 Tier 1 Tier 1 Tier 2 22 Inter-ISP Relationships: Transit vs. Peering Transit ($$ 1/2) ISP P Transit ($$$) ISP Y Transit ($) Transit ($$$) Transit ($$$) Transit ($) ISP Z Peering (0) Transit ($$) ISP X Transit ($$) These relationships have the greatest impact on BGP policies 23 Illustrating BGP Policies AS 4 Frank s Internet Barn AS 3 AS 2 Which route should Frank pick to 13.13.0.0./16? AS 1 13.13.0.0/16 24 8

Policy I: Prefer Customer routing Route learned from preferred over route learned from, preferred over route learned from AS 4 local pref = 80 local pref = 90 AS 3 local pref = 100 Set appropriate local pref to reflect preferences: Higher Local preference values are preferred AS 2 AS 1 13.13.0.0/16 25 Policy II: Import Routes route route route ISP route 26 Policy II: Export Routes route route route ISP route To To To To To filters block 27 9

Policy II: Valley-Free Routes Valley-free routing Number links as (+1, 0, -1) for, and In any valid path should only see sequence of +1, followed by at most one 0, followed by sequence of -1 Why? Consider the economics of the situation How to make these choices? Prefer- routing: LOCAL_PREF Valley-free routes: control route advertisements (see previous slide) 28 BGP Route Selection Summary Highest Local Preference Shortest ASPATH Lowest MED i-bgp < e-bgp Lowest IGP cost to BGP egress Lowest router ID Enforce relationships E.g. prefer routes over routes traffic engineering Throw up hands and break ties 29 10