< Home

timer lsp-generation

Function

The timer lsp-generation command configures an intelligent timer for generating LSPs.

The undo timer lsp-generation command cancels the intelligent timer for generating LSPs.

By default, no intelligent timer is configured to generate LSPs.

Format

timer lsp-generation max-interval [ init-interval [ incr-interval ] ] [ level-1 | level-2 ]

undo timer lsp-generation [ max-interval [ init-interval [ incr-interval ] ] ] [ level-1 | level-2 ]

Parameters

Parameter Description Value

max-interval

Specifies the maximum delay in generating LSPs with the same LSP ID.

The value is an integer that ranges from 1 to 120, in seconds. The default value is 2.

init-interval

Specifies the initial delay in generating LSPs.

The value is an integer that ranges from 1 to 60000, in milliseconds. By default, this delay is not used.

incr-interval

Specifies the incremental delay in generating two LSPs with the same LSP ID.

The value is an integer that ranges from 1 to 60000, in milliseconds. By default, this delay is not used.

level-1

Specifies the delay in generating Level-1 LSPs. If no level is specified, the delay in generating Level-1 and Level-2 LSPs is set.

-

level-2

Specifies the delay in generating Level-2 LSPs. If no level is specified, the delay in generating Level-1 and Level-2 LSPs is set.

-

Views

IS-IS view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On an IS-IS network, if the local routing information changes, a device needs to generate a new LSP to notify this change. If the local routing information changes frequently, a large number of new LSPs are generated, which occupies a lot of system resources and decreases system performance.

To speed up network convergence and prevent the system from being affected, run the timer lsp-generation command to configure an intelligent timer for generating LSPs. This timer can adjust the delay in generating LSPs based on the routing information change frequency. This command can implement different functions when different parameters are specified:
  • When only max-interval is specified, the intelligent timer functions as an ordinary one-time triggering timer.
  • When both init-interval and incr-interval are specified, the delay in generating an LSP for the first time is determined by init-interval, and the delay in generating an LSP with the same LSP ID for the second time is determined by incr-interval. Subsequently, each time routes change, the delay in generating an LSP doubles the last delay until the delay reaches the value specified by max-interval. After the delay remains at the value specified by max-interval for three times or the IS-IS process is restarted, the delay decreases to the value specified by init-interval.
  • When init-interval is specified but incr-interval is not, the delay in generating an LSP for the first time is determined by init-interval, and the delay in generating subsequent LSPs is determined by max-interval. After the delay remains at the value specified by max-interval for three times or the IS-IS process is restarted, the delay decreases to the value specified by init-interval.
  • The initial delay for generating an LSP is init-interval; the delay for generating the LSP with the same LSP ID is incr-interval. From the third time on, the delay for generating the LSP doubles each time until the delay reaches max-interval. After max-interval expires without flapping or the IS-IS process is restarted, the delay decreases to init-interval.

Precautions

If the delay in generating an LSP is too long, a device cannot advertise routing information changes to neighbors in time. This slows down network convergence.

Example

# Set the delay in generating LSPs to 5s.

<HUAWEI> system-view
[HUAWEI] isis
[HUAWEI-isis-1] timer lsp-generation 5

# Set the maximum delay in generating LSPs to 20s, initial delay to 50 ms, and incremental delay to 2000 ms.

<HUAWEI> system-view
[HUAWEI] isis
[HUAWEI-isis-1] timer lsp-generation 20 50 2000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >