
23
Configuration procedure
The LDP GR feature and the LDP NSR feature are mutually exclusive. Do not configure both
features on the device.
To configure LDP GR:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter MPLS LDP view.
mpls ldp
N/A
3.
Enable MPLS LDP GR.
graceful-restart
Disabled by default.
4.
Set the FT reconnect time.
graceful-restart timer
reconnect
timer
Optional.
300 seconds by default.
5.
Set the LDP neighbor
liveness time.
graceful-restart timer
neighbor-liveness
timer
Optional.
120 seconds by default.
6.
Set the LDP recovery time.
graceful-restart timer recovery
timer
Optional.
300 seconds by default.
Gracefully restarting MPLS LDP
To test whether the MPLS LDP GR configuration has taken effect, you can perform graceful restart of
MPLS LDP. During the LDP restart process, you can see whether the packet forwarding path is
changed and whether packet forwarding is interrupted.
The
graceful-restart mpls ldp
command is intended only for testing the MPLS LDP GR function. It
does not perform active/standby switchover.
To restart MPLS LDP gracefully:
Task Command
Remarks
Restart MPLS LDP gracefully.
graceful-restart mpls ldp
Available in user view.
Configuring LDP NSR
Nonstop routing (NSR) is a mechanism for keeping on data transmission during an active/standby
switchover. In standalone mode, NSR for LDP can back up LDP session information and LSP
information from the active MPU to the standby MPU of a device. In IRF mode, NSR for LDP can
back up LDP session information and LSP information from the global active MPU to the global
standby MPU. When a switchover occurs, the standby MPU can immediately pick up the LDP
service, implementing nonstop data transmission.
The LDP GR function can also implement nonstop data forwarding, but it requires that the GR
restarter and all its neighbors support LDP GR. With the LDP NSR function, the neighboring devices
do not need to support LDP NSR. They are not aware of any switchover event on the NSR-enabled
device.
The LDP GR feature and the LDP NSR feature are mutually exclusive. Do not configure both
features on the device.
To configure LDP NSR:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter MPLS LDP view.
mpls ldp
N/A