1 QOS ©2000, Cisco Systems, Inc. BGP MED Churn Daniel Walton

Slides:



Advertisements
Similar presentations
© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 1 BGP Diverse Paths draft-ietf-grow-diverse-bgp-paths-dist-02 Keyur Patel.
Advertisements

1 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP — Border Gateway Protocol Routing Protocol used between AS’s Currently Version.
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.
Lecture 9 Overview. Hierarchical Routing scale – with 200 million destinations – can’t store all dests in routing tables! – routing table exchange would.
The Border Gateway Protocol and Classless Inter-Domain Routing
© 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.
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.
Swinog-3, 19 September 2001 Fabien Berger, BGP Oscillation …the Internet routing protocol is diverging! Fabien Berger CCIE#6143 IP-Plus.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Configuring and Monitoring Route Reflectors.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Introducing Route Reflectors.
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.
CS Summer 2003 Lecture 3. CS Summer 2003 What is a BGP Path Attribute? BGP uses a set of parameters known as path attributes to characterize.
The Border Gateway Protocol (BGP) Sharad Jaiswal.
Computer Networking Lecture 10: Inter-Domain Routing
14 – Inter/Intra-AS Routing
BGP Attributes and Path Selections
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network BGP Attributes and Path Selection Process.
Scaling iBGP. BGP iBGP –Internal BGP –BGP peering between routers in same AS –Goal: get routes from a border router to another border router without losing.
Chapter 9. Implementing Scalability Features in Your Internetwork.
Border Gateway Protocol
Xuan Zheng (modified by M. Veeraraghavan) 1 BGP overview BGP operations BGP messages BGP decision algorithm BGP states.
© 2001, Cisco Systems, Inc. A_BGP_Confed BGP Confederations.
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.
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.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
Eliminating Packet Loss Caused by BGP Convergence Nate Kushman Srikanth Kandula, Dina Katabi, and Bruce Maggs.
CSCI-1680 Network Layer: Inter-domain Routing Based partly on lecture notes by Rob Sherwood, David Mazières, Phil Levis, Rodrigo Fonseca John Jannotti.
Release 5.1, Revision 0 Copyright © 2001, Juniper Networks, Inc. Advanced Juniper Networks Routing Module 8: BGP Confederations.
Route Selection Using Policy Controls
© 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.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—1-1 BGP Overview Understanding BGP Path Attributes.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—1-1 Course Introduction.
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network Lab 6-2 Debrief.
BGP Transit Autonomous System
BGP Basics BGP uses TCP (port 179) BGP Established unicast-based connection to each of its BGP- speaking peers. BGP allowing the TCP layer to handle such.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
Draft-dickson-idr-second-best Second-Best: A Path-Hunting Solution Brian Dickson
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Introducing Confederations.
BGP Deployment & Scalability
14 – Inter/Intra-AS Routing
Chapter 4: Network Layer
CS 3700 Networks and Distributed Systems
Multi Node Label Routing – A layer 2.5 routing protocol
Scaling Service Provider Networks
Border Gateway Protocol
Chapter 4: Network Layer
BGP supplement Abhigyan Sharma.
Interdomain Traffic Engineering with BGP
Intra-Domain Routing Jacob Strauss September 14, 2006.
Lixin Gao ECE Dept. UMASS, Amherst
Routing.
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.
Cours BGP-MPLS-IPV6-QOS
CSCI-1680 Network Layer: Inter-domain Routing
John Scudder October 24, 2000 BGP Update John Scudder October 24, 2000.
Department of Computer and IT Engineering University of Kurdistan
Routers Routing algorithms
Dan LI CS Department, Tsinghua University
Scaling Service Provider Networks
Chapter 4: Network Layer
Chapter 4: Network Layer
Chapter 4: Network Layer
COMP/ELEC 429/556 Introduction to Computer Networks
CSCI-1680 Network Layer: Inter-domain Routing
Chapter 4: Network Layer
Computer Networks Protocols
Presentation transcript:

