Adjusting the OSPF Network Convergence SpeedBy adjusting OSPF timers, you can implement OSPF network convergence speed. Show
Pre-configuration TasksBefore adjusting the OSPF network convergence speed, complete the following tasks:
Configuration ProceduresPerform one or more of the following configurations as required.
Setting the Interval at Which Hello Packets Are SentYou can adjust the value of the Hello timer to change the speed of the OSPF neighbor relationship establishment and change the network convergence speed. ContextHello packets are periodically sent between OSPF interfaces to establish and maintain neighbor relationships. The intervals set on the interfaces at both ends must be the same. Otherwise, the OSPF neighbor relationship cannot be established. Procedure
Setting the delay for transmitting LSAs on an interfaceThis configuration is important for low-speed networks. Procedure
Setting the Dead Time of an OSPF neighborIf no Hello packet is received from a neighbor within a dead interval, the neighbor is considered Down. Procedure
Configuring OSPF Sham HelloWith OSPF sham hello, device can exchange Hello and LSU and LSAck packets to maintain OSPF neighbor relationships, which strengthens the neighbor detection mechanism. Procedure
Configuring Smart-discoverAfter Smart-discover is configured, when the neighbor status changes or the DR or BDR on the multiple-access network (broadcast network or NBMA network) changes, the local router sends Hello packets to its neighbor immediately without waiting for the Hello timer to expire. ContextWithout Smart-discover, when the neighbor status of the NE changes or the DR/BDR on the multiple-access network (broadcast or NBMA network) changes, the NE does not send Hello packets to its neighbor until the Hello timer expires; after Smart-discover is configured, the NE sends Hello packets to its neighbor immediately without waiting for the Hello timer to expire, which speeds up the neighbor relationship establishment and OSPF network convergence. Procedure
Setting the Interval at Which LSAs Are UpdatedYou can set the interval at which LSAs are updated based on network connections and router resources. ContextOSPF sets the interval at which LSAs are updated to 5s. This prevents network connections or frequent route flapping from consuming excessive network bandwidth or device resources. On a stable network that requires fast route convergence, you can change the interval for updating LSAs to 0s. In this manner, the device can fast respond to topology or route changes, which speeds up route convergence. Procedure
Setting the Interval at Which LSAs Are ReceivedYou can set the interval at which LSAs are received based on network connections and router resources. ContextIn OSPF, the defined interval at which LSAs are received is 1s. This aims to prevent network connections or frequent route flapping from consuming excessive network bandwidth or device resources. On a stable network that requires fast route convergence, you can cancel the interval at which LSAs are received by setting the interval to 0s. After the interval is set to 0s, topology or route changes can be immediately advertised on the network through LSAs, which speeds up route convergence. Procedure
Setting the Interval for the SPF CalculationBy setting the interval for the SPF calculation, you can save resources consumed by frequent network changes. ContextWhen the OSPF LSDB changes, the shortest path needs to be recalculated. If a network changes frequently, the shortest path is calculated accordingly, which consumes a large number of system resources degrades system performance. By configuring an intelligent timer and a proper interval for the SPF calculation, you can prevent excessive system memory and bandwidth resources from being occupied. Procedure
Configuring the Function to Suppress the Advertisement of Interface AddressesThis section describes how to configure the function to suppress the advertisement of interface addresses so that interface addresses can be reused. Procedure
Configuring the Route Calculation Delay Function to Suppress Frequent LSA FlappingA route calculation delay can suppress frequent OSPF LSA flapping. ContextFrequent OSPF LSA flapping on the remote device may lead to route flapping on the local device, affecting services. To address this problem, run the maxage-lsa route-calculate-delay command to configure the local device to delay route calculation in the case of frequent OSPF LSA flapping, which suppresses route flapping locally. Procedure
Disabling Master/Slave Board Switching Triggered by Abnormal OSPF LSA AgingBy default, master/slave board switching triggered by abnormal OSPF LSA aging is enabled. To disable this function, perform this task. ContextWhen the local device's aging timer expires, the local device incorrectly clears all Router LSAs from the peer device, which causes route flapping and service interruptions. To resolve this issue, master/slave board switching triggered by abnormal OSPF LSA aging is automatically enabled. Master/slave board switching is triggered to restore network connections and service traffic when the following condition is met: (Number of incorrectly cleared Router LSAs/Total number of Router LSAs) x 100% ≥ 80% (Router LSAs are those sent by the peer device to the local device) Procedure
Disabling OSPF LSA Aging Management
By default, the OSPF LSA aging management function is enabled. To disable this function, perform this task. ContextIf an exception occurs in the age field of LSAs, LSAs may be aged unexpectedly, causing LSA flapping or a route calculation error. For example, if the abnormal aging time is 2500s and the actual aging time is 500s, LSAs are aged prematurely. To address this problem, OSPF LSA aging management is enabled by default. If the aging time in a received LSA is greater than 1800s, OSPF considers the LSA abnormal and changes the aging time to 1700s until the aging time values of all LSAs in the area become the same. In this case, routes can be calculated correctly. By default, the OSPF LSA aging management function is enabled. To disable this function, run the lsa-age refresh disable command. Procedure
Setting a Period During Which OSPF Keeps the Maximum Cost in Local LSAsIf a period during which OSPF keeps the maximum cost in local LSAs is configured and an OSPF interface changes from Down to Up, traffic is switched back only when the period elapses. ContextWhen an OSPF interface changes from Down to Up, the OSPF neighbor relationship is re-established. When IGP route convergence ends, traffic is switched back. IGP routes converge fast. Many services that depend on IGP routes may require a delayed switchback. In this case, you can run the ospf peer hold-max-cost command so that OSPF keeps the maximum cost in local LSAs for a specified period after the OSPF neighbor relationship reaches Full state. During this period, the traffic forwarding path remains unchanged. After this period elapses, the original cost is restored, and traffic is switched back. Procedure
Configuring Secure SynchronizationSecure synchronization prevents traffic loss after a device is restarted. ContextWhen the NEs in an area just finish synchronizing the LSDBs, the LSDBs of these NEs are different from each other. As a result, route flapping occurs. You can configure secure synchronization to solve this problem. This, however, may delay the establishment of the OSPF neighbor relationship. Procedure
Verifying the Configuration of the OSPF Network Convergence SpeedAfter configuring OSPF fast network convergence, verify OSPF brief information. PrerequisitesOSPF fast convergence has been configured. Procedure
ExampleRun the display ospf brief command to view information about OSPF timers. <HUAWEI> display ospf brief OSPF Process 1 with Router ID 9.9.9.9 OSPF Protocol Information RouterID: 9.9.9.9 Border Router: AREA Multi-VPN-Instance is not enabled Global DS-TE Mode: Non-Standard IETF Mode Graceful-restart capability: disabled Helper support capability : not configured OSPF Stub Router State Reason: Startup Synchronize Router LSA stub links with cost 65535 Summary LSA with cost 16777214 External LSA with cost 16777214 Applications Supported: MPLS Traffic-Engineering Spf-schedule-interval: max 10000ms, start 500ms, hold 1000ms Default ASE parameters: Metric: 1 Tag: 1 Type: 2 Route Preference: 10 ASE Route Preference: 150 Intra Route Preference: 50 Inter Route Preference: 50 SPF Computation Count: 56 RFC 1583 Compatible OSPF is in LSDB overflow status(remain time: 205s) Retransmission limitation is disabled Import routes limitation is enabled Self ASE LSA count: 8 Current status: Normal bfd enabled BFD Timers: Tx-Interval 10 , Rx-Interval 10 , Multiplier 3 Area Count: 2 Nssa Area Count: 1 ExChange/Loading Neighbors: 0 Area: 0.0.0.0 (MPLS TE not enabled) Authtype: None Area flag: Normal SPF scheduled count: 2 Exchange/Loading neighbors: 0 Router ID conflict state: Normal Interface: 1.1.1.1 (GE0/3/0) Cost: 1 State: DR Type: Broadcast MTU: 1500 Priority: 1 Designated Router: 1.1.1.1 Backup Designated Router: 0.0.0.0 Timers: Hello 10, Dead 40, Wait 40, Poll 120, Retransmit 5, Transmit Delay 1 Area: 0.0.0.1 (MPLS TE not enabled) Authtype: None Area flag: NSSA SPF scheduled count: 1 Exchange/Loading neighbors: 0 NSSA Translator State: Elected Router ID conflict state: Normal Import routes limitation is enabled Self NSSA LSA count: 2 Current status: Normal Interface: 1.1.1.1 (GE0/2/0) Cost: 1 State: P-2-P Type: P2P MTU: 1500 Timers: Hello 10, Dead 40, Wait 40, Poll 120, Retransmit 5, Transmit Delay 1 Multi-area interface Run the display ospf [ process-id ] statistics maxage-lsa command to view information about router LSAs that have reached the aging time. <HUAWEI> display ospf statistics maxage-lsa
OSPF Process 1 with Router ID 1.1.1.1
Statistics of Router-LSAs
-------------------------------------------
Area: 0.0.0.0
LinkState ID MaxAge count Last MaxAge time
1.1.1.1 1 2014-03-22 11:12:00
What is the default OSPF Hello interval?OSPF hello packets are packets that an OSPF process sends to its OSPF neighbors to maintain connectivity with those neighbors. The hello packets are sent at a configurable interval (in seconds). The defaults are 10 seconds for an Ethernet link and 30 seconds for a non broadcast link.
What is hello and dead interval in OSPF?OSPF uses hello packets and two timers to check if a neighbor is still alive or not: Hello interval: this defines how often we send the hello packet. Dead interval: this defines how long we should wait for hello packets before we declare the neighbor dead.
What is the default dead interval timer for an OSPF router?The default values are 10 seconds for the hello time, and 40 seconds for the dead time. The usual rule of thumb with OSPF is to keep the dead time value four times the hello interval.
What is the default OSPF hello and dead interval on non broadcast multiaccess network?By default, the routing device sends hello packets every 10 seconds (broadcast and point-to-point networks) and 30 seconds (nonbroadcast multiple access (NBMA) networks).
|