< Home

display mpls ldp session

Function

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

Format

display mpls ldp session [ verbose | peer-id ]

display mpls ldp session [ all ] [ verbose ]

Parameters

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. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

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

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

  • 1: per-interface label space

Status

Status of an LDP session:

  • Operational: The LDP session is established.

  • Initialized: The LDP session is in the initialization state.

LAM

Label advertisement mode of an LDP peer:
  • DU: It is the default mode.
  • DoD

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.

<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

 ------------------------------------------------------------------------------
Table 2 Description of the display mpls ldp session verbose command output

Item

Description

Peer LDP ID

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

  • 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 label space value can be:

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

  • Operational: The LDP session is established.

  • Initialized: The LDP session is in the initialization state.

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: LDP GR is enabled.

  • Off: LDP GR is disabled.

MD5 Flag

Message-digest algorithm 5 (MD5) authentication flag:

  • On: MD5 authentication is enabled when establishing a TCP connection.

  • Off: MD5 authentication is disabled when establishing a TCP connection.

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

Capability

LDP capability.

Capability-Announcement

Whether LDP dynamic advertisement is enabled:
  • On: LDP dynamic advertisement is enabled.

  • Off: LDP dynamic advertisement is disabled.

mLDP P2MP Capability

Whether multipoint extensions for LDP (mLDP) point-to-multipoint (P2MP) is supported after a session is negotiated:

  • On: mLDP P2MP is supported.

  • Off: mLDP P2MP is not supported.

mLDP MP2MP Capability

Whether multipoint extensions for LDP (mLDP) multipoint-to-multipoint (MP2MP) is supported after a session is negotiated:

  • On: mLDP MP2MP is supported.

  • Off: mLDP MP2MP is not supported.

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.

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 >