Skip to content

GATE CS 2020 Q25 — Application Layer Protocols: DNS, SMTP, HTTP, FTP, Email

Explain with AI
Assume that you have made a request for a web page through your web browser to a web server. Initially the browser cache is empty. Further, the browser is configured to send HTTP\textsf{HTTP} requests in non-persistent mode. The web page contains text and five very small images.The minimum number of TCP\textsf{TCP} connections required to display the web page completely in your browser is__________.
View worked solution

Answer: 6

In non-persistent HTTP, each TCP connection is closed immediately after the server completes sending the requested object. Therefore, every single object (the base HTML file and each embedded resource) requires its own separate TCP connection.

To display the web page completely, the browser needs to fetch:

  1. The base HTML file (which contains the text of the web page): 1 connection
  2. The five embedded images: 5 connections (1 connection per image)

Thus, the total minimum number of TCP connections required is:

Total Connections=1 (for HTML)+5 (for images)=6\text{Total Connections} = 1 \text{ (for HTML)} + 5 \text{ (for images)} = 6

Note: Even if the browser opens multiple connections in parallel to speed up the download, the total number of distinct TCP connections established remains 6.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Application Layer Protocols: DNS, SMTP, HTTP, FTP, Email questions