timer spf

Use timer spf to set the SPF calculation timer parameters for TRILL.

Use undo timer spf to restore the default.

Syntax

timer spf maximum-interval [ minimum-interval [ incremental-interval ] ]

undo timer spf

Default

The maximum SPF calculation interval is 10 seconds. The minimum SPF calculation interval is 10 milliseconds. 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 smaller than the maximum SPF calculation 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 smaller than the maximum SPF calculation interval.

Usage guidelines

The RB uses the SPF algorithm to calculate a shortest path tree with itself as the root based on the local LSDB. The RB determines the next hop according to the shortest path tree.

By adjusting the SPF calculation timer parameters, you can prevent frequent network changes from consuming excessive bandwidth and device resources.

When the network is stable, the SPF calculation interval for continuous calculations is reduced to the minimum interval. When the network is unstable, the SPF calculation interval is added by incremental-interval × 2n-2 (n is the number of continuous SPF calculation times) for each SPF calculation until the maximum interval is reached.

Examples

# Set the maximum SPF calculation interval to 15 seconds, the minimum interval to 100 milliseconds, and the incremental interval to 200 milliseconds.

<Sysname> system-view
[Sysname] trill
[Sysname-trill] timer spf 15 100 200