US Patent No. 10,659,571

NETWORK DEVICE WITH INTEGRATED PACKET GENERATORS OR PACKET CHECKERS


Patent No. 10,659,571
Issue Date May 19, 2020
Title Network Device With Integrated Packet Generators Or Packet Checkers
Inventorship Thomas A. Volpe, Austin, TX (US)
Assignee Amazon Technologies, Inc., Seattle, WA (US)

Claim of US Patent No. 10,659,571

1. A device, comprising:ports including ingress ports and egress ports;
parsers, each parser coupled to a respective ingress port of the ingress ports and configured to parse data packets received from the respective ingress port to identify header information and a packet payload of each of the parsed data packets; and
test logic modules each coupled to a respective port of the ports and a respective parser of the parsers, each test logic module including
a packet generator configured to:
generate a pre-determined number of a test type of data packets including header information and test information, the test information indicating a test operation to be performed on the test type of data packets and a passing condition of the test operation; and
transmit the number of the test type of data packets to a parser of the parsers to combine with ingress non-test type of data packets received by the parser from an ingress port of the ingress ports, the number of the test type of data packets being determined based on a number of the ingress non-test type of data packets received by the ingress port, the non-test type of data packets not including the test information;
and
packet processors each coupled to a respective parser of the parsers and a respective test logic module of the test logic modules, each packet processor configured to:
perform one or more operations on each data packet of one of the test type of data packets and the ingress non-test type of data packets that passes through the respective parser based upon the respective header information, the one or more operations including directing the each data packet that passes through the respective ingress port to one of the egress ports,
wherein the directing of the each data packet to the one of the egress ports is based on the respective header information of the test type of data packets and the ingress non-test type of data packets; and
wherein the test information enables a packet checker to:
generate a signature based on hashing the test information included in one or more of the test type of data packets;
determine whether the passing condition is satisfied based on the signature for the one or more of the test type of data packets; and
perform an action based on whether the passing condition is satisfied.