CS551 External v.s. Internal BGP



Similar documents
BGP Best Path Selection Algorithm

Routing Protocol - BGP

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

How To Understand Bg

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

Border Gateway Protocol (BGP)

Internet inter-as routing: BGP

Interdomain Routing. Outline

Using the Border Gateway Protocol for Interdomain Routing

Exterior Gateway Protocols (BGP)

APNIC elearning: BGP Attributes

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

E : Internet Routing

basic BGP in Huawei CLI

BGP as an IGP for Carrier/Enterprise Networks

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

Internet inter-as routing: BGP

BGP Attributes and Path Selection

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

Understanding Route Aggregation in BGP

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

Lecture 18: Border Gateway Protocol"

Border Gateway Protocol BGP4 (2)

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

Configuring BGP. Cisco s BGP Implementation

Load balancing and traffic control in BGP

HP Networking BGP and MPLS technology training

Introduction to Routing

Gateway of last resort is to network

DD2491 p Load balancing BGP. Johan Nicklasson KTHNOC/NADA

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

MPLS VPN Route Target Rewrite

BGP4 Case Studies/Tutorial

GregSowell.com. Mikrotik Routing

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

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

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

BGP Router Startup Message Flow

6.263 Data Communication Networks

APNIC elearning: BGP Basics. Contact: erou03_v1.0

Load balancing and traffic control in BGP

Edge-1#show ip route Routing entry for /24. Known via "bgp 65001", distance 200, metric 0. Tag 65300, type internal

Route Discovery Protocols

Understanding Virtual Router and Virtual Systems

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

Configuring BGP Services

Advanced BGP Policy. Advanced Topics

ECSE-6600: Internet Protocols Exam 2

- Border Gateway Protocol -

Border Gateway Protocol, Route Manipulation, and IP Multicast

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

IPv6 over MPLS VPN. Contents. Prerequisites. Document ID: Requirements

BGP: Frequently Asked Questions

Inter-domain Routing. Outline. Border Gateway Protocol

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

Doing Don ts: Modifying BGP Attributes within an Autonomous System

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

Multihomed BGP Configurations

Border Gateway Protocol (BGP-4)

Masterkurs Rechnernetze IN2097

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

Router and Routing Basics

Increasing Path Diversity using Route Reflector

Notice the router names, as these are often used in MPLS terminology. The Customer Edge router a router that directly connects to a customer network.

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

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

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

Understanding Route Redistribution & Filtering

Introduction to TCP/IP

no aggregate-address address mask [as-set] [summary-only] [suppress-map map-name] [advertise-map map-name] [attribute-map map-name]

Module 12 Multihoming to the Same ISP

Configuring Route Maps and Policy-Based Routing

Basic Configuration Examples for BGP

Simple Multihoming. ISP/IXP Workshops

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

Table of Contents. Cisco Configuring a Basic MPLS VPN

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

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

The ISP Column. An Introduction to BGP the Protocol

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

Can Forwarding Loops Appear when Activating ibgp Multipath Load Sharing?

BGP Link Bandwidth. Finding Feature Information. Prerequisites for BGP Link Bandwidth

Configuring BGP. The Cisco BGP Implementation

Inter-Autonomous Systems for MPLS VPNs

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

BGP1 Multihoming and Traffic Engineering

Quantifying the BGP routes diversity inside a tier-1 network

Introducing Basic MPLS Concepts

CLASSLESS INTER DOMAIN ROUTING - CIDR

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

BGP Advanced Routing in SonicOS

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

netkit lab bgp: prefix-filtering Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

A Systematic Approach to BGP Configuration Checking

Juniper Exam JN0-343 Juniper Networks Certified Internet Specialist (JNCIS-ENT) Version: 10.1 [ Total Questions: 498 ]

BGP Link Bandwidth. Finding Feature Information. Contents

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

Transcription:

CS551 External v.s. Internal BGP Bill Cheng http://merlot.usc.edu/cs551-f12 1

Exterior vs. Interior World vs. me EGP vs. IGP Little control vs. complete administrative control BGP (and GGP, Hello, EGP) vs. (RIP, OSPF, IS-IS, IGRP, EIGRP) 2

Learning Routes AS1 R1 R2 R3 BGP R4 AS2 BGP can be used by R3 and R4 to learn routes. How do R1 and R2 learn routes? (How does R3 pass on the routes that is has learned to R1 and R2?) Option 1: Inject routes in IGP (such as OSPF) only works for small routing tables Option 2: Use I-BGP 3

Why BGP as an IGP? I-BGP has mechanisms to forward BGP policy directives across an AS Often use I-BGP with some other IGP (such as OSPF) that does internal routing 4

I-BGP Upstream Provider A AS100 Upstream Provider B AS200 ebgp ebgp AS 1 AS 2 ibgp ibgp ebgp 5

E-BGP vs. I-BGP E-BGP connects AS s (external GP) I-BGP is intra-as (internal GP) Differences in operation direct vs. indirect connections different failure modes special attributes for internal use 6

