(Optional) Configuring Timers for a Remote LDP Session

LDP timers include the target Hello hold timer, target Hello send timer, Keepalive hold timer, Keepalive send timer, and Exponential backoff timer.

Context

The following timers are used in a remote LDP session:
  • Target Hello send timer: An LSR sends Hello messages to a peer LSR at an interval specified by the Hello send timer. The LSR can advertise its existence and establish a Hello adjacency with the peer LSR.

  • Target Hello hold timer: LDP peers that establish a Hello adjacency periodically exchange Hello messages indicating that they expect to maintain the adjacency. If the Hello hold timer expires and no Hello messages are received, the Hello adjacency is torn down.

  • Keepalive send timer: LSRs on both ends of an established LDP session start Keepalive send timers and periodically exchange Keepalive messages to maintain the LDP session.

  • Keepalive hold timer: LDP peers start Keepalive hold timers and periodically send LDP PDUs over an LDP session connection to maintain the LDP session. If the Keepalive hold timers expire and no LDP PDUs are received, the connection is closed, and the LDP session is torn down.

  • Exponential backoff timer: An active LSR starts this timer after it fails to process an LDP Initialization message or after it receives the notification that the passive LSR to which the active LSR sends the LDP Initialization message has rejected the parameters carried in the message. The active LSP periodically resends an LDP Initialization message to initiate an LDP session before the Exponential backoff timer expires.

The default timer values are recommended.

Procedure

  • Configure a target Hello send timer.
    1. Run system-view

      The system view is displayed.

    2. Run mpls ldp remote-peer remote-peer-name

      The remote MPLS LDP peer view is displayed.

    3. Run mpls ldp timer hello-send interval

      A target Hello send timer is configured.

      Effective target Hello send timer value = Min {Configured target Hello send timer value, 1/3 of the target Hello hold timer value}

    4. Run commit

      The configuration is committed.

  • Configure a target Hello hold timer.
    1. Run system-view

      The system view is displayed.

    2. Run mpls ldp remote-peer remote-peer-name

      The remote MPLS LDP peer view is displayed.

    3. Run mpls ldp timer hello-hold interval

      A target Hello hold timer is configured.

      If a target Hello hold timer is configured on each end of a remote LDP session, the smaller value takes effect.

    4. Run commit

      The configuration is committed.

  • Configure a Keepalive send timer for a remote LDP session.
    1. Run system-view

      The system view is displayed.

    2. Run mpls ldp remote-peer remote-peer-name

      The remote MPLS LDP peer view is displayed.

    3. Run mpls ldp timer keepalive-send interval

      A Keepalive send timer for a remote LDP session is configured.

      Effective Keepalive send timer value = Min {Configured Keepalive send timer value, 1/3 of the Keepalive hold timer value}

    4. Run commit

      The configuration is committed.

  • Configure a Keepalive hold timer for a remote LDP session.
    1. Run system-view

      The system view is displayed.

    2. Run mpls ldp remote-peer remote-peer-name

      The remote MPLS LDP peer view is displayed.

    3. Run mpls ldp timer keepalive-hold interval

      A Keepalive hold timer for a remote LDP session is configured.

      If a Keepalive hold timer is configured on each end of a remote LDP session, the smaller value takes effect.

    4. Run commit

      The configuration is committed.

  • Configure the global Keepalive hold timer of the remote LDP session.
    1. Run system-view

      The system view is displayed.

    2. Run mpls ldp

      The MPLS-LDP view is displayed.

    3. Run timer auto-remote keepalive-hold interval

      The Keepalive hold timer of the remote LDP session is configured.

      The value of the Keepalive hold timer configured on the local LSR may be different from the value of the timer that takes effect. The smaller value between the timers configured at both ends of a remote LDP session takes effect.

      The value of the timer that takes effect is the smaller one of the values of the two Keepalive hold timers configured on both ends of a remote LDP session. The Keepalive hold timer configured in the remote LDP peer view takes precedence over the global Keepalive hold timer. If the Keepalive hold timer is configured both globally and in the remote LDP peer view, the setting in the MPLS-LDP remote peer view takes effect.

    4. Run commit

      The configuration is committed.

  • Configure an Exponential backoff timer.
    1. Run system-view

      The system view is displayed.

    2. Run mpls

      The MPLS view is displayed.

    3. Run mpls ldp

      The MPLS-LDP view is displayed.

    4. Run backoff timer init max

      An Exponential backoff timer is configured.

    5. Run commit

      The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >