© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-1 Optimizing BGP Scalability Improving BGP Convergence.

Slides:



Advertisements
Similar presentations
BGP Overview Processing BGP Routes.
Advertisements

Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—2-1 BGP Transit Autonomous Systems Monitoring and Troubleshooting IBGP in a Transit AS.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialBSCI Configuring EIGRP BSCI Module 2-5 – Configuring EIGRP in an Enterprise Network.
Managing Your Network Environment © 2004 Cisco Systems, Inc. All rights reserved. Managing Cisco IOS Devices INTRO v2.0—9-1.
© 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.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-1 Optimizing BGP Scalability Limiting the Number of Prefixes Received from a BGP Neighbor.
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.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Configuring and Monitoring Route Reflectors.
Implementing an EIGRP-Based Solution
1 ELEN 602 Lecture 20 More on Routing RIP, OSPF, BGP.
CCNA 2 v3.1 Module 6.
© 2009 Cisco Systems, Inc. All rights reserved.ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network Configuring and Verifying Basic BGP Operations.
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network Considering the Advantages of Using BGP.
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Enabling RIP.
Lecture Week 3 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
© 2006 Cisco Systems, Inc. All rights reserved. MPLS v2.2—5-1 MPLS VPN Implementation Configuring Small-Scale Routing Protocols Between PE and CE Routers.
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing.
Connecting Networks © 2004 Cisco Systems, Inc. All rights reserved. Exploring How Routing Works INTRO v2.0—4-1.
Distance Vector Routing Protocols W.lilakiatsakun.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Distance Vector Routing Protocols Routing Protocols and Concepts –
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.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public BSCI Module 8 Lessons 1 and 2 1 BSCI Module 8 Lessons 1 and 2 Introducing IPv6 and Defining.
Routing and Routing Protocols Routing Protocols Overview.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
M.Menelaou CCNA2 ROUTING. M.Menelaou ROUTING Routing is the process that a router uses to forward packets toward the destination network. A router makes.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 6 Routing and Routing Protocols.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 6 Routing and Routing Protocols.
Dynamic Routing Chapter 9. powered by DJ 1. C HAPTER O BJECTIVES At the end of this Chapter you will be able to:  Explain Dynamic Routing  Identify.
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Enabling OSPF.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing Protocols.
Chapter 9. Implementing Scalability Features in Your Internetwork.
© Synergon Informatika Rt., 1999 Chapter 12 Connecting Enterprises to an Internet Service Provider.
© 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.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing and Switching Essentials.
© 2002, Cisco Systems, Inc. All rights reserved. 1 Routing Overview.
© 2003, Cisco Systems, Inc. All rights reserved..
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing and Switching Essentials.
Cisco Systems Networking Academy S2 C 12 Routing Protocols.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Scaling IGP and BGP in Service Provider Networks.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 4 Learning About Other Devices.
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—7-1 Optimizing BGP Scalability Using BGP Route Dampening.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—3-1 Route Selection Using Policy Controls Applying Route-Maps as BGP Filters.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing Protocols.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-1 Optimizing BGP Scalability Implementing BGP Peer Groups.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—2-1 BGP Transit Autonomous Systems Forwarding Packets in a Transit AS.
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network Lab 6-2 Debrief.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—1-1 BGP Overview Monitoring and Troubleshooting BGP.
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.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—1-1 BGP Overview Establishing BGP Sessions.
CHAPTER 6: STATIC ROUTING Static Routing 2 nd semester
© 2003, Cisco Systems, Inc. All rights reserved..
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
Connecting an Enterprise Network to an ISP Network
Scaling Service Provider Networks
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Routing/Routed Protocols
Chapter 2: Static Routing
CCNA 2 v3.1 Module 6 Routing and Routing Protocols
Chapter 2: Static Routing
Cours BGP-MPLS-IPV6-QOS
Static Routing 1st semester
Static Routing 2nd semester
Presentation transcript:

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-1 Optimizing BGP Scalability Improving BGP Convergence

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-2 Outline Overview BGP Convergence BGP Processes CPU Effects of BGP Processes Improving BGP Convergence PMTU Discovery Increasing Input Queue Depth BGP Scan Time BGP Advertisement Interval BGP Nonstop Forwarding Awareness Summary

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-3 BGP Convergence As the number of routes in the Internet routing table grows, the time it takes for BGP to converge increases. The Internet currently contains more than 110,000 prefixes. Network convergence times can range from 10 minutes to more than one hour. BGP is considered converged when: –All routes have been accepted. –All routes have been installed in the routing table. –The table version for all peers equals the table version of the BGP table. –The input queue and output queue for all peers is 0.

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-4 BGP Processes BGP scanner and BGP router are responsible for a large number of calculations and can lead to high CPU utilization. BGP open As BGP control packets are received BGP scanner BGP router ProcessDescriptionInterval Performs BGP peer establishment. Handles queuing and processing of BGP packets (updates and keepalives). At initialization, when establishing a TCP connection with a BGP peer BGP I/O Walks the BGP table and confirms reachability of the next hops. BGP scanner also checks conditional advertisement to determine whether or not BGP should advertise condition prefixes. Performs route dampening. Every 60 seconds Calculates the best BGP path and processes any route changes. It also sends and receives routes, establishes peers, and interacts with the routing information base (RIB). Once per second and when adding, removing, or soft- reconfiguring a BGP peer

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-5 CPU Effects of BGP Processes BGP scanner process High CPU utilization stemming from the BGP scanner process can be expected for short durations on a router carrying a large Internet routing table. While the BGP scanner runs, low-priority processes need to wait a longer time to access the CPU. BGP router process The BGP router process runs about once per second to check for work. The BGP router consumes all free CPU cycles.

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-6 Improving BGP Convergence You can reduce BGP convergence time and high CPU utilization caused by BGP processes in the following ways: Queuing to TCP peer connections –BGP now automatically queues data aggressively from the BGP output queue to the TCP socket for each peer Deploying BGP peer groups –Simplifies BGP configuration and enhances BGP scalability Enabling the path MTU feature –Improves efficiency by dynamically determining the largest MTU that you can use without creating packets that need to be fragmented Increasing interface input queues –Improves convergence by reducing dropped TCP ACKs

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-7 Improving BGP Convergence (Cont.) BGP convergence can also be improved to some extent by: Configuring a smaller interval for the BGP scanner process (scan time) Configuring a smaller advertisement interval between BGP neighbors Limitation: Not recommended in routers dealing with large BGP tables Could lead to CPU or memory exhaustion

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-8 PMTU Discovery ip tcp path-mtu-discovery [age-timer {minutes | infinite}] router(config)# This command enables the PMTU discovery feature for all new TCP connections from the router. The age timer is a time interval for how often TCP re-estimates the path MTU with a larger MSS (default age timer is 10 minutes). This feature is described in RFC 1191.

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-9 Monitoring PMTU Discovery The default MSS is 536 bytes. After enabling of the PMTU discovery feature, the MSS has been increased.

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-10 Increasing Input Queue Depth hold-queue length in router(config-if)# This command limits the size of the IP queue on an interface. The default input hold-queue limit is 75 packets, configurable from 0 to 65,535 packets. A length of 1000 will normally resolve problems caused by input queue drops of TCP ACKs.

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-11 Monitoring Input Queue Depth

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-12 BGP Scan Time bgp scan-time scanner-interval router(config-router)# This command changes the default value of BGP scanner process runs (default = 60 seconds). The BGP scanner walks the BGP table and confirms the reachability of next hops. The BGP scanner process is also responsible for advanced features such as conditional advertisement check and performing route dampening.

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-13 Monitoring BGP Scan Time Scan interval is defined per BGP router process and address family Checked with show ip bgp summary command

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-14 BGP Advertisement Interval neighbor {ip-address | peer-group-name} advertisement- interval seconds router(config-router)# This command changes the default time interval in the sending of BGP routing updates for a specific neighbor: –If lowered, can improve convergence –Can consume considerable resources in a jittery network if the value is set too low Default values: –30 seconds for EBGP neighbors –5 seconds for IBGP neighbors

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-15 Monitoring the BGP Advertisement Interval Defined per BGP neighbor and address family Manually configured minimum value stated under address family output of show ip bgp neighbors command

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-16 NSF Awareness Allows an NSF-aware router to assist NSF-capable and NSF- aware neighbors to continue forwarding packets during a switchover operation or during a well-known failure condition Minimizes the effects of the following: –Well-known failure conditions (for example, a stuck-in- active event) –Unexpected events (for example, an RP switchover operation) –Scheduled events (for example, a hitless software upgrade)

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-17 Summary Convergence is defined as the process of bringing all route tables to a consistent state. Several Cisco IOS processes (including BGP open, I/O, scanner, and router) that are executed on the router enable BGP to run. The BGP scanner and BGP router processes can significantly impact the CPU utilization of the router, causing some low-priority processes to suffer increased processing delays. You can reduce BGP convergence time and high CPU utilization caused by BGP processes in the following ways: queuing to TCP peer connections, deploying BGP peer groups, enabling the PMTU feature, and increasing interface input queues. The PMTU discovery feature, implemented through the ip tcp path- mtu-discovery global configuration command, finds the largest packet that can be sent to a destination without requiring IP fragmentation, minimizing packet overhead.

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-18 Summary (Cont.) Increasing the input queue depth is a technique that can eliminate dropped TCP ACKs, resulting in improved BGP convergence. To specify the size of the IP input or output queue on an interface, use the hold-queue command. Reducing the time between runs of the BGP scanner process (using the bgp scan-time command to configure the time interval for repetitions of the BGP scanner process) improves BGP convergence at the cost of increased CPU resource consumption. With the help of the neighbor advertisement-interval command, you can reduce the advertisement interval, causing BGP updates to be sent to neighbors more quickly and resulting in improved BGP convergence time. NSF awareness allows an NSF-aware router to assist NSF- capable and NSF-aware neighbors to continue forwarding packets during a switchover operation or during a well- known failure condition.

© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—7-19