< Home

spf-schedule-interval (OSPFv3)

Function

The spf-schedule-interval command sets the interval for OSPFv3 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 2000 ms.

Format

spf-schedule-interval { delay-interval hold-interval | intelligent-timer max-interval start-interval hold-interval-1 }

undo spf-schedule-interval

Parameters

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 0 to 65535, in seconds.
hold-interval Specifies the hold interval between two consecutive SPF calculations. The value is an integer ranging from 0 to 65535, in seconds.
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.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

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.

Precautions

  • The spf timers delay-interval hold-interval and spf-schedule-interval delay-interval hold-interval commands have the same functions.

  • The configurations of the spf timers delay-interval hold-interval, spf-schedule-interval delay-interval hold-interval, and spf-schedule-interval intelligent-timer max-interval start-interval hold-interval-1 commands will override each other, and only the configuration of the last executed command takes effect.

Configuration Impact

After the spf-schedule-interval intelligent-timer command is configured, the interval for the SPF calculation is as follows:

  1. The initial interval for the SPF calculation is specified by the parameter start-interval.
  2. The interval for the SPF calculation for the nth (n≥2) time is equal to hold-interval-1×2(n-2).
  3. When the interval specified by hold-interval-1×2(n-2) reaches the maximum interval specified by max-interval, OSPFv3 performs SPF calculation at the maximum interval until max-interval expires without flapping or the OSPF process is restarted.

Example

# Set the delay interval at which OSPFv3 route calculation is performed to 5s and the hold interval at which OSPFv3 route calculation is performed to 6s.

<HUAWEI> system-view
[HUAWEI] ospfv3 1
[HUAWEI-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.

<HUAWEI> system-view
[HUAWEI] ospfv3 1
[HUAWEI-ospfv3-1] spf-schedule-interval intelligent-timer 10000 700 4000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >