Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Control Transport Address Used for Targeted-LDP Session

To establish a TCP session between two devices, each device must learn the other device’s transport address. The transport address is an IP address used to identify the TCP session over which the LDP session operates. Earlier, this transport address could only be the router-ID or an interface address. With the LDP transport-address feature, you can explicitly configure any IP address as the transport address for targeted LDP neighbors for Layer 2 circuit, MPLS, and VPLS adjacencies. This enables you to control the targeted-LDP sessions using transport-address configuration.

Benefits of Controlling Transport Address Used for Targeted-LDP Session

Configuring transport address for establishing targeted-LDP sessions has the following benefits:

  • Flexible interface configurations—Provides the flexibility of configuring multiple IP addresses for one loopback interface without interrupting the creation of LDP session between the targeted-LDP neighbors.

  • Ease of operation—Transport address configured at the interface-level, allows you to use more than one protocol in the IGP backbone for LDP. This enables smooth and easy operations.

Targeted-LDP Transport Address Overview

Prior to Junos OS Release 19.1R1, LDP provided support only for router-ID or the interface address as the transport address on any LDP interface. The adjacencies formed on that interface used one of the IP addresses assigned to the interface or the router-ID. In case of targeted adjacency, the interface is the loopback interface. When multiple loopback addresses were configured on the device, the transport address could not be derived for the interface, and as a result, the LDP session could not be established.

Starting in Junos OS Release 19.1R1, in addition to the default IP addresses used for transport address of targeted-LDP sessions, you can configure any other IP address as the transport address under the session, session-group, and interface configuration statements. The transport address configuration is applicable for configured neighbors only including Layer 2 circuits, MPLS, and VPLS adjacencies. This configuration does not apply to discovered adjacencies (targeted or not).

Transport Address Preference

You can configure transport address for targeted-LDP sessions at the session, session-group, and interface level.

After the transport address is configured, the targeted-LDP session is established based on the transport address preference of LDP.

The order of preference of transport address for targeted neighbor (configured through Layer 2 circuit, MPLS, VPLS, and LDP configuration) is as follows:

  1. Under [edit protocols ldp session] hierarchy.

  2. Under [edit protocols ldp session-group] hierarchy.

  3. Under [edit protocols ldp interfcae lo0] hierarchy.

  4. Under [edit protocols ldp] hierarchy.

  5. Default address.

The order of preference of transport address for the discovered neighbors is as follows:

  1. Under [edit protocols ldp interfcae] hierarchy.

  2. Under [edit protocols ldp] hierarchy.

  3. Default address.

The order of preference of transport address for auto-targeted neighbors where LDP is configured to accept hello packets is as follows:

  1. Under [edit protocols ldp interfcae lo0] hierarchy.

  2. Under [edit protocols ldp] hierarchy.

  3. Default address.

Troubleshooting Transport Address Configuration

You can use the following show command outputs to troubleshoot targeted-LDP sessions:

  • show ldp session

  • show ldp neighbor

    The detail level of output of the show ldp neighbor command displays the transport address sent in the hello messages to the targeted neighbor. If this address is not reachable from the neighbor, the LDP session does not come up.

  • show configuration protocols ldp

You can also enable LDP traceoptions for further troubleshooting.

  • If the configuration is changed from using a transport address that is invalid (non reachable) to transport address that is valid, the following traces can be observed:

  • If the configuration is changed from using a transport address that is valid to transport address that is invalid (non reachable),the following traces can be observed:

In case of faulty configuration, perform the following troubleshooting tasks:

  • Check the address family. The transport address that is configured under the session statement must belong to the same address family as the neighbor or session.

  • The address that is configured as the transport address under a neighbor or session statement must be local to the router for the targeted hello messages to start. You can check if the address is configured. If the address is not configured under any interface, the configuration is rejected.