User Manual

Table Of Contents
80-15
Cancel the session
LDP maintains adjacency by checking Hello messages. It also maintains session by checking Keepalive
messages. If there is no Keepalive message received within a certain period of time, the LDP session will
close the connection.
Each LDP session can include one or more Hello adjacencies. LDP maintains Hello adjacency via periodical
Hello messages. If there is no LDP Discovery Hello message received within a certain period of time, the LDP
session will close the Hello connection. When closing the last Hello adjacency in the LDP session, LDP will
send notification messages, and close the transmission connection.
80.1.5 LDP Loop Detection
Creating LSP in the MPLS domain also needs to prevent loops. The LDP loop detection mechanism can
detect LSP loops and avoid them.
To detect loops in the MPLS domain, all LSRs should be enabling the loop detection. But when establishing
LDP sessions, the configurations of loop detection on the two parties dont have to be the same.
There are two LDP loop detection modes:
The maximum hop count
It is the number of LSR passed by the label messages (including label mapping and label request). When LSR
transmits label information with the hop-count parameter, it will first increase the hop count by 1. When the
hop count reaches the configured maximum value, it means that a loop exists, and the LSP creation will fail. If
the hop count is 0, it means the hop count is unknown. The hop count of label messages is always 0. The
default maximum hop count is 255.
Path Vector
It is used to record the path information in label mapping or label request messages. At each hop, the LSP
checks whether its LSR ID is in the record. The following two conditions mean the existence of a loop and the
failure of the LSP creation.
There is a record of this LSR in the path vector record;
The hop count of the path exceeds the configured maximum value.
If no record of its LSR ID is found, a new one will be added. The maximum value of path vector is the same as
that of the hop count.
80.2 LDP Configuration
LDP Configuration Task Sequence:
1. Enable MPLS Globally (Necessary)
2. Enable LDP (Necessary)
(1) Enable/Disable the LDP module
(2) Enable/Disable label-switching on the interface
(3) Enable/Disable LDP module on the interface