• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting accurate timestamps for received datagrams
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting accurate timestamps for received datagrams


  • Subject: Re: Getting accurate timestamps for received datagrams
  • From: email@hidden
  • Date: Fri, 27 Mar 2009 13:14:49 +0000 (UTC)

It sounds like you are trying to reinvent NTP
I find it hard to understand why you cannot just use it.

I have been in setups -- like an isolated network -- where you just designate one machine as the Time Reference and then all other machines NTP-sync on that one.

----- Original Message -----
From: Thomas Tempelmann <email@hidden>
To: email@hidden
Sent: Fri, 27 Mar 2009 09:15:30 +0000 (UTC)
Subject: Getting accurate timestamps for received datagrams

Background:

I am still working on code to synchronize the clocks of two
network-connected computers.

Each side tries to learn the time of the peer by repeatedly sending UDP
datagrams containing its current time for the other to receive.
My software then uses a "smart" algorithm to compare the sender's times with
its local receive times, learning the network travel time and guessing the
actual time of its peer this way.

(Note: I can not use system-provided times that are sync'd over NTP, as
these peers will be end-user computers and I cannot mess with their time
settings. Also, their firewall might block such ports. All I have control
over are is single open UDP/TCP port for my app.)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Getting accurate timestamps for received datagrams (From: Thomas Tempelmann <email@hidden>)

  • Prev by Date: Getting accurate timestamps for received datagrams
  • Next by Date: Re: Getting accurate timestamps for received datagrams
  • Previous by thread: Getting accurate timestamps for received datagrams
  • Next by thread: Re: Getting accurate timestamps for received datagrams
  • Index(es):
    • Date
    • Thread