graceful-restart timer reconnect

Function

The graceful-restart timer reconnect command sets the value of the Reconnect timer of an LDP session.

The undo graceful-restart timer reconnect command restores the default Reconnect timer value.

The default value of the Reconnect timer of an LDP session is 300s.

Format

graceful-restart timer reconnect time

undo graceful-restart timer reconnect

Parameters

Parameter Description Value
time

Specifies the value of the reconnect timer of an LDP session.

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 GR restarter performs the 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 the reestablishment of the LDP session.

  • If the LDP session between the GR helper and the GR restarter has not been established after the Reconnect timer times out, the GR helper immediately deletes the MPLS forwarding entries associated with the GR restarter and exits from the GR help process.
  • If the LDP session between the GR helper and the GR restarter is established before the Reconnect timer times out, the GR helper deletes the timer and starts the Recovery timer.

    During LDP GR, when the reestablishment time of the LDP session is negotiated, the value of the Reconnect timer that takes effect on the local end is the smaller value between the value of the neighbor-liveness timer on the GR helper and the value of the Reconnect timer on the GR restarter.

Prerequisites

MPLS and MPLS LDP have been enabled globally.

LDP GR has been enabled globally.

Implementation Procedure

When the graceful-restart timer reconnect 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 reconnect command is run, the reestablishment time of the LDP session is equal to the smaller value between the value of the neighbor-liveness timer on the GR helper and the value of the Reconnect timer on the GR restarter.

Precautions

Changing the value of the Reconnect timer causes the reestablishment of all the LDP sessions.

Example

# Set the value of the Reconnect timer of an LDP session to 45s.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls ldp
[*HUAWEI-mpls-ldp] graceful-restart
[*HUAWEI-mpls-ldp] graceful-restart timer reconnect 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 >