Skip to main content
InterviewHubPRO
Section Overview
Q21

Question 21 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

42%
Networking & Protocols (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

What is TCP Head-of-Line (HoL) Blocking and how does QUIC eliminate it?

senior Levelnetworking-protocolsAdvanced Internals

In Simple Words: In TCP, all bytes are delivered as a strictly ordered byte stream:

  • If Packet #3 is dropped in transit, Packets #4, #5, and #6 cannot be delivered to the application, even if they arrived safely! The OS buffer halts completely waiting for the retransmission of #3.
  • In HTTP/2 (which runs on one TCP connection), a single dropped packet stalls all 50 multiplexed HTTP streams!
  • QUIC / HTTP/3 Solution: Each stream inside QUIC is an independent transport stream. A dropped packet on Stream 1 only stalls Stream 1; Streams 2 through 50 continue processing uninterrupted!