An Introduction To MPLS: Timothy G. Griffin
An Introduction To MPLS: Timothy G. Griffin
An Introduction to MPLS
Timothy G. Griffin
[email protected] http://www.research.att.com/~griffin November 21, 2002
1
To understand the broad technical issues without getting lost in the vast number of details
the gains the costs the tradeoffs
3
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
Expect interoperability problems and feature availability problems for the next few years
4
Outline
Why MPLS?
Problems with current IP routing and forwarding Complexity of overlay model
What is MPLS?
Label swapping Label distribution Constraint based routing
B
R R2 R R1 R4
A B C D E default
Dest. A B C D E default
R3 R
R5
C
Dest.
A B C D E default
IP Forwarding Process
1. Remove a packet from an input queue 2. Check for sanity, decrement TTL field 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
RIP Process
RIP Routing tables
BGP Process
BGP Routing tables
BGP
OSPF Process
OSPF Routing tables
RIP Domain
OS kernel
OSPF Domain
IP Forwarding Table
Shortest Path Routing: Link weights tend to attract or repel all traffic
A
B
C
1 2 1 1
A B
2
1
1
1
10
Overlay Networks
B
Layer 2
(virtual circuits)
C B
C
Layer 3
11
12
what is it?
14
Sanity Check?
The problems with IP forwarding and routing do not require technologies like MPLS
Many can be addressed with simple solutions. Like the design of simple networks! The problems are not show stoppers The MPLS cure will have side effects For many applications, TCP/IP handles congestion very well
Technologies like MPLS may be very valuable if they can enable new services and generate new revenue
15
Network
MPLS Data Link
A Layer 2.5 tunneling protocol Based on ATM-like notion of label swapping A simple way of labeling each network layer packet Independent of Link Layer Independent of Network Layer Used to set up Label-switched paths (LSP), similar to ATM PVCs
Physical
RFC 3031 : Multiprotocol Label Switching Architecture
17
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 Value, 20 bits Experimental, 3 bits Bottom of Stack, 1 bit Time to Live, 8 bits
18
417
data
288
data
Popping Labels
data
288
data
577
data
288
577
data
20
Pushing Labels
288
data
data
288
577
data
577
data
21
data
417 data
666 data
233 data
data
IP
IP out
IP in
IP Forwarding Table IP
77
data
23
MPLS in
data
MPLS out
23
IP2
417 IP2
666 IP2
233 IP2
IP2
IP1
417 IP1
666 IP1
233 IP1
IP1
Packets IP1 and IP2 are forwarded in the same way --- they are in the same FEC. Network layer headers are not inspected inside an MPLS LSP. This means that inside of the tunnel the LSRs do not need full IP forwarding table.
24
LSP Merge
IP2
417 IP2
823 IP2
912 IP2
IP2
IP1
111 IP1
666 IP1
233 IP1
IP1
IP2
417 IP2
823 IP2
912 IP2
IP2
IP1
417 IP1
666 IP1
233 IP1
IP1
25
LSP merge
IP
417 IP
666 IP
233 IP
IP
IP Lookup
POP
SWAP
PUSH
IP
IP
666 IP
233 IP
IP
26
POP
PUSH
66
IP2
44 66
IP2
88 66
IP2
17 66
IP2
66
IP2
23
IP1
44 23
IP1
88 23
IP1
17 23
IP1
23
IP1
POP
PUSH
IP1 27
PPP
Ethernet
ATM VPI/VCI
Frame DLCI
generic encapsulation
. . .
generic encapsulation
. . .
. . .
label distribution
Label distribution protocols are needed to (1) create label FEC bindings (2) distribute bindings to neighbors, (3) maintain consistent label swapping tables
31
No new protocol required Allows only traditional destination-based, hop-byBad hop forwarding paths Points Some IP routing protocols are not suitable Need explicit binding of label to FEC Link state protocols (OSPF, ISIS) are implicit, and so are not good piggyback candidates Distance vector (RIP) and path vector (BGP) are 32 good candidates. Example: BGP+
forwarding paths
Additional complexity of new protocol and Bad interactions with existing protocols Points Transient inconsistencies between IP forwarding tables and MPLS label swapping tables Examples: LDP (IETF) and TDP (Cisco proprietary)
33
IP Routing Protocols + IP Routing Tables Label distribution protocols + Label Binding Tables
Routing messages
IP
IP out
IP in
IP Forwarding Table IP
77
data
23
MPLS in
34
data
MPLS out
IP AS 444
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
417 99
IP
666 99
IP
233 99
IP
IP
AS 444
AS 888
37
39
network next-hop
10.11.12.0/24
network next-hop
10.11.12.0/24
network next-hop
10.11.12.0/24
LSP
10.11.12.0/24
LDP
417
10.11.12.0/24
LDP
666
10.11.12.0/24
LDP
233
10.11.12.0/24
pop
A
swap
B
swap
push
IP
417 IP
666 IP
233 IP
IP
41
Intra-Domain
A Framework for Internet Traffic Engineering Draft-ietf-tewg-framework-02.txt A major goal of Internet Traffic Engineering is to facilitate efficient and reliable network operations while simultaneously optimizing network resource utilization and performance.
Intra-Domain
Traffic classification
Map traffic to appropriate LSPs
43
44
LSP
reply
417
LSPID 17
reply
666
LSPID 17
reply
233
LSPID 17
pop
swap
swap
push
IP
417 IP
666 IP
233 IP
IP
45
3.
4. 5.
6.
RSVP-TE
CR-LDP
+
RSVP
+
LDP
Constraint-Based LSP Setup using LDP draft-ietf-mpls-cr-lpd-05.txt
47
Soft state periodically State maintained refreshed incrementally IntServe QoS model New QoS model derived from ATM and Frame Relay
And the QoS model determines the additional information attached to links and nodes and distributed with extended link state protocols
LSP preemption (reroute existing paths to accommodate a new path) LSP Identifiers (LSPIDs)
49
LPS2
A
LPS1
C
Need at least one explicit route to A
50
LPS
A
1
2
1
B
Vanilla IP forwarding
51
MPLS TE is probably most valuable when IP services require more than best effort
VPNs with SLAs? Supporting differentiated services?
52
53
C
C
B A
Customers Layer 3 VPN
54
C
C
MPLS LSP
B
MPLS LSP
A
Customers Layer 3 VPN
MPLS LSP
55
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/120t/120t5/vpn.htm
57
VPN 1
VPN 2
58
CE = customer edge
PE = provider edge
Provider Network
59
Site 2 p1
Site 1 p1
VPRN 2
Provider
VPRN 1
Site 3 p2
Dest.
p1 p2
Nxt Hop
?? ??
Site 4 p2
60
VPN Overlap Means Vanilla Forwarding VanillaTables Cant Work out forwarding tables are
Site 2 p2
VPRN 1
Site 1 p1
VPRN 2
Provider Violates isolation Guarantee of A VPN: site 1 can Exchange traffic with Site 2!
61
Site 3 p3
Dest.
p1 p2 p3
Nxt Hop
s1 s2 s3
Site 2 p2
VPRN 1
Site 1 p1
VPRN 2
Provider Site 2 FT
Site 3 p3
Dest.
p1 p3
Nxt Hop
s1 s3
62
Site 2 p2
VPRN 1
Site 1 p1
VPRN 2
VPRN 3
Site 3 p3
Site 4 p3
63
64
65
Summary
MPLS is an interesting and potentially valuable technology because it
provides an efficient and scalable tunneling mechanism provides an efficient and scalable mechanism for extending IP routing with explicit routes
66
MPLS: Technology and Applications. By Bruce Davie and Yakov Rekhter. Morgan Kaufmann. 2000. MPLS: Is it all it's cracked up to be? Talk by Pravin K. Johri
http://buckaroo.mt.att.com/~pravin/docs/mpls.pdf
67
68
PPVPN Archive
http://nbvpn.francetelecom.com
MPLS and VPN Architectures. By Ivan Pepelnjak and Jim Guichard. Cisco Press. 2001
69