network-programmingudp

Can UDP data be delivered corrupted?


Is it possible for UDP data to come to you corrupted? I know it is possible for it to be lost.


Solution

  • UDP packets use a 16 bit checksum. It is not impossible for UDP packets to have corruption, but it's pretty unlikely. In any case it is not more susceptible to corruption than TCP.