The timer lsp-generation command configures the delay time for generating the LSPs with the same LSP ID.
The undo timer lsp-generation command restores the default configuration.
By default, the maximum delay time for generating LSPs is 2 seconds.
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 ]
| Parameter | Description | Value |
|---|---|---|
max-interval |
Specifies the maximum delay time for generating the LSPs with the same LSP ID. |
The value ranges from 1 to 120 seconds. By default, it is 2 seconds. |
init-interval |
Specifies the initial delay time for generating the LSPs. |
The value ranges from 1 to 60000 milliseconds. By default, this interval is not used. |
incr-interval |
Specifies the ascending delay time between two times of generating the LSPs with the same LSP ID. |
The value ranges from 1 to 60000 milliseconds. By default, this parameter is not used. |
level-1 |
Sets the delay time only of Level-1. |
- |
level-2 |
Sets the delay time only of Level-2. If neither Level-1 nor Level-2 is specified during the configuration, delay times for generating LSPs of Level-1 and Level-2 are set at the same time. |
- |
Usage Scenario
For IS-IS, when the local routing information is changed, some new LSPs (or LSP fragments) need to be generated to advertise the change of routes. If the change occurs frequently, immediate generation of LSPs (or LSP fragments) and a large number of resources on the system will be occupied.
If only max-interval is specified, the intelligent timer functions as an ordinary one-time triggering timer.
If both init-interval and incr-interval are specified, the initial delay time for generating an LSP is determined by init-interval; the delay time between two times of generating LSPs with the same LSP ID is determined by incr-interval. From the third time on, the delay for generating an LSP increases twice every time 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.
If init-interval is specified and incr-interval is not specified, the initial delay time for generating an LSP is determined by init-interval. From the second time on, the delay for generating an LSP 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.
Prerequisites
Before running the timer lsp-generation command, run the isis command to create an IS-IS process.
Configuration Impact
If the delay for generating an LSP is too long, the router cannot advertise its changes to neighbors in a timely manner. This slows down network convergence.
# Set the delay time for generating an LSP to 5 seconds.
<sysname> system-view
[sysname] isis
[sysname-isis-1] timer lsp-generation 5
# Set the maximum delay time for generating an LSP to 20s, the initial delay time to 50 milliseconds, and the ascending delay time to 2000 milliseconds.
<sysname> system-view
[sysname] isis
[sysname-isis-1] timer lsp-generation 20 50 2000