available, and the FEC-label mappings based on this session are not deleted. When the direct link
recovers, the LDP peers do not need to re-establish the LDP session or re-learn the FEC-label mappings.
When you enable the session protection function, you can also specify the session protection duration.
If the Link Hello adjacency does not recover within the duration, LDP deletes the Targeted Hello
adjacency and the LDP session. If you do not specify the session protection duration, the two peers will
always maintain the LDP session over the Targeted Hello adjacency.
To configure LDP session protection:
Step
1.
Enter system view.
2.
Enter LDP view.
3.
Enable the session protection
function.
Configuring LDP GR
Before you configure LDP GR, enable LDP on the GR restarter and GR helpers.
To configure LDP GR:
Step
1.
Enter system view.
2.
Enter LDP view.
3.
Enable LDP GR.
4.
Configure the Reconnect
timer for LDP GR.
5.
Configure the MPLS
Forwarding State Holding
timer for LDP GR.
Configuring LDP NSR
Step
1.
Enter system view.
2.
Enter LDP view.
3.
Enable LDP NSR.
Configuring LDP-IGP synchronization
After you enable LDP-IGP synchronization for an OSPF process, OSPF area, or an IS-IS process, LDP-IGP
synchronization is enabled on the OSPF process interfaces or the IS-IS process interfaces.
Command
system-view
mpls ldp
session protection [ duration time ]
[ peer peer-prefix-list-name ]
Command
system-view
mpls ldp
graceful-restart
graceful-restart timer reconnect
reconnect-time
graceful-restart timer forwarding-hold
hold-time
Command
system-view
mpls ldp
non-stop-routing
32
Remarks
N/A
N/A
By default, session protection is
disabled.
Remarks
N/A
N/A
By default, LDP GR is disabled.
By default, the Reconnect time is
120 seconds.
By default, the MPLS Forwarding
State Holding time is 180 seconds.
Remarks
N/A
N/A
By default, LDP NSR is disabled.