Transmission Control Protocol - Reliable Data Transmission
TCP (Transmission Control Protocol) is a connection-oriented, reliable transport protocol that ensures data is delivered correctly and in order. It's one of the core protocols of the Internet.
Guarantees data delivery with error checking and retransmission.
Establishes a connection before data transmission begins.
Ensures data packets arrive in the correct sequence.
Prevents overwhelming the receiver by controlling data transmission rate.
Uses checksums to detect corrupted data and requests retransmission.
Manages network traffic to prevent network congestion and collapse.
Sequences packets to ensure they arrive in the correct order.
| Feature | TCP | UDP |
|---|---|---|
| Connection | Connection-oriented | Connectionless |
| Reliability | High (guaranteed delivery) | Low (best effort) |
| Ordering | Guaranteed | Not guaranteed |
| Speed | Slower (overhead) | Faster (minimal overhead) |
| Header Size | 20 bytes (minimum) | 8 bytes |
| Use Cases | Web browsing, email, file transfer | Gaming, streaming, DNS |