[ntp:questions] Hoes a IoT device discover the NTP era with NTPv4?

William Unruh unruh at invalid.ca
Mon Mar 11 20:46:14 UTC 2019


On 2019-03-11, Nelson Bolyard <nbolyard at silverspringnet.com> wrote:
> I'm working on an IoT device whose clock only runs when it has power.  When it first starts up, and also after every crash, its clock starts at zero.  Today this device uses SNTPv3 to set its clock by contacting a nearby NTP server, and always assumes it is in NTP era zero.  
>
> But 2036 is fast approaching.  I want to know how, using NTPv4, a device like mine can figure out that it is no longer in era zero.  Once it figures out the era that it is in, the rest should be easy.  

If (Era 0 year<2019) then you are in era 1, else in era 0) That should get you to 2080
or so. If you really believe your device will  survive till that time,
then you may have to think of something else. 

>
> Advice?



More information about the questions mailing list