timer spf
Use timer spf to set the SPF calculation interval for TRILL.
Use undo timer spf to restore the default.
Syntax
timer spf maximum-interval [ minimum-interval [ incremental-interval ] ]
undo timer spf
Defaults
The maximum SFP calculation interval is 10 seconds, the minimum SPF calculation interval is 10 milliseconds, and the SPF calculation incremental interval is 20 milliseconds.
Views
TRILL view
Predefined user roles
network-admin
mdc-admin
Parameters
maximum-interval: Specifies the maximum SPF calculation interval in the range of 1 to 120 seconds.
minimum-interval: Specifies the minimum SPF calculation interval in the range of 10 to 60000 milliseconds. The value must be a multiple of 10 and less than maximum-interval.
incremental-interval: Specifies the SPF calculation incremental interval in the range of 10 to 60000 milliseconds. The value must be a multiple of 10 and less than maximum-interval.
Usage guidelines
An RB uses the SPF algorithm to calculate a shortest path tree with itself as the root according to the local LSDB, and determines the next hop according to the shortest path tree. By adjusting the SFP calculation interval, you can prevent the bandwidth resources and device resources from being over-consumed by frequent network changes.
When the network changes are not frequent, the SPF calculation interval for continuous calculations is reduced to minimum-interval. When the network changes are frequent, the SPF calculation interval is added by incremental-interval × 2n-2 (where n is the times of continuous SPF calculations triggered) each time, but the SPF calculation interval cannot exceed maximum-interval.
Examples
# Set the maximum SFP calculation interval to 15 seconds, the minimum SPF calculation interval to 100 milliseconds, and the incremental interval to 200 milliseconds for TRILL.
<Sysname> system-view [Sysname] trill [Sysname-trill] timer spf 15 100 200