1 QOS ©2000, Cisco Systems, Inc. BGP MED Churn Daniel Walton

2 QOS © 2000, Cisco Systems, Inc. Description MED in a RR or Confederation environment can cause an endless convergence loop Happens as a result of two things: RRs and Confeds “hide” path information MEDs are only compared among like Neighbor ASs Two types of “The Churn”

3 QOS © 2000, Cisco Systems, Inc. The Churn – Type I Network must have multiple paths to a prefix via multiple Neighbor ASs The MED values for these paths must be unique Network must have a single tier of RRs or Sub ASs to have Type I churn Type I can be fixed today Network must use “deterministic-med” Network must follow the deployment guidelines of the RR and Confed drafts Drafts state that “intra cluster/SubAS paths must be preferred over inter cluster/SubAS paths” Result is that “intra” IGP metrics must ALWAYS be lower than “inter” IGP metrics

4 QOS © 2000, Cisco Systems, Inc. The Churn – Type I Still not a great solution IGP change could trigger The Churn Networks are bound to a single tier Hands are tied in terms of setting IGP metrics For more details please see: “Endless BGP Convergence Problem” - Includes information on how to identify MED Churn Includes an example of Type I churn Includes information on the solution for Type I

5 QOS © 2000, Cisco Systems, Inc. The Churn – Type II Network must have multiple paths to a prefix via multiple Neighbor ASs The MED values for these paths must be unique Network must have more than one tier of RRs or SubASs Solution for Type I does not apply Type II cannot be fixed today with the current decision algorithm Example …

6 QOS © 2000, Cisco Systems, Inc. The Churn – Type II A FG AS Y MED 0 AS XAS Y MED 1 CD B E SubAS SubAS 65001SubAS AS_PATHMEDIGP C D E X3 Y 12 * = Withdrawal = Advertisement Step 1 – E selects Y1

7 QOS © 2000, Cisco Systems, Inc. The Churn – Type II A FG AS Y MED 0 AS XAS Y MED 1 CD B E SubAS SubAS 65001SubAS AS_PATHMEDIGP C D E X3 Y 12 * Y 0 50 * Y 142 * = Withdrawal = Advertisement Step 2 – C selects Y0 – D selects Y1

8 QOS © 2000, Cisco Systems, Inc. The Churn – Type II A FG AS Y MED 0 AS XAS Y MED 1 CD B E SubAS SubAS 65001SubAS AS_PATHMEDIGP C D E X3 Y 12 * Y 0 50 Y 142 * Y 1 44 * Y 0 52 = Withdrawal = Advertisement Step 3 – D selects Y0

9 QOS © 2000, Cisco Systems, Inc. The Churn – Type II A FG AS Y MED 0 AS XAS Y MED 1 CD B E SubAS SubAS 65001SubAS AS_PATHMEDIGP C D E X3 Y 12 * Y 0 50 Y 142 * * Y 0 52 = Withdrawal = Advertisement Step 4 – E selects X Y 0 92

10 QOS © 2000, Cisco Systems, Inc. The Churn – Type II A FG AS Y MED 0 AS XAS Y MED 1 CD B E SubAS SubAS 65001SubAS AS_PATHMEDIGP C D E X3 Y 092 * Y 0 50 Y 052 * * X 43 = Withdrawal = Advertisement Step 5 – D selects X Y 12

11 QOS © 2000, Cisco Systems, Inc. The Churn – Type II A FG AS Y MED 0 AS XAS Y MED 1 CD B E SubAS SubAS 65001SubAS AS_PATHMEDIGP C D E X3 Y 12* Y 0 50 Y 052 * * X 43 = Withdrawal = Advertisement Step 6 – C selects X – E selects Y1 X45

12 QOS © 2000, Cisco Systems, Inc. The Churn – Type II A FG AS Y MED 0 AS XAS Y MED 1 CD B E SubAS SubAS 65001SubAS AS_PATHMEDIGP C D E X3 Y 12* Y 0 50 = Withdrawal = Advertisement Step 7 – D selects Y1 X45 * Y 142*

