Question

In: Computer Science

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.)

Solutions

Expert Solution

Answer:

a)Non persistent HTTP with no parallel TCP connection

In non Persistent HTTP connection is immediately closed after a transfer of an object.

Hence for each object transfer, we have to establish a connection first.

To establish a connection (between server and client) we need 1 RTT and 1 RTT to request and transfer an object. (Ignoring all other delay like Transmission delay, processing delay)

To transfer an object we need a reference to the file also. To get a file we need also a 2 RTT because 1 for connection and 1 for transfer a file (TCP connection).

Hence total time = DNS query RTT + file transfer time+ 10 object transfer time

DNS query = RTT1+ RTT2+….+ RTTn

File transfer= 2RTT0

10 object transfer time =10*2RTT0 (because in non persistent HTTP 2 RTT are required for each object transfer, 1 for Connection and 1 for object transfer)

Hence Total= RTT1+ RTT2+….+ RTTn+2RTT0+(10*2)RTT0

Total=22*RTT0 + RTT1+ RTT2+….+ RTTn

b)Non-Persistent HTTP with the browser configured for 3 parallel connections:

2 RTT0forreceiving the HTML file and the 3 parallel connection for 3 objects would take another 2RTT0and for the another 3 objects would take another 2 RTT0 and the another 3 objects would take another 2 RTT0 and the remaining one object would take 2 RTT0 total time now would be =2 RTT0+ 2 RTT0+2 RTT0+2 RTT0+1*2 RTT0 +RTT1+ RTT2+ RTT3+ RTT4+…. +RTTn

In total = 10RTT0+RTT1+ RTT2+ RTT3+ RTT4+…. +RTTn

c)Persistent HTTP with pipeline.

In Persistent HTTP only 1 time connection establishment is needed. No need to establish a connection for successive transmission.

In persistent HTTP with pipeline

We need 2 RTT for web page (1 for connection and 1 for page transfer (TCP connection))

And to transfer 10 objects we need only 1 RTT.

Hence

Total=2 RTT0+1 RTT0+( RTT1+ RTT2+….+ RTTn)
Total=3 RTT0+RTT1+RTT2+.....+RTTn


Related Solutions

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...
Referring to the same problem as above, the County departments will utilize a total of 30,000...
Referring to the same problem as above, the County departments will utilize a total of 30,000 hours of service time, broken down according to the table below. How does the IT Department bill the $3,000,000 to each department (i.e. How much should each department be billed in order to cover the $3,000,000 IT costs?) (Again, format your answer in dollar amounts only. Do not use the dollar sign ($) or any commas.) Department Hours of processing time used Finance 12,000...
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...
4.3. Referring to the previous problem, again suppose that a uniform prior is placed on the...
4.3. Referring to the previous problem, again suppose that a uniform prior is placed on the proportion π, and that from a random sample of 327 voters, 131 support the sales tax. Also suppose that the newspaper plans on taking a new survey of 20 voters. Let y∗ denote the number in this new sample who support the sales tax. Find the posterior predictive probability that y∗ = 8. Find the95% posterior predictive interval for y∗.Do this by finding the...
Binary file IO Suppose a file has been encrypted using the Caesar cipher as described above,...
Binary file IO Suppose a file has been encrypted using the Caesar cipher as described above, and you know the secret key. Write a program to decrypt (or decode) the file. Your program will prompt the user to enter an input file name for the encrypted file, an output file name for the unencrypted version of the input file, and the secret key. Create a DataInputStream for the input file and a DataOutputStreams for the output file. Next, read 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.
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...
A small grocery store uses a very basic file format to store prices for its goods....
A small grocery store uses a very basic file format to store prices for its goods. This file format has one item per line. The first word of the line is the name of the product, and after this is the price of the product in dollars (no dollar sign). For example, a typical file might look like: bread 2.50 milk 1.90 pizza 10.95 Write a C program which reads one such file (create your own for testing) into two...
Suppose f is a function giving the altitude (height above ground) in feet of a small...
Suppose f is a function giving the altitude (height above ground) in feet of a small plane, depending on time t in seconds. Select the best interpretation of each value, function, or expression below. (a) f(50)=1000 means the altitude of the plane is 1000 feet after 50 secondsthe altitude of the plane is increasing at a rate of 50 feet per second after 1000 seconds    the altitude of the plane is 50 feet after 1000 secondsthe altitude of the plane is...
Problem: Selecting Condiments A box of condiments has ten small packages, in which three are ketchup,...
Problem: Selecting Condiments A box of condiments has ten small packages, in which three are ketchup, three are mustard, and four are relish. A sample of three packages is randomly selected (without replacement) from the box. 1. Find the probability distribution for X, the number of mustard packages in the sample. 2. What are mean and variance of X? 3. What is the probability that at most one mustard package is selected? 4. What is the probability that at least...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT