Skip to content
[menu]

FOUNDRYNETNo. 001SEPTEMBER 2026ROUTING

Original page: foundrynet.com/services/documentation/IMR640_spguide/BGP_MPLS_VPN.html (NetIron IMR 640 service provider guide, around 2004)

MPLS VPN: Labels, LSPs, Layer 3 and Layer 2 VPNs

MPLS forwards packets on short labels instead of IP lookups, and MPLS VPNs use those labels to carry many customers over one provider core while keeping their routing tables apart.

On this pageLabels and label-switched pathsLDP, RSVP-TE and static LSPsLayer 3 VPNs: VRFs, route distinguishers and route targetsLayer 2 VPNs: VLL and VPLSWhy providers used it and where it standsFoundry heritage: NetIron IMR 640 and MLXQuestions

01 /Labels and label-switched paths

MPLS inserts a 4-byte shim header between the Layer 2 header and the IP packet: a 20-bit label, 3 bits of traffic class, a bottom-of-stack bit and an 8-bit TTL. A label-switching router forwards by looking up the incoming label, swapping it for the outgoing label and sending the packet out the associated interface. No IP lookup happens in the core. The sequence of swaps from ingress to egress is a label-switched path (LSP). Labels stack: an outer label steers the packet across the core while an inner label tells the egress router which customer it belongs to.

Packet through an MPLS Layer 3 VPNPACKET THROUGH AN MPLS LAYER 3 VPN01CE sends IPpacket02Ingress PE:VRF lookup,push 2 labels03P routersswap outerlabel04Egress PE:pop, VPNlabel picksVRF05CE receivesIP packet
The core sees only the outer transport label. Customer addressing is invisible to P routers.

02 /LDP, RSVP-TE and static LSPs

Production cores typically run LDP for reachability and RSVP-TE for the subset of traffic that needs engineering.
MethodHow labels are assignedStrengthsCosts
LDPEach router advertises a label for every IGP prefix to its neighboursZero-touch, follows the IGPNo traffic engineering; paths are whatever the IGP picks
RSVP-TEIngress signals an explicit or constrained path hop by hopBandwidth reservation, fast reroute, explicit routingPer-LSP state on every router along the path
StaticOperator configures labels on every hopNo protocol, fully predictableManual and brittle; labs and very small cores

Segment routing has since replaced RSVP-TE in many new builds by encoding the path as a label stack at the ingress, removing per-path state from the core; the forwarding plane is unchanged.

03 /Layer 3 VPNs: VRFs, route distinguishers and route targets

RFC 4364 (originally RFC 2547) defines the BGP/MPLS IP VPN. Each provider edge (PE) router holds a VRF (virtual routing and forwarding table) per attached customer, populated from the customer edge (CE) router by static routes, OSPF or eBGP. Two customers may both use 10.0.0.0/8; to keep those prefixes distinct in one BGP table, each is prefixed with a 64-bit route distinguisher (RD), forming a VPN-IPv4 address.

PEs exchange VPN-IPv4 routes over MP-BGP (multiprotocol BGP), attaching a VPN label and one or more route target (RT) extended communities. RTs are the policy knob: a VRF imports routes carrying RTs it is configured to accept and exports its own routes with its configured RTs. The same import and export RT at every site gives a full mesh; asymmetric RTs build hub-and-spoke or extranet topologies. The P routers in the core run only the IGP and LDP or RSVP; they carry no customer routes at all, which is what lets the design scale to thousands of VPNs.

Illustrative NetIron-style VRF and MPLS shapes
vrf CUSTOMER-A
 rd 65000:100
 route-target export 65000:100
 route-target import 65000:100
 address-family ipv4
!
router mpls
 mpls-interface ethernet 1/1
 lsp to-pe2
  to 10.255.0.2
  enable
!
show mpls lsp
show mpls ldp neighbor
show ip route vrf CUSTOMER-A

04 /Layer 2 VPNs: VLL and VPLS

Some customers want Ethernet, not routing. A virtual leased line (VLL, or pseudowire) carries frames from one attachment circuit to one remote circuit over an LSP, point to point; the provider never looks at customer IP. VPLS (virtual private LAN service) extends this to multipoint: PEs form a full mesh of pseudowires per customer and learn MAC addresses across them, so remote sites behave as one VLAN. VPLS scales poorly with MAC count and is being replaced by EVPN, which distributes MAC addresses in BGP instead of learning them by flooding.

05 /Why providers used it and where it stands

Before MPLS, carriers ran separate Frame Relay, ATM and IP networks. MPLS VPNs let one core sell private Layer 3 and Layer 2 services with traffic engineering and QoS, and the enterprise got any-to-any connectivity without managing a mesh of tunnels. Through the 2000s the MPLS Layer 3 VPN became the default enterprise WAN.

SD-WAN has since taken much of that enterprise business: encrypted tunnels over cheap broadband, centrally orchestrated, often cheaper per megabit. MPLS remains in carrier cores, where label forwarding still underpins mobile backhaul, wholesale transport and the underlays beneath the SD-WAN circuits that compete with it. Mixed designs, MPLS for latency-sensitive sites and broadband elsewhere, are the current norm. The core router page covers where the label switching happens.

06 /Foundry heritage: NetIron IMR 640 and MLX

Foundry entered the provider market with NetIron routers. The NetIron IMR 640, around 2003, was a metro and provider-edge router whose service provider guide included a chapter on BGP/MPLS VPNs that operators linked to when comparing configuration models; the accompanying command reference for static LSPs was also frequently cited. The later NetIron XMR and MLX chassis, around 2005 to 2007, carried MPLS Layer 3 VPN, VLL and VPLS into carrier cores and were part of what made the company attractive in the Brocade acquisition.

07 /Questions

Is MPLS encrypted?

No. MPLS VPNs separate traffic by labels and routing tables, not by cryptography. A misconfigured PE can leak routes between VRFs. Customers who need confidentiality run IPsec over the MPLS service, which is standard practice for regulated data.

What is the difference between a route distinguisher and a route target?

The route distinguisher makes overlapping customer prefixes unique inside BGP; it carries no policy. The route target is an extended community that controls which VRFs import a route. Two VPNs can share an RD scheme but never an RT unless they should see each other.

Do P routers need to know customer routes?

No. P routers hold only the provider IGP and label bindings. Customer routes exist only on PEs, in VRFs and MP-BGP. This is the scaling property of RFC 4364: adding a customer adds state at the edge only.

LDP or RSVP-TE?

LDP for simple any-to-any reachability with no traffic engineering. RSVP-TE when you need bandwidth reservation, explicit paths or fast reroute. New cores often use segment routing to get engineering without RSVP state.

Is MPLS obsolete because of SD-WAN?

For the enterprise branch WAN, SD-WAN over broadband has displaced much of it. In carrier and large data centre cores MPLS forwarding is still standard, and the underlay beneath most SD-WAN circuits is an MPLS network.

Sources

  • IETF RFC 3031, Multiprotocol Label Switching Architecture, 2001
  • IETF RFC 4364, BGP/MPLS IP Virtual Private Networks (VPNs), 2006
  • IETF RFC 5036, LDP Specification, 2007; IETF RFC 3209, RSVP-TE, 2001
  • IETF RFC 4762, Virtual Private LAN Service (VPLS) Using LDP Signaling, 2007
  • Foundry Networks, NetIron IMR 640 service provider guide and MPLS command reference (original Foundry documentation, historical, around 2003 to 2005)