Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
An Introduction to
MPLS
Timothy G. Griffin
griffin@research.att.com
http://www.research.att.com/~griffin
November 21, 2002
1
MPLS
MPLS
MPLS
MPLS
MPLS
MPLS
MPLS
MPLS
MPLS
MPLS
MPLS
Keep in Mind
MPLS is an emerging technology
Many technical issues have not yet been resolved
Interest and enthusiasm is not universal, but primarily
found in large providers (and their vendors)
Standards are rapidly evolving
Implementations are rapidly evolving
Operational experience and expertise still very scarce
Outline
Why MPLS?
What is MPLS?
Label swapping
Label distribution
Constraint based routing
B
R
R2
R
R3 R
R1
R4
A
B
C
D
E
default
Nxt Hop
R1
Direct
R3
R1
R3
R1
R5
Dest.
A
B
C
D
E
default
Dest.
Nxt Hop
A
B
C
D
E
default
R4
R3
R3
R4
Direct
R4
Nxt Hop
R2
R2
Direct
R5
R5
R2
IP Forwarding Process
1. Remove a packet
from an input
queue
4. Place packet on
correct output
queue
Forwarding Process
If queues
get full, just
drop packets!
3. Match packets
destination to
a table entry
If queues
get full, just
drop packets!
IP Forwarding Table
Router
7
B
R
The Fish
C
The next-hop forwarding paradigm
does not allow router R to choose
a route to A based on who originated
the traffic, B or C.
8
BGP
RIP Process
BGP Process
OSPF Process
OSPF Routing tables
RIP
Domain
OS kernel
OSPF
Domain
IP Forwarding Table
A
B
A
1
2
1
1
B
10
Overlay Networks
B
A
Layer 2
(virtual circuits)
Layer 3
11
Advantages of Overlay
Networks
ATM and Frame Relay switches offer high
reliability and low cost
Virtual circuits can be reengineered
without changing the layer 3 network
Large degree of control over traffic
Detailed per-circuit statistics
Isolates layer 2 network management from
the details of higher layer services
12
13
switch
(ATM, Frame)
what is it?
14
Sanity Check?
The problems with IP forwarding and
routing do not require technologies like
MPLS
See http://www.ietf.org/html.charters/foo-charter.html,
where foo is the working group acronym.
16
Network
MPLS
Data Link
Physical
RFC 3031 : Multiprotocol Label Switching Architecture
17
Generic MPLS
Encapsulation
Layer 2 Header
MPLS Label n
Layer 3 Packet
0
1
2
3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
Label
| Exp |S|
TTL
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Often called a shim
(or sham) header
Label:
Exp:
S:
TTL:
18
417
data
288
data
Popping Labels
288
data
577
data
288
data
577
data
20
Pushing Labels
288
288
data
577
data
data
577
data
21
data
SWAP!
417 data
666 data
SWAP!
PUSH!
233 data
data
head end
22
IP
77
IP out
IP Forwarding Table
IP in
IP
data
MPLS in
MPLS out
23
data
23
417 IP2
666 IP2
233 IP2
IP2
IP1
417 IP1
666 IP1
233 IP1
IP1
24
LSP Merge
IP2
417 IP2
IP1
111 IP1
IP2
417 IP2
IP1
417 IP1
823 IP2
666 IP1
823 IP2
666 IP1
LSP merge
912 IP2
IP2
233 IP1
IP1
912 IP2
IP2
233 IP1
IP1
25
IP
SWAP
417 IP
IP Lookup
IP
666 IP
233 IP
666 IP
IP
PUSH
SWAP
POP
IP
PUSH
SWAP
233 IP
IP
26
IP2
POP
PUSH
66
23
IP2
IP1
44 66
44 23
IP2
IP1
88 66
88 23
IP2
IP1
17 66
17 23
POP
IP2
IP1
66
IP2
23
IP1
PUSH
IP1
IP1
Did I get carried away on this slide?
27
rest of
label stack
PPP
Ethernet
generic encapsulation
.
.
.
ATM
Frame
VPI/VCI
DLCI
generic encapsulation
.
.
.
generic encapsulation
.
.
.
IP datagram
29
30
Label Distribution:
Option I
forwarding paths
33
IP Routing Protocols
+
IP Routing Tables
Label distribution protocols
+
Label Binding Tables
IP
77
IP out
IP Forwarding Table
Routing messages
Label distribution
messages
IP in
IP
data
MPLS out
MPLS in
23
34
data
IP
AS 444
Internal BGP
417 IP
666 IP
233 IP
IP
AS 888
Routers A and B do not need full routing tables.
They only need IGP routes (and label bindings).
36
99
IP
AS 444
417 99
IP
666 99
IP
233 99
IP
IP
AS 888
37
38
39
network next-hop
10.11.12.0/24
network next-hop
B
10.11.12.0/24
network next-hop
C
10.11.12.0/24
LSP
10.11.12.0/24
LDP
417
LDP
10.11.12.0/24
666
LDP
10.11.12.0/24
233
10.11.12.0/24
pop
swap
IP
417 IP
666 IP
swap
233 IP
push
IP
41
Intra-Domain
Intra-Domain
RFC 2702
Requirements for Traffic Engineering over MPLS
42
Traffic classification
Map traffic to appropriate LSPs
43
Originates at
source
Paths from sources
to destinations
Traffic to path
mapping based on
what configuration
commands your
vendor(s) provide
44
REQUEST
LSPID 17
REQUEST
LSPID 17
Request
path
D->C->B->A
with LSPID 17
LSP
reply
417
LSPID 17
pop
IP
reply
666
LSPID 17
swap
417 IP
reply
233
LSPID 17
swap
666 IP
233 IP
push
IP
45
46
RSVP-TE
CR-LDP
RSVP
LDP
Add explicit
routes and resource
reservation to a
label distribution
protocol
47
CR-LDP
48
Peak rate
Committed rate
Weight
Resource class or color
49
LPS2
A
C
LPS1
LPS
2
1
B
Vanilla IP
forwarding
51
52
53
C
C
A
Customers
Layer 3 VPN
54
MPLS LSP
A
Customers
Layer 3 VPN
MPLS LSP
MPLS LSP
55
Potential Advantages of
MPLS Layer 2 VPNs
Provider needs only a single network infrastructure
to support public IP, and VPN services, traffic
engineered services, and differentiated services
Additional routing burden on provider is bounded
Clean separation of administrative responsibilities.
Service provider does MPLS connectivity, customer
does layer 3 connectivity
Easy transition for customers currently using
traditional Layer 2 VPNs
56
BGP/MPLS VPNs
RFC 2547
Is Peer Model of VPN (not Overlay)
Also draft-rosen-rfc2547bis-02.txt
Cisco configuration info :
http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/1
20t/120t5/vpn.htm
57
VPN 1
VPN 1
VPN 2
58
CE = customer edge
PE = provider edge
Provider Network
59
Site 1
p1
Site 2
p1
VPRN 2
Site 3
p2
Provider
Dest.
p1
p2
Nxt Hop
??
??
VPRN 1
Site 4
p2
60
Site 2
p2
VPRN 2
Site 3
p3
Site 1
p1
VPRN 1
Provider
Dest.
p1
p2
p3
Nxt Hop
s1
s2
s3
Violates isolation
Guarantee of
A VPN: site 1 can
Exchange traffic with
Site 2!
61
Site 2
p2
Site 1
p1
VPRN 1
VPRN 2
Provider
Site 2 FT
Site 3
p3
Site 1 FT
Dest.
p2
Nxt Hop
s2
Site 3 FT
Dest.
p2
Nxt Hop
s2
Dest.
p1
p3
Nxt Hop
s1
s3
62
Site 2
p2
VPRN 2
Site 3
p3
VPRN 1
Site 1
p1
VPRN 3
Site 4
p3
63
Customer routing is
outsourced to provider
Transition may be
complicated if customer has
many extranets or multiple
providers
New peering paradigm
Not clear how multiple
provider will work (IMHO)
65
Summary
MPLS is an interesting and potentially valuable
technology because it
66
http://www.ietf.org/html.charters/mpls-charter.html
http://cell.onecall.net/cell-relay/archives/mpls/mpls.index.html
http://www.mplsrc.com
http://www.nanog.org/mtg-9910/mpls.html
http://buckaroo.mt.att.com/~pravin/docs/mpls.pdf
67
68
http://www.ietf.org/html.charters/ppvpn-charter.html
PPVPN Archive
http://nbvpn.francetelecom.com
69