SR-TE Policy Name: 209.209.209.209|100
Router# show segment-routing traffic-eng policy name 209.209.209.209|100
Name: 209.209.209.209|100 (Color: 100 End-point: 209.209.209.209)
Status:
Admin: up, Operational: up for 51:34:38 (since 01-07 06:19:08.040)- Policy state is UP
Candidate-paths:
Preference 1:
Constraints:
Affinity:
include-any: ------------- Affinity Type
1 ------------- Affinity Name
Disjointness information:
Group ID: 1, Source: 1.0.0.0
Type: Node Disjointness ------ Disjointness Type
Dynamic (pce 12.12.12.12) (active) --------- PCE Computed Candidate-path
Weight: 0, Metric Type: TE ----------------- Metric Type
Metric Type: TE, Path Accumulated Metric: 53 - Total IGP Metric from Source to Destination
18010 [Prefix-SID, 202.202.202.202] ------------------|
18007 [Prefix-SID, 211.211.211.211] ------------------| |
18002 [Prefix-SID, 207.207.207.207] ----------------- This Segment List should follow Affinity path
21 [Adjacency-SID, 10.10.20.2 - 10.10.20.1] ----------------|
Attributes:
Binding SID: 87 ---------------- Binding SID Allocated
Allocation mode: dynamic
State: Programmed
Auto-policy info:
Creator: BGP SR Policy Client
IPv6 caps enable: yes
To view detailed information about SR-TE Policy 209.209.209.209|100
Router# show segment-routing traffic-eng policy name 209.209.209.209|100 detail
Name: 209.209.209.209|100 (Color: 100 End-point: 209.209.209.209)
Status:
Admin: up, Operational: up for 00:04:19 (since 01-10 06:20:57.810)
Candidate-paths:
Preference 1:
Constraints:
Affinity:
include-any:
1
Disjointness information:
Group ID: 1, Source: 1.0.0.0
Type: Node Disjointness
Dynamic (pce 12.12.12.12) (active)
Weight: 0, Metric Type: TE
Metric Type: TE, Path Accumulated Metric: 53
18010 [Prefix-SID, 202.202.202.202]
18007 [Prefix-SID, 211.211.211.211]
18002 [Prefix-SID, 207.207.207.207]
21 [Adjacency-SID, 10.10.20.2 - 10.10.20.1]
Attributes:
Binding SID: 87
Allocation mode: dynamic
State: Programmed
Auto-policy info:
Creator: BGP SR Policy Client
IPv6 caps enable: yes
Forwarding-ID: 65711 (0x44) ------- This FWD-ID is used for forwarding traffic
Stats:
Packets: 8893 Bytes: 852848 ------- This counter indicates traffic flowing through this SRTE policy
Event history: --- This indicates event happened with this SRTE Policy
Timestamp Client Event type Context: Value
--------- ------ ---------- -------: -----
01-06 05:59:26.096 BGP SR Policy Cl Policy created Name: 209.209.209.209|100
01-06 05:59:26.096 BGP SR Policy Cl Set colour Colour: 100
01-06 05:59:26.096 BGP SR Policy Cl Set end point End-point: 209.209.209.209
01-06 05:59:26.096 BGP SR Policy Cl Set dynamic pce Path option: dynamic pce
01-06 05:59:26.480 FH Resolution Policy state UP Status: PATH RESOLVED
01-06 05:59:40.424 FH Resolution REOPT triggered Status: REOPTIMIZED
01-06 05:59:49.249 FH Resolution REOPT triggered Status: REOPTIMIZED
01-06 05:59:56.469 FH Resolution REOPT triggered Status: REOPTIMIZED
01-07 05:15:19.918 FH Resolution Policy state DOWN Status: PATH NOT RESOLVED
01-07 06:15:55.739 FH Resolution Policy state UP Status: PATH RESOLVED
01-07 06:16:08.552 FH Resolution REOPT triggered Status: REOPTIMIZED
01-07 06:19:08.040 FH Resolution Policy state DOWN Status: PATH NOT RESOLVED
01-10 06:20:57.810 FH Resolution Policy state UP Status: PATH RESOLVED
01-10 06:21:05.211 FH Resolution REOPT triggered Status: REOPTIMIZED
01-10 06:21:08.036 FH Resolution REOPT triggered Status: REOPTIMIZED
01-10 06:21:10.073 FH Resolution REOPT triggered Status: REOPTIMIZED
To check if the Affinity constraint is working, shut down any of the interfaces falling under the Affinity-defined path. If
the constraint works, the SR-TE policy goes down instead of taking the another path (if available) to reach to the destination.
To check if the disjointness constraint is working, check the SR-TE policy information given by the PCE, which consists of
Segment IDs used for the computed path from source to destination.
Disjointness constraint works, if the Segment IDs of both the SR-TE policies are different. For example:
SRTE Policy 1: SRTE Policy 2:
SID[0]: Node, Label 16002, NAI: 207.207.207.207 SID[0]: Node, Label 16003, NAI: 208.208.208.208
SID[1]: Node, Label 16004, NAI: 201.201.201.201 SID[1]: Node, Label 16006, NAI: 206.206.206.206
SID[2]: Node, Label 16011, NAI: 205.205.205.205 SID[2]: Node, Label 16011, NAI: 205.205.205.205
Note |
SID[2] of policies 1 and 2 is the same since destination of both the SR-TE policies is the same.
|
To view the SR-TE policy and Affinity constraint in the PCE:
RP/0/RSP0/CPU0:ASR9K# show pce lsp pcc ipv4 213.213.213.213 private
Thu Jan 10 00:11:52.983 UTC
PCE's tunnel database:
----------------------
PCC 213.213.213.213:
Tunnel Name: 209.209.209.209|100
LSPs:
LSP[0]:
source 203.203.203.203, destination 209.209.209.209, tunnel ID 177, LSP ID 0
State: Admin up, Operation ---- SRTE Policy is up
Setup type: Segment Routing
Binding SID: 87
Maximum SID Depth: 4
Absolute Metric Margin: 0
Relative Metric Margin: 0%
Affinity: exclude-any 0x0 include-any 0x2 include-all 0x0 ---- This indicates Affinity taken into account by PCE
PCEP information:
PLSP-ID 0x800b1, flags: D:1 S:0 R:0 A:1 O:2 C:0
LSP Role: Disjoint LSP
State-sync PCE: None
PCC: 213.213.213.213
LSP is subdelegated to: None
Reported path:
Metric type: TE, Accumulated Metric 53
SID[0]: Node, Label 18010, Address 202.202.202.202
SID[1]: Node, Label 18007, Address 211.211.211.211
SID[2]: Node, Label 18002, Address 207.207.207.207
SID[3]: Adj, Label 21, Address: local 10.10.20.2 remote 10.10.20.1
Computed path: (Local PCE)
Computed Time: Thu Jan 10 00:09:36 UTC 2019 (00:02:17 ago)
Metric type: TE, Accumulated Metric 53
SID[0]: Node, Label 18010, Address 202.202.202.202
SID[1]: Node, Label 18007, Address 211.211.211.211
SID[2]: Node, Label 18002, Address 207.207.207.207
SID[3]: Adj, Label 21, Address: local 10.10.20.2 remote 10.10.20.1
Recorded path:
None
Disjoint Group Information:
Type Node-Disjoint, Group 1, Sub-Group 1.0.0.0
Event history (latest first):
Time Event
Thu Jan 10 00:09:37 UTC 2019 Report from 213.213.213.213 (LSP owner)
Symbolic-name: 209.209.209.209|100, LSP-ID: 0,
Source: 203.203.203.203 Destination: 209.209.209.209,
D:1, R:0, A:1 O:2, Sig.BW: 0, Act.BW: 0
Reported Path: (Metric 53)
Label 18010, Address 202.202.202.202
Label 18007, Address 211.211.211.211
Label 18002, Address 207.207.207.207
Label 21, Address: local 10.10.20.2 remote 10.10.20.1
Chng:0, AssoChng:0
Thu Jan 10 00:09:36 UTC 2019 Update to 213.213.213.213 (PCC)
Symbolic-name: 209.209.209.209|100, LSP-ID: 0, D:1
Path: (Metric 53)
Label 18010, Address 202.202.202.202
Label 18007, Address 211.211.211.211
Label 18002, Address 207.207.207.207
Label 21, Address: local 10.10.20.2 remote 10.10.20.1
Thu Jan 10 00:09:36 UTC 2019 Path Computation (Disjoint LSP)
Symbolic-name: 209.209.209.209|100, LSP-ID: 0, D:1
Source: 203.203.203.203 Destination: 209.209.209.209
Status: Disjoint Path Success
Wed Jan 09 23:54:42 UTC 2019 Update to 213.213.213.213 (PCC)
Symbolic-name: 209.209.209.209|100, LSP-ID: 0, D:1
Path: (Metric 53)
Label 18007, Address 211.211.211.211
Label 18002, Address 207.207.207.207
Label 21, Address: local 10.10.20.2 remote 10.10.20.1
Wed Jan 09 23:54:42 UTC 2019 Path Computation (Disjoint LSP)
Symbolic-name: 209.209.209.209|100, LSP-ID: 0, D:1
Source: 203.203.203.203 Destination: 209.209.209.209
Status: Fallback Node to Shortest Path
Computed Path: (Metric 53)
Label 18007, Address 211.211.211.211
Label 18002, Address 207.207.207.207
Label 21, Address: local 10.10.20.2 remote 10.10.20.1
Wed Jan 09 23:54:21 UTC 2019 Path Computation (Disjoint LSP)
Symbolic-name: 209.209.209.209|100, LSP-ID: 0, D:1
Source: 203.203.203.203 Destination: 209.209.209.209
Status: Disjoint Path Success
Computed Path: (Metric 53)
Label 18010, Address 202.202.202.202
Label 18007, Address 211.211.211.211
Label 18002, Address 207.207.207.207
Label 21, Address: local 10.10.20.2 remote 10.10.20.1
Computed Path: (Metric 53)
Label 18010, Address 202.202.202.202
Label 18007, Address 211.211.211.211
Label 18002, Address 207.207.207.207
Label 21, Address: local 10.10.20.2 remote 10.10.20.1
Thu Jan 10 00:09:05 UTC 2019 Path Computation (Disjoint LSP)
Symbolic-name: 209.209.209.209|100, LSP-ID: 0, D:1
Source: 203.203.203.203 Destination: 209.209.209.209
Status: Fallback Node to Shortest Path
Computed Path: (Metric 53)
Label 18007, Address 211.211.211.211
Label 18002, Address 207.207.207.207
Label 21, Address: local 10.10.20.2 remote 10.10.20.1
Wed Jan 09 23:54:42 UTC 2019 Report from 213.213.213.213 (LSP owner)
Symbolic-name: 209.209.209.209|100, LSP-ID: 0,
Source: 203.203.203.203 Destination: 209.209.209.209,
D:1, R:0, A:1 O:2, Sig.BW: 0, Act.BW: 0
Reported Path: (Metric 53)
Label 18007, Address 211.211.211.211
Label 18002, Address 207.207.207.207
Label 21, Address: local 10.10.20.2 remote 10.10.20.1
Chng:0, AssoChng:0
RP/0/RSP0/CPU0:ASR9K#
To view dispointness between policies 1 and 2:
RP/0/RSP0/CPU0:ASR9K# show pce association type link group-id 3
Wed Aug 29 05:56:52.228 UTC
PCE's association database:
----------------------
Association: Type Link-Disjoint, Group 3, Sub-Group 1.0.0.0, Not Strict
Associated LSPs:
LSP[0]:
PCC 213.213.213.213, tunnel name 209.209.209.209|104, PLSP ID 524460, tunnel ID 172, LSP ID 0, Configured on PCC
LSP[1]:
PCC 213.213.213.213, tunnel name 209.209.209.209|105, PLSP ID 524461, tunnel ID 173, LSP ID 0, Configured on PCC
Status: Satisfied --------------- This indicates that Disjointness between SRTE Policies is working
RP/0/RSP0/CPU0:ASR9K#