CPC H04L 45/74 (2013.01) [H04L 45/741 (2013.01); H04L 69/167 (2013.01); H04L 69/22 (2013.01)] | 20 Claims |
1. A method, comprising:
receiving, by a network device, a packet;
determining, by the network device, whether a next header of the packet is an Internet protocol (IP) header, an Internet control message protocol (ICMP) header, or a segment routing header;
determining, by the network device and when the next header of the packet is the ICMP header, that the packet is an operations, administration, and maintenance (OAM) packet;
determining, by the network device and when the next header of the packet is the ICMP header, whether policy processing of the packet is set to ultimate segment decapsulation;
discarding, by the network device, the packet when the policy processing of the packet is not set to ultimate segment decapsulation;
providing, by the network device and when the policy processing of the packet is set to ultimate segment decapsulation, the packet to a routing component of the network device for OAM processing;
performing, by the routing component of the network device, the OAM processing to generate a processed packet; and
forwarding, by the network device, the processed packet toward a destination.
|