set protocols mpls ldp neighbor session-holdtime
The set protocols mpls ldp neighbor session-holdtime  command configures the hold time period for keepalive. After this time of non response, the LDP established session will be considered as set to down.
The delete protocols mpls ldp neighbor session-holdtime command deletes the configuration.
Command Syntax
set protocols mpls ldp neighbor <ip> session-holdtime<holdtime>
delete protocols mpls ldp neighbor <ip> session-holdtime
Parameter
Parameter | Description |
neighbor <ip> | Specifies the IPv4/IPv6 address of a LDP peer. |
session-holdtime <holdtime> | Specifies the hold time for keepalive. That value is an integer which can be configured between 15 and 65535 seconds. The default session hold time is 180 seconds. |
Usage Guidelines
The hold time is essential in maintaining stable LDP sessions. If the router does not receive any LDP hello messages from the neighbor within the hold time, it will consider the session to be down and act accordingly.
Setting an appropriate hold time allows for timely detection of failures. If a neighbor becomes unreachable or there's a network issue, the configured hold time determines the timeout period after which the router will declare the neighbor unreachable.
Configure the hold time carefully. A very short hold time might lead to frequent session resets due to transient network issues. A very long hold time might delay the detection and recovery from genuine network issues.
Different networks and environments may have different requirements for session stability and failure recovery. Configuring the session hold time allows network administrators to tailor the behavior of LDP sessions to fit specific needs.
NOTE:
For the session-holdtime configuration, the actual effective timer value equals the smaller of the timers configured on both ends of the LDP peers.
Example
• Configure the hold time period for keepalive.
admin@XorPlus# set protocols mpls ldp neighbor 2.2.2.2 session-holdtime 210 admin@XorPlus# commit
Copyright © 2024 Pica8 Inc. All Rights Reserved.