Question

In: Computer Science

Suppose an HTML file references 4 very small objects (therefore total of 5 objects including the...

Suppose an HTML file references 4 very small objects (therefore total of 5 objects including the HTML file).  

The HTML file and the referenced objects are stored in a different server i.e. One server that has the HTML file and another server that contains all the referenced objects.

Neglecting transmission times, home much would have elapsed for all the objects to be loaded/received in

Part 1 (5 points): Persistence connection scenario

Part 2 (5 points): Non- persistence connection scenario

Assume that the round-trip delay is 40ms for each back and forth communication (even for establishing TCP connection). It is the same for both the servers.

Solutions

Expert Solution

The Hypertext Transfer Protocol (HTTP) is an application-level protocol that uses TCP as an underlying transport and typically runs on port 80. HTTP is a stateless protocol i.e. server maintains no information about past client requests.

1.persistent

2.Non-persistent

RTT-> Time for a small packet to travel from client to server and back.

RTT= 2*propagation time

In persistent Lower CPU and memory usage because there are less number of connections,Allows HTTP pipelining of requests and responses, Reduced network congestion (fewer TCP connections), Reduced latency in subsequent requests (no handshaking).

In Non-persistent  It requires connection setup again and again for each object to send.

according to Given,

persistence connection scenarion

Time taken=2RTT(connection time)+2*4RTT

=2*40+2*4*40

=80+320

=400ms

Non-persistence connection scenarion

Time Taken=2 RTT(connection time)+4

RTT=2*40+4*40

=80+160

240ms


Related Solutions

Referring to Problem 2 above, suppose the HTML file references ten very small objects on the...
Referring to Problem 2 above, suppose the HTML file references ten very small objects on the same server. Neglecting transmission time, how much time elapses with a. Non-persistent HTTP with no parallel TCP connections? b. Non-persistent HTTP with the browser configured for 3 parallel connections? c. Persistent HTTP? (Assume that pipelining is used.)
5. Create an HTML file that uses an array to store links for your three favorite...
5. Create an HTML file that uses an array to store links for your three favorite websites. Use a for loop to display each link URL within an alert dialog box. I would like to see the HTML page displaying the message.
A macro lens is designed to take very close-range photographs of small objects such as insects...
A macro lens is designed to take very close-range photographs of small objects such as insects and flowers. At its closest focusing distance, a certain macro lens has a focal length of 33.0 mm and forms an image on the photosensors of the camera that is 1.19 times the size of the object. 1) How close must the object be to the lens to achieve this maximum image size? (Express your answer to three significant figures) 2) What is the...
Chapter 4 Assignments - Part #1 (Part #2 is on next page) Submit an HTML file...
Chapter 4 Assignments - Part #1 (Part #2 is on next page) Submit an HTML file attached to an email with your web page containing the elements below. - Create a web page with a comment containing your name after this line. o - In the head section, add character encoding. - Add the title "Chapter 4 Web Page #1 - by yourname" - Create a file called myStyles.css as the style sheet for the web page. - Add the...
Indicate which statements are true or false Only very small objects have an associated wave function....
Indicate which statements are true or false Only very small objects have an associated wave function. Electrons show interference effects like waves. The quantization of frequencies is specific to quantum physics. Light can display particle properties, Quantum effects are only visible at microscopic scales.
Please compose a research paper of 3-5 pages (not including cover and references) about the future...
Please compose a research paper of 3-5 pages (not including cover and references) about the future trends of Long Term Care in the next 10 years. Hypothesize, how YOU think Long Term Care will be like in 2025 and support your theory with facts. What trends do you think would develop to face the future challenges? What regulations will be established? What laws will possibly be eliminated or reinforce if any? In your paper, include all aspects of long term...
Please compose a research paper of 3-5 pages (not including cover and references) about the future...
Please compose a research paper of 3-5 pages (not including cover and references) about the future trends of Long Term Care in the next 10 years. Hypothesize, how YOU think Long Term Care will be like in 2025 and support your theory with facts. What trends do you think would develop to face the future challenges? What regulations will be established? What laws will possibly be eliminated or reinforce if any?    In your paper, include all aspects of long term...
Write an (8-page paper including budgets) on Budgetary Planning with at least 5 references in APA...
Write an (8-page paper including budgets) on Budgetary Planning with at least 5 references in APA format and using Excel for your budgets. You may select any type of company you would like for this project and will be explaining your selection in the Company Overview section.
please write a 4-page essay on the comparison between us and European monetary policy including references.
please write a 4-page essay on the comparison between us and European monetary policy including references.
5. Give an example of a scatterplot for which |r| is very small, but for which...
5. Give an example of a scatterplot for which |r| is very small, but for which there is a very strong relationship between the explanatory and response variables. 6. What are three reasons |r|~ 0?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT