Usage guidelines
GR enables an LSR to retain MPLS forwarding entries during an LDP restart, ensuring continuous MPLS
forwarding.
The graceful-restart command does not take effect on LDP sessions established before the command is
executed. To apply the new setting, execute the reset mpls ldp command to reestablish LDP sessions.
Examples
# Enable GR for LDP.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-ldp] graceful-restart
Related commands
display mpls ldp parameter
•
reset mpls ldp
•
graceful-restart timer
Use graceful-restart timer to configure the MPLS Forwarding State Holding timer and the Reconnect timer
for GR.
Use undo graceful-restart timer to restore the default.
Syntax
graceful-restart timer { forwarding-hold hold-time | reconnect reconnect-time }
undo graceful-restart timer { forwarding-hold | reconnect }
Default
The MPLS Forwarding State Holding timer is 180 seconds and the Reconnect timer is 120 seconds.
Views
LDP view
Predefined user roles
network-admin
mdc-admin
Parameters
forwarding-hold hold-time: Specifies the MPLS Forwarding State Holding time in the range of 60 to 600
seconds. This time specifies how long the local LSR retains its MPLS forwarding entries after the control
plane of the local LSR restarts.
reconnect timeout: Specifies the Reconnect time in the range of 60 to 300 seconds. This time specifies the
period the local LSR expects the peer to wait for LDP session reestablishment after the peer detects an LDP
session failure. The local LSR sends the Reconnect time to the peer.
Usage guidelines
The MPLS Forwarding State Holding time must be greater than the Reconnect time.
In a GR process, the timers work as follows:
42