1
TCP vs UDP ★★★★★
Computer Network
| TCP | UDP |
|---|---|
| Connection-oriented (handshake first) | Connectionless |
| Reliable: acknowledgement, retransmission | Unreliable: no guarantee of delivery |
| Data arrives in order | No ordering |
| Flow and congestion control | None |
| Slower, 20-byte header | Faster, 8-byte header |
| Web (HTTP), email, file transfer, SSH | Video streaming, gaming, VoIP, DNS |
SYN → SYN-ACK → ACK