display mpls ldp peer

Use display mpls ldp peer to display LDP peer and session information.

Syntax

display mpls ldp peer [ vpn-instance vpn-instance-name ] [ peer-lsr-id ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. This command displays LDP peer and session information for the specified VPN instance. If you do not specify a VPN instance, this command displays LDP peer and session information for the public network.

peer peer-lsr-id: Specifies an LDP peer by its LSR ID. If you do not specify this option, the command displays all LDP peers and related session information.

verbose: Displays detailed LDP peer and session information. If you do not specify this keyword, the command displays brief LDP peer and session information.

Examples

# Display brief information about all LDP peers and LDP sessions for the public network.

<Sysname> display mpls ldp peer
Total number of peers: 1
Peer LDP ID             State         Role     GR   MD5  KA Sent/Rcvd
2.2.2.9:0               Operational   Passive  Off  Off  39/39

Table 17: Command output

Field

Description

Peer LDP ID

LDP identifier of the peer.

State

State of the LDP session between the local LSR and the peer:

  • Non Existent—No TCP connection is established.

  • Initialized—A TCP connection has been established.

  • OpenRecv—LDP has received an acceptable initialization message.

  • OpenSent—LDP has sent an initialization message.

  • Operational—An LDP session has been established.

Role

Role of the local LSR in the session: Active or Passive.

In a session, the LSR with a higher IP address takes the Active role. The Active LSR initiates a TCP connection to the passive LSR.

GR

Whether GR is enabled on the peer:

  • On—Enabled.

  • Off—Disabled.

MD5

Whether MD5 authentication is enabled for the LDP session on the local device:

  • On—Enabled.

  • Off—Disabled.

KA Sent/Rcvd

Number of keepalive messages sent/received.

# Display detailed information about all LDP peers and LDP sessions for the public network.

<Sysname> display mpls ldp peer verbose
 Peer LDP ID      : 100.100.100.20:0
 Local LDP ID     : 100.100.100.17:0
 TCP Connection   : 100.100.100.20:47515 -> 100.100.100.17:646
 Session State    : Operational        Session Role     : Passive
 Session Up Time  : 0000:00:03 (DD:HH:MM)
 Max PDU Length   : 4096 bytes (Local: 4096 bytes, Peer: 4096 bytes)
 Keepalive Time     : 45 sec (Local: 45 sec, Peer: 45 sec)
 Keepalive Interval : 15 sec
 Msgs Sent/Rcvd   : 288/426
 KA Sent/Rcvd     : 13/13
 Label Adv Mode   : DU                 Graceful Restart : On
 Reconnect Time   : 120 sec            Recovery Time    : 360 sec
 Loop Detection   : On                 Path Vector Limit: 32
 Discovery Sources:
   Targeted Hello 100.100.100.17 -> 100.100.100.20 (Active, Passive)
     Hello Hold Time: 45 sec           Hello Interval   : 15000 ms
   Vlan-interface10
     Hello Hold Time: 15 sec           Hello Interval   : 5000 ms
 Label Acceptance Policy : 
   prefix-from-20
 Session Protection      : On
   State            : Ready            Duration         : 120 sec
 Addresses received from peer:
   202.118.224.20   100.100.100.20   11.22.33.44      1.2.3.10
   1.2.3.4

Table 18: Command output

Field

Description

Peer LDP ID

LDP identifier of the peer.

Local LDP ID

LDP identifier of the local LSR.

TCP connection

TCP connection information for the session. It includes the IP addresses and port numbers used by both ends of the TCP connection, and whether MD5 authentication is enabled for the TCP connection. If MD5 authentication is enabled, this field displays MD5 On. If MD5 is not enabled, this field does not display MD5 information.

Session State

State of the LDP session:

  • Non Existent—No TCP connection is established.

  • Initialized—A TCP connection has been established.

  • OpenRecv—LDP has received an acceptable initialization message.

  • OpenSent—LDP has sent an initialization message.

  • Operational—An LDP session has been established.

Session Role

Role the local LSR in the session: Active or Passive.

Session Up time

Duration of the session in Operational state.

Max PDU Length

Maximum PDU length negotiated, in bytes.

Local—Maximum PDU length (in bytes) on the local LSR.

Peer—Maximum PDU length (in bytes) on the peer.

Keepalive Time

Keepalive time negotiated, in seconds.

Local—Locally configured Keepalive holding time in seconds.

Peer—Keepalive holding time (in seconds) configured on the peer.

Keepalive Interval

Keepalive interval in seconds.

Msgs Sent/Rcvd

Total number of LDP messages sent and received.

KA Sent/Rcvd

Total number of Keepalive messages sent and received.

Label Adv Mode

Label advertisement mode negotiated. The device only supports the DU mode.

Graceful Restart

Whether GR is enabled on the peer:

  • On—Enabled.

  • Off—Disabled.

Reconnect Time

Reconnect time negotiated, in seconds.

Recovery Time

Recovery time (in seconds) carried in packets sent by the peer.

Loop Detection

Whether loop detection is enabled on the peer:

  • On—Enabled.

  • Off—Disabled.

Path Vector Limit

Maximum Path Vector length configured on the peer.

Discovery Sources

Discovery source of the LDP peer.

Targeted Hello

LDP peer discovered by the extended discovery mechanism.

  • The address before -> (100.100.100.17 in this example) is the local IP address.

  • The address after -> (100.100.100.20 in this example) is the peer IP address.

  • (Active) indicates that the local LSR is the active end. It actively sends Targeted Hellos to its peer.

  • (Passive) indicates that the local LSR is the passive end. It passively responds to the Targeted Hellos from its peer.

  • (Active, Passive) indicates that the local LSR acts as both the active end and the passive end.

Vlan-interface10

Interface running LDP basic discovery. The device discovers the LDP peer by sending Link Hellos out of the interface.

Hello Hold Time

Hello hold time negotiated, in seconds.

Hello Interval

Current Hello interval, in milliseconds.

Label Acceptance Policy

Label acceptance policy used to filter label mappings received from the peer.

Session Protection

Whether session protection is enabled:

  • On—Enabled.

  • Off—Disabled.

State

Session protection state:

  • Incomplete—Session protection is not ready.

  • Ready—Session protection is ready.

  • Protecting—The session is under protection.

Duration

Local session protection duration, in seconds.

Infinite indicates that session protection takes effect permanently.

Holdup time remaining

Remaining time of the session hold timer, in seconds.

This field is displayed only when the session protection state is Protecting. A value of Infinite indicates that session protection takes effect permanently.

Addresses received from peer

IP addresses received from the peer.