TCP, UDP & HTTP Evolution
Reliable ordered streams vs. low-overhead datagrams, and HTTP/1.1 -> HTTP/2 -> HTTP/3 over QUIC
Difficulty: Beginner · Read time: 8 min · Access: Step-1 Preview + Knoera Pro
How It Works
Transmission Control Protocol (TCP) guarantees reliable, ordered byte delivery via a 3-way handshake (`SYN`, `SYN-ACK`, `ACK`), sequence acknowledgments, and retransmissions. User Datagram Protocol (UDP) skips handshakes and strict ordering for minimal latency. Hypertext Transfer Protocol (HTTP) evolved from sequential connections (`HTTP/1.1`), to multiplexed streams sharing one TCP socket (`HTTP/2`), to `HTTP/3` running over QUIC (Quick UDP Internet Connections) to eliminate transport-level Head-of-Line (HoL) blocking.
Why It Matters
Transport choice directly governs tail latency vs. correctness: TCP’s strict ordering causes an entire HTTP/2 multiplexed page to stall when a single cellular packet drops, whereas UDP and QUIC keep independent media or web streams moving smoothly on flaky Wi-Fi and 5G (Fifth-Generation) mobile networks.
Interactive Architecture Scenarios
- TCP Handshake & Reliable Delivery
- UDP Real-Time Stream (WebRTC / Gaming)
- Failure Mode: HTTP/2 TCP Head-of-Line Stall