< Home

display mpls ldp session

Function

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

Format

display mpls ldp session [ peer-id | [ all ] [ verbose ] ]

Parameters

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.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

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)
 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.
Table 1 Description of the display mpls ldp session command output

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:
  • 0: per-platform label space.

  • 1: per-interface label space.

Status

Status of an LDP session:

  • 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 Recv: 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.

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:

  • Active: an LSR with a larger LSR ID between two LSRs.

  • Passive: an LSR with a smaller LSR ID between two LSRs.

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
 ------------------------------------------------------------------------------
Table 2 Description of the display mpls ldp session verbose command output

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:

  • 0: per-platform label space.

  • 1: per-interface label space.

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:

  • 0: per-platform label space.

  • 1: per-interface label space.

TCP Connection

TCP connection of an LDP session:

  • The LSR with a larger LSR ID value plays an active role in establishing the TCP connection.

  • The LSR with a smaller LSR ID value plays a passive role in establishing the TCP connection.

Session State

Status of an LDP session:

  • 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 Recv: 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.

Session Role

Role that an LSR plays in an LDP session:

  • Active: an LSR with a larger LSR ID between two LSRs.

  • Passive: an LSR with a smaller LSR ID between two LSRs.

Session FT Flag

Negotiated LDP GR capability:

  • On: Negotiated LDP GR capability is enabled.

  • Off: Negotiated LDP GR capability is disabled.

MD5 Flag

MD5 authentication flag:

  • On: MD5 authentication is enabled during the TCP connection establishment.

  • Off: MD5 authentication is disabled during the TCP connection establishment.

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:

  • Peer: single peer authentication

  • Peer-group PeerGroupName: peer-group authentication. PeerGroupName indicates a peer group name.

  • ALl: All authentication

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:
  • Downstream Unsolicited

  • Downstream on Demand

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:
  • Yes: The LDP session is being deleted.
  • No: The LDP session is not being deleted.

Capability

LDP capability.

Capability-Announcement

LDP dynamic capability announcement function:
  • On: LDP dynamic capability announcement is enabled.

  • Off: LDP dynamic capability announcement is disabled.

NOTE:

The switch does not support this parameter.

mLDP P2MP Capability

Whether mLDP P2MP is supported after a session is negotiated:

  • On: mLDP P2MP is supported.

  • Off: mLDP P2MP is not supported.

NOTE:

The switch does not support this parameter.

mLDP MP2MP Capability

Whether mLDP MP2MP is supported after a session is negotiated:

  • On: mLDP MP2MP is supported.

  • Off: mLDP MP2MP is not supported.

NOTE:

The switch does not support this parameter.

mLDP MBB Capability

Whether mLDP make-before-break is supported after a session is negotiated:

  • On: mLDP make-before-break is supported.

  • Off: mLDP make-before-break is not supported.

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.

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