13 QOS © 2000, Cisco Systems, Inc. The Churn – Type II A FG AS Y MED 0 AS XAS Y MED 1 CD B E SubAS SubAS 65001SubAS AS_PATHMEDIGP C D E X3 Y 12* Y 0 50 = Withdrawal = Advertisement Step 8 – C selects Y0 – This is the same as Step 2 – BGP is in a loop Y 142* Y 1 44 *

14 QOS © 2000, Cisco Systems, Inc. The Churn – Type II In a nutshell, the churn happens because E does not always know about the Y0 path but the Y0 path has an affect on what E considers to be his best path. Without Y0, E considers Y1 as best With Y0, E considers X as best From C and D’s point of view Y0 < Y1 < X < Y0  This happens because MED is not compared every time Sequence C selects Y0 and Y0 is propagated to D, E E receives Y0 which forces E to select X D receives X and selects it over Y0 C receives X and selects it over Y0 C sends a withdrawal for Y0 E receives the withdrawal for Y0 so E now prefers Y1 C, D receive Y1 but select Y0 And so on and so on… A FG AS Y MED 0 AS XAS Y MED 1 CD B E SubAS SubAS 65001SubAS

15 QOS © 2000, Cisco Systems, Inc. Possible Solutions Solution #1 – Make sure E has the Y0 path BGP Peers will need to advertise multiple paths BGP will need a new Attribute that will allow a speaker to advertise multiple paths for the same prefix (draft coming soon) A BGP speaker will then need to advertise a best path per “Neighbor AS” group IF that path came from an internal peer. This will force C and D to always advertise Y0 to D Solution #2 – Eliminate “Y0 < Y1 < X < Y0” problem Always comparing MEDs accomplishes this

16 QOS © 2000, Cisco Systems, Inc. Spotting “The Churn” Two steps to ID the churn in your network 1 – Run “show ip route bgp | include, 00:00” once every 60 seconds for ~5 minutes. This will give you a list of routes that have changed within the past minute. If a route is changing every minute then there is a good chance it is churning. Router#show ip route bgp | include, 00:00 B /22 [200/1] via , 00:00:32 B /23 [200/1] via , 00:00:58 Router# Wait 60 seconds… Router#show ip route bgp | include, 00:00 B /24 [200/1] via , 00:00:17 B /23 [200/1] via , 00:00:57 Router# /23 has changed twice in the last 2 minutes. It is possible that this prefix is churning.

17 QOS © 2000, Cisco Systems, Inc. Spotting “The Churn” 2 – Take a prefix from #1 and do “ show ip bgp x.x.x.x | include best # “ for a little over 1 minute. If you see a pattern in the best path transition then this prefix is churning. If not, select another prefix from #1 and try again. Router#show ip bgp | include best # Paths: (23 available, best #17) Router#show ip bgp | include best # Paths: (23 available, best #17) Router#show ip bgp | include best # Paths: (23 available, best #17) Router#show ip bgp | include best # Paths: (23 available, best #17) Then, the best path changes to #14. Router#show ip bgp | include best # Paths: (23 available, best #14) Next, the best path changes to #18. Router#show ip bgp | include best # Paths: (24 available, best #18) Now, the best path is #17 again. Router#show ip bgp | include best # Paths: (23 available, best #17) Router#show ip bgp | include best # Paths: (23 available, best #17) Notice the transition “17->17->14->18->17->17”!! Repeat Step #2 for another minute just to be sure

18 QOS © 2000, Cisco Systems, Inc. Summary Single Tier Networks The churn can be eliminated by using deterministic- med and tweaking your IGP metrics. Another option is to always compare MED. Multi Tier Networks Currently the only “solution” is to always compare MED. A more feasible solution is in the works but it will require BGP to propagate more than one path for a prefix.

19 QOS © 2000, Cisco Systems, Inc. BGP MED Churn Questions Comments