graceful-restart timer recovery

Function

The graceful-restart timer recovery command sets the value of the LSP Recovery timer.

The undo graceful-restart timer recovery command restores the default LSP Recovery timer value.

The default value of the LSP Recovery timer is 300s.

Format

graceful-restart timer recovery time

undo graceful-restart timer recovery

Parameters

Parameter Description Value
time

Specifies the value of the LSP Recovery timer.

The value is an integer ranging from 3 to 259200, in seconds. The default value (300s) is recommended.

Views

MPLS-LDP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-ldp write

Usage Guidelines

Usage Scenario

After the LDP session is reestablished, the GR helper starts the Recovery timer and waits for the recovery of the LSP.

  • If the Recovery timer times out, the GR helper considers that the GR process is completed on the GR restarter and deletes the unrecovered LSPs.
  • If all the LSPs recover before the Recovery timer times out, the GR helper considers that the GR process is completed on the GR restarter only after the Recovery timer times out.

    When a network with a large number of routes fails, run the graceful-restart timer recovery command to increase the value of the Recovery timer to ensure that all LSPs recover before the timer expires.

    During the LDP GR process, the value of the LSP Recovery timer that takes effect on the local end is negotiated as the smaller one of the values of the LSP Recovery timers configured on both ends of an LDP session.

Prerequisites

MPLS and MPLS LDP have been enabled globally.

LDP GR has been enabled globally.

Implementation Procedure

When the graceful-restart timer recovery command is run, the system displays the following message:

Warning: All the related sessions will be deleted if the operation is performed! Continue? [Y/N]:

To confirm to run the command, enter y.

Configuration Impact

After the graceful-restart timer recovery command is run, the value of the LSP Recovery timer that takes effect on the local end is equal to the smaller one of the values of the LSP Recovery timers configured on both ends of an LDP session.

Precautions

Changing the value of the LSP Recovery timer causes the reestablishment of all the LDP sessions.

Example

# Set the value of the LSP Recovery timer to 45s.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls ldp
[*HUAWEI-mpls-ldp] graceful-restart
[*HUAWEI-mpls-ldp] graceful-restart timer recovery 45
Warning: All the related sessions will be deleted if the operation is performed! Continue? [Y/N]:y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >