TCP and UDP in Simple Terms!!!


2 min read

Story Time:

Imagine you want to send a message to your friend who lives far away. You have two options: TCP and UDP.


  • TCP (Transmission Control Protocol) is like sending a letter through registered mail.

  • You write your message, put it in an envelope, and send it. The registered mail service ensures that the letter arrives safely and in the correct order.

  • If any part of the letter gets lost or damaged during the journey, the service will detect it and ask for that part to be resent.

  • Once your friend receives the letter, they acknowledge its arrival.

  • TCP ensures that your message is reliably delivered, and both you and your friend know that it reached its destination without any problems.


  • UDP (User Datagram Protocol) is like sending a postcard.

  • You write your message directly on the postcard, put a stamp on it, and drop it in a mailbox.

  • The postcard is sent as is, without any additional checks or guarantees. It may arrive quickly or with some delay, and there's no guarantee that it will arrive in the same order as you sent it.

  • Additionally, the postcard doesn't require your friend to acknowledge its arrival. UDP is faster and more lightweight than TCP but provides less reliability and error checking.

Which used where:

TCP: TCP ensures reliable and ordered delivery of data, making it suitable for applications like web browsing, email, and file transfer, where data integrity is crucial.

UDP: UDP, on the other hand, is used for applications that prioritize speed and efficiency over guaranteed delivery, such as real-time video streaming, online gaming, or voice-over IP (VoIP) services.

So that is about TCP and UDP in simple Terms. Hope you liked it. C YAAA!!!!


Did you find this article valuable?

Support SYED IMAM by becoming a sponsor. Any amount is appreciated!