Internet Routing Protocols Lecture 04 BGP Continued



Similar documents
RFC 4264 : BGP Wedgies ---- Bad Policy Interactions that Cannot be Debugged

Dove siamo? Architecture of Dynamic Routing

APNIC elearning: BGP Attributes

Border Gateway Protocol BGP4 (2)

Lecture 18: Border Gateway Protocol"

Exterior Gateway Protocols (BGP)

Internet inter-as routing: BGP

Advanced BGP Policy. Advanced Topics

BGP1 Multihoming and Traffic Engineering

Interdomain Routing. Outline

HP Networking BGP and MPLS technology training

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

Internet inter-as routing: BGP

BGP Attributes and Path Selection

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)

Introduction to Routing

Effective BGP Load Balancing Using "The Metric System" A real-world guide to BGP traffic engineering

basic BGP in Huawei CLI

Effective BGP Load Balancing Using "The Metric System" A real-world guide to BGP traffic engineering

Simple Multihoming. ISP/IXP Workshops

Module 12 Multihoming to the Same ISP

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

APNIC elearning: BGP Basics. Contact: erou03_v1.0

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

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

Border Gateway Protocol Best Practices

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

Understanding Route Redistribution & Filtering

IK2205 Inter-domain Routing

Multihomed BGP Configurations

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

Can Forwarding Loops Appear when Activating ibgp Multipath Load Sharing?

Understanding Large Internet Service Provider Backbone Networks

Network Level Multihoming and BGP Challenges

Using the Border Gateway Protocol for Interdomain Routing

BGP Best Path Selection Algorithm

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

Simple Multihoming. ISP Workshops. Last updated 30 th March 2015

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

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

BGP Router Startup Message Flow

Load balancing and traffic control in BGP

Doing Don ts: Modifying BGP Attributes within an Autonomous System

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

DD2491 p Load balancing BGP. Johan Nicklasson KTHNOC/NADA

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

E : Internet Routing

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

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

Demystifying BGP: By Jeffrey Papen Thursday, May 15th, 2003

BGP Multihoming Techniques

BGP. 1. Internet Routing

BGP Multihoming Techniques. Philip Smith APRICOT st February 2 nd March 2012 New Delhi

How To Understand Bg

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

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

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

ETHEL THE AARDVARK GOES BGP ROUTING

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

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Interdomain Routing. Project Report

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

Border Gateway Protocol (BGP-4)

Routing Protocol - BGP

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

Disaster Recovery Design Ehab Ashary University of Colorado at Colorado Springs

CS551 External v.s. Internal BGP

Inter-domain Routing. Outline. Border Gateway Protocol

Understanding Route Aggregation in BGP

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

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

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

The ISP Column. An Introduction to BGP the Protocol

BGP Multihoming Techniques

BGP Multihoming Techniques. Philip Smith APRICOT 2013 Singapore 19 th February 1 st March 2013

BGP Multihoming. Why Multihome? Why Multihome? Why Multihome? Why Multihome? Why Multihome? Redundancy. Reliability

ISP Case Study. UUNET UK (1997) ISP/IXP Workshops. ISP/IXP Workshops. 1999, Cisco Systems, Inc.

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

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

IPv6 Addressing. ISP Training Workshops

Load balancing and traffic control in BGP

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

IP Routing Configuring RIP, OSPF, BGP, and PBR

BGP Route Analysis and Management Systems

6.263 Data Communication Networks

Understanding Virtual Router and Virtual Systems

BGP and Traffic Engineering with Akamai. Caglar Dabanoglu Akamai Technologies AfPIF 2015, Maputo, August 25th

BGP Multihoming Techniques

BGP Multihoming Techniques

BGP Multihoming Techniques

Introduction to TCP/IP

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

BGP as an IGP for Carrier/Enterprise Networks

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

BGP Link Bandwidth. Finding Feature Information. Contents

BGP Routing. Course Description. Students Will Learn. Target Audience. Hands-On

Anycast Rou,ng: Local Delivery. Tom Daly, CTO h<p://dyn.com Up,me is the Bo<om Line

ASA/PIX: Load balancing between two ISP - options

How To Load Balance On A Bgg On A Network With A Network (Networking) On A Pc Or Ipa On A Computer Or Ipad On A 2G Network On A Microsoft Ipa (Netnet) On An Ip

Transcription:

Internet Routing Protocols Lecture 04 BGP Continued Advanced Systems Topics Lent Term, 008 Timothy G. Griffin Computer Lab Cambridge UK Two Types of BGP Sessions AS External Neighbor (EBGP) in a different Autonomous Systems Internal Neighbor (IBGP) in the same Autonomous System EBGP IBGP is routed (using IGP!) IBGP AS

BGP Next Hop Attribute..33.90 AS 643 AT&T Research AS 708 AT&T.7.0. 64 RIPE NCC RIS project 3.07.0.0/6 Next Hop =..33.90 3.07.0.0/6 Next Hop =.7.0. Every time a route announcement crosses an AS boundary, the Next Hop attribute is changed to the IP address of the border router that announced the route. 3 Join EGP with IGP For Connectivity 3.07.0.0/6 Next Hop = 9.0.. 3.07.0.0/6 0.0.0.0 Forwarding Table destination next hop 9.0..0/30 0.0.0.0 + EGP destination next hop 3.07.0.0/6 9.0.. 9.0.. 9.0..0/30 Forwarding Table destination next hop 3.07.0.0/6 0.0.0.0 9.0..0/30 0.0.0.0

Hot Potato Routing: Go for the Closest Egress Point 9.44.78.0/4 egress egress 6 IGP distances This Router has two BGP routes to 9.44.78.0/4. Hot potato: get traffic off of your network as Soon as possible. Go for egress! Routers make independent selections! 9.44.78.0/4 AS 3 AS 4 6 88 0 9.44.78.0/4 ASPATH = 4 9.44.78.0/4 ASPATH = 4 3 6 3

Getting Burned by the Hot Potato High bandwidth Provider backbone 86 7 Heavy Content Web Farm SFF NYC Low bandwidth backbone San Diego 6 Many s want their to carry the bits! tiny http request huge http reply 7 Cold Potato Routing with MEDs (Multi-Exit Discriminator Attribute) Prefer lower MED values 86 7 Heavy Content Web Farm 9.44.78.0/4 MED = 9.44.78.0/4 MED = 6 6 9.44.78.0/4 This means that MEDs must be considered BEFORE IGP distance! Note : some s will not listen to MEDs Note : MEDs need not be tied to IGP distance 8 4

Tweak Tweak Tweak (TE) For inbound traffic Filter outbound routes Tweak attributes on outbound routes in the hope of influencing your neighbor s best route selection For outbound traffic Filter inbound routes Tweak attributes on inbound routes to influence best route selection inbound traffic outbound traffic outbound routes inbound routes In general, an AS has more control over outbound traffic Implementing Backup Links with Local Preference (Outbound Traffic) primary link backup link Set Local Pref = 00 for all routes from AS 6000 Set Local Pref = 0 for all routes from Forces outbound traffic to take primary link, unless link is down. We ll talk about inbound traffic soon 0

Multihomed Backups (Outbound Traffic) AS 3 primary link backup link Set Local Pref = 00 for all routes from Set Local Pref = 0 for all routes from AS 3 Forces outbound traffic to take primary link, unless link is down. Shedding Inbound Traffic with ASPATH Padding. Yes, this is a Glorious Hack 9.0..0/4 ASPATH = 9.0..0/4 ASPATH = primary backup 9.0..0/4 Padding will (usually) force inbound traffic from to take primary link 6

But Padding Does Not Always Work AS 3 9.0..0/4 ASPATH = primary backup 9.0..0/4 9.0..0/4 ASPATH = AS 3 will send traffic on backup link because it prefers routes and local preference is considered before ASPATH length! Padding in this way is often used as a form of load 3 balancing COMMUNITY Attribute to the Rescue! AS 3 AS 3: normal local pref is 00, peer local pref is 90 9.0..0/4 ASPATH = primary backup 9.0..0/4 9.0..0/4 ASPATH = COMMUNITY = 3:70 Customer import policy at AS 3: If 3:90 in COMMUNITY then set local preference to 90 If 3:80 in COMMUNITY then set local preference to 80 If 3:70 in COMMUNITY then set local preference to 70 4 7

What is a BGP Wedgie? [RFC 464] The full wedgie The half wedgie BGP policies make sense locally Interaction of local policies allows multiple stable routings Some routings are consistent with intended policies, and some are not If an unintended routing is installed (BGP is wedged ), then manual intervention is needed to change to an intended routing When an unintended routing is installed, no single group of network operators has enough knowledge to debug the problem Half Wedgie Example peer primary link peer backup link implements backup link by sending a depref me community. implements this community so that the resulting local pref is below that of routes from it s upstream (AS 3 routes) 8

And the Routings are Intended Routing Note: this would be the ONLY routing if AS translated its depref me community to a depref me community of AS 3 Unintended Routing Note: This is easy to reach from the intended routing just by bouncing the BGP session on the primary link. Recovery Bring down - session Bring it back up! Requires manual intervention Can be done in or 9

What the heck is going on? There is no guarantee that a BGP configuration has a unique routing solution. When multiple solutions exist, the (unpredictable) order of updates will determine which one is wins. There is no guarantee that a BGP configuration has any solution! And checking configurations NP-Complete Lab demonstrations of BGP configs never converging Complex policies (weights, communities setting preferences, and so on) increase chances of routing anomalies. yet this is the current trend! Load Balancing Example peer peer AS primary link for prefix P backup link for prefix P primary link for prefix P backup link for prefix P Simple session reset my not work!! 0

Can t un-wedge with session resets! & down P wedged all up BOTH P & P wedged Note that when bringing all up we could actually land the system in any one of the 4 stable states --- depends on message order. all up & down P wedged up up Reset Reset INTENDED down down Recovery P wedged Temporarily filter P from session Temporarily filter P from session P wedged up up INTENDED down down Who among us could figure this one out? When is in New York and is in Tokyo?

Full Wedgie Example peer peer peer peer AS backup links primary link implements backup links by sending and AS a depref me communities. implements its community so that the resulting local pref is below that of its upstream s and its peers (AS 3 and AS routes) AS implements its community so that the resulting local pref is below its peers () but above that of its s (AS 3) And the Routings are AS AS Intended Routing Unintended Routing

Resetting does not help!! AS AS Bring down - session Bring up - session Recovery AS AS AS Bring down - session AND - session Bring up - session AND - session A lot of non-local knowledge is required to arrive at this recovery strategy! Try to convince AS and that their session has be reset (or filtered) even though it is not associated with an active route! 3

That Can t happen in MY network!! NA EMEA AP LA AU++ An normal global global backbone (ISP or Corporate Intranet) implemented with regional ASes The Full Wedgie Example, in a new Guise NA AP EMEA LA Intended Routing for some prefixes in AU, implemented with communities. DOES THIS LOOK FAMILIAR?? AU Message: Same problems can arise with traffic engineering across regional networks. 4