Search code examples
c#network-programmingtcpclientcrc

CRC checking done automatically on Tcp/Ip?


I wonder, while sending data with TcpClient, is there any sort of CRC checking algorithm that works automatically? Or I have to implement my own algorithm and resend the data if it doesn't arrive to remote host correctly?


Solution

  • There is a checksum in TCP. But, as the same article says,

    The TCP checksum is a weak check by modern standards. Data Link Layers with high bit error rates may require additional link error correction/detection capabilities. The weak checksum is partially compensated for by the common use of a CRC or better integrity check at layer 2, below both TCP and IP, such as is used in PPP or the Ethernet frame.

    So if you have concerns about that, maybe it won't hurt to add another checking.