LSP Setup
Before forwarding packets, MPLS must allocate labels to packets and establish an LSP.
Label Distribution Protocols for Dynamic LSPs
Dynamic LSPs are established using label distribution protocols. As the control protocol or signaling protocol for MPLS, a label distribution protocol defines FECs, distributes labels, and establishes and maintains LSPs.
MPLS can use the following protocols for label distribution:
LDP
The Label Distribution Protocol (LDP) is designed for distributing labels. It sets up an LSP hop by hop according to IGP and BGP routing information.
For details about LDP implementation, see Understanding MPLS LDP in the MPLS LDP Configuration.
MP-BGP
MP-BGP is an extension to BGP and allocates labels to MPLS VPN routes and inter-AS VPN routes.
For details about MP-BGP implementation, see BGP Configuration in CloudEngine 8800, 7800, 6800, and 5800 Series Switches Configuration Guide - IP Routing.
Procedure for Establishing Dynamic LSPs
MPLS labels are distributed from downstream LSRs to upstream LSRs. As shown in Figure 1-5, a downstream LSR identifies FECs based on the IP routing table, allocates a label to each FEC, and records the mapping between labels and FECs. The downstream LSR then encapsulates the mapping into a message and sends the message to the upstream LSR. As this process proceeds on all the LSRs, the LSRs create a label forwarding information base (LFIB) and establish an LSP.