Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
ntp polling interval
« previous
next »
Print
Pages: [
1
]
Author
Topic: ntp polling interval (Read 2655 times)
larry-au
Newbie
Posts: 3
Karma: 0
ntp polling interval
«
on:
March 28, 2022, 09:11:02 am »
I there a way to change the ntp "polling interval", so that the time synchronisation interval is longer than the default?
«
Last Edit: March 28, 2022, 09:43:01 am by larry-au
»
Logged
lilsense
Hero Member
Posts: 600
Karma: 19
Re: ntp polling interval
«
Reply #1 on:
March 28, 2022, 01:03:49 pm »
now, why would you want to play with that?
Logged
larry-au
Newbie
Posts: 3
Karma: 0
Re: ntp polling interval
«
Reply #2 on:
March 29, 2022, 04:36:37 am »
Well, time sync updates are in the order of >5 in a 20 minute period. That would be one significant reason.
On a Linux server, I would be setting that to no more than four times a day, with the minimum and maximum poll intervals. As OPNsense is not using the usual ntp.conf -or- chrony.conf configuration files, I venture to ask what is the 'best practice' method on OPNsense/FreeBSD?
Logged
Patrick M. Hausen
Hero Member
Posts: 6810
Karma: 572
Re: ntp polling interval
«
Reply #3 on:
March 29, 2022, 07:07:59 am »
Why would you want to sync only four times a day? The closer your local time is to the reference time source the better. Not that it would cause much traffic ...
The defaults are more frequent because VMs and systems with "quirky" time keeping hardware tend to drift much faster.
«
Last Edit: March 29, 2022, 12:21:33 pm by pmhausen
»
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
lilsense
Hero Member
Posts: 600
Karma: 19
Re: ntp polling interval
«
Reply #4 on:
March 29, 2022, 12:11:49 pm »
It's not just VM's but any processor is prone to shifts and I am not sure 4 times a day solves any problems other than maybe being a half a sec behind, possibly.
Logged
larry-au
Newbie
Posts: 3
Karma: 0
Re: ntp polling interval
«
Reply #5 on:
March 29, 2022, 02:36:03 pm »
Well, should have been a simple two or three post enquiry! And with all due respect; rather than a pub table discussion about other peoples experiences and opinions in different scenarios.
Plenty of papers around about offset time drift in peer host synchronization, in IEEE and ACM, etc. But that doesn't solve/answer the original question.
So, in the absence of a definitive response, I'll have to git clone the repository and dig through the code.
Somewhat disappointing for what I would have expected to be a professional and collaborative forum.
«
Last Edit: March 29, 2022, 02:37:46 pm by larry-au
»
Logged
lilsense
Hero Member
Posts: 600
Karma: 19
Re: ntp polling interval
«
Reply #6 on:
March 29, 2022, 07:11:54 pm »
instead of the issue you are discussing tha has to with the two time servers, you'd be best just either used one or very many. But then again, have at it and do as you please...
Logged
Patrick M. Hausen
Hero Member
Posts: 6810
Karma: 572
Re: ntp polling interval
«
Reply #7 on:
March 29, 2022, 07:27:43 pm »
Quote from: larry-au on March 29, 2022, 02:36:03 pm
Somewhat disappointing for what I would have expected to be a professional and collaborative forum.
My collaborative and professional recommendation based on 30 years experience of data centre operation: activate ntpd and let it run as the developers intended. This piece of software is auto tuning with an adaptive interval and supposed to do the right thing. I don't see any reason why one would want to mess with the timing parameters.
Kind regards,
Patrick
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
eicastic1
Newbie
Posts: 2
Karma: 1
Re: ntp polling interval
«
Reply #8 on:
April 11, 2022, 10:11:36 am »
To the OP....it's not adjustable. NTP is a protocol with an algorithm baked in (NTPd is the service). You may be thinking of SNTP (simple network time protocol) which you can adjust the interval on, but that's far less accurate.
A properly running (full) NTP client will decide on its own how often to poll the servers you've configured. Initially it will check every 64 seconds, but once the clock has been stabilized, the polling may be every 1024s.
If the algorithm detects something wonky with the clock it will automatically start polling more often as needed.
The full NTP algorithm can get into the millisecond area on a WAN, and even more accurate on LANs.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
ntp polling interval