TCP vs UDP Error-Checking

connectionsockettcpudp

I've bounced upon two articles that describe in-depth on how TCP and UDP connections work. However there is some kind of inconsistency. Where one article tells me that UDP does no Error-Checking at all, the other article mentions that UDP Does some sorth of error-checking but no recovery or corrections. I would like to know which of the two is the most correct?

Thanks in advance!

Best Answer

Yes, the second article is right. The UDP protocol also has error-checking but doesn't have any error-recovery.

  • Error-detection: detect error occurs on the frame ( FCS does that )
  • Error-recovery: using sequence of bytes to detect error occurs, and if it happen, resend it.