Deploying MPLS Traffic Engineering
Deploying MPLS Traffic Engineering
Engineering
Haroon Ahmad Malik
haroon@corvit.com
Agenda
What Is MPLS-TE?
Multi protocol
label switching
traffic engineering
What Is It Not?
Magic problem
solving labor
substitute which is
totally effortless
Information Distribution
Next-Hop
B
C
C
B
B
B
Cost
10
10
20
20
30
30
Router A
Router F
35M
b
OC-3
Dro
Router
E
ps!
DS3
OC-3
ffic
a
r
T
b
M
80
DS3
OC-3
Router C
2001, Cisco Systems, Inc. All rights reserved.
DS3
Router G
OC-3
Router D
10
Next-Hop
B
C
C
B
Tunnel 0
Tunnel 1
Cost
10
10
20
20
30
30
Router A
Router F
OC-3
OC-3
Router E
DS3
b
M
0
4
40Mb
OC-3
Router C
2001, Cisco Systems, Inc. All rights reserved.
DS3
Router G
DS3
OC-3
Router D
11
12
Information Distribution
OSPF
Uses type 10 (opaque arealocal) LSAs
13
14
Path Calculation
15
Path Calculation
Node
B
C
D
E
F
G
Next-Hop
B
C
C
B
Tunnel 0
Tunnel 1
Cost
10
10
20
20
30
30
Router B
Router A
Router F
OC-3
OC-3
Router E
DS3
b
M
0
4
40Mb
OC-3
Router C
2001, Cisco Systems, Inc. All rights reserved.
DS3
Router G
DS3
OC-3
Router D
16
Path Calculation
What if theres more than one path that meets the
minimum requirements (bandwidth, etc.)?
PCALC algorithm:
Find all paths with the lowest IGP cost
Then pick the path with the highest minimum available
bandwidth along the path
Then pick the path with the lowest hop count (not IGP cost,
but hop count)
Then just pick one path at random
17
18
Path Setup
19
Path Setup
PATH message: Can I have 40Mb along this path?
RESV message: Yes, and heres the label to use
LFIB is set up along each hop
= PATH messages
= RESV messages
Router B
Router F
Router E
Router A
Router G
Router C
2001, Cisco Systems, Inc. All rights reserved.
Router D
20
21
22
Auto-Route
23
Auto-Route
Router B
Router F
Router H
Router E
Router A
Router G
Router C
2001, Cisco Systems, Inc. All rights reserved.
Router D
Router I
24
Auto-Route
This is Router As logical topology
By default, other routers dont see
the tunnel!
Router B
Router F
Router H
Router E
Router A
Router G
Tunnel1
Router C
2001, Cisco Systems, Inc. All rights reserved.
Router D
Router I
25
Auto-Route
Node
B
C
D
E
F
G
H
I
Next-Hop
B
C
C
B
B
Tunnel 1
Tunnel 1
Tunnel 1
Cost
10
10
20
20
30
30
40
40
Router F
Router H
Router E
Router A
Router G
Tunnel1
Router C
2001, Cisco Systems, Inc. All rights reserved.
Router D
Router I
26
27
40MB
Router E
Router G
20MB
gsr1#show ip route 192.168.1.8
Routing entry for 192.168.1.8/32
Known via "isis", distance 115, metric 83, type level-2
Redistributing via isis
Last update from 192.168.1.8 on Tunnel0, 00:00:21 ago
Routing Descriptor Blocks:
* 192.168.1.8, from 192.168.1.8, via Tunnel0
Route metric is 83, traffic share count is 2
192.168.1.8, from 192.168.1.8, via Tunnel1
Route metric is 83, traffic share count is 1
2001, Cisco Systems, Inc. All rights reserved.
28
40MB
Router E
Router G
20MB
gsr1#sh ip cef 192.168.1.8 internal
29
Static Routing
Router F
Router H
Router E
Router A
Router G
Router C
2001, Cisco Systems, Inc. All rights reserved.
Router D
Router I
30
Static Routing
Node
B
C
D
E
F
G
H
I
Next-Hop
B
C
C
B
B
B
Tunnel 1
B
Cost
10
10
20
20
30
30
40
40
Router F
Router H
Router E
Router A
Router G
Tunnel1
Router C
2001, Cisco Systems, Inc. All rights reserved.
Router D
Router I
31
Static Routing
Router F
Router A
40MB
Router E
Router G
20MB
gsr1(config)#ip route 1.2.3.4 255.255.255.255 192.168.1.11
gsr1#sh ip cef 1.2.3.4
32
Policy Routing
RtrA(config-if)#ip policy route-map set-tunnel
RtrA(config)#route-map set-tunnel
RtrA(config-route-map)#match ip address 101
RtrA(config-route-map)#set interface Tunnel1
Router B
Router F
Router H
Router E
Router A
Router G
Tunnel1
Router C
2001, Cisco Systems, Inc. All rights reserved.
Router D
Router I
33
Policy Routing
Node
B
C
D
E
F
G
H
I
Next-Hop
B
C
C
B
B
B
B
B
Cost
10
10
20
20
30
30
40
40
Router F
Router H
Router E
Router A
Router G
Tunnel1
Router C
2001, Cisco Systems, Inc. All rights reserved.
Router D
Router I
34
35
(globally)
ip cef {distributed}
mpls traffic-eng tunnels
(per interface)
mpls traffic-eng tunnels
36
37
38
39
Total configuration:
1 line globally
1 line per interface
2 lines if OSPF
+ 7 lines per tunnel at head-end
40
Bandwidth
Per-interface command
X = amount of reservable BW, in K
Default: X=75% of link bandwidth
2001, Cisco Systems, Inc. All rights reserved.
41
Bandwidth
Per-tunnel command
Tunnel default: 0 Kb
42
Priority
43
Administrative Weight
mpls traffic-eng administrativeweight <X>
Per-interface command
X = 04,294,967,295
Gives a metric that be considered for use instead
of the IGP metric
This can be used as a per-tunnel
delay-sensitive metric for doing VoIP TE
44
45
46
47
Fast Reroute
In an IP network, a link failure causes several
seconds of outage
Thing
Dependency
Media- and
Platform-specific
Information
Propagation
Route Recalculation
Time
~secs (POS + APS)
~530 sec
~13 sec
48
Fast Reroute
In an MPLS network, theres more work to be
done, so a (slightly) longer outage happens
Thing
Dependency
Media- and
Platform-specific
Information
Propagation
Route Recalculation
Network Size,
CPU Load
Time
~Usecs (POS + APS)
~530 sec
~13 sec
~510 sec
49
Router B
Router D
Router E
Router C
2001, Cisco Systems, Inc. All rights reserved.
50
Link Protection
B has a pre-provisioned backup tunnel to the other
end of the protected link (Router D)
B relies on the fact that D is using global label space
Router A
Router B
Router D
Router E
Router C
2001, Cisco Systems, Inc. All rights reserved.
51
Link Protection
B -> D link fails, A -> E tunnel is encapsulated in
B -> D tunnel
Backup tunnel is used until A can re-compute tunnel
path as A -> B -> C -> D -> E (1030 seconds or so)
Router A
Router B
Router D
Router E
Router C
2001, Cisco Systems, Inc. All rights reserved.
52
Link Protection
On tunnel head-end:
tunnel mpls traffic-eng fast-reroute
Router A
Router B
Router D
Router E
On protected link:
mpls traffic-eng backup-path <backup-tunnel>
2001, Cisco Systems, Inc. All rights reserved.
53
THANKS!