spf timers

Function

The spf timers command uses a common Shortest Path First (SPT) timer to calculate the interval at which OSPFv3 routes are calculated.

The undo spf timers command restores the default setting.

By default, delay-interval is 5 seconds, hold-interval is 10 seconds.

Format

spf timers delay-interval hold-interval

undo spf timers

Parameters

Parameter Description Value
delay-interval

Specifies the interval between the network change detection and the SPF calculation.

The value is an integer ranging from 0 to 65535 seconds. The default value is 5 seconds.

hold-interval

Specifies the holding interval between two consecutive SPF calculations.

The value is an integer ranging from 0 to 65535 seconds. The default value is 10 seconds.

Views

OSPFv3 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

According to the local LSDB, the Router that runs OSPFv3 can calculate an SPT with itself as the root and determines the next hop to the destination network according to the SPT. To use a common Shortest Path First (SPT) timer to calculate the interval at which OSPFv3 routes are calculated, run the spf timers command. Adjusting the SPF calculation interval can avoid the exhaustion of bandwidth and router sources caused by frequent change of the network.

NOTE:

A common SPF timer and an intelligent SPF timer are mutually exclusive.

Example

# Set both the OSPFv3 route calculation interval and the hold interval to 6 seconds.
<HUAWEI> system-view
[~HUAWEI] ospfv3 1
[*HUAWEI-ospfv3-1] spf timers 6 6
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >