A graphical HTML browser resident at a network client machine Q accesses a static HTML webpage from a HTTP server S. The static HTML page has exactly one static embedded image which is also at S. Assuming no caching, which one of the following is correct about the HTML webpage loading (including the embedded image)?
A graphical HTML browser resident at a network client machine Q accesses a static HTML webpage from a HTTP server S. The static HTML page has exactly one static embedded image which is also at S. Assuming no caching, which one of the following is correct about the HTML webpage loading (including the embedded image)? Correct Answer Q needs to send at least 2 HTTP requests to S, but a single TCP connection to server S is sufficient
Explanation:
- Q makes a TCP connection with S
- First request for the webpage when this request is received by S
- Second request to S for picking up that image so at least 2 HTTP request are needed.
- Above two request are done using HTTP version 1.1 ( HTTP persistent connection )
- HTTP Persistent connection can make several requests on the same server.
- Here TCP may close the TCP connection.
- So at least 2 HTTP request are enough and 1 TCP connection is sufficient for desired goal.
Hence option 2 is the correct answer.
মোঃ আরিফুল ইসলাম
Feb 20, 2025