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

4. Persistent versus non-persistent TCP connections (10 pts.). Suppose within yo

ID: 3887132 • Letter: 4

Question

4. Persistent versus non-persistent TCP connections (10 pts.).

Suppose within your Web browser you click on a link to obtain a Web page. Suppose the IP address for the associated URL is cached in your local host, so that a DNS lookup is not necessary. Denote RTT as the roundtrip time between the local host and the server containing the Web page. Assume the Web page consists of a base HTML file and three small images. Assume the transmission times for all of the objects are negligible in comparison with the RTT. How much time elapses (in terms of RTTs) from when the user clicks on the link until the client receives the entire Web page with each of the following? Explain/discuss each answer you provide. (You MUST use the

CLIENT-SERVER parallel connections diagrams to support you answers

a. Non-persistent HTTP with no parallel connections (4 points)

b. Non-persistent HTTP with up to five parallel connections (3 points)

c. Persistent HTTP with pipelining (3 points)

Explanation / Answer

RTT as the round trip time(RTT) between the local host and server containing the webpage

Our web page contians 3 small images html based file.

So total amount of time as to get the IP address is by using RTT

RTT1 + RTT2 +...+ RTTn (up to 1 to n)

After calculating the IP time to get the IP address we got the IP addressand it is known as RTTO.

elapses to set up the TCP connection and another RTT0


elapses Request time to receive the small object is


RTT1 + 2RTTo + RTT2 +.....+ RTTn

A)Non-persistent HTTP with no parallel connections.

Round trip time is calculate from zero to n beciuase we don't know the IP address.

in the above total RTT is RTT1 + 2RTTo + RTT2 +.....+ RTTn

RTT1 +...+RTTn+2RTT0 +2.4.RTT0
RTT1 + ...+Rttn+18RTT0.

B)Non-persistent HTTP with up to five parallel connections

RTT shold be calculate from zero to n beciuase we don't know the IP address.

in the above total elapsed RTT is RTT1 + 2RTTo + RTT2 +.....+ RTTn

RTT1 +...+RTTn+2RTT0 +2.2.RTT0
RTT1 + ...+Rttn+6RTT0.

C)Persistent HTTP with pipelining?
HTTP requests are sent on a single TCP connection without waiting for the corresponding responses
In this RTT is RTT1 + 2RTTo + RTT2 +.....+ RTTn
RTT1 +...+RTTn+2RTT0 +1.RTT0
RTT1 + ...+Rttn+3RTT0.

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