# mpls ldp session holdtime

#### Syntax

mpls ldp session holdtime holdTime

no mpls ldp session holdtime

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Configures the LDP session hold time, the period that an LSR maintains a session without receipt of a message from an LDP peer. Each LSR peer sends the session hold time in its initialization message; peers negotiate to use the minimum of the session hold times proposed by the pair of LSRs. This negotiated session hold time is used by the keepalive timer to maintain the session.

The keepalive timer is reset with the receipt of any session message from the peer. In the absence of other LDP protocol messages are being sent, peers periodically send a keepalive message to maintain the LDP session.

The LDP session is terminated when the timer expires. The no version restores the default value, 180.

#### Options

- holdTime—Number of seconds in the range 15–65535

#### Mode

Global Configuration