Parameter | Description | Value |
---|---|---|
peer-id |
Displays information about LDP sessions of a specified LSR ID. |
The value is in dotted decimal notation. |
all |
Displays information about all LDP sessions. |
- |
verbose |
Displays detailed information about LDP sessions. |
- |
Usage Scenario
After creating an LDP session, run the display mpls ldp session command to verify that the LDP session is created successfully and view information about the LDP session, such as the number of sent or received Keepalive messages.
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.
<HUAWEI> 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 |
---|---|
PeerID |
LDP identifier of the peer in the format of <LSR ID>:<label space>. The value of a label space can be either of the following:
|
Status |
Status of an LDP session:
|
LAM |
Label advertisement mode of an LDP peer. The default mode is DU. To set the label advertisement mode, run the mpls ldp advertisement command. |
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.
<HUAWEI> 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
Authentication applied:---
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 : Off
mLDP MP2MP Capability : Off
mLDP MBB Capability : Off
Outbound&Inbound Policies applied : NULL
Addresses received from peer: (Count: 3)
10.1.1.2 2.2.2.2 10.1.2.1
------------------------------------------------------------------------------
Item |
Description |
---|---|
Peer LDP ID |
LDP identifier of the peer in the format of <LSR ID>:<label space>. The value of a label space can be either of the following:
|
Local LDP ID |
Local LDP identifier in the format of <LSR ID>:<label space>. The value of a label space can be either of the following:
|
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 |
MD5 authentication flag:
|
Reconnect Timer |
Negotiated timeout period of the Reconnect timer. The value of the Recovery 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 |
Referenced keychain authentication name. |
Authentication applied |
Existing authentication mode:
|
Negotiated Keepalive Hold Timer |
Negotiated value of the Keepalive hold timer, which is the smallest value of the Keepalive hold 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:
The default mode is Downstream Unsolicited (DU). To set the label advertisement mode, run the mpls ldp advertisement command. |
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 |
LDP dynamic capability announcement function:
NOTE:
The switch does not support this parameter. |
mLDP P2MP Capability |
Whether mLDP P2MP is supported after a session is negotiated:
NOTE:
The switch does not support this parameter. |
mLDP MP2MP Capability |
Whether mLDP MP2MP is supported after a session is negotiated:
NOTE:
The switch does not support this parameter. |
mLDP MBB Capability |
Whether mLDP make-before-break is supported after a session is negotiated:
NOTE:
The switch does not support this parameter. |
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. |