The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Using SNTP



On Mon, Aug 11, 2008 at 9:10 AM, Neil Wrightson <neilw@xxxxxxx>
wrote:
> Hi Nick,
>
> Exactly my point.
>
> Approximately 60 A4 pages of data here, yet the author said he sent
one
> simple UDP packet and got one back with the current time in it.
> Surely somebody on this list has already shed the tears and blood over
these
> documents and would know what the packet might be.

OK.  You send one UDP packet to the time server. Every byte in that packet
is zero except the first.  The value of that first byte depends on the
the software
that the time server is running - get it wrong and the server ignores
the request.

To determine what values of the first byte are accepted you need to be
running
the full NTP protocol (since SNTP is designed for LANs where you have full
control over every machine in the network).  Using SNTP over the Internet
is
always going to be hit-and-miss.

If successful you get back 84 bytes which is in the format described by
RFC1361
in section titled "NTP Message Format".

Nick.

------------------------------------


UKHA_D Main Index | UKHA_D Thread Index | UKHA_D Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.