Question Bank - Computer Networks

Here's the question bank on all the computer networks topics.

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.
Q needs to send at least 2 HTTP requests to S, each necessarily in a separate TCP connection to server S
B.
Q needs to send at least 2 HTTP requests to S, but a single TCP connection to server S is sufficient
C.
A single HTTP request from Q to S is sufficient, and a single TCP connection between Q and S is necessary for this
D.
A single HTTP request from Q to S is sufficient, and this is possible without any TCP connection between Q and S

Solution:

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.

For more questions,

Click Here

Download Gyanm App

free current affairs for competitive exams

Scan QR code to download our App for
more exam-oriented questions

free current affairs for competitive exams

OR
To get link to download app

Thank you! Your submission has been received. You will get the pdf soon. Call us if you have any question: 9117343434
Oops! Something went wrong while submitting the form.