Multi-Protocol Label Switch (MPLS) : Overview and Short Tutorial
Multi-Protocol Label Switch (MPLS) : Overview and Short Tutorial
Multi-Protocol Label Switch (MPLS) : Overview and Short Tutorial
(MPLS)
Label Switch Paths (LSPs) are established by network operators for a variety of
purposes, such as to guarantee a certain level of performance, to route around
network congestion, or to create IP tunnels for network-based virtual private
networks. In many ways, LSPs are no different than circuit-switched paths in ATM or
Frame Relay networks, except that they are not dependent on a particular Layer 2
technology.
An LSP can be established that crosses multiple Layer 2 transports such as ATM,
Frame Relay or Ethernet. Thus, one of the true promises of MPLS is the ability to
create end-to-end circuits, with specific performance characteristics, across any type of
transport medium, eliminating the need for overlay networks or Layer 2 only control
mechanisms.”
What is MPLS?
OK now in plain English now please?
Packets enter MPLS Network at a “Label Edge
Router” (LER)
LER Affix a label to packet and forwards it to the
MPLS network
Label switches in the network at each hop makes
forwarding decision solely based on label. That
decision is made based on a pre-established
“Label Switch Path” (LSP).
Labels can be integrated with existing L2 info such
as DLCI or ATM VCs.
MPLS Motivation
Original drivers towards label
switching:
Designed to make routers faster
ATM switches were faster than routers
Fixed length label lookup faster than longest match used
by IP routing
Allow a device to do the same job as a router with
performance of ATM switch
Enabled IP + ATM integration
Mapping of IP to ATM had become very complex, hence
simplify by replacing ATM signalling protocols with IP
control protocols
MPLS Motivation
VPNs - using MPLS, service providers can create IP tunnels throughout their
network, without the need for encryption or end-user applications
Layer 2 Transport - New standards being defined by the IETF's PWE3 and
PPVPN working groups allow service providers to carry Layer 2 services
including Ethernet, Frame Relay and ATM over an IP/MPLS core
Applications
TCP UDP
IP
MPLS MPS
PPP FR ATM Ethernet DWDM
Physical
What is it?
Goal: sending a packet from A to B
We can do it in a broadcast way.
We can use source routing where the source
determines the path.
How do we do it on the Internet today?
Hop-by-hop routing: continue asking who is
closer to B at every stop (hop).
Using Label on the network
(This is not new!)
ATM: VPI/VCI
Frame Relay: DLCI
X.25: LCI (logical Channel Identifier)
TDM: the time slot (Circuit Identification
Code)
Ethernet switching: ???
Q: do you see any commonality of these labels?
Label Substitution (swapping)
Label-A1 Label-B1
Label-A2 Label-B2
Label-A3 Label-B3
Label-A4 Label-B4
MPLS
IP Label Label IP
Routing Switching Switching Routing
MPLS Operation
R1 --- E0 172.16.1.0
S1 6
R2 6 S0 172.16.1.0
S2 11
R3 11 S0 172.16.1.0
S3 7
R4 7 S1 172.26.1.0
Q: create LFIB for R4 => R3 => R2 => R1
E0 --
MPLS process
Label Switch Path
Routing Protocol
L2 Label IP Datagram
Header Header
MPLS Encapsulation is specified over various media
types. Labels may use existing format (e.g., VPI/VCI)
or use a new shim label format.
Shim Header
The Label (Shim Header) is represented as a
sequence of Label Stack Entry
Each Label Stack Entry is 4 bytes (32 bits)
20 Bits is reserved for the Label Identifier (also named
Label)
Label Exp S TTL
(20 bits) (3 bits) (1 bit) (8bits)
Traffic Engineering
Virtual Private Network
Quality of Service (QoS)
Traffic Engineering
Traffic engineering allows a network administrator to make the path
deterministic and bypass the normal routed hop-by-hop paths. An
administrator may elect to explicitly define the path between stations to
ensure QoS or have the traffic follow a specified path to reduce traffic
loading across certain hops.
The network administrator can reduce congestion by forcing the frame to
travel around the overloaded segments. Traffic engineering, then, enables
an administrator to define a policy for forwarding frames rather than
depending upon dynamic routing protocols.
Traffic engineering is similar to source-routing in that an explicit path is
defined for the frame to travel. However, unlike source-routing, the hop-by-
hop definition is not carried with every frame. Rather, the hops are
configured in the LSRs ahead of time along with the appropriate label
values.
MPLS – Traffic Engineering
Overload !!
LER 1 LER 4 IP
IP Overload !!
IP L
IP L
Forward to IP L
LSR 2
LSR 3
LSR 4 LSR 2 LSR 3
LSR X
VPN_B VPN_A
10.2.0.0 10.1.0.0
VPN_A
11.6.0.0 VPN_B
10.3.0.0
VPN_B
10.1.0.0
E1 E1
E3 E3
E1 E2 E2
E2
192.168.3.0 -- E1 10 E3 10 E1 30 E2 30 E3 -- E1 192.168.4.0
-- E2 20 E3 20 E1 40 E2 40 E3 -- E2
LSP
70 E3 -- E1 50 E2 70 E1 -- E1 50 E3
80 E3 -- E1 60 E2 80 E1 -- E2 60 E3
LSP
MPLS and QoS
An important proposed MPLS capability is quality of service (QoS) support.
QoS mechanisms:
Pre-configuration based on physical interface
Classification of incoming packets into different classes
Classification based on network characteristics (such as congestion, throughput,
delay, and loss)
A label corresponding to the resultant class is applied to the packet.
Labeled packets are handled by LSRs in their path without needing to be
reclassified.
MPLS enables simple logic to find the state that identifies how the packet
should be scheduled.
The exact use of MPLS for QoS purposes depends a great deal on how QoS
is deployed.
Support various QoS protocols, such as IntServ, DiffServ, and RSVP.
FEC QoS Classification
LER LSR