1 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Advanced BGP Convergence Techniques Pradosh Mohapatra.

Slides:



Advertisements
Similar presentations
APNOMS03 1 A Resilient Path Management for BGP/MPLS VPN Jong T. Park School of Electrical Eng. And Computer Science Kyungpook National University
Advertisements

© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Link-State Routing Protocols Routing Protocols and Concepts – Chapter.
© 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.
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.
Entire Routes Reflecting capability draft-zhang-idr-bgp-entire-routes-reflect-00.txt Zhang Renhai :
© 2006 Cisco Systems, Inc. All rights reserved. MPLS v2.2—2-1 Label Assignment and Distribution Introducing Typical Label Distribution in Frame-Mode MPLS.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—1-1 Module Summary BGP has reliable transport provided by TCP, a rich set of metrics called BGP.
Pseudowire Endpoint Fast Failure Protection draft-shen-pwe3-endpoint-fast-protection-00 Rahul Aggarwal Yimin Shen
1 Measurement of Highly Active Prefixes in BGP Ricardo V. Oliveira, Rafit Izhak-Ratzin, Beichuan Zhang, Lixia Zhang GLOBECOM’05.
A General approach to MPLS Path Protection using Segments Ashish Gupta Ashish Gupta.
Routing and Routing Protocols
A General approach to MPLS Path Protection using Segments Ashish Gupta Ashish Gupta.
MPLS L3 and L2 VPNs Virtual Private Network –Connect sites of a customer over a public infrastructure Requires: –Isolation of traffic Terminology –PE,
Connecting Networks © 2004 Cisco Systems, Inc. All rights reserved. Exploring How Routing Works INTRO v2.0—4-1.
Link State Routing Protocol W.lilakiatsakun. Introduction (1) Link-state routing protocols are also known as shortest path first protocols and built around.
Chapter 7: Routing Dynamically
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
M. Menelaou CCNA2 DYNAMIC ROUTING. M. Menelaou DYNAMIC ROUTING Dynamic routing protocols can help simplify the life of a network administrator Routing.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols.
Count to infinity problem
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 6 Routing and Routing Protocols.
Routing -2 Dynamic Routing
MPLS on UW System Network Michael Hare. Purpose of presentation As I didn't really understand MPLS going in, I thought it would be useful to share what.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 2 Single-Area OSPF.
CCNA 3 Week 2 Link State Protocols OSPF. Copyright © 2005 University of Bolton Distance Vector vs Link State Distance Vector –Copies Routing Table to.
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.
IGP Data Plane Convergence draft-ietf-bmwg-dataplane-conv-meth-14.txt draft-ietf-bmwg-dataplane-conv-term-14.txt draft-ietf-bmwg-dataplane-conv-app-14.txt.
Inter AS option D (draft-mapathak-interas-option-d-00) Manu Pathak Keyur Patel Arjun Sreekantiah November 2012.
Lecture 2 Agenda –Finish with OSPF, Areas, DR/BDR –Convergence, Cost –Fast Convergence –Tools to troubleshoot –Tools to measure convergence –Intro to implementation:
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 7 Distance Vector Routing Protocols.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide.
© 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.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
Interior Gateway Protocols (RIP, OSPF) continued….
1 Version 3.1 Module 6 Routed & Routing Protocols.
Draft-asati-bgp-mpls-blackhole-avoidance-00.txt1 BGP/MPLS Traffic Blackhole Avoidance Proposal draft-asati-bgp-mpls-blackhole-avoidance-00 Rajiv Asati.
© 2002, Cisco Systems, Inc. All rights reserved..
MPLS on UW System Network Michael Hare. Purpose of presentation As I didn't really understand MPLS going in, I thought it would be useful to share what.
© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 1 BGP Prefix Origin Validation State Extended Community draft-pmohapat-sidr-origin-validation-signaling-00.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Scaling IGP and BGP in Service Provider Networks.
© 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.
© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 1 BGP Optimal Route Reflection (BGP-ORR) draft-raszuk-bgp-optimal-route-reflection-00.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—2-1 BGP Transit Autonomous Systems Forwarding Packets in a Transit AS.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-1 Optimizing BGP Scalability Improving BGP Convergence.
Applicability of Existing Solutions to the Problem Space draft-takeda-l1vpn-applicability-03.txt.
Draft-litkowski-rtgwg-spf-uloop-pb-statement IETF 90 - Toronto S. Litkowski, Orange.
RIP Routing Protocol. 2 Routing Recall: There are two parts to routing IP packets: 1. How to pass a packet from an input interface to the output interface.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 1 BGP Diagnostic Message draft-raszuk-bgp-diagnostic-message-00 Robert Raszuk,
2547 egress PE Fast Failure Protection draft-minto-2547-egress-node-fast-protection-00 Jeyananth Minto Maciek
Global Table Multicast with BGP-MVPN Protocol
Advanced Computer Networks
Boarder Gateway Protocol (BGP)
Instructor Materials Chapter 5: Dynamic Routing
BGP-Based SPF RTGWG - Jan 2017
Routing Loops.
Virtual Aggregation (VA)
Routing Information Protocol (RIP)
Rip Routing Protocol.
Introduction to Networks
CCNA 2 v3.1 Module 7 Distance Vector Routing Protocols
Chapter 5: Dynamic Routing
Chapter 5: Dynamic Routing
John Scudder October 24, 2000 BGP Update John Scudder October 24, 2000.
Dynamic Routing and OSPF
COS 561: Advanced Computer Networks
Communication Networks
COS 461: Computer Networks
Computer Networks Protocols
Presentation transcript:

1 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Advanced BGP Convergence Techniques Pradosh Mohapatra Apricot 2006

2 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Agenda Terminology Convergence Scenarios Core Link Failure Edge Node Failure Edge Link Failure

3 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Basic Terminology Prefix – A route that is learnt by routing protocols. – /16 Pathlist – A list of Next Hop paths learnt by routing protocols. – /16 Via POS1/0 Via GE2/0, – /16 Via Non-recursive Recursive (Depends on the resolution of the next-hop)

4 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Forwarding Table Structure BGP PL path 1 path 2 IGP PL path 1 path 2 IGP PL path 1 path 2 Intf1/NH1 Intf2/NH2 Intf3/NH3 Intf4/NH4

5 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Salient Features Pathlist Sharing: All BGP prefixes that have the same set of paths point to a single pathlist. Hierarchical Structure: BGP prefixes (recursive) point to IGP prefixes (non- recursive).

6 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Core Link Failure 666

7 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Multipath BGP, Multipath IGP, IGP path goes down BGP PL path 1 path 2 IGP PL path 1 path 2 IGP PL path 1 path 2 Initial organization before failure of IGP path 1. Link to Path 1 goes down.

8 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Multipath BGP, Multipath IGP, IGP path goes down BGP PL path 1 path 2 IGP PL path 2 IGP PL path 1 path 2 IGP pathlist modified after Path 1 failure. BGP Convergence = IGP Convergence.

9 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Multipath BGP, Multipath IGP, IGP prefix is deleted BGP PL path 1 path 2 IGP PL Path 1 Path 2 IGP PL path 1 path 2 Initial organization before deletion of IGP prefix 1. IGP Prefix 1 gets deleted. Fix-up BGP PL to point to the second path.

10 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Multipath BGP, Multipath IGP, IGP prefix is deleted BGP LI path 1 IGP LI path 1 path 2 BGP pathlist modified after deletion of IGP prefix 1. BGP Convergence = IGP Convergence.

11 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Multipath BGP, Multipath IGP, IGP path modified BGP LI path 1 path 2 IGP LI path 1 path 2 IGP LI path 1 path 2 Initial organization before modification of IGP Path 1. IGP Path 1 gets modified. BGP Convergence = IGP Convergence

12 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Conclusion In case of core link failure: Sub-second convergence. BGP Prefix-independent & In-place modification of the forwarding table. Make-before-break solution

13 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Edge Node Failure 13

14 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Edge node failure PE1 has selected PE2 as bestpath and has installed that path only in forwarding table. What PE1 needs upon PE2’s failure is fast detection of Unreachability. Unreachability status requires all the IGP neighbors to have detected the failure and have sent their LSP’s to PE1. PE1 now needs to point to PE3. PE2 PE3 PE1 P1 P2

15 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID BGP Next-Hop Tracking Event-driven reaction to BGP next-hop changes – BGP communicates its next-hops to RIB. – If RIB gets a modify/delete/add of an entry covering these next-hops, it notifies BGP. – BGP runs bestpath algorithm. Stability requirement – Fast reaction to isolated events – Delayed reaction to too frequent events Classification of Events – Next-hop unreachable is critical: React faster. –Metric Change is non-critical: React slower.

