Examples
# Enable the sending of SNMP traps for OSPF process 1.
<Sysname> system-view
[Sysname] snmp-agent trap enable ospf 1
spf-schedule-interval
Syntax
spf-schedule-interval
maximum-interval
[
minimum-interval
[
incremental-interval
] ]
undo spf-schedule-interval
View
OSPF view
Default level
2: System level
Parameters
maximum-interval
: Maximum OSPF route calculation interval in seconds, in the range of 1 to 60.
minimum-interval
: Minimum OSPF route calculation interval in milliseconds, in the range of 10 to
60000, which defaults to 0.
incremental-interval
: Incremental value in milliseconds, in the range of 10 to 60000, which defaults to
5000.
Description
Use
spf-schedule-interval
to set the OSPF SPF calculation interval.
Use
undo spf-schedule-interval
to restore the default.
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 the 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
.
Examples
# 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 (OSPF area view)
Syntax
stub
[
default-route-advertise-always
|
no-summary
] *
undo stub
121