Setting the SPF Calculation Interval

To improve the fault location efficiency on an IS-IS network and prevent SPF calculation from consuming excessive system resources, set the SPF calculation interval to a proper value.

Context

A network change always triggers IS-IS to perform SPF calculation. Frequent SPF calculation will consume excessive CPU resources, affecting services.

To solve this problem, configure an intelligent timer to control the SPF calculation interval. For example, to speed up IS-IS route convergence, set the interval for SPF calculation to a small value, and set the interval to a large value after the IS-IS network becomes stable.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run isis [ process-id ]

    The IS-IS view is displayed.

  3. Run timer spf max-interval [ init-interval [ incr-interval ] ]

    The SPF intelligent timer is configured.

    The delay for SPF calculation is described as follows:
    • The delay for the first SPF calculation is init-interval; the delay for the second SPF calculation is incr-interval. From the third time on, the delay for SPF calculation doubles each time until the delay reaches max-interval.If network flapping persists within the max-interval period, max-interval is used as the delay for SPF calculation. If network flapping does not occur within the max-interval period or if the IS-IS process is restarted, init-interval is used as the delay for SPF calculation.
    • If incr-interval is not specified, the delay for SPF calculation for the first time is init-interval. From the second time on, the delay is max-interval. If the local routing information keeps being updated within the max-interval period, the delay remains at max-interval until the time the local routing information is not updated within the max-interval period or the IS-IS process is restarted. Then the delay decreases to init-interval.
    • When only max-interval is specified, the intelligent timer functions as an ordinary one-time triggering timer.

  4. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >