Skip to content

MPLS Labels, Device Roles & LDP Protocol Explained Simply

MPLS Device Roles in a Core Network

MPLS (Multiprotocol Label Switching) efficiently directs data between nodes, especially within ISP core networks or large geographically dispersed networks. The architecture relies on three distinct router roles:

Customer Edge (CE) Routers

  • Located at the edge of the customer network, typically provided by the customer.
  • Completely unaware of MPLS, only use traditional IP routing.
  • Connect to Provider Edge routers, often via dynamic routing protocols like OSPF, EIGRP, BGP, or even static routing.

Provider Edge (PE) Routers (Official Name: Label Edge Router / LER)

  • Sit at the edge of the MPLS infrastructure, connecting to one or more CE routers.
  • Responsible for:
    • Ingress: Receiving packets from CE and assigning an MPLS label.
    • Egress: Removing the MPLS label and forwarding the plain IP packet to the correct customer.
  • Only PE and P routers have MPLS configuration knowledge.

Provider (P) Routers (Official Name: Label Switch Router / LSR)

  • Core network devices interconnecting PE routers and other P routers.
  • Switch packets based solely on MPLS labels within the core, without inspecting IP headers.

MPLS Encapsulation & Label Switching Process

MPLS inserts a 4-byte header between the Layer 2 frame header and the Layer 3 IP header, making it a Layer 2.5 protocol. The header includes a 20-bit label value used for packet forwarding.

Step-by-step flow:

  1. CE → PE: CE sends an unlabeled IP packet. PE assigns label (e.g., label 27) and forwards it.
  2. PE → P Router: PE looks up its MPLS forwarding table for the destination, finds the outgoing label (e.g., 27), exit interface, and next hop IP.
  3. P Router → Next P Router: P router swaps the label (e.g., 27 → 28) and forwards based on the new label and next hop.
  4. Last P Router: Action is Pop Label, removes the MPLS label entirely before sending to the destination PE.
  5. PE → CE: PE receives a plain IP packet and uses standard IP routing to deliver it to the CE router.

Key Advantage: MPLS forwarding tables are smaller and more efficient to search than hundreds or thousands of IP routing table entries. For a broader explanation of how this differs from standard IP routing fundamentals, see the connected and local routes guide.

Label Distribution Protocol (LDP)

LDP is the protocol that automatically populates MPLS forwarding tables:

  • Creates LDP neighbor adjacencies between all MPLS-enabled interfaces on PE and P routers.
  • Each router locally generates labels for its own prefixes.
  • Advertises these labels to all LDP neighbors.
  • Ensures every MPLS router knows which label to use for which destination and which label to swap or pop next.

No need to manually configure label mappings, LDP handles it dynamically. For a high-level overview of how MPLS compares to other networking concepts, check out this simple guide on what MPLS is. Additionally, to understand the device roles in context with other networking hardware, see the breakdown on routers, switches, and firewalls.

Keep this summary

Save it to LunaNotes and it becomes a real note in your library — editable, searchable, and ready to turn into flashcards or a diagram. Free to start.

Save to LunaNotes

Or summarise for another video.

32K+ people have turned 65K+ videos into notes

“Very useful tool. I'm using it for the last couple weeks and I'm loving it so far. Makes learning on YouTube a great experience.”
Bhai Chrome Web Store review

This summary and transcript were automatically generated using AI with the Free YouTube transcript summary tool by LunaNotes.

Related summaries

LDP in MPLS: Label Distribution Protocol Simply Explained

LDP in MPLS: Label Distribution Protocol Simply Explained

Learn how Label Distribution Protocol (LDP) works in MPLS networks. This comprehensive guide explains label exchange, LIB and LFIB constructs, and penultimate label popping from first principles.

MPLS Explained: What Is Multi-Protocol Label Switching? (Simple Guide)

MPLS Explained: What Is Multi-Protocol Label Switching? (Simple Guide)

MPLS is a high-performance network protocol used in ISP core networks to efficiently direct data between nodes using labels instead of IP lookups. It sits between Layer 2 and Layer 3, encapsulates multiple protocols, and is ideal for interconnecting customer sites securely. This video provides a simple introduction to MPLS, comparing it to traditional IP routing and explaining its key benefits.

MPLS Label Operations: Pushing, Swapping, and Popping Explained

MPLS Label Operations: Pushing, Swapping, and Popping Explained

Learn the fundamentals of MPLS label operations including pushing, swapping, and popping. This video breaks down how LDP labels are added, switched, and removed as packets traverse an MPLS network, with a practical topology example showing label stack management for Layer 3 VPNs.

How BGP Is Used in the MPLS Core: Edge Routing Explained

How BGP Is Used in the MPLS Core: Edge Routing Explained

Learn how BGP operates only on the perimeter of an MPLS network, enabling PE routers to share customer routes while core P routers stay label-switching only. This video breaks down the CE/PE/P router roles, IBGP full-mesh on edges, and why MPLS beats IP routing for scalability.

Basic MPLS Configuration on Cisco IOS: Step-by-Step Guide

Basic MPLS Configuration on Cisco IOS: Step-by-Step Guide

Learn how to configure MPLS on Cisco IOS routers in a typical ISP network. This video walks through the full process: eBGP peerings with customers, OSPF underlay, iBGP full mesh among PEs, and finally enabling MPLS with LDP, followed by verification using LFIB and PHP.

Found this summary useful?

Take it with you. One click puts it in your own LunaNotes library.

Save to LunaNotes

Start taking better notes today with LunaNotes