| Parameter | Description | Value |
|---|---|---|
| peer-id | Specified the label switching router (LSR) ID. | - |
| verbose | Displays detailed information about LDP sessions. | - |
| all | Displays information about all LDP sessions. | - |
Usage Scenario
If LDP sessions fail to be established or you want to learn about the establishment of LDP sessions, run the display mpls ldp session command to view information about the LDP sessions.
Prerequisites
MPLS has been enabled globally using the mpls command, and MPLS LDP has been enabled globally using the mpls ldp command in the system view.
Precautions
If you run the display mpls ldp session command without specifying any parameter, information about all LDP sessions is displayed.
# Display information about all LDP sessions.
<sysname> display mpls ldp session
LDP Session(s) in Public Network Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM) A '*' before a session means the session is being deleted. ------------------------------------------------------------------------------ PeerID Status LAM SsnRole SsnAge KASent/Rcv ------------------------------------------------------------------------------ 2.2.2.2:0 Operational DU Passive 0000:01:36 387/386 3.3.3.3:0 Operational DU Passive 0000:01:30 361/361 ------------------------------------------------------------------------------ TOTAL: 2 session(s) Found.
Item |
Description |
|---|---|
SsnAge Unit |
Format of the time when an LDP session was established. |
PeerID |
Peer LDP identifier, in the format of <LSR ID>:<label
space>. The value of a label space can be:
|
Status |
Status of an LDP session:
|
LAM |
Label advertisement mode of an LDP peer:
|
SsnRole |
Role that an LSR plays in an LDP session:
|
SsnAge |
Time elapsed since an LDP session was set up, in DDDD:HH:MM format. |
KASent/Rcv |
Number of Keepalive messages sent and received by an LDP session. |
# Display detailed information about all LDP sessions.
<sysname> display mpls ldp session verbose
LDP Session(s) in Public Network ------------------------------------------------------------------------------ Peer LDP ID : 2.2.2.2:0 Local LDP ID : 1.1.1.1:0 TCP Connection : 1.1.1.1 <- 2.2.2.2 Session State : Operational Session Role : Passive Session FT Flag : Off MD5 Flag : Off Reconnect Timer : --- Recovery Timer : --- Keychain Name : kc1 Negotiated Keepalive Hold Timer : 45 Sec Configured Keepalive Send Timer : 3 Sec Keepalive Message Sent/Rcvd : 438/438 (Message Count) Label Advertisement Mode : Downstream Unsolicited Label Resource Status(Peer/Local) : Available/Available Session Age : 0000:01:49 (DDDD:HH:MM) Session Deletion Status : No Capability: Capability-Announcement : On mLDP P2MP Capability : On mLDP MP2MP Capability : Off mLDP MBB Capability : On Outbound&Inbound Policies Applied : outbound peer all split-horizon Addresses received from peer: (Count: 3) 10.1.1.2 2.2.2.2 10.1.2.1 ------------------------------------------------------------------------------
Item |
Description |
|---|---|
Peer LDP ID |
Peer LDP identifier, in the format of <LSR ID>:<label space>. The label space value can be:
|
Local LDP ID |
Local LDP identifier, in the format of <LSR ID>:<label space>. The label space value can be:
|
TCP Connection |
TCP connection of an LDP session:
|
Session State |
Status of an LDP session:
|
Session Role |
Role that an LSR plays in an LDP session:
|
Session FT Flag |
Negotiated LDP GR capability:
|
MD5 Flag |
Message-digest algorithm 5 (MD5) authentication flag:
|
Reconnect Timer |
Negotiated timeout period of the Reconnect timer. The value of the Reconnect Timer field is not null only when the Session FT Flag field is On. |
Recovery Timer |
Negotiated timeout period of the Recovery timer. The value of the Recovery Timer field is not null only when the Session FT Flag field is On. |
Keychain Name |
Keychain name. |
Negotiated Keepalive Hold Timer |
Negotiated value of the Keepalive timer, which is the smallest value of the Keepalive timers configured on the local and remote LDP peers. |
Configured Keepalive Send Timer |
Timeout period of the configured Keepalive send timer. |
Keepalive Message Sent/Rcvd |
Number of Keepalive messages sent and received by an LDP session. |
Label Advertisement Mode |
Label advertisement mode in an LDP session. The default mode is DU. |
Label Resource Status(Peer/Local) |
Label resource status of the remote and local peers. |
Session Age |
Time elapsed since an LDP session was set up. |
Session Deletion Status |
Deletion status of an LDP session:
|
Capability |
LDP capability. |
Capability-Announcement |
Whether LDP dynamic advertisement is enabled:
|
mLDP P2MP Capability |
Whether multipoint extensions for LDP (mLDP) point-to-multipoint (P2MP) is supported after a session is negotiated:
|
mLDP MP2MP Capability |
Whether multipoint extensions for LDP (mLDP) multipoint-to-multipoint (MP2MP) is supported after a session is negotiated:
|
mLDP MBB Capability |
Whether mLDP make-before-break is supported after a session is negotiated:
|
Outbound&Inbound Policies Applied |
Outbound and inbound policies on the local node. |
Addresses received from peer |
Contents of an Address message sent by an LDP peer. The contents include the LSR ID of the peer and the IP address of the LDP-enabled interface. |