04 MPLS Te PDF
04 MPLS Te PDF
04 MPLS Te PDF
• Traffic Engineering
with MPLS
ISBN: 1-58705-031-5
• Now available in
Portuguese and
Chinese!
• Network engineering
Build your network to carry your predicted traffic
• Traffic engineering
Manipulate your traffic to fit your network
R3
R8
R4
R5
R2
R1
R6 R7
GigE
R1 (1Gbps)
GigE
(1Gbps)
R6 GigE R7
(1Gbps)
40Mbps
traffic to R5
R5
R2
40Mbps traffic
to R1 from R8
R1
R6 R7
40Mbps
traffic to R5
• MPLS Labels can be used to engineer explicit paths
• Tunnels are UNI-DIRECTIONAL
Normal path: R8 Î R2 Î R3 Î R4 Î R5
Tunnel path: R1 Î R2 Î R6 Î R7 Î R4
GTER © 2005 Cisco Systems, Inc. All rights reserved. 10
Terminology
• Information distribution
• Path selection/calculation
• Path setup
• Trunk admission control
• Forwarding traffic on to tunnel
• Path maintenance
22
RSVP PATH: R1 Î R2 Î R6 Î R7 Î R4 Î R9
RSVP RESV: Returns labels and reserves
bandwidth on each link
80 Bandwidth available
49 Returned label via RESV message
GTER © 2005 Cisco Systems, Inc. All rights reserved. 18
Forwarding Traffic to a Tunnel
• Static routing
• Policy routing
Global table only—not from VRF at present
• Autoroute
• Forwarding Adjacency
R6 R7
Tunnel1: R1 ÎR2 Î R3 Î R4 Î R5
Tunnel2: R1 ÎR6 Î R7 Î R4
R6 R7
R1
R9
R8
R6
IGP Cost = 40
R7
Tunnel: R2 ÎR3 Î R7 Î R4 Î R5
R1 shortest path to R9 via IGP
Tunnel at R2 is never used as R1 can’t see it
R2 R5
R1
R9
R8
R6
IGP Cost = 30
R7
Tunnel: R2 ÎR3 Î R4 Î R5
R1 shortest path to R9
R2 R5
R1
R9
R8
R6
R7
Tunnel: R2 ÎR3 Î R4 Î R5
R1 shortest path to R9
Router F
Router A 40MB
Router E
Router G
20MB
Router F
Router A 40MB
Router E
Router G
20MB
RST-2603
9866_05_2004_c2 © 2004 Cisco Systems, Inc. All rights reserved. 31
Prerequisite Configuration (Global)
ip cef [distributed]
mpls traffic-eng tunnels
• OSPF
mpls traffic-eng tunnels
mpls traffic-eng router-id loopback0
mpls traffic-eng area ospf-area
• ISIS
mpls traffic-eng tunnels
mpls traffic-eng router-id loopback0
mpls traffic-eng level-x
metric-style wide
interface Tunnel0
ip unnumbered loopback0
tunnel destination RID-of-tail
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng bandwidth 10
interface Tunnel0
tunnel mpls traffic-eng bandwidth Kbps
tunnel mpls traffic-eng priority pri [hold-pri]
tunnel mpls traffic-eng affinity properties [mask]
tunnel mpls traffic-eng autoroute announce
• Static routing
ip route prefix mask Tunnel0
interface Tunnel0
tunnel mpls traffic-eng autoroute announce
OR
tunnel mpls traffic-eng forwarding-adjacency
isis metric x level-y (ISIS)
ip ospf cost ospf-cost (OSPF)
ip cef (distributed}
mpls traffic-eng tunnels
interface Tunnel0
tunnel mode mpls traffic-eng
ip unnumbered Loopback0
tunnel destination RID-of-tail
tunnel mpls traffic-eng autoroute announce
tunnel mpls traffic-eng path-option 10 dynamic
! Configure in IGP
mpls traffic-eng tunnels
mpls traffic-eng router-id Loopback0
mpls traffic-eng area ospf-area (OSPF)
mpls traffic-eng level-x (ISIS)
metric-style wide
!
! On Physical interface
interface POS0/0
mpls traffic-eng tunnels
ip rsvp bandwidth Kbps
• TE Tunnel A Î B Î D Î E
Router C
Fast ReRoute
Backup Tunnel
Router C
A B D E
Original
Tunnel Router C
Fast ReRoute
GTER © 2005 Cisco Systems, Inc. All rights reserved. Backup Tunnel 48
Link Protection Example
Protected Link
Fast Reroute path Pop
R1 17 R5
Primary path: R1 Î R2 Î R3 Î R9
Fast Reroute path: R2 Î R6 Î R7 Î R3
R8 Swap 37 with 14
R9
R3
R2 R3
Push 37
R1 R5
R6 R7
IP 14
37
R8 Swap 37 with 14
R9
R2 R3
Push 37
R1 R5
Push 17 Pop 22
R6 R7
Swap 17 with 22
IP 14 17
37 22
interface POS0/0
mpls traffic-eng backup-path Tunnel0
NHop
Fast ReRoute
Backup Tunnel
Router C
NNHop
• Strategic
Mesh of TE tunnels between a level of routers
Typically P to P but can be PE to PE in smaller networks
N(N-1) LSPs (one in each direction)
Tactical Strategic TE
IGP
TE Online Offline
Control
Less Greater
Complexity
700Mpbs of data
100Mbps dropped!
Router A
Router B Router C
Router D Router E
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
Router A
Router B Router C
Router D Router E
Router B Router C
Router D Router E