Sub topic 5
MPLS: Why Providers Moved Beyond Point-to-Point Circuits
This chapter explains the problems that led providers to adopt Multiprotocol Label Switching (MPLS), what MPLS changes inside the provider network, and what customers gain and give up when they buy an MPLS service. It assumes you know the OSI and TCP/IP models, IPv4 addressing and subnetting, basic routing (static, dynamic, default routes), BGP at a conceptual level, and how to read a router configuration. Later chapters cover label operations and Layer 3 VPNs in detail. Here the goal is the "why" and the working model.
The problem with a mesh of leased lines
A leased line gives you a dedicated circuit between two sites. That works well for two sites. It scales badly for many.
If you want every site to reach every other site directly, you need a full mesh. A full mesh of n sites needs n(n−1)/2 circuits.
| Sites | Circuits for a full mesh |
|---|---|
| 4 | 6 |
| 10 | 45 |
| 50 | 1,225 |
Most organizations avoid this by using hub-and-spoke: every branch connects to headquarters, and branch-to-branch traffic passes through the hub. That costs less, but it adds latency and loads the hub link. The provider has the same problem on a larger scale. Each customer needs its own circuits, and each circuit uses provider capacity that cannot be shared with anyone else, even when it sits idle.
Earlier shared services such as Frame Relay and ATM reduced the circuit count by multiplexing many virtual circuits onto one access link. They still required a virtual circuit between every pair of sites that needed direct communication. Providers also had to run separate networks for each service: one for IP, one for Frame Relay, one for ATM. Each had its own equipment and operations staff.
What MPLS is
MPLS is a forwarding technique used inside a provider network. A router at the edge of the network adds a short fixed-length label to each packet. Routers in the core forward the packet by looking up that label, not the destination IP address. The label sits between the Layer 2 header and the Layer 3 header, so MPLS is often described as a "Layer 2.5" technology.
A key point: MPLS does not replace IP routing. The provider still runs an IGP such as OSPF or IS-IS to learn the topology. MPLS uses that routing information to build label-switched paths (LSPs) across the core. "Multiprotocol" means the label mechanism can carry many payload types, such as IPv4, IPv6, and Ethernet frames.
The word "label" is what lets the provider separate forwarding from addressing. Two customers can use the same private address, such as 10.1.1.0/24, and the provider core never needs to look at those addresses. It only forwards labeled packets between its own routers.
The roles in the provider network
- CE (customer edge): the customer's router that connects to the provider.
- PE (provider edge): the provider's router that faces customers. It adds and removes labels.
- P (provider core): a provider router that only swaps labels. It has no direct connection to customers.
The diagram below shows where labels exist in the path.
What the provider gains
One shared core for many services
Once the core forwards labeled packets, the provider can carry many customers and many service types over the same routers and links. Layer 3 VPNs, Layer 2 services, and plain internet traffic can share the infrastructure. This replaced the multiple parallel networks of the Frame Relay and ATM era.
Any-to-any connectivity without a circuit mesh
Each customer site needs only one access link to a PE. The provider network then reaches every other site of that customer through the shared core. For the customer, a 50-site WAN needs 50 access circuits, not 1,225.
Faster core forwarding and traffic control
Early MPLS marketing stressed lookup speed. Today, hardware performs IP lookups at line rate, so speed alone is not a reason to use MPLS. The lasting benefits are different:
- The core carries no customer routes. P routers need only the provider's internal routes, so the core stays small and stable.
- The provider can send traffic along chosen paths with MPLS traffic engineering, rather than only along the IGP shortest path.
- The provider can apply quality-of-service classes consistently across the core and sell them as service tiers.
What the customer sees
From the customer side, an MPLS Layer 3 VPN service looks like a single routed network. The CE speaks a routing protocol, usually BGP or OSPF, or uses static routes, to the PE. The customer does not run MPLS and usually sees no labels.
Trade-offs
| Aspect | What MPLS service offers | What it costs you |
|---|---|---|
| Connectivity | Any-to-any between sites with one access link each | You depend on one provider's footprint |
| Performance | Provider SLAs for latency, loss, and jitter | SLAs apply only inside the provider network |
| QoS | Several traffic classes honored across the core | Classes are limited and priced per class |
| Security | Traffic is separated from other customers | Traffic is not encrypted by default |
| Cost | No circuit mesh to build | Per-megabit price is usually higher than broadband |
| Agility | Provider manages the core | New sites often take weeks or months to provision |
Common misunderstandings
- MPLS is encrypted. It is not. Customer separation comes from label and VRF isolation, not from cryptography. If you need confidentiality, add IPsec on top.
- MPLS is a circuit. Traffic shares provider capacity with other customers. The SLA and QoS configuration protect your traffic, not a dedicated wire.
- MPLS is faster than the internet. Not inherently. Predictability is the benefit: a provider network under one operator's control usually has more consistent latency and loss than the public internet.
- The customer controls the labels. Labels are local to the provider. The customer can only influence treatment through agreed markings, such as DSCP values the provider maps to a class.
Enabling MPLS in the core
On a Cisco IOS provider router, you enable Cisco Express Forwarding (CEF), choose LDP as the label distribution protocol, and turn on MPLS for each core-facing interface.
ip cef
mpls label protocol ldp
!
interface GigabitEthernet0/1
ip address 10.0.0.1 255.255.255.252
mpls ip
no shutdownNotes on this configuration:
- CEF is required because MPLS uses the CEF forwarding tables to build label entries.
mpls label protocol ldpselects the Label Distribution Protocol, which assigns labels for IGP-learned prefixes and shares them with neighbors.mpls ipon an interface enables label switching on that link. Both ends of a link must enable it, or labeled traffic will not flow.- A /30 is common for point-to-point core links, as in the leased line chapter.
Common errors
- LDP neighbors do not form. Check that the IGP works first, that both sides have
mpls ip, and that the LDP router ID is reachable. LDP builds its sessions using the router ID address, usually a loopback, so that address must be in the IGP. - Labeled traffic is dropped on large packets. Each label adds 4 bytes. With a stack of two labels, 8 bytes are added. If the underlying links use a 1500-byte MTU, full-size packets may exceed it. Providers raise the core MTU to leave room for labels.
- CEF disabled. Without CEF, labels cannot be programmed, and MPLS will not forward.
Where MPLS sits in the WAN design picture
MPLS moved the complexity of a many-site network from the customer's circuit plan into the provider's core. That is why it became the default private WAN for enterprises from the early 2000s. The limits that later drove interest in SD-WAN follow from the same design: each site depends on one provider's reach, bandwidth is expensive, provisioning is slow, and cloud and internet traffic is often backhauled to a central site. Later chapters return to these points.
Exercise
A company has 20 branch offices and wants direct any-to-any connectivity using only leased lines. How many circuits does a full mesh need, and how many access links would it need using an MPLS Layer 3 VPN service? Give one reason why the MPLS service still does not provide encryption.
Show answer
A full mesh needs 20 × 19 / 2 = 190 circuits. An MPLS Layer 3 VPN needs one access link per site, so 20 access links. The MPLS service separates customers by labels and VRFs, which is logical isolation, not cryptography. The packets inside the provider network are not encrypted, so the customer must add IPsec if confidentiality is required.
Exercise
After you enable mpls ip on one end of a core link, labeled traffic still does not cross it. What is the most likely cause, and what else should you check?
Show answer
The other end of the link probably does not have mpls ip enabled, so no LDP session forms and no labels are exchanged. Also check that CEF is enabled, that the IGP advertises the loopback used as the LDP router ID, and that the core MTU leaves room for the label bytes.