< Home

Configuring Slow Peer Detection

Context

An update peer-group may consist of multiple BGP peers. If a network problem (congestion for example) occurs and slows down the speed at which the local device advertises routes to a BGP peer in the update peer-group, the speed at which the local device advertises routes to other BGP peers in the update peer-group is affected. To address this problem, slow peer detection is enabled by default.

When slow peer detection is enabled, the local device identifies the BGP peer to which routes are sent the slowest based on the time taken to send 100 packets to each BGP peer. If this time is greater than the period threshold for slow peer detection plus the average time taken to send 100 packets to BGP peers (excluding the longest and shortest times), the local device considers the peer a slow peer and removes it from the update peer-group. Slow peer detection prevents this slow peer from affecting route advertisement to other peers in the update peer-group. By default, the period threshold for slow peer detection is 300s.

To adjust the period threshold for slow peer detection or disable slow peer detection, run the following steps.

After a slow peer is removed from the update peer-group, the peer relationship between the local device and the slow peer is reestablished.

Procedure

  • Adjust the period threshold for slow peer detection
    1. Run system-view

      The system view is displayed.

    2. Run bgp { as-number-plain | as-number-dot }

      The BGP view is displayed.

    3. Run slow-peer detection threshold threshold-value

      Set a period threshold for slow peer detection.

      By default, the period threshold for slow peer detection is 300s.

      threshold-value specifies a period threshold for slow peer detection. If the time taken to send 100 packets to a BGP peer is X, the configured period is Y, the average time taken to send 100 packets to BGP peers (excluding the longest and shortest times) is Z, and the inequality (X > Y + Z) is met, the local device considers the BGP peer a slow peer and removes it from the update peer-group.

  • Disable slow peer detection
    1. Run system-view

      The system view is displayed.

    2. Run bgp { as-number-plain | as-number-dot }

      The BGP view is displayed.

    3. Run slow-peer detection disable

      The slow peer detection is disabled.

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