Skip to main content

Differences between TCP and UDP

Distinguish between TCP and UDP.

TCP (Transmission Control Protocol) is a connection-oriented, reliable transport protocol. UDP (User Datagram Protocol) is a connectionless, unreliable, lightweight transport protocol.

PointTCPUDP
ConnectionConnection-oriented (3-way handshake)Connectionless
ReliabilityReliable: ACK, retransmission, sequencingUnreliable, best effort
Data unitByte stream, segmentsMessage (datagram) with boundaries kept
OrderingOrdered delivery, duplicates removedNo ordering
Flow / congestion controlYes (window, slow start)No
Header size20 to 60 bytes8 bytes
Speed / overheadSlower, higher overheadFaster, low overhead
TransferPoint to point onlySupports broadcast and multicast
ApplicationsHTTP, FTP, SMTP, SSH, POP3DNS, DHCP, SNMP, VoIP, video streaming, TFTP

TCP is chosen when correctness matters; UDP when speed and low delay matter more than occasional loss.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computer Networks and Security chapter 5 questions →