DEV Community

Adriana Pinto
Adriana Pinto

Posted on

Internet Protocols

TCP (Transmission Control Protocol) vs UDP (User Datagram Protocol)


TCP: is a layer 4 protocol which provides acknowledgement of the received packets and is also reliable as it resends the lost packets. It is better than UDP but due to these features it has an additional overhead. It is used by application protocols like HTTP and FTP.

UDP: is also a layer 4 protocol but unlike TCP it doesn’t provide acknowledgement of the sent packets. Therefore, it isn’t reliable and depends on the higher layer protocols for the same. But on the other hand it is simple, scalable and comes with lesser overhead as compared to TCP. It is used in video and voice streaming.

Differences between TCP and UDP: https://www.geeksforgeeks.org/differences-between-tcp-and-udp/


Protocol suite

TCP vs UDP

TCP vs UDP meme


Source: GeeksforGeeks

Top comments (0)