[Ntp] Antw: [EXT] Re: Local time in NTPv5?

Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> Mon, 01 August 2022 09:15 UTC

Return-Path: <Ulrich.Windl@rz.uni-regensburg.de>
X-Original-To: ntp@ietfa.amsl.com
Delivered-To: ntp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9706CC15AB6B for <ntp@ietfa.amsl.com>; Mon, 1 Aug 2022 02:15:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.906
X-Spam-Level:
X-Spam-Status: No, score=-1.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Aevk5ZTHBJ7U for <ntp@ietfa.amsl.com>; Mon, 1 Aug 2022 02:15:04 -0700 (PDT)
Received: from mx0.uni-regensburg.de (mx0.uni-regensburg.de [194.94.157.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0F2F1C14F72A for <ntp@ietf.org>; Mon, 1 Aug 2022 02:15:03 -0700 (PDT)
Received: from mx0.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id CE4316000061 for <ntp@ietf.org>; Mon, 1 Aug 2022 11:14:59 +0200 (CEST)
Received: from mx1.uni-regensburg.de (mx1.uni-regensburg.de [IPv6:2001:638:a05:137:165:0:3:bdf7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx.uni-regensburg.de", Issuer "DFN-Verein Global Issuing CA" (not verified)) by mx0.uni-regensburg.de (Postfix) with ESMTPS id CB24C600004A for <ntp@ietf.org>; Mon, 1 Aug 2022 11:14:59 +0200 (CEST)
Received: from mx1.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 6194C600004E for <ntp@ietf.org>; Mon, 1 Aug 2022 11:14:59 +0200 (CEST)
Received: from gwsmtp.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by mx1.uni-regensburg.de (Postfix) with ESMTP id 5B74A6000063 for <ntp@ietf.org>; Mon, 1 Aug 2022 11:14:58 +0200 (CEST)
Received: from uni-regensburg-smtp1-MTA by gwsmtp.uni-regensburg.de with Novell_GroupWise; Mon, 01 Aug 2022 11:14:59 +0200
Message-Id: <62E79991020000A10004BFD4@gwsmtp.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.4.0
Date: Mon, 01 Aug 2022 11:14:57 +0200
From: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
To: mayer@pdmconsulting.net, mlichvar@redhat.com
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <YuFTPU4kvL+4teZO@localhost> <a5e8e165-08ed-596e-76b6-072573977e94@pdmconsulting.net> <YueISWEyyDX4u2Ly@localhost>
In-Reply-To: <YueISWEyyDX4u2Ly@localhost>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
X-PMX-local: 62E79993_6833_2355_1
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/-ICFCUJyo-2tBqiyPKjyvAFjyYY>
Subject: [Ntp] Antw: [EXT] Re: Local time in NTPv5?
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Network Time Protocol <ntp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ntp>, <mailto:ntp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ntp/>
List-Post: <mailto:ntp@ietf.org>
List-Help: <mailto:ntp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ntp>, <mailto:ntp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Aug 2022 09:15:08 -0000

>>> Miroslav Lichvar <mlichvar@redhat.com> schrieb am 01.08.2022 um 10:01 in
Nachricht <YueISWEyyDX4u2Ly@localhost>:
> On Sat, Jul 30, 2022 at 10:56:07PM ‑0400, Danny Mayer wrote:
>> This makes no sense at all. NTP only knows about UTC. All major operating
>> systems store timestamps in UTC. Time‑zones are just a display issue.
> 
> This is about very simple devices like a large digital clock that you
> mount on a wall in an office or warehouse, plug it to the network with
> PoE, and expect it to display local time. It may not have any
> operating system, or any services accessible from the network. Just a
> simple firmware with a DHCP and NTP client.
> 
> The NTP server is provided in the option 42 (or 56 for IPv6). This is
> well known and widely used.
> 
> For the timezone it seems there are three options. The old option 2
> (time offset) and more recent options 100 (TZ POSIX string) and 101
> (TZ name) from RFC4833. Option 2 provides only the current offset, so
> this wouldn't work well with DST changes. The option 101 requires the
> client to have an up‑to‑date TZ database, but the option 100 provides
> the current timezone itself as a string, including DST. This should
> work well in this use case.

If the vendor of the clock dies not want to provide firmware with current
timezone definitions,
there still could be user options to configure or upload such. And if the
device is so cheap that it does not have flash memory, "good old" conding
switches could be added to configure an offset from UTC.
Or maybe create a custom NTP server (away from any standard) that reponds with
different time offsets from UTC depending on the IP address that receives (and
sends) tha packet.
I'd consider that as a big mess.

(I wonder: What do DCF-77 users in France (for example) do (where the TZ is
different from Germany))

> 
> I guess those devices I heard people complaining about didn't support
> this option, or maybe they didn't have it documented. It could be an
> awareness issue. I didn't know it existed before starting this thread.
> 
> If there is no good use case for local time without DHCP, I agree that
> it would be better to leave it out of NTPv5.

I can remember user complaints saying our NTP server would send out the wrong
time after DST switch ;-)

Regards,
Ulrich

> 
> ‑‑ 
> Miroslav Lichvar
> 
> _______________________________________________
> ntp mailing list
> ntp@ietf.org 
> https://www.ietf.org/mailman/listinfo/ntp