OcNOS SP : Segment Routing Guide : Segment Routing Command Reference : Segment Routing v6 OAM Commands
Segment Routing v6 OAM Commands
This chapter describes Segment Routing IPv6 Operations, Administration, and Maintenance (OAM) commands:
ping srv6
Use this command to check the connectivity between ingress and egress of LSP. This command uses Internet Control Message Protocol (ICMPv6) echo request and reply messages to validate an LSP.
Use this command to check connectivity if an LSP traverses entirely through an SRv6 domain.
You can initiate the segment routing of ipv6 ping operation only when the SRv6 control plane is available at the originator.
Command Syntax
ping srv6 (ipv6 X:X::X:X| sid SID) (via segment-list .SID_VALUE sid-list-end |) ({source-ip X:X::X:X | repeat <5-5000> |interval <2-20000>}|)
Parameters
ipv6
IPv6 Address
X:X::X:X
Ping SRv6 destination address
sid
Segment list ID
SID
Ping SID value
via segment-list
 
 
List of segments to pass through
SID_VALUE
SID value
sid-list-end
 
End of the segment list
source-ip
Source IPv6 address to use in ICMPv6 packet
X:X::X:X
Source IPv6 address in the ping
repeat
Repeat sending of ping packet
<5-5000>
Number of pings to send
interval
Interval between ping packets
<2-20000>
Interval between pings in milliseconds
Defaults
No defaults
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 6.3.0.
Examples
PE1#ping srv6 ipv6 cafe:1:2::22
Sending 5 SRV6 Echos to cafe:1:2::22, timeout is 5 seconds
Codes:
'!' - Success, 'Q' - request not sent, '*' - timeout,
'x' - Retcode 0, 'M' - Malformed Request
Type 'Ctrl+C' to abort
! seq_num = 1 :: 1.44 ms
! seq_num = 2 :: 0.68 ms
! seq_num = 3 :: 0.34 ms
! seq_num = 4 :: 0.51 ms
! seq_num = 5 :: 0.36 ms
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 0.34/0.89/1.44
ping srv6 policy
Use this command to check the connectivity between ingress and egress of LSP. This command uses Internet Control Message Protocol (ICMPv6) echo request and reply messages, to validate an LSP.
Use this command to check connectivity if an LSP traverses entirely through a SRv6 domain.
You can initiate the SRv6 policy ping operation only when the SRv6 control plane is available at the originator.
Command Syntax
ping srv6 (| protocol-origin (local | pcep) ) (policy SRV6_POLICY_NAME (| candidate-path CANDIDATE_PATH_ID)) ({source-ip X:X::X:X | repeat <5-5000> |interval <2-20000>}|)
Parameters
protocol-origin
 
Originator
local
Locally originated candidate path
pcep
PCE originated candidate path
policy
Segment Routing IPv6 policy
SRV6_POLICY_NAME
 
SRv6 Policy name
candidate-path
Candidate path
CANDIDATE_PATH_ID
 
Candidate path identifier
source-ip
Source IPv6 address to use in ICMPv6 packet
X:X::X:X
Source IPv6 address in the ping
repeat
Repeat sending of ping packet
<5-5000>
Number of pings to send
interval
Interval between ping packets
<2-20000>
Interval between pings in milliseconds
Defaults
No defaults
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 6.3.0.
Examples
PE1#ping srv6 policy P1 candidate-path 1
Sending 5 SRV6 Echos to P1 , timeout is 5 seconds
Codes:
'!' - Success, 'Q' - request not sent, '*' - timeout,
'x' - Retcode 0, 'M' - Malformed Request
Type 'Ctrl+C' to abort
! seq_num = 1 :: 0.62 ms
! seq_num = 2 :: 0.52 ms
! seq_num = 3 :: 0.38 ms
! seq_num = 4 :: 0.50 ms
! seq_num = 5 :: 0.44 ms
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 0.38/0.50/0.62
traceroute srv6
Use this command to isolate the failure point of an LSP. This command is used for hop-by-hop fault localization and path tracing.
You can initiate the SRv6 traceroute operation only when the SRv6 control plane is available at the originator.
Use this command to check connectivity if an LSP traverses entirely through segment routing for an SRv6 domain.
Command Syntax
traceroute srv6 (ipv6 X:X::X:X| sid SID) (via segment-list .SID_VALUE sid-list-end |) (source-ip X:X::X:X |)
Parameters
ipv6
IPv6 Address
X:X::X:X
Ping SRv6 destination address
sid
Segment list ID
SID
Ping SID value
via segment-list
 
 
List of segments to pass through
SID_VALUE
SID value
sid-list-end
 
End of the segment list
source-ip
Source IPv6 address to use in ICMPv6 packet
X:X::X:X
Source IPv6 address in the ping
Defaults
No defaults
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 6.3.0.
Examples
PE1#traceroute srv6 ipv6 cafe:1:2::22 source-ip cafe:1:2::11
Traceroute to cafe:1:2::22 ( cafe:1:2::22), 30 hops max, 80 byte packets
Type 'Ctrl+C' to abort
1 1000::2 0.80 ms 0.46 ms 0.46 ms
DA: cafe:1:2::22
SRH:(cafe:1:2::22,SL = 0)
2 cafe:1:2::22 0.51 ms 0.56 ms 0.36 ms
DA: cafe:1:2::22
SRH:(cafe:1:2::22,SL = 0)
3 cafe:1:2::22 0.51 ms
traceroute srv6 policy
Use this command to isolate the failure point of an LSP. This command is used for hop-by-hop fault localization and path tracing.
You can initiate the SRv6 policy traceroute operation only when the SRv6 control plane is available at the originator.
Use this command to check connectivity if an LSP traverses entirely through segment routing for an SRv6 domain.
Command Syntax
traceroute srv6 (| protocol-origin (local | pcep) ) (policy SRV6_POLICY_NAME (| candidate-path CANDIDATE_PATH_ID)) (source-ip X:X::X:X|)
Parameters
protocol-origin
 
Originator
local
Locally originated candidate path
pcep
PCE-originated candidate path
policy
Segment Routing IPv6 policy
SRV6_POLICY_NAME
 
SRv6 Policy name
candidate-path
 
Candidate path
CANDIDATE_PATH_ID
 
Candidate path identifier
source-ip
Source IPv6 address to use in ICMPv6 packet
X:X::X:X
Source IPv6 address in the ping
repeat
Repeat sending of ping packet
<5-5000>
Number of pings to send
interval
Interval between ping packets
<2-20000>
Interval between pings in Milliseconds
Defaults
No defaults
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 6.3.0.
Examples
PE1#traceroute srv6 protocol-origin local policy P1 candidate-path 1
Traceroute to P1 ( P1 ), 30 hops max, 80 byte packets
Type 'Ctrl+C' to abort
1 1000::2 0.73 ms 0.50 ms 0.46 ms
DA: cafe:1:2:a22:2001::
SRH:(cafe:1:2:a22:2001::,SL = 0)
2 cafe:1:2:a22:2001:: 0.50 ms 0.44 ms 0.50 ms
3 cafe:1:2:a22:2001:: 0.52 ms
PE1#