4 ms·
This is actually a tiny `sntp` client: 14. Simple Network Time Protocol (SNTP) Primary servers and clients complying with a subset of NTP, calle
by dfc 11y ago
This is actually a tiny `sntp` client:
14. Simple Network Time Protocol (SNTP)
Primary servers and clients complying with a subset of NTP, called
the Simple Network Time Protocol (SNTPv4) [RFC4330], do not need to
implement the mitigation algorithms described in Section 9 and following
sections. SNTP is intended for primary servers equipped with a single
reference clock, as well as for clients with a single upstream server
and no dependent clients. The fully developed NTPv4 implementation is
intended for secondary servers with multiple upstream servers and multiple
downstream servers or clients. Other than these considerations, NTP and
SNTP servers and clients are completely interoperable and can be intermixed
in NTP subnets.
https://tools.ietf.org/html/rfc5905#section-14 https://tools.ietf.org/html/rfc5905#section-14
- ghshephard 11y agoUsually an SNTP client will add the latency/2 to get the correct time - I.E. if a packet takes 350 msec to return, then you'll want to add 175 msec from the wall-clock-time in the packet to get the "current wall clock time".