* Re: IP delivers packets only every milli-second?
1995-08-08 4:00 IP delivers packets only every milli-second? Stephane Bortzmeyer
@ 1995-08-14 4:00 ` Alexander A. Senkevitch
1995-08-21 4:00 ` SUMMARY: " Stephane Bortzmeyer
1 sibling, 0 replies; 3+ messages in thread
From: Alexander A. Senkevitch @ 1995-08-14 4:00 UTC (permalink / raw)
bortzmeyer@cnam.fr (Stephane Bortzmeyer) wrote:
>I'm experimenting with ping on an Alpha (DEC 3000/600S) with
>OSF/1 2.0. Apparently, ping round-trip times are always
>multiples of 0.977 ms (1 second / 1024...). I don't see the
>same behaviour on Linux, for instance.
>Replacing gettimeofday by getclock, as suggested by the man
>page apparently changes nothing.
>Does anyone know how to obtain a better time resolution (one
>milli-second is clearly too long for an Alpha on Ethernet)?
>Stephane Bortzmeyer Conservatoire National des Arts et Metiers
>bortzmeyer@cnam.fr Laboratoire d'Informatique
> 292, rue Saint-Martin
>tel: +33 (1) 40 27 27 31 75141 Paris Cedex 03
>fax: +33 (1) 40 27 27 72 France
>"C'est la nuit qu'il est beau de croire a la lumiere." E. Rostand
>http://web.cnam.fr/personnes/bortzmeyer/home_page.dom
>
>
Well, that's probably a function of the TCP/IP stack that is on each
OS. I do know that there is a physical limitation relating to time
and transmit/return speeds. For instance, there is a standard 1ms
latency associated with transmittal of an IP packet across long
distance networks, typically 1ms=100km. So, for every 100km of
distance a packet must travel, there is a 1ms latency observed, this
goes for both a transmission as well as the acknowledgment (ACK).
Thats why many of the IP over ATM tests that have transpired using,
for instance, T3 circuits (44.736 Mbps) usually post 25 Mbps
throughput, maximum. This relates to the "windowing" issue, or the
MTU (Max. Transmit. Unit) controversy about which is the best size for
long dist. transmission.
^ permalink raw reply [flat|nested] 3+ messages in thread
* SUMMARY: IP delivers packets only every milli-second?
1995-08-08 4:00 IP delivers packets only every milli-second? Stephane Bortzmeyer
1995-08-14 4:00 ` Alexander A. Senkevitch
@ 1995-08-21 4:00 ` Stephane Bortzmeyer
1 sibling, 0 replies; 3+ messages in thread
From: Stephane Bortzmeyer @ 1995-08-21 4:00 UTC (permalink / raw)
On Tuesday 8 August 95, at 8 h 58, the keyboard of bortzmeyer@cnam.fr (Stephane Bortzmeyer) wrote:
> I'm experimenting with ping on an Alpha (DEC 3000/600S) with
> OSF/1 2.0. Apparently, ping round-trip times are always
> multiples of 0.977 ms (1 second / 1024...). I don't see the
> same behaviour on Linux, for instance.
>
> Replacing gettimeofday by getclock, as suggested by the man
> page apparently changes nothing.
>
> Does anyone know how to obtain a better time resolution (one
> milli-second is clearly too long for an Alpha on Ethernet)?
Well, as explained by Jeffrey Mogul <mogul@pa.dec.com> and a few others,
IP delivers packets when they arrive, not at discrete intervals. getclock
changes nothing because it's just another library routine on the top of
gettimeofday. According to Jeffrey Mogul, "Sooner or later, perhaps in
the next major release, Digital UNIX [the new name of OSF/1] will sup-
port microsecond resolution in gettimeofday()." (Linux already has
it.)
In the mean time, there exist an (unsupported) way to reach that pre-
cision: directly read the program counter of the Alpha. Here is Jef-
frey Mogul's code to do that:
--------- readpcc.s -----------------
#define v0 $0
#define ra $26
#define sp $30
#define zero $31
.align 4
.globl ReadPCC
.ent ReadPCC,0
ReadPCC:
.frame sp,0,ra
rpcc v0 # read the process cycle counter
ret zero,(ra)
.end ReadPCC
--------- end of readpcc.s -----------------
To use it, you first calibrate the processor and then you use that
routine to improve gettimeofday results. As far as I know, the full
code is not redistributable but it's quite simple.
I've used this improved gettimeofday in my traceroute Web page:
http://web.cnam.fr/Network/traceroute.html
which indicates the speeds of the various links encountered.
Thanks to everybody and specially to Jeffrey Mogul <mogul@pa.dec.com>,
Eric Werme USG <werme@zk3.dec.com> and Dave Cherkus <cherkus@UniMaster.COM>.
Stephane Bortzmeyer Conservatoire National des Arts et Metiers
bortzmeyer@cnam.fr Laboratoire d'Informatique
292, rue Saint-Martin
tel: +33 (1) 40 27 27 31 75141 Paris Cedex 03
fax: +33 (1) 40 27 27 72 France
"C'est la nuit qu'il est beau de croire a la lumiere." E. Rostand
^ permalink raw reply [flat|nested] 3+ messages in thread