Re: Sub-millisecond NTP synchronization for local network



Jon =?utf-8?Q?K=C3=A5re?= Hellan <dev@xxxxxxxx> writes:

leibs@xxxxxxxxxxxxxxxx (Jeremy Leibs) writes:

Our configuration is 4 machines connected on a local gigabit network located
on a mobile robotic base. These machines are subject to frequently being
powered down or restarted. In order to use the robot, the clocks on these
machines must be self-synchronized to less than 1 millisecond. Ping times
between machines on this local network vary between 100 microseconds, and
1ms depending on saturation of the network by sensor data streams.

I suspect that ntp may be the wrong solution to this. I've had two
computers mounted in the same rack, both running ntp. One was GPS
synchronized, the other synched to the first one over the network. The
network was wired ethernet and a switch, all lightly loaded. Estimated
error in the GPS synchronized computer was about 1 us, but it was
several ms on the network synchronized one. With a more suitable
computer, the results would probably have been better, but I don't
think 1 ms over a general purpose network is feasible.

There was something very very wrong with your system then. Getting
20microseconds over a local net is easy. On a local net, the delay should
only be about 100microseconds, certainly not milliseconds. Your system had
something about it that was completely messed up. What operating system?
were they directly wired together or did they go via a switch located in
Tonga? What was the ping time from one machine to the other?



I've never tried PTP (IEEE 1588), but according to the description, it
is designed to solve exactly the problem you're facing.

A solution which lets you use ntp is to synchronize it to a wired PPS
(pulse per second) signal distributed to all your computers. ntp
performs very well when it's PPS synchronized - I've never seen worse
than 10 us estimated error. Distributing PPS to many receivers
requires a little bit of electronics, but it's very simple. The beauty
of electronics is that timing is a lot more predictable than with
operating systems.

Agreed.


Jon KÃ¥re Hellan, UNINETT, Trondheim, Norway
.



Relevant Pages

  • Re: I cant understand Windows Explorer
    ... 'Network Places' either. ... machines that are turned off. ... duration from the router. ... we have four computers in one room and six in the other. ...
    (microsoft.public.windowsxp.general)
  • Re: install
    ... You just need to set up your network correctly. ... start by running the Network Setup Wizard on all machines (see ... Problems sharing files between computers on a network are generally caused ... by 1) a misconfigured firewall or overlooked firewall (including a stateful ...
    (microsoft.public.windows.vista.installation_setup)
  • Re: Simple peer problem
    ... >but the problem is with two of the XP machines. ... >I can go to any machine, XP or WIN98 and in Neighborhood Network or Network ... >to View workgroup computers to see them and then I can't access them... ... I'll bet you have a browser problem (I'm not talking about Internet Explorer ...
    (microsoft.public.windowsxp.network_web)
  • Re: Changed from a software to a hardware firewall...now NETWORK PLACES wont display computer names
    ... to do before...open Network places and see the computers identified by their machine name. ... Two way communications OK between computers and internet and can ping by computer name - names just don't display in NETWORK PLACES. ... I'm beginning to wonder if the builtin 4 port switch works differently than the earlier plain vanilla switch - is it possible that the firewall is interacting in some way with the builtin switch such that I need to configure ... By way of a diagnostic, I think I'd change 2 machines back to static IP's, the same ones that they were previously assigned dynamically, see if those two can browse each other. ...
    (comp.security.firewalls)
  • Re: Workgroup Issue
    ... which is the Master Browser and which are not. ... They have a network hardware firewall/router in place and up to date ... Ping by IP address to different machines generally works ... Wait 4-5 minutes for Network Neighborhood to refind the computers ...
    (microsoft.public.windowsxp.network_web)