display mpls ldp session

Function

The display mpls ldp session command displays information about LDP sessions between LDP peers.

Format

display mpls ldp session

Parameters

None

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
mpls-ldp read

Usage Guidelines

Usage Scenario

After an LDP session is created, the display mpls ldp session command can be run to display LDP session information. The information includes LDP session status and the number of sent or received Keepalive messages.

Example

The actual command output varies according to the device. The command output here is only an example.

# 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) 
 An asterisk (*) before a session means the session is being deleted.
--------------------------------------------------------------------------
 PeerID             Status      LAM  SsnRole  SsnAge       KASent/Rcv
--------------------------------------------------------------------------
 10.2.2.9:0         Operational DU   Passive  0000:07:00   1676/1676
 10.3.3.9:0         Operational DU   Passive  0001:02:53   6435/6433
--------------------------------------------------------------------------
TOTAL: 2 Session(s) Found.
Table 1 Description of the display mpls ldp session command output
Item Description
SsnAge

Times elapsed since an LDP session was established, in the format of DDDD:HH:MM.

PeerID

Peer LDP identifier in the format: <LSR ID>:<label space>. The label space value can be:

  • 0: per-platform label space.
  • Non-0: per-interface label space.
Status

LDP session status:

  • NonExistent: LDP peers at both ends of the LDP session exchange Hello messages to negotiate a TCP connection. After the TCP connection is established, the LDP session enters the Initialized state. The Non-Existent state is the initial state in the LDP session state machine.
  • Initialized: The LDP session is in the initialization state.
  • Open sent: The LSR playing the active role in the LDP session sends an Initialization message to the LSR playing the passive role and waits for a reply during initialization.
  • Open rec: LDP peers at both ends of the LDP session wait for receiving a Keepalive message from each other during initialization. If they receive a Keepalive message from each other, the LDP session enters the Operational state.
  • Operational: An LDP session is established successfully.

If the Initialized state remains, an LDP session has been Down.

LAM

Label advertisement mode:

  • DU: Downstream Unsolicited.
  • DOD: Downstream on Demand.
SsnRole

Role that an LSR plays in an LDP session:

  • Active: An LSR that has a larger transport address between two LSR IDs at both ends of an LDP session.
  • Passive: An LSR that has a smaller transport address between two LSR IDs at both ends of an LDP session.
KASent/Rcv

Number of Keepalive messages sent or received by an LDP session.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >