The nexthop recursive-lookup restrain command configures the intervals for increasing, retaining, and clearing the penalty value for BGP recursion suppression in case of next hop flapping.
The undo nexthop recursive-lookup restrain command restores the default configuration.
By default, the intervals for increasing, retaining, and clearing the penalty value for BGP recursion suppression in case of next hop flapping are 60s, 120s, and 600s, respectively.
Parameter | Description | Value |
---|---|---|
hold-interval hold-count-time |
Specifies the interval for retaining the penalty value for recursion suppression. |
The value is an integer ranging from 1 to 65535, in seconds. The default values is recommended. |
clear-interval clear-count-time |
Specifies the interval for clearing the penalty value for recursion suppression. |
The value is an integer ranging from 1 to 65535, in seconds. The default values is recommended. |
suppress-interval add-count-time |
Specifies the interval for increasing the penalty value for recursion suppression. |
The value is an integer ranging from 1 to 65535, in seconds. The default value is recommended. |
Usage Scenario
If a large number of routes recurse to the same next hop that flaps frequently, the system will be busy processing changes of these routes, which consumes excessive system resources and leads to high CPU usage. To address this problem, configure BGP recursion suppression in case of next hop flapping.
After this function is enabled, BGP calculates the penalty value that starts from 0 by comparing the flapping interval with configured intervals if next hop flapping occurs. When the penalty value exceeds 10, BGP suppresses route recursion to the corresponding next hop. For example, if the intervals for increasing, retaining, and clearing the penalty value are T1, T2, and T3, respectively, BGP calculates the penalty value as follows:Precautions
The maximum value of the penalty value is 20.
The relationship of the three timers is T1 <t2 <t3.<HUAWEI> system-view [~HUAWEI] bgp 100 instance a [*HUAWEI-bgp-instance-a] nexthop recursive-lookup restrain suppress-interval 30 hold-interval 60 clear-interval 120