Configuring LDP GR Helper
Configure the local node as the GR Helper to help the neighbor complete LDP GR.
Pre-configuration Tasks
Before configuring LDP GR Helper, complete the following tasks:
-
Configure a local LDP session. For details, see Configuring Basic Functions of MPLS LDP.
-
Configure IGP GR. For details, see CloudEngine 12800 and 12800E Series Switches IP Unicast Routing Configuration Guide.
Context
Table 2-9 describes timers used during LDP GR.
Timer |
Description |
Suggestion |
---|---|---|
Reconnect timer |
After the GR Restarter performs an active/standby switchover, the GR Helper detects that the LDP session with the GR Restarter fails, and then starts the Reconnect timer and waits for reestablishment of the LDP session. The value of the Reconnect timer that takes effect on the GR Helper is the smaller one between the value of the Neighbor-liveness timer set on the GR Helper and the value of Reconnect timer set on the GR Restarter. |
When a network with a large number of routes is faulty, you can increase the value of the Reconnect timer to avoid that all the LDP sessions cannot recover within the default timeout period 300s. |
Recovery timer |
After the LDP session is reestablished, the GR Helper starts the Recovery timer and waits for the recovery of the LSP. The value of the Recovery timer that takes effect on the GR Helper is the smaller one between the value of the Recovery timer set on the GR Helper and the value of Recovery timer set on the GR Restarter. |
When a network with a large number of routes is faulty, you can increase the value of the Recovery timer to avoid that all the LSPs cannot recover within the default timeout period 300s. |
Neighbor-liveness timer |
The value of the neighbor-liveness timer defines the LDP GR period. The value of the Neighbor-liveness timer on the GR Restarter is the same as that of the Forwarding State Holding timer. |
When the number of LSPs on a network is small, you can set a smaller value for the Neighbor-liveness timer to shorten the GR period. |
Enabling or disabling LDP GR, or changing the LDP GR timer value cause LDP session reestablishment. To disable a device from re-establishing LDP sessions when LDP GR is enabled or disabled, or the LDP GR timer value is changed, run the no-renegotiate session-parameter-change graceful-restart command.
Procedure
- Run system-view
The system view is displayed.
- Run mpls ldp
The MPLS LDP view is displayed.
- Run graceful-restart
The LDP GR function is enabled.
By default, the LDP GR function is disabled.
- (Optional) Run graceful-restart timer reconnect time
The Reconnect timer for the LDP session is set.
By default, the Reconnect timer is set to 300 seconds.
- (Optional) Run graceful-restart timer recovery time
The LSP Recovery timer is set.
By default, the LSP Recovery timer is set to 300 seconds.
- (Optional) Run graceful-restart timer neighbor-liveness time
The Neighbor-liveness timer is set.
By default, the Neighbor-liveness timer is 600 seconds.
- (Optional) Run no-renegotiate session-parameter-change graceful-restart
The device is disabled from re-establishing LDP sessions when LDP GR is enabled or disabled, or the LDP GR timer value is changed.
By default, enabling or disabling LDP GR, or changing the LDP GR timer value cause LDP session reestablishment.
- Run commit
The configuration is committed.