Configuring Timers for BGP4+ Peers

Configuring timers properly improves network performance. Changing the timeout periods of timers, however, will interrupt peer relationships.

Context

Changing the timeout period of a timer using the peer timer command will interrupt peer relationships between routers. Therefore, exercise caution when changing the timeout period of a timer.

Perform the following steps on a BGP4+ device:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bgp as-number

    The BGP view is displayed.

  3. Run peer { ipv6-address | group-name } timer keepalive keepalive-time hold hold-time [ min-holdtime min-hold-value ]

    The timeout periods of the holdtime timer and Keepalive timer are set on a peer or peer group.

    The value of hold-time must be at least three times that of keepalive-time.

    Setting the Keepalive time to 20s is recommended. If the Keepalive time is smaller than 20s, sessions between peers may be closed.

    When setting the values of keepalive-time and hold-time, note the following points:

    • The values of keepalive-time and hold-time cannot both be set to 0. Otherwise, the BGP timers become invalid, and BGP4+ cannot detect link faults based on the timers.

    • The value of hold-time such as timer keepalive 1 hold 65535 is much greater than that of keepalive-time. If the value of hold-time is too large, BGP4+ cannot detect link faults rapidly.

  4. Run commit

    The configuration is committed.

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