< Home

isis timer ldp-sync hold-max-cost

Function

The isis timer ldp-sync hold-max-cost command sets the interval during which IS-IS sends LSPs to advertise the maximum metric on the local device.

The undo isis timer ldp-sync hold-max-cost command restores the default setting.

By default, the interval is 10 seconds.

Format

isis timer ldp-sync hold-max-cost { value | infinite }

undo isis timer ldp-sync hold-max-cost

Parameters

Parameter Description Value
value Specifies the interval during which IS-IS sends LSPs to advertise the maximum metric on the local device. The value is an integer ranging from 0 to 65535, in seconds.
infinite Indicates that IS-IS keeps advertising the maximum metric in LSPs on the local device before an LDP session is reestablished. -

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a network with active and standby links, when the IS-IS route of the active link is reachable and an LDP session between two nodes on the active link fails, traffic is transmitted over the IS-IS route of the active link, whereas the label switched path (LSP) on the active link fails. Although LSP traffic attempts to be switched to the backup LSP, the active IS-IS route is selected to direct traffic. As a result, traffic on the primary LSP is lost.

To prevent the traffic forwarding failure, LDP and IS-IS synchronization can be configured. If the LDP session over the active link fails, IS-IS advertises the maximum cost of the active link route. The IS-IS route for the standby link is selected, and the Hold-max-cost timer starts. After the LDP LSP over the standby link is established, and the IS-IS route for the standby link is reachable, traffic switches to the standby link. After the LDP session on the active link recovers or the Hold-max-cost timer expires, IS-IS advertises the actual cost of the active link route. To set the Hold-max-cost timer, run the isis timer ldp-sync hold-max-cost command.

Select one of the following parameters as required:
  • When IS-IS carries LDP services only, configure infinite to keep the IS-IS route and LSP over the same link.

  • If IS-IS carries multiple types of services including LDP services in the networking, configure value to ensure that interruption of an LDP session over the active link does not affect IS-IS routing and other services. The default is 10, in seconds, which is a recommended value.

Prerequisites

The IS-IS process has been started using the isis enable command in the interface view.

Precautions

This command is circular in nature, and the latest configuration overrides the previous configurations.

Example

# Set the interval to 8 seconds, during which IS-IS sends LSPs to advertise the maximum metric on the local device.
<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] isis enable 1
[HUAWEI-Vlanif100] isis timer ldp-sync hold-max-cost 8
# Set the interval to 8 seconds, during which IS-IS sends LSPs to advertise the maximum metric on the local device.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
[HUAWEI-GigabitEthernet0/0/1] isis enable 1
[HUAWEI-GigabitEthernet0/0/1] isis timer ldp-sync hold-max-cost 8
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >