Routers serve names, why not time as well?

I’m sure nobody is ever going to read this but I wondered why router manufacts always include name serving and always never include time serving. Seems odd to leave that at clients. In a LAN it would make an awefull lot of sense if all devices have a same sense of time and what better equipement is there than a router? It serves names, or relays them why shouldnt it server time?

This is why

https://chat.deepseek.com/share/b3u3dyj3jii09qg05r

I suspect it’s because it’s a lot more convenient for the operating system to point at several well-known NTP servers on the Internet, perhaps provided by the OS distributor, rather than try to guess whether the user’s default gateway will have an NTP server on it.

End user systems on the network tend to get their DNS resolver IP by DHCP, and that can work for their NTP server(s) as well, but it never really caught on and in any case, you need at least 3, so I’m not sure it’s a good idea to just have the consumer router send out DHCP with just its single IP listed as NTP provider.

What we have now seems better.

1 Like

The routers/gateways as they serve DNS, they supposed to do the same with NTP. Unfortunately not all end device supports the NTP server config via DHCP, even if the information is already available.
Imagine a client with systemd-timesyncd. That is one of the lightest service among the different NTP client daemon implementations. It uses only one NTP server at a time, and that perfectly match the default number of NTP servers on the LAN, the default gateway. There is no need for extra security, assuming that the gateway uses one of the safest NTP server software, ntpd-rs or ntpsec with NTS enabled and with multiple NTP servers.
It would also solve the issue mentioned in another thread, the rate-limiting when a nasty workaround, the NAT is in place: end clients do not have to access a given NTP server competing for the same public IP address so adding up the number of NTP packets from the NTP server’s point of view.

In fact many of them do, believe it or not.
As they broadcast the time-server via DHCP into your local lan.
I have many routers here in the house and they all do.

Fritzbox, OpenWRT, DrayTek, Asus, MicroTek, etc.
I can’t remember any modern (less then 10 years old) that doesn’t do this.

Mint/Ubuntu does pickup on this DHCP info and appoints the router-ntp info, sadly it doesn’t always work well.

Other silly thing, why don’t ISP’s spread the time-protocol themselves to all connected clients via e.g. PPPoE? They do tell the DNS-servers but often (always?) fail to give time-servers.

I do agree with you, it should be default in routers and dhcp, sadly it’s not always the case.

I am curious, is there a PPP negotiation for NTP server? I did not think so. If there is one, as an ISP, we’d be very happy to support it. Sadly I think there is not.

As for routers doing NTP, do look at FireBrick. Does NTP server properly and provides setting via DHCP.

No, indeed there isn’t. It would need to be standardized, and would then show up in the relevant IANA registry. But there is nothing there related to NTP.

My ISP provided router does advertise the ISP’s NTP server.

Just a singular one, which also happens to be one of the DNS servers. The other DNS servers also respond to NTP.

Discovered this by accident when I did chronyc sources and found a strange new server.
Stratum 3, some 10.x.x.x reference, and no better than other (quite good) public NTP servers.

@theking2

If your current router/firewall does not offer a NTP server daemon (NTP, Chrony, NTS, etc.) or NTP via DHCP, then you should probably be looking for a new router or distribution.

Here is a practical comparison of the most common router/firewall distributions from an NTP/GPS time server perspective. Credit: Copilot

Platform Default NTP Daemon GPS Support PPS Support Notes
pfSense CE / Plus ntpd [deepwiki.com], [docs.netgate.com] Built-in GUI support for serial GPS receivers including Generic, Garmin, u-blox, MTK, etc. [deepwiki.com], [docs.netgate.com] Built-in GUI support via kernel PPS API. [deepwiki.com], [docs.netgate.com] One of the best firewall platforms for Stratum-1 NTP. Native GPS+PPS configuration pages.
OPNsense OpenBSD ntpd by default [docs.opnsense.org] Built-in GPS reference clock support in Network Time service. [docs.opnsense.org] Supported when hardware exposes PPS. [forum.opnsense.org] Can also use the Chrony plugin for advanced timekeeping. [reddit.com], [forum.opnsense.org]
OpenWrt BusyBox ntpd (sysntpd) by default [openwrt.org] Possible via gpsd + full ntpd package. [openwrt.org], [forum.openwrt.org] Supported if the hardware exposes PPS/GPIO/serial interrupt lines. [openwrt.org], [gist.github.com] Usually requires extra packages and manual configuration.
VyOS chrony (current releases) [docs.vyos.io] Not a turnkey feature; possible through Linux gpsd integration. [forum.vyos.io] Technically possible through Linux PPS infrastructure and chrony. [forum.vyos.io] Strong chrony-based timing stack but more manual work than pfSense/OPNsense.
IPFire NTP service (ntpd-based implementation) provides local NTP server capability. [ipfire.org] No native GPS configuration documented. [ipfire.org], [ipfire.org] No native PPS support documented. [ipfire.org], [ipfire.org] Primarily aimed at Internet-sourced NTP synchronization.
MikroTik RouterOS v7 Built-in NTP client/server. [help.mikrotik.com], [mikrotikdocs.fyi] Can read GPS and set system time from GPS receivers. [help.mikrotik.com], [manual.mikrotik.com] PPS support generally not availablefor Stratum-1 operation according to MikroTik discussions. [forum.mikrotik.com], [forum.mikrotik.com] Good for GPS-derived time, but not ideal as a precision PPS-disciplined Stratum-1 server.

Best choices for a true Stratum-1 GPS/PPS NTP server

Rank Platform Comments
1 pfSense Easiest. Native GPS and PPS GUI. Excellent for homemade Stratum-1 appliances. [deepwiki.com], [docs.netgate.com]
2 OPNsense Nearly as capable as pfSense. GPS support built in, Chrony optional. [docs.opnsense.org]
3 VyOS Very powerful with chrony, but requires Linux-level setup. [forum.vyos.io], [docs.vyos.io]
4 OpenWrt Works well on supported hardware, but mostly DIY. [openwrt.org], [forum.openwrt.org]
5 RouterOS Fine for ordinary NTP, weak for precision PPS timing. [forum.mikrotik.com], [forum.mikrotik.com]
6 IPFire Focused on standard NTP service rather than reference-clock applications. [ipfire.org], [ipfire.org]

My preference is pfSense https://github.com/elvisimprsntr/pfsense-ntp-gps

1 Like

OpenWRT can use any NTP-server package you like.
GPSD
NTPd
NTPsec
Chrony

No need to switch unless you want to make it STR1 with a GPS.

My preferred choice is OpenWRT.