What Is MPLS?
What Is MPLS?
MPLS stands for Multi-protocol Label Switching. MPLS is a packet forwarding technology that
is capable of carrying any L3 protocol and here comes the word multi-protocol. MPLS is capable
of tunneling L3 packets inside the MPLS network using MPLS labels. The MPLS label is
pushed into the packet between the layer two header and the layer three header of the packet at
the ingress router and is used to switch the packets across the network to its destination.
The MPLS label is a fixed 4 byte identifier added to the packet by the ingress router between the
data-link layer (Layer2) and the network layer (Layer3) and is used by all transit routers to
switch the packet to its destination without the need for any routing table (Layer3) look-ups.
MPLS is considered a layer 2.5 technology and the MPLS header is called the shim header.
The diagram below illustrates the structure of the label. One or more labels are pushed on the
packet at the ingress router forming a label stack. The first label is called the top label or the
transport label, other labels are used by different MPLS applications if needed.
Downstream router: This is the router which advertises the prefix. In other words the
router that is the next hop to a specific prefix is the downstream.
Upstream router: This router receives the routing information from its downstream
router.
Label Edge Router (LER): Operates at the edge of the MPLS network (ingress/egress)
and make forwarding decisions based on the IP header information of the packet.
Label Switch router (LSR): the routers in the middle of the MPLS network which
forwards MPLS packets based on label information.
MPLS uses the concept of Forwarding Equivalence Class (FEC). The FEC is of a set of packets
forwarded in the same manner by the label switching routers (LSR). Each router assigns a label
to a FEC and distributes this label to other routers using label distribution protocols forming
label switched paths or LSPs.
When a packet is received by the ingress router it determines the next hop and inserts one or
more labels to the packet . Then the labeled packets are passed to the next-hop router
(downstream). When the packets reach the downstream router, the top most label is examined
and used as a unique identifier to look into the label forwarding table to determine the next hop
and label operation to be performed on each MPLS packet.
Finally the packet reaches the egress router, the label is removed and the packet is forwarded
using an IP lookup or another label based on the MPLS application used.
As you can see the provider routers do not need to examine layer 3 information of the traversed
packets, allowing for protocol independent packet forwarding.
Example:
Please refer to MPLS label operations post for a description of different label operations.
MPLS network requirements
The following elements must exist in the network to be able to run MPLS
1. A layer 3 routing protocol (IS-IS, OSPF, EIGRP or RIP); preferably IS-IS or OSPF for
Traffic engineering.
2. Label distribution protocol (RSVP, LDP or BGP).
3. Network capable of handling MPLS traffic.
MPLS Benefits:
I hope this article was informative and answers your questions about MPLS.
Wael Osama