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...
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.
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...
PROBLEM 2:    AD and AS ANALYSIS       Below are ten different scenarios that will affect the...
PROBLEM 2:    AD and AS ANALYSIS       Below are ten different scenarios that will affect the AD or/and the SAS and LAS. For each event, indicate what type of shifts will be created. There are six choices for shifting; for each event, place the number of the shift on the space provided. Provide only one shift for each event.            AD will shift to the left                   4.           SAS will shift to the right            AD will shift to the right                ...
two very small spheres are initally neutral and separated by a distance of .44m. suppose that...
two very small spheres are initally neutral and separated by a distance of .44m. suppose that 3.9E13 electrons are removed from one sphere and placed on the other. what is the magnitude of the electrostatic force that acts on each sphere?
Suppose that there are only three people that live in a (very) small town: Eric, Greg,...
Suppose that there are only three people that live in a (very) small town: Eric, Greg, and Katie. The town is thinking of building a park which you can assume is a public good for these three individuals in the town. Based on the individuals’ demand schedules for the park, which are given below, calculate and graph the social marginal benefit curve for the park. Eric’s Demand Greg’s Demand Katie’s Demand Price per Acre Number of Acres Price per Acre...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT