Configuring Nonstop Forwarding With Stateful Switchover
Configuring Nonstop Forwarding With Stateful Switchover
Configuring Nonstop Forwarding With Stateful Switchover
Switchover
• Prerequisites for Cisco Nonstop Forwarding with Stateful Switchover, on page 1
• Restrictions for Cisco Nonstop Forwarding with Stateful Switchover, on page 2
• Information About Cisco Nonstop Forwarding with Stateful Switchover, on page 2
• How to Configure Cisco Nonstop Forwarding with Stateful Switchover, on page 7
• Verifying Cisco Express Forwarding with Cisco Nonstop Forwarding, on page 8
• Configuration Examples for Cisco Nonstop Forwarding with Stateful Switchover, on page 9
• Additional References for Nonstop Forwarding with Stateful Switchover, on page 9
• Feature History and Information for Cisco Nonstop Forwarding with Stateful Switchover, on page 10
• Neighboring devices do not detect a link flap—Because interfaces remain active during a switchover,
neighboring devices do not detect a link flap (the link does not go down and come back up).
• Prevents routing flaps—Because SSO continues forwarding network traffic during a switchover, routing
flaps are avoided.
• Maintains user sessions established prior to the switchover.
• If a stack member does not respond, that member is removed from the stack.
• If the standby device does not respond, a new standby device is elected.
• If the active device does not respond, the standby device becomes the active device.
SSO Operation
When a standby device runs in SSO mode, the standby device starts up in a fully-initialized state and
synchronizes with the persistent configuration and the running configuration on the active device. It
subsequently maintains the state of the protocols, and all changes in hardware and software states for features
that support SSO are kept in synchronization. Consequently, it offers minimum interruption to Layer 2 sessions
in a redundant active device configuration.
If the active device fails, the standby device becomes the active device. This new active device uses existing
Layer 2 switching information to continue forwarding traffic. Layer 3 forwarding is delayed until routing
tables are repopulated in the newly active device.
a Layer 3 network is unavailable following an active device election by continuing to forward IP packets.
Reconvergence of Layer 3 routing protocols (BGP, OSPFv2, and EIGRP) is transparent to the user and
happens automatically in the background. Routing protocols recover routing information from neighbor
devices and rebuild the Cisco Express Forwarding table.
Routing Protocols
Routing protocols run only on the active RP, and receive routing updates from neighbor devices. Routing
protocols do not run on the standby RP. Following a switchover, routing protocols request that the NSF-aware
neighbor devices send state information to help rebuild routing tables. Alternately, the Intermediate
System-to-Intermediate System (IS-IS) protocol can be configured to synchronize state information from the
active to the standby RP to help rebuild the routing table on the NSF-capable device in environments where
neighbor devices are not NSF-aware.
Note For NSF operation, routing protocols depend on Cisco Express Forwarding to continue forwarding packets
while routing protocols rebuild the routing information.
BGP Operation
When a NSF-capable device begins a BGP session with a BGP peer, it sends an OPEN message to the peer.
Included in the message is a declaration that the NSF-capable device has “graceful restart capability.” Graceful
restart is the mechanism by which BGP routing peers avoid a routing flap following a switchover. If the BGP
peer has this capability, it is aware that the device sending the message is NSF-capable. Both the NSF-capable
device and its BGP peer(s) need to exchange the Graceful Restart Capability in their OPEN messages, at the
time of session establishment. If both peers do not exchange the Graceful Restart Capability, the session is
not graceful restart capable.
If the BGP session is lost during the RP switchover, the NSF-aware BGP peer marks all routes associated
with the NSF-capable device as stale; however, it continues to use these routes to make forwarding decisions
for a set period of time. This functionality means that no packets are lost while the newly active RP is waiting
for convergence of the routing information with the BGP peers.
After an RP switchover occurs, the NSF-capable device reestablishes the session with the BGP peer. In
establishing the new session, it sends a new graceful restart message that identifies the NSF-capable device
as having restarted.
At this point, the routing information is exchanged between two BGP peers. Once this exchange is complete,
the NSF-capable device uses the routing information to update the RIB and the FIB with the new forwarding
information. The NSF-aware device uses the network information to remove stale routes from its BGP table.
Following that, the BGP protocol is fully converged.
If a BGP peer does not support the graceful restart capability, it will ignore the graceful-restart capability in
an OPEN message; but will establish a BGP session with the NSF-capable device. This function allows
interoperability with non-NSF-aware BGP peers (and without NSF functionality), but the BGP session with
non-NSF-aware BGP peers will not be graceful restart capable.
Note BGP support in NSF requires that neighbor networking devices be NSF-aware; that is, devices must have the
Graceful Restart Capability and advertise that capability in their OPEN message during session establishment.
If an NSF-capable device discovers that a particular BGP neighbor does not have Graceful Restart Capability,
it will not establish an NSF-capable session with that neighbor. All other neighbors that have Graceful Restart
Capability will continue to have NSF-capable sessions with this NSF-capable networking device.
EIGRP Operation
Enhanced Interior Gateway Routing Protocol (EIGRP) NSF capabilities are exchanged by EIGRP peers in
hello packets. The NSF-capable device notifies its neighbors that an NSF restart operation has started by
setting the restart (RS) bit in a hello packet. When an NSF-aware device receives notification from an
NSF-capable neighbor that an NSF-restart operation is in progress, the NSF-capable and NSF-aware devices
immediately exchange their topology tables. The NSF-aware device sends an end-of-table update packet when
the transmission of its topology table is complete. The NSF-aware device then performs the following actions
to assist the NSF-capable device:
• The EIGRP hello hold timer is expired to reduce the time interval set for hello packet generation and
transmission. This allows the NSF-aware device to reply to the NSF-capable device more quickly reducing
the amount of time required for the NSF-capable device to rediscover neighbors and rebuild the topology
table.
• The route-hold timer is started. This timer is used to set the period of time that the NSF-aware device
will hold known routes for the NSF-capable neighbor. This timer is configured with the timers nsf
route-hold command. The default time period is 240 seconds.
• In the peer list, the NSF-aware device notes that the NSF-capable neighbor is restarting, maintains
adjacency, and holds known routes for the NSF-capable neighbor until the neighbor signals that it is
ready for the NSF-aware device to send its topology table, or the route-hold timer expires. If the route-hold
timer expires on the NSF-aware device, the NSF-aware device discards held routes and treats the
NSF-capable device as a new device joining the network and reestablishes adjacency accordingly.
• The NSF-aware device continues to send queries to the NSF-capable device which is still in the process
of converging after a switchover, effectively extending the time before a stuck-in-active condition can
occur.
When the switchover operation is complete, the NSF-capable device notifies its neighbors that it has reconverged
and has received all of their topology tables by sending an end-of-table update packet to assisting devices.
The NSF-capable device then returns to normal operation. The NSF-aware device will look for alternate paths
(go active) for any routes that are not refreshed by the NSF-capable (restarting device). The NSF-aware device
will then return to normal operation. If all paths are refreshed by the NSF-capable device, the NSF-aware
device will immediately return to normal operation.
Note NSF-aware devices are completely compatible with non-NSF aware or -capable neighbors in an EIGRP
network. A non-NSF aware neighbor will ignore NSF capabilities and reset adjacencies and otherwise maintain
the peering sessions normally.
OSPF Operation
When an OSPF NSF-capable device performs a supervisor engine switchover, it must perform the following
tasks in order to resynchronize its link state database with its OSPF neighbors:
• Relearn the available OSPF neighbors on the network without causing a reset of the neighbor relationship.
• Reacquire the contents of the link state database for the network.
As quickly as possible after a supervisor engine switchover, the NSF-capable device sends an OSPF NSF
signal to neighboring NSF-aware devices. Neighbor networking devices recognize this signal as an indicator
that the neighbor relationship with this device should not be reset. As the NSF-capable device receives signals
from other devices on the network, it can begin to rebuild its neighbor list.
After neighbor relationships are reestablished, the NSF-capable device begins to resynchronize its database
with all of its NSF-aware neighbors. At this point, the routing information is exchanged between the OSPF
neighbors. Once this exchange is complete, the NSF-capable device uses the routing information to remove
stale routes, update the RIB, and update the FIB with the new forwarding information. The OSPF protocols
are then fully converged.
Note OSPF support in NSF requires that all neighbor networking devices be NSF-aware. If an NSF-capable device
discovers that it has non-NSF -aware neighbors on a particular network segment, it disables NSF capabilities
for that segment. Other network segments composed entirely of NSF-capable or NSF-aware devices continue
to provide NSF capabilities.
Procedure
CEF Status:
RP instance
common CEF enabled
IPv4 CEF Status:
CEF enabled/running
dCEF enabled/running
CEF switching enabled/running
universal per-destination load sharing algorithm, id DEA83012
IPv6 CEF Status:
CEF disabled/not running
dCEF disabled/not running
universal per-destination load sharing algorithm, id DEA83012
RRP state:
I am standby RRP: no
RF Peer Presence: yes
RF PeerComm reached: yes
RF Progression blocked: never
Redundancy mode: rpr(1)
CEF NSF sync: disabled/not running
CEF ISSU Status:
FIBHWIDB broker
No slots are ISSU capable.
FIBIDB broker
No slots are ISSU capable.
FIBHWIDB Subblock broker
No slots are ISSU capable.
FIBIDB Subblock broker
No slots are ISSU capable.
Adjacency update
No slots are ISSU capable.
IPv4 table broker
No slots are ISSU capable.
CEF push
No slots are ISSU capable.
The following is sample output from the show redundancy states command:
show redundancy states
my state = 13 -ACTIVE
peer state = 8 -STANDBY HOT
Mode = Duplex
Unit = Primary
Unit ID = 5
Redundancy Mode (Operational) = sso
Redundancy Mode (Configured) = sso
Split Mode = Disabled
Manual Swact = Enabled
Communications = Up
client count = 29
client_notification_TMR = 30000 milliseconds
keep_alive TMR = 9000 milliseconds
keep_alive count = 1
keep_alive threshold = 18
RF debug mask = 0x0
Nonstop Forwarding with Cisco IOS XE Everest 16.6.1 This feature was introduced.
Stateful Switchover
Cisco NSF works with the SSO feature. NSF
works with SSO to minimize the amount of
time a network is unavailable to users
following a switchover. The main objective
of NSF SSO is to continue forwarding IP
packets following a Route Processor (RP)
switchover.