The graceful-delete command enables LDP graceful deletion.
The undo graceful-delete command disables LDP graceful deletion.
By default, LDP graceful deletion is disabled.
Usage Scenario
This command is used to resolve the problems in the following scenarios:
In the LDP-IGP synchronization scenario, if the physical and protocol status of the primary link is proper but the LDP session on the primary link goes Down, LDP-Interior Gateway Protocol (IGP) synchronization enables LDP to inform the IGP of the primary link fault, and the IGP configures the maximum cost value for the primary link. After that, LDP immediately instructs the upstream device to withdraw labels and allocates labels to the upstream device because a new LSP is set up on the secondary link, prolonging the LSP convergence time. As a result, packet loss occurs.
After LDP graceful deletion is configured, the preceding problems can be resolved. After the LDP session goes Down, LDP does not immediately instruct the upstream device to withdraw labels but keeps the LSP until LSP switchover is complete, ensuring uninterrupted traffic and preventing LDP LSP flapping on the entire network.
Prerequisites
The mpls ldp (system view) command is used globally to enable MPLS LDP.
Follow-up Procedure
Run the graceful-delete timer command to set the delay value after which LDP instructs the upstream device to withdraw labels.