-
October 25th, 2007, 12:23 AM
#1
RTT in nanoseconds
Hi everyone. I'm new to socket programming so sorry if this is a noob question.
Nway, is there a way to ping an access point, given that i know it's IP address, and get the RTT in nanoseconds, instead of miliseconds?
-
October 25th, 2007, 12:31 AM
#2
Re: RTT in nanoseconds
Divide?
http://www.calculateme.com/Time/Nano...lliseconds.htm
RTT is internal to TCP; there is no way for an application to get the value. Instead, you should do the same thing TCP does: arrange to exchange a few messages, compute your own estimate of the round trip time, then divide that by 2, and add it to the clock before sending the time.
-
October 25th, 2007, 09:26 AM
#3
Re: RTT in nanoseconds
Depending on what OS you are using, you might or might not be able to get super accurate times.
On MS, you can use QueryPerformanceFrequence as a high resolution timer.
-
October 25th, 2007, 10:08 AM
#4
Re: RTT in nanoseconds
But seriously, why do you think you need nanosecond precision in RTT? RTT is known to deviate significantly from segment to segment, and in fact the deviation is so significant that most stacks calculate the retransmission timeout based also on the deviation in RTT, not simply the RTT alone.
Most implementations are happy with an estimate of RTT in the millisecond-range precision. You want something one million times more accurate. It would be helpful if you explained why.
Mike
-
October 25th, 2007, 10:53 AM
#5
Re: RTT in nanoseconds
Originally Posted by MikeAThon
But seriously, why do you think you need nanosecond precision in RTT? RTT is known to deviate significantly from segment to segment, and in fact the deviation is so significant that most stacks calculate the retransmission timeout based also on the deviation in RTT, not simply the RTT alone.
Most implementations are happy with an estimate of RTT in the millisecond-range precision. You want something one million times more accurate. It would be helpful if you explained why.
Mike
Ok. I might not really need nanosecond precision for this. is jst that i need to calculate de average RTT from a laptop to an access point and i can't have 0ms as a result.
The laptop and the access point will be only a few meters away from each other. Therefore i think that millisencond estimation won't be enough.
Thanx for the replies btw.
Last edited by iStriker; October 25th, 2007 at 11:05 AM.
-
March 17th, 2012, 07:15 AM
#6
Re: RTT in nanoseconds
hi ,
i'm doing project on positioning using time of arrival techniques. So i need round trip time (RTT) in nanoseconds in order to calculate time of arrival from access point to laptop..
-
August 13th, 2013, 01:53 AM
#7
Re: RTT in nanoseconds
Originally Posted by iStriker
Ok. I might not really need nanosecond precision for this. is jst that i need to calculate de average RTT from a laptop to an access point and i can't have 0ms as a result.
The laptop and the access point will be only a few meters away from each other. Therefore i think that millisencond estimation won't be enough.
Thanx for the replies btw.
Hi istrike;
Did you calculate the RTT in nanoseconds... I also want to calculate RTT in micro or nanoseconds... if you have solve the issue please reply with the code..
Thanks..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|