R3303-HP HSR6800 Routers MPLS Configuration Guide
17
Configuring LDP loop detection
LSPs established in an MPLS domain might be looping. The LDP loop detection mechanism can detect
looping LSPs and prevent LDP messages from looping forever.
LDP loop detection can be in either of the following modes:
• Maximum hop count—A label request message or label mapping message carries information
about its hop count, which increments by 1 for each hop. When this value reaches the specified
limit, LDP considers that a loop is present and terminates the establishment of the LSP.
• Path vector—A label request message or label mapping message carries path information in the
form of path vector list. When such a message reaches an LSR, the LSR examines the path vector list
of the message for its MPLS LSR ID. If its MPLS LSR ID is not in the list, the LSR adds its LSR ID to the
path vector list. If it is in the list, the LSR considers that a loop has occurred and terminates the
establishment of the LSP.
The path vector mode also limits the number of hops of an LSP. An LSR also terminates the
establishment of an LSP when the hop count of the path, or the length of the path vector, reaches
the upper limit.
Configuration guidelines
• The loop detection modes configured on two LDP peers must be the same for setting up an LDP
session.
• To implement loop detection in an MPLS domain, you must enable loop detection on every LSR in
the MPLS domain.
• Configure loop detection before enabling LDP capability on any interface.
• All loop detection configurations take effect only on the LSPs established after the configurations.
Changing the loop detection settings does not affect existing LSPs. You can execute the reset mpls
ldp command in user view, so the loop detection settings also take effect on existing LSPs.
• LDP loop detection can result in LSP update, which generates redundant information and consume
many system resources. HP recommends that you configure the routing protocol's loop detection
mechanism.
Configuration procedure
To configure LDP loop detection:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter MPLS LDP view.
mpls ldp N/A
3. Enable loop detection.
loop-detect
By default, loop detection is
disabled.
4. Set the maximum hop count.
hops-count hop-number
Optional.
The default value is 32.
5. Set the maximum path vector
length.
path-vectors pv-number
Optional.
The default value is 32.