Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Label
Distribution Protocol (LDP) is a protocol in which two Label Switch
Routers (LSR) exchange label mapping information. The two LSRs are
called LDP peers and the exchange of information is bi-directional. LDP
is used to build and maintain LSP databases that are used to forward
traffic through Multiprotocol Label Switching (MPLS) networks. LDP can
be used to distribute the inner label (VC/VPN/service label) and outer
label (path label) in MPLS. For inner label distribution, targeted LDP
(tLDP) is used. LDP and tLDP discovery runs on UDP port 646 and the
session is built on TCP port 646. During the discovery phase hello
packets are sent on UDP port 646 to the 'all routers on this subnet'
group multicast address (224.0.0.2). However, tLDP unicasts the hello
packets to the targeted neighbor's address.