TCP is a robust layer 4 protocol that runs on top of the layer 3 IP protocol. It has lots of extra data added for redundancy such as error correction data. It’s really useful when data needs to arrive correctly.
UDP is a different layer 4 protocol running on IP. is slightly more fast and loose, it lessens the amount of error correction data to increase actual data. This is fine in some instances.
You *wouldn’t* use UDP to transfer your bank details, since the possibility of errors is much greater. Likewise, you *shouldn’t* use TCP for things like streaming video, since a bit error when streaming video is normally inconsequential and using TCP would be a waste of bandwidth.
Latest Answers