slow-peer detection (BGP-LS address family view)

Function

The slow-peer detection threshold command configures a threshold for slow peer detection.

The undo slow-peer detection threshold command restores the threshold of slow peer detection.

The slow-peer detection disable command disables slow peer detection.

The undo slow-peer detection disable command enables slow peer detection.

By default, the slow peer detection function is enabled.

Format

slow-peer detection threshold threshold-value

slow-peer detection disable

undo slow-peer detection [ threshold threshold-value ]

undo slow-peer detection disable

Parameters

Parameter Description Value
threshold threshold-value

Specifies a slow peer detection threshold. If the difference between the time taken to send packets to BGP peer 1 and the shortest time taken to send packets to BGP peer 2 is greater than the threshold, BGP peer 1 is considered as a slow peer.

The value is an integer ranging from 120 to 3600, in seconds. The default value is 300.

Views

BGP-LS address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

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, run the slow-peer detection command to enable slow peer detection.

After slow peer detection is enabled, the local device calculates the difference between the time taken to send packets to each BGP peer and the shortest time taken to send packets to a BGP peer in the group. If the difference between the time taken to send packets to BGP peer 1 and the shortest time is greater than the threshold, the local device considers BGP peer 1 as a slow peer and removes it from the update peer-group, which prevents this slow peer from affecting route advertisement to other peers in the group.

Example

# Set the slow peer detection threshold.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] link-state-family unicast
[*HUAWEI-bgp-af-ls] slow-peer detection threshold 600
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic