Question

In: Computer Science

Suppose you request a webpage that contains 10 images. Suppose the transmission time for a webpage...

  1. Suppose you request a webpage that contains 10 images. Suppose the transmission time for a webpage is 10ms, and the transmission time for an image is 5ms. Suppose that 10 images are located on 3 different servers: 5 of them are saved on marist.edu with the webpage, 2 are saved on nyu.edu, and 3 are saved on albany.edu.

Suppose the RTT between your host and marist.edu is 10 ms, between your host and nyu.edu is 20 ms, and between your host and albany.edu is 30 ms.

Assume parallel transmissions are not considered in this problem, that is, objects are obtained one after another.

a) How long does it take to load the entire webpage with HTTP 1.0?

b) How long does it take to load the entire webpage with HTTP 1.1?

Solutions

Expert Solution

SOLUTION:

The webpage is located on Server 1(marist.edu).

5 images are located on Server 1(marist.edu)

3 images are located on Server 2(nyu.edu)

2 images are located on Server 3(albany.edu)

The transmission time of a webpage=10ms.

The transmission time of an image=5ms.

RTT between host and marist.edu=10ms

RTT between host and nyu.edu=20ms

RTT between host and albany.edu=30ms

Now to load the entire webpage with HTTP 1.0
-------------------------------------------------------

You need to make 3 parallel connections, one with each server and maximum of time to transfer all required data from a server will be your time to load the entire webpage.

Time = 2*RTT for each object(RTT to make TCP connection and RTT to send file)+transmission time

Time to transfer data from marist.edu =2*RTT(1+5)+10+5*5=2*10*6+10+25=155ms

Time to transfer data from nyu.edu=2*RTT*2+2*5=2*20*2+10=90ms

Time to transfer data from albany.edu=2*RTT*3+3*5=2*30*3+15=195ms

Total time to load webpage =max(155,90,195)= 195 ms.

Now to load the entire webpage with HTTP 1.1
-----------------------------------------------------------------------

Time =RTT(TCP connection)+RTT for each object+transmission time.

Time to transfer data from marist.edu=RTT+RTT*(1+5)+10+5*5=10+10*6+10+25=105ms.

Time to transfer data from nyu.du=RTT+RTT*2+2*5=20+20*2+10=70ms

Time to transfer data from albany.du=RTT+RTT*3+3*5=135ms

Time to load webpage=max(105,90,135)=135ms.

Thank you,


Related Solutions

Assume you request a webpage consisting of one document and five images. The document size is...
Assume you request a webpage consisting of one document and five images. The document size is 1 kbyte, all images have the same size of 50 kbytes, the download rate is 1 Mbps, and the RTT is 100 ms. How long does it take to obtain the whole webpage under the following conditions? (Assume no DNS name query is needed and the impact of the request line and the headers in the HTTP messages is negligible). a. Nonpersistent HTTP with...
DNS Query and Web Page Access Time: Suppose you click on a hyperlink on a webpage...
DNS Query and Web Page Access Time: Suppose you click on a hyperlink on a webpage you are currently viewing -- this causes a new web page to be loaded and displayed. Suppose the IP address for the host in the new URL is not cached in your local DNS server (AKA local name server), so your Client (browser) makes a DNS query to obtain the IP address before the page can be requested from the web server. To resolve...
Create a HTML webpage for the film Avatar (2009). You can use the content (text, images)...
Create a HTML webpage for the film Avatar (2009). You can use the content (text, images) from this Wikipedia page: https://en.wikipedia.org/wiki/Avatar_(2009_film) Besides the basic HTML document elements, the html document should have the following components or meet the requirements: Use <header><section><nav><article><div><footer> to arrange the layout of the page h1, h2 At least 1 table At least1 image At least 2 links, one link opens the target page with a new window Several paragraphs with formatted text (use at least 3...
A Transmission Electron Microscope (TEM) is a kind of electron microscope that images by detecting electrons...
A Transmission Electron Microscope (TEM) is a kind of electron microscope that images by detecting electrons that pass through a sample (hence, the tranmission). This requires both very thin samples and much higher electron kinetic energies, at least an order of magnitude greater than a conventional Scanning Electron Microscope (SEM). If a particular TEM operates with an accelerating voltage of 150 kV, and therefore electrons with kinetic energies of 150 keV (recall KE = q∆V ), calculate the theoretical smallest...
An employee has come to you with a request to take on a part-time job. The...
An employee has come to you with a request to take on a part-time job. The employee would be working for Price Waterhouse as a contract employee during tax season. The employee has assured you that she will not work more than 20 hours a week, primarily on weekends. Price-Waterhouse is one of the five accounting firms that has put a bid in to do the auditing for G-BioSport. Possible Solutions: Allow the accountant to work as long as a...
An employee has come to you with a request to take on a part-time job. The...
An employee has come to you with a request to take on a part-time job. The employee would be working for Price Waterhouse as a contract employee during tax season. The employee has assured you that she will not work more than 20 hours a week, primarily on weekends. Price-Waterhouse is one of the five accounting firms that has put a bid in to do the auditing for G-BioSport. Possible Solutions: Allow the accountant to work as long as a...
An employee has come to you with a request to take on a part-time job. The...
An employee has come to you with a request to take on a part-time job. The employee would be working for Price Waterhouse as a contract employee during tax season. The employee has assured you that she will not work more than 20 hours a week, primarily on weekends. Price-Waterhouse is one of the five accounting firms that has put a bid in to do the auditing for G-BioSport. Be Reasonable: Explore the Options 1. Basic Liberties Choose three options...
1 – Create a webpage that contains a table with exactly three rows and two columns....
1 – Create a webpage that contains a table with exactly three rows and two columns. The first row will contain a table heading containing the name of a US National Park, that spans across all columns. Hint: use the colspan attribute inside the opening th tag Give the table heading an onmouseover that will change the text of the heading when it is moused over to read My Favorites Park! (Hint: use innerHTML). Use onmouseout to change it back....
1 – Create a webpage that contains a table with exactly three rows and two columns....
1 – Create a webpage that contains a table with exactly three rows and two columns. The first row will contain a table heading containing the name of a US National Park, that spans across all columns. Hint: use the colspan attribute inside the opening th tag Give the table heading an onmouseover that will change the text of the heading when it is moused over to read My Favorites Park! (Hint: use innerHTML). Use onmouseout to change it back....
An urn contains 10 red and 12 blue balls. They are withdrawn one at a time...
An urn contains 10 red and 12 blue balls. They are withdrawn one at a time without replacement until a total of 4 red balls have been withdrawn. Find the probability that exactly 7 balls withdrawn/
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT