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.
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. |
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: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.