Question
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 requests in non-persistent mode. The web page contains text and five very small images. The minimum number of TCP connections required to display the web page completely in your browser is _______.
Official answer and solution
- Official answer
- 6
- From
- Official GATE 2020 answer key
Solution
Count the number of distinct web objects requiring TCP connections under non-persistent HTTP.
In non-persistent HTTP (HTTP/1.0 default mode):
- Each TCP connection is closed immediately after the server finishes sending the requested object.
- Thus, each distinct web resource (base HTML file or embedded object) requires its own separate TCP connection.
Counting the required objects:
- 1 base HTML web page document TCP connection.
- 5 embedded image objects TCP connections.
Total minimum TCP connections required:
6
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2020 Computer Science and Information Technology (CS)
- Question
- 35 of 65, printed as CS Q.25
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.