Byte by byte received data integrity check
View Patent ↗A method and an apparatus for testing a network. A source port unit may generate a packet including a payload, the payload comprising a content identifier and content data in accordance with the content identifier, and transmit the packet via the network. A destination port unit may receive the packet and extract the content identifier and received content data from the received packet. The destination port unit may obtain expected content data in accordance with the extracted content identifier and compare the expected content data and the received content data.
1. A method for testing a network, comprising:
a source port unit
generating a packet addressed to a destination port unit, the packet including a payload comprising a plurality of blocks, each block containing a respective content identifier and respective content data generated using the respective content identifier as a seed for a first random data generator; and
transmitting the packet via the network;
the destination port unit
receiving the packet; and
for each of the plurality of blocks independently:
extracting the respective content identifier and respective received content data from the received packet;
generating respective expected content data using the extracted respective content identifier as a seed for a second random data generator the same as the first random data generator; and
comparing the respective expected content data and the respective received content data.
2. The method of claim 1 , wherein each block includes a block header containing the respective content identifier and a respective block length.
3. The method of claim 2 , wherein each block header includes a respective timestamp.
4. The method of claim 2 , wherein each block header includes a respective cyclic redundancy check value.
5. An apparatus for testing a network, comprising:
a source port unit configured to
generate a packet addressed to a destination port unit, the packet including a payload comprising a plurality of blocks, each block containing a respective content identifier and respective content data generated using the respective content identifier as a seed for a first random data generator, and
transmit the packet via the network; wherein
the destination port unit is configured to
receive the packet, and
for each of the plurality of blocks independently:
extract the respective content identifier and respective received content data from the received packet,
generate respective expected content data using the extracted respective content identifier as a seed for a second random data generator the same as the first random data generator, and
compare the respective expected content data and the respective received content data.
6. The apparatus of claim 5 , wherein each block includes a block header containing the respective content identifier and a respective block length.
7. The apparatus of claim 6 , wherein each block header includes a respective timestamp.
8. The apparatus of claim 6 , wherein each block header includes a respective cyclic redundancy check value.
9. A method for generating traffic to test a network, comprising:
a source port unit generating a packet addressed to a destination port unit, the packet including a payload comprising a plurality of blocks, each block containing a respective content identifier and respective content data generated using the content identifier as a seed for a random data generator.
10. A method for processing a packet, the packet including a payload comprising a plurality of blocks, each block containing a respective content identifier and respective content data generated using the content identifier as a seed for a random data generator, the method comprising:
receiving the packet via a network; and
for each of the plurality of blocks independently:
extracting the respective content identifier and respective received content data from the received packet;
generating respective expected content data using the extracted respective content identifier as a seed for a random data generator; and
comparing the respective expected content data and the respective received content data.