On a network with an SRv6 TE Policy deployed, the control plane (responsible for SRv6 TE Policy establishment) cannot detect failures to forward data over the SRv6 TE Policy, making network maintenance difficult. SRv6 TE Policy ping and tracert can be used to detect such failures and quickly locate faulty nodes. Both SRv6 TE Policy ping and tracert check network connectivity and host reachability, and SRv6 TE Policy tracert can also locate failure points.
As shown in Figure 1, DeviceA, DeviceB, and DeviceC are SRv6-capable. An SRv6 TE Policy is established between DeviceA and DeviceC
The following describes the ping operation process when an SRv6 TE Policy ping operation is initiated on DeviceA:
If the remote end-op command is not run, you need to specify an End.OP SID. Note that the remote end-op command does not take effect if the last SID of an SRv6 TE Policy segment list is an End.X SID or binding SID. In this case, you need to specify an End.OP SID when running the ping srv6-te policy command.
If the SID type is End.OP SID, DeviceC sends an ICMPv6 Echo Reply message to DeviceA. In this case, you can view detailed information about the ping operation on DeviceA.
If the SID type is not End.OP SID, DeviceC discards the ICMPv6 Echo Request message. In this case, a message is displayed on DeviceA, indicating that the ping operation times out.
To enable DeviceA to initiate a ping operation, run the remote end-op command or specify an End.OP SID to enable DeviceA to initiate a ping operation. Note that the remote end-op command does not take effect if the last SID of an SRv6 TE Policy segment list is an End.X SID or binding SID. In this case, you need to specify an End.OP SID or the destination parameter when running the ping srv6-te policy command.
If the SID type is End SID, DeviceC sends an ICMPv6 Echo Reply message to DeviceA. In this case, you can view detailed information about the ping operation on DeviceA.
If the SID type is not End SID, DeviceC discards the ICMPv6 Echo Request message. In this case, a message is displayed on DeviceA, indicating that the ping operation times out.
As shown in Figure 1, the tracert operation process when an SRv6 TE Policy tracert operation is initiated on DeviceA is as follows:
If the remote end-op command is not run, you need to specify an End.OP SID. Note that the remote end-op command does not take effect if the last SID of an SRv6 TE Policy segment list is an End.X SID or binding SID. In this case, you need to specify an End.OP SID when running the tracert srv6-te policy command.
If the SID type is End.OP SID, DeviceC sends an ICMPv6 Port Unreachable message to DeviceA. In this case, you can view detailed information about the tracert operation on DeviceA.
If the SID type is not End.OP SID, DeviceC discards the UDP packet. In this case, a message is displayed on DeviceA, indicating that the tracert operation times out.
If multiple segment lists are available for the SRv6 TE Policy, steps 1 through 5 repeat until the test on each segment list is complete. This is because each segment list is tested one after the other.
To enable DeviceA to initiate a tracert operation, run the remote end-op command or specify an End.OP SID to enable DeviceA to initiate a tracert operation. Note that the remote end-op command does not take effect if the last SID of an SRv6 TE Policy segment list is an End.X SID or binding SID. In this case, you need to specify an End.OP SID or the destination parameter when running the tracert srv6-te policy command.
If the SID type is End SID, DeviceC sends an ICMPv6 Port Unreachable message to DeviceA. In this case, you can view detailed information about the tracert operation on DeviceA.
If the SID type is not End SID, DeviceC discards the UDP packet. In this case, a message is displayed on DeviceA, indicating that the tracert operation times out.
If multiple segment lists are available for the SRv6 TE Policy, steps 1 through 5 repeat until the test on each segment list is complete. This is because each segment list is tested one after the other.