timer (PCE client view)

Function

The timer command sets the Hold, Keepalive, Delegate-hold timer, and LSP state timeout timer values.

The undo timer command restores the default timer values.

By default, the Hold timer is 30s, the Keepalive timer is 120s, the Delegate-hold timer is 30s, and the LSP state timeout timer is 30s.

Format

timer { keepalive keepalive-value | hold hold-time | delegate-hold delegate-value | state-timeout state-timeout-value }

undo timer keepalive

undo timer hold

undo timer delegate-hold

undo timer state-timeout

Parameters

Parameter Description Value
keepalive keepalive-value

Specifies the Keepalive timer value.If the value of the Keepalive timer is 0, Keepalive messages are sent only once.

The value is an integer ranging from 0 to 255, in seconds.

hold hold-time

Specifies the Hold timer value.If the value of the hold timer is 0, the PCEP session is not interrupted when the timer expires.

The value is an integer ranging from 0 to 255, in seconds.

delegate-hold delegate-value

Specifies the Delegate-hold timer value.

The value is an integer ranging from 30 to 255, in seconds.

state-timeout state-timeout-value

Specifies the value of the LSP state timeout timer.

The value is an integer ranging from 0 to 1800, in seconds.

Views

PCE client view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
pce write

Usage Guidelines

Usage Scenario

PCEP defines the Hold and Keepalive timers to maintain PCEP sessions. Both ends of a PCEP session start these two timers. Each time the Keepalive timer expires, a local end resends a Keepalive message. If no Keepalive message arrives after the Hold timer expires, a local end considers the PCEP session disconnected.

Hold timer value = 4 x Keepalive timer value

After the Keepalive timer is set, the Hold timer value is automatically updated. However, there are restrictions:

  • The Hold timer value must be greater than or equal to the Keepalive timer value.
  • Although setting a Keepalive timer value changes a Hold timer value, setting a Hold timer value cannot change a Keepalive timer value.
  • If the Keepalive time is set larger than 63, the Hold timer remains 255.

    NOTE:

    Keepalive and Hold timers on both ends of a PCEP session are independent and can be assigned different values. The two ends do not negotiate on a consistent value.

    If a PCEP connection goes Down, a PCE client starts an LSP Delegate-hold timer. Before the LSP Delegate-hold timer expires, the PCE client attempts to restore the PCEP connection to the existing PCE server. After the LSP Delegate-hold timer expires, the PCE client attempts to select another available PCE server to establish a PCEP session. The PCE client also starts an LSP state timeout timer. Before this timeout timer expires, the delegated LSP status remains. After the timeout timer expires, the PCE client is allowed to change the delegated LSP status in the following situations:
  • If the mpls te pce cleanup lsp-state command is run on the PCE client, the client deletes the delegate LSP status and automatically uses a local path calculation function to reestablish an LSP.
  • If the mpls te pce cleanup lsp-state command is not run on the PCE client, the client keeps attempting to establish a session with a PCE server.

Prerequisites

A PCE client has been configured using the pce-client command.

Configuration Impact

The settings of the Keepalive and Hold timers take effect only on new established PCEP sessions.

Example

# Set the Keepalive timer on a PCE client to 33s.
<HUAWEI> system-view
[~HUAWEI] pce-client
[*HUAWEI-pce-client] timer keepalive 33
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >