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.
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. |
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.