Here’s a quick difference between the two protocols:
TCP | UDP | |
1 Full form |
Transmission Control Protocol
|
User Datagram Protocols |
2 Order: | The destination will receive the packets in the same order it was being sent. | There will be no proper order/ arrangement of data. |
3 Success Rate: | Data must be transmitted WITHOUT FAIL | No guarantee that all data will be successfully transmitted. It is used where it is acceptable to lose some data points. |
4 Protection: | TCP guarantees. | UDP provides no guarantee for delivery and no protection from duplication. |
5 Overhead: | More overhead due to error-checking mechanisms. | The simplicity of UDP reduces overhead from the protocol and can be adequate for some applications. |
6 Speed: | Slower | Faster |
7 Connection: | Connection-based protocol
Connection is first established with recipient, only after that sent. |
Connection-less Protocol
A computer may send UDP packets without first establishing a connection to a recipient. |
8 Real Time Example: | TCP is mailing a letter with a return receipt at the post office, except that the post master will organise the letters in-order-of mailing and only deliver them in-order. | UDP is mailing a letter at the post office without making extra care if all mails are received. |
9 Usage: | Web, SSH, FTP, telnet, IMAP/POP, receiving mail, | DNS, DHCP, Media streaming, Tunneling/VPN |
10 In short: | TCP is for high-reliability data transmissions | UDP is for low-overhead transmissions |
If you found my compilation useful, drop a comment 🙂
All the best for your interviews or exams.