The spf-schedule-interval command sets the interval for OSPFv3 to calculate routes by an intelligent SPF timer.
The undo spf-schedule-interval command restores the default setting.
By default, the intelligent timer is enabled. The interval for the SPF calculation is expressed in milliseconds. The maximum interval for the SPF calculation is 10000 ms, the initial interval is 500 ms, and the Holdtime interval is 2000 ms.
spf-schedule-interval { delay-interval hold-interval | intelligent-timer max-interval start-interval hold-interval-1 }
undo spf-schedule-interval
| Parameter | Description | Value |
|---|---|---|
| delay-interval | Specifies the delay from the time when OSPFv3 receives a route change to the time when the SPF calculation is performed. | The value is an integer ranging from 01 to 65535, in seconds. The default value is 5. |
| hold-interval | Specifies the holding interval between two consecutive SPF calculations. | The value is an integer ranging from 0 to 65535, in seconds. The default value is 10. |
| intelligent-timer | Specifies the SPF calculation interval set through an intelligent timer. | - |
| max-interval | Specifies the maximum interval for performing the SPF calculation. | The value is an integer ranging from 1 to 20000, in milliseconds. The default value is 10000. |
| start-interval | Specifies the initial interval for performing the OSPFv3 SPF calculation. | The value is an integer ranging from 1 to 1000, in milliseconds. The default value is 500. |
| hold-interval-1 | Specifies the hold interval for performing the OSPFv3 SPF calculation. | The value is an integer ranging from 1 to 5000, in milliseconds. The default value is 2000. |
Based on the local LSDB, a device that runs OSPFv3 uses the SPF algorithm to calculate the shortest path tree with itself as the root, and determines the next hop to the destination network based on the shortest path tree. Adjusting the interval at which the SPF calculation is performed can prevent too many bandwidth resources and device resources from being consumed due to frequent network changes.
Configuration Impact
After this command is configured, the interval for the SPF calculation is as follows:
# Set the interval at which OSPFv3 route calculation is performed to 5s and the hold interval at which OSPFv3 route calculation is performed to 6s.
<sysname> system-view [sysname] ospfv3 1 [sysname-ospfv3-1] spf-schedule-interval 5 6
# Set the maximum interval for performing the SPF calculation to 10000 ms, the initial interval to 700 ms, and the hold interval to 4000 ms.
<sysname> system-view [sysname] ospfv3 1 [sysname-ospfv3-1] spf-schedule-interval intelligent-timer 10000 700 4000