3 ms·
TCP's checksum isn't even as good as CRC32. It's just a one's-complement sum of the packet and a few header words. From this [0] helpful StackOverflow post: >
by tonyg 9y ago
TCP's checksum isn't even as good as CRC32. It's just a one's-complement sum of the packet and a few header words.
From this [0] helpful StackOverflow post:
> If you need to transfer data and you want to be sure the data didn't get corrupted, the TCP checksum alone is certainly not enough for this task. I would even dare to say that a CRC checksum is not enough for this task, since a CRC32 may not detect an error where more than 32 bits in a row are affected (these errors can "cancel out" each other). The minimum checksum you'd need for ensuring flawless data transfer is the MD5 value of the data.
[0] https://stackoverflow.com/questions/3830206/can-a-tcp-checksum-produce-a-false-positive-if-yes-how-is-this-dealt-with https://stackoverflow.com/questions/3830206/can-a-tcp-checks...