Net 7
Net 7
What is MPLS?
Multiprotocol Label Switching (MPLS) is a fast and efficient method of forwarding data in a
network. Instead of using IP addresses to determine where data should go, MPLS assigns a
short label to each packet, making routing much quicker.
o This process is called label switching and acts like a tunnel through the network.
o In contrast, MPLS uses a fixed-length label (20 bits), which routers can process
much faster, leading to high-speed forwarding.
o MPLS sets up a path before sending data, like a train track built in advance.
o Once the path is established, every packet follows the same route using labels.
o This is different from IP routing, where each packet makes its own decision at
every router, leading to possible delays and rerouting.
o Normal IP networks work like regular roads, where every car (packet) makes its
own turn-by-turn decisions based on signs (routing tables).
o There is no predefined route; each packet may take a different path, depending
on traffic and network conditions.
5. But IP datagrams still keep IP addresses
o Even though MPLS uses labels, the original IP address is not lost.
o The IP header remains inside the packet so that when it leaves the MPLS
network, it can continue using normal IP routing if needed.
Traditional IP Routing: You drive on normal roads, stopping at each junction to check a
map and decide the next turn.
MPLS Routing: You take a high-speed train (MPLS tunnel), where the train already
knows the path. You don’t stop at every station to check directions—it’s pre-determined
and faster.
More control over routing (can avoid congestion and optimize traffic).
1. MPLS = Multi-Protocol
MPLS supports multiple network protocols, meaning it can work with IPv4, IPv6,
Ethernet, ATM, and Frame Relay.
Above MPLS: It can carry different types of network traffic (IP, Ethernet, ATM, etc.).
Below MPLS: It can run over different types of physical and link-layer technologies
(Fiber, Ethernet, DSL, etc.).
This makes MPLS adaptable to different network environments.
This means routers do not need to look at the IP address, making forwarding much
faster.
MPLS can work with Ethernet, Frame Relay, ATM, and PPP, making it useful for many
types of networks.
This means a service provider can implement MPLS without changing their existing
infrastructure.
Instead of looking at IP addresses, MPLS assigns a label to each packet and forwards it
based on that label.
o The intermediate routers swap labels (SWAP operation) as the packet moves
through the network.
o The egress router (exit point) removes the label (POP operation) before
delivering the packet.
MPLS does not replace traditional IP routing protocols; it works alongside them.
Uses Interior Gateway Protocols (IGP) like OSPF and IS-IS inside a network.
Uses Exterior Gateway Protocols (EGP) like BGP for connections between networks.
Label Distribution Protocol (LDP) or RSVP-TE is used to distribute labels across routers.
9. MPLS Works Between the Data Link Layer (L2) and Network Layer (L3)
o Layer 2 (Data Link Layer) – Deals with MAC addresses, Ethernet, and switching.
MPLS operates between these two layers, creating a new forwarding method that
combines the speed of switching (L2) with the intelligence of routing (L3).
Traditional IP Routing: A person checks maps at every station to find their way.
MPLS Routing: A person enters a pre-defined tunnel system (MPLS LSP) and follows
labels to the destination without checking at every station.
o The diagram at the top shows how the MPLS header fits between the PPP or
Ethernet header and the IP header in a network packet.
o The MPLS header is highlighted in red, meaning it is inserted between the link-
layer (Ethernet/PPP) and network-layer (IP) headers.
o Traffic Class (TC, 3 bits) → Used for Quality of Service (QoS), prioritizing traffic.
o Bottom of Stack (BoS, 1 bit) → Indicates if this is the last MPLS label in the stack
(1 = last label, 0 = more labels exist).
o Time To Live (TTL, 8 bits) → Limits the packet's lifespan to avoid infinite looping.
o The EtherType value of 0x8847 indicates that the packet contains an MPLS label.
In simple terms, MPLS helps speed up data forwarding in networks by using labels instead of
IP addresses. This allows routers to make quick decisions based on predefined paths, improving
efficiency and reducing congestion.
The slide compares MPLS (Multiprotocol Label Switching) paths versus traditional IP routing
paths. Here’s a breakdown of what it illustrates:
The title highlights the comparison between MPLS and conventional IP routing.
2. Diagram Explanation
The routers are labeled (e.g., R2, R3, R4, R5, R6).
The IP routing path follows a strict route based only on the destination address.
3. Key Text
Though not explicitly stated, MPLS allows flexible routing based on labels instead of just
the destination address.
It can provide traffic engineering benefits, enabling optimized and faster paths.
This slide provides a comparison between MPLS (Multiprotocol Label Switching) paths and
traditional IP routing paths. Here’s what it explains:
2. Network Diagram:
o Shows multiple routers, some labeled as MPLS and IP routers (blue) and others
as IP-only routers (white).
o Unique label assignment: Each link assigns a unique label to the packet.
o Flexible path selection: Routing can be based on both source and destination
addresses, allowing optimized traffic engineering.
o R4 (entry router) can use different MPLS routes to reach A based on parameters
like the source address.
Key Takeaways:
MPLS provides greater flexibility by allowing different paths based on labels, enabling
better traffic engineering and load balancing.
Think of MPLS (Multiprotocol Label Switching) as a shortcut system for internet traffic that
makes data move faster and more efficiently. Let’s break it down:
o Normally, when you send data over the internet, routers read the IP address and
decide where to send the packet next.
o In MPLS, instead of checking the full IP address at every step, routers use a label
(a short number) to quickly determine the next stop.
o As it moves through different routers, the label might change, but each router
only reads the label instead of analyzing the entire IP address, making
forwarding faster.
o MPLS allows routing based on both the source (where it came from) and
destination, which means different users can take different paths to the same
endpoint for better performance.
Real-World Analogy
IP routing: Every time you reach a new station, the conductor checks your full ticket
details and decides your next stop. This takes time.
MPLS routing: At the first station, you receive a color-coded tag (label). At each station,
workers only look at the tag and instantly direct you to the right track without
rechecking everything.
This makes MPLS faster, more efficient, and better for managing network traffic compared to
traditional IP routing.
o They assign labels to incoming IP packets and remove labels for outgoing
packets.
o This is a predefined route that packets follow through the MPLS network.
o It works like a tunnel where packets are forwarded based on labels instead of IP
addresses.
"IP packets entering an MPLS network are divided into multiple classes called
Forwarding Equivalence Class (FEC)"
→ Similar types of traffic (e.g., video calls, emails) can be grouped and treated the same
way to optimize performance.
Simplified Analogy:
LERs are the stations where passengers get their tickets (labels).
LSRs are the stations where trains stop, and station staff direct them based on ticket
info.
LSP is the railway track ensuring trains follow a fixed path to their destination efficiently.
In an MPLS network, a label is added to each packet, and routers forward packets based
on the label instead of checking the IP address repeatedly.
This creates a fixed path through the network, called a Label-Switched Path (LSP)—like
a pre-planned tunnel that guides packets smoothly.
Each connection (link) between routers in the MPLS network has a unique label for
packets traveling through it.
This ensures that every router knows exactly where to send a labeled packet next
without confusion.
Think of it like train stations using unique platform numbers for different routes.
When IP packets enter the MPLS network, they are classified into groups called
Forwarding Equivalence Classes (FECs).
Packets in the same FEC follow the same Label-Switched Path (LSP).
For example, all video call packets might follow one path, while email packets take
another.
Label-Switched Path (LSP) = The railway tracks that direct trains along a fixed route.
Forwarding Equivalence Class (FEC) = Different types of trains (e.g., passenger trains,
freight trains) that follow specific tracks for efficiency.
o When packets enter, LERs assign labels based on destination and traffic class.
o When packets leave, LERs remove labels and forward them as normal IP packets.
o They only look at the label and forward packets without checking the IP address.
Unlike traditional routers, MPLS routers don’t inspect the IP address—they just read the
label and send the packet to the correct path.
MPLS routers don’t use traditional IP routing tables; they have a separate forwarding
table that matches labels to next hops.
MPLS can override this rule and send different types of traffic along different paths.
o Example: Video calls take a high-speed, low-latency path, while emails take a
lower-priority path.
MPLS networks can have pre-planned backup paths in case a link goes down.
This allows quick recovery, making it ideal for real-time applications like VoIP (Voice
over IP), where delays are unacceptable.
It assigns a label to the incoming IP packet and sends it into the MPLS network.
This process is called PUSH (or Impose) Operation because the router adds a label.
🔹 Analogy: Think of it as a toll booth where a car (packet) gets a ticket (label) before entering
the highway (MPLS network).
These are routers inside the MPLS network that handle labeled packets.
They swap the existing label with a new one before forwarding the packet.
🔹 Analogy: Imagine a highway system where your toll ticket is exchanged at each checkpoint,
updating your route.
This is the last router in the MPLS network before the packet leaves.
It removes the MPLS label and forwards the packet as a normal IP packet.
🔹 Analogy: Before exiting the highway, the toll booth takes your ticket (label), and you continue
on normal roads (IP network).
Summary of Operations:
Router Type Action Operation
An Edge Label Switching Router (eLSR) is responsible for handling traffic at the boundary of an
MPLS network. It connects external networks (like the internet or another MPLS domain) to the
MPLS network.
Roles of an eLSR:
o When a packet enters the MPLS domain, the ingress eLSR assigns an MPLS label
to the packet.
o When a packet exits the MPLS domain, the egress eLSR removes the MPLS label
and forwards the packet as a standard IP packet.
✅ Traffic Entry & Exit: Handles traffic moving in and out of an MPLS domain.
✅ Label Assignment: Decides which labels to assign based on Forwarding Equivalence Class
(FEC).
✅ Supports IP Forwarding: Can route packets based on IP addresses when MPLS is not needed.
🔹 Analogy: Think of an eLSR as a border checkpoint where passports (labels) are assigned when
entering and collected when leaving
A Label Switched Path (LSP) is the predefined route that packets take through an MPLS
network. Instead of traditional IP routing (which makes decisions at every hop), MPLS uses
labels to forward packets efficiently along an established path.
1. Packet enters the MPLS network → The Ingress LSR assigns a label and forwards the
packet.
2. Packet moves through Intermediate LSRs → Each Intermediate LSR swaps labels based
on forwarding rules.
3. Packet exits the MPLS network → The Egress LSR removes the label and sends the
packet to its final destination.
🔹 Analogy:
Imagine traveling on a highway with electronic toll collection. Instead of stopping at every toll
booth to pay (like traditional IP routing), you get a tag at the entrance (label) and just pass
through automated toll gates (LSRs) until you exit, where your tag is removed.
Forwarding Equivalence Class (FEC) – Simplified Explanation
A Forwarding Equivalence Class (FEC) is a group of packets that are treated the same way
inside an MPLS network. Instead of making a routing decision for each packet separately, MPLS
groups packets into an FEC, assigns them a label, and forwards them along a predefined path.
✅ Packets in the same FEC follow the same path → No need for per-hop IP lookup.
✅ Same treatment for all packets in the FEC → Same priority, same Quality of Service (QoS),
and same next-hop.
✅ Assigned a single MPLS label → Enables efficient forwarding.
✅ Classification is based on different criteria → Could be based on Source Address (SA),
Destination Address (DA), Protocol (PID), or Port Numbers (SP/DP).
FEC 3 * 130.153.160.0/24 * * *
1️⃣ FEC 1 → Packets from 132.168.33.0/24 going to 130.153.143.0/24, using TCP on port 80
(HTTP traffic), are assigned the same MPLS label.
2️⃣ FEC 2 → Packets from the same 132.168.33.0/24 network going to 130.153.143.0/24, but
using UDP on port 69 (TFTP traffic), get a different label.
3️⃣ FEC 3 → All packets going to 130.153.160.0/24 (regardless of source or protocol) are
grouped into another FEC.
🔹 Analogy:
Think of FECs like boarding groups at an airport ✈️. Passengers with the same ticket class (FEC)
board together and follow the same route (MPLS LSP) to their destination. Instead of checking
every passenger’s ticket at each checkpoint (like IP routing), they’re pre-assigned a group (label)
that determines their path.