Round Trip Time Http on non persistent, persistent, persistent with pipelining
<p>networking is my final course in my Masters degree. I do have a question regarding how to calculate Round Trip Time of  http on  non persistent, persistent and persistent with pipelining.</p>

<p>After spending countless hours reading regarding the issue, downloading notes from other unis and even searching for youtube videos i was unable to sort this out. </p>

<p>In order to understand how RTT is calculated let's just say that a client asks for an HTML page that contains 10 images. [ Let's keep Propagation delay at zero.] </p>

<p>Please follow my logic </p>

<p>First of all the 3 way handshake that TCP connection does  counts as 1 RTT. So does when TCP connection closes.</p>

<p>1) In non Persistent HTTP , we have to make the TCP connection so it's 1 RTT so far. Since we have 10 objects we will have 2*10=20 RTT's. This leads to 1RTT +20 RTT's = 21 RTT's. [ A different way this can be calculated is by saying that since it opens new connections each time, for 10 objects it will need 3 RTT's  so it will 30 RTT's.]</p>

<p>2) In persistent HTTP, we need one 1RTT for the connection and 1 for each object.  This leads to 1RTT+10RTT's= 11 RTT's. [ Should i add an RTT for closing connection thus leading to 12 RTT's? In my understanding it will time out by it self after a while.]</p>

<p>3) In Persistent HTTP with pipelining,  we will need one RTT to open the TCP connection, one RTT to send  10 objects and one RTT to close the connection. This leads to 1RTT+1RTT+1RTT=3 RTT's.</p>

<p>Any help on this matter would be highly appreciated! </p>