Internal BGP (I-BGP) Same message types, attribute types, and state machine as E-BGP Different rules about re-advertising prefixes: prefix learned from E-BGP can be advertised to I-BGP neighbor and vice-versa, but prefix learned from one I-BGP neighbor cannot be advertised to another I-BGP neighbor reason: no AS-PATH within the same AS and thus danger of looping 7

Internal BGP (I-BGP) R1 R3 E-BGP R4 R2 I-BGP R3 can tell R1 and R2 prefixes from R4 R3 can tell R4 prefixes from R1 and R2 R3 cannot tell R2 prefixes from R1 8

Internal BGP (I-BGP) R1 R2 R3 E-BGP R4 I-BGP R3 can tell R1 and R2 prefixes from R4 R3 can tell R4 prefixes from R1 and R2 R3 cannot tell R2 prefixes from R1 R2 can only find these prefixes through a direct connection to R1 Result: I-BGP routers must be fully connected (via TCP)! contrast with E-BGP sessions that map to physical links 9

I-BGP Upstream Provider A Upstream Provider B ebgp AS100 I-BGP mesh AS200 ebgp ibgp AS 1 AS 2 ibgp ebgp 10

BGP Example R1 advertises routes within AS1 to R2 R2 advertises routes within AS2 and AS3 to R1 R2 learns AS3 routes from I-BGP with R4 R4 learns AS3 routes from E-BGP with R6 R4 advertises routes within AS2 and AS1 to R6 AS1 R1 E-BGP AS2 I-BGP R2 R5 R3 R4 E-BGP R6 AS3 11

Two types of link failures: failure on an E-BGP link failure on an I-BGP Link Link Failures These failures are treated completely different in BGP Why? 12

Failure on an E-BGP Link E-BGP session AS1 R1 R2 AS2 Physical link 138.39.1.1/30 138.39.1.2/30 Note that 138.39.1.1 and 138.39.1.2 are on the same network If the link R1-R2 goes down, then the TCP connection breaks and so does the E-BGP connection; BGP routes are removed This is the desired behavior 13

Failure on an I-BGP Link 138.39.1.2/30 R2 Physical link 138.39.1.1/30 R1 I-BGP session R3 If physical link R1-R2 goes down, the 138.39.1.0/30 network becomes unreachable, connection between R1 and R2 is lost R1 and R2 should, in theory, still be able to exchange traffic, i.e., the indirect path through R3 should be used given the above configuration, it would not work! thus, E-BGP and I-BGP must use different conventions with respect to TCP endpoints Note: I-BGP often does not go over a physical link 14

Virtual Interfaces (VIFs, a.k.a. Loop-back Interfaces) 138.39.128.1/30 138.39.128.5/30 R1 vif I-BGP session Physical link vif R2 138.39.1.1/30 138.39.1.2/30 Note that 138.39.128.1 and 138.39.128.5 are on different networks here! A VIF is not associated with a physical link or hardware interface How do routers learn of VIF addresses? use IGP 15

Scaling the I-BGP Mesh Two methods: BGP confederations scale by adding hierarchy to AS (sub-as) Route reflectors scale by adding hierarchical IBGP route forwarding 16

AS Confederation Subdivide a single AS into multiple, internal sub-as s to reduce I-BGP mesh size simple hierarchy but only one level Still advertises a single AS to external peers internally use sub-as s 17

An AS Confederation AS1 AS Confederation Sub-AS s 10 11 14 12 13 R1 R2 does not see sub-as 10-14, but sees AS1 R2 AS2 18

Confederations BGP sessions between sub-as s are like regular E-BGP but with some changes: local-pref attribute remains meaningful within confederation (E-BGP ignores it) next-hop attribute traverses sub-as boundaries (assumes single IGP running - everyone has same route to next-hop) AS-PATH now includes AS-CONFED-SET and AS-CONFED-SEQUENCE to avoid loops 19

BGP Confederation AS300 AS10 AS20 AS30 20

Route Reflectors Route Reflector (RR): router whose BGP implementation allows re-advertisement of routes between I-BGP neighbors RR runs modified I-BGP Route Reflector Client (RRC): router that depends on RR to re-advertise its routes to entire AS. It also depends on RR to learn routes from the rest of the network RRC runs normal I-BGP 21

RR Example 128.4.0.0/16 RR-C1 RR3 AS1 RR-C3 RR1 RR2 RR-C2 modified I-BGP RR-C4 I-BGP E-BGP neighbor AS2 E-BGP 138.39.0.0/16 With RR there are 7 I-BGP sessions instead of 21 (=7*6/2) 22

Rules for Route Reflectors Reflectors advertise routes learned from clients into the I-BGP mesh RR1 advertises 138.39.0.0/16 learned from RRC2 into I-BGP Reflectors do not re-advertise routes between non-clients RR1 will not re-advertise 128.4.0.0/16 learned from RR3 to RR2 23