Sobes.tech
Junior

What are the differences between TCP and UDP protocols?

sobes.tech AI

Answer from AI

Characteristic TCP UDP
Reliability Guaranteed packet delivery No guarantee of packet delivery
Connection establishment Required (three-way handshake) Not required
Packet order Order is guaranteed Packet order is not guaranteed
Error checking Yes (retransmission, checksums) Yes (checksums), no retransmission
Flow control Yes (transmission rate control) No
Congestion control Yes (management mechanisms) No
Header size Larger (about 20 bytes) Smaller (8 bytes)
Speed Slower Faster
Application HTTP, FTP, SSH, Email DNS, DHCP, VoIP, online gaming