CS FundamentalsHardWipro · Accenture pattern

An HTTP/2 connection carries multiple concurrent request/response streams over a single TCP connection. What fundamentally changed from HTTP/1.1 to make this safe without head-of-line blocking at the HTTP layer?

  1. A. Each message is split into length-prefixed, stream-ID-tagged frames, so independent streams can be interleaved and reassembled correctly regardless of arrival order
  2. B. HTTP/2 simply opens a new TCP connection per stream internally
  3. C. HTTP/2 requires all responses to be sent in request order, same as pipelining
  4. D. HTTP/2 removed the need for a response body entirely

Correct answer: A. Each message is split into length-prefixed, stream-ID-tagged frames, so independent streams can be interleaved and reassembled correctly regardless of arrival order

HTTP/2 framing tags every frame with a stream identifier, letting the receiver demultiplex interleaved frames into separate logical streams; this is the mechanism that removes HTTP-layer head-of-line blocking (TCP-layer HOL blocking can still occur, which HTTP/3 over QUIC addresses).

More Computer Networks questions

Exams that ask this topic