Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Briefly differentiate between HTTP persistent and non-persistent connections. B.

ID: 3875482 • Letter: B

Question

Briefly differentiate between HTTP persistent and non-persistent connections. B. Suppose within your Web browser you click on a link to obtain a Web page. The IP address for the associated URL is not cached in your local host, so a DNS lookup is necessary to obtain the IP address. Suppose that two DNS servers are visited before your host receives the IP address from DNS. The first DNS server visited is the local DNS cache, with an RTT delay of RTT_0 = 5 msecs. The second DNS server contacted has an RTT of 8 msecs. Initially, let's suppose that the Web page associated with the link contains exactly one object, consisting of a small amount of HTML text. Suppose the RTT between the local host and the Web server containing the object is RTT_HTTP = 63 msecs. 1. Assuming zero transmission time for the HTML object, how much time elapses from when the client clicks on the link until the client receives the object? 2. Suppose the HTML object references 4 very small objects on the same web server. Neglecting transmission times, how much time elapses from when the client clicks on the link until the base object and all 4 additional objects are received from web server at the client, assuming non-persistent HTTP and no parallel TCP connections? 3. Suppose the HTML object references 4 very small objects on the same web server. Neglecting transmission times, how much time elapses from when the client clicks on the link until the base object and all 4 additional objects are received from web server at the client, assuming that the client is configured to support a maximum of 5 parallel TCP connections, with non-persistent HTTP. 4. Suppose the HTML object references 4 very small objects on the same web server. Neglecting transmission times, how much time elapses from when the client clicks on the link until the base object and all 4 additional objects are received from web server at the client, assume that the client is configured to support a maximum of 5 parallel TCP connections, with non-persistent HTTP. Show all your work and calculations.

Explanation / Answer

Hi i will explan briefly http persistent or non persistent?

HTTP is like a stateless protocol. HTTP can use both nonpersistent connections and persistent connections. A nonpersistent connection is the one that is closed after the server sends the requested object to the client. In other words, the connection is used exactly for one request and one response.

Persistent will use HTTP version 1.1 while non-persistent will use version 1.0.

Use non-persistent only if your server does not support http version 1.1.

HTTP method HEAD or GET is selected with the command 'keepalive method'.

A head does not require the server to send us the content of the requested file, but simply an acknowledgement that the file is available.

The GET will request the complete file from the server and the CSS will verify that the content did not change compare to first GET request.

Again, I would recommend the default - head, unless you believe somebody could corrupt the content of your website.

Thanks

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote