GATE / CS ARCHIVE

GATE CSE 2020 / QUESTION 25

GATE CSE 2020 Q25

Computer Networks · Application Protocols · Full GATE CSE 2020 paper

GATE 2020, Q25 1 mark · NAT
Report issue

Application Protocols

Question 25, GATE 2020: An empty-cache browser fetches a page with text and five very small separately referenced images using nonpersistent HTTP. What is the minimum number of TCP connections needed to display it completely?
Tap to enlarge
Answer & solution

Official answer: 6

Worked explanation

First retrieve the HTML/text document. Its references reveal five image resources, each of which must then be requested because the cache starts empty. Nonpersistent HTTP closes a connection after one request/response object, so the six objects require six connections. Concurrently opening image connections may reduce elapsed time but cannot reduce the count. “Very small” changes transmission duration, not HTTP’s connection-reuse rule. Persistent HTTP would permit reuse, but the question expressly excludes it.

Derivation and answer

Nonpersistent HTTP uses a separate TCP connection for each retrieved object. There is one HTML/text object and five image objects, so six connections. This uses the standard interpretation of separate externally referenced images, not inline data embedded in the HTML.

Original paper, page 9 · Answer key