TCP checks everything. It’s slower, but more reliable:
* A: I’m sending you a thing!
* B: Acknowledged!
* A: Here’s the thing!
* B: I got it!
* A: I’m done sending things now!
* B: Acknowledged!
UDP checks nothing. It’s faster, but less reliable:
* A: Here’s the thing!
* (That’s it)
UDP is better when speed is crucial (e.g. gaming). TCP is better otherwise, whenever a slight delay doesn’t matter (e.g. most anything you do online).
Latest Answers