Multi-Protocol Label Switching (MPLS)
Multi-Protocol Label Switching (MPLS)
(MPLS)
* 1
MPLS Overview
□ A forwarding scheme designed to speed up IP packet
forwarding (RFC 3031)
* 2
Need for Multiprotocol Label Switching
(MPLS)
□ Forwarding function of a conventional router
■ a capacity demanding procedure
■ constitutes a bottle neck with increase in
line speed
3
“Label Substitution” what is it?
One of the many ways of getting from
A to B:
•BROADCAST: Go everywhere, stop when you get to B,
never ask for directions.
•HOP BY HOP ROUTING: Continually ask who’s closer to B
go there, repeat … stop when you get to B.
“Going to B? You’d better go to X, its on the way”.
•SOURCE ROUTING: Ask for a list (that you carry with you)
of places to go that eventually lead you to B.
“Going to B? Go straight 5 blocks, take the next left, 6 more blocks
and take a right at the lights”.
Label Substitution
LANE#
2
A label by any other name ...
There are many examples of label substitution
protocols already in existence.
IP LABEL IP
Forwarding SWITCHING Forwarding
MPLS: HOW DOES IT WORK
TIM UDP-Hel
lo
E
UDP-Hel
lo
TCP-ope
n
Initializatio
n(s)
Label
IP request
#L2
Label
TIM mapping
MPLS Basics
□ A Label Switched Path (LSP) is set up for each route
□ A LSP for a particular packet P is a sequence of
routers,
<R1,R2………..Rn>
for all i, 1< i < n: Ri transmits P to R[i+1] by
means of a label
□ Edge routers
■ analyze the IP header to decide which LSP to use
■ add a corresponding local Label Switched Path
Identifier, in the form of a label
■ forward the packet to the next hop
10
MPLS Basics contd..
□ Subsequent nodes
■ just forward the packet along the LSP
■ simplify the forwarding function greatly
■ increase performance and scalability
dramatically
□ New advanced functionality for QoS, differentiated
services can be introduced in the edge routers
□ Backbone can focus on capacity and performance
□ Routing information obtained using a common intra
domain routing protocol such as OSPF
11
Basic Model for MPLS Network
Internet
LER
I
LER P
LER
LSR
LSR MPL
MPL LSR S
S
LER I
P
LSR = Label Switched Router
LER = Label Edge Router
12
MPLS Header Format
20 3 1 8
Label Exp S TTL
* 13
Forwarding Equivalence Class
□ An MPLS capable router is called a label switching
router (LSR)
* 14
Forwarding Equivalence Class
□ A packet’s FEC can be determined by one
or more of the following:
■ Source and/or destination IP address
■ Source and/or destination port number
■ Protocol ID
■ Differentiated services code point
■ Incoming interface
* 15
Forwarding Equivalence Classes
LS LS
LE LE
R R
R R
LS
P
IP1 IP1
IP1 #L1 IP1 #L2 IP1 #L3
IP2 #L1 IP2 #L2 IP2 #L3
IP2 IP2
•FEC = “A subset of packets that are all treated the same way by a router”
•The concept of FECs provides for a great deal of flexibility and scalability
•In conventional routing, a packet is assigned to a FEC at each hop (i.e. L3
look-up), in MPLS it is only done once at the network ingress
MPLS Operation
□ At ingress LSR of an MPLS domain, an MPLS header
is inserted to a packet before the packet is
forwarded
■ Label in the MPLS header encodes the packet’s FEC
□ At subsequent LSRs
■ The label is used as an index into a forwarding table that
specifies the next hop and a new label.
■ The old label is replaced with the new label, and the packet is
forwarded to the next hop.
□ Egress LSR strips the label and forwards the packet to
final destination based on the IP packet header
* 17
MPLS BUILT ON STANDARD IP
1 47
3 .1
1 2
3
2
1
47 3 47
.3 2 .2
1 47
IP .1
1 2 IP
3 47.1.1.
47.1.1.
2 1
1
IP
1 47.1.1.
47 3 1 47
.3 2 .2
IP
47.1.1.
1
Label Switched Path
□ For each FEC, a specific path called Label Switched
Path (LSP) is assigned
■ The LSP is unidirectional
□ To set up an LSP, each LSR must
■ Assign an incoming label to the LSP for the
corresponding FEC
□ Labels have only local significance
■ Inform the upstream node of the assigned label
■ Learn the label that the downstream node has
assigned to the LSP
□ Need a label distribution protocol so that an LSR can
inform others of the label/FEC bindings it has made
□ A forwarding table is constructed as the result of label
distribution.
* 20
MPLS Label Distribution
1 47
3 Request: 3
.1
st: 47.1
u e 2
Req .1 1
1 47 Mapping:
47 3 i n g: 2 0.40
a pp 47
.3 2 M 0.50 .2
Label Switched Path (LSP)
IP1 47
3 3 47.1.1..1
21
1
1 2
47 3 47
.3 2 .2
IP
47.1.1.
1
LSP Route Selection
□ Hop-by-hop routing: use the route determined by the
dynamic routing protocol
* 23
ER-LSP
Route
=
#
{A,B, #2 14 #9
C} 16 B 72
# C
A 14 #9
72
#4
62
IP1 47
3 3 47.1.1..1
21
1
1 2
47 3 47
.3 2 .2
IP
47.1.1.
1
Explicitly Routed LSP
□ Advantages
■ Can establish LSP’s based on policy, QoS, etc.
■ Can have pre-established LSP’s that can be
used in case of failures.
□ Signaling protocols
■ CR-LDP
■ RSVP-TE (traffic Extension)
* 26
Explicit Routing - MPLS vs. Traditional Routing
* 28