Networking · Routing › MPLS Fundamentals
LDP
Cheat sheet · https://pcornel.dk/topic.php?topic=2645
Answer
The Label Distribution Protocol (LDP) lets MPLS routers exchange label bindings for the prefixes in their IGP routing table, building label-switched paths that follow the IGP.
Remember
- Labels are locally significant and normally change hop by hop
- LERs impose/remove labels; LSRs swap labels
- LDP commonly follows IGP reachability, so router-ID/transport reachability must work first
- LIB/control-plane bindings and LFIB/data-plane actions are separate
- Penultimate-hop popping is normal; MPLS VPN requires additional VRF/MP-BGP state.
First checks
show mpls ldp neighbor— session state Opershow mpls ldp discovery— hellos on interfacesshow mpls ldp bindings— label bindings learned
Commands
show mpls ldp neighbor- Inspect LDP session state and transport addresses.
Verify in this order
hello discovery → TCP session to transport address → label bindings exchanged
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2645