主权项 |
1. A method, comprising:
capturing, by a processing device, a packet at an ingress port of the processing device; determining, by the processing device, whether the packet is a candidate for tracing; setting, by the processing device, a trace option identifier within the packet indicating that the packet is selected for tagging when operations are performed by on the packet by the processing device; when performing an operation on the packet, determining whether the packet includes the trace option identifier; in response to determining that the packet includes the trace option identifier, adding, by the processing device, corresponding a tag to the packet based on the trace option identifier to indicate the operation performed on the packet; upon at least one of reaching an egress port of the processing device or being dropped by an operation of the processing device, removing the packet from a forwarding path; and generating, by the processing device, a report based on the tag that automatically correlates the tag with a corresponding entry in configuration information stored in the processing device; wherein the captured packet includes DSCP bits. |