slow-peer absolute-detection (BGP-VPN instance IPv4 address family view)

Function

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

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

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

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

By default, the slow peer detection function is enabled.

Format

slow-peer absolute-detection threshold threshold

slow-peer absolute-detection disable

undo slow-peer absolute-detection threshold threshold

undo slow-peer absolute-detection disable

Parameters

Parameter Description Value
threshold threshold

Specifies an absolute threshold for slow peer detection.

The value is an integer ranging from 3 to 3600, in seconds.

Views

BGP-labeled VPN instance IPv4 address family view, BGP-VPN instance IPv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

After slow peer detection is enabled, the local device calculates the difference between the time taken to send Update messages to each BGP peer and the shortest time taken to send Update messages to a BGP peer in the group. If the difference between the time taken to send Update messages to BGP peer 1 and the shortest time is greater than the specified threshold, the local device considers BGP peer 1 as a slow peer and removes it from the update peer-group. The removal of the slow peer prevents this slow peer from affecting update message advertisement to other peers in the group. If Update messages fail to be advertised, the traditional slow peer detection function cannot be used to detect slow peers. To address this problem, configure an absolute threshold for slow peer detection. If the delay in sending Update messages to a peer is greater than the absolute threshold, the peer is considered a slow peer.

To configure an absolute threshold for slow peer detection, run the slow-peer absolute-detection threshold command.

Example

# Set the absolute threshold for slow peer detection to 100s.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv4-family
[*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vpna-af-ipv4] quit
[*HUAWEI-vpn-instance-vpna] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] vpn-instance vpna
[*HUAWEI-bgp-instance-vpna] peer 1.1.1.1 as-number 100
[*HUAWEI-bgp-instance-vpna] quit
[*HUAWEI-bgp] ipv4-family vpn-instance vpna
[*HUAWEI-bgp-vpna] slow-peer absolute-detection threshold 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >