BRKRST 3009
BRKRST 3009
Segment Routing
How
1. Find this session in the Cisco Live Mobile App
2. Click “Join the Discussion”
3. Install Spark or go directly to the space
4. Enter messages/questions in the space
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public
Agenda
• Introduction
• Segment Routing (SR) Recap
• Troubleshooting Control Plane
• Troubleshooting Data Plane
• SR Traffic Engineering (SR-TE)
• ODN
• Ti-LFA
• Micro-loop avoidance
• PCEP (XTC)
• SR BGP EPE
• SR OAM
• Key Takeaways
Introduction
Before We Get Started
• Fair basic knowledge on SR is required
• MPLS and IPv6 in data plane
• This presentation only covers MPLS
• All is IOS-XR
• Latest and greatest
• Similar in IOS
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
Stay Up-To-Date
http://www.segment-routing.net/
https://www.linkedin.com/groups/8266623
https://twitter.com/SegmentRouting
https://www.facebook.com/SegmentRouting/
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
Introduction
• A segment is an instruction
• with MPLS forwarding: segment = label
• Forwarding is done by MPLS or IPv6
• This session only covers MPLS
• Link-state protocol is needed to advertise
• Segments (Prefix-SID, Adjacency-SID)
• MPLS Label
16099 Prefix-SID
24001 24001 Loopback0
16007 16007 Label 16099
Segment 1
CE1 PE1 P1 P2 P3 P4
16007 Prefix-SID
Loopback0
Label 16007
Prefix-SIDs are global labels
P5 P6 P7 PE2 CE2
Adj-SIDs are local labels
Segment 3 16007
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
Troubleshooting – Control Plane
Bringing up Segment Routing
router isis 1
Enable SR for all areas router ospf 1
net 49.0001.0000.0000.0001.00 metric-style wide segment-routing mpls
address-family ipv4 unicast must be enabled segment-routing forwarding mpls ! On by default
metric-style wide area 0
segment-routing mpls Enable SR interface Loopback0
Enable SR on all forwarding on !
IS-IS IPv4 interfaces interface GigabitEthernet0/0/0/0
interfaces !
Disable SR for area 1 area 1
segment-routing forwarding disable
Disable SR forwarding segment-routing disable
on area 1 interfaces
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
Verify SRGB Block
Default SR Global Block: 16,000 – 23,999 (size 8,000)
Dynamic label range: 24,000 – 1,048,575
RP/0/0/CPU0:PE1# show mpls label table detail
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
IGP – LS Database
RP/0/0/CPU0:PE1# show isis database level 2 verbose P1.00 Regular LSP header
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
Example of E Flag
16003 0 router isis 1
16009 16009 is-type level-1
leak L2 into L1 net 49.0002.0000.0000.0003.00
payload payload address-family ipv4 unicast
10.100.1.3 metric-style wide
mpls traffic-eng level-1
mpls traffic-eng router-id Loopback0
PE1 P1 ABR1 ABR3 P3 PE3 router-id Loopback0
segment-routing mpls
area 49.0001 area 49.0002 !
interface Loopback0
address-family ipv4 unicast
Level-1 Level-2 Level-1
prefix-sid index 3 explicit-null
!
App Mgr:
gbl_nsf_rw_to=1800s (max=1800s)
bgp_hi_pri_bitset=0x0
static_hi_pri_bitset=0x4
Label Mgr:
4 zombie labels lbls=8020, ctxs=8016
zombie=4 (mldp total/hold=0/0), reclaimed=12, re-purposed=0
zombie pool of labels GLRT=Stopped
bottom_up_mode=1, alloc_threshold=6000
4 zombie labels Zombie pools: idx=34; tmr expiring in 24 sec
pool[32] expires within 1800 secs: 4 lbls (0 mldp)
expiry of labels in 30 min …
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
Troubleshooting – Data Plane
SR has Regular MPLS Data Plane
• SR has segments: 1 segment represented by 1 label in MPLS label stack
• SR uses the existing MPLS data plane
• No exceptions
• MPLS label operations:
• Push, Pop, and Swap
• We have
• Special labels {0 - 15}
• PHP (default behavior, also for SR)
• explicit-null for IPv4 and IPv6
• Regular labels {16 - 1048575}
• Static labels {16 - 4095}
• SRGB {16000 - 23999} – Prefix-SIDs
• Dynamic range {24000 - 1048575} – includes Adj-SIDs
• QOS propagation (EXP bits)
• Still uniform model, pipe, and short pipe model
• TTL propagation as usual
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
MPLS Label Operation: Push Label(s)
• Push can occur at ingress of MPLS domain
• MPLS label stack added in CEF (FIB) table
• Top label is SR label; other labels can be service labels (e.g. MPLS VPN, BGP-LU, etc.)
R1 R2 R3 R4
IP MPLS
RP/0/0/CPU0:R1# show route 10.100.1.3/32 RP/0/0/CPU0:R1# show cef …
Routing entry for 10.100.1.3/32 “labeled SR” must be present* 10.100.1.3/32, … labeled SR, …
Known via "isis 1", … , labeled SR, …
Routing Descriptor Blocks via 10.1.12.2/32, GigabitEthernet0/0/0/1,…
10.1.15.5, from 10.100.1.3, via GigabitEthernet0/0/0/0 local label 16003 labels imposed {16003}
Route metric is 60
R1 R2 R3 R4
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
MPLS Label Operation: Pop Label(s)
• Pop occurs at intermediate MPLS (P) router: top label is removed
• By default on penultimate router of one SR segment
• Label stack could become unlabeled
• Label stack can still have other labels
• e.g. when packet is moved from one SR segment to another SR segment
16004 • Top label is popped
16009 16009
payload payload
R1 R2 R3 R4
• PseudoWire traffic is load-balanced by calculating hash over the bottom label (PW
service label)
• Preserving per-flow load balancing
• If many labels are present in label stack and the platform cannot look at/past last
label, there is load balancing on higher label in the stack
Check platform!
* 3- Source IP, Destination IP, Router ID
7- Source IP, Destination IP, Router ID, Source port, Destination port, Protocol, Ingress interface handle
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
Pushing Label Stack at Ingress Router
• Considerations
• MTU
• Platform support
• What matters
• The segment list is normally not large
• Binding-SIDs are used
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
interface Loopback0
ipv4 address 10.100.1.4 255.255.255.255
!
!
ipv4 address 10.100.2.4 255.255.255.255
interface Loopback2
ipv4 address 10.100.3.4 255.255.255.255
GE 0/0/0/0 !
interface Loopback3
P1 P2 P3 P4 ipv4 address 10.100.4.4 255.255.255.255
10.1.45.0/24 !
interface GigabitEthernet0/0/0/0
ipv4 address 10.1.45.4 255.255.255.0
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
SR-TE
• Forwarding (legacy)
• Autoroute Announce (AA)
• Autoroute Destination • Automated color-based steering
• Static route
• Access-list Based
Forwarding (ABF)
• Constraints
• Color/affinity
• IGP/TE metric
• Measured latency (future)
• Disjoint paths
• Bandwidth with centralized model
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
Circuit Optimization versus SR Optimization
R3 R3
R1 R2 R5 R6 R1 R2 R5 R6
R4 R4
R7 R8 R7 R8
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
SR Policy
• An SR Policy is identified
through the following tuple:
• The head-end where the policy is instantiated/implemented
• The endpoint (i.e.: the destination of the policy)
• The color (an arbitrary numerical value)
BRKRST-3122 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
Candidate-Path
• 2 options
1. Dynamic: as before with RSVP-TE
2. Explicit:
• SR-TE Policy path can be explicitly specified by configuring an ordered list of IP addresses and/or label values
• The IP addresses in the explicit path will be mapped to label values by the head-end
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
SR-TE Configuration (old) No RSVP-TE
TE Head End router: an SR Policy instantiated from a configured tunnel interface
!
like CLI for RSVP-TE tunnel
interface tunnel-te1
ipv4 unnumbered Loopback0
destination 10.100.1.4 always segment-routing needed
path-option 1 dynamic segment-routing
path-option 2 explicit name PE1-PE2 segment-routing without: try RSVP-TE
!
All SR routers
router isis 1
net 49.0001.0000.0000.0001.00
address-family ipv4 unicast
metric-style wide
Enabling MPLS TE (IGP)
mpls traffic-eng level-2-only
mpls traffic-eng router-id 10.100.1.1
segment-routing mpls
!
mpls traffic-eng
!
segment-routing
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
SR-TE Configuration (new)
SR-TE
segment-routing
traffic-eng SR Policy
policy policy-1
end-point ipv4 1.1.1.4 color 20
binding-sid mpls 1000
candidate-paths
preference 10 Preconfigured path
explicit SID-LIST1
preference 20
dynamic mpls Dynamic path
metric
type latency
affinity
exclude-any red
Preconfigured path
explicit-path name SID-LIST1
index 10 mpls label 16002
index 20 mpls label 30203
index 30 mpls label 16004
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
Verify SR Policy
RP/0/0/CPU0:PE1# show segment-routing traffic-eng policy
SR-TE policy database
---------------------
Name: policy-1 (Color: 20, End-point: 1.1.1.4)
Status:
Admin: up Operational: up for 00:08:19 (since Jun 13 21:18:10.469)
Candidate-paths:
Preference 10:
Dynamic: (inactive)
Weight: 0
Preference 20:
Explicit: segment-list SID-LIST1 (active)
Weight: 0
16002 [Prefix-SID, 1.1.1.2]
30203 [Adjacency-SID, 99.2.3.2 - 99.2.3.3]
16004 [Prefix-SID, 1.1.1.4]
Attributes:
Binding SID: 1000 (configured)
Forward Class: 0
FIB @ headend
Incoming label: 1000
Action: pop and push <16002, 30203, 16004>
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
Explicit path configuration – Rules
• Ensure the path leads all the way to the destination
• SR Policy end-point explicitly included in path
• SR Policy end-point must be reachable (is verified by TE), if configured as
IP address
• When using Prefix-SIDs:
• It’s easy to skip hops
• But Prefix-SID of tail end must be included
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
MPLS-enabled Interfaces
Enabled by SR configuration
under IGP
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
SR-TE Database
RP/0/0/CPU0:PE1# show mpls traffic-eng segment-routing summary
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
SR-TE Database router isis 1
net 49.0001.0000.0000.0004.00
RP/0/0/CPU0:PE1# show mpls traffic-eng segment-routing ? address-family ipv4 unicast
metric-style wide
A.B.C.D Show nodes and prefixes related to IP address. mpls traffic-eng level-2-only
isis Show ISIS areas only mpls traffic-eng router-id 10.100.1.4
link Show information related to Adjacency-SID segment-routing mpls
node Show information based on node ID or system ID
!
ospf Show OSPF areas only
prefix Show the Prefix-SID info
interface Loopback0
summary Show Segment-Routing summary information passive
address-family ipv4 unicast
RP/0/0/CPU0:PE1# show mpls traffic-eng segment-routing prefix-sid absolute 16004
!
IGP[0]:: IS-IS 1 level 2 , Strict SPF Disabled
Nodes:
IGP Id: 0000.0000.0001.00, MPLS TE Id: 10.100.1.1
Segment-Routing: SRGB
TE Node-SID Index: 1i
SRGB Info: Start 16000, Size 8000
link entry
Link[0]:Point-to-Point, Nbr IGP Id:0000.0000.0006.00, Nbr Node Id:14, gen:3501
Frag Id:0, Intf Address:10.1.6.1, Intf Id:0
Segment-Routing Adjacency-SIDs: 2 • Adj-SIDs
Adjacency-SID[0]: 24001, Flags: V, L to Nbr:: IGP Id: 0000.0000.0006.00, MPLS TE Id: 10.100.1.6
Adjacency-SID[1]: 24000, Flags: B, V, L to Nbr:: IGP Id: 0000.0000.0006.00, MPLS TE Id: 10.100.1.6
Nbr Intf Address:10.1.6.6, Nbr Intf Id:0 • Adj-SIDs with Backup
TE Metric:10, IGP Metric:10 flag is only advertised if
Ext Admin Group:
Length: 256 bits LFA is configured (as of
Value : 0x:: 6.2.1)
Attribute Names:
Link[1]:Point-to-Point, Nbr IGP Id:0000.0000.0006.00, Nbr Node Id:14, gen:3502
…
Link[2]:Point-to-Point, Nbr IGP Id:0000.0000.0005.00, Nbr Node Id:13, gen:3503
…
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
Verifying MPLS TE SR Database
RP/0/0/CPU0:PE1# show mpls traffic-eng segment-routing summary
Prefix Information:
10.100.1.1/32, SID index: 1, flags: N
10.100.1.3/32, SID index: 3, flags: R, N, P
10.100.1.4/32, SID index: 4, flags: R, N, P
10.100.1.5/32, SID index: 5, flags: N
10.100.1.6/32, SID index: 6, flags: R, N, P
10.100.1.7/32, SID index: 7, flags: N
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
SR Policy Verification
RP/0/0/CPU0:PE1#show mpls traffic-eng tunnels 1
Forwarding Adjacency
(not supported for SR-
TE)
Autoroute
Announce
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
SR Policy
RP/0/0/CPU0:PE1# show mpls traffic-eng tunnels 1
Segment-Routing Path Info (IS-IS 1 level-2) verify that the SR labels are used
Segment0[Link]: 10.1.2.1 - 10.1.2.5, Label: 24005
Segment1[Link]: 10.1.9.5 - 10.1.9.7, Label: 24019
Segment2[Link]: 10.1.26.7 - 10.1.26.4, Label: 24035
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
SR Policy Not Functional
• Inactive policy
• No valid path found
• Unreachable
• The headend has no path to the SID in its SR-TE database
• Invalid path
• A Path is invalid as soon as it has no valid SID list
Weight 1
SR Policy Selected Path 6
1
SID-list2:
3 5
{16006}
Weight 4 4/5
of load SID-list: Default IGP link cost: 10
{16006}
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
Min-metric with Margin
• Headend computes a SID list whose segment-routing
cumulated optimized metric is within traffic-eng
policy Policy_1
range of the [shortest-path metric, end-point ipv4 10.1.1.3 color 20
shortest-path metric + margin] binding-sid mpls 1000
candidate-paths
• Margin is expressed in absolute or relative preference 50
value dynamic mpls
metric
• If this is not possible because of the type te
number of SIDs constraint, then the margin 5
solution SID list minimizes the optimized sid-limit 6
metric while meeting the maximum
number of SIDs constraints
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
SR-TE to RSVP-TE SR-TE
segment 1
RSVP-TE
Tunnel
PE1
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
Service Disjointness from same headend
SID-list:
segment-routing
<16002, 30203, 16007> traffic-eng
policy POLICY1
IGP link cost: 100 end-point ipv4 10.1.1.7 color 100
2 5 candidate-paths
preference 50
dynamic mpls
metric
1 4 7
type igp
association group 1 type node
3 6 policy POLICY2
IGP link cost: 100 end-point ipv4 10.1.1.7 color 200
candidate-paths
SID-list: preference 50
<16003, 16006, 16007> dynamic mpls
Default IGP link cost: 10 metric
type igp
association group 1 type node
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
ODN
On-demand Next-hop (ODN)
BGP
• Automated SR-TE Policy
PCEP PCE S-RR
• Inter-AS & Seamless MPLS: no need
for BGP-LU (RFC3107)
• SLA-aware BGP service
PE1 P1 ABR1 ABR3 P3 PE3
area 1 area 2
• On-demand Next-hop automates and simplifies the service head end configuration
• No SR-TE config on the head end router
• No complex/explicit steering on the service head end for the service
• For example: no autoroute-announce, no static routes
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 51
ODN – On-demand SR Policy
• A service head-end automatically instantiates an SR Policy
to a BGP nhop when required (on-demand), automatically
steering the BGP traffic into this SR Policy
• Color community is used as SLA indicator
• Reminder: an SR policy is defined (endpoint, color)
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
ODN Workflow
3 2
4
RD:10.5.5.1/32 RD:10.5.5.1/32
Next-hop PE2 Next-hop PE2
Next-hop PE2
VPN Label VPN Label
ext-comm (color)
Ext-comm (color) Ext-comm (color)
?
S-RR
5 1
10.5.5.1/32
Instantiate SR
Policy for P1 P2
(endpoint, color)
6
P3 BGP tags
prefixes with
Update FIB table ext comm
for 10.5.5.1/32
(color)
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
ODN Gotcha’s
• Configure “ipv4 unnumbered mpls traffic-eng Loopback0”
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
SR Policy Example at Headend
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
ODN Troubleshooting
vpn prefix
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
Service Route
RP/0/0/CPU0:PE1# show bgp vpnv4 unicast rd 65000:4 10.2.100.4/32
…
10.100.1.4 T:attributes-profile-1 (metric 7) from 10.100.1.14 (10.100.1.4)
Received Label 24006
Origin incomplete, metric 0, localpref 100, valid, internal, best, group-best, import-candidate, not-in-vrf
Received Path ID 0, Local Path ID 0, version 13
Extended community: RT:100:100
Originator: 10.100.1.4, Cluster list: 10.100.1.14
TE tunnel attribute-set attributes-profile-1, up, registered, binding-label 24007, if-handle 0x000000d0
10.2.100.4/32, version 6, internal 0x5000001 0x0 (ptr 0xa130f054) [1], 0x0 (0x0), 0x208 (0xa1547488)
Prefix Len 32, traffic index 0, precedence n/a, priority 3
via local-label 24007, 3 dependencies, recursive [flags 0x6000]
path-idx 0 NHID 0x0 [0xa15b0b8c 0x0]
recursion-via-label
next hop VRF - 'default', table - 0xe0000000 Display of resolved path
next hop via 24007/0/21
next hop tt2000 labels imposed {ImplNull 24006}
next hop points to the interface service label (is VPN label here)
representing the SR Policy
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
SR-TE Path
RP/0/0/CPU0:PE1# show mpls traffic-eng tunnels 2000
path option 10, (Segment-Routing) type dynamic pce (Basis for Setup, path weight 6)
…
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
Ti-LFA Uses PC Path
No Ti-LFA:
Backup R5 Even if Remote-LFA (targeted LDP) is
Direct used with LFA
LFA Directly connected LFA is preferred over
100 100
Remote LFA (can be tweaked with tie-
breakers)
R1
10 R2 D
primary
10 10
With Ti-LFA:
Backup 10
Ti-LFA uses PC
R3 R4
Ti-LFA
PC
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
Remote LFA
No Ti-LFA:
2 PQ candidates, at equal cost from R3 PQ node closest to calculating router is
chosen
Here: 2 PQ candidates
If R5 is the PQ node: backup traffic is not
R5
10
R6
on PC
R4
PC R1
10 R2 D
10 100 primary
With Ti-LFA:
R3 Ti-LFA uses PC
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 62
Topology Independent LFA (Ti-LFA)
• Must have LFA enabled!
• Must have Ti-LFA enabled
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 63
What is Protected?
• Prefix-SID prefix:
• Ti-LFA backup
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
Protected/Non-Protected Adj-SID for SR-TE
• For each adjacency two Adj-SIDs can be advertised
• Adj-SID with Backup-flag = 1 (only advertised if Ti-LFA is configured)
• This adj-SID may be protected
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
Protected/Non-Protected Adj-SID
RP/0/0/CPU0:R1# show isis database R1.00-00 verbose
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 66
Ti-LFA Protecting Adj-SID
RP/0/0/CPU0:PE1# show isis adjacency GigabitEthernet 0/0/0/0 detail
PQ
P Q
P space of Router S Q space of Router E
PQ
PQ
Common router
P&Q
BRKRST-30009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 68
TI-LFA Selection Preference
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
TI-LFA Troubleshooting
• show route <prefix>
• Check for protected/backup path (!)
• “Labeled SR” must be present
• Check outgoing interfaces
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Ti-LFA Protection Examples
10 10 10 10
PE1 P1 P5 P7 P3
Prefix-SID 5
10
10 10 10 10
10
10.100.1.10/32 10.100.1.13/32 10.100.1.8/32
10 10 10 100
PE2 P2 P6 P8 P4
Prefix-SID 7 Prefix-SID 10 Prefix-SID 13 Prefix-SID 8
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
TI-LFA – 0-Segment Example
primary
10.100.1.5/32 10.100.1.9/32 10.100.1.12/32
RIB
10 10 10 10
RP/0/0/CPU0:PE1# show route 10.100.1.5/32
PE1 P1 P5 P7 P3
Routing entry for 10.100.1.5/32
Prefix-SID 5
Known via "isis 1", distance 115, metric 20, labeled SR, type level-1
backup 10 Routing Descriptor Blocks
10 10 10 10.1.15.5, from 10.100.1.5,
10 via GigabitEthernet0/0/0/0, Protected
Route metric is 20
10 10.1.12.2, from 10.100.1.5, via GigabitEthernet0/0/0/1, Backup
10.100.1.10/32 10.100.1.13/32 10.100.1.8/32
Route metric is 30
10 10 10 100
PE2 P2 P6 P8 P4
Prefix-SID 7 Prefix-SID 10 Prefix-SID 13 Prefix-SID 8
RIB 10 10 10 10
PE1 P1 P5 P7 P3
RP/0/0/CPU0:P1# show route 10.100.1.9/32
Prefix-SID 5
Routing entry for 10.100.1.9/32
Known via "isis 1", distance 115, metric 20, labeled SR, type level-110
Routing Descriptor Blocks 10 10 10 10
10.1.59.9, from 10.100.1.9, via GigabitEthernet0/0/0/1, Protected backup
Route metric is 20 10
10.1.57.7, from 10.100.1.9, via GigabitEthernet0/0/0/2, Backup (remote) 10.100.1.10/32 10.100.1.13/32 10.100.1.8/32
Remote LFA is 10.100.1.10 P
Route metric is 0 10 10 10 100
PE2 P2 P6 P8 P4
Prefix-SID 7 Prefix-SID 10 Prefix-SID 13 Prefix-SID 8
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 75
TI-LFA – Triple (and more)-Segment - Solution
10.100.1.5/32 10.100.1.9/32 10.100.1.12/32 10.100.1.6/32
Q
10 10 10 10
PE1 P1 P5 P7 P3
IOS-XR needs internal SR policy when 10
Prefix-SID 5
asymmetric
Prefix-SID 6
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
TI-LFA – Triple-Segment
RIB 10.100.1.5/32 10.100.1.9/32 10.100.1.12/32 10.100.1.6/32
RP/0/0/CPU0:P5# show route 10.100.1.12/32 Q
Routing entry for 10.100.1.12/32 10 10 10 10
PE1 P1 P5 P7 P3
Known via "isis 1", distance 115, metric 20, labeled SR, type level-1 Prefix-SID 5
Routing Descriptor Blocks Prefix-SID 6
10 asymmetric
10.1.129.12, from 10.100.1.12, via GigabitEthernet0/0/0/1, Protected 10
Route metric is 20 10 10 10 backup link costs
directly connected, via tunnel-te2002, Backup (Local-LFA) 100
Route metric is 240 10
10.100.1.10/32 10.100.1.13/32 10.100.1.8/32
No advertising protos.
P Q
10 10 10 100 10
PE2 P2 P6 P8 P4
Prefix-SID 7 Prefix-SID 10 Prefix-SID 13 Prefix-SID 8
SR Policy
RP/0/0/CPU0:P5# show mpls traffic-eng tunnels 2002
path option 10, (verbatim Segment-Routing) type explicit (_te2002) (Basis for Setup)
G-PID: 0x0800 (derived from egress interface properties)
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 78
Microloop Avoidance
Microloop Avoidance
• Microloops =
• Traffic moved to PC paths can suffer from microloops
• Microloops are the result of difference of convergence on different routers
• If faster converged router send traffic to not-yet converged router, the result
is a microloop until slower router has converged
10
R2 R3
10 10
10
R1 10 R4 R9
30
40
R5 R6
microloop
Fast Slower
convergence convergence
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 80
Microloop Avoidance: Old and New
• Before Ti-LFA
• Microloop avoidance
• Only for local link-down event
• Microloop avoidance = “use backup path in case of local link-down” + “transition to
PC with a delay”
• Does not address all microloops
• Enabled automatically when Remote LFA is enabled (not needed when directly
connected LFA is available)
10
R2 R3
10 10
No directly connected LFA 1
10
R1 2 R4 R7
Only Remote LFA 10 30
3 40
R5 R6
microloop 10 50
avoided
30
R10 R11
PQ
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 82
Microloop Avoidance - New Remote link-down event
* Includes link cost increase
• Local and remote – link-down and link-up events
• Microloop avoidance = {
• Stage 1: At time of learning remote event: compute forced SR path over new PC
• Stage 2: Regular convergence (same path as stage 1) }
16007
Prefix-SID R6 10
16006 R2 R3
28097 Adj-SID R6-R4 10 10
1 near
16007 10
Prefix-SID R7 R1 2 R4 R7
10 30
3 40 far
microloop 16006 R5 R6 16007
avoided 10
28097 28097 50
16007
16007 16007
30
R10 R11
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 83
Microloop Avoidance - New Remote link-up event
* Includes link cost decrease
• Local and remote – link-down and link-up events
• Microloop avoidance = {
• Stage 1: At time of learning remote event: compute forced SR path over new PC
• Stage 2: Regular convergence (same path as stage 1) }
28098
16003 16007
Prefix-SID R3 16007
16003 28098
microloop 10
28098 Adj-SID R3-R4 avoided 16007 16007
R2 R3
16007 10 10
Prefix-SID R7 1 near
10
R1 2 R4 R7
10 30
3 40 far
R5 R6
10 50
16007
30
R10 R11
• Existing command for RIB update delay is used for both local and SR
microloop avoidance feature
microloop avoidance rib-update-delay <delay> Default 5 seconds
IS-IS Router: 1
System Id: 0000.0000.0001
Most recent startup mode: Cold Restart
Topologies supported by IS-IS:
IPv4 Unicast
Wait for RIB redistribution complete
Level-2
Metric style (generate/accept): Wide/Wide
Metric: 10
ISPF status: Disabled
Microloop avoidance: Enabled
Configuration: Type: Segment routing, RIB update delay: 60000 msec
State: Active, Duration: 4129 ms, Event Link down, Near: R3.00 Far: R4.00
No protocols redistributed
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 86
Microloop Avoidance Active
RP/0/0/CPU0:R1# show cef 10.100.1.7
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 87
Microloop Avoidance Debug
debug isis segment-routing microloop-avoidance (detail)
isis[1010]: Standard (IPv4 Unicast) L2 FSPF SR-ULOOP: Uloop ON, start evaluation
isis[1010]: Standard (IPv4 Unicast) L2 FSPF SR-ULOOP: Evaluate added link R3.00-R4 (metric 10)
isis[1010]: Standard (IPv4 Unicast) L2 FSPF SR-ULOOP: Unusable R4.00: participant Y overloaded N metric 4294967295 link N
isis[1010]: Standard (IPv4 Unicast) L2 FSPF SR-ULOOP: Unusable link R3.00-R4.00. Event Up
isis[1010]: Standard (IPv4 Unicast) L2 FSPF SR-ULOOP: Evaluated added link R3.00-R4. NULL-NULL-NULL. Links 0 (metric 0)
…
isis[1010]: Standard (IPv4 Unicast) L2 FSPF SR-ULOOP: SPF starts with SR ULOOP. Link R3.00-R4.00, UP
…
isis[1010]: Standard (IPv4 Unicast) L2 FSPF SR-ULOOP: Node R4.00 is p2p far end. Add P/Q nodes R3.00/R4.00
…
te_control[1049]: %ROUTING-MPLS_TE-5-LSP_UPDOWN : tunnel-te1010 (signalled-name: auto_R1_t1010, LSP Id: 2) state changed to up
isis[1010]: IPv4 Unicast SR-ULOOP PFX 10.100.1.4/32: 1 path(s) updated with tt1010. Pfx downloadble
isis[1010]: IPv4 Unicast SR-ULOOP PFX 10.100.1.7/32: 1 path(s) updated with tt1010. Pfx downloadble
…
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 88
PCEP-Controller (XTC)
SR-TE Policy path
Path Computation Element TED = Traffic Engineering Database
domains Stateful 7 8 9
PCE
TED 3 4 5
IGP,
BGP-LS, ...
1 2 6 10
7 8 9
Requesting Stateful 7 8 9
7 8 9
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 91
Deployment Topology
16003 18001
PCE PCE SR
SR
PCE
20002 20001
PCE
18011
PCE SR SR
16011
SR
PCE
16013
PCE PCE
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
XTC/PCE
pce
address ipv4 10.100.1.11
Local LS There is no need for
router ospf 1 BGP-LS sessions
distribute link-state instance-id 33
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
Path Computation Client (PCC)
SR Policy on PCC
SR-TE is used
mpls traffic-eng segment-routing
pce traffic-eng
peer source ipv4 10.100.1.1 policy POLICY1
Lower precedence is end-point ipv4 1.1.1.3 color 20
peer ipv4 10.100.1.11
more preferred PCE candidate-paths
precedence 0
! preference 50
peer ipv4 10.100.1.19 dynamic mpls Path computed by PCE
precedence 10 pce
No constraints in this
! PCC does SR metric
example
segment-routing type igp
logging events peer-status PCC is stateful
stateful-client router ospf 1
router-id 10.100.1.1
segment-routing mpls
area 0
interface Loopback0
prefix-sid absolute 16001
• Intermediate router must have MPLS TE enabled, so that TE attributes are sent to PCE
• MPLS TE globally enabled and under IGP
• No RSVP!
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 94
PCEP Session Verification - PCE
RP/0/0/CPU0:PCE# show pce ipv4 peer RP/0/0/CPU0:PCE# show pce ipv4 peer detail
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
PCEP Session Verification - PCC
RP/0/0/CPU0:PE1# show mpls traffic-eng pce peer RP/0/0/CPU0:PE1# show mpls traffic-eng pce peer ipv4 10.100.1.11
Stateful
Update capability
Notice the difference in command
Segment Routing capability
for checking the peering if done on
PCE or PCC! KA messages rxed 2 txed 2
PCEReq messages rxed 0, txed 761
PCERep messages rxed 761, txed 0
PCEErr messages rxed 0, txed 0
Last error received: None
Last error sent: None
PCE OPEN messages: rxed 1, txed 1
PCERpt messages rxed 0, txed 5
PCEUpd messages rxed 0, txed 0
PCEInit messages rxed 0, txed 0
PCEP session ID: local 0, remote 0
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 97
PCE Topology Checking
RP/0/0/CPU0:PCE# show pce ipv4 topology | utility egrep -A5 –B5 10.100.1.13
..
Link[0]: local address 10.1.123.12, remote address 10.1.123.13
Local node:
OSPF router ID: 10.100.1.12 area ID: 0
Remote node:
OSPF router ID: 10.100.1.13 area ID: 0
Metric: IGP 1, TE 1
Bandwidth: Total link 125000000, Reservable 0
Adj SID: 24002 (protected) 24003 (unprotected)
Excluded from CSPF: no
..
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 98
Debugging on the PCE
debug pce cspf
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 99
You can copy/paste the complete NLRI
BGP LS: Nodes and Links part in the show command
*>i[E][O][I0x0][N[c65000][b0.0.0.0][a0.0.0.0][r10.100.1.10]][R[c65000][b0.0.0.0]
[a0.0.0.0][r10.100.1.13]][L[i10.1.113.10][n10.1.113.13]]/792
10.100.1.9 100 0 i
* i 10.100.1.10 100 0 i
* i 10.100.1.12 100 0 i
* i 10.100.1.13 100 0 i
Link information
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 100
You can copy/paste the complete NLRI
BGP LS: Prefixes part in the show command
*>i[T][O][I0x0][N[c65000][b0.0.0.0][a0.0.0.1][r10.100.1.9]][P[o0x02][p10.100.1.6/32]]/488
10.100.1.9 100 0 i
* i 10.100.1.10 100 0 i
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 101
BGP LS: Node in Detail
RP/0/0/CPU0:PCE# show bgp link-state link-state [V][O][I0x0][N[c65000][b0.0.0.0$
BGP routing table entry for [V][O][I0x0][N[c65000][b0.0.0.0][a0.0.0.2][r10.100.1.6]]/376
Versions:
Process bRIB/RIB SendTblVer
Speaker 234 234 RP/0/0/CPU0:ABR4# show ospf database opaque-area
Paths: (2 available, best #1) adv 10.100.1.10
Not advertised to any peer …
Path #1: Received by speaker 0 LS age: 79
Not advertised to any peer Options: (No TOS-capability, DC)
Local LS Type: Opaque Area Link
10.100.1.12 (metric 3) from 10.100.1.12 (10.100.1.12) Link State ID: 4.0.0.0
Origin IGP, localpref 100, valid, internal, best, group-best Opaque Type: 4
Received Path ID 0, Local Path ID 0, version 234 Opaque ID: 0
Link-state: Local TE Router-ID: 10.100.1.6, SRGB: 16000:8000 Advertising Router: 10.100.1.6
SR-ALG: 0 SR-ALG: 1 …
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 102
BGP LS: Link in Detail
RP/0/0/CPU0:PCE# show bgp link-state link-state [E][O][I0x0][N[c65000][b0.0.0.0$ RP/0/0/CPU0:ABR4#show ospf database
BGP routing table entry for opaque-area adv 10.100.1.10
[E][O][I0x0][N[c65000][b0.0.0.0][a0.0.0.0][r10.100.1.10]][R[c65000][b0.0.0.0][a0.0.0.0][ …
r10.100.1.13]][L[i10.1.113.10][n10.1.113.13]]/792 LS age: 1921
Versions: Options: (No TOS-capability, DC)
Process bRIB/RIB SendTblVer LS Type: Opaque Area Link
Speaker 256 256 Link State ID: 8.0.0.3
Paths: (4 available, best #1) Opaque Type: 8
Not advertised to any peer Opaque ID: 3
Path #1: Received by speaker 0 Advertising Router: 10.100.1.10
Not advertised to any peer LS Seq Number: 80000003
Local Checksum: 0x4d68
10.100.1.9 (metric 2) from 10.100.1.9 (10.100.1.9) Length: 68
Origin IGP, localpref 100, valid, internal, best, group-best
Received Path ID 0, Local Path ID 0, version 256 Extended Link TLV: Length: 44
Link-state: Local TE Router-ID: 10.100.1.10, admin-group: 0x00000000 Link-type : 1
max-link-bw (kbits/sec): 1000000, max-reserv-link-bw (kbits/sec): 0 Link ID : 10.100.1.13
max-unreserv-link-bw (kbits/sec): 0 0 0 0 0 0 0 0, Link Data : 10.1.113.10
TE-default-metric: 1 metric: 1, ADJ-SID: 24002(e0) ,
ADJ-SID: 24003(60) Adj sub-TLV: Length: 7
Flags : 0xe0
MTID : 0
Weight : 0
Label : 24002
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 103
BGP LS: Prefix in Detail
RP/0/0/CPU0:PCE# show bgp link-state link-state [T][O][I0x0][N[c65000][b0.0.0.0$
BGP routing table entry for
[T][O][I0x0][N[c65000][b0.0.0.0][a0.0.0.1][r10.100.1.10]][P[o0x02][p10.100.1.6/32]]/488
Versions:
Process bRIB/RIB SendTblVer
Speaker 84 84
Last Modified: Nov 14 16:04:31.364 for 00:30:18 RP/0/0/CPU0:ABR4#show ospf database opaque-
Paths: (2 available, best #1) area adv 10.100.1.10
Not advertised to any peer …
Path #1: Received by speaker 0 LS age: 79
Options: (No TOS-capability, DC)
Not advertised to any peer LS Type: Opaque Area Link
Local Link State ID: 7.0.0.1
10.100.1.9 (metric 2) from 10.100.1.9 (10.100.1.9) Opaque Type: 7
Origin IGP, localpref 100, valid, internal, best, group-best Opaque ID: 1
Received Path ID 0, Local Path ID 0, version 84 Advertising Router: 10.100.1.6
Link-state: Metric: 4, PFX-SID: 6(40/0) LS Seq Number: 80000003
Checksum: 0x2c80
Length: 44
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 104
Reachability of Tail End Router
• A non-default route (0.0.0.0/0) is needed on the head end router for the tail end
router
• Only an issue for inter-area and inter-AS
• Service routes (BGP) need the next hop address to be reachable
• If the next hop address is not reachable, the initiated SR-TE policy is not up
• T-shooting tip: make sure that there is MPLS reachability:
• Traceroute to ABR / remote PE / ASBR
• Verify the labels
• Depends on the network design if all labels/next-hop addresses can be seen (e.g. Seamless MPLS)
• less-specific with length >= 1; default-route is not good
• If SR Policy is not up: vpnv4 next-hop is not available
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 106
PCE: Debug PCE CSPF
RP/0/0/CPU0:PCE# debug pce cspf
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 107
Inter-area SR-TE Policy PCE must have LS
RP/0/0/CPU0:PE1# show mpls traffic-eng tunnels 2 database from all area’s
Name: tunnel-te2 Destination: 10.100.1.3 Ifhandle:0x90 e.g. multi-area link from
Signalled-Name: PE1_t2
Status: ABR router to PCE
Admin: up Oper: up Path: valid Signalling: connected
path option 1, (Segment-Routing) type dynamic pce (Basis for Setup, path weight 4)
G-PID: 0x0800 (derived from egress interface properties)
Bandwidth Requested: 0 kbps CT0
Creation Time: Mon Nov 14 09:43:09 2016 (00:53:34 ago)
Config Parameters:
Bandwidth: 0 kbps (CT0) Priority: 7 7 Affinity: 0x0/0xffff
Metric Type: TE (global)
Path Selection:
Tiebreaker: Min-fill (default)
Protection: any (default)
Hop-limit: disabled
Cost-limit: disabled
Path-invalidation timeout: 10000 msec (default), Action: Tear (default)
AutoRoute: disabled LockDown: disabled Policy class: not set
Forward class: 0 (default)
Forwarding-Adjacency: disabled
Autoroute Destinations: 0
…
Segment-Routing Path Info (PCE computed path) ABR
Segment0[Node]: 10.100.1.10, Label: 16010
Segment1[Node]: 10.100.1.8, Label: 16008 P
Segment2[Link]: 10.1.38.8 - 10.1.38.3, Label: 24004 Egress PE
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 108
PCC: Verify SR-TE Policy
RP/0/0/CPU0:PE1# show mpls traffic-eng tunnels 2 detail
path option 1, (Segment-Routing) type dynamic pce (Basis for Setup, path weight 3)
G-PID: 0x0800 (derived from egress interface properties)
Bandwidth Requested: 0 kbps CT0
Creation Time: Tue Nov 15 08:01:16 2016 (04:22:58 ago)
Config Parameters: Detail keyword gives you:
…
SNMP Index: 9
Binding SID
Binding SID: 24007
History:
Tunnel has been up for: 00:03:25 (since Tue Nov 15 12:20:49 UTC 2016)
Current LSP:
Uptime: 00:03:25 (since Tue Nov 15 12:20:49 UTC 2016)
Prior LSP:
ID: 2 Path Option: 1
Removal Trigger: path tear
Current LSP Info:
Instance: 3, Signaling Area: PCE computed path
Uptime: 00:03:25 (since Tue Nov 15 12:20:49 UTC 2016)
Soft Preemption: None
SRLGs: not collected
Path Info:
Segment-Routing Path Info (PCE computed path)
Segment0[Node]: 10.100.1.10, Label: 16010 Detail keyword gives you:
Segment1[Node]: 10.100.1.3, Label: 16003 Forwarding statistics
Persistent Forwarding Statistics:
Out Bytes: 0
Out Packets: 0
Displayed 1 (of 2) heads, 0 (of 0) midpoints, 0 (of 0) tails
Displayed 1 up, 0 down, 0 recovering, 0 recovered heads
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 109
PCE: Verify LSP Paths
Verify SR-TE policies on PCE
RP/0/0/CPU0:PCE# show pce lsp pcc ipv4 10.100.1.1 detail
PCE's tunnel database: This command can be used on PCE for any
---------------------- source and destination and provides the path
PCC 10.100.1.1:
Filter on head end router No LSP/policy needs to be actually
Tunnel Name: PE1_t2
LSPs: requested/present!
LSP[0]:
source 10.100.1.1, destination 10.100.1.3, tunnel ID 2, LSP ID 2
State: Admin up, Operation up
Setup type: Segment Routing
Binding SID: 24009
PCEP information:
plsp-id 3, flags: D:1 S:0 R:0 A:1 O:1
Reported path:
Metric type: TE, Accumulated Metric 4
SID[0]: Node, Label 16010, Address 10.100.1.10 RP/0/0/CPU0:PCE# show pce ipv4 path source
SID[1]: Node, Label 16008, Address 10.100.1.8 10.100.1.1 destination 10.100.1.4
SID[2]: Adj, Label 24004, Address: local 10.1.38.8 remote 10.1.38.3
Computed path: Path:
Computed Time: Mon Nov 14 10:39:36 2016 (00:03:02 ago) ----:
Metric type: TE, Accumulated Metric 4 Hop0: 10.1.15.1
SID[0]: Node, Label 16010, Address 10.100.1.10 Hop1: 10.1.59.5
SID[1]: Node, Label 16008, Address 10.100.1.8 Hop2: 10.1.69.9
SID[2]: Adj, Label 24004, Address: local 10.1.38.8 remote 10.1.38.3 Hop3: 10.1.46.6
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 110
SR BGP EPE
Egress Peer Engineering (EPE)
• Controller instructs ingress PE to use a specific egress PE and egress peer
• External interface
• eBGP neighbor
• Delivery:
• SR-TE (PCEP/CLI/XML)
• NetConf
• BGP-LU (RFC3017)
• …
• Ingress PE creates a lists of segments per flow, indicating intra-AS path + egress hop
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 112
Egress PE Configuration
router bgp 65001
route-policy pass in
route-policy pass out PE1 ASBR5
!
! AS 65004
P2 ASBR2 ASBR4
AS 65001
neighbor 10.100.1.7
remote-as 65003 AS 65003
ebgp-multihop 2
egress-engineering eBGP multihop
update-source Loopback0 • PeerNode SID: to eBGP Peer
address-family ipv4 unicast • MPLS Dataplane: Pop and Forward on any interface to the peer
route-policy pass in
route-policy pass out • PeerAdj SID: to eBGP Peer via interface
! • MPLS Dataplane: Pop and Forward on the related interface
!
• PeerSet SID: to set of eBGP peers
• MPLS Dataplane: Pop and Forward on any interface to the set of peers
• All the peers in a set might not be in the same AS
• Not available yet
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 113
Egress Router & Controller
RP/0/0/CPU0:ASBR1# show bgp egress-engineering RP/0/0/CPU0:ASBR2# show bgp egress-engineering
Egress Engineering Peer Set: 10.2.47.7/32 Egress Engineering Peer Set: 10.2.56.6/32 (12632fd4)
Nexthop: 10.2.56.6
Nexthop: 10.2.47.7 Version: 2, rn_version: 2
Version: 13, rn_version: 13 Flags: 0x00000006 To ASBR3
Flags: 0x0000000a Local ASN: 65001
Local ASN: 65001 Remote ASN: 65002
Remote ASN: 65003 Local RID: 10.100.1.5
Local RID: 10.100.1.4 Remote RID: 10.100.1.6
Remote RID: 10.100.1.7 First Hop: 10.2.56.6
First Hop: 10.2.47.7
1 next hop
NHID: 2
NHID: 5 IFH: 0x60
Label: 28104, Refcount: 3 PeerAdj-SID Label: 24003, Refcount: 3
PeerAdj-SID
…
Egress Engineering Peer Set: 10.100.1.7/32 Egress Engineering Peer Set: 10.2.57.7/32 (12632f30)
Nexthop: 10.2.57.7
Nexthop: 10.100.1.7 Version: 3, rn_version: 3
Version: 11, rn_version: 13 Flags: 0x00000006
Flags: 0x00000006 Local ASN: 65001
Local ASN: 65001 Remote ASN: 65003
Remote ASN: 65003 Local RID: 10.100.1.5
Local RID: 10.100.1.4 Remote RID: 10.100.1.7
Remote RID: 10.100.1.7 multiple next hops First Hop: 10.2.57.7
First Hop: 10.2.47.7, 10.2.147.7 NHID: 1
NHID: 0, 0 IFH: 0x80
Label: 28103, Refcount: 3 PeerNode-SID Label: 24004, Refcount: 3 PeerAdj-SID
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 115
EPE Example: Controller Controls Path
best path eBGP AS 65002
RP/0/0/CPU0:PE1# show route 192.168.1.1/32
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 116
EPE Example: Controller Controls Path
best path eBGP AS 65002
P1 ASBR1 ASBR3
192.168.1.1/32
PE1 ASBR5
AS 65004
P2 ASBR2 ASBR4
AS 65001
AS 65003
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 117
SR Operations, Administration, and
Maintenance (OAM)
NIL-FEC
• Nil FEC (defined in RFC4379), specifies that no explicit FEC (Control Plane) is
associated with the label
• Typically used to carry labels in reserved range (explicit-null or router alert) for
diagnostic purpose
• Ping and traceroute
• But very powerful tool to check any combination of segments on any path!
• Does not carry any information to identify the intended target
• The packet may be forwarded wrongly somewhere, but still make it
• No control plane validation is performed at originator or responder
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 119
NIL-FEC Example User specifies:
Outgoing label stack (one or more labels)
10
Outgoing interface
R2 R3 Next-hop interface address
10 10
10
R1 R4 R7
10 1000
10 Specify outgoing interface and next hop
R5 R6
RP/0/0/CPU0:R1# trace mpls nil-fec labels 16006,28097,16007 output interface gigabitEthernet 0/0/0/1 nexthop 10.1.15.5
Tracing MPLS Label Switched Path with Nil FEC with labels [16006,28097,16007], timeout is 2 seconds
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 120
SR OAM (Work-in-Progress)
• Ping, traceroute for Prefix SIDs and Adj-SIDs for IGP
ping mpls ipv4 10.1.1.1/32
• Regular MPLS OAM works for SR traceroute mpls ipv4 10.1.1.1/32
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 122
Key Takeaway’s
• SR is simpler to troubleshoot than LDP
• No changes in MPLS forwarding
• Ti-LFA
• Built from same fundaments as LFA
• But much better and much easier
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 123
Other Breakout Sessions and Book
• Sessions
• Introduction to Segment Routing - BRKRST-2124
• Segment Routing Migration Strategies and Case
Studies – BRKSPG-2540
• Segment Routing: Technology deep-dive and
advanced use cases - BRKRST-3122
• Multicast and Segment Routing - BRKIPM-2249
• https://www.amazon.com/dp/B01I58LSUO
BRKRST-3009 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 124
Complete Your Online
Session Evaluation
• Give us your feedback to be
entered into a Daily Survey
Drawing. A daily winner will
receive a $750 gift card.
• Complete your session surveys
through the Cisco Live mobile
app or on www.CiscoLive.com/us.
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public
Continue Your Education
• Demos in the Cisco campus
• Walk-in Self-Paced Labs
• Lunch & Learn
• Meet the Engineer 1:1 meetings
• Related sessions
BRKIPM-3017 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 126
Thank you