LDP Overview
Label distribution protocol (LDP) is the most commonly used protocol in the MPLS network. It generates and distributes labels and thus helps in MPLS packet switching and forwarding. By using LDP, label-switching routers in an MPLS network can exchange label mapping information to create label-switched paths (LSPs) for switching data packets. RtBrick FullStack (RBFS) supports Dual-stack, which means LDP can exchange FEC-label bindings over either IPv4 or IPv6 networks.
Peer Discovery
LDP sends UDP multicast hello packets to discover its neighbors and establishes neighbor adjacency with other directly connected label switch routers (LSRs). The hello message is periodically sent on LDP-enabled interfaces.
Session Establishment
After peer discovery, “initialization messages” are sent to each other. In these messages, the session Parameters are sent to each other. The LDP sessions are maintained by periodic keep-alive message.
After the LDP neighbors are discovered, the TCP session is established and the LDP FSM is triggered, and LDP session becomes operational. LSRs start exchanging label mapping information with each other.
Dual-stack LDP
By default, RBFS is dual-stack capable, which means it can exchange IPv4/IPv6 FEC bindings over IPv4/IPv6 media (LDP over IPv4/IPv6).
To enable or disable a particular address family in RBFS, use "status <enable|disable>" CLI. For details, see LDP Address Family Configuration.
When LDP is enabled on an interface that supports both IPv4 and IPv6, LDP will start exchanging IPv4 hellos. To send an IPv6 hello, the source IPv6 address must be configured. For details about configuring the source address, see LDP Instance Configuration.
By default, both IPv4 and IPv6 hello will use the same transport preference as IPv6, but this can be changed by using the "connection-preference <ipv4|ipv6>" CLI. For details, see LDP Instance Configuration.
The following points should be noted regarding this functionality:
Source address:
-
The source address specifies the transport address, either IPv4 or IPv6, to be used by the LDP protocol.
-
When the source address is not configured, only an IPv4 transport connection will be established. As a result, only IPv4 FECs will be installed. To install IPv6 FECs, the source IPv6 address needs to be configured.
Connection Preference:
-
When LDP is configured for dual-stack operation, the transport connection preference is IPv6 by default, and LDP will establish TCP connections over IPv6. To establish an IPv4 LDP session, the connection preference must be set to IPv4, and LDP will distribute IPv4 and IPv6 FECs over IPv4 connections.
Targeted Label Distribution Protocol (T-LDP)
RBFS supports Targeted Label Distribution Protocol (T-LDP) that enables a router to establish an LDP session with a router that is not directly connected. T-LDP is commonly used in MPLS networks to facilitate the distribution of labels across various segments of the network.
Label Generation
LDP generates label bindings for the IP addresses of the LDP-enabled loopback interfaces and then advertises them to all neighbors.
Label Management Modes
Label Advertisement Mode
LDP supports the Downstream Unsolicited feature in RBFS, where label bindings are advertised to all upstream neighbors. By default, label advertisement operates in the Downstream Unsolicited mode.
Supported LDP Standards
RFC Number | Description |
---|---|
RFC 5036 |
LDP Specification The following modes are supported by RBFS for the features listed in RFC 5036:
|
RFC 5283 |
LDP Extension for Inter-Area Label Switched Paths (LSPs) |
RFC 5443 |
LDP IGP Synchronization |
RFC 7552 |
IPv6 Dual-Stack |
RFC and draft compliance are partial except as specified. |
Supported LDP Features
The following LDP features are supported in this release of RBFS:
-
Support for the following label management modes.
-
Downstream unsolicited mode in label advertisement
-
Ordered mode in the label distribution control
-
Liberal mode in label retention
-
-
Loop detection
-
Targeted Label Distribution Protocol (T-LDP)
-
Inter-area support
-
Tracking IGP metric
-
IGP LDP synchronization
-
LDP Dual-stack support
-
LDP TCP authentication
-
LDP redistribution
-
LDP policy configuration