Examples
spf-schedule-interval
Syntax
View
Parameters
Description
Examples
stub (OSPF area view)
Syntax
# Enable the sending of SNMP traps for all OSPF processes.
<Sysname> system-view
[Sysname] snmp-agent trap enable ospf
spf-schedule-interval maximum-interval [ minimum-interval [ incremental-interval ] ]
undo spf-schedule-interval
OSPF view
maximum-interval: Maximum SPF calculation interval in seconds, in the range 1 to
60.
minimum-interval: Minimum SPF calculation interval in milliseconds, in the range
10 to 60000, which defaults to 0.
incremental-interval: Incremental value for increasing SPF calculation interval in
milliseconds, in the range 10 to 60000, which defaults to 5000.
Use the
spf-schedule-interval
interval.
Use the
undo spf-schedule-interval
The interval defaults to 5 seconds.
Based on its LSDB, an OSPF router calculates the shortest path tree with itself
being the root, and uses it to determine the next hop to a destination. Through
adjusting SPF calculation interval, you can protect bandwidth and router resources
from being over-consumed due to frequent network changes.
With this command configured, when network changes are not frequent, SPF
calculation applies at the minimum-interval. If network changes become frequent,
the SPF calculation interval is incremented by the incremental-interval each time a
calculation happens, up to the maximum-interval.
# Configure the SPF calculation maximum interval as 10 seconds, minimum
interval as 500 milliseconds and incremental interval as 200 milliseconds.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] spf-schedule-interval 10 500 200
stub [ no-summary ]
undo stub
command to set the OSPF SPF calculation
command to restore the default.
1157