16 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID BGP NHT – Implementation highlights RIB implements dampening algorithm – Next-hops flapping too often are dampened. RIB classifies next-hop changes as critical or non- critical. – Critical events are sent immediately to BGP. Non-critical events are delayed up-to 3 seconds. BGP has an initial delay before it reacts to next-hop changes. – Default: 5s. Configurable. – Capture as many changes as possible within the initial delay before running bestpath. router bgp 1 bgp nexthop-trigger-delay 1

17 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID BGP NHT - example RIB sends 1 st NH notification IGP CV Lk Dn T2 NHScan + BestPath T1 T3 T1: Link failure triggering IGP convergence. T2: First next-hop notification to BGP. T3: BGP reads the next-hop updates and starts initial delay timer. T4: Initial delay period expires. BGP does Nhscan and bestpath change (a function of the table size). T4

18 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID BGP NHT Principle: The first SPF must declare PE2 as unreachable We want to make sure that if PE2 fails, then all its neighbors have had the time to detect the failure, originate their LSP and have flooded it to PE1 We want to make sure that when PE1 starts its SPF, all PE2’s neighbors LSP’s are in PE1’s database Dependency fast failure detection fast flooding SPF Initial-wait conservative enough

19 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID BGP NHT – Typical Timing 0: PE2 failure 50ms: PE1 receives the 1st LSP and schedules SPF at T=200ms the other LSP’s will have all the time to arrive in the meantime 200ms: PE1 starts SPF we account a duration of 30ms but with iSPF it will be ~1ms 232ms: PE1 deletes PE2’s loopback and schedules BGP NHT at T=1232ms there are few prefixes to modify as this is a node failure 1232ms: PE1 runs BGP NHT table scan: ~6us per entry: if PE1 has 20k routes: ~ 120ms RIB modify: ~140us per entry: if PE1 has 5k routes from PE2, it takes ~ 700ms 70ms distribution download 2122ms: PE1/LC has finished modifying the BGP entries to use nh=PE3. We still need to resolve them resolution starts [0, 1000ms] resolution lasts: ~ 100us per entry 3622ms: Convergence is finished in the worst case

20 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Conclusion – Edge node failure Sub-5s is achievable analyzed scenario leads to WC ~ 3500ms Sub-Second is challenging Ongoing work to improve this further: Backup path

21 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Backup Path BGP PL path 1 backup path IGP PL path 1 path 2 Intf3/NH3 Intf4/NH4 IGP PL path 1 path 2 Intf1/NH1 Intf2/NH2 No Multipath. Prefix always points to Path 1. Reroute triggered per IGP prefix: fix-up Path 1 to point to the backup path.

22 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Backup Path – Contd. Problem: How to know the backup path? BGP advertises only one path. Peering with RRs: RR sends only the bestpath it computes. Solution: Add-path draft.

23 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID ADD-PATH Mechanism that allows the advertisement of multiple paths for the same prefix without the new paths implicitly replacing any previous ones. Add a path identifier to the encoding to distinguish between different prefixes | Path Identifier (4 octets) | | Length (1 octet) | | Label (3 octets) | | Prefix (variable) | | Path Identifier (4 octets) | | Length (1 octet) | | Prefix (variable) |

24 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID ADD-PATH - Operation New capability: Add-path Advertisement of the capability indicates ability to receive multiple paths for all negotiated AFI/SAFI. Advertisement of specific AFI/SAFI information in the capability indicates the intent to send multiple paths. Only in these cases must the new encoding be used. Concerns: Cost of multiple paths advertisement outweigh the benefits on convergence?

25 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Edge Link Failure 25

26 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Example: PE-CE Link Failure CE2 CE3 CE1 VPN1 site VPN1 HQ PE1 PE2 PE3 RRA1 RRA2 RRB1 RRB2

27 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Edge Link Failure scenarios Edge Link Failure: Next-hop on the peering link Convergence behavior same as the last two scenarios. Edge Link Failure: Next-hop-self Default behavior for L3VPN In-place modification and/or BGP NHT do not help. Advanced BGP signaling required.

28 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Any Questions ?

29 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID