What is LDP?

What is LDP, how LDP works

LDP (Label Distribution Protocol) is one of the two label exchange protocols of MPLS. The other is RSVP (Resource Reservation Protocol). And there is also one more, Cisco specific protocol, TDP (Tag Distribution protocol). In this article, we will talk abbout the LDP. And the examples will be also for Alcatel-Lucent Service Routers (7750, 7450 etc.).

 

There are 3 types LDPs. These are:

 

transport tunnel and service tunnel, ldp and tldp
Transport Tunnel and Service Tunnel, LDP and TLDP
 

Key Point: LDP (Label Distribution Protocol) is used in MPLS networks to automatically distribute labels between routers for forwarding decisions.
Key Point: LDP creates Label Switched Paths (LSPs) by exchanging label mapping information between adjacent MPLS routers.

 

Link LDP is used to establish MPLS Transport Tunnels. But, TLDP is used for MPLS Service Tunnels. Lets explain it more detailly.

 

Think about MPLS VPNs. For MPLS we need to establish an MPLS Transport Tunnel through the core network (P routers) between PE routers. This is established via Label Distribution Protocol. Inside this MPLS Transport Tunnel, we carry specific customers traffic. In Alcatel-Lucent terminalogy, this is called different customer services. So, this different customers’ traffic is carried in different MPLS Service Tunnels in Transport Tunnels. And these MPLS Service Tunnels are established via TLDP, between PE routers, for VPLS and VPWS services(L2 VPN Services). For VPRN (L3 VPN Service), MP-BGP is used instead of TLDP. For this lesson also check Tunnel Structure article.

 

Contraint-based Routing LDP (CR-LDP) is the extension of LDP that will provide traffic engineering mechanism to Label Distribution Protocol. As you know pure LDP has no traffic engineering mechanism.

Key Point: LDP is the default label distribution protocol in MPLS networks when no traffic engineering (like RSVP-TE or CR-LDP) is configured.

 


Label Distribution Protocol: Link LDP

For Link LDP, all the directly connected neighbours need to establish LDP session each other. This must be a full mesh topology. Firstly LDP Adjacency must be done, then the LSP Session must be established. By doing this, the label distribution can be done for all the routers.

 

What is LDP, how LDP works

LDP Operations – How LDP Works

 

To create and maintain LDP there are 4 processes. These are:

  1. Peer Discovery,
  2. Session Establishment,
  3. Label Management (Distribute label management)
  4. Notification ( Alerting LDP peering routers about errors)

LDP session establishment, LDP messages
LDP Session Establishment and LDP Messages
 

Warning: If LDP is not enabled on all MPLS interfaces, label switching will not work correctly and traffic may fall back to normal IP routing,

 


Peer Discovery

The Peer Discovery is the first process and it is done via Hello Messages. We can call this process also LDP Adjacency. Hello messages are sent each other with the peer parameters.

 

Hello Messages use UDP port 646. Session establishment, Label Management and Notification use TCP port 646. Hello messages send every 5 seconds by default. This can be changed. Even the configured Hello time values are different, LDP neighbour discovery is done. The lower Hello value is used.

Key Point: LDP uses UDP for discovery (port 646) and TCP for session establishment between MPLS neighbors.

After the Hellos are sent each other, the LDP adjacency is established.

 


LDP Session Establishment

After LSP adjacency, Init messages are sent each other. This messages use TCP 646 port. In this messages, the Session Parameters are sent. Then Keepalive Messages are sent each other and the LSP Session is established. Keepalive Messages are still sent after the LDP Session Establishment.

 

There are 4 categories of LDP messages :

  • Discovery messages (periodically announced and maintain the precence of LDP router)
  • Session messages (establish, maintain and terminate sessions)
  • Advertisement messages (create,change and delete label mappings for FECs)
  • Notification messages (sent for errors)

 

For Label Distribution Protocol, firstly a routing protocol configuration must be done between the peers or a static configuration must be used. Basically the points must be reach eachother. This is generally done by a routing protocol(IGP).

Key Point: LDP operates by using the IGP routing table (OSPF or IS-IS) to determine the best path for label switching.

 

Label Distribution Protocol relies on routing protocol (IGP). This means that it is dependant to routing protocol (IGP). It sends the label according to choose of routing protocol. If a problem occurs because of routing protocol, the network needs to be wait for the convergence of IGP. LDP is easy to configure bu IGP depandancy is the weakness of this protocol.

 

Warning: LDP sessions will fail if there is no IP reachability between MPLS neighbors. Always ensure that IGP (OSPF or IS-IS) is properly configured before enabling LDP.

 

Quick Summary – LDP (Label Distribution Protocol)
• Purpose: MPLS label distribution for best-path routing
• Type: Hop-by-hop label signaling protocol
• Label Binding: Unsolicited downstream (default behavior)
• Path Control: No traffic engineering support
• Routing Dependency: Uses IGP (OSPF / IS-IS)
• LSP Type: Automatic LSP creation
• Resource Reservation: Not supported
• Complexity: Simple and widely used
• Use Case: Basic MPLS backbone forwarding
• Operation: Label swap based forwarding

 


Other Basic MPLS Lessons:

 

Lesson tags: mpls, ldp, label distribution
Back to: Nokia MPLS Course > Label Distribution Protocol (LDP)

Leave a Reply

Your email address will not be published. Required fields are marked *