Enabling 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, 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.
Procedure
- Run system-view
The system view is displayed.
- Run bgp { as-number-plain | as-number-dot }
The BGP view is displayed.
- (Optional) Enter the corresponding address family view
based on network type to configure BGP devices on networks.
Run ipv4-family unicast
The BGP-IPv4 unicast address family view is displayed.
Run ipv4-family multicast
The BGP-IPv4 multicast address family view is displayed.
Run ipv4-family vpnv4 [ unicast ]
The BGP-VPNv4 address family view is displayed.
Run ipv4-family vpn-instance vpn-instance-name
The BGP-VPN instance IPv4 address family view is displayed.
Run ipv6-family [ unicast ]
The BGP-IPv6 unicast address family view is displayed.
Run ipv6-family vpnv6 [ unicast ]
The BGP-VPNv6 address family view is displayed.
Run ipv6-family vpn-instance vpn-instance-name
The BGP-VPN instance IPv6 address family view is displayed.
Run link-state-family unicast
The BGP-LS address family view is displayed.
If none of the following commands is run, the BGP-IPv4 unicast address family view is displayed by default.
- Run slow-peer detection threshold threshold-value
Slow peer detection is enabled.
By default, slow peer detection is enabled.
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 threshold-value, the local device considers BGP peer 1 as a slow peer and removes it from the update peer-group. If threshold threshold-value is not specified in the command, the default value (300s) is used.
- Run commit
The configuration is committed.