Why Does Persistent HTTP Have an Extra RTT?

AI Thread Summary
The discussion revolves around understanding a specific problem related to network latency and round-trip times (RTTs) in a homework assignment. The user initially calculates the total time for a client to receive data, including DNS resolution and the initial handshake, but arrives at an incorrect total by not accounting for an additional RTT. The key realization is that the client must first request and receive the base HTML file before it can request any additional objects referenced within that file. This sequence of events leads to the necessity of two separate RTTs: one for the initial HTML request and another for the subsequent requests for embedded objects. The clarification confirms that the user's understanding aligns with the correct reasoning for the problem.
perplexabot
Gold Member
Messages
328
Reaction score
5
Hello all. I am trying to understand number 2c of this pdf:
http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDEQFjAA&url=http%3A%2F%2Fwww.nyu.edu%2Fclasses%2Fjcf%2FCSCI-GA.2262-001_fa12%2Fhandouts%2FHomework2Solutions.pdf&ei=DX1sUurmCeOYiQKnwYFg&usg=AFQjCNElBG4mGrEvpyPHCu4HeWcWQYGxSA&sig2=0D9G34-MeX0IDDOVNdZWhQ&bvm=bv.55123115,d.cGE.

I have tried solving it on my own but I got the wrong answer. I am starting to get irritated.

How I solved the problem:
Time for DNS to supply client with IP: RTT1 + ... + RTTn
Time for client to have initial handshake: RTT0
Time for client to receive all message: RTT0

Total time = RTT1 + ... + RTTn + RTT0 + RTT0 = RTT1 + ... + RTTn + (2 * RTT0)

According to the answer I am missing a RTT0. I have no idea where that extra RTT0 comes from. May someone please help me out?
 
Technology news on Phys.org
I think I realize why now. Is it because, first you have to request the base HTML file, and it is until this file is received at the client that the client can go on and ask about the objects contained in that HTML file? Hence, two different RTTs will occur.

Can someone confirm this?
 
perplexabot said:
I think I realize why now. Is it because, first you have to request the base HTML file, and it is until this file is received at the client that the client can go on and ask about the objects contained in that HTML file? Hence, two different RTTs will occur.

Can someone confirm this?

Seems right to me.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
4
Views
2K
Replies
12
Views
3K
Replies
3
Views
2K
Replies
6
Views
9K
Replies
1
Views
3K
Replies
3
Views
2K
Back
Top