The spf-schedule-interval command sets an interval for OSPF to calculate routes.
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 1000 ms.
spf-schedule-interval { interval1 | intelligent-timer max-interval start-interval hold-interval | millisecond interval2 }
undo spf-schedule-interval
Parameter | Description | Value |
---|---|---|
interval1 |
Specifies an interval for OSPF to perform the SPF calculation. |
The value is an integer ranging from 1 to 10, in seconds. |
intelligent-timer |
Sets an interval for OSPF SPF calculation through an intelligent timer. |
- |
max-interval |
Specifies a maximum interval for OSPF to perform the SPF calculation. |
The value is an integer ranging from 1 to 120000, in milliseconds. The default value is 10000. |
start-interval |
Specifies the initial interval for OSPF to perform the SPF calculation. |
The value is an integer ranging from 1 to 60000, in milliseconds. The default value is 500. |
hold-interval |
Specifies the Holdtime interval for OSPF to perform the SPF calculation. |
The value is an integer ranging from 1 to 60000, in milliseconds. The default value is 1000. |
millisecond interval2 |
Specifies an interval for OSPF to perform the SPF calculation. |
The value is an integer ranging from 1 to 10000, in milliseconds. |
Usage Scenario
Based on the LSDB, the device that runs OSPF calculates the SPT with itself as the root based on the SPF arithmetic, and determines the next hop to the destination network according to the SPT. When the OSPF LSDB changes, the shortest path needs to be recalculated. Frequent network changes and continual calculation of the shortest path consume many system resources and affect the efficiency of the devices. You can configure an intelligent timer and set a proper interval for the SPF calculation to prevent the excessive consumption of device memory and bandwidth resources.
On a network where the convergence time of routes is required to be shorter, set millisecond as the unit of interval to increase the frequency of calculating routes. This increases route convergence. In other networking environments, the default value is recommended.
Configuration Impact
After this command is configured, the interval for the SPF calculation is as follows: