(Optional) Configuring LDP Loop Detection
Context
The device does not support LDP loop detection. If the neighbor of a node supports loop detection and requires the same loop detection function on both ends of an LDP session, configure LDP loop detection on the local node to ensure the establishment of an LDP session.
Procedure
- Run system-view
The system view is displayed.
- Run mpls ldp
The MPLS LDP view is displayed.
- Run loop-detect
The device is enabled to advertise the loop detection capability during initialization of LDP sessions.
By default, a device does not advertise loop detection capability during initialization of LDP sessions.
- (Optional) Run path-vectors integer
The maximum value of a path vector is specified.
By default, a maximum of 32 hops of the path vector are used for LDP loop detection.
A path vector is carried in a Mapping message to record the addresses of nodes that an LDP LSP has passed. By setting the maximum hops that a path vector can record, you can adjust the sensitivity of LDP loop detection. If the maximum hops of a path vector is n, the egress LSP triggered by local routes detects a loop after n + 1 hops, and the egress LSP triggered by non-local routes detects a loop after n hops.