|
|
---|
|
|
Part 1 | Analyzing the Topology |
---|
| show ospf neighbor show ospf database router
|
| show ted database
|
| show ted database 172.20.20.1 show ted database 172.20.20.1 extensive >> >2 Interfaces; To: 172.20.20.3 and To: 172.20.20.4
lab@vmx-2> show ted database 172.20.20.1
TED database: 0 ISIS nodes 6 INET nodes
ID Type Age(s) LnkIn LnkOut Protocol
172.20.20.1 Rtr 145447 2 2 OSPF(0.0.0.0)
To: 172.20.20.3, Local: 172.22.101.1, Remote: 172.22.101.2
Local interface index: 339, Remote interface index: 0
To: 172.20.20.4, Local: 172.22.102.1, Remote: 172.22.102.2
Local interface index: 340, Remote interface index: 0
lab@vmx-2> show ted database 172.20.20.1 extensive
TED database: 0 ISIS nodes 6 INET nodes
NodeID: 172.20.20.1
Type: Rtr, Age: 145495 secs, LinkIn: 2, LinkOut: 2
Protocol: OSPF(0.0.0.0)
To: 172.20.20.3, Local: 172.22.101.1, Remote: 172.22.101.2
Local interface index: 339, Remote interface index: 0
Color: 0xa bronze gold
Metric: 1
Static BW: 1000Mbps
Reservable BW: 1000Mbps
Available BW [priority] bps:
[0] 900Mbps [1] 900Mbps [2] 900Mbps [3] 900Mbps
[4] 900Mbps [5] 900Mbps [6] 900Mbps [7] 900Mbps
Interface Switching Capability Descriptor(1):
Switching type: Packet
Encoding type: Packet
Maximum LSP BW [priority] bps:
[0] 900Mbps [1] 900Mbps [2] 900Mbps [3] 900Mbps
[4] 900Mbps [5] 900Mbps [6] 900Mbps [7] 900Mbps
P2P Adjacency-SID:
IPV4, SID: 1012, Flags: 0x34, Weight: 0
To: 172.20.20.4, Local: 172.22.102.1, Remote: 172.22.102.2
Local interface index: 340, Remote interface index: 0
Color: 0xc bronze silver
Metric: 1
Static BW: 1000Mbps
Reservable BW: 1000Mbps
Available BW [priority] bps:
[0] 1000Mbps [1] 1000Mbps [2] 1000Mbps [3] 1000Mbps
[4] 1000Mbps [5] 1000Mbps [6] 1000Mbps [7] 1000Mbps
Interface Switching Capability Descriptor(1):
Switching type: Packet
Encoding type: Packet
Maximum LSP BW [priority] bps:
[0] 1000Mbps [1] 1000Mbps [2] 1000Mbps [3] 1000Mbps
[4] 1000Mbps [5] 1000Mbps [6] 1000Mbps [7] 1000Mbps
P2P Adjacency-SID:
IPV4, SID: 1022, Flags: 0x34, Weight: 0
Prefixes:
172.20.20.1/32
Flags: 0x60
Prefix-SID:
SID: 101, Flags: 0x00, Algo: 0
SPRING-Capabilities:
SRGB block [Start: 800000, Range: 4000, Flags: 0x00]
SPRING-Algorithms:
Algo: 0
lab@vmx-2>
|
Part 2 | Loading The Configuration In |
---|
|
|
crpd | ssh lab@northstar sudo docker exec -it crpd cli load override /home/configs/reset.config
|
| show ospf database summary show ospf database advertising-router 172.20.20.2
lab@vmx-2> show ospf database summary
Area 0.0.0.0:
6 Router LSAs
56 OpaqArea LSAs
Externals:
1 Extern LSAs
Interface ge-0/0/1.0:
Area 0.0.0.0:
Interface ge-0/0/2.0:
Area 0.0.0.0:
Interface lo0.0:
Area 0.0.0.0:
lab@vmx-2> show ospf database advertising-router 172.20.20.2
OSPF database, Area 0.0.0.0
Type ID Adv Rtr Seq Age Opt Cksum Len
Router *172.20.20.2 172.20.20.2 0x800000aa 795 0x22 0xf054 84
OpaqArea*1.0.0.1 172.20.20.2 0x80000088 1396 0x22 0xf306 28
OpaqArea*1.0.0.3 172.20.20.2 0x8000008d 1997 0x22 0x3a88 136
OpaqArea*1.0.0.4 172.20.20.2 0x8000008c 198 0x22 0xe1da 136
OpaqArea*4.0.0.0 172.20.20.2 0x80000040 2598 0x22 0x8870 44
OpaqArea*7.0.0.1 172.20.20.2 0x80000045 795 0x22 0xa99b 44
OpaqArea*8.0.0.1 172.20.20.2 0x80000040 2297 0x22 0xce49 48
OpaqArea*8.0.0.2 172.20.20.2 0x80000018 1096 0x22 0x57db 48
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern *192.168.1.0 172.20.20.2 0x80000040 1696 0x22 0x7ab7 36
|
LSA types | Type 1 ( Router ) , Type 4 , Type 7 , and Type 8 OpaqArea*1.0.0.x RtrAddr or Link ( Max rsv BW, unRsvBW , . . .) The Type-1 used to communicate link characteristics for traffic engineering purposes. OpaqArea*4.0.0.0 The Type-4 uses to calculate forwarding labels OpaqArea*7.0.0.1 Extended Link : link type, prefix, Prefix SID ( SID ) the Type-7 advertises the node segment ID for router vmx-5, and the IP address of the node OpaqArea*8.0.0.x Extended Link : link type, Link ID ( IF IP@) and Adjacency SID (Label SID ) the Type-8 advertises the node segment ID for router vmx-5, and the IP address of the node
|
| Traffic-engineering information is advertised in OSPF type-10 LSAs These are opaque LSAs and have area flooding scope, which is why you cannot have TE tunnels running through multiple areas Type 5 ( OSPF ASBR External LSA ) |
| show ospf database advertising-router 172.20.20.2 show ospf database advertising-router 172.20.20.1
lab@vmx-2> show ospf database advertising-router 172.20.20.2
OSPF database, Area 0.0.0.0
Type ID Adv Rtr Seq Age Opt Cksum Len
Router *172.20.20.2 172.20.20.2 0x800000a9 1470 0x22 0xf253 84
OpaqArea*1.0.0.1 172.20.20.2 0x80000087 2071 0x22 0xf505 28
OpaqArea*1.0.0.3 172.20.20.2 0x8000008c 2672 0x22 0x3c87 136
OpaqArea*1.0.0.4 172.20.20.2 0x8000008b 873 0x22 0xe3d9 136
OpaqArea*4.0.0.0 172.20.20.2 0x80000040 573 0x22 0x8870 44
OpaqArea*7.0.0.1 172.20.20.2 0x80000044 1470 0x22 0xab9a 44
OpaqArea*8.0.0.1 172.20.20.2 0x80000040 272 0x22 0xce49 48
OpaqArea*8.0.0.2 172.20.20.2 0x80000017 1770 0x22 0x59da 48
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern *192.168.1.0 172.20.20.2 0x8000003f 2371 0x22 0x7cb6 36
lab@vmx-2> show ospf database advertising-router 172.20.20.2 lsa-id 192.168.1.0 extensive
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern *192.168.1.0 172.20.20.2 0x8000003f 2580 0x22 0x7cb6 36
mask 255.255.255.0
Topology default (ID 0)
Type: 2, Metric: 0, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Gen timer 00:01:59
Aging timer 00:16:59
Installed 00:43:00 ago, expires in 00:17:00, sent 00:42:58 ago
Last changed 1d 22:53:53 ago, Change count: 1, Ours
lab@vmx-2>
lab@vmx-2> show ospf database advertising-router 172.20.20.1
OSPF database, Area 0.0.0.0
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 172.20.20.1 172.20.20.1 0x80000045 2370 0x22 0x1bbc 84
OpaqArea 1.0.0.1 172.20.20.1 0x80000041 1869 0x22 0x7ec4 28
OpaqArea 1.0.0.3 172.20.20.1 0x80000041 869 0x22 0xb168 136
OpaqArea 1.0.0.4 172.20.20.1 0x80000041 2867 0x22 0xf727 136
OpaqArea 8.0.0.1 172.20.20.1 0x80000040 1369 0x22 0x4cb2 36
OpaqArea 8.0.0.2 172.20.20.1 0x80000040 370 0x22 0x23dc 36
|
|
lab@vmx-2> show ospf overview
Instance: master
Router ID: 172.20.20.2
Route table index: 0
AS boundary router
LSA refresh time: 50 minutes
Traffic engineering
SPRING: Enabled
SRGB Config Range :
SRGB Start-Label : 800000, SRGB Index-Range : 4000
SRGB Block Allocation: Success
SRGB Start Index : 800000, SRGB Size : 4000, Label-Range: [ 800000, 803999 ]
Node Segments: Enabled
Ipv4 Index : 102
Post Convergence Backup: Disabled
Area: 0.0.0.0
Stub type: Not Stub
Authentication Type: None
Area border routers: 0, AS boundary routers: 0
Neighbors
Up (in full state): 2
Topology: default (ID 0)
Prefix export count: 1
Full SPF runs: 127
SPF delay: 0.200000 sec, SPF holddown: 5 sec, SPF rapid runs: 3
Backup SPF: Not Needed
lab@vmx-2>
|
external route on vmx-1 ( from vmx-2) | show ospf route extern extensive
lab@vmx-1> show ospf route extern extensive
Topology default Route Table:
Prefix Path Route NH Metric NextHop Nexthop
Type Type Type Interface Address/LSP
192.168.1.0/24 Ext2 Network IP 0 ge-0/0/1.0 172.22.101.2
ge-0/0/2.0 172.22.102.2
area 0.0.0.0, origin 172.20.20.2, priority medium
|
vmx-1 config |
|
---|
| set label-range static-label-range 1000 2000 set protocols ospf source-packet-routing srgb start-label 800000 set protocols ospf source-packet-routing srgb index-range 4000 set protocols ospf source-packet-routing node-segment ipv4-index 101 set protocols ospf area 0 interface ge-0/0/1.0 ipv4-adjacency-segment unprotected label 1012 set protocols ospf area 0 interface ge-0/0/2.0 ipv4-adjacency-segment unprotected label 1022
|
| set protocols pcep pce northstar spring-capability |
| set protocols source-packet-routing lsp-external-controller pccd |
show vmx-1 |
|
---|
|
|
Part 3 | NorthStar Provisioning Segment Routed LSPs |
---|
| show spring-traffic-engineering overview
show spring-traffic-engineering overview
Overview of SPRING-TE:
Route preference: 8
Number of LSPs: 0 (Up: 0, Down: 0)
Number of LSPs with ldp-tunneling config: 0
External controllers:
pccd
|
| show ospf neighbor extensive
lab@vmx-1# run show ospf neighbor extensive
Address Interface State ID Pri Dead
172.22.101.2 ge-0/0/1.0 Full 172.20.20.3 128 38
Area 0.0.0.0, opt 0x52, DR 0.0.0.0, BDR 0.0.0.0
Up 1d 23:13:30, adjacent 1d 23:13:21
SPRING Adjacency Labels:
Label Flags Adj-Sid-Type
1012 VLP UnProtected
Topology default (ID 0) -> Bidirectional
172.22.102.2 ge-0/0/2.0 Full 172.20.20.4 128 35
Area 0.0.0.0, opt 0x52, DR 0.0.0.0, BDR 0.0.0.0
Up 1d 23:13:30, adjacent 1d 23:13:30
SPRING Adjacency Labels:
Label Flags Adj-Sid-Type
1022 VLP UnProtected
Topology default (ID 0) -> Bidirectional
[edit]
|
| show route table inet.3
lab@vmx-1# run show route table inet.3
inet.3: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
172.20.20.2/32 *[L-OSPF/10/5] 00:03:05, metric 3
to 172.22.101.2 via ge-0/0/1.0, Push 800102
> to 172.22.102.2 via ge-0/0/2.0, Push 800102
172.20.20.3/32 *[L-OSPF/10/5] 00:03:05, metric 1
> to 172.22.101.2 via ge-0/0/1.0
172.20.20.4/32 *[L-OSPF/10/5] 00:03:05, metric 1
> to 172.22.102.2 via ge-0/0/2.0
172.20.20.5/32 *[L-OSPF/10/5] 00:03:05, metric 2
to 172.22.101.2 via ge-0/0/1.0, Push 800105
> to 172.22.102.2 via ge-0/0/2.0, Push 800105
172.20.20.6/32 *[L-OSPF/10/5] 00:03:05, metric 2
to 172.22.101.2 via ge-0/0/1.0, Push 800106
> to 172.22.102.2 via ge-0/0/2.0, Push 800106
[edit]
lab@vmx-1#
|
| Create a Segment routing LSP |
---|
|
|
| show route table inet.3 172.20.20.2 detail
lab@vmx-1> show route table inet.3 172.20.20.2 detail
inet.3: 5 destinations, 6 routes (5 active, 0 holddown, 0 hidden)
172.20.20.2/32 (2 entries, 1 announced)
*SPRING-TE Preference: 8
Next hop type: Router, Next hop index: 0
Address: 0xc749018
Next-hop reference count: 1
Next hop: 172.22.101.2 via ge-0/0/1.0 weight 0x1, selected
Label operation: Push 1111, Push 1092, Push 1082, Push 1032(top)
Label TTL action: prop-ttl,prop-ttl,prop-ttl,prop-ttl
Load balance label: Label 1111: None; Label 1092: None; Label 1082: None; Label 1032: None;
Label element ptr: 0xcbd4168
Label parent element ptr: 0x0
Label element references: 1
Label element child references: 0
Label element lsp id: 268435458
Session Id: 0x0
State: <Active Int>
Age: 41 Metric: 1 Metric2: 3
Validation State: unverified
Task: SPRING-TE
Announcement bits (1): 1-Resolve tree 1
AS path: I
SRTE Policy State:
SR Preference/Override: 100/100
Tunnel Source: Path computation element
L-OSPF Preference: 10/5
Next hop type: Router, Next hop index: 0
Address: 0xd3953e8
Next-hop reference count: 1
Next hop: 172.22.101.2 via ge-0/0/1.0
Label operation: Push 800102
Label TTL action: prop-ttl
Load balance label: Label 800102: None;
Label element ptr: 0xcbd60a8
Label parent element ptr: 0x0
Label element references: 2
Label element child references: 0
Label element lsp id: 0
Session Id: 0x0
Next hop: 172.22.102.2 via ge-0/0/2.0, selected
Label operation: Push 800102
Label TTL action: prop-ttl
Load balance label: Label 800102: None;
Label element ptr: 0xcbd60a8
Label parent element ptr: 0x0
Label element references: 2
Label element child references: 0
Label element lsp id: 0
Session Id: 0x0
State: <Int>
Inactive reason: Route Preference
Age: 11:34 Metric: 3
Validation State: unverified
Area: 0.0.0.0
Task: OSPF
AS path: I
lab@vmx-1>
|
| show spring-traffic-engineering lsp detail
lab@vmx-1> show spring-traffic-engineering lsp detail
Name: vmx1-to-vmx2-SR
Tunnel-source: Path computation element protocol(PCEP)
To: 172.20.20.2
State: Up
Outgoing interface: ge-0/0/1.0
Auto-translate status: Disabled Auto-translate result: N/A
BFD status: N/A BFD name: N/A
ERO Valid: true
SR-ERO hop count: 5
Hop 1 (Strict):
NAI: IPv4 Adjacency ID, 172.22.101.1 -> 172.22.101.2
SID type: 20-bit label, Value: 1012
Hop 2 (Strict):
NAI: IPv4 Adjacency ID, 172.22.103.1 -> 172.22.103.2
SID type: 20-bit label, Value: 1032
Hop 3 (Strict):
NAI: IPv4 Adjacency ID, 172.22.108.1 -> 172.22.108.2
SID type: 20-bit label, Value: 1082
Hop 4 (Strict):
NAI: IPv4 Adjacency ID, 172.22.109.1 -> 172.22.109.2
SID type: 20-bit label, Value: 1092
Hop 5 (Strict):
NAI: IPv4 Adjacency ID, 172.22.111.2 -> 172.22.111.1
SID type: 20-bit label, Value: 1111
Total displayed LSPs: 1 (Up: 1, Down: 0)
lab@vmx-1>
|
no RSVP LSP |
|
---|
| show rsvp session show mpls lsp |
| show route table mpls.0
lab@vmx-1> show route table mpls.0
mpls.0: 17 destinations, 17 routes (17 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0 *[MPLS/0] 1d 23:31:08, metric 1
to table inet.0
0(S=0) *[MPLS/0] 1d 23:31:08, metric 1
to table mpls.0
1 *[MPLS/0] 1d 23:31:08, metric 1
Receive
2 *[MPLS/0] 1d 23:31:08, metric 1
to table inet6.0
2(S=0) *[MPLS/0] 1d 23:31:08, metric 1
to table mpls.0
13 *[MPLS/0] 1d 23:31:08, metric 1
Receive
1012 *[L-OSPF/10/5] 00:18:45, metric 0
> to 172.22.101.2 via ge-0/0/1.0, Pop
1012(S=0) *[L-OSPF/10/5] 00:18:45, metric 0
> to 172.22.101.2 via ge-0/0/1.0, Pop
1022 *[L-OSPF/10/5] 00:18:45, metric 0
> to 172.22.102.2 via ge-0/0/2.0, Pop
1022(S=0) *[L-OSPF/10/5] 00:18:45, metric 0
> to 172.22.102.2 via ge-0/0/2.0, Pop
800102 *[L-OSPF/10/5] 00:18:45, metric 3
> to 172.22.101.2 via ge-0/0/1.0, Swap 800102
to 172.22.102.2 via ge-0/0/2.0, Swap 800102
800103 *[L-OSPF/10/5] 00:18:45, metric 1
> to 172.22.101.2 via ge-0/0/1.0, Pop
800103(S=0) *[L-OSPF/10/5] 00:18:45, metric 1
> to 172.22.101.2 via ge-0/0/1.0, Pop
800104 *[L-OSPF/10/5] 00:18:45, metric 1
> to 172.22.102.2 via ge-0/0/2.0, Pop
800104(S=0) *[L-OSPF/10/5] 00:18:45, metric 1
> to 172.22.102.2 via ge-0/0/2.0, Pop
800105 *[L-OSPF/10/5] 00:18:45, metric 2
> to 172.22.101.2 via ge-0/0/1.0, Swap 800105
to 172.22.102.2 via ge-0/0/2.0, Swap 800105
800106 *[L-OSPF/10/5] 00:18:45, metric 2
> to 172.22.101.2 via ge-0/0/1.0, Swap 800106
to 172.22.102.2 via ge-0/0/2.0, Swap 800106
lab@vmx-1>
|
Part 4 | Resetting the Lab Topology In |
---|
|
|
|
|
|
|
|
|
|
|
|
|