Configuring LDP loop detection

LDP detects and terminate LSP loops in the following ways:

To configure LDP loop detection:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter LDP view or enter LDP-VPN instance view.

  • Enter LDP view:mpls ldp

  • Enter LDP-VPN instance view:

    1. mpls ldp

    2. vpn-instance vpn-instance-name

N/A

3. Enable loop detection.

loop-detect

By default, loop detection is disabled.

After loop detection is enabled, the device uses both the maximum hop count and the path vector methods to detect loops.

4. Specify the maximum hop count.

maxhops hop-number

By default, the maximum hop count is 32.

5. Specify the path vector limit.

pv-limit pv-number

By default, the path vector limit is 32.


[NOTE: ]

NOTE:

The LDP loop detection feature is applicable only in networks comprised of devices that do not support TTL mechanism, such as ATM switches. Do not use LDP loop detection on other networks because it only results in extra LDP overhead.