Deploying Mpls For Traffic Engineering
Deploying Mpls For Traffic Engineering
Engineering
James Moffat
Consulting Systems Engineer
[email protected]
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 1
Agenda
• Prerequisites
• Introduction
• How MPLS-TE Works
• Fast ReRoute
• Design
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 2
Prerequisites
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 3
Agenda
• Prerequisites
• Introduction
• How MPLS-TE Works
• Fast ReRoute
• Design
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 4
MPLS Is Key technology for delivery of L2
& L3 services
Optical IP
ATM IP
Services Services
Services Services
IP
IP
O-UNI MPLS
PNNI MPLS
IP+Optical Switch
IP+ATM Switch
Traffic Engineering: Optimization for IP+Optical Integration
IP+ATM Integration
Additional traffic =>$$
Frame
Frame
Relay
Relay
Router B
Router F
OC-3 OC-3
Router A Router E
DS3 Router G
0Mb
4
OC-3
OC-3 40Mb DS3
DS3
Router C Router D
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 8
Fast ReRoute
• FRR: A mechanism to minimize packet loss during
a failure
• Pre-provision protection tunnels that carry traffic
when a protected resource (link/node) goes down
• Use MPLS-TE to signal the FRR protection
tunnels, taking advantage of the fact that MPLS-TE
traffic doesn’t have to follow the IGP shortest path
• Can protect MPLS traffic or IP traffic, depends on
the type of protection
• See later slides on FRR
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 9
Agenda
• Prerequisites
• Introduction
• How MPLS-TE Works
• Fast ReRoute
• Design
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 10
How MPLS-TE Works
• Information distribution
• Path calculation
• Path setup
• Forwarding traffic down tunnels
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 11
Information Distribution
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 12
Information Distribution
• OSPF
Uses type 10 (opaque area—local) lSAs
See draft-katz-yeung-ospf-traffic
router ospf 1
mpls traffic-eng area <x>
mpls traffic-eng router-id Loopback0
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 13
Information Distribution
• IS-IS
Uses Type 22 TLVs
See draft-ietf-isis-traffic
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 14
Path Calculation
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 15
Path Calculation
• What if there’s 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
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
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 16
Path Calculation
• Normal SPF—Find
shortest path across
“What’s the all links
Shortest Path to
All Routers?” • See Perlman (2nd ed),
Moy, etc. for
explanation of SPF
RtrB
RtrF
RtrA RtrE
RtrG
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 17
Path Calculation
• Normal SPF—Find
shortest path across
“What’s the all links
Shortest Path to
All Routers?” • See Perlman (2nd ed),
Moy, etc. for
explanation of SPF
RtrA
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 18
Path Calculation
• Normal SPF—Find
shortest path across
“What’s the all links
Shortest Path to
All Routers?” • See Perlman (2nd ed),
Moy, etc. for
explanation of SPF
RtrB
RtrA
RtrC
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 19
Path Calculation
• Normal SPF—Find
shortest path across
“What’s the all links
Shortest Path to
All Routers?” • See Perlman (2nd ed),
Moy, etc. for
explanation of SPF
RtrB
RtrA
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 20
Path Calculation
• Normal SPF—Find
shortest path across
“What’s the all links
Shortest Path to
All Routers?” • See Perlman (2nd ed),
Moy, etc. for
explanation of SPF
RtrB
RtrA RtrE
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 21
Path Calculation
• Normal SPF—Find
shortest path across
“What’s the all links
Shortest Path to
All Routers?” • See Perlman (2nd ed),
Moy, etc. for
explanation of SPF
RtrB
RtrF
RtrA RtrE
RtrG
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 22
Path Calculation
• Normal SPF—Find
shortest path across
“What’s the all links
Shortest Path to
All Routers?” • See Perlman (2nd ed),
Moy, etc. for
explanation of SPF
RtrB
RtrF
RtrA RtrE
RtrG
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 23
Path Calculation
• Normal SPF—Find
shortest path across
“What’s the all links
Shortest Path to
All Routers?” • See Perlman (2nd ed),
Moy, etc. for
explanation of SPF
RtrB
RtrF
RtrA RtrE
RtrG
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 24
Path Calculation
• Normal SPF—Find
shortest path across
“What’s the all links
Shortest Path to
All Routers?” • See Perlman (2nd ed),
Moy, etc. for
explanation of SPF
RtrB
RtrF
RtrA RtrE
RtrG
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 25
Path Calculation
• Constrained SPF—
“What’s the
Find shortest path to a
Shortest Path to
specific node
Router F with
40Mb Available?” • Consider more than
just link cost!
RtrB
RtrF
OC3
RtrA RtrE OC3
DS3
RtrG
OC3
OC3 DS3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 26
Path Calculation
• Constrained SPF—
“What’s the
Find shortest path to a
Shortest Path to
specific node
Router F with
40Mb Available?” • Consider more than
just link cost!
RtrA
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 27
Path Calculation
• Constrained SPF—
“What’s the
Find shortest path to a
Shortest Path to
specific node
Router F with
40Mb Available?” • Consider more than
just link cost!
RtrB
OC3
RtrA
OC3
RtrC
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 28
Path Calculation
• Constrained SPF—
“What’s the
Find shortest path to a
Shortest Path to
specific node
Router F with
40Mb Available?” • Consider more than
just link cost!
RtrB
OC3
RtrA
OC3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 29
Path Calculation
• Constrained SPF—
“What’s the
Find shortest path to a
Shortest Path to
specific node
Router F with
40Mb Available?” • Consider more than
just link cost!
RtrB
OC3
RtrA RtrE
DS3
OC3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 30
Path Calculation
• Constrained SPF—
“What’s the
Find shortest path to a
Shortest Path to
specific node
Router F with
40Mb Available?” • Consider more than
just link cost!
RtrB
RtrF
OC3
RtrA RtrE OC3
DS3
RtrG
OC3
OC3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 31
Path Calculation
• Constrained SPF—
“What’s the
Find shortest path to a
Shortest Path to
specific node
Router F with
40Mb Available?” • Consider more than
just link cost!
RtrB
RtrF
OC3
RtrA RtrE OC3
DS3
RtrG
OC3
OC3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 32
Path Calculation
• Constrained SPF—
“What’s the
Find shortest path to a
Shortest Path to
specific node
Router F with
40Mb Available?” • Consider more than
just link cost!
RtrB
RtrF
OC3
RtrA RtrE OC3
DS3
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 33
Path Calculation
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 34
Path Calculation
RtrB
RtrF
115MB
RtrA RtrE115MB
5MB
RtrG
OC3
OC3 DS3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 35
Path Calculation
RtrA
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 36
Path Calculation
RtrB
115MB
RtrA
OC3
RtrC
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 37
Path Calculation
RtrB
115MB
RtrA
OC3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 38
Path Calculation
RtrB
115MB
RtrA RtrE
5MB
OC3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 39
Path Calculation
RtrB
115MB
RtrA RtrE
5MB
OC3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 40
Path Calculation
RtrB
115MB
RtrA
OC3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 41
Path Calculation
RtrA
OC3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 42
Path Calculation
RtrA RtrE
OC3 DS3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 43
Path Calculation
RtrF
RtrA RtrE115MB
RtrG
OC3
OC3 DS3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 44
Path Calculation
RtrA RtrE
RtrG
OC3
OC3 DS3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 45
Path Calculation
RtrB
RtrF
OC3
RtrA RtrE OC3
DS3
RtrG
OC3
OC3 DS3
DS3
RtrC RtrD
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 46
Path Calculation
• What if there’s 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
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” (take the
top path on the TENT list)
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 47
Path Calculation
{8,80M}
RtrA RtrZ
{4,90M}
{8,90M}
Path Min BW Is
What’s the Best {cost,available BW} Lower than the
Other Paths!
Path from A to Z
with BW of 20M?
{8,80M}
RtrA RtrZ
{4,90M}
{8,90M}
Hop Count Is 5,
What’s the Best {cost,available BW} Other Paths
Are 4!
Path from A to Z
with BW of 20M?
RtrA RtrZ
{4,90M}
{8,90M}
Pick a Path at
What’s the Best {cost,available BW} Random!
Path from A to Z
with BW of 20M?
RtrA RtrZ
{8,90M}
RtrA RtrZ
{8,90M}
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 53
Path Setup
Router A Router E
Router G
Router C Router D
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 54
Path Setup
Router A Router E
Router G
IMP
LI
23 NU CIT
15 LL
Router C 39 Router D
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 55
Path Setup
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 56
Forwarding Traffic Down a Tunnel
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 57
Static Routing
Router B
Router F
Router H
Router A Router E
Router G
Tunnel1
Router G
Tunnel1
Router B
Router F
Router H
Router A Router E
Router G
Tunnel1
Router G
Tunnel1
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 62
Auto-Route
Router B
Router F
Router H
Router A Router E
Router G
Tunnel1 Router G
Tunnel1 Router G
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 66
Forwarding Adjacency
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 67
ATM Model
E F G
H
A I
C
B
D
F G
E
H
A I
B C D
F G
E
H
A I
B C D
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 71
F-A Issues
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 72
Unequal Cost Load Balancing
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 74
Unequal Cost: Example 1
Router F
Router A 40MB
Router E
Router G
20MB
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 75
Unequal Cost: Example 1
Router F
Router A 40MB
Router E
Router G
20MB
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 76
Unequal Cost: Example 2
Router F
Router A Router E
100MB
10MB
1MB
Router G
Router A Router E
100MB
10MB
1MB
Router G
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 79
Agenda
• Prerequisites
• Introduction
• How MPLS-TE Works
• Fast ReRoute
• Design
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 80
Fast ReRoute
• FRR: A mechanism to minimize packet loss
during a failure
• Pre-provision protection tunnels that carry
traffic when a protected resource (link/node)
goes down
• Use MPLS-TE to signal the FRR protection
tunnels, taking advantage of the fact that
MPLS-TE traffic doesn’t have to follow the IGP
shortest path
• Can protect MPLS traffic or IP traffic, depends on
the type of protection
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 81
Fast Reroute
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 82
Fast Reroute
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 83
Three Kinds of Fast Reroute
• Link protection
Implemented today
• Node protection
Implemented today
• Path protection
On development radar
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 84
Link Protection
Router C
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 85
Link Protection
Protected
PLR Link MP
NHOP
27 POP
NHOP
Backup
Tunnel
Router C
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 86
Link Protection
27, 34 34
Router C
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 87
Link Protection
• On tunnel head-end:
tunnel mpls traffic-eng fast-reroute
• On protected link:
mpls traffic-eng backup-path <backup-tunnel>
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 88
Node Protection
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 89
Node Protection
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 90
Node Protection
PLR NHOP MP
NNHOP
27 POP
NNHOP
Backup
Tunnel
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 91
Node Protection
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 92
Path Protection
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 93
Path Protection
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 94
Path vs. Local Protection
Path Protection
Thing Dependency Time
Media- and
Link Failure Detection ~Usecs (POS + APS)
Platform-specific
IGP Timers, Network
Information
Size, Collective ~5–30+ sec
Propagation
Router Load
Head-end Switch-over Network Size, ~Msec
to Protect LSP CPU Load
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 95
Local Protection vs. APS Protection
APS Protection
Thing Dependency Time
Media-and
Link Failure Detection ~Usecs (POS + APS)
Platform-specific
Generally a
APS/MSP Cutover <50ms, per spec
Fixed Time
• Prerequisites
• Introduction
• How MPLS-TE Works
• Fast ReRoute
• Design
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 97
Design
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 98
Tactical
Case Study: A Large US ISP
Router A
Router B Router C
Router D Router E
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 99
Tactical
Router B Router C
• Tunnels with bandwidth in 3:1
(12:4) ratio
• 25% of traffic sent the long way
• 75% sent the short way
• No out-of-order packet issues—
CEF’s normal per-flow hashing
is used!
Router D Router E
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 100
Tactical
Router B Router C
Router D Router E
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 101
Tactical
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 102
Strategic
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 103
Strategic
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 104
Strategic
Router B Router C
Router D Router E
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 105
Strategic
• Logical topology is*
*Each link is actually 2 unidirectional tunnels
• Total of 20 tunnels in this network
Router A
Router B Router C
Router D Router E
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 106
Strategic
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 107
Strategic
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 108
Recommended Reading
• Traffic Engineering
with MPLS
ISBN: 1-58705-031-5
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 109
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 110
Scalability
How Many Tunnels on a Router?
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 112
Scalability
http://www.cisco.com/univercd/cc/td/doc/pro
duct/software/ios120/120newft/120limit/120st
/120st14/scalable.htm
RST-251
5465_05_2002_c1 © 2002, Cisco Systems, Inc. All rights reserved. 113