You are on page 1of 116

Deploying Traffic

Engineering in MPLS
and Segment
Routing Backbones
Gregory Johnson,
Customer Solutions Architect
BRKMPL-2100

#CLUS
Agenda • MPLS TE Overview
• Bandwidth Optimization
• SR-TE Overview
• Fast Reroute / TI-LFA
• Centralized Tunnel Creation and
Control
• Forwarding Traffic Down LSPs
• Deployment Considerations

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 2
Cisco Webex Teams
Questions?
Use Cisco Webex Teams (formerly Cisco Spark)
to chat with the speaker after the session

How
1 Find this session in the Cisco Events App
2 Click “Join the Discussion”
3 Install Webex Teams or go directly to the team space
4 Enter messages/questions in the team space

Webex Teams will be moderated cs.co/ciscolivebot#BRKMPL-2100


by the speaker until June 18, 2018.

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
MPLS TE Overview
How MPLS TE Works
Head end • Link information Distribution*
• ISIS-TE
IP/MPLS • OSPF-TE
• Path Calculation (CSPF)*

• Path Setup (RSVP-TE)

• Forwarding Traffic down Tunnel*


• Auto-route (announce / destinations)
• Static route
• PBR
• PBTS / CBTS
Mid-point Tail end
• Forwarding Adjacency
TE LSP • Pseudowire Tunnel select

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
TE Tunnel Attributes
Head end • Unidirectional

• Destination – Tail TE RID


IP/MPLS
• Priority / Preemption (Setup and Hold)

• Attributes / Affinity

• Bandwidth / Loadshare

• Local Protection

• Path Options (Explicit / Dynamic)

Mid-point Tail end

TE LSP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
Basic TE Tunnel Configuration
(Cisco IOS XE)
interface Tunnel1
description FROM-ROUTER-TO-DST1
ip unnumbered Loopback0 Tunnel destination and TE type
tunnel destination 172.16.255.3
tunnel mode mpls traffic-eng Signaled bandwidth and priority
tunnel mpls traffic-eng priority 0 0
tunnel mpls traffic-eng bandwidth 10000 Consider links with 0x0/0xF as attribute flags
(colors)
tunnel mpls traffic-eng affinity 0x0 mask 0xF
tunnel mpls traffic-eng path-option 5 explicit name PATH1
tunnel mpls traffic-eng path-option 10 dynamic Tunnel path options (explicit,
! otherwise, dynamic)
ip explicit-path name PATH1 enable
next-address 172.16.0.1 Explicit path definition
next-address 172.16.8.0
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
Basic TE Tunnel Configuration
(Cisco IOS XR)
explicit-path name PATH1
index 1 next-address ipv4 unicast 172.16.0.4
Explicit path definition
index 2 next-address ipv4 unicast 172.16.0.7
index 3 next-address ipv4 unicast 172.16.4.2
!
interface tunnel-te1 MPLS TE point-to-point tunnel
description FROM-ROUTER-TO-DST1
ipv4 unnumbered Loopback0 Signaled bandwidth and priority
priority 0 0
signalled-bandwidth 100000 Tunnel destination
destination 172.16.255.2
path-option 10 explicit name PATH1 Tunnel path options (explicit, otherwise,
dynamic)
path-option 20 dynamic
affinity f mask f
Consider links with 0xF/0xF as attribute flags
!
(colors)

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
Link Information Distribution
• Additional link characteristics
• Interface address
IP/MPLS
• Neighbor address
• Maximum reservable bandwidth
• Unreserved bandwidth
(at eight priorities)
• TE metric (administrative weight)
• Attribute Flags
• IS-IS or OSPF flood link information

• All TE nodes build a TE topology database


TE
(TED) Topology
database
• Not required if using off-line path computation

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Configuring MPLS TE and Link Information
Distribution Using IS-IS (Cisco IOS XE)
mpls traffic-eng tunnels
! Enable MPLS TE on this node
interface TenGigabitEthernet0/1/0
ip address 172.16.0.0 255.255.255.254
ip router isis
mpls traffic-eng tunnels
mpls traffic-eng attribute-flags 0xF Enable MPLS TE on this interface, specify
mpls traffic-eng administrative-weight 20 attribute flags (colors), TE metric and
ip rsvp bandwidth 100000 maximum reservable bandwidth
!
router isis
net 49.0001.1720.1625.5001.00
is-type level-2-only
metric-style wide
mpls traffic-eng router-id Loopback0
mpls traffic-eng level-2 Enable wide metric format and TE extensions
passive-interface Loopback0 (TE Id, router level)
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
Configuring MPLS TE and Link Information
Distribution Using OSPF (Cisco IOS XR)
router ospf DEFAULT
area 0
mpls traffic-eng
interface Loopback0 Enable MPLS TE extensions on this area
passive
!
interface TenGigE0/0/0/0
!
mpls traffic-eng router-id Loopback0 MPLS TE router id
!
rsvp Configuration mode for RSVP global and
interface TenGigE0/0/0/0 interface (e.g. maximum reservable
bandwidth 100000
bandwidth) commands
!
!
mpls traffic-eng
interface TenGigE0/0/0/0 Configuration mode for MPLS TE global and
admin-weight 5 interface (e.g. TE metric, attribute flags)
attribute-flags 0x8 commands
!
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
Path Calculation
Find shortest
• TE nodes can perform constraint-based
path to R8 routing
with 80 Mbps

IP/MPLS • Tunnel head end generally responsible for


R1 path calculation
150 50 200
• Constraints and topology database used as
100 R8 input to path computation
100
100
80 • Shortest-path-first algorithm ignores links
not meeting constraints
100
• Tunnel can be signaled once a path is
found
TE
Topology • Not required if using offline path
database computation

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
TE LSP Signaling
• Tunnel signaled with TE extensions to RSVP

• Soft state maintained with downstream PATH


messages Head end IP/MPLS
• Soft state maintained with upstream RESV
messages
• New RSVP objects L=16
• LABEL_REQUEST (PATH) RESV Tail end

• LABEL (RESV)
PATH
• EXPLICIT_ROUTE
• RECORD_ROUTE (PATH/RESV)
• SESSION_ATTRIBUTE (PATH) Input Out Label,
Label Interface
• LFIB populated using RSVP labels allocated by 17 16, 0
RESV messages TE LSP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
Forwarding Traffic Down Tunnels
Head end • Traffic enters tunnel at head end

• Multiple traffic selection options


IP/MPLS • Auto-route (announce / destination)
• Static routes
• Policy Based Routing
• Forward Adjacency
• Pseudowire Tunnel Selection
• Policy / Class Based Tunnel Selection
• PSTS / SPP
• Tunnel path computation independent of
routing decision injecting traffic into tunnel

TE LSP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
Point-to-Multipoint (P2MP)TE LSP
• Unidirectional

• Explicitly routed
IP/MPLS
• One head end, but one or more tail ends
(destinations)
• Same characteristics (constraints,
protection, etc.) for all destinations

TE LSP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
P2MP TE LSP Terminology
• Head-end/Source: Node where LSP
Tail end
signaling is initiated
IP/MPLS

• Mid-point: Transit node where LSP


Head end

signaling is processed (not a head-end, not


a tail-end)
Mid-point and
branch point • Tail-end/Leaf/destination: node where LSP
signaling ends
IP/MPLS • Branch point: Node where packet
S2L sub-LSP
replication is performed
• Source-to-leaf (S2L) sub-LSP: P2MP TE
S2L sub-LSP
LSP segment that runs from source to one
leaf

TE LSP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
P2MP TE LSP Path Computation
• Constrained Shortest Path First (CSPF) used to
compute an adequate tree R4
IP/MPLS
• CSPF executed per destination R2
• TE topology database and tunnel constraints R1
used as input for path computation
• Path constraints may include loose, included, R3 R5
excluded hops
• Same constraints for all destinations TE
(bandwidth, affinities, priorities, etc.) Topology
database
• Path computation yields explicit path to each
destination
• No changes to OSPF/IS-IS TE extensions CSPF

• Static paths possible with offline path


Path to R4: (R1, R2, R4)
computation
Path to R5: (R1, R2, R5)
#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
P2MP TE LSP Signaling
• Source sends unique PATH message per
destination
IP/MPLS
PATH
PATH
• LFIB populated using
PATH
RSVP labels allocated by RESV messages
PATH
• Multicast state built by reusing sub-LSP
labels at branch points

IP/MPLS
L=17
L=16 RESV
RESV

L=16
RESV

L=18
Input RESV
Out Label,
Label Interface
16 17, 0
18, 1

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
MPLS TE Use Cases
Point-to-Point SLA Protection

R1 IP/MPLS R1 IP/MPLS

R8 R8
R2 R2

Bandwidth Optimization
Strategic / Planned Tactical / Reactive

R1 IP/MPLS R1 IP/MPLS

R3
R8
R2
R2
R4

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
MPLS TE Integration with Network Services
A TE LSP provides transport for different network services

CE CE
IP/MPLS
PE PE
ATM
CE Ethernet CE
CE

PE

CE CE

PE PE
CE Ethernet Ethernet CE

Low-Latency, BW TE LSP with L2VPN IP (VPN)


Protected TE LSP Reserved BW (Pseudowire) Service

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
Bandwidth optimization
Strategic / Planned Bandwidth Optimization
Tunnel mesh to
Traffic Matrix Physical Topology satisfy traffic matrix
R1 R2 R3 R4 R5 R6
R1 R6 R1 R6
R1 4 7 1 5 4 5
R2 2 2 4 7 2 3
R3
R4
1
9
2
1
9
4
5
1
5
3
5
1
+ R2 R5
= R2 R5

R5 3 7 9 2 7 7
R6 6 3 5 4 9 12 R3 R4 R3 R4

• Optimize utilization of physical infrastructure


• On-line (CSPF) or off-line path computation
• May result in a significant number of LSPs
• Will not affect routing adjacencies

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
Traffic Matrix Discovery
• Full Mesh Zero BW Tunnels

• Polling ifMIB

• MPLS LSR MIB

• IPFIX / NetFlow v9

• BGP policy accounting


• Communities
• AS path
• IP prefix

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
Tactical / Reactive Bandwidth Optimization
Bandwidth Optimization
Strategic / Planned Tactical / Reactive

R1 IP/MPLS R1 IP/MPLS
R3
R8
R2 R2
R4

• Selective deployment of tunnels when highly-utilized links


are identified
• Generally, deployed until capacity upgrade alleviates
congested links
#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
AutoTunnel Mesh
• Mesh group: LSRs to mesh automatically New mesh
group
• Membership identified by member
• Matching TE Router ID
against ACL (Cisco IOS and IOS XR)
• IGP mesh-group New mesh
advertisement (Cisco IOS) group
member
• Each member automatically creates tunnel
upon detection of a member
• Tunnels instantiated from template

• Individual tunnels not displayed in router


configuration

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
Configuring AutoTunnel Mesh
via Protocol Extension (Cisco IOS XE)
mpls traffic-eng tunnels
mpls traffic-eng auto-tunnel mesh Enable Auto-tunnel Mesh
!
interface Auto-Template1
Tunnel template
ip unnumbered Loopback0
tunnel destination mesh-group 10
tunnel mode mpls traffic-eng Template instanciated for each member of
tunnel mpls traffic-eng autoroute announce mesh group 10
tunnel mpls traffic-eng path-option 10 dynamic
tunnel mpls traffic-eng auto-bw frequency 3600
! Dynamic (CSPF) path and dynamic bandwidth
router ospf 16 adjustment for all mesh tunnels
log-adjacency-changes
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0 Advertise mesh group 10 membership in area
mpls traffic-eng mesh-group 10 Loopback0 area 0 0
passive-interface Loopback0
network 172.16.0.0 0.0.255.255 area 0
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
Configuring AutoTunnel Mesh
via ACL (Cisco IOS XR)
ipv4 unnumbered mpls traffic-eng Loopback 0
! Source interface for backup tunnels
mpls traffic-eng
auto-tunnel mesh
group 10 Mesh group 10 identified by ACL DST-RID-
attribute-set 10 ACL
destination-list DST-RID-ACL
!
tunnel-id min 1000 max 2000 Range for mesh tunnel interfaces
!
attribute-set auto-mesh 10
autoroute announce
path-selection metric te Attribute set for tunnels in mesh group 10
!
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
Auto Bandwidth
Total Bandwidth
bandwidth available to
for all TE other tunnels
Max
tunnels
on a path

Min
Tunnel
resized to
measured rate

• Dynamically adjust bandwidth reservation based on measured traffic


• Optional minimum and maximum limits
• Sampling and resizing timers
• Actual resizing can be subject to adjustment threshold and overflow/underflow
detection

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
SR-TE Overview
Segment Routing TE Overview
• Simplified Control Plane
(IGP only)
• Reduce state in network
(no signaling) C

A
• Explicit routing capability Z

• TE Tunnel configuration /
SR Policy
• Path encoded as label
stack

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
Node Label
• Label Allocation for SR Swap 16001
Swap 16001 Swap 16001
for 16001
• Node z is assigned label / SID 16001 for 16001 for 16001 Swap 16001
for 16001
• Node – SID
(Analogous to RID) A
Node Segment Z
• MPLS Data Plane

A packet injected
anywhere with top label
16001 will reach Z

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
Adjacency Label
• Locally significant label bindings
Push 28000 Swap 2800
• Automatically allocated for 2900

• Normal MPLS label swap


operation A
Swap 2900 Z
for 30000

Adj Segment
Pop 31000
Swap 30000
for 31000

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
SR Data Plane

A
Z

• Path is computed by source


• Labels assigned by Adj or Segment
• Path is encoded by the source in the packet header via label stack
• MPLS data plane

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
Configuring SR-TE Using IS-IS (Cisco IOS XE)

router isis CLUS


net 49.0001.0010.0100.1001.00 Enable Segment Routing with MPLS
is-type level-2-only Data Plane for IGP

metric-style wide
segment-routing mpls
segment-routing prefix-sid-map advertise-local
mpls traffic-eng router-id Loopback0
•mpls
In thistraffic-ing level-2
example TE is only enabled for Level-2 LSDP Enable TE under IGP process

• No RSVP configuration required

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
Configuring SR-TE Using OSPF (Cisco IOS XR)
• Required configuration for SRTE:

router ospf 1 Enable Segment Routing with MPLS Data


segment-routing mpls Plane for IGP
area 0
Enable TE under IGP process
mpls traffic-eng
!
mpls traffic-eng router-id Loopback0
!
mpls traffic-eng
Enable TE process

• No rsvp configuration for SRTE

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
Basic SR-TE Tunnel Configuration
(Cisco IOS XE)
interface Tunnel1
description SR-TE-FROM-ROUTER-TO-DST1
ip unnumbered Loopback0
tunnel destination 172.16.255.3 Tunnel destination and TE type
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng priority 0 0
tunnel mpls traffic-eng path-option 5 explicit name PATH1 segment-routing
tunnel mpls traffic-eng path-option 10 dynamic segment-routing
!
ip explicit-path name PATH1 enable
next-address 172.16.0.1 Tunnel path options with
next-address 172.16.8.0 segment-routing
next-label 1000
next-label 2000
! Explicit path definition

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
Basic SR-TE Tunnel Configuration
(Cisco IOS XR)
explicit-path name PATH1
index 1 next-address ipv4 unicast 172.16.0.4 Explicit path definition
index 2 next-address ipv4 unicast 172.16.0.7
index 3 next-label 16001
! Tunnel destination and TE type
interface tunnel-te1
description SR-TE-FROM-ROUTER-TO-DST1
ipv4 unnumbered Loopback0
priority 0 0
destination 172.16.255.2
path-option 10 explicit name PATH1 segment-routing
path-option 20 dynamic segment-routing Tunnel path options with
! segment-routing

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
RSVP-TE or SR-TE???
Pros Cons

RSVP-TE • Widely implemented • Large amount of state in


network
• Admission Control
• Requires signaling
• Large number of deployments

SR-TE • Simplified Control Plane • No native admission


control
• No signaling
• Fewer deployments
• Explicit path encoded in Data Plane

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
Fast Reroute and TiLFA
Traffic Protection Using MPLS TE Fast Re-Route (FRR)
• Sub-second recovery against node/link
failures

R1
IP/MPLS • Scalable 1:N protection
• Greater protection granularity
R8 • Bandwidth protection
R2 • Topology independent

Primary TE LSP

Backup TE LSP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
FRR Link Protection Operation
• Requires pre-signalled next-hop (NHOP)
backup tunnel
IP/MPLS
• Point of Local Repair (PLR) swaps label and
pushes backup label
R3
25
22 22

• Backup terminates
R1 R2
on Merge Point (MP) where traffic re-joins R6 R7

primary
16 22

• Restoration time expected under ~50 ms LFIB


update
R5

Primary TE LSP

Backup TE LSP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
Configuring FRR (Cisco IOS XE)
Primary Tunnel

interface Tunnel1
description FROM-ROUTER-TO-DST1-FRR
ip unnumbered Loopback0
tunnel destination 172.16.255.2
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng bandwidth 20000
tunnel mpls traffic-eng path-option 10 dynamic
tunnel mpls traffic-eng fast-reroute Request local protection for LSP
!

Backup Tunnel
interface Tunnel1
description NNHOP-BACKUP
ip unnumbered Loopback0
tunnel destination 172.16.255.2
Explicitly routed back to 172.16.55.2 with zero
tunnel mode mpls traffic-eng bandwidth
tunnel mpls traffic-eng path-option 10 explicit name PATH1
!
interface TenGigabitEthernet1/0/0
ip address 172.16.192.5 255.255.255.254
mpls traffic-eng tunnels
mpls traffic-eng backup-path Tunnel1 Use Tunnel1 as backup for protected LSPs
ip rsvp bandwidth through interface
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
Configuring FRR (Cisco IOS XR)
Primary Tunnel
interface tunnel-te1
description FROM-ROUTER-TO-DST1-FRR
ipv4 unnumbered Loopback0
signalled-bandwidth 30000
destination 172.16.255.2
Request local protection for LSP
fast-reroute
path-option 10 dynamic
!

Backup Tunnel
interface tunnel-te1
description NHOP-BACKUP
ipv4 unnumbered Loopback0 Explicitly routed back to 172.16.55.130 with
destination 172.16.255.130 zero bandwidth
path-option 10 explicit name PATH1
!
mpls traffic-eng
interface TenGigE0/0/0/0
backup-path tunnel-te 1 Use Tunnel-te1 as backup for protected LSPs
!
through interface
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
FRR Node Protection Operation
• Requires pre-signalled next-next-hop
(NNHOP) backup tunnel
IP/MPLS
R3 • Point of Local Repair (PLR) swaps next-hop
25 label and pushes
backup label
36 36

R1 R2 R4 R6 R7
• Backup terminates on Merge Point (MP)
where traffic re-joins primary
16 22 36

• Restoration time depends on failure


detection time / mechanism
R5

Primary TE LSP

Backup TE LSP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
Bidirectional Forwarding Detection Trigger for
FRR
• FRR relies on quick PLR failure detection

• Some failures may not produce loss of R1


IP/MPLS
signal or alarms on a link
• BFD provides light-weight neighbor R8
connectivity failure detection
R2
• Much better than RSVP Hellos

BFD session

Primary TE LSP

Backup TE LSP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
Bandwidth Protection
• Backup tunnel with associated bandwidth
IP/MPLS capacity (1:N protection)
R3 • Backup tunnel may or may not actually
signal bandwidth
R1 R2 R4 R6 R7
• PLR will decide best backup to protect
primary
nhop/nnhop
backup-bw
class-type
R5
node-protection flag

Primary TE LSP
Backup TE LSP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
AutoTunnel: Primary Tunnels
What’s the Problem?
• FRR can protect TE Traffic

• Does NOT protect IP or LDP traffic


R1
IP/MPLS
• How to leverage FRR for all traffic?

• What if protection desired without traffic


R8
engineering?
R2

Primary TE LSP

Backup TE LSP
#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
AutoTunnel: Primary Tunnels
What’s the Solution?
• Create protected one-hop tunnels on all
Forward all traffic through a one-hop TE links
protected primary TE tunnel Priority 7/7
Bandwidth 0
R1
IP/MPLS Affinity 0x0/0xFFFF
Auto-BW OFF
Auto-RouteON
R8
Fast-Reroute ON
R2 Forwarding-Adj OFF
Load-Sharing OFF
• Tunnel interfaces not shown on router
configuration
Primary TE LSP • Configure desired backup tunnels
(manually or automatically)

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
AutoTunnel: Backup Tunnels
What’s the Problem?
• MPLS FRR requires backup tunnels to be
preconfigured
• Automation of backup tunnels is desirable R1
IP/MPLS

R8

R2

Primary TE LSP

Backup TE LSP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
AutoTunnel: Backup Tunnels
What’s the Solution?
Create backup tunnels automatically • Detect if a primary tunnel requires
as needed protection and is not protected

IP/MPLS • Verify that a backup tunnel doesn’t already


R1 exist
• Compute a backup path to NHOP and
R8
NNHOP excluding the protected facility
R2 • Optionally, consider shared risk link groups
during backup path computation
• Signal backup tunnels

Primary TE LSP

Backup TE LSP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 50
Configuring AutoTunnel Backup Tunnels
(Cisco IOS)
mpls traffic-eng tunnels Enable auto-tunnel backup (NHOP tunnels
mpls traffic-eng auto-tunnel backup nhop-only only)
mpls traffic-eng auto-tunnel backup tunnel-num min 1900 max 1999 Range for backup
mpls traffic-eng auto-tunnel backup srlg exclude preferred tunnel interfaces
!
Preferably consider SRLGs

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 51
Configuring AutoTunnel Backup Tunnels
(Cisco IOS XR)
ipv4 unnumbered mpls traffic-eng Loopback 0
! Source interface for backup tunnels
mpls traffic-eng
interface GigabitEthernet0/0/0/0
auto-tunnel backup
exclude srlg preferred Protect interface with dynamically created
nhop-only (next-hop only)
! backup tunnels. Preferably consider SRLGs.
!
auto-tunnel backup
Range for backup tunnel interfaces
tunnel-id min min 1900 max 1999
!
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
Shared Risk Link Group (SRLG)
Layer-3 Topology
• Some links may share same physical
IP/MPLS resource (e.g. fiber, conduit)
R2 R4
R1 R5 • AutoTunnel Backup can force or prefer
exclusion of SRLG
to guarantee diversely routed backup
R3 tunnels
• IS-IS and OSPF flood SRLG membership as
an additional
Layer-3 Plus underlying Optical Topology

SRLG 10
R2-R4 R2-R3
link attribute
IP/MPLS
R2 R4 SRLG 20
R4-R2
R1 R5
R4-R3

SRLG 30
R3-R2
R3 R3-R4

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
Configuring SRLG (Cisco IOS XE)
mpls traffic-eng tunnels
mpls traffic-eng auto-tunnel backup nhop-only
mpls traffic-eng auto-tunnel backup srlg exclude force
!
interface TenGigabitEthernet0/1/0
Force SRLG exclusion during backup path
ip address 172.16.0.0 255.255.255.254
computation
mpls traffic-eng tunnels
mpls traffic-eng srlg 15
mpls traffic-eng srlg 25 Interface member of SRLG 15 and 25
ip rsvp bandwidth
!
interface TenGigabitEthernet1/0/0
ip address 172.16.0.2 255.255.255.254
mpls traffic-eng tunnels
mpls traffic-eng srlg 25
ip rsvp bandwidth
Interface member of SRLG 25 only
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
What About Path Protection?
• Primary and standby share head and tail, but
expected to be diversely routed
• Longer restoration times compared to Link /
IP/MPLS
Node Protection
• Doubles number of TE LSPs R8
(1:1 protection)
R1
• Only option for certain topologies
(e.g. Rings)

Primary TE LSP

Backup TE LSP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
Configuring Path Protection (Cisco IOS XE)
interface Tunnel1
ip unnumbered Loopback0
tunnel mode mpls traffic-eng
tunnel destination 172.16.255.2
tunnel mpls traffic-eng autoroute announce
Standby path to be use for PATH1
tunnel mpls traffic-eng path-option 10 explicit name PATH1
tunnel mpls traffic-eng path-option 20 explicit name PATH2
tunnel mpls traffic-eng path-option protect 10 explicit name PPATH1
tunnel mpls traffic-eng path-option protect 20 explicit name PPATH2
!

Standby path to be use for PATH2

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
Configuring Path Protection
(Cisco IOS XR)
interface tunnel-te1
description FROM-ROUTER-TO-DST1
ipv4 unnumbered Loopback0
signalled-bandwidth 100000
Signal path protection
destination 172.16.255.2
affinity f mask f
path-protection
path-option 10 explicit name PATH1
path-option 20 explicit name PATH2
path-option 30 dynamic
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
P2MP TE LSP Traffic Protection
• No new protocol extensions to support FRR
• Protection requirement applies to all
destinations IP/MPLS R4

• P2P LSP as backup tunnel for a sub-LSP R2


• No changes to label stacking procedure R1

• Only link protection supported


• Head-end protection requires path R3 R5
redundancy (live-standby / live-live)

Primary TE LSP

Backup TE LSP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
Configuring P2MP Tunnel at Head End
(Cisco IOS XE)
mpls traffic-eng destination list name P2MP-LIST-DST1
Destination list with one path-option
ip 172.16.255.1 path-option 10 explicit name PATH1
per destination
ip 172.16.255.2 path-option 10 dynamic
ip 172.16.255.3 path-option 10 dynamic
ip 172.16.255.4 path-option 10 dynamic
!
interface Tunnel1
description FROM-ROUTER-TO-LIST-DST1
ip unnumbered Loopback0 P2MP TE Tunnel
tunnel mode mpls traffic-eng point-to-multipoint
tunnel destination list mpls traffic-eng name P2MP-LIST-DST1
Destination list
tunnel mpls traffic-eng priority 7 7
tunnel mpls traffic-eng bandwidth 1000
! Signaled bandwidth and setup / hold priorities

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
Configuring P2MP Tunnel at Head End
(Cisco IOS XR)
interface tunnel-mte1
ipv4 unnumbered Loopback0 MPLS TE P2MP tunnel
destination 172.16.255.129
path-option 10 explicit name PATH1 Destination with path-option list
path-option 20 dynamic
!
destination 172.16.255.130
path-option 10 dynamic Destination with single path-option
!
priority 0 0
signalled-bandwidth 100000 Signaled bandwidth and setup / hold priorities
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
Topology Independent LFA
Segment Routing • Automated 1:N protection

• Local reroute comparable to MPLS TE Link


MPLS / Node
R1
• No RSVP or LDP
R8 • Analogous to MPLS TE AutoTunnel Backup

R2

Primary LSP

Backup Segment

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
Configuring TiLFA Protection
(Cisco IOS XE)
router isis CLUS
net 49.0001.0140.1401.4014.00
is-type level-2-only
metric-style wide
log-adjacency-changes
nsf cisco
segment-routing mpls
segment-routing prefix-sid-map advertise-local
fast-reroute per-prefix level-2 all
fast-reroute ti-lfa level-2 Enable protection for all Level-2 prefixes
microloop avoidance rib-update-delay 10000
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 62
General Deployment
Considerations
Should RSVP-TE and LDP be Used
Simultaneously?
• Guarantees forwarding of VPN traffic if a TE LSP IP/MPLS
fails (Belt and Suspenders)
• Often required if full mesh of TE LSPs not in use
(Swap and Push 2)
• Increased complexity / additional Control Plane
overhead

RSVP TE and LDP

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
How Far should Tunnels Span?
56 TE LSP
• PE-to-PE Tunnels
PE
PE
More granular control on traffic forwarding
PE PE Larger number of TE LSPs

PE PE • P-to-P Tunnels
Requires IP tunnels or LDP over TE tunnels to
PE PE carry VPN traffic (deeper label stack)
Fewer TE LSPs
12 TE LSP May be extended with PE-P tunnels
PE PE

P P
PE PE

PE PE
P P
PE PE

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
Low Latency Routing

• Learn Latency via IP SLA


DC
• TE metric to reflect latency
30ms
• Latency Sensitive Apps / LA
50ms
Customers use low latency
LSPs (i.e. TE metric) 10ms
20ms

• Non-Latency Sensitive Apps


10ms

/ Customers leverage longer


paths with available BW
(i.e. IGP metric)

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 66
TE Metric (Administrative Weight) Configuration
IOS XE
interface Tunnel1
description Low-Latency-TO-DST1
ip unnumbered Loopback0
tunnel destination 172.16.255.3
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng priority 0 0
tunnel mpls traffic-eng bandwidth 10000
tunnel mpls traffic-eng affinity 0x0 mask 0xF
tunnel mpls traffic-eng path-option 10 dynamic
tunnel mpls traffic-eng path-selection metric te
Set Tunnel to use TE metric for path selection
!
(default is metric IGP)
interface GigabitEthernet1/0
ip address 10.10.10.1 255.255.255.252
ip ospf network point-to-point
ip ospf cost 1000
mpls traffic-eng tunnels
mpls traffic-eng administrative-weight 50 Set TE Metric Lower than IGP cost
ip rsvp bandwidth 1000000 1000000

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 67
Forwarding Traffic
Autoroute Announce
Tunnel destination
and downstream
Install B, C, D with tunnel prefixes
as output interface and
shortest path metric.
D
 Prefixes installed in RIB with tunnel
Tunnel destination MUST
be along shortest path. as output interface if tunnel
B
destination along shortest path
A
C  Binds Next Hop of Tunnel tail to the
Tunnel
Tunnel Tunnel
head end Eth0

Y
 Prefixes installed with IGP shortest
path metric
RIB
Z
 Supported for IS-IS and OSPF
Prefix Next Hop Metric Out Interface TE Tunnel
B B 30 Tunnel
IGP Shortest
C B 40 Tunnel path tree
D B 40 Tunnel
Z Y 20 Ethernet0
: : : :

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
Class-Based Tunnel Selection
• EXP-based selection between multiple Tunnel1
Tunnel2
Tunnel10 Prefix1
tunnels to same destination
Tunnel3
• Local mechanism at head-end (no IGP Tunnel4 Tunnel20 Prefix2
Tunnel5
extensions)
Tunnel6
• Tunnel master bundles tunnel members Tunnel7
Tunnel30 Prefix3

• Tunnel selection configured on tunnel


master (auto-route, etc.) FIB Tunnel Bundle
Prefix1 Tunnel10
• Bundle members configured with EXP Prefix2 Tunnel20
values to carry Prefix3 Tunnel30

Master (Tunnel10)

Member (Tunnel1)

Member (Tunnel2)

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Configuring CBTS (Cisco IOS XE)
interface Tunnel1
ip unnumbered Loopback0 Tunnel1 will carry packets marked EXP 5
tunnel destination 172.16.255.2
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng bandwidth 50000 class-type 1
tunnel mpls traffic-eng path-option 10 dynamic
tunnel mpls traffic-eng exp 5
!
interface Tunnel2 Tunnel2 will carry packets with markings that
ip unnumbered Loopback0
tunnel destination 172.16.255.2 are NOT EXP 5
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng bandwidth 100000 class-type 0
tunnel mpls traffic-eng path-option 10 dynamic
tunnel mpls traffic-eng exp default
!
interface Tunnel3 Tunnel3 defined as bundle master with
ip unnumbered Loopback0 Tunnel1 and Tunne2 as members
tunnel destination 172.16.255.2
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng exp-bundle master
tunnel mpls traffic-eng exp-bundle member Tunnel1
tunnel mpls traffic-eng exp-bundle member Tunnel2
!
ip route 192.168.0.0 255.255.0.0 Tunnel10
CBTS performed on traffic to prefix
! 192.168.0.0/16

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
Policy Based Tunnel Selection
• Mechanism local to Tunnel Head Input policy matches
traffic based on ACL
• PBR policy sets forwarding class for and sets forwarding
class
ingress traffic
PE1 Tunnel-te1000
• Traffic forwarding down Tunnel with Forwarding class 1
matching forwarding class PE2
Tunnel-te2000
• Seven distinct forwarding classes Forwarding class 0
support (1-7) (default)

• One forwarding class reserved as


default (0)

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 72
Configuring PBTS (Cisco IOS XR)
interface tunnel-te1
ipv4 unnumbered Loopback0
autoroute announce
signalled-bandwidth 10000
destination 172.16.255.2
policy-class 5 Tunnel-te1 will carry packets marked EXP 5
path-option 10 explicit name PATH1
path-option 20 dynamic
!
interface tunnel-te2 Tunnel-te2 will carry packets with markings
ipv4 unnumbered Loopback0 that are NOT EXP 5
autoroute announce
signalled-bandwidth 50000
destination 172.16.255.2
path-option 10 explicit name PATH2
path-option 20 dynamic
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 73
Per-Service Tunnel Selection
• Services (L2VPN / L3VPN) generally
Static routing receive a path automatically
mapping
loopback0 • Recursive resolution of BGP next hops
loopback1
loopback2 • Recursive resolution of LDP peers
to specific paths BGP Update Loopback0
Loopback1 • L2VPN provides granular per-tunnel
Loopback2
PE1 control using pseudowire tunnel
PE2 selection
Policy
route-policy INBOUND
if (community matches-any ‘65172:10’) then
• When using BGP (L2VPN, L3VPN, IP):
set forwarding-group 10

• On tail end, add loopback at destination for


elseif (community matches-any ‘65172:20’) then
set forwarding-group 20
endif
end-policy

each service that needs separate forwarding


• On tail end, add policy to modify next-hop
on BGP updates
• On head end, add static route to force BGP
next hops down specific paths
#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 74
Service Path Preference (SPP)
Color • Automatic mechanism for mapping
services to specific TE LSPs
Service LSP
• Path Preference signaled via BGP
community tag
BGP Update
• PE maps color (Forward-Class) to
PE1 received prefix
PE2
• Tunnel with matching Forward-Class is
selected to forward traffic
• Ability to define ordered list of
Forwarding-Classes
• Essentially BGP-driven PSTS

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 75
Configuring Service Path Preference (SPP)
(Cisco IOS XR)
route-policy Class1
if community matches-any (6500:1) then
set forward-class 1 Match tag and set forward-class
end-if
end-policy
!

router bgp 55
bgp router-id 20.0.0.1
address-family ipv4 unicast
table-policy Class1 Enable policy for specific address family
!
!
!
interface tunnel-te1
forward-class 1 Apply forward-class to tunnel interface
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
Centralized Tunnel
Creation and Control
Topological Database Visibility
Stateful PCE

• An external PCE requires some form of LSP DB


topological acquisition PCE
TED
• A PCE may learn topology using BGP-
LS, IGP, SNMP, etc.
BGP-LS
• BGP-LS characteristics
• Aggregates topology across one or more domains RR
• Well understood operational models (e.g. RR)
BGP-LS
• Leverages existing Control Plane BGP-LS
PCC

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 78
Stateful Path Computational Element (PCE)
• PCE maintains topology and path Stateful PCE

database (established paths) LSP DB

• Centralized path computation TED

• Enables centralized control of


path initiation and updates PCEP

• Well suited for SDN deployments


PCC

PCE-initiated
LSP

*Path Computational Client (Router)


*Path Computational Element (Controller)

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 79
PCE-Initiated Tunnels
• Treated as dynamically created tunnels
(auto-tunnel) Stateful PCE

• Router does NOT verify or compute path LSP DB


that PCE provides
• treated as verbatim path TED

• PCE responsible for LSP re-optimization PCEP


Initiate /
• PCE sends an PCEP Update when a Create
better path exists
• Tunnels may be inter-area PCC

• *PCE Initiated tunnel does not appear in


configuration
• “show mpls traffic-eng tunnels”

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 80
Configuring PCC to Accept PCE-Initiated Tunnels
(Cisco IOS XR)
ipv4 unnumbered mpls traffic-eng Loopback0
! Source interface for tunnels
mpls traffic-eng
pce
peer ipv4 172.16.255.3
PCE server
stateful-client
instantiation
delegation Allow PCE to initiate / delegate LSP
!
!
auto-tunnel pcc Range of tunnel-te interfaces for PCE initiated
tunnel-id min 1000 max 5000 LSPs
!
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 81
Summary
Summary
• MPLS TE Overview
• Bandwidth Optimization
• SR-TE Overview
• Traffic Protection (FRR and TiLFA)
• General Deployment Considerations
• Forwarding Traffic
• Centralized Tunnel Creation and Control

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 83
Recommended Reading

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 84
Complete your online session evaluation

Give us your feedback to be entered


into a Daily Survey Drawing.
Complete your session surveys through
the Cisco Live mobile app or on
www.CiscoLive.com/us.
Don’t forget: Cisco Live sessions will be available for viewing
on demand after the event at www.CiscoLive.com/Online.

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 85
Continue
your Demos in
the Cisco
Walk-in
self-paced
Meet the
engineer
Related
sessions
education campus labs 1:1
meetings

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 86
Thank you

#CLUS
#CLUS
Backup
Configuring MPLS TE and Link Information
Distribution Using IS-IS (Cisco NX-OS)
feature isis
feature mpls traffic-eng
Enable MPLS TE on this device
interface Ethernet1/1
mpls traffic-eng tunnels
mpls traffic-eng administrative-weight 20
mpls traffic-eng attribute-flags 0xf Enable MPLS TE on this interface, specify
mpls traffic-eng bandwidth 10000000 attribute flags (colors), TE metric and
no switchport maximum reservable bandwidth
ip address 172.16.0.14/31
ip router isis DEFAULT
no shutdown

router isis DEFAULT


mpls traffic-eng level-2
mpls traffic-eng router-id loopback0 Enable TE extensions (TE Id, router level)
net 49.0001.1720.1625.5202.00
is-type level-2

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 90
Configuring Tunnel at Head End
(Cisco NX-OS)
mpls traffic-eng
explicit-path name PATH1
Explicit path definition
index 10 next-address 172.16.0.15
index 20 next-address 172.16.0.13

interface tunnel-te1 MPLS TE point-to-point tunnel


description FROM-ROUTER-TO-DST1
ip unnumbered loopback0
Tunnel destination
no shutdown
destination 172.16.255.5
Consider links with 0xF/0xF as attribute flags
affinity 0xf mask 0xf (colors)
bandwidth 10000
path-option 10 explicit name PATH1 Signaled bandwidth
path-option 20 dynamic
priority 0 0 Tunnel path options (explicit, otherwise,
dynamic)

Signaled priority
#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 91
Statically Mapping Multicast Groups to a P2MP Tunnel
(Cisco IOS XE)
mpls traffic-eng destination list name P2MP-LIST-DST1
ip 172.16.255.1 path-option 10 explicit name PATH1
Destination list with one path-option per
destination
ip 172.16.255.2 path-option 10 dynamic
ip 172.16.255.3 path-option 10 dynamic
ip 172.16.255.4 path-option 10 dynamic
!
interface Tunnel1
description FROM-ROUTER-TO-LIST-DST1
ip unnumbered Loopback0
ip pim passive Multipcast groups mapped to tunnel
ip igmp static-group 232.0.0.1 source 192.168.5.1
ip igmp static-group 232.0.0.2 source 192.168.5.1 P2MP TE Tunnel
tunnel mode mpls traffic-eng point-to-multipoint
tunnel destination list mpls traffic-eng name P2MP-LIST-DST1
Destination list
tunnel mpls traffic-eng priority 7 7
tunnel mpls traffic-eng bandwidth 1000
! Signaled bandwidth and setup / hold priorities

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
Configuring RPF Check at P2MP Tunnel Tail End
(Cisco IOS XE)
ip multicast mpls traffic-eng
Enable IPv4 multicast over P2MP TE LSP
ip mroute 192.168.5.1 255.255.255.255 172.16.255.5
!
Tunnel source (172.16.255.5) as
next-hop for IP Multicast source
(192.168.5.1) RPF check

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
Statically Mapping Multicast Groups to a P2MP Tunnel
(Cisco IOS XR)
interface tunnel-mte1
ipv4 unnumbered Loopback0 MPLS TE P2MP tunnel
destination 172.16.255.129
path-option 10 explicit name PATH1
path-option 20 dynamic Destination with path-option list
!
destination 172.16.255.130
path-option 10 dynamic
!
Destination with single path-option
priority 0 0
signalled-bandwidth 100000 Signaled bandwidth and setup / hold priorities
!
node-capability label-switched-multicast
multicast-routing Enable MPLS multicast
address-family ipv4
interface tunnel-mte1
enable
! Enable multicast forwarding over tunnel-mte1
interface all enable
!
!
router igmp
vrf default
interface tunnel-mte1
static-group 232.0.0.1 192.168.5.1 Multicast groups mapped to tunnel-mte1
static-group 232.0.0.2 192.168.5.1
!
!
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 94
Configuring RPF Check at P2MP Tunnel Tail End
(Cisco IOS XR)
multicast-routing
address-family ipv4 Enable IPv4/v6 multicast over P2MP TE LSP
core-tree-protocol rsvp-te
static-rpf 192.168.5.1 32 mpls 172.16.255.3
interface all enable Tunnel source (172.16.255.3) as next-hop for
! IP Multicast source (192.168.5.1) RPF check
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
Configuring MPLS TE and Link Information
Distribution Using OSPF (Cisco IOS XE)
mpls traffic-eng tunnels Enable MPLS TE
! on this node
interface TenGigabitEthernet0/1/0
ip address 172.16.0.0 255.255.255.254
Enable MPLS TE
on this interface
mpls traffic-eng tunnels
mpls traffic-eng attribute-flags 0xF Attribute flags
mpls traffic-eng administrative-weight 20
ip rsvp bandwidth 100000 TE metric
! Maximum
router ospf 100 reservable
log-adjacency-changes bandwidth
passive-interface Loopback0
network 172.16.0.0 0.0.255.255 area 0 Enable TE
mpls traffic-eng router-id Loopback0 extensions (TE
mpls traffic-eng area 0 router id and area)
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 96
Configuring MPLS TE and Link Information
Distribution Using IS-IS (Cisco IOS XR)
router isis DEFAULT
is-type level-2-only Enable wide metric
net 49.0001.1720.1625.5129.00 format and TE
address-family ipv4 unicast extensions (TE Id,
metric-style wide
mpls traffic-eng level 2 router level)
mpls traffic-eng router-id Loopback0
! Configuration mode
interface Loopback0 for RSVP global and
passive
address-family ipv4 unicast interface commands
!
! Maximum
interface TenGigE0/0/0/0 reservable
address-family ipv4 unicast bandwidth
!
!
! Configuration mode
rsvp for MPLS TE global
interface TenGigE0/0/0/0 and interface
bandwidth 100000
! commands
!
mpls traffic-eng TE metric
interface TenGigE0/0/0/0
admin-weight 5 Attribute flags
attribute-flags 0x8
!
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 97
Configuring DS-TE Classes and Bandwidth
Constraints (Cisco IOS)
RDM
mpls traffic-eng tunnels
mpls traffic-eng ds-te mode ietf Enable IETF DS-TE
mpls traffic-eng ds-te te-classes
te-class 0 class-type 1 priority 0
te-class 1 class-type 1 priority 1
te-class 2 class-type 1 priority 2 Explicit TE-Class definition
te-class 3 class-type 1 priority 3
te-class 4 class-type 0 priority 4
te-class 5 class-type 0 priority 5
te-class 6 class-type 0 priority 6
RDM bandwidth
te-class 7 class-type 0 priority 7 constraints
!
interface TenGigabitEthernet0/1/0
ip address 172.16.0.0 255.255.255.254
mpls traffic-eng tunnels
ip rsvp bandwidth rdm bc0 155000 bc1 55000
!

MAM Enable IETF DS-TE and


use default TE-Class
mpls traffic-eng tunnels definition
mpls traffic-eng ds-te mode ietf
mpl traffic-eng ds-te bc-model mam
!
Enable MAM
interface TenGigabitEthernet0/1/0 MAM bandwidth
ip address 172.16.0.0 255.255.255.254
constraints
mpls traffic-eng tunnels
ip rsvp bandwidth mam max-reservable-bw 155000 bc0 100000 bc1 55000
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 98
Configuring DS-TE Tunnel (Cisco IOS)
Signal Tunnel1
interface Tunnel1 with CT0 (priority
description FROM-ROUTER-TO-DST1-CT0
ip unnumbered Loopback0 and CT must
no ip directed-broadcast match valid TE-
tunnel destination 172.16.255.3 Class)
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng priority 5 5
tunnel mpls traffic-eng bandwidth 100000 class-type 0
tunnel mpls traffic-eng path-option 10 dynamic
!
interface Tunnel2
description FROM-ROUTER-TO-DST1-CT1 Signal Tunnel2
ip unnumbered Loopback0 with CT1 (priority
no ip directed-broadcast and CT must
tunnel destination 172.16.255.3
tunnel mode mpls traffic-eng match valid TE-
tunnel mpls traffic-eng priority 0 0 Class)
tunnel mpls traffic-eng bandwidth 50000 class-type 1
tunnel mpls traffic-eng path-option 10 dynamic
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 99
Configuring DS-TE Classes and Bandwidth
Constraints (Cisco IOS XR)
RDM
rsvp
interface TenGigE0/0/0/0 RDM bandwidth
bandwidth rdm bc0 155000 bc1 55000 constraints
!
!
mpls traffic-eng
interface TenGigE0/0/0/0
!
ds-te mode ietf
ds-te te-classes Enable IETF DS-TE
te-class 0 class-type 1 priority 0
te-class 1 class-type 1 priority 1
te-class 2 class-type 1 priority 2
te-class 3 class-type 1 priority 3
te-class 4 class-type 0 priority 4 Explicit TE-Class
te-class 5 class-type 0 priority 5
te-class 6 class-type 0 priority 6 definition
te-class 7 class-type 0 priority 7
!
!

MAM MAM bandwidth


rsvp
constraints
interface TenGigE0/0/0/0
bandwidth mam max-reservable-bw 155000 bc0 100000 bc1 55000 Enable IETF DS-TE and
!
! use default TE-Class
mpls traffic-eng definition
interface TenGigE0/0/0/0
!
ds-te mode ietf Enable MAM
ds-te bc-model mam
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 100
Configuring DS-TE Tunnels
(Cisco IOS XR)
interface tunnel-te1 Signal tunnel-te1
description FROM-ROUTER-TO-DST1-CT0 with CT0 (priority
ipv4 unnumbered Loopback0
priority 5 5
and CT must match
signalled-bandwidth 100000 class-type 0 valid TE-Class)
destination 172.16.255.2
path-option 10 dynamic
!
interface tunnel-te2
description FROM-ROUTER-TO-DST1-CT1
ipv4 unnumbered Loopback0
priority 0 0
signalled-bandwidth 50000 class-type 1 Signal tunnel-te2
destination 172.16.255.2 with CT1 (priority
path-option 10 dynamic and CT must match
! valid TE-Class)

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 101
Configuration for PCE-Initiated Tunnels
(Cisco IOS XR)
ipv4 unnumbered mpls traffic-eng Loopback0
! Source interface for tunnels
mpls traffic-eng
pce
peer ipv4 172.16.255.3
PCE server
stateful-client
instantiation
delegation
Allow PCE-initiated LSP
!
!
auto-tunnel pcc
tunnel-id min 1000 max 5000 Range of tunnel-te interfaces for PCE initiated
! LSPs
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 102
Configuring Tunnel-based Admission Control
(Cisco IOS XE)
interface Tunnel1 Signaled bandwidth
ip unnumbered Loopback0
tunnel destination 172.16.255.2 RSVP local policy (200
tunnel mode mpls traffic-eng flows max, 1Mbps per
tunnel mpls traffic-eng autoroute announce flow max)
tunnel mpls traffic-eng priority 7 7
Maximum reservable
tunnel mpls traffic-eng bandwidth 100000
bandwidth
tunnel mpls traffic-eng path-option 10 dynamic
ip rsvp policy local default
Interface QoS policy
maximum senders 200
(DiffServ)
maximum bandwidth single 1000
forward all Maximum reservable
ip rsvp bandwidth 100000 bandwidth
!
interface GigabitEthernet3/3/0 Act as RSVP receiver
ip address 192.168.0.1 255.255.255.254 proxy on this interface
service-policy output OUT-POLICY
ip rsvp bandwidth percent 10 No RSVP flow
ip rsvp listener outbound reply classification
ip rsvp data-packet classification none
ip rsvp resource-provider none No RSVP flow queuing
!
ip rsvp qos Enable per-flow RSVP
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 103
Configuring Path Enhanced Protection
(Cisco IOS XE)
List of standby
mpls traffic-eng path-option list name PATH-LST
path-option 10 explicit name PE1-P3-P4-PE2
paths
path-option 20 explicit name PE1-P5-P6-PE2
path-option 30 explicit name PE1-P7-P8-PE2
!
interface Tunnel1
ip unnumbered Loopback0
tunnel mode mpls traffic-eng
tunnel destination 172.16.255.2
tunnel mpls traffic-eng autoroute announce Use path list to
tunnel mpls traffic-eng path-option 10 explicit name PE1-P1-P2-PE2 protect primary
tunnel mpls traffic-eng path-option protect 10 list name PATH-LST path
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 104
Configuring Inter-Area Tunnels
(Cisco IOS XE)
mpls traffic-eng tunnels
!
interface Tunnel1 Loose-hop path
ip unnumbered Loopback0
no ip directed-broadcast
tunnel destination 172.16.255.7
tunnel mode mpls traffic-eng Static route mapping
tunnel mpls traffic-eng path-option 10 explicit name LOOSE-PATH IP traffic to Tunnel1
!
ip route 172.16.255.7 255.255.255.255 Tunnel1
!
ip explicit-path name LOOSE-PATH enable List of ABRs as
next-address loose 172.16.255.3 loose hops
next-address loose 172.16.255.5
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 105
Configuring Inter-Area Tunnels with Autoroute
Destinations (Cisco IOS XE)
interface Tunnel1 Create static route
ip unnumbered Loopback0 to tunnel destination
tunnel mode mpls traffic-eng (172.16.255.7)
tunnel destination 172.16.255.7
tunnel mpls traffic-eng autoroute destination
tunnel mpls traffic-eng path-option 10 explicit name LOOSE-PATH Loose-hop path
!
ip explicit-path name LOOSE-PATH enable
next-address loose 172.16.255.3 List of ABRs as
next-address loose 172.16.255.5 loose hops
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 106
Configuring Inter-Area Tunnels
(Cisco IOS XR)
explicit-path name LOOSE-PATH List of ABRs as
index 1 next-address loose ipv4 unicast 172.16.255.129 loose hops
index 2 next-address loose ipv4 unicast 172.16.255.131
!
interface tunnel-te1 Loose-hop path
description FROM-ROUTER-TO-DST3
ipv4 unnumbered Loopback0
destination 172.16.255.2
Static route
path-option 10 explicit name LOOSE-PATH
mapping IP traffic
!
to tunnel-te1
router static
address-family ipv4 unicast
172.16.255.2/32 tunnel-te1
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 107
Configuring Inter-AS Tunnels
(Cisco IOS XE)
mpls traffic-eng tunnels
Loose-hop path
!
interface Tunnel1
ip unnumbered Loopback0 Static route
no ip directed-broadcast mapping IP traffic to
tunnel destination 172.31.255.5 Tunnel1
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng priority 7 7
tunnel mpls traffic-eng bandwidth 1000 List of ASBRs as
tunnel mpls traffic-eng path-option 10 explicit name LOOSE-PATH loose hops
!
ip route 172.31.255.5 255.255.255.255 Tunnel1
!
ip explicit-path name LOOSE-PATH enable
next-address loose 172.24.255.1
next-address loose 172.31.255.1
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 108
Configuring Inter-AS TE at ASBR
(Cisco IOS XE)
mpls traffic-eng tunnels Authentication key
!
key chain A-ASBR1-key
key 1
key-string 7 151E0E18092F222A
! Add ASBR link to TE
interface Serial1/0 topology database
ip address 192.168.0.1 255.255.255.252
mpls traffic-eng tunnels
mpls traffic-eng passive-interface nbr-te-id 172.16.255.4 nbr-igp-id ospf
172.16.255.4
Enable RSVP
ip rsvp bandwidth
ip rsvp authentication key-chain A-ASBR1-key
authentication
ip rsvp authentication type sha-1
ip rsvp authentication
!
router bgp 65024
no synchronization Process signaling from
bgp log-neighbor-changes
AS 65016 if FRR not
neighbor 172.24.255.3 remote-as 65024
neighbor 172.24.255.3 update-source Loopback0
requested and 10M or
neighbor 192.168.0.2 remote-as 65016
less
no auto-summary
!
ip rsvp policy local origin-as 65016
no fast-reroute
maximum bandwidth single 10000
forward all
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 109
Configuring MPLS TE and LDP Simultaneously
(Cisco IOS XE)
Enable LDP
mpls label protocol ldp
mpls traffic-eng tunnels Enable MPLS TE
!
interface TenGigabitEthernet0/1/0
ip address 172.16.0.0 255.255.255.254 Enable MPLS TE on
mpls traffic-eng tunnels
interface
mpls ip Enable MPLS
ip rsvp bandwidth 155000 forwarding for IP
! (LDP)

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 110
Configuring MPLS TE and LDP Simultaneously
(Cisco IOS XR)
rsvp Configuration mode
interface TenGigE0/0/0/0
for RSVP global and
interface commands
bandwidth 155000
!
! Configuration mode
mpls traffic-eng for MPLS TE global
interface TenGigE0/0/0/0 and interface
! commands
!
mpls ldp
interface TenGigE0/0/0/0
Configuration mode
!
for LDP global and
! interface commands

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 111
Configuring LDP Over a TE Tunnel
(Cisco IOS XE)
mpls label protocol ldp
Enable LDP
mpls traffic-eng tunnels
!
interface Tunnel1
ip unnumbered Loopback0
mpls ip Enable MPLS
tunnel destination 172.16.255.3 forwarding for IP
tunnel mode mpls traffic-eng (LDP) on Tunnel1
tunnel mpls traffic-eng autoroute announce
tunnel mpls traffic-eng path-option 10 dynamic
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 112
Configuring LDP Over a TE Tunnel (Cisco IOS XR)
interface tunnel-te1
ipv4 unnumbered Loopback0
priority 0 0
signalled-bandwidth 80000
autoroute announce
destination 172.16.255.130
path-option 10 dynamic
!
rsvp
interface TenGigE0/0/0/1
bandwidth 155000
!
!
mpls traffic-eng
Enable LDP
interface TenGigE0/0/0/1
!
!
mpls ldp
Enable LDP on
interface TenGigE0/0/0/0 tunnel-te1
!
interface tunnel-te1
!
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 113
MPLS TE on Ethernet Bundle (Cisco IOS XE)
Enable MPLS TE on this
interface Port-channel1 interface
ip address 172.16.0.0 255.255.255.254
mpls traffic-eng tunnels Attribute flags
mpls traffic-eng attribute-flags 0xF TE metric
mpls traffic-eng administrative-weight 20
ip rsvp bandwidth percent 100 Maximum reservable
bandwidth (100% of total
! bundle bandwidth)
interface GigabitEthernet2/0/0
no ip address LACP as channel protocol
channel-protocol lacp
channel-group 1 mode active Associate with Port-
! channel1 and enable
LACP (non-passive)
interface GigabitEthernet2/0/1
no ip address LACP as channel protocol
channel-protocol lacp
channel-group 1 mode active Associate with Port-
channel1 and enable
! LACP (non-passive)

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 114
MPLS TE on Ethernet Bundle (Cisco IOS XR)
interface Bundle-Ether1
Interface for bundle id 1
ipv4 address 172.16.0.1 255.255.255.254
!
interface GigabitEthernet0/1/0/0
bundle id 1 mode active
Associate with bundle id
negotiation auto 1 (Bundle-Ether1) and
! enable LACP (non-
interface GigabitEthernet0/1/0/1
bundle id 1 mode active passive)
negotiation auto
!
router ospf 172
area 0 Associate with bundle id
mpls traffic-eng
interface Bundle-Ether1
1 (Bundle-Ether1) and
network point-to-point enable LACP (non-
! passive)
interface Loopback0
passive enable
!
!
mpls traffic-eng router-id Loopback0 Enable OSPF on bundle
!
rsvp
interface Bundle-Ether1
bandwidth 2000000 Maximum reservable
! bandwidth on bundle
!
mpls traffic-eng
interface Bundle-Ether1
! Enable MPLS TE on
! bundle

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 115
Per-VRF Tunnel Selection (Cisco IOS XE)
ip vrf RED Loopback1
rd 65172:2 advertised as next
route-target export 65172:2 hop for VRF RED
route-target import 65172:2
bgp next-hop Loopback1
!
interface Loopback0
ip address 172.16.255.1 255.255.255.255
!
interface Loopback1
ip address 172.16.255.101 255.255.255.255
!
interface Tunnel1
description FROM-ROUTER-VRF-TO-DST1
ip unnumbered Loopback0 Remote next hop
tunnel destination 172.16.255.2 mapped to Tunnel1
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng path-option 10 dynamic
!
ip route 172.16.255.102 255.255.255.255 Tunnel1
!

#CLUS BRKMPL-2100 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 116

You might also like