retagged by
15,106 views
17 votes
17 votes
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 $\textsf{HTTP}$ requests in non-persistent mode. The web page contains text and five very small images.The minimum number of $\textsf{TCP}$ connections required to display the web page completely in your browser is__________.
retagged by

3 Answers

Best answer
35 votes
35 votes

In $\textsf{HTTP}$ non-persistent connection, each time a request is served by the server, the connection is automatically closed by the server.

So we need $1$ connection for web page and $5$ for images. Thus, in total we need $6$ $\textsf{TCP}$ connections to fetch web page completely.

Answer: 6

selected by
12 votes
12 votes
Since, Browser cache is empty, first of all DNS will complete its DNS translation, but that would be a UDP connection, so you don't need to worry about it!

After that, first TCP connection will be established which will be used to request the BASE HTML FILE. After the client extracts the base html file, it will Request for the five referenced objects of the pagr using five different TCP connections.

Hence, total 6 TCP connections would be required.
4 votes
4 votes
6

In non-persistent HTTP for every object there is a TCP connection required. Hence 1 TCP connection for text and 5 TCP connections for images required. So, total of 6 TCP connections are required.
Answer:

Related questions

9 votes
9 votes
4 answers
2
Arjun asked Feb 12, 2020
10,296 views
Consider the following statements about the functionality of an $\textsf{IP}$ based router.A router does not modify the $\textsf{IP}$ packets during forwarding.It is not ...
15 votes
15 votes
5 answers
3
Arjun asked Feb 12, 2020
9,051 views
Let $\mathcal{R}$ be the set of all binary relations on the set $\{1,2,3\}$. Suppose a relation is chosen from $\mathcal{R}$ at random. The probability that the chosen re...
15 votes
15 votes
4 answers
4
Arjun asked Feb 12, 2020
9,065 views
Let $G$ be a group of $35$ elements. Then the largest possible size of a subgroup of $G$ other than $G$ itself is _______.