0
$\begingroup$

How do I calculate RTT, do I start to measure the time from the beginning of the segment transmition or from the moment all the segment had been transmitted?

The end time is the moment the sender gets the "ACK".

$\endgroup$
3
  • $\begingroup$ I'm not sure that's the right place for this question. $\endgroup$ Jan 28, 2013 at 14:39
  • $\begingroup$ So where is the right place ? $\endgroup$
    – URL87
    Jan 28, 2013 at 14:42
  • $\begingroup$ Perhaps the main stackexchange site? $\endgroup$ Jan 28, 2013 at 16:19

3 Answers 3

2
$\begingroup$

The round trip time is the time required to go and return, so it must be measured from the start of the transmission to the start of the reception of the response. If you measure from the end of the packet to the end of the ACK, you are subtracting the package length and adding in the length of the acknowledgement's package (the ACK could be piggibacked on any package doing the back trip). This can very well be measured during a stream of data (and it is done so by your neighborhood TCP stack to tune timeouts and so on).

$\endgroup$
1
$\begingroup$

The best way to measure RTT is to send a single message packet and wait for the acknowledgement.

Starting your measurememt differently would only add unnecessary details because you start measuring delays not caused by the network. This is why pings are usually used measure RTT.

But it s nothing but an implementation detail.

$\endgroup$
1
$\begingroup$

Something that you should consider is to do some statistics on different data size. Send different data packet size, measure RTT, Then you can measure Avg. RTT based on data size, its variance and jitters. there are some open source tools for measuring these numbers like Wireshark.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.