Technical Documentation

show ldp session

Syntax

show ldp session<brief | detail | extensive><destination><instance instance-name><logical-system (all | logical-system-name)>

Release Information

Command introduced before Junos OS Release 7.4.

Description

Display information about Label Distribution Protocol (LDP) sessions.

Options

none

Display standard information about all LDP sessions for all routing instances.

brief | detail | extensive

(Optional) Display the specified level of output.

destination

(Optional) Restrict LDP session display to the specified address.

instance instance-name

(Optional) Display routing instance information for the specified instance. If instance-name is omitted, information is displayed for the master instance.

logical-system (all | logical-system-name)

(Optional) Perform this operation on all logical systems or on a particular logical system.

Required Privilege Level

view

Related Topics

List of Sample Output

show ldp session extensive

Output Fields

Table 1 describes the output fields for the show ldp session command. Output fields are listed in the approximate order in which they appear.

Table 1: show ldp session Output Fields

Field Name

Field Description

Level of Output

Address

Transport address of the session.

to be provided

State

State of the session: Nonexistent, Connecting, Initialized, OpenRec, OpenSent, Operational, or Closing. The states correspond to the state diagram specified in Internet Draft LDP Specification draft-ietf-mpls-rfc3036bis-01.txt.

to be provided

Connection

TCP connection state: Closed, Opening, or Open.

to be provided

Hold time

Time remaining until the session will be closed, in seconds.

to be provided

Session ID

LDP identifiers of the peers of this session.

to be provided

Next keepalive

Time until next keepalive is sent, in seconds.

detail extensive

Active

Whether the local router is playing the active role in the session and during session establishment.

detail extensive

Maximum PDU

Maximum PDU size for the session.

detail extensive

Hold time

Time remaining until the session will be closed, in seconds. This value corresponds to the one configured using the keepalive-timeout statement configured at the [edit protocols ldp] hierarchy level.

detail extensive

Neighbor count

Number of neighbors that are contributing to the session.

detail extensive

Keepalive interval

Keepalive interval, in seconds.

detail extensive

Connect retry interval

TCP connection retry interval, in seconds.

detail extensive

Local address

Local transport address.

detail extensive

Remote address

Remote transport address.

detail extensive

Up for

Time that this session has been up.

detail extensive

Last down

Time since the session last went down.

detail extensive

Reason

Reason the session went down:

  • Aborted graceful restart
  • Authentication key was changed
  • Bad type length value (TLV)
  • Bad protocol data unit (PDU) packets
  • Command-line interface (CLI) command
  • Connect time expired
  • Connection error
  • Connection reset
  • Error during initialization
  • Hold time expired
  • No adjacency or all adjacencies down
  • Notification received
  • Received notification from peer
  • Unexpected End of File (EOF)
  • Unknown reason

detail extensive

Number of session flaps

Number of times the session changes from up to down.

detail extensive

Restarting

LDP is in the process of gracefully restarting.

detail extensive

restart complete in nnn msec

Amount of time (in milliseconds) remaining until graceful restart is declared complete.

detail extensive

Local

Information about graceful restart for the local end of an LDP session. Graceful restart and helper mode are independent.

  • Restart—Status of the grateful restart feature at the local end of the LDP session: enabled or disabled.
  • Helper mode—Status of the helper mode feature at the local end of the LDP session: enabled or disabled. When this feature is enabled, the local end of the LDP session can help the restarting router with its LDP restart procedures.
  • Reconnect time—Amount of time to wait from when a restart is initiated until the router can exchange LDP messages with its neighbors. The default is 60000 msec and is not configurable. (Reconnect timeout refers to "FT Reconnect timeout" in draft-ietf-mpls-ldp-restart-06, Internet Draft Graceful Restart Mechanism for LDP.)

detail extensive

Remote

Information about graceful restart at the remote end of an LDP session. Graceful restart and helper mode are independent.

  • Restart—Status of the grateful restart feature at the remote end of the LDP session: enabled or disabled.
  • Helper mode—Status of the helper mode feature at the remote end of the LDP session: enabled or disabled. When this feature is enabled, the remote end of the LDP session can help the restarting router with its LDP restart procedures.
  • Reconnect time—Amount of time in milliseconds from when a restart is initiated until the remote router can exchange LDP messages with its neighbors.

detail extensive

Local maximum recovery time

Amount of time during which the restarting node attempts to recover its lost states with help from its neighbors (in milliseconds).

detail extensive

Next-hop addresses received

Next-hop addresses received on the session.

detail extensive

Queue depth

Number of messages that are queued for sending to the peers in the group.

extensive

Message type

Type of message being sent.

  • Total—Messages sent and received during the lifetime of the session.
  • Last 5 seconds—Messages sent and received during the current session.

extensive

Sample Output

show ldp session extensive

user@host> show ldp session extensive
Address: 10.255.70.103, State: Operational, Connection: Open, Hold time: 20
  Session ID: 10.255.71.52:0--10.255.70.103:0
  Next keepalive in 0 seconds
  Active, Maximum PDU: 4096, Hold time: 30, Neighbor count: 1
  Keepalive interval: 10, Connect retry interval: 1
  Local address: 10.255.71.52, Remote address: 10.255.70.103
  Up for 00:01:40
  Last down 00:01:41 ago; Reason: received notification from peer
  Number of session flaps: 3
  Local - Restart: disabled, Helper mode: enabled
  Remote - Restart: disabled, Helper mode: enabled
  Local maximum recovery time: 240000 msec
  Next-hop addresses received:
    so-2/0/0.0
    11.2.3.1
    11.2.4.1
    11.2.5.1
    11.1.2.2
    192.168.70.103
    10.255.70.103
  Queue depth: 0
Message type               Total                     Last 5 seconds
                       Sent      Received          Sent      Received
Initialization            4             4             0             0
Keepalive               114           114             0             0
Notification              0             3             0             0
Address                   4             4             0             0
Address withdraw          0             0             0             0
Label mapping             8             8             0             0
Label request             0             0             0             0
Label withdraw            0             0             0             0
Label release             0             0             0             0
Label abort               0             0             0             0

Published: 2010-07-13

Help
|
My Account
|
Log Out