Re: timesync when using IWD stand-alone

Martin Petzold <[email protected]>
Newsgroups dev.linux.lists.iwd
Organization TAVLA Technology GmbH
Message-ID <[email protected]>
Dear James,

Am 05.11.24 um 21:05 schrieb James Prestwood:
> Hi Martin,
>
> On 11/5/24 11:22 AM, Martin Petzold wrote:
>> Dear Harry,
>>
>> Am 05.11.24 um 19:23 schrieb Harry ten Berge:
>>> On Tue, 5 Nov 2024 at 19:15, Martin Petzold 
>>> <[email protected]> wrote:
>>>> Hi all,
>>>>
>>>> if I configured my Ethernet interface via systemd-networkd and 
>>>> there is
>>>> NO carrier (no cable connected). But my wifi is configured, managed 
>>>> and
>>>> connected by IWD (EnableNetworkConfiguration=true). In a typical case
>>>> there is no other NTP server configured in timesyncd.conf. How will
>>>> systemd-timesyncd sync the system time?
>>> Is there a specific reason why you have chosen for IWD to handle the
>>> network configuration?
>>> I use IWD in combination with systemd-networkd all the time, and it
>>> works like a charm. In that case systemd-timesyncd also works
>>> 'out-of-the-box.
>>>
>> Thanks, this may be the best approach then. I will switch back to 
>> that configuration. I changed it because, unfortunately, my chip 
>> (driver) does not work well with IWD.
>>
>> However, the mentioned case should be known as a potential problem, 
>> because for this case timesyncd and IWD may not work together well. I 
>> wonder how NTP should be configured in general, if IWD manages a 
>> single wifi only network (maybe even without any systemd). Maybe 
>> there should be some documentation about this case. The wifi guest 
>> network is nothing uncommon. And there are several sources suggesting 
>> also IWD could take over control.
>
> I think in general, for the average user, NTP works fine with IWD 
> doing DHCP because a service like ntpd, chrony, or timesyncd will 
> still utilize external NTP servers to sync the time. Its only for 
> firewall'd networks blocking NTP where you would run into problems if 
> its expected that the client should use the NTP server provided over 
> DHCP.
I disagree, a FritzBox guest network is a very common setup (we have 
several testing sites and this is a selected common setup). Port 123 
could also be blocked in other guest network setups, seems reasonable. 
So, it should at least be noted in the documentation (single line). If 
it is required, no idea. But IMHO stand-alone IWD is then nothing really 
stable. We are not talking about devices connected by cable at a fixed 
place. With wifi they can be everywhere, in any potential (common) network.
>
> I actually don't see IWD/ELL doing anything with the NTP DHCP option 
> so this may be an area for improvement (i.e. advertise it over DBus). 
> It appears networkd-timesyncd and systemd-netword are closely coupled 
> as far as support for using an NTP server from DHCP. ntpd/chrony look 
> to be only statically configurable. So all in all if IWD wants to work 
> with timesyncd in this fashion its going to require buy in from both 
> IWD and timesyncd. I also wonder how common this is, or if most 
> clients just use an external NTP source and ignore what's in the DHCP 
> exchange.

In the case as mentioned, time won't be in sync. This can also effect 
TLS certificates and other time related systemd services.

Best regards,

Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.