
From nobody Sun Feb  3 23:23:34 2019
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 ADD38130E25 for <ntp@ietfa.amsl.com>; Sun,  3 Feb 2019 23:23:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GEHjVtoSuvoI for <ntp@ietfa.amsl.com>; Sun,  3 Feb 2019 23:23:24 -0800 (PST)
Received: from rrzmta1.uni-regensburg.de (rrzmta1.uni-regensburg.de [194.94.155.51]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4C835130E9B for <ntp@ietf.org>; Sun,  3 Feb 2019 23:23:23 -0800 (PST)
Received: from rrzmta1.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 6C0845F270 for <ntp@ietf.org>; Mon,  4 Feb 2019 08:23:21 +0100 (CET)
Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta1.uni-regensburg.de (Postfix) with ESMTP id 57FC9A215 for <ntp@ietf.org>; Mon,  4 Feb 2019 08:23:20 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Mon, 04 Feb 2019 08:23:20 +0100
Message-Id: <5C57E866020000A10002F788@gwsmtp1.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.1.0 
Date: Mon, 04 Feb 2019 08:23:18 +0100
From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
To: "ntp@ietf.org" <ntp@ietf.org>
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org>
In-Reply-To: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/vy6ALNzIQc3e9SFv434iQ60s_xI>
Subject: [Ntp] Antw:  NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 04 Feb 2019 07:23:30 -0000

Hi!

Recently I had this idea for REFID:
In the past one yould find out the time source where the currentl time =
came from.
With the new proposal, it's no longer possible. AFAIR the arguments were =
pro this (source not being trackable).
I have an argument against this: If you establish some time stamping =
service, you may be interested to document where the time came from. Just =
as one might document the certificate path back to the root CA...

Regards,
Ulrich Windl





From nobody Mon Feb  4 04:41:55 2019
Return-Path: <heiko.gerstung@meinberg.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 4D0E31294D0 for <ntp@ietfa.amsl.com>; Mon,  4 Feb 2019 04:41:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.291
X-Spam-Level: 
X-Spam-Status: No, score=-4.291 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dNFLBbmPktX0 for <ntp@ietfa.amsl.com>; Mon,  4 Feb 2019 04:41:50 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3988712896A for <ntp@ietf.org>; Mon,  4 Feb 2019 04:41:50 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id D79ED71C0FA1; Mon,  4 Feb 2019 13:41:45 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de D79ED71C0FA1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1549284107; bh=J33uAIzMHuhQ4CTbQH/0yog/kGGRTtlQvfCLZz3PhDE=; h=Date:Subject:Message-ID:References:In-Reply-To:Mime-version:From: To:Content-Type:Content-Transfer-Encoding; b=f00GCF8VyqiJLMZ8/+Dn6PWh8RykMojSfGNItzU6TN1rcHaVU4Zcoh9x6hWRZCFNJ cTcyydsY2JTlQ5u/mF5+6oUM9mz+/a7P14nd4M6jfb2lRH4hwIdT6o3Hj+U6PTZ90Q MheViZtR2VGFBM5Hp2LG8OOldtKn/mUTMecpKu/Y=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.8.1193, Stamp: 3], Multi: [Enabled, t: (0.000005,0.004045)], BW: [Enabled, t: (0.000007)], RTDA: [Enabled, t: (0.195981), Hit: No, Details: v2.7.26; Id: 15.1i60358.1d2s8ekqa.gb49], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
User-Agent: Microsoft-MacOutlook/10.14.0.181208
Date: Mon, 4 Feb 2019 13:41:41 +0100
Message-ID: <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de>
Thread-Topic: [Ntp] Antw:  NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org> <5C57E866020000A10002F788@gwsmtp1.uni-regensburg.de>
In-Reply-To: <5C57E866020000A10002F788@gwsmtp1.uni-regensburg.de>
Mime-version: 1.0
Importance: Normal
X-Priority: 3
Thread-Index: AZ2x3tU+YzhkNmU0ZmJiYjg4MjJiYg==
From: Heiko Gerstung <heiko.gerstung@meinberg.de>
To: Ulrich Windl <ulrich.windl@rz.uni-regensburg.de>, "ntp@ietf.org" <ntp@ietf.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/eM3qBf577aTIlxyPHN3L13mtu4Q>
Subject: Re: [Ntp] Antw:  NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 04 Feb 2019 12:41:53 -0000

Hi Ulrich,

I believe that the RefID is not a good way of documenting where your time c=
ame from, it is easy to change and does not offer any legal or operational =
proof of anything, especially not when you need to fulfill some kind of tra=
ceability requirements. A certificate trail is completely different as it a=
llows to make sure that the trail is what it says it is.=20

I personally also like the possibility to easily spot what the time source =
of my time source is by looking at the RefID, but it is not capable of reli=
ably fulfilling the traceability demands of users.=20

Best Regards,
   Heiko


--=20
Heiko Gerstung=20
Managing Director

MEINBERG=C2=AE Funkuhren GmbH & Co. KG
Lange Wand 9
D-31812 Bad Pyrmont, Germany
Phone:    +49 (0)5281 9309-404
Fax:        +49 (0)5281 9309-9404

Amtsgericht Hannover 17HRA 100322
Gesch=C3=A4ftsf=C3=BChrer/Management: G=C3=BCnter Meinberg, Werner Meinberg=
, Andre Hartmann, Heiko Gerstung

Email:
 heiko.gerstung@meinberg.de=20
Web:
 Deutsch   https://www.meinberg.de
 English    https://www.meinbergglobal.com

Do not miss our Time Synchronization Blog:
 https://blog.meinbergglobal.com=20

Connect via LinkedIn:=20
https://www.linkedin.com/in/heikogerstung
=20
=20

=EF=BB=BFOn 04.02.19, 08:24 "ntp im Auftrag von Ulrich Windl" <ntp-bounces@=
ietf.org im Auftrag von Ulrich.Windl@rz.uni-regensburg.de> wrote:

    Hi!
   =20
    Recently I had this idea for REFID:
    In the past one yould find out the time source where the currentl time =
came from.
    With the new proposal, it's no longer possible. AFAIR the arguments wer=
e pro this (source not being trackable).
    I have an argument against this: If you establish some time stamping se=
rvice, you may be interested to document where the time came from. Just as =
one might document the certificate path back to the root CA...
   =20
    Regards,
    Ulrich Windl
   =20
   =20
   =20
   =20
    _______________________________________________
    ntp mailing list
    ntp@ietf.org
    https://www.ietf.org/mailman/listinfo/ntp
   =20

=


From nobody Mon Feb  4 11:03:26 2019
Return-Path: <stenn@nwtime.org>
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 AE8A2130F56 for <ntp@ietfa.amsl.com>; Mon,  4 Feb 2019 11:03:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qarr4C3rDqX1 for <ntp@ietfa.amsl.com>; Mon,  4 Feb 2019 11:03:21 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [66.220.13.234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5DD4F130F1D for <ntp@ietf.org>; Mon,  4 Feb 2019 11:03:20 -0800 (PST)
Received: from [10.208.75.155] (75-139-194-196.dhcp.knwc.wa.charter.com [75.139.194.196]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 43tcYM5kkrzL7P; Mon,  4 Feb 2019 19:03:19 +0000 (UTC)
To: Heiko Gerstung <heiko.gerstung@meinberg.de>, Ulrich Windl <ulrich.windl@rz.uni-regensburg.de>, "ntp@ietf.org" <ntp@ietf.org>
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org> <5C57E866020000A10002F788@gwsmtp1.uni-regensburg.de> <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de>
From: Harlan Stenn <stenn@nwtime.org>
Openpgp: preference=signencrypt
Autocrypt: addr=stenn@nwtime.org; prefer-encrypt=mutual; keydata= mQGNBFI2xmQBDACrPayw18eU4pIwCvKh7k0iMkAV9cvzs49kBppM+xoH+KKj4QWmkKELD39H ngQnT3RkK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f9+pj 4i32ETz1nJAvYAAqgTF/0PL+8ZNQoEpe/n9woMKrlZrqD4EgFmhQ3bNVhlaXz1nuTZDrwPt1 yMxBuUNbCF4jFnaruwrSiGTRoIfUZQwAjQglahrV4/mcjfnvbNoseHX0PKd9q+wjg7MIjWqr f2CI8Fa6MdanqwYphz43I2yXANKFZuMWsWqyQYlvGuPUlUUcAL3stp24RkzDB1Q+JS0IZJST T2JSu0aTfUdWVNqr2UI19eX+zxbOTckSi3Ng14ezG8ZX194ZH10b8JzntQOwmA20pd5JDhug zQfASER+CZDiPPcQ4mvC4y7rMrfV6XGQbDynC3ekDxo8SC5SvjaczXMwXg6SZ8iFtEWmEwW9 r7zPjjIPDrX8w5LXBgxArM5o/HbERpc2EdAvMh1D7LC0SvmoE7fBKxsicVBe4h6vXjEZ+LLr /wuZiBld9OnxAUIpwptbBspO6WKTQYvgFH2OeDG27hiE5P4Xs4WSp5j9ez8OVB1iZnA2nCQ+ tNTjO8c+C/P92vPLx5+bpGRXTXMNaLh34PS3ZsYoUDkKZNhczRZUWJ7nynSbeeyF+QW7SLwA qY7O7dyk9LFTsfJqRQJ7tWnIAjJPCwmSgQ8Kl0UJ
Message-ID: <5f5c2710-3078-c7c8-79e4-e9b92594e835@nwtime.org>
Date: Mon, 4 Feb 2019 11:03:21 -0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/Z2IJo3idUhd5dWyPTbT0OnmSJ6Q>
Subject: Re: [Ntp] Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 04 Feb 2019 19:03:26 -0000

Just to summarize:

- the refid is an "encoding" of the system peer.
- the refid is explicitly used as the way to prevent
  a degree-1 timing loop.
- there are cases where 3rd parties want to know "where
  do you get your time from?"  There are situations where
  that's OK for 3rd parties to know, and situations where
  that is "none of their business".

Before we start deciding where to draw these lines, especially for other
systems, we should have a clear understanding of what's going on, why,
and how to handle exceptions.

On 2/4/2019 4:41 AM, Heiko Gerstung wrote:
> Hi Ulrich,
> 
> I believe that the RefID is not a good way of documenting where your time came from, it is easy to change and does not offer any legal or operational proof of anything, especially not when you need to fulfill some kind of traceability requirements. A certificate trail is completely different as it allows to make sure that the trail is what it says it is. 
> 
> I personally also like the possibility to easily spot what the time source of my time source is by looking at the RefID, but it is not capable of reliably fulfilling the traceability demands of users. 
> 
> Best Regards,
>    Heiko
> 
> 

-- 
Harlan Stenn, Network Time Foundation
http://nwtime.org - be a Member!


From wingel@netnod.se  Mon Feb  4 07:55:55 2019
Return-Path: <wingel@netnod.se>
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 7DC00130E91 for <ntp@ietfa.amsl.com>; Mon,  4 Feb 2019 07:55:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.543
X-Spam-Level: 
X-Spam-Status: No, score=-1.543 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URI_NOVOWEL=0.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=netnod-se.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JWZF44z1P8bO for <ntp@ietfa.amsl.com>; Mon,  4 Feb 2019 07:55:51 -0800 (PST)
Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F2ACA130E90 for <ntp@ietf.org>; Mon,  4 Feb 2019 07:55:50 -0800 (PST)
Received: by mail-lj1-x242.google.com with SMTP id k15-v6so268428ljc.8 for <ntp@ietf.org>; Mon, 04 Feb 2019 07:55:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netnod-se.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=/Ynsd0p/ht9JJZs5vtD0TXC7fQghYBfgWHxckhllgtU=; b=Gue6EizMIhEfXMvICQuHnSOfUJ7z3Q6JOKCe5DCBYqL9to5+kBWUWhCwag6fB1gMT5 Qs9qkaEadY6NdfoLFRteVFuqEbOqnEt66w8qcy9+B4VpgwQBPMcwabKzEqaXiIFFl9Pg LQpJzSfFhVUAc8Iu3g8EMGE2+cVKrlwOk79TvcjSMa+e8qjbEprJrhHS1id5YwpwfNcd NJeK5U0C0VuuIr9DzY6gWfqcoobFSMo63eOOSLBr5ejoX6h+X7Gp3LSCeZgYjCPe1H+j Y4NnkFVbCjOhUwADvI/7PeutD2aT50tnOEL/kjUMX3klvvda/7y19wJU5fKYvt3/+Fv6 JEmQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=/Ynsd0p/ht9JJZs5vtD0TXC7fQghYBfgWHxckhllgtU=; b=rHbOLZNlKYjKO5wH1vMFQscfqSPyqVZ4dxajc3qaL8WzQbKonI80ABdIcNJMyiKWLe cVaOko7Ik9O2unayJ2LwaGehzsMi7hUhQPSKZ9hhAKZapq92kt5iEmfBz5d4u5VhY82W ikl9jGxiMBc3OabjL4r8EENC5xudHN2Jqiixx8J+4P16bmi8hYuMcLlnshUs2HthyNex WtY/lyFddFzPZUWNvhQtnIMQB5LZnffwTK+CRgudrPFvlhpWH/Dhzq8tDbyl6s/KbrSN u5F7Q/+9+S1KZfl2FIwP0erQ0h/YbGKmBXZkGgXqoUQnP4WjbthwSJFNJ3lXb5t2vz6h 3Nqw==
X-Gm-Message-State: AHQUAuZ0HviyAeayIVgKqdPUqGRU/U04wHJs3XS62OhcaA0VBMUmFgDv xRjzaN0+bnvjC8WxrLavX0vx9emPFac=
X-Google-Smtp-Source: AHgI3IY7sCJBxenlsM7S8W1sVDbwdH94IhG282Yoainv4Aa0Xx7uI+byLb0N/gOhg1N+21EDpjCW1A==
X-Received: by 2002:a2e:9c52:: with SMTP id t18-v6mr2556ljj.149.1549295748524;  Mon, 04 Feb 2019 07:55:48 -0800 (PST)
Received: from [192.168.11.5] (37-46-169-123.customers.ownit.se. [37.46.169.123]) by smtp.gmail.com with ESMTPSA id o14-v6sm2782522lji.70.2019.02.04.07.55.47 for <ntp@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 07:55:47 -0800 (PST)
To: ntp@ietf.org
From: Christer Weinigel <wingel@netnod.se>
Message-ID: <c8a0a1f6-21f5-e79a-ed03-1e7f5f32bb8d@netnod.se>
Date: Mon, 4 Feb 2019 16:55:47 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/HIWdWq70iBpakVhHTmr8Fy9uMgw>
X-Mailman-Approved-At: Mon, 04 Feb 2019 12:16:21 -0800
Subject: [Ntp] NTPv4 Server/Port Negotiation records in NTS
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 04 Feb 2019 20:14:56 -0000

Hello all,

sorry for jumping on the NTS discussions this late, but I have recently
started working  for Netnod here in Sweden and have just written yet
another proof of concept implementation of NTS:

     https://github.com/Netnod/nts-poc-python

While doing this I've found two issues regarding the NTPv4 Server/Port
Negotiation record in NTS.  The first one regarding the syntax of a
host name, is something i believe must be changed, the second one,
allowing multiple NTPv4 Server Negotiation records is something I
hope can be changed.  And sorry for the long email, but I wanted
to cover all the bases and show that I have considered  different
ways to solve the issues.

First some background.  Netnod has developed a NTP implementation which
runs in a FPGA.  This implementation runs on a Xilinx VC709 board and
can serve NTP at wire speed on 4 ports which each run at 10GBit/s.

     https://github.com/Netnod/FPGA_NTP_SERVER

A distant goal is to implement UDP timestamping part of NTS in the
same FPGA.  To do this, we will have to run NTSKE on a PC separate from
the FPGA and will need to use the NTPv4 Server Negotiation records.
While writing my proof of concept I have found a few things in the draft
that I would like to change.

1) Parsing of a host name in the NTPv4 Server Negotiation record

The specification looks like this:

     4.1.7.  NTPv4 Server Negotiation

     The NTPv4 Server Negotiation record has a Record Type number of 6.
     Its body consists of an ASCII-encoded [ANSI.X3-4.1986] string
     conforming to the syntax of the Host subcomponent of a URI
     ([RFC3986]).

RFC3986 has this to say about the host subcomponent of a URI:

     https://tools.ietf.org/html/rfc3986

     host        = IP-literal / IPv4address / reg-name

     reg-name    = *( unreserved / pct-encoded / sub-delims )

     unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"

     sub-delims  = "!" / "$" / "&" / "'" / "(" / ")"
                   / "*" / "+" / "," / ";" / "="

that is, letters outside of unreserved/sub-delims should be %-encoded.
This means that the following NTPv4 Server Negotiation records could
be used for "räksmörgås.se":

     79.99.1.121
     [2a02:750:7::817]
     xn--rksmrgs-5wao1o.se
     r%E4ksm%F6rg%E5s.se
     r%C3%A4ksm%C3%B6rg%C3%A5s.se

The last two encodings are a bit troublesome though. RFC3986
specifies no definite character encoding, which means that depending
on the server it could be ISO-8859-1 "r%E4ksm%F6rg%E5s.se", UTF-8
"r%C3%A4ksm%C3%B6rg%C3%A5s.se", or some other encoding. The client
will have to guess which encoding is used, convert that to Unicode,
and finally translate the Unicode string to an IDNA encoded string
"xn--rksmrgs-5wao1o.se" which can be handed over to a DNS resolver.
The client may also have to handle normalization/denormalization of
Unicode which can be painful.  I consider this a bug in the
specification.

Suggestion: Change the NTPv4 Server Negotiation record specification
so that it is self contained and no longer refers to RFC3986 and only
allows ASCII characters in hostnames.  IDNA-encoding must be used
for characters outside of ASCII:

     An IPv4 address using the dotted decimal notation, an IPv6 address
     using the "Text Representation of Addresses" described in
     [RFC4291] enclosed in brackets "[" IPv6-adress "]", or an ASCII
     string with a host name consisting of A-LABELS separated by
     periods (".").  The A-LABEL syntax is specified in [IDNA2008].

the only actual change in functionality, compared to the existing
draft, will be that %-encoding is no longer allowed and the
uncertainty regarding character encoding is removed. With this
change, the following NTPv4 Server Negotiation records could be used
for "räksmörgås.se":

     79.99.1.121
     [2a02:750:7::817]
     xn--rksmrgs-5wao1o.se

Advantage: Removes complexity from the client.  The client can almost
hand over the record directly to a resolver (i.e. getaddrinfo on Unix).
See (2) for a further issue though.

Disadvantage: None that I can see.

I believe that this is something that must be changed in the
specification.

2) Even with the suggested fix for (1), the string contained in a
NTPv4 Server Negotiation record can not be handed over to getaddrinfo
and needs a bit of parsing in the client.  The URI specification in
RFC3986 requires IPv6 addresses to be enclosed in brackets which
getaddrinfo is not able to parse.  It's not hard for a client to parse
the string and remove the brackets but it is an extra step.

Suggestion: Change the specification so that brackets are not needed
nor allowed for IPv6 addresses:

     An IPv4 address using the dotted decimal notation, an IPv6 address
     using the "Text Representation of Addresses" described in
     [RFC4291], or an ASCII string with a host name consisting of
     A-LABELS separated by periods (".").  The A-LABEL syntax is
     specified in [IDNA2008].

Advantage: Simplifies the client and allows the contens of a NTPv4
Server Negotiation record to be passed directly to getaddrinfo.

Disadvantage: Incompatible with the NTPv4 Server Negotiation record
format suggested in (4a).

If the suggestion in (4a) is rejected I'd suggest doing this to
simplify the client logic.

Note that a client ought to do a bit of sanity checking on the host
name anyway just to be on the safe side.  At a minimum it should
check that the record only contains [-.A-Za-z0-9] and that it is
a maximum of 253 characters long.

3) Multiple NTPv4 Server Negotiation records are forbidden

Since our FPGA_NTP_SERVER speaks both IPv4 and IPv6 we would like to
be able to return both an IPv4 and IPv6 address to the NTS/UDP server
in the response from the NTSKE server.  A client would ususally use
the first address it can handle.  A client which only speaks IPv4
would use the first IPv4 address.  A client which speaks both IPv4 and
IPv6 might prefer IPv6 with a fallback to IPv4 if it ends up on
network without IPv6 connectivity.

Actually, Netnod's use case would need the NTSKE server to be able to
return a total of 8 addresses since our FPGA implementation has 4
ports with an IPv4 and an IPv6 addresses for each port. But we are a
bit special in our requirements.

Unfortunately multiple records are explicitly forbidden by draft-15.

     4.1.7.  NTPv4 Server Negotiation

     ... Servers MUST NOT send more than one record of this type.

     ... The client MUST NOT send more than one record of this type.

I would like to remove this restriction if possible, and allow
multiple NTPv4 Server Negotiation records.

Consequences for a server: A server can limit itself to sending only
one NTPv4 Server Negotiation record and can ignore any such records it
has received.  There will be no complexity gain unless the server
needs it.

Consequences for a client: A client will have to be slightly more
complex, with an emphasis on slightly.  It should not be that hard for
a client to handle multiple records, it can just use the first record
that contains a valid address that the client can handle.  That is, a
client which only supports IPv4 should ignore IPv6 addresses (starting
with "["), a client which only supports IPv6 should ignore IPv4
addresses (matching IPv4 dotted notation), a client which supports
both can use the first record.  If a host name is found the client
will need to resolve the name using DNS just as before.

Advantages: A server can return both IPv4 and IPv6 addresses, and can
also return multiple NTP/UDP servers.

Disadvantages: Slightly more complex logic in a client.

If the restriction of only one NTPv4 Server Negotiation record is kept,
it's still possible to solve some of these issues by having using
a host name with a DNS record with multiple A/AAAA records.  But it
is an extra step.  Also much too many labs at small and large companies
don't have working DNS.  It would be nice if everyone had working DNS
but not everyone does.

I have not been able to read all of the discussions on NTS, but I
believe that one argument against allowing multiple NTPv4 Server
Negotiation records was a possible Sybil attack.  As long as a host
name is allowed in the NTPv4 Server Negotiation Record, the same
Sybil attack would be possible with multiple A/AAAA records in DNS.

A Sybil attack should not be an issue if the standard adds a
paragraph on how clients should treat multiple records, e.g.
something like this.

Note, when a NTSKE server returns multiple IP addresses for the
NTS/UDP servers, either through multiple NTPv4 Server Negotiation
records, or by returning a host name which resolves to multiple A/AAAA
records in DNS, the addresses SHOULD be considered as alternate
addresses for the same server, not as independent servers.  The
intended use of multiple records, is for a single server which uses
multiple transports such as IPv4 and IPv6 or when a server which has
multiple  IP addresses for load balancing and/or failover purposes.  A
client should normally select one of the addresses from the response and
keep using it forever.  A client can save the list of addresses and
switch to a different address as a fallback in case that currently used
address becomes unreachable, for example if the client is using an IPv6
address and loses IPv6 connectivity or if one of the ports on the
server stop working.

4) If multiple records are allowed, it will be a bit unclear which
NTPv4 Port Negotation record corresponds to each NTPv4 Server
Negotiation record.

Suggestion: drop the NTPv4 Port Negotation record from the standard
move the port number into the NTPv4 Server Negotiation record.

4a) Encode the port number with a colon similar to how it is done in a
URI.  For example:

     79.99.1.121:123
     [2a02:750:7::817]:123
     xn--rksmrgs-5wao1o.se:123

Note that it will not be possible to implement the suggestion in (2)
with this suggestion since an address such as 2a02:750:7::817:123 is
ambiguous and will probably be interpreted as an IPv6 address ending
with ":817:123".  The brackets are needed to disambiguate this case.

Advantage: Nice and human readable.  Easy to put the literal string in
a config file.  Extensible to other addressing schemes.

Disadvantage: Requires a bit of parsing on the client side to extract
the host and port parts.

4b) Encode the port number in the two first bytes of the record and
the server in the remaining space:

        0                   1
        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |             Port              |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |                               |
       |   Server padded with up to 3  |
       |   octets of 0.                |
       |                               |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Advantage: The port number uses a binary encoding and can be read
directly from the field without any parsing.  If the suggestion in (2)
is implemented the server part can be passed directly to getaddrinfo
to resolve the server address.

Disadvantage: This will limit the port number to 16 bits, which is not
a problem for IPv4 or IPv6.  Do we have to care about some
hypothetical future protocol that would require more bits in the port
number?  (Note that if this is a proble, we already have this problem
with the existing NTPv4 Port Negotiation record).

4c) Make the encoding explicit by adding a protocol identifier at the
start of the NTPv4 Server Negotiation record:

        0                   1
        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       | Procotol (numeric values TBD) |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |                               |
       |  Protocol specific encoding   |
       |  of server address            |
       |                               |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

for example, an IPv4 address would be encoded like this:

        0                   1
        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       | Proto=IPv4 (numeric value TBD)|
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |    Port (2 octets)            |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |   4 octets of IPv4 address    |
       |                               |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

an IPv6 like this:

        0                   1
        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       | Proto=IPv6 (numeric value TBD)|
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |    Port (2 octets)            |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |   16 octets of IPv6 address   |
       |                               |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

a host name which should be looked up via DNS:

        0                   1
        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       | Proto=DNS (numeric value TBD) |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |    Port (2 octets)            |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |   N octets of A-LABEL padded  |
       |    with up to 3 zero octets   |
       |                               |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

some future protocol which uses a 32 byte UUID to identify the server:

        0                   1
        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       | Proto=Future (value TBD)      |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |    32 bytes UIID              |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Advantage: Everything is explicit.  No parsing needed, IPv4 and IPv6
addresses can be used to fill in a sockaddr_in or sockaddr_in6
structure directly.

Disadvantage: I feel this is a bit too complex and overdesigned.  We'd
have to decide on a numbering scheme for the protocols. (Could we
reuse some existing list of protocols?)

4d) Keep the NTPv4 Server Negotiation record and NTPv4 Port
Negotiation record separate, but define an order for the records.

For example the following wording could work:

     The port specified in NTPv4 Port Negotiation record applies to all
     NTPv4 Server Negotiation records that follow it.  If no NTPv4 Port
     Negotiation records are provided, the client should default to the
     NTS port (currently the same as for NTP, 123).  If no NTPv4 Server
     Negotiation records are provided the client should fall back to
     using the same IP address as the NTSKE server.

and some Python-like pseudocode to select the first NTPv4 Server
Negotiation record that the client can use:

     server = None
     port = 123   # default port

     for record in ntske_session.records:
         if record.type == NTPv4_Port_Negotiation:
             port = unpack_big_endian_16bits(record.body)
         elif record.type == NTPv4_Server_Negotiation:
             if is_ipv4_address(record.body):
                 if ipv4_supported:
                     server = (parse_ipv4_address(record.body), port)
                     break
             elif is_ipv6_address(record.body):
                 if ipv6_supported:
                     server = (parse_ipv6_address(record.body), port)
                     break
             else:
                 tmp = resolve_address(record.body)
                 if tmp:
                     server = (tmp, port)
                     break

     if server is None:
         servers = ( ntske_host, port )

Advantage: Fairly easy to implement.

Disavantage: Slightly more complex logic than if the port number is
part of the NTPv4 Server Negotiation record.

4e) Ignore the problem.  All servers must use the same port, only
allow one NTPv4 Port Negotiation record.

Advantage: Easy to implement.

Disavantage: Not flexible.  But realistically very few people
will need multiple NTS/UDP servers at different ports. The servers
will need to share master keys, and will probably use the same NTS/UDP
implementation, so there is probably no reasonable reason to why they
should use different ports.

Right now I'm leaning towards implementing suggestion (1), (2) and
(4d), mostly because they involve as few changes to the draft as
possible.  Otherwise implementing (1) (2) and (4b), or (1) and (4a)
would be my preferred choices.  The only one I feel is really important
though is to fix the issue in (1).

What do you think?

Regards,
   Christer


From nobody Mon Feb  4 23:38:05 2019
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 23EC1130E09 for <ntp@ietfa.amsl.com>; Mon,  4 Feb 2019 23:38:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level: 
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dow5Os51jFKH for <ntp@ietfa.amsl.com>; Mon,  4 Feb 2019 23:38:01 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (rrzmta2.uni-regensburg.de [194.94.155.52]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1A8BF130DEC for <ntp@ietf.org>; Mon,  4 Feb 2019 23:38:00 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 3F7EB7E428 for <ntp@ietf.org>; Tue,  5 Feb 2019 08:37:57 +0100 (CET)
Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta2.uni-regensburg.de (Postfix) with ESMTP id A0DAE7E427 for <ntp@ietf.org>; Tue,  5 Feb 2019 08:37:56 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Tue, 05 Feb 2019 08:37:56 +0100
Message-Id: <5C593D52020000A10002F7F1@gwsmtp1.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.1.0 
Date: Tue, 05 Feb 2019 08:37:54 +0100
From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
To: "ntp@ietf.org" <ntp@ietf.org>, "Heiko Gerstung" <heiko.gerstung@meinberg.de>
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org> <5C57E866020000A10002F788@gwsmtp1.uni-regensburg.de> <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de>
In-Reply-To: <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/aYcnI0UV27N0-faTsSpBQZEBC78>
Subject: [Ntp] Antw: Re:  Antw:  NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Tue, 05 Feb 2019 07:38:04 -0000

>>> Heiko Gerstung <heiko.gerstung@meinberg.de> schrieb am 04.02.2019 um 13:41
in
Nachricht <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de>:
> Hi Ulrich,
> 
> I believe that the RefID is not a good way of documenting where your time 
> came from, it is easy to change and does not offer any legal or operational

> proof of anything, especially not when you need to fulfill some kind of 
> traceability requirements. A certificate trail is completely different as it

> allows to make sure that the trail is what it says it is. 

Hi Heiko,

I agree in principle, but as it was for IPv4 in the past, REFID was the _only_
way to find the path to the refclock (assuming one could access all the servers
in the path). That's how ntptrace ("ntptrace is a perl script that uses the
ntpq utility program to follow the chain of NTP servers from a given host back
to the primary time source.") worked.

> 
> I personally also like the possibility to easily spot what the time source 
> of my time source is by looking at the RefID, but it is not capable of 
> reliably fulfilling the traceability demands of users. 

Yes, so obviously the proposal for a new REFID should include a repacement for
the functionality that got lost. In my view the best alternative would be an
extension field that tells what the REFID really is (IP adress(es), FQHN,
etc.). From such an extension field a program (not human) should be able to
contact (if possible and administratively allowed) contact the server to work
towards the ultimate time source recursively.


Regards,
Ulrich Windl

> 
> Best Regards,
>    Heiko
> 
> 
> -- 
> Heiko Gerstung 
> Managing Director
> 
> MEINBERG® Funkuhren GmbH & Co. KG
> Lange Wand 9
> D-31812 Bad Pyrmont, Germany
> Phone:    +49 (0)5281 9309-404
> Fax:        +49 (0)5281 9309-9404
> 
> Amtsgericht Hannover 17HRA 100322
> Geschäftsführer/Management: Günter Meinberg, Werner Meinberg, Andre 
> Hartmann, Heiko Gerstung
> 
> Email:
>  heiko.gerstung@meinberg.de 
> Web:
>  Deutsch   https://www.meinberg.de 
>  English    https://www.meinbergglobal.com 
> 
> Do not miss our Time Synchronization Blog:
>  https://blog.meinbergglobal.com 
> 
> Connect via LinkedIn: 
> https://www.linkedin.com/in/heikogerstung 
>  
>  
> 
> ﻿On 04.02.19, 08:24 "ntp im Auftrag von Ulrich Windl" <ntp-bounces@ietf.org

> im Auftrag von Ulrich.Windl@rz.uni-regensburg.de> wrote:
> 
>     Hi!
>     
>     Recently I had this idea for REFID:
>     In the past one yould find out the time source where the currentl time 
> came from.
>     With the new proposal, it's no longer possible. AFAIR the arguments were

> pro this (source not being trackable).
>     I have an argument against this: If you establish some time stamping 
> service, you may be interested to document where the time came from. Just as

> one might document the certificate path back to the root CA...
>     
>     Regards,
>     Ulrich Windl
>     
>     
>     
>     
>     _______________________________________________
>     ntp mailing list
>     ntp@ietf.org 
>     https://www.ietf.org/mailman/listinfo/ntp 
>     




From nobody Mon Feb  4 23:52:05 2019
Return-Path: <heiko.gerstung@meinberg.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 D833A130E0E for <ntp@ietfa.amsl.com>; Mon,  4 Feb 2019 23:52:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.29
X-Spam-Level: 
X-Spam-Status: No, score=-4.29 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VNBoUUyQ5dqM for <ntp@ietfa.amsl.com>; Mon,  4 Feb 2019 23:52:00 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E56CB130E09 for <ntp@ietf.org>; Mon,  4 Feb 2019 23:51:59 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id BCD5A71C0160; Tue,  5 Feb 2019 08:51:54 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de BCD5A71C0160
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1549353116; bh=V017zmM2UBK0Rz9HcrTzn0TR0ltc+GSysALwjE0pfOo=; h=Date:Subject:Message-ID:References:In-Reply-To:Mime-version:From: To:Content-Type:Content-Transfer-Encoding; b=nYwd/M9sgyi1ZGbmhv+P/e07HNJEA7NmcJC/6jpWom5hmxQClquWPbpzrLq3RIeN9 UNBdNja/p4AzizkR4p5MEg+uSme+17oGy94MrZIEcJBWvccmFweHgAN24BZstyiAyw BiGNr5Mefz7BlsYutelJfKVENYDjoxzbBQa5r1uA=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.8.1193, Stamp: 3], Multi: [Enabled, t: (0.000006,0.005887)], BW: [Enabled, t: (0.000020)], RTDA: [Enabled, t: (0.077114), Hit: No, Details: v2.7.26; Id: 15.1i64hs5.1d2ua8li8.1a15b], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
User-Agent: Microsoft-MacOutlook/10.15.0.190117
Date: Tue, 5 Feb 2019 08:51:50 +0100
Message-ID: <B4775CA1-CBCD-464A-B4F6-2B9BC9D779D3@meinberg.de>
Thread-Topic: [Ntp] Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org> <5C57E866020000A10002F788@gwsmtp1.uni-regensburg.de> <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de> <5f5c2710-3078-c7c8-79e4-e9b92594e835@nwtime.org>
In-Reply-To: <5f5c2710-3078-c7c8-79e4-e9b92594e835@nwtime.org>
Mime-version: 1.0
Importance: Normal
X-Priority: 3
Thread-Index: AZ2x3tU+NDIzOWI4MGNlODdjM2JjNQ==
From: Heiko Gerstung <heiko.gerstung@meinberg.de>
To: Harlan Stenn <stenn@nwtime.org>, Ulrich Windl <ulrich.windl@rz.uni-regensburg.de>, "ntp@ietf.org" <ntp@ietf.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/bpE97IRvkc1WFQXT391kjen70ds>
Subject: Re: [Ntp] Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Tue, 05 Feb 2019 07:52:04 -0000

Harlan,

isn't the stratum level the value that prevents timing loops?=20

Regards,
   Heiko


--=20
Heiko Gerstung=20
Managing Director

MEINBERG=C2=AE Funkuhren GmbH & Co. KG
Lange Wand 9
D-31812 Bad Pyrmont, Germany
Phone:    +49 (0)5281 9309-404
Fax:        +49 (0)5281 9309-9404

Amtsgericht Hannover 17HRA 100322
Gesch=C3=A4ftsf=C3=BChrer/Management: G=C3=BCnter Meinberg, Werner Meinberg=
, Andre Hartmann, Heiko Gerstung

Email:
 heiko.gerstung@meinberg.de=20
Web:
 Deutsch   https://www.meinberg.de
 English    https://www.meinbergglobal.com

Do not miss our Time Synchronization Blog:
 https://blog.meinbergglobal.com=20

Connect via LinkedIn:=20
https://www.linkedin.com/in/heikogerstung
=20
=20

=EF=BB=BFOn 04.02.19, 20:04 "ntp im Auftrag von Harlan Stenn" <ntp-bounces@=
ietf.org im Auftrag von stenn@nwtime.org> wrote:

    Just to summarize:
   =20
    - the refid is an "encoding" of the system peer.
    - the refid is explicitly used as the way to prevent
      a degree-1 timing loop.
    - there are cases where 3rd parties want to know "where
      do you get your time from?"  There are situations where
      that's OK for 3rd parties to know, and situations where
      that is "none of their business".
   =20
    Before we start deciding where to draw these lines, especially for othe=
r
    systems, we should have a clear understanding of what's going on, why,
    and how to handle exceptions.
   =20
    On 2/4/2019 4:41 AM, Heiko Gerstung wrote:
    > Hi Ulrich,
    >=20
    > I believe that the RefID is not a good way of documenting where your =
time came from, it is easy to change and does not offer any legal or operat=
ional proof of anything, especially not when you need to fulfill some kind =
of traceability requirements. A certificate trail is completely different a=
s it allows to make sure that the trail is what it says it is.=20
    >=20
    > I personally also like the possibility to easily spot what the time s=
ource of my time source is by looking at the RefID, but it is not capable o=
f reliably fulfilling the traceability demands of users.=20
    >=20
    > Best Regards,
    >    Heiko
    >=20
    >=20
   =20
    --=20
    Harlan Stenn, Network Time Foundation
    http://nwtime.org - be a Member!
   =20
    _______________________________________________
    ntp mailing list
    ntp@ietf.org
    https://www.ietf.org/mailman/listinfo/ntp
   =20

=


From nobody Tue Feb  5 00:08:57 2019
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 4F6B11310A1 for <ntp@ietfa.amsl.com>; Tue,  5 Feb 2019 00:08:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.699
X-Spam-Level: 
X-Spam-Status: No, score=-3.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001, URI_NOVOWEL=0.5] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6jbivJq0XSLs for <ntp@ietfa.amsl.com>; Tue,  5 Feb 2019 00:08:47 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (rrzmta2.uni-regensburg.de [194.94.155.52]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ABDFE1310C2 for <ntp@ietf.org>; Tue,  5 Feb 2019 00:08:46 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 03F3A7A153 for <ntp@ietf.org>; Tue,  5 Feb 2019 09:08:44 +0100 (CET)
Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta2.uni-regensburg.de (Postfix) with ESMTP id 5B08773379 for <ntp@ietf.org>; Tue,  5 Feb 2019 09:08:42 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Tue, 05 Feb 2019 09:08:42 +0100
Message-Id: <5C594487020000A10002F800@gwsmtp1.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.1.0 
Date: Tue, 05 Feb 2019 09:08:39 +0100
From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
To: "ntp@ietf.org" <ntp@ietf.org>, "Christer Weinigel" <wingel@netnod.se>
References: <c8a0a1f6-21f5-e79a-ed03-1e7f5f32bb8d@netnod.se>
In-Reply-To: <c8a0a1f6-21f5-e79a-ed03-1e7f5f32bb8d@netnod.se>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/i6vzf0-Ayu1AuRL2urVgvr8gU9c>
Subject: [Ntp] Antw:  NTPv4 Server/Port Negotiation records in NTS
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Tue, 05 Feb 2019 08:08:56 -0000

>>> Christer Weinigel <wingel@netnod.se> schrieb am 04.02.2019 um 16:55 in
Nachricht <c8a0a1f6-21f5-e79a-ed03-1e7f5f32bb8d@netnod.se>:

[...]
> 
> 1) Parsing of a host name in the NTPv4 Server Negotiation record
> 
> The specification looks like this:
> 
>      4.1.7.  NTPv4 Server Negotiation
> 
>      The NTPv4 Server Negotiation record has a Record Type number of 6.
>      Its body consists of an ASCII-encoded [ANSI.X3-4.1986] string
>      conforming to the syntax of the Host subcomponent of a URI
>      ([RFC3986]).
> 
> RFC3986 has this to say about the host subcomponent of a URI:
> 
>      https://tools.ietf.org/html/rfc3986 
> 
>      host        = IP-literal / IPv4address / reg-name
> 
>      reg-name    = *( unreserved / pct-encoded / sub-delims )
> 
>      unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"
> 
>      sub-delims  = "!" / "$" / "&" / "'" / "(" / ")"
>                    / "*" / "+" / "," / ";" / "="
> 
> that is, letters outside of unreserved/sub-delims should be %-encoded.
> This means that the following NTPv4 Server Negotiation records could
> be used for "räksmörgås.se":
> 
>      79.99.1.121
>      [2a02:750:7::817]
>      xn--rksmrgs-5wao1o.se
>      r%E4ksm%F6rg%E5s.se
>      r%C3%A4ksm%C3%B6rg%C3%A5s.se
> 
> The last two encodings are a bit troublesome though. RFC3986
> specifies no definite character encoding, which means that depending
> on the server it could be ISO-8859-1 "r%E4ksm%F6rg%E5s.se", UTF-8
> "r%C3%A4ksm%C3%B6rg%C3%A5s.se", or some other encoding. The client
> will have to guess which encoding is used, convert that to Unicode,
> and finally translate the Unicode string to an IDNA encoded string
> "xn--rksmrgs-5wao1o.se" which can be handed over to a DNS resolver.
> The client may also have to handle normalization/denormalization of
> Unicode which can be painful.  I consider this a bug in the
> specification.
> 
> Suggestion: Change the NTPv4 Server Negotiation record specification
> so that it is self contained and no longer refers to RFC3986 and only
> allows ASCII characters in hostnames.  IDNA-encoding must be used
> for characters outside of ASCII:
> 
>      An IPv4 address using the dotted decimal notation, an IPv6 address
>      using the "Text Representation of Addresses" described in
>      [RFC4291] enclosed in brackets "[" IPv6-adress "]", or an ASCII
>      string with a host name consisting of A-LABELS separated by
>      periods (".").  The A-LABEL syntax is specified in [IDNA2008].
> 
> the only actual change in functionality, compared to the existing
> draft, will be that %-encoding is no longer allowed and the
> uncertainty regarding character encoding is removed. With this
> change, the following NTPv4 Server Negotiation records could be used
> for "räksmörgås.se":
> 
>      79.99.1.121
>      [2a02:750:7::817]
>      xn--rksmrgs-5wao1o.se
> 
> Advantage: Removes complexity from the client.  The client can almost
> hand over the record directly to a resolver (i.e. getaddrinfo on Unix).
> See (2) for a further issue though.
> 
> Disadvantage: None that I can see.
> 
> I believe that this is something that must be changed in the
> specification.
> 
> 2) Even with the suggested fix for (1), the string contained in a
> NTPv4 Server Negotiation record can not be handed over to getaddrinfo
> and needs a bit of parsing in the client.  The URI specification in
> RFC3986 requires IPv6 addresses to be enclosed in brackets which
> getaddrinfo is not able to parse.  It's not hard for a client to parse
> the string and remove the brackets but it is an extra step.
> 
> Suggestion: Change the specification so that brackets are not needed
> nor allowed for IPv6 addresses:
> 
>      An IPv4 address using the dotted decimal notation, an IPv6 address
>      using the "Text Representation of Addresses" described in
>      [RFC4291], or an ASCII string with a host name consisting of
>      A-LABELS separated by periods (".").  The A-LABEL syntax is
>      specified in [IDNA2008].
> 
> Advantage: Simplifies the client and allows the contens of a NTPv4
> Server Negotiation record to be passed directly to getaddrinfo.

Actually I'm for the brackets: In the past it would be OK, but many years ago
the ystarted to add numeric domain named in DNS; one I think to remember right
now is "163.com". Another would be "35.Red-79-147-160.staticIP.rima-tde.net" or
"200-207-163-77.dsl.telesp.net.br".

> 
> Disadvantage: Incompatible with the NTPv4 Server Negotiation record
> format suggested in (4a).
> 
> If the suggestion in (4a) is rejected I'd suggest doing this to
> simplify the client logic.
> 
> Note that a client ought to do a bit of sanity checking on the host
> name anyway just to be on the safe side.  At a minimum it should
> check that the record only contains [-.A-Za-z0-9] and that it is
> a maximum of 253 characters long.
> 
> 3) Multiple NTPv4 Server Negotiation records are forbidden
> 
> Since our FPGA_NTP_SERVER speaks both IPv4 and IPv6 we would like to
> be able to return both an IPv4 and IPv6 address to the NTS/UDP server
> in the response from the NTSKE server.  A client would ususally use
> the first address it can handle.  A client which only speaks IPv4
> would use the first IPv4 address.  A client which speaks both IPv4 and
> IPv6 might prefer IPv6 with a fallback to IPv4 if it ends up on
> network without IPv6 connectivity.
> 
> Actually, Netnod's use case would need the NTSKE server to be able to
> return a total of 8 addresses since our FPGA implementation has 4
> ports with an IPv4 and an IPv6 addresses for each port. But we are a
> bit special in our requirements.
> 
> Unfortunately multiple records are explicitly forbidden by draft-15.
> 
>      4.1.7.  NTPv4 Server Negotiation
> 
>      ... Servers MUST NOT send more than one record of this type.
> 
>      ... The client MUST NOT send more than one record of this type.
> 
> I would like to remove this restriction if possible, and allow
> multiple NTPv4 Server Negotiation records.
> 
> Consequences for a server: A server can limit itself to sending only
> one NTPv4 Server Negotiation record and can ignore any such records it
> has received.  There will be no complexity gain unless the server
> needs it.
> 
> Consequences for a client: A client will have to be slightly more
> complex, with an emphasis on slightly.  It should not be that hard for
> a client to handle multiple records, it can just use the first record
> that contains a valid address that the client can handle.  That is, a
> client which only supports IPv4 should ignore IPv6 addresses (starting
> with "["), a client which only supports IPv6 should ignore IPv4
> addresses (matching IPv4 dotted notation), a client which supports
> both can use the first record.  If a host name is found the client
> will need to resolve the name using DNS just as before.
> 
> Advantages: A server can return both IPv4 and IPv6 addresses, and can
> also return multiple NTP/UDP servers.
> 
> Disadvantages: Slightly more complex logic in a client.
> 
> If the restriction of only one NTPv4 Server Negotiation record is kept,
> it's still possible to solve some of these issues by having using
> a host name with a DNS record with multiple A/AAAA records.  But it
> is an extra step.  Also much too many labs at small and large companies
> don't have working DNS.  It would be nice if everyone had working DNS
> but not everyone does.
> 
> I have not been able to read all of the discussions on NTS, but I
> believe that one argument against allowing multiple NTPv4 Server
> Negotiation records was a possible Sybil attack.  As long as a host
> name is allowed in the NTPv4 Server Negotiation Record, the same
> Sybil attack would be possible with multiple A/AAAA records in DNS.
> 
> A Sybil attack should not be an issue if the standard adds a
> paragraph on how clients should treat multiple records, e.g.
> something like this.
> 
> Note, when a NTSKE server returns multiple IP addresses for the
> NTS/UDP servers, either through multiple NTPv4 Server Negotiation
> records, or by returning a host name which resolves to multiple A/AAAA
> records in DNS, the addresses SHOULD be considered as alternate
> addresses for the same server, not as independent servers.  The
> intended use of multiple records, is for a single server which uses
> multiple transports such as IPv4 and IPv6 or when a server which has
> multiple  IP addresses for load balancing and/or failover purposes.  A
> client should normally select one of the addresses from the response and
> keep using it forever.  A client can save the list of addresses and
> switch to a different address as a fallback in case that currently used
> address becomes unreachable, for example if the client is using an IPv6
> address and loses IPv6 connectivity or if one of the ports on the
> server stop working.
> 
> 4) If multiple records are allowed, it will be a bit unclear which
> NTPv4 Port Negotation record corresponds to each NTPv4 Server
> Negotiation record.
> 
> Suggestion: drop the NTPv4 Port Negotation record from the standard
> move the port number into the NTPv4 Server Negotiation record.
> 
> 4a) Encode the port number with a colon similar to how it is done in a
> URI.  For example:
> 
>      79.99.1.121:123
>      [2a02:750:7::817]:123
>      xn--rksmrgs-5wao1o.se:123
> 
> Note that it will not be possible to implement the suggestion in (2)
> with this suggestion since an address such as 2a02:750:7::817:123 is
> ambiguous and will probably be interpreted as an IPv6 address ending
> with ":817:123".  The brackets are needed to disambiguate this case.
> 
> Advantage: Nice and human readable.  Easy to put the literal string in
> a config file.  Extensible to other addressing schemes.
> 
> Disadvantage: Requires a bit of parsing on the client side to extract
> the host and port parts.
> 
> 4b) Encode the port number in the two first bytes of the record and
> the server in the remaining space:
> 
>         0                   1
>         0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |             Port              |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |                               |
>        |   Server padded with up to 3  |
>        |   octets of 0.                |
>        |                               |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> 
> Advantage: The port number uses a binary encoding and can be read
> directly from the field without any parsing.  If the suggestion in (2)
> is implemented the server part can be passed directly to getaddrinfo
> to resolve the server address.
> 
> Disadvantage: This will limit the port number to 16 bits, which is not
> a problem for IPv4 or IPv6.  Do we have to care about some
> hypothetical future protocol that would require more bits in the port
> number?  (Note that if this is a proble, we already have this problem
> with the existing NTPv4 Port Negotiation record).
> 
> 4c) Make the encoding explicit by adding a protocol identifier at the
> start of the NTPv4 Server Negotiation record:
> 
>         0                   1
>         0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        | Procotol (numeric values TBD) |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |                               |
>        |  Protocol specific encoding   |
>        |  of server address            |
>        |                               |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> 
> for example, an IPv4 address would be encoded like this:
> 
>         0                   1
>         0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        | Proto=IPv4 (numeric value TBD)|
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |    Port (2 octets)            |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |   4 octets of IPv4 address    |
>        |                               |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> 
> an IPv6 like this:
> 
>         0                   1
>         0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        | Proto=IPv6 (numeric value TBD)|
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |    Port (2 octets)            |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |   16 octets of IPv6 address   |
>        |                               |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> 
> a host name which should be looked up via DNS:
> 
>         0                   1
>         0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        | Proto=DNS (numeric value TBD) |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |    Port (2 octets)            |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |   N octets of A-LABEL padded  |
>        |    with up to 3 zero octets   |
>        |                               |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> 
> some future protocol which uses a 32 byte UUID to identify the server:
> 
>         0                   1
>         0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        | Proto=Future (value TBD)      |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |    32 bytes UIID              |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> 
> Advantage: Everything is explicit.  No parsing needed, IPv4 and IPv6
> addresses can be used to fill in a sockaddr_in or sockaddr_in6
> structure directly.
> 
> Disadvantage: I feel this is a bit too complex and overdesigned.  We'd
> have to decide on a numbering scheme for the protocols. (Could we
> reuse some existing list of protocols?)
> 
> 4d) Keep the NTPv4 Server Negotiation record and NTPv4 Port
> Negotiation record separate, but define an order for the records.
> 
> For example the following wording could work:
> 
>      The port specified in NTPv4 Port Negotiation record applies to all
>      NTPv4 Server Negotiation records that follow it.  If no NTPv4 Port
>      Negotiation records are provided, the client should default to the
>      NTS port (currently the same as for NTP, 123).  If no NTPv4 Server
>      Negotiation records are provided the client should fall back to
>      using the same IP address as the NTSKE server.
> 
> and some Python-like pseudocode to select the first NTPv4 Server
> Negotiation record that the client can use:
> 
>      server = None
>      port = 123   # default port
> 
>      for record in ntske_session.records:
>          if record.type == NTPv4_Port_Negotiation:
>              port = unpack_big_endian_16bits(record.body)
>          elif record.type == NTPv4_Server_Negotiation:
>              if is_ipv4_address(record.body):
>                  if ipv4_supported:
>                      server = (parse_ipv4_address(record.body), port)
>                      break
>              elif is_ipv6_address(record.body):
>                  if ipv6_supported:
>                      server = (parse_ipv6_address(record.body), port)
>                      break
>              else:
>                  tmp = resolve_address(record.body)
>                  if tmp:
>                      server = (tmp, port)
>                      break
> 
>      if server is None:
>          servers = ( ntske_host, port )
> 
> Advantage: Fairly easy to implement.
> 
> Disavantage: Slightly more complex logic than if the port number is
> part of the NTPv4 Server Negotiation record.
> 
> 4e) Ignore the problem.  All servers must use the same port, only
> allow one NTPv4 Port Negotiation record.
> 
> Advantage: Easy to implement.
> 
> Disavantage: Not flexible.  But realistically very few people
> will need multiple NTS/UDP servers at different ports. The servers
> will need to share master keys, and will probably use the same NTS/UDP
> implementation, so there is probably no reasonable reason to why they
> should use different ports.
> 
> Right now I'm leaning towards implementing suggestion (1), (2) and
> (4d), mostly because they involve as few changes to the draft as
> possible.  Otherwise implementing (1) (2) and (4b), or (1) and (4a)
> would be my preferred choices.  The only one I feel is really important
> though is to fix the issue in (1).
> 
> What do you think?
> 
> Regards,
>    Christer
> 
> _______________________________________________
> ntp mailing list
> ntp@ietf.org 
> https://www.ietf.org/mailman/listinfo/ntp 




From nobody Tue Feb  5 00:18:20 2019
Return-Path: <mlichvar@redhat.com>
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 1B7D6130F59 for <ntp@ietfa.amsl.com>; Tue,  5 Feb 2019 00:18:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.901
X-Spam-Level: 
X-Spam-Status: No, score=-6.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UCg7L77Rfqgf for <ntp@ietfa.amsl.com>; Tue,  5 Feb 2019 00:18:15 -0800 (PST)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8F89C130E0E for <ntp@ietf.org>; Tue,  5 Feb 2019 00:18:15 -0800 (PST)
Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9E576C03BD54; Tue,  5 Feb 2019 08:18:14 +0000 (UTC)
Received: from localhost (holly.tpb.lab.eng.brq.redhat.com [10.43.134.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6602F17C67; Tue,  5 Feb 2019 08:18:12 +0000 (UTC)
Date: Tue, 5 Feb 2019 09:18:10 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Heiko Gerstung <heiko.gerstung@meinberg.de>
Cc: Harlan Stenn <stenn@nwtime.org>, Ulrich Windl <ulrich.windl@rz.uni-regensburg.de>, "ntp@ietf.org" <ntp@ietf.org>
Message-ID: <20190205081810.GH21456@localhost>
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org> <5C57E866020000A10002F788@gwsmtp1.uni-regensburg.de> <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de> <5f5c2710-3078-c7c8-79e4-e9b92594e835@nwtime.org> <B4775CA1-CBCD-464A-B4F6-2B9BC9D779D3@meinberg.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <B4775CA1-CBCD-464A-B4F6-2B9BC9D779D3@meinberg.de>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 05 Feb 2019 08:18:14 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/Yu2sXAmhKYJMQZF-gdVCOOwhx_U>
Subject: Re: [Ntp] Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Tue, 05 Feb 2019 08:18:18 -0000

On Tue, Feb 05, 2019 at 08:51:50AM +0100, Heiko Gerstung wrote:
> Harlan,
> 
> isn't the stratum level the value that prevents timing loops? 

That was in NTPv3.

In NTPv4 clients are allowed to synchronize to a higher stratum, so it
can only terminate the loop when the value reaches 16. It does not
prevent the loop from forming. The same applies to the root delay and
dispersion.

The refid field is useful at least to:
1) prevent A from synchronizing to B when:
  a) B is synchronized to A
  b) A and B are synchronized to C
  c) B and C are synchronized to D, and A is synchronized to C
2) monitoring
3) debugging

If I understand it correctly, hiding the refid using the not-you value
will break everything except 1a.

-- 
Miroslav Lichvar


From nobody Tue Feb  5 06:17:21 2019
Return-Path: <dfoxfranke@gmail.com>
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 806EC1310C1; Tue,  5 Feb 2019 06:17:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, LOTS_OF_MONEY=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uT-1dNPOY4DS; Tue,  5 Feb 2019 06:17:11 -0800 (PST)
Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 16A16124BF6; Tue,  5 Feb 2019 06:17:11 -0800 (PST)
Received: by mail-qk1-x729.google.com with SMTP id y140so2102239qkb.9; Tue, 05 Feb 2019 06:17:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=K0/3MqkDK/CoQ+sphy0FeBus5WC8TQHcQrxakhrM8yE=; b=sdKXrBwRgv+oFB9HPZqj6mYCmpDyRVD216vVVMs+nSGPy3+vCwpbS2yRmTXvMWC/x5 YGPpCyfIJxU7KBDGwF3Q1lU4Ll5hMiz+GQNiyXQlcE6tw+v3xel2aBuGM+Cqy3xOKP7h sjKus019jm62/XE/YK3fkfjrI+iBJPWUqeSpo3b4rHE147tWmWAPrMHJME79nWn0S2MD ScCcWR8idkNeehuT0OW1nIW8ErlNLB0SSJZAUWQj1F4b6kPL8Zst3+mNFJuCLwOrRX0F XJOrKA4GEoWZHg8zY5TXDf80NwBQ/HY4xKiw6JGCo0NKlShRjec+o3sazfXIiTnmy4F9 UjXA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=K0/3MqkDK/CoQ+sphy0FeBus5WC8TQHcQrxakhrM8yE=; b=EKGRMkrdngkPY5L/LQ8kxp/hTenTXA8sz/6H6893HflSjkP9yP5meWdNpXTB5IeRYe vPZwAj1yuoJYymdB59yvQEafknmdxI3Zjh5Sx4WjIc6ezfNX0RQoficZRNF7q5jB8plH jyBhX0+ReJKmsfpQTOwa2bZ4gwJuhQAhGaoAs9NS4+MwNwXTK0KkXglunacOwqlGTlJZ QuiCkCwOfDVRYTQvup4wTdKXKplqTrQqInVJ24BQEXjwsAJ2rt5/LZxAVCR7IAnJm6za dyNttfM09xO/bQ8mcE52EzDCIomTahK/EpqbtGO2RWgNGKrTacgoIYQTNE9RP/ePITkL Nnmw==
X-Gm-Message-State: AHQUAuYDv2F+c/f4IUp5T4MKn/FElW0BuzE7yAGH+YU8tv5LawFsgkGn D7pi+CsEnJUJP/m99bii4z0Jn4at2m8SGw4+3kk=
X-Google-Smtp-Source: AHgI3IZICwXXOtrx6Z/1tt8pVRVuCoe3hvY331ff+ZTXa/mXFGEJWXEjULoH49j2vU+mTeRNA4hGqwWUuhK5eUlQYeM=
X-Received: by 2002:a05:620a:12bb:: with SMTP id x27mr3713670qki.159.1549376229906;  Tue, 05 Feb 2019 06:17:09 -0800 (PST)
MIME-Version: 1.0
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org>
In-Reply-To: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org>
From: Daniel Franke <dfoxfranke@gmail.com>
Date: Tue, 5 Feb 2019 09:16:58 -0500
Message-ID: <CAJm83bBgQKKjDMXwXg621RFTC48M_BvYQLTKb2pTZVHoCGfy8w@mail.gmail.com>
To: "Karen O'Donoghue" <odonoghue@isoc.org>
Cc: "ntp@ietf.org" <ntp@ietf.org>, "tictoc@ietf.org" <tictoc@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/0uwhkJbBzpcaJg3eODC5tPNB_4c>
Subject: Re: [Ntp] NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Tue, 05 Feb 2019 14:17:14 -0000

Sorry, won't be able to make it today due to a dental emergency.

On Tue, Jan 29, 2019 at 11:49 AM Karen O'Donoghue <odonoghue@isoc.org> wrot=
e:
>
> Folks,
>
> The Network Time Protocol (ntp) Working Group will hold a virtual interim=
 meeting on Tuesday 12 February 2018 from 16:30 to 18:30 UTC.  The primary =
focus of this meeting will be to progress ongoing WGLCs on a number of work=
ing group documents. Additional agenda requests can be sent to the working =
group chairs for inclusion.
>
> Draft Agenda:
>
> 1.  Administrative and Agenda Bashing
> 2.  TICTOC quick document status (documents we hopefully won=E2=80=99t ne=
ed to discuss)
> 3.  NTP quick document status (documents we hopefully won=E2=80=99t need =
to discuss)
> 4.  Network Time Security for the Network Time Protocol (next steps)
> 5.  Planning for NTS interoperability testing
> 6.  Network Time Protocol REFID Updates (next steps)
> 7.  NTP Interleaved Modes (next steps)
> 8.  NTP Client Data Minimization (next steps)
> 9.  A YANG Data Model for NTP
> 10.  Other working group documents
> 11. Next steps in time security beyond NTS
> 12.  AOB (Any Other Business?)
>
> The meeting will be held on Zoom. You can join via the link or by calling=
 in using the provided phone numbers.
>
> Topic: NTP WG Virtual Interim meeting
> Time: Feb 12, 2019 4:30 PM GMT
>
> Join Zoom Meeting
> https://isoc.zoom.us/j/583983466
>
> One tap mobile
> +16465588656,,583983466# US (New York)
> +16699006833,,583983466# US (San Jose)
>
> Dial by your location
>         +1 646 558 8656 US (New York)
>         +1 669 900 6833 US (San Jose)
> Meeting ID: 583 983 466
> Find your local number: https://zoom.us/u/aeoTGQ1PbS
>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp


From nobody Tue Feb  5 06:29:00 2019
Return-Path: <dfoxfranke@gmail.com>
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 322EF1294D0; Tue,  5 Feb 2019 06:28:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, LOTS_OF_MONEY=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bxEI4Ld7MxXZ; Tue,  5 Feb 2019 06:28:48 -0800 (PST)
Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 37015124BF6; Tue,  5 Feb 2019 06:28:48 -0800 (PST)
Received: by mail-qk1-x735.google.com with SMTP id d15so2167100qkj.0; Tue, 05 Feb 2019 06:28:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6sjTNEkeLcRJxIO75W+F2gYJczxzNYN45VLFd+XNkRs=; b=Biv+yfIYNnAcudhn5kqgeNPswa16p/aVAmJpHo4zxr5oKtCgT15IvPAhpRrNQSxClW y0uO9/NRXeryeGpIcGa7MO1o+ImhOH2v6gNiSzH4Q0RZ73KU1xvR5rL+qItqmLf+gtSk 5cvftVBg2Fga+MD1ONG6FFQpg49inLQa+gjNb5Gj8Hg6IMzKDFY66UmqbkZqHgD2c//6 CR7LvfKkTuRPyaGNNTu/g72Zm1xEBuDgPXHoWAL79DoQseyGsE2m1asgS9pEuhH4K0h/ bLNZiAiF4sdJ3J6QlbiZJzqNQ5l5KTvkJWChgFMA+qCRvuZQ/k8eruYfru1Wx4AHDCyW mbTA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6sjTNEkeLcRJxIO75W+F2gYJczxzNYN45VLFd+XNkRs=; b=edXW+5ZWhrbrRHE4o5I2JQWgid94ea8M3J4EwqLvjdTWWBwSR++Bj86M8xZyqzdwle 9HKnXa9ko6TJaig94UUb8kRDxhSxTuSqpBregLVIeVtATNMJW+tvz95g57W8sct8uLIW Aj39UKAHltq44t0jBPM4W2+xPRTvS8LJ/G/Faph5JkifiTISVv+KAKlxTsaMalkgJoMy 136m0tOnlfcegKA7T7Rwq9f7tkpY3oYkFDJyEa1z4L3dZXEJgIpujRkE2oXat2nz+REB Po0/0Gj+MAG+ckee/W0yJZ8GHSq3cpFjEbxo7u7dAkPXjZRUwKvGW0FvsZuQayKBDiH9 7qNQ==
X-Gm-Message-State: AHQUAubA8GDWv22RMHC9oBXuQm6PZCU0lSEov+GV1EiU4zAzPrAjzXSn La0O0rjpNyemZ1MCQ7h46n+jJt1YO1WoSoEXDpg3ig==
X-Google-Smtp-Source: AHgI3IZqwadkAzUydLk3UROh7/wr7VGMV9MhFZtxGLKTkdmu4+w8hfYgZ3u7yRsnVoaLGL+4vtF6Q/6kyFb2Pxq2dpE=
X-Received: by 2002:a37:4d47:: with SMTP id a68mr3612548qkb.349.1549376927210;  Tue, 05 Feb 2019 06:28:47 -0800 (PST)
MIME-Version: 1.0
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org> <CAJm83bBgQKKjDMXwXg621RFTC48M_BvYQLTKb2pTZVHoCGfy8w@mail.gmail.com>
In-Reply-To: <CAJm83bBgQKKjDMXwXg621RFTC48M_BvYQLTKb2pTZVHoCGfy8w@mail.gmail.com>
From: Daniel Franke <dfoxfranke@gmail.com>
Date: Tue, 5 Feb 2019 09:28:35 -0500
Message-ID: <CAJm83bAYD5ac_GrZ+b4GYVad+XMMsnRo1qZasVAY04AKsnCs6A@mail.gmail.com>
To: "Karen O'Donoghue" <odonoghue@isoc.org>
Cc: "ntp@ietf.org" <ntp@ietf.org>, "tictoc@ietf.org" <tictoc@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/7XORYz_LcR3JaC-3Hc38-8o5Eyc>
Subject: Re: [Ntp] NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Tue, 05 Feb 2019 14:28:50 -0000

Nevermind, Sam Weiler just pointed out that this meeting is next week.
Was thinking it was today.

On Tue, Feb 5, 2019 at 9:16 AM Daniel Franke <dfoxfranke@gmail.com> wrote:
>
> Sorry, won't be able to make it today due to a dental emergency.
>
> On Tue, Jan 29, 2019 at 11:49 AM Karen O'Donoghue <odonoghue@isoc.org> wr=
ote:
> >
> > Folks,
> >
> > The Network Time Protocol (ntp) Working Group will hold a virtual inter=
im meeting on Tuesday 12 February 2018 from 16:30 to 18:30 UTC.  The primar=
y focus of this meeting will be to progress ongoing WGLCs on a number of wo=
rking group documents. Additional agenda requests can be sent to the workin=
g group chairs for inclusion.
> >
> > Draft Agenda:
> >
> > 1.  Administrative and Agenda Bashing
> > 2.  TICTOC quick document status (documents we hopefully won=E2=80=99t =
need to discuss)
> > 3.  NTP quick document status (documents we hopefully won=E2=80=99t nee=
d to discuss)
> > 4.  Network Time Security for the Network Time Protocol (next steps)
> > 5.  Planning for NTS interoperability testing
> > 6.  Network Time Protocol REFID Updates (next steps)
> > 7.  NTP Interleaved Modes (next steps)
> > 8.  NTP Client Data Minimization (next steps)
> > 9.  A YANG Data Model for NTP
> > 10.  Other working group documents
> > 11. Next steps in time security beyond NTS
> > 12.  AOB (Any Other Business?)
> >
> > The meeting will be held on Zoom. You can join via the link or by calli=
ng in using the provided phone numbers.
> >
> > Topic: NTP WG Virtual Interim meeting
> > Time: Feb 12, 2019 4:30 PM GMT
> >
> > Join Zoom Meeting
> > https://isoc.zoom.us/j/583983466
> >
> > One tap mobile
> > +16465588656,,583983466# US (New York)
> > +16699006833,,583983466# US (San Jose)
> >
> > Dial by your location
> >         +1 646 558 8656 US (New York)
> >         +1 669 900 6833 US (San Jose)
> > Meeting ID: 583 983 466
> > Find your local number: https://zoom.us/u/aeoTGQ1PbS
> >
> > _______________________________________________
> > ntp mailing list
> > ntp@ietf.org
> > https://www.ietf.org/mailman/listinfo/ntp


From nobody Tue Feb  5 23:46:25 2019
Return-Path: <heiko.gerstung@meinberg.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 4576A126C7E for <ntp@ietfa.amsl.com>; Tue,  5 Feb 2019 23:46:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.291
X-Spam-Level: 
X-Spam-Status: No, score=-4.291 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S2o7tDDFWikA for <ntp@ietfa.amsl.com>; Tue,  5 Feb 2019 23:46:19 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 931A312426E for <ntp@ietf.org>; Tue,  5 Feb 2019 23:46:19 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id DBC3771C0A73; Wed,  6 Feb 2019 08:46:14 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de DBC3771C0A73
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1549439177; bh=r6t+Fs7y/INznwDIm0jjprjjIXkwIolNdbuQHTUUm8g=; h=Date:Subject:Message-ID:References:In-Reply-To:Mime-version:From: To:Cc:Content-Type:Content-Transfer-Encoding; b=LsBxDaR1vo2VmOJ9KN8ftJLJMyzM1f3NYUesOkTnl/sYN8KuPLbvNT8ED8Geedr6L 4cilqd0kBgBIqcwZ7TQWt820+dg5J+wVgMLpGx7yyDmf2U8Iglbh8NDqz8vngPmJcz q/s9XEuryeZYkDBxohl3a5q5bnXb7bCZyR0/wfGY=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.8.1193, Stamp: 3], Multi: [Enabled, t: (0.000005,0.005868)], BW: [Enabled, t: (0.000006)], RTDA: [Enabled, t: (0.058120), Hit: No, Details: v2.7.26; Id: 15.1i60358.1d30sb1cj.2rlfp], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
User-Agent: Microsoft-MacOutlook/10.15.0.190117
Date: Wed, 6 Feb 2019 08:46:10 +0100
Message-ID: <BA93F319-58D1-4336-842E-380D30CF0015@meinberg.de>
Thread-Topic: [Ntp] Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org> <5C57E866020000A10002F788@gwsmtp1.uni-regensburg.de> <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de> <5f5c2710-3078-c7c8-79e4-e9b92594e835@nwtime.org> <B4775CA1-CBCD-464A-B4F6-2B9BC9D779D3@meinberg.de> <20190205081810.GH21456@localhost>
In-Reply-To: <20190205081810.GH21456@localhost>
Mime-version: 1.0
Importance: Normal
X-Priority: 3
Thread-Index: AZ2x3tU+NDIzOWI4MGNlODdjM2JjNQ==
From: Heiko Gerstung <heiko.gerstung@meinberg.de>
To: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Harlan Stenn <stenn@nwtime.org>, Ulrich Windl <ulrich.windl@rz.uni-regensburg.de>, "ntp@ietf.org" <ntp@ietf.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/HM5ruLAsyI3QQu-G0ItUQ5vST_A>
Subject: Re: [Ntp] Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 06 Feb 2019 07:46:24 -0000

Hi Miroslav,=20

the RefID based loop prevention in NTP implementations works only if a clie=
nt has access to the source of its source, which is very rarely the case in=
 corporate networks (and which is often prevented by firewalls to avoid tha=
t people for example directly use one of the core NTP servers as a referenc=
e). I would also doubt that such a RefID based loop prevention mechanism is=
 working reliably with hashed IPv6 addresses.=20

It is probably a good idea to define a mechanism which is  based on an exte=
nsion field to cover debugging / monitoring use-cases more effectively. You=
 would certainly need a unique ID instead of relying on the IP addresses of=
 all your upstream servers. Suggestion: use the MAC address of the first ph=
ysical network interface NTP runs on, which should be sufficiently unique (=
unless your server runs in a VM). Every NTP node then adds the Unique ID of=
 its source to the chain. If A is synchronized to GPS, it will send a trace=
ability chain that looks like this : "GPS". When B synchronizes to A: "GPS,=
[MAC_ADDR_OF_A]", when C synchronizes to B: "GPS, [MAC_ADDR_OF_A], [MAC_ADD=
R_OF_B]" and so on. Maybe the extension could also include some additional =
data like precision of a source etc. to be able to calculate error bounds.=20

For legal / compliance use cases this is not going to help as you would nee=
d a digitally signed chain and would have to be able to verify the signatur=
es of all involved NTP nodes on the path.

All in all this looks like we need to put some more thoughts into it. But I=
 personally believe that the refid is not sufficient for a lot of situation=
s, especially not for IPv6 and whenever there is no access to upstream serv=
ers.=20

Best Regards,
   Heiko





--=20
Heiko Gerstung=20
Managing Director

MEINBERG=C2=AE Funkuhren GmbH & Co. KG
Lange Wand 9
D-31812 Bad Pyrmont, Germany
Phone:    +49 (0)5281 9309-404
Fax:        +49 (0)5281 9309-9404

Amtsgericht Hannover 17HRA 100322
Gesch=C3=A4ftsf=C3=BChrer/Management: G=C3=BCnter Meinberg, Werner Meinberg=
, Andre Hartmann, Heiko Gerstung

Email:
 heiko.gerstung@meinberg.de=20
Web:
 Deutsch   https://www.meinberg.de
 English    https://www.meinbergglobal.com

Do not miss our Time Synchronization Blog:
 https://blog.meinbergglobal.com=20

Connect via LinkedIn:=20
https://www.linkedin.com/in/heikogerstung
=20
=20

=EF=BB=BFOn 05.02.19, 09:19 "Miroslav Lichvar" <mlichvar@redhat.com> wrote:

    On Tue, Feb 05, 2019 at 08:51:50AM +0100, Heiko Gerstung wrote:
    > Harlan,
    >=20
    > isn't the stratum level the value that prevents timing loops?=20
   =20
    That was in NTPv3.
   =20
    In NTPv4 clients are allowed to synchronize to a higher stratum, so it
    can only terminate the loop when the value reaches 16. It does not
    prevent the loop from forming. The same applies to the root delay and
    dispersion.
   =20
    The refid field is useful at least to:
    1) prevent A from synchronizing to B when:
      a) B is synchronized to A
      b) A and B are synchronized to C
      c) B and C are synchronized to D, and A is synchronized to C
    2) monitoring
    3) debugging
   =20
    If I understand it correctly, hiding the refid using the not-you value
    will break everything except 1a.
   =20
    --=20
    Miroslav Lichvar
   =20

=


From nobody Wed Feb  6 00:14:23 2019
Return-Path: <stenn@nwtime.org>
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 8CFCD12867A for <ntp@ietfa.amsl.com>; Wed,  6 Feb 2019 00:14:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O4h64QfGl3Hr for <ntp@ietfa.amsl.com>; Wed,  6 Feb 2019 00:14:19 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [IPv6:2001:470:1:205::234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4CF4E126C7E for <ntp@ietf.org>; Wed,  6 Feb 2019 00:14:19 -0800 (PST)
Received: from hms-mbp11.pfcs.com (75-139-194-196.dhcp.knwc.wa.charter.com [75.139.194.196]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 43vZ3Z4lMyzL7V; Wed,  6 Feb 2019 08:14:18 +0000 (UTC)
To: Heiko Gerstung <heiko.gerstung@meinberg.de>, Miroslav Lichvar <mlichvar@redhat.com>
Cc: Ulrich Windl <ulrich.windl@rz.uni-regensburg.de>, "ntp@ietf.org" <ntp@ietf.org>
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org> <5C57E866020000A10002F788@gwsmtp1.uni-regensburg.de> <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de> <5f5c2710-3078-c7c8-79e4-e9b92594e835@nwtime.org> <B4775CA1-CBCD-464A-B4F6-2B9BC9D779D3@meinberg.de> <20190205081810.GH21456@localhost> <BA93F319-58D1-4336-842E-380D30CF0015@meinberg.de>
From: Harlan Stenn <stenn@nwtime.org>
Openpgp: preference=signencrypt
Autocrypt: addr=stenn@nwtime.org; prefer-encrypt=mutual; keydata= mQGNBFI2xmQBDACrPayw18eU4pIwCvKh7k0iMkAV9cvzs49kBppM+xoH+KKj4QWmkKELD39H ngQnT3RkKsTLlwxyLqPdUmeQNAY2M5fsOK+OF6EvwLPK9hbmE3Wx2moX+sbEUxJ2VzFhKSKb OPZALXwk1XxL0qBedz0xHYcDwaSAZZkEFXURv2pDIdrmnoUnq2gdC8GpoFJiXoUaCLSYzzaY ac4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+wjg7MIjWqr f2CI8Fa6MdanqwYphz43I2yXANKFZuMWsWqyQYlvGuPUlUUcAL3stp24RkzDB1Q+JS0IZJST T2JSu0aTfUdWVNqr2UI19eX+zxbOTckSi3Ng14ezG8ZX194ZH10b8JzntQOwmA20pd5JDhug zQfASER+CZDiPPcQ4mvC4y7rMrfV6XGQbDynC3ekDxo8SC5SvjaczXMwXg6SZ8iFtEWmEwW9 r7zPjjIPDrX8w5LXBgxArM5o/HbERpc2EdAvMh1D7LC0SvmoE7fBKxsicVBe4h6vXjEZ+LLr /wuZiBld9OnxAUIpwptbBspO6WKTQYvgFH2OeDG27hiE5P4Xs4WSp5j9ez8OVB1iZnA2nCQ+ tNTjO8c+C/P92vPLx5+bpGRXTXMNaLh34PS3ZsYoUDkKZNhczRZUWJ7nynSbeeyF+QW7SLwA qY7O7dyk9LFTsfJqRQJ7tWnIAjJPCwmSgQ8Kl0UJ
Message-ID: <b8c614cb-28f3-d1f4-9a32-fbdaaf5987bb@nwtime.org>
Date: Wed, 6 Feb 2019 00:14:16 -0800
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <BA93F319-58D1-4336-842E-380D30CF0015@meinberg.de>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/pneVh2lM_QI-jhHfmkKY_OhCrUo>
Subject: Re: [Ntp] Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 06 Feb 2019 08:14:22 -0000

Heiko,

The core purpose of the REFID in NTPv4 is to act as a degree-1 loop
preventer.

Are you saying it does not fulfill that role?

H

On 2/5/19 11:46 PM, Heiko Gerstung wrote:
> Hi Miroslav, 
> 
> the RefID based loop prevention in NTP implementations works only if a client has access to the source of its source, which is very rarely the case in corporate networks (and which is often prevented by firewalls to avoid that people for example directly use one of the core NTP servers as a reference). I would also doubt that such a RefID based loop prevention mechanism is working reliably with hashed IPv6 addresses. 
> 
> It is probably a good idea to define a mechanism which is  based on an extension field to cover debugging / monitoring use-cases more effectively. You would certainly need a unique ID instead of relying on the IP addresses of all your upstream servers. Suggestion: use the MAC address of the first physical network interface NTP runs on, which should be sufficiently unique (unless your server runs in a VM). Every NTP node then adds the Unique ID of its source to the chain. If A is synchronized to GPS, it will send a traceability chain that looks like this : "GPS". When B synchronizes to A: "GPS,[MAC_ADDR_OF_A]", when C synchronizes to B: "GPS, [MAC_ADDR_OF_A], [MAC_ADDR_OF_B]" and so on. Maybe the extension could also include some additional data like precision of a source etc. to be able to calculate error bounds. 
> 
> For legal / compliance use cases this is not going to help as you would need a digitally signed chain and would have to be able to verify the signatures of all involved NTP nodes on the path.
> 
> All in all this looks like we need to put some more thoughts into it. But I personally believe that the refid is not sufficient for a lot of situations, especially not for IPv6 and whenever there is no access to upstream servers. 
> 
> Best Regards,
>    Heiko
> 
> 
> 
> 
> 

-- 
Harlan Stenn <stenn@nwtime.org>
http://networktimefoundation.org - be a member!


From nobody Wed Feb  6 00:52:40 2019
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 B5B98128CF2 for <ntp@ietfa.amsl.com>; Wed,  6 Feb 2019 00:52:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iQfj5vYKT7Y9 for <ntp@ietfa.amsl.com>; Wed,  6 Feb 2019 00:52:34 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (rrzmta2.uni-regensburg.de [194.94.155.52]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 59A6D12426E for <ntp@ietf.org>; Wed,  6 Feb 2019 00:52:34 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id A598A7BC20 for <ntp@ietf.org>; Wed,  6 Feb 2019 09:52:32 +0100 (CET)
Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta2.uni-regensburg.de (Postfix) with ESMTP id 7827473379 for <ntp@ietf.org>; Wed,  6 Feb 2019 09:52:32 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Wed, 06 Feb 2019 09:52:32 +0100
Message-Id: <5C5AA04F020000A10002F84F@gwsmtp1.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.1.0 
Date: Wed, 06 Feb 2019 09:52:31 +0100
From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
To: "Heiko Gerstung" <heiko.gerstung@meinberg.de>
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org> <5C57E866020000A10002F788@gwsmtp1.uni-regensburg.de> <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de> <5f5c2710-3078-c7c8-79e4-e9b92594e835@nwtime.org> <B4775CA1-CBCD-464A-B4F6-2B9BC9D779D3@meinberg.de> <20190205081810.GH21456@localhost> <BA93F319-58D1-4336-842E-380D30CF0015@meinberg.de>
In-Reply-To: <BA93F319-58D1-4336-842E-380D30CF0015@meinberg.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/Mmf5HDilHnMn4zYc1FrMgolj-4w>
Subject: [Ntp] Antw: Re:  Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 06 Feb 2019 08:52:38 -0000

Hello!

A different thought: if you would propagate the refid of stratum 1 servers
down to the clients (if client C is using server S as peer, then C's refid
would be that of S), there is another interesting problem: There are too many
refids like "GPS " then, making it hard to decide, which is which.
However it would ultimately prevent a client using GPS multiple times ;-)

So actually while discussing the REFID for stratum > 1, shouldn't there be a
discussion for stratum 1 as well? When IPv6 addresses are hashed as suggested
in RFC 5905, why not also hash the REFID for stratum 1? One could add
manufacturer, device model, serial number, etc. to that primary refid.
What I thought is: If the refid of stratum > 1 does not really reveal the
identity of the time source, why keep it at stratum 1? And: if propagating the
refids down from stratum 1, wouldn't that prevent a timing loop as well, maybe
even better?

Before using the MAC as source for some REFID, why not create some random GUID
(64 bit should be enough) and store that in persistent storage?

Regards,
Ulrich Windl

>>> Heiko Gerstung <heiko.gerstung@meinberg.de> schrieb am 06.02.2019 um 08:46
in
Nachricht <BA93F319-58D1-4336-842E-380D30CF0015@meinberg.de>:
> Hi Miroslav, 
> 
> the RefID based loop prevention in NTP implementations works only if a 
> client has access to the source of its source, which is very rarely the case

> in corporate networks (and which is often prevented by firewalls to avoid 
> that people for example directly use one of the core NTP servers as a 
> reference). I would also doubt that such a RefID based loop prevention 
> mechanism is working reliably with hashed IPv6 addresses. 
> 
> It is probably a good idea to define a mechanism which is  based on an 
> extension field to cover debugging / monitoring use-cases more effectively.

> You would certainly need a unique ID instead of relying on the IP addresses

> of all your upstream servers. Suggestion: use the MAC address of the first 
> physical network interface NTP runs on, which should be sufficiently unique

> (unless your server runs in a VM). Every NTP node then adds the Unique ID of

> its source to the chain. If A is synchronized to GPS, it will send a 
> traceability chain that looks like this : "GPS". When B synchronizes to A: 
> "GPS,[MAC_ADDR_OF_A]", when C synchronizes to B: "GPS, [MAC_ADDR_OF_A], 
> [MAC_ADDR_OF_B]" and so on. Maybe the extension could also include some 
> additional data like precision of a source etc. to be able to calculate
error 
> bounds. 
> 
> For legal / compliance use cases this is not going to help as you would need

> a digitally signed chain and would have to be able to verify the signatures

> of all involved NTP nodes on the path.
> 
> All in all this looks like we need to put some more thoughts into it. But I

> personally believe that the refid is not sufficient for a lot of situations,

> especially not for IPv6 and whenever there is no access to upstream servers.

> 
> Best Regards,
>    Heiko
> 
> 
> 
> 
> 
> -- 
> Heiko Gerstung 
> Managing Director
> 
> MEINBERG® Funkuhren GmbH & Co. KG
> Lange Wand 9
> D-31812 Bad Pyrmont, Germany
> Phone:    +49 (0)5281 9309-404
> Fax:        +49 (0)5281 9309-9404
> 
> Amtsgericht Hannover 17HRA 100322
> Geschäftsführer/Management: Günter Meinberg, Werner Meinberg, Andre 
> Hartmann, Heiko Gerstung
> 
> Email:
>  heiko.gerstung@meinberg.de 
> Web:
>  Deutsch   https://www.meinberg.de 
>  English    https://www.meinbergglobal.com 
> 
> Do not miss our Time Synchronization Blog:
>  https://blog.meinbergglobal.com 
> 
> Connect via LinkedIn: 
> https://www.linkedin.com/in/heikogerstung 
>  
>  
> 
> ﻿On 05.02.19, 09:19 "Miroslav Lichvar" <mlichvar@redhat.com> wrote:
> 
>     On Tue, Feb 05, 2019 at 08:51:50AM +0100, Heiko Gerstung wrote:
>     > Harlan,
>     > 
>     > isn't the stratum level the value that prevents timing loops? 
>     
>     That was in NTPv3.
>     
>     In NTPv4 clients are allowed to synchronize to a higher stratum, so it
>     can only terminate the loop when the value reaches 16. It does not
>     prevent the loop from forming. The same applies to the root delay and
>     dispersion.
>     
>     The refid field is useful at least to:
>     1) prevent A from synchronizing to B when:
>       a) B is synchronized to A
>       b) A and B are synchronized to C
>       c) B and C are synchronized to D, and A is synchronized to C
>     2) monitoring
>     3) debugging
>     
>     If I understand it correctly, hiding the refid using the not-you value
>     will break everything except 1a.
>     
>     -- 
>     Miroslav Lichvar
>     




From nobody Wed Feb  6 01:32:19 2019
Return-Path: <stenn@nwtime.org>
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 05F86128D0C for <ntp@ietfa.amsl.com>; Wed,  6 Feb 2019 01:32:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PKUwokTsOQjy for <ntp@ietfa.amsl.com>; Wed,  6 Feb 2019 01:32:13 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [66.220.13.234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CB32012426E for <ntp@ietf.org>; Wed,  6 Feb 2019 01:32:13 -0800 (PST)
Received: from hms-mbp11.pfcs.com (75-139-194-196.dhcp.knwc.wa.charter.com [75.139.194.196]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 43vbnM0rpvzL7P; Wed,  6 Feb 2019 09:32:07 +0000 (UTC)
To: ntp@ietf.org
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org> <5C57E866020000A10002F788@gwsmtp1.uni-regensburg.de> <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de> <5f5c2710-3078-c7c8-79e4-e9b92594e835@nwtime.org> <B4775CA1-CBCD-464A-B4F6-2B9BC9D779D3@meinberg.de> <20190205081810.GH21456@localhost> <BA93F319-58D1-4336-842E-380D30CF0015@meinberg.de> <5C5AA04F020000A10002F84F@gwsmtp1.uni-regensburg.de>
From: Harlan Stenn <stenn@nwtime.org>
Openpgp: preference=signencrypt
Autocrypt: addr=stenn@nwtime.org; prefer-encrypt=mutual; keydata= mQGNBFI2xmQBDACrPayw18eU4pIwCvKh7k0iMkAV9cvzs49kBppM+xoH+KKj4QWmkKELD39H ngQnT3RkKsTLlwxyLqPdUmeQNAY2M5fsOK+OF6EvwLPK9hbmE3Wx2moX+sbEUxJ2VzFhKSKb OPZALXwk1XxL0qBedz0xHYcDwaSAZZkEFXURv2pDIdrmnoUnq2gdC8GpoFJiXoUaCLSYzzaY ac4Njw7Mue8IqfzRQb70aMjXl/qmsmfmEVAyGXywDdc/ler4XSgiuYOV7Kf69bj9PFZZSMdJ MWgEyZH6lJ0TU5ccR2zp5ZRmWzQQkxJMyH2th7q0Nmz3aX4A0K4yE0Ba9/5Dr7ctpF15BrMF aEo4s5lwI6tUnkgMWo265mMzCz4mAPV/ac0w0OXQg7r9E2r0+dRapnzUlG43D0JLDqDr9uRR L6IrRQqoCWU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IPDrX8w5LXBgxArM5o/HbERpc2EdAvMh1D7LC0SvmoE7fBKxsicVBe4h6vXjEZ+LLr /wuZiBld9OnxAUIpwptbBspO6WKTQYvgFH2OeDG27hiE5P4Xs4WSp5j9ez8OVB1iZnA2nCQ+ tNTjO8c+C/P92vPLx5+bpGRXTXMNaLh34PS3ZsYoUDkKZNhczRZUWJ7nynSbeeyF+QW7SLwA qY7O7dyk9LFTsfJqRQJ7tWnIAjJPCwmSgQ8Kl0UJ
Message-ID: <82ed76b4-43ac-f9a4-69ec-572083b0aaf7@nwtime.org>
Date: Wed, 6 Feb 2019 01:32:06 -0800
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <5C5AA04F020000A10002F84F@gwsmtp1.uni-regensburg.de>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/yc3trZEl8nJ5xwzg_1kHomYQ5PM>
Subject: Re: [Ntp] Antw: Re: Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 06 Feb 2019 09:32:18 -0000

I've been thinking about this problem for many years' time.

It ends up boiling down to "what is the real, underlying problem you
want to solve?" coupled with "how often does this happen?" and "what are
ways around it?"

GPS could catastrophically fail.  In that case, no GPS refclocks will be
working.  There might be a problem with a given vendor (at the box or
chip level).  Or the problem might be in specific firmware.

This is still an interesting exercise, but there are likely bigger or
more likely problems afoot.

H

On 2/6/19 12:52 AM, Ulrich Windl wrote:
> Hello!
> 
> A different thought: if you would propagate the refid of stratum 1 servers
> down to the clients (if client C is using server S as peer, then C's refid
> would be that of S), there is another interesting problem: There are too many
> refids like "GPS " then, making it hard to decide, which is which.
> However it would ultimately prevent a client using GPS multiple times ;-)
> 
> So actually while discussing the REFID for stratum > 1, shouldn't there be a
> discussion for stratum 1 as well? When IPv6 addresses are hashed as suggested
> in RFC 5905, why not also hash the REFID for stratum 1? One could add
> manufacturer, device model, serial number, etc. to that primary refid.
> What I thought is: If the refid of stratum > 1 does not really reveal the
> identity of the time source, why keep it at stratum 1? And: if propagating the
> refids down from stratum 1, wouldn't that prevent a timing loop as well, maybe
> even better?
> 
> Before using the MAC as source for some REFID, why not create some random GUID
> (64 bit should be enough) and store that in persistent storage?
> 
> Regards,
> Ulrich Windl
> 
>>>> Heiko Gerstung <heiko.gerstung@meinberg.de> schrieb am 06.02.2019 um 08:46
> in
> Nachricht <BA93F319-58D1-4336-842E-380D30CF0015@meinberg.de>:
>> Hi Miroslav, 
>>
>> the RefID based loop prevention in NTP implementations works only if a 
>> client has access to the source of its source, which is very rarely the case
> 
>> in corporate networks (and which is often prevented by firewalls to avoid 
>> that people for example directly use one of the core NTP servers as a 
>> reference). I would also doubt that such a RefID based loop prevention 
>> mechanism is working reliably with hashed IPv6 addresses. 
>>
>> It is probably a good idea to define a mechanism which is  based on an 
>> extension field to cover debugging / monitoring use-cases more effectively.
> 
>> You would certainly need a unique ID instead of relying on the IP addresses
> 
>> of all your upstream servers. Suggestion: use the MAC address of the first 
>> physical network interface NTP runs on, which should be sufficiently unique
> 
>> (unless your server runs in a VM). Every NTP node then adds the Unique ID of
> 
>> its source to the chain. If A is synchronized to GPS, it will send a 
>> traceability chain that looks like this : "GPS". When B synchronizes to A: 
>> "GPS,[MAC_ADDR_OF_A]", when C synchronizes to B: "GPS, [MAC_ADDR_OF_A], 
>> [MAC_ADDR_OF_B]" and so on. Maybe the extension could also include some 
>> additional data like precision of a source etc. to be able to calculate
> error 
>> bounds. 
>>
>> For legal / compliance use cases this is not going to help as you would need
> 
>> a digitally signed chain and would have to be able to verify the signatures
> 
>> of all involved NTP nodes on the path.
>>
>> All in all this looks like we need to put some more thoughts into it. But I
> 
>> personally believe that the refid is not sufficient for a lot of situations,
> 
>> especially not for IPv6 and whenever there is no access to upstream servers.
> 
>>
>> Best Regards,
>>    Heiko
>>
>>
>>
>>
>>
>> -- 
>> Heiko Gerstung 
>> Managing Director
>>
>> MEINBERG® Funkuhren GmbH & Co. KG
>> Lange Wand 9
>> D-31812 Bad Pyrmont, Germany
>> Phone:    +49 (0)5281 9309-404
>> Fax:        +49 (0)5281 9309-9404
>>
>> Amtsgericht Hannover 17HRA 100322
>> Geschäftsführer/Management: Günter Meinberg, Werner Meinberg, Andre 
>> Hartmann, Heiko Gerstung
>>
>> Email:
>>  heiko.gerstung@meinberg.de 
>> Web:
>>  Deutsch   https://www.meinberg.de 
>>  English    https://www.meinbergglobal.com 
>>
>> Do not miss our Time Synchronization Blog:
>>  https://blog.meinbergglobal.com 
>>
>> Connect via LinkedIn: 
>> https://www.linkedin.com/in/heikogerstung 
>>  
>>  
>>
>> ﻿On 05.02.19, 09:19 "Miroslav Lichvar" <mlichvar@redhat.com> wrote:
>>
>>     On Tue, Feb 05, 2019 at 08:51:50AM +0100, Heiko Gerstung wrote:
>>     > Harlan,
>>     > 
>>     > isn't the stratum level the value that prevents timing loops? 
>>     
>>     That was in NTPv3.
>>     
>>     In NTPv4 clients are allowed to synchronize to a higher stratum, so it
>>     can only terminate the loop when the value reaches 16. It does not
>>     prevent the loop from forming. The same applies to the root delay and
>>     dispersion.
>>     
>>     The refid field is useful at least to:
>>     1) prevent A from synchronizing to B when:
>>       a) B is synchronized to A
>>       b) A and B are synchronized to C
>>       c) B and C are synchronized to D, and A is synchronized to C
>>     2) monitoring
>>     3) debugging
>>     
>>     If I understand it correctly, hiding the refid using the not-you value
>>     will break everything except 1a.
>>     
>>     -- 
>>     Miroslav Lichvar
>>     
> 
> 
> 
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
> 

-- 
Harlan Stenn <stenn@nwtime.org>
http://networktimefoundation.org - be a member!


From nobody Wed Feb  6 01:45:50 2019
Return-Path: <heiko.gerstung@meinberg.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 8433912426E for <ntp@ietfa.amsl.com>; Wed,  6 Feb 2019 01:45:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.291
X-Spam-Level: 
X-Spam-Status: No, score=-4.291 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X0DZ9uzXoMiu for <ntp@ietfa.amsl.com>; Wed,  6 Feb 2019 01:45:46 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 17FEC126C7E for <ntp@ietf.org>; Wed,  6 Feb 2019 01:45:46 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id F375071C0D50; Wed,  6 Feb 2019 10:45:41 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de F375071C0D50
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1549446344; bh=d1Qq5NR4OX+kt+oPKAgca5FHT5EyVjvDRZLpuw7/YpI=; h=Date:Subject:Message-ID:References:In-Reply-To:Mime-version:From: To:Cc:Content-Type:Content-Transfer-Encoding; b=PM1RUGAMb61BiksLKpLDZF2zjUE9CXX79kSOGnejvtZYcFySQbAcm4qJXMe1DpXhv A85POyB6X03qwSgAUwJs+JGXeTWYO1okqjbgRnbugpKhBJyQydKmWrKC4E4F0m/UMG 4LjvyPzPVQTgyM+IFBgy69ofusb5jZoIMm5buWpE=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.8.1193, Stamp: 3], Multi: [Enabled, t: (0.000006,0.010447)], BW: [Enabled, t: (0.000006)], RTDA: [Enabled, t: (0.110639), Hit: No, Details: v2.7.26; Id: 15.1i60vib.1d3135nt0.9c7ni], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
User-Agent: Microsoft-MacOutlook/10.15.0.190117
Date: Wed, 6 Feb 2019 10:45:39 +0100
Message-ID: <2B28F4D1-CD00-4B22-B3E6-51228A529174@meinberg.de>
Thread-Topic: Antw: Re: [Ntp] Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org> <5C57E866020000A10002F788@gwsmtp1.uni-regensburg.de> <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de> <5f5c2710-3078-c7c8-79e4-e9b92594e835@nwtime.org> <B4775CA1-CBCD-464A-B4F6-2B9BC9D779D3@meinberg.de> <20190205081810.GH21456@localhost> <BA93F319-58D1-4336-842E-380D30CF0015@meinberg.de> <5C5AA04F020000A10002F84F@gwsmtp1.uni-regensburg.de>
In-Reply-To: <5C5AA04F020000A10002F84F@gwsmtp1.uni-regensburg.de>
Mime-version: 1.0
Importance: Normal
X-Priority: 3
Thread-Index: AZ2x3tU+ZDQ3MGUxNTMzMDhjY2Y2MQ==
From: Heiko Gerstung <heiko.gerstung@meinberg.de>
To: Ulrich Windl <ulrich.windl@rz.uni-regensburg.de>
Cc: "ntp@ietf.org" <ntp@ietf.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/AlydjiqoGE1KD6fgUTGD8siCH90>
Subject: Re: [Ntp] Antw: Re:  Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 06 Feb 2019 09:45:50 -0000

Hi Ulrich,

passing on the RefID from the Stratum 1 (root) source would require a uniqu=
e ID (as described by you). I am not sure if this would avoid timing loops =
(GPS->A->B->C->A, all nodes would just see "GPS" as the RefID, so would B a=
nd C but only C formed a loop) but it would certainly not cover the use cas=
e of ntptrace.pl (i.e. debugging, monitoring) and certainly not the traceab=
ility. A "sync" trail would be covering all of the use cases, in combinatio=
n with NTS it could be also cryptographically secured and therefore might e=
ven cover the legal/compliance requirements of some of our end users. You c=
an of course use any other unique ID, I just thought that the MAC address i=
s already there and also maybe helps with identifying a box on the network.=
 However, for the described purpose (unique id) a hash of some unique infor=
mation (like vendor/model/serialnumber) would do, too.

Best Regards,
   Heiko


--=20
Heiko Gerstung=20
Managing Director

MEINBERG=C2=AE Funkuhren GmbH & Co. KG
Lange Wand 9
D-31812 Bad Pyrmont, Germany
Phone:    +49 (0)5281 9309-404
Fax:        +49 (0)5281 9309-9404

Amtsgericht Hannover 17HRA 100322
Gesch=C3=A4ftsf=C3=BChrer/Management: G=C3=BCnter Meinberg, Werner Meinberg=
, Andre Hartmann, Heiko Gerstung

Email:
 heiko.gerstung@meinberg.de=20
Web:
 Deutsch   https://www.meinberg.de
 English    https://www.meinbergglobal.com

Do not miss our Time Synchronization Blog:
 https://blog.meinbergglobal.com=20

Connect via LinkedIn:=20
https://www.linkedin.com/in/heikogerstung
=20
=20

=EF=BB=BFOn 06.02.19, 09:53 "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.=
de> wrote:

    Hello!
   =20
    A different thought: if you would propagate the refid of stratum 1 serv=
ers
    down to the clients (if client C is using server S as peer, then C's re=
fid
    would be that of S), there is another interesting problem: There are to=
o many
    refids like "GPS " then, making it hard to decide, which is which.
    However it would ultimately prevent a client using GPS multiple times ;=
-)
   =20
    So actually while discussing the REFID for stratum > 1, shouldn't there=
 be a
    discussion for stratum 1 as well? When IPv6 addresses are hashed as sug=
gested
    in RFC 5905, why not also hash the REFID for stratum 1? One could add
    manufacturer, device model, serial number, etc. to that primary refid.
    What I thought is: If the refid of stratum > 1 does not really reveal t=
he
    identity of the time source, why keep it at stratum 1? And: if propagat=
ing the
    refids down from stratum 1, wouldn't that prevent a timing loop as well=
, maybe
    even better?
   =20
    Before using the MAC as source for some REFID, why not create some rand=
om GUID
    (64 bit should be enough) and store that in persistent storage?
   =20
    Regards,
    Ulrich Windl
   =20
    >>> Heiko Gerstung <heiko.gerstung@meinberg.de> schrieb am 06.02.2019 u=
m 08:46
    in
    Nachricht <BA93F319-58D1-4336-842E-380D30CF0015@meinberg.de>:
    > Hi Miroslav,=20
    >=20
    > the RefID based loop prevention in NTP implementations works only if =
a=20
    > client has access to the source of its source, which is very rarely t=
he case
   =20
    > in corporate networks (and which is often prevented by firewalls to a=
void=20
    > that people for example directly use one of the core NTP servers as a=
=20
    > reference). I would also doubt that such a RefID based loop preventio=
n=20
    > mechanism is working reliably with hashed IPv6 addresses.=20
    >=20
    > It is probably a good idea to define a mechanism which is  based on a=
n=20
    > extension field to cover debugging / monitoring use-cases more effect=
ively.
   =20
    > You would certainly need a unique ID instead of relying on the IP add=
resses
   =20
    > of all your upstream servers. Suggestion: use the MAC address of the =
first=20
    > physical network interface NTP runs on, which should be sufficiently =
unique
   =20
    > (unless your server runs in a VM). Every NTP node then adds the Uniqu=
e ID of
   =20
    > its source to the chain. If A is synchronized to GPS, it will send a=20
    > traceability chain that looks like this : "GPS". When B synchronizes =
to A:=20
    > "GPS,[MAC_ADDR_OF_A]", when C synchronizes to B: "GPS, [MAC_ADDR_OF_A=
],=20
    > [MAC_ADDR_OF_B]" and so on. Maybe the extension could also include so=
me=20
    > additional data like precision of a source etc. to be able to calcula=
te
    error=20
    > bounds.=20
    >=20
    > For legal / compliance use cases this is not going to help as you wou=
ld need
   =20
    > a digitally signed chain and would have to be able to verify the sign=
atures
   =20
    > of all involved NTP nodes on the path.
    >=20
    > All in all this looks like we need to put some more thoughts into it.=
 But I
   =20
    > personally believe that the refid is not sufficient for a lot of situ=
ations,
   =20
    > especially not for IPv6 and whenever there is no access to upstream s=
ervers.
   =20
    >=20
    > Best Regards,
    >    Heiko
    >=20
    >=20
    >=20
    >=20
    >=20
    > --=20
    > Heiko Gerstung=20
    > Managing Director
    >=20
    > MEINBERG=C2=AE Funkuhren GmbH & Co. KG
    > Lange Wand 9
    > D-31812 Bad Pyrmont, Germany
    > Phone:    +49 (0)5281 9309-404
    > Fax:        +49 (0)5281 9309-9404
    >=20
    > Amtsgericht Hannover 17HRA 100322
    > Gesch=C3=A4ftsf=C3=BChrer/Management: G=C3=BCnter Meinberg, Werner Me=
inberg, Andre=20
    > Hartmann, Heiko Gerstung
    >=20
    > Email:
    >  heiko.gerstung@meinberg.de=20
    > Web:
    >  Deutsch   https://www.meinberg.de=20
    >  English    https://www.meinbergglobal.com=20
    >=20
    > Do not miss our Time Synchronization Blog:
    >  https://blog.meinbergglobal.com=20
    >=20
    > Connect via LinkedIn:=20
    > https://www.linkedin.com/in/heikogerstung=20
    > =20
    > =20
    >=20
    > =EF=BB=BFOn 05.02.19, 09:19 "Miroslav Lichvar" <mlichvar@redhat.com> =
wrote:
    >=20
    >     On Tue, Feb 05, 2019 at 08:51:50AM +0100, Heiko Gerstung wrote:
    >     > Harlan,
    >     >=20
    >     > isn't the stratum level the value that prevents timing loops?=20
    >    =20
    >     That was in NTPv3.
    >    =20
    >     In NTPv4 clients are allowed to synchronize to a higher stratum, =
so it
    >     can only terminate the loop when the value reaches 16. It does no=
t
    >     prevent the loop from forming. The same applies to the root delay=
 and
    >     dispersion.
    >    =20
    >     The refid field is useful at least to:
    >     1) prevent A from synchronizing to B when:
    >       a) B is synchronized to A
    >       b) A and B are synchronized to C
    >       c) B and C are synchronized to D, and A is synchronized to C
    >     2) monitoring
    >     3) debugging
    >    =20
    >     If I understand it correctly, hiding the refid using the not-you =
value
    >     will break everything except 1a.
    >    =20
    >     --=20
    >     Miroslav Lichvar
    >    =20
   =20
   =20
   =20
   =20

=


From nobody Wed Feb  6 07:59:54 2019
Return-Path: <Greg.Dowd@microchip.com>
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 9F5FF126CB6 for <ntp@ietfa.amsl.com>; Wed,  6 Feb 2019 07:59:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.733
X-Spam-Level: 
X-Spam-Status: No, score=-2.733 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=microchiptechnology.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p5bRWxVQfaiT for <ntp@ietfa.amsl.com>; Wed,  6 Feb 2019 07:59:51 -0800 (PST)
Received: from esa2.microchip.iphmx.com (esa2.microchip.iphmx.com [68.232.149.84]) (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 07579128766 for <ntp@ietf.org>; Wed,  6 Feb 2019 07:59:50 -0800 (PST)
X-IronPort-AV: E=Sophos;i="5.58,340,1544511600"; d="scan'208";a="26208515"
Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES128-SHA; 06 Feb 2019 08:59:49 -0700
Received: from NAM05-BY2-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.37) with Microsoft SMTP Server (TLS) id 14.3.352.0; Wed, 6 Feb 2019 08:59:48 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/C/O0AJIm911aSvE6Ptvy4sGkknI9TqjHCeXEzU02u8=; b=rfgQ5uu1nH/0wpGZtdl3CgOAgFhyvZb6HbT3nIYl0NFT8fePJXLmByIn2PT94crJ2esdAmUChNB0coJ8h4w7o8bf8Cyhda6b+izUPm+jClnad780H25VW2UKJT7xac3ftyGrM0m7NJ70B8xWyQmWmxQyb0NpQ9XSKEeIX7BLPEk=
Received: from BYAPR11MB3239.namprd11.prod.outlook.com (20.177.184.76) by BYAPR11MB3128.namprd11.prod.outlook.com (20.177.227.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1580.22; Wed, 6 Feb 2019 15:59:46 +0000
Received: from BYAPR11MB3239.namprd11.prod.outlook.com ([fe80::345f:7b53:3fca:fe15]) by BYAPR11MB3239.namprd11.prod.outlook.com ([fe80::345f:7b53:3fca:fe15%2]) with mapi id 15.20.1601.016; Wed, 6 Feb 2019 15:59:46 +0000
From: <Greg.Dowd@microchip.com>
To: <heiko.gerstung@meinberg.de>, <mlichvar@redhat.com>
CC: <ulrich.windl@rz.uni-regensburg.de>, <stenn@nwtime.org>, <ntp@ietf.org>
Thread-Topic: [Ntp] Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
Thread-Index: AQHUvLy3xA+F9YnSuUCyqOYn9rW9fqXQ1dQAgAAHWwCAAYlkAIAAhkKQ
Date: Wed, 6 Feb 2019 15:59:46 +0000
Message-ID: <BYAPR11MB3239D65571921039C26576D8FC6F0@BYAPR11MB3239.namprd11.prod.outlook.com>
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org> <5C57E866020000A10002F788@gwsmtp1.uni-regensburg.de> <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de> <5f5c2710-3078-c7c8-79e4-e9b92594e835@nwtime.org> <B4775CA1-CBCD-464A-B4F6-2B9BC9D779D3@meinberg.de> <20190205081810.GH21456@localhost> <BA93F319-58D1-4336-842E-380D30CF0015@meinberg.de>
In-Reply-To: <BA93F319-58D1-4336-842E-380D30CF0015@meinberg.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Greg.Dowd@microchip.com; 
x-originating-ip: [12.177.68.254]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BYAPR11MB3128; 6:y5J54FHRMZHlCs64MgARElZtKX4syfD81F2lAEul5mAzgtcdu7L1SX2YItnDU3MVBbJe42n8zmNhZf8dawQg9rN9L5w3NiIOmhGkufn65LP8UKNiX2a8MgpY7iCbVymapeic4rcVFDtDV2++99D5PFM9Sh1jrSbjyulphEcQMBzoNd5z4DDuWpifdUx4ARgjDWiHFOCdxDNX+09RASqm73F4BXJ+ioqte8EzgBHvcaxo7uxfEvOORmPJ8HNKTwglV9OomiNGNcbdM6DMc5hg+nv1fBtVA3C5TmdJpmrKsZvsvCQfZfCeOMACjll3NF4spWUYBwnKTAeIxZzME0DZG+WAmeYA/e3y+jgU0wfKk530HJVuBl+HUPhlcbz4CaBLIyxDlJ4XfJUW+GtSv7rhrRN12dgVsasYNx0w9l5DqSE4AJuz1gergVC6JJKMBfEQo9o5wWxAXzwsbYjvOlKCcw==; 5:JiXNkZnl97ftEJkevua9V0NgxpqBg2ELZsm1sXcUqaFZnQbvo5UTWWp4eLU5Uo665zi+4U+hghgzeRLflvATvjI1WvQR3T0crdToecC0VbWnqq2cseCalxl/wxWdFhIRYOgsRxdhtZza67G1hviPBhtRQwsbsfTfBAOnIcMgecNmU5mJMoFu70kMaUec8/FCQlhEmaGYBHHtTr5tpqZ6qw==; 7:U1SIM6LLZySsuVXDRzmzRAPtH91UmX3xWLZRBXpjsf7qgbS4TWtxN+rHhwOxePT+YzhFMekkKBqbAd4XPHqNlG27X4Yz34aVAt7iTjGL6T/I+wY9L7kxHh8zAsIHvDNcQDOXjXy8wOB7TVcXd/yLDA==
x-ms-office365-filtering-correlation-id: e096df18-d70b-4174-5173-08d68c4c1ded
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(2017052603328)(7153060)(7193020); SRVR:BYAPR11MB3128; 
x-ms-traffictypediagnostic: BYAPR11MB3128:
x-microsoft-antispam-prvs: <BYAPR11MB312864E4CE3CDF3C0479C2D5FC6F0@BYAPR11MB3128.namprd11.prod.outlook.com>
x-forefront-prvs: 0940A19703
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39860400002)(376002)(346002)(136003)(13464003)(189003)(199004)(14444005)(105586002)(11346002)(446003)(106356001)(966005)(102836004)(8936002)(81166006)(25786009)(8676002)(81156014)(76176011)(7736002)(93886005)(53546011)(6116002)(316002)(71200400001)(478600001)(186003)(45080400002)(71190400001)(305945005)(6506007)(74316002)(7696005)(66574012)(99286004)(68736007)(72206003)(110136005)(54906003)(14454004)(2906002)(86362001)(26005)(3846002)(33656002)(15974865002)(229853002)(53936002)(9686003)(476003)(6306002)(97736004)(55016002)(4326008)(6246003)(256004)(6436002)(486006)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR11MB3128; H:BYAPR11MB3239.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; 
received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: 7oo2FbUIRJoyhGbhXJ0jyEidRPYmcTN4WJoSBa3D7PPM1PEv8O2eHoJHRjaVrSlR4bSvWtOe+R6PYTvFBHuUF2Psh0gLK8rk7YizuXVy2eICU6H/Ypt796g0ihxfaVS9PqzUYVF1pvIlf8LCmQyzTA/HA/Y3M3X7kPU8N7QB6y8Gn1f7tnM++KcBCKu3j2YvYph9O3EfuYPtjCZ5ovI8oLCi9Zw67f6MpKshBsExhCe19etDYoxxto/przWaY3SOjKxDXAZQ6tN/0bIP9ZRlOVXzKaeZWYK+Ck4/TmF3iSOXcmrSfKZFUnv26VVNOhr/zOjfba+te/4YXYmQGlpgG6uqznG6vkGwpK82SvkEDhUxu9SkpTs+8iZ+go1wiZIa9q20dRPNbhz0cMqANwuEavV5OkOLnABsMTpEgJvPCoM=
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: e096df18-d70b-4174-5173-08d68c4c1ded
X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Feb 2019 15:59:46.5718 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3128
X-OriginatorOrg: microchip.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/Zb6bUGtE6dIip9PFNfXfOvyXU-s>
Subject: Re: [Ntp] Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 06 Feb 2019 15:59:54 -0000

R29vZCBpZGVhIEhlaWtvLiAgSSB0aGluayB0aGUgaWRlYSBvZiBhICJudHB0cmFjZSIgdmlhIGFu
IGV4dGVuc2lvbiBmaWVsZCB3b3VsZCBiZSBhIGdyZWF0IHVzZSBvZiB0aGUgZnVuY3Rpb25hbGl0
eSwgYXQgbGVhc3QgaW4gdGhlIGRldmVsb3Blci9kZWJ1Z2dlciBjb21tdW5pdHkuICBIb3cgd2lk
ZXNwcmVhZCB0aGUgdXRpbGl0eSB2YWx1ZSBpcyBtaWdodCBiZSBkZWJhdGFibGUuICBFbGVtZW50
cyBpbiB0aGUgcGF0aCBjb3VsZCBjaG9vc2Ugd2hldGhlciBvciBub3QgdG8gY29udHJpYnV0ZSwg
YW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
c3RyYXR1bSwgc28gaXQNCiAgICBjYW4gb25seSB0ZXJtaW5hdGUgdGhlIGxvb3Agd2hlbiB0aGUg
dmFsdWUgcmVhY2hlcyAxNi4gSXQgZG9lcyBub3QNCiAgICBwcmV2ZW50IHRoZSBsb29wIGZyb20g
Zm9ybWluZy4gVGhlIHNhbWUgYXBwbGllcyB0byB0aGUgcm9vdCBkZWxheSBhbmQNCiAgICBkaXNw
ZXJzaW9uLg0KDQogICAgVGhlIHJlZmlkIGZpZWxkIGlzIHVzZWZ1bCBhdCBsZWFzdCB0bzoNCiAg
ICAxKSBwcmV2ZW50IEEgZnJvbSBzeW5jaHJvbml6aW5nIHRvIEIgd2hlbjoNCiAgICAgIGEpIEIg
aXMgc3luY2hyb25pemVkIHRvIEENCiAgICAgIGIpIEEgYW5kIEIgYXJlIHN5bmNocm9uaXplZCB0
byBDDQogICAgICBjKSBCIGFuZCBDIGFyZSBzeW5jaHJvbml6ZWQgdG8gRCwgYW5kIEEgaXMgc3lu
Y2hyb25pemVkIHRvIEMNCiAgICAyKSBtb25pdG9yaW5nDQogICAgMykgZGVidWdnaW5nDQoNCiAg
ICBJZiBJIHVuZGVyc3RhbmQgaXQgY29ycmVjdGx5LCBoaWRpbmcgdGhlIHJlZmlkIHVzaW5nIHRo
ZSBub3QteW91IHZhbHVlDQogICAgd2lsbCBicmVhayBldmVyeXRoaW5nIGV4Y2VwdCAxYS4NCg0K
ICAgIC0tDQogICAgTWlyb3NsYXYgTGljaHZhcg0KDQoNCg0KX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX18NCm50cCBtYWlsaW5nIGxpc3QNCm50cEBpZXRmLm9y
Zw0KaHR0cHM6Ly93d3cuaWV0Zi5vcmcvbWFpbG1hbi9saXN0aW5mby9udHANCg==


From nobody Thu Feb  7 07:33:06 2019
Return-Path: <heiko.gerstung@meinberg.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 16DC4126D00 for <ntp@ietfa.amsl.com>; Thu,  7 Feb 2019 07:33:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.39
X-Spam-Level: 
X-Spam-Status: No, score=-2.39 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0kWqA-nGLTLw for <ntp@ietfa.amsl.com>; Thu,  7 Feb 2019 07:33:02 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D713E12008F for <ntp@ietf.org>; Thu,  7 Feb 2019 07:33:01 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id D8ED771C0159; Thu,  7 Feb 2019 16:32:56 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de D8ED771C0159
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1549553579; bh=MmzvJXwQj+gV/ruI8DEVFr81whbI/Qcqm25zNNKVY/Q=; h=Date:Subject:Message-ID:References:In-Reply-To:Mime-version:From: To:Cc:Content-Type:Content-Transfer-Encoding; b=YMRBB1JyrDPLxaySlEGuujzM8X3VdLnCwOeEvp58AWT3a4/3QD/KT55U8elBnKGaW 0kZaRdO7kNjQdAykfmY0612wr3xXWogT1O3BcNXfYYUDMlJurHlvENewXBeAhH86+l zGUDj+kaY1o8TxZbOi72NKIEUaT3kZUdiGFSCWBo=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.8.1193, Stamp: 3], Multi: [Enabled, t: (0.000005,0.006962)], BW: [Enabled, t: (0.000007)], RTDA: [Enabled, t: (0.062806), Hit: No, Details: v2.7.26; Id: 15.1i6092q.1d349e8s0.duvmo], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
User-Agent: Microsoft-MacOutlook/10.15.0.190117
Date: Thu, 7 Feb 2019 16:32:53 +0100
Message-ID: <DD7969E3-D686-418A-92EA-C66E27FD3629@meinberg.de>
Thread-Topic: [Ntp] Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
References: <104CE53D-0D44-449E-B3B4-5A89970F3CD2@isoc.org> <5C57E866020000A10002F788@gwsmtp1.uni-regensburg.de> <8F6EA78D-D5E5-4465-B3D7-5F803F0DB2B7@meinberg.de> <5f5c2710-3078-c7c8-79e4-e9b92594e835@nwtime.org> <B4775CA1-CBCD-464A-B4F6-2B9BC9D779D3@meinberg.de> <20190205081810.GH21456@localhost> <BA93F319-58D1-4336-842E-380D30CF0015@meinberg.de> <b8c614cb-28f3-d1f4-9a32-fbdaaf5987bb@nwtime.org>
In-Reply-To: <b8c614cb-28f3-d1f4-9a32-fbdaaf5987bb@nwtime.org>
Mime-version: 1.0
Importance: Normal
X-Priority: 3
Thread-Index: AZ2x3tU+NDIzOWI4MGNlODdjM2JjNQ==
From: Heiko Gerstung <heiko.gerstung@meinberg.de>
To: Harlan Stenn <stenn@nwtime.org>, Miroslav Lichvar <mlichvar@redhat.com>
Cc: Ulrich Windl <ulrich.windl@rz.uni-regensburg.de>, "ntp@ietf.org" <ntp@ietf.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/EEDLoDpLAY9NQTFuhDVmNV3BA6k>
Subject: Re: [Ntp] Antw: NTP WG Virtual Interim, Tuesday 12 February, 1630-1830 UTC
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 07 Feb 2019 15:33:05 -0000

Harlan,

no, I am not. I just wanted to point out that it does not prevent degree-1+=
n loops.  This was in response to Miroslav's comments:

> In NTPv4 clients are allowed to synchronize to a higher stratum, so it
> can only terminate the loop when the value reaches 16. It does not
> prevent the loop from forming. The same applies to the root delay and
> dispersion.
>
> The refid field is useful at least to:
> 1) prevent A from synchronizing to B when:
>   a) B is synchronized to A
>   b) A and B are synchronized to C
>   c) B and C are synchronized to D, and A is synchronized to C
> 2) monitoring
> 3) debugging
>
> If I understand it correctly, hiding the refid using the not-you value
> will break everything except 1a.

As he pointed out, a degree-1 loop is prevented by the "not-you" refid, but=
 not any degree-1+n loops. I did not yet test if ntpd detects degree-1 loop=
s in case of a host having multiple IPv4 and IPv6 adresses, did you test th=
at?=20

In general I believe that a degree-1 loop misconfiguration is much easier t=
o find than a degree-1+n loop.=20

Best Regards,
   Heiko





--=20
Heiko Gerstung=20
Managing Director

MEINBERG=C2=AE Funkuhren GmbH & Co. KG
Lange Wand 9
D-31812 Bad Pyrmont, Germany
Phone:    +49 (0)5281 9309-404
Fax:        +49 (0)5281 9309-9404

Amtsgericht Hannover 17HRA 100322
Gesch=C3=A4ftsf=C3=BChrer/Management: G=C3=BCnter Meinberg, Werner Meinberg=
, Andre Hartmann, Heiko Gerstung

Email:
 heiko.gerstung@meinberg.de=20
Web:
 Deutsch   https://www.meinberg.de
 English    https://www.meinbergglobal.com

Do not miss our Time Synchronization Blog:
 https://blog.meinbergglobal.com=20

Connect via LinkedIn:=20
https://www.linkedin.com/in/heikogerstung
=20
=20

=EF=BB=BFOn 06.02.19, 09:15 "Harlan Stenn" <stenn@nwtime.org> wrote:

    Heiko,
   =20
    The core purpose of the REFID in NTPv4 is to act as a degree-1 loop
    preventer.
   =20
    Are you saying it does not fulfill that role?
   =20
    H
   =20
    On 2/5/19 11:46 PM, Heiko Gerstung wrote:
    > Hi Miroslav,=20
    >=20
    > the RefID based loop prevention in NTP implementations works only if =
a client has access to the source of its source, which is very rarely the c=
ase in corporate networks (and which is often prevented by firewalls to avo=
id that people for example directly use one of the core NTP servers as a re=
ference). I would also doubt that such a RefID based loop prevention mechan=
ism is working reliably with hashed IPv6 addresses.=20
    >=20
    > It is probably a good idea to define a mechanism which is  based on a=
n extension field to cover debugging / monitoring use-cases more effectivel=
y. You would certainly need a unique ID instead of relying on the IP addres=
ses of all your upstream servers. Suggestion: use the MAC address of the fi=
rst physical network interface NTP runs on, which should be sufficiently un=
ique (unless your server runs in a VM). Every NTP node then adds the Unique=
 ID of its source to the chain. If A is synchronized to GPS, it will send a=
 traceability chain that looks like this : "GPS". When B synchronizes to A:=
 "GPS,[MAC_ADDR_OF_A]", when C synchronizes to B: "GPS, [MAC_ADDR_OF_A], [M=
AC_ADDR_OF_B]" and so on. Maybe the extension could also include some addit=
ional data like precision of a source etc. to be able to calculate error bo=
unds.=20
    >=20
    > For legal / compliance use cases this is not going to help as you wou=
ld need a digitally signed chain and would have to be able to verify the si=
gnatures of all involved NTP nodes on the path.
    >=20
    > All in all this looks like we need to put some more thoughts into it.=
 But I personally believe that the refid is not sufficient for a lot of sit=
uations, especially not for IPv6 and whenever there is no access to upstrea=
m servers.=20
    >=20
    > Best Regards,
    >    Heiko
    >=20
    >=20
    >=20
    >=20
    >=20
   =20
    --=20
    Harlan Stenn <stenn@nwtime.org>
    http://networktimefoundation.org - be a member!
   =20

=


From nobody Fri Feb  8 07:50:05 2019
Return-Path: <session-request@ietf.org>
X-Original-To: ntp@ietf.org
Delivered-To: ntp@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 11167126C15; Fri,  8 Feb 2019 07:50:04 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: IETF Meeting Session Request Tool <session-request@ietf.org>
To: <session-request@ietf.org>
Cc: ntp-chairs@ietf.org, kodonog@pobox.com, ntp@ietf.org, suresh@kaloom.com
X-Test-IDTracker: no
X-IETF-IDTracker: 6.91.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <154964100403.31108.6327924608657631502.idtracker@ietfa.amsl.com>
Date: Fri, 08 Feb 2019 07:50:04 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/ntDUyPIlcjC7pxrJj6Uo0BUsVWI>
Subject: [Ntp] ntp - New Meeting Session Request for IETF 104
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
List-Id: <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: Fri, 08 Feb 2019 15:50:04 -0000

A new meeting session request has just been submitted by Karen O&#39;Donoghue, a Chair of the ntp working group.


---------------------------------------------------------
Working Group Name: Network Time Protocol
Area Name: Internet Area
Session Requester: Karen O&#39;Donoghue

Number of Sessions: 1
Length of Session(s):  2 Hours
Number of Attendees: 30
Conflicts to Avoid: 
 First Priority: oauth sacm saag cfrg tls ippm bmwg detnet acme ace




People who must be present:
  Karen O&#39;Donoghue
  Suresh Krishnan
  Dieter Sibold

Resources Requested:

Special Requests:
  Please schedule joint with TICTOC. 
---------------------------------------------------------


From nobody Fri Feb  8 08:01:26 2019
Return-Path: <mart.langer@ostfalia.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 5A066126C15 for <ntp@ietfa.amsl.com>; Fri,  8 Feb 2019 08:01:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.389
X-Spam-Level: 
X-Spam-Status: No, score=-1.389 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_FILL_THIS_FORM_SHORT=0.01, URI_NOVOWEL=0.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=sonia.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6rBHH_cMz1yP for <ntp@ietfa.amsl.com>; Fri,  8 Feb 2019 08:01:19 -0800 (PST)
Received: from mailgate2.sonia.de (mailgate2.sonia.de [141.41.1.243]) (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 3F6D7124BAA for <ntp@ietf.org>; Fri,  8 Feb 2019 08:01:19 -0800 (PST)
Received: from mailgate2.sonia.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 414E0FEF6 for <ntp@ietf.org>; Fri,  8 Feb 2019 17:01:17 +0100 (CET)
Received: from mail.sonia.de (mail.sonia.de [141.41.8.70]) by mailgate2.sonia.de (Postfix) with ESMTP id 1CFF4FEEF for <ntp@ietf.org>; Fri,  8 Feb 2019 17:01:16 +0100 (CET)
MIME-version: 1.0
Content-type: multipart/alternative; boundary="Boundary_(ID_xcqAWMtWn8rLHqZvVuExgg)"
Received: from [141.41.39.246] (unknown [141.41.39.246]) by mail.sonia.de (Oracle Communications Messaging Server 7.0.5.37.0 64bit (built Jan 25 2016)) with ESMTPSA id <0PMM0053P7645P10@mail.sonia.de> for ntp@ietf.org; Fri, 08 Feb 2019 17:01:16 +0100 (CET)
Sender: mart.langer@ostfalia.de
To: ntp@ietf.org
References: <c8a0a1f6-21f5-e79a-ed03-1e7f5f32bb8d@netnod.se>
From: Martin Langer <mart.langer@ostfalia.de>
Message-id: <fe843443-92d3-08e8-a584-2a362bd2386c@ostfalia.de>
Date: Fri, 08 Feb 2019 17:01:16 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
In-reply-to: <c8a0a1f6-21f5-e79a-ed03-1e7f5f32bb8d@netnod.se>
Content-language: de-DE
X-Antivirus: Avast (VPS 190208-2, 08.02.2019), Outbound message
X-Antivirus-Status: Clean
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sonia.de; h=mime-version:content-type:sender:subject:to:references:from:message-id:date:in-reply-to; s=20140129; bh=JZNGQjeiUhAWfmDdQ/1C08jTrTSnrRT4ZFmAO4WWTU4=; b=fKIPAls2/SJODRozKgpBnu0MG3rVMOf8ZRBQn/Vi0ga2+e2Z2joAMJyuowoKspvO6P7ZZvdzLQ2sJ+LMWciyJmQhl9NelapoPfLzZSyL60owXZcSMPG03d4ot3sGWyuztO6O5c6CcdkW0nxrjg/HqimSDW0lR3Pj+lJCskK7/ts=
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/9i6xJgVHzemiUdSKJp5xbbdDBHU>
Subject: Re: [Ntp] NTPv4 Server/Port Negotiation records in NTS
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Fri, 08 Feb 2019 16:01:25 -0000

This is a multi-part message in MIME format.

--Boundary_(ID_xcqAWMtWn8rLHqZvVuExgg)
Content-type: text/plain; charset=utf-8; format=flowed
Content-transfer-encoding: 8BIT

hello together,

As Christer already knows, I have noticed many of these points during 
the implementation
too and I guess a simplification of the URI makes sense.

On the subject of the server negotiation:
If the KE server supplies multiple time servers, it is currently 
necessary to ensure that these
servers support the cookies. This means that all servers must use the 
same MasterKey.


best regards,
Martin

Am 04.02.2019 um 16:55 schrieb Christer Weinigel:
> Hello all,
>
> sorry for jumping on the NTS discussions this late, but I have recently
> started working  for Netnod here in Sweden and have just written yet
> another proof of concept implementation of NTS:
>
>     https://github.com/Netnod/nts-poc-python
>
> While doing this I've found two issues regarding the NTPv4 Server/Port
> Negotiation record in NTS.  The first one regarding the syntax of a
> host name, is something i believe must be changed, the second one,
> allowing multiple NTPv4 Server Negotiation records is something I
> hope can be changed.  And sorry for the long email, but I wanted
> to cover all the bases and show that I have considered  different
> ways to solve the issues.
>
> First some background.  Netnod has developed a NTP implementation which
> runs in a FPGA.  This implementation runs on a Xilinx VC709 board and
> can serve NTP at wire speed on 4 ports which each run at 10GBit/s.
>
>     https://github.com/Netnod/FPGA_NTP_SERVER
>
> A distant goal is to implement UDP timestamping part of NTS in the
> same FPGA.  To do this, we will have to run NTSKE on a PC separate from
> the FPGA and will need to use the NTPv4 Server Negotiation records.
> While writing my proof of concept I have found a few things in the draft
> that I would like to change.
>
> 1) Parsing of a host name in the NTPv4 Server Negotiation record
>
> The specification looks like this:
>
>     4.1.7.  NTPv4 Server Negotiation
>
>     The NTPv4 Server Negotiation record has a Record Type number of 6.
>     Its body consists of an ASCII-encoded [ANSI.X3-4.1986] string
>     conforming to the syntax of the Host subcomponent of a URI
>     ([RFC3986]).
>
> RFC3986 has this to say about the host subcomponent of a URI:
>
>     https://tools.ietf.org/html/rfc3986
>
>     host        = IP-literal / IPv4address / reg-name
>
>     reg-name    = *( unreserved / pct-encoded / sub-delims )
>
>     unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"
>
>     sub-delims  = "!" / "$" / "&" / "'" / "(" / ")"
>                   / "*" / "+" / "," / ";" / "="
>
> that is, letters outside of unreserved/sub-delims should be %-encoded.
> This means that the following NTPv4 Server Negotiation records could
> be used for "räksmörgås.se":
>
>     79.99.1.121
>     [2a02:750:7::817]
>     xn--rksmrgs-5wao1o.se
>     r%E4ksm%F6rg%E5s.se
>     r%C3%A4ksm%C3%B6rg%C3%A5s.se
>
> The last two encodings are a bit troublesome though. RFC3986
> specifies no definite character encoding, which means that depending
> on the server it could be ISO-8859-1 "r%E4ksm%F6rg%E5s.se", UTF-8
> "r%C3%A4ksm%C3%B6rg%C3%A5s.se", or some other encoding. The client
> will have to guess which encoding is used, convert that to Unicode,
> and finally translate the Unicode string to an IDNA encoded string
> "xn--rksmrgs-5wao1o.se" which can be handed over to a DNS resolver.
> The client may also have to handle normalization/denormalization of
> Unicode which can be painful.  I consider this a bug in the
> specification.
>
> Suggestion: Change the NTPv4 Server Negotiation record specification
> so that it is self contained and no longer refers to RFC3986 and only
> allows ASCII characters in hostnames.  IDNA-encoding must be used
> for characters outside of ASCII:
>
>     An IPv4 address using the dotted decimal notation, an IPv6 address
>     using the "Text Representation of Addresses" described in
>     [RFC4291] enclosed in brackets "[" IPv6-adress "]", or an ASCII
>     string with a host name consisting of A-LABELS separated by
>     periods (".").  The A-LABEL syntax is specified in [IDNA2008].
>
> the only actual change in functionality, compared to the existing
> draft, will be that %-encoding is no longer allowed and the
> uncertainty regarding character encoding is removed. With this
> change, the following NTPv4 Server Negotiation records could be used
> for "räksmörgås.se":
>
>     79.99.1.121
>     [2a02:750:7::817]
>     xn--rksmrgs-5wao1o.se
>
> Advantage: Removes complexity from the client.  The client can almost
> hand over the record directly to a resolver (i.e. getaddrinfo on Unix).
> See (2) for a further issue though.
>
> Disadvantage: None that I can see.
>
> I believe that this is something that must be changed in the
> specification.
>
> 2) Even with the suggested fix for (1), the string contained in a
> NTPv4 Server Negotiation record can not be handed over to getaddrinfo
> and needs a bit of parsing in the client.  The URI specification in
> RFC3986 requires IPv6 addresses to be enclosed in brackets which
> getaddrinfo is not able to parse.  It's not hard for a client to parse
> the string and remove the brackets but it is an extra step.
>
> Suggestion: Change the specification so that brackets are not needed
> nor allowed for IPv6 addresses:
>
>     An IPv4 address using the dotted decimal notation, an IPv6 address
>     using the "Text Representation of Addresses" described in
>     [RFC4291], or an ASCII string with a host name consisting of
>     A-LABELS separated by periods (".").  The A-LABEL syntax is
>     specified in [IDNA2008].
>
> Advantage: Simplifies the client and allows the contens of a NTPv4
> Server Negotiation record to be passed directly to getaddrinfo.
>
> Disadvantage: Incompatible with the NTPv4 Server Negotiation record
> format suggested in (4a).
>
> If the suggestion in (4a) is rejected I'd suggest doing this to
> simplify the client logic.
>
> Note that a client ought to do a bit of sanity checking on the host
> name anyway just to be on the safe side.  At a minimum it should
> check that the record only contains [-.A-Za-z0-9] and that it is
> a maximum of 253 characters long.
>
> 3) Multiple NTPv4 Server Negotiation records are forbidden
>
> Since our FPGA_NTP_SERVER speaks both IPv4 and IPv6 we would like to
> be able to return both an IPv4 and IPv6 address to the NTS/UDP server
> in the response from the NTSKE server.  A client would ususally use
> the first address it can handle.  A client which only speaks IPv4
> would use the first IPv4 address.  A client which speaks both IPv4 and
> IPv6 might prefer IPv6 with a fallback to IPv4 if it ends up on
> network without IPv6 connectivity.
>
> Actually, Netnod's use case would need the NTSKE server to be able to
> return a total of 8 addresses since our FPGA implementation has 4
> ports with an IPv4 and an IPv6 addresses for each port. But we are a
> bit special in our requirements.
>
> Unfortunately multiple records are explicitly forbidden by draft-15.
>
>     4.1.7.  NTPv4 Server Negotiation
>
>     ... Servers MUST NOT send more than one record of this type.
>
>     ... The client MUST NOT send more than one record of this type.
>
> I would like to remove this restriction if possible, and allow
> multiple NTPv4 Server Negotiation records.
>
> Consequences for a server: A server can limit itself to sending only
> one NTPv4 Server Negotiation record and can ignore any such records it
> has received.  There will be no complexity gain unless the server
> needs it.
>
> Consequences for a client: A client will have to be slightly more
> complex, with an emphasis on slightly.  It should not be that hard for
> a client to handle multiple records, it can just use the first record
> that contains a valid address that the client can handle.  That is, a
> client which only supports IPv4 should ignore IPv6 addresses (starting
> with "["), a client which only supports IPv6 should ignore IPv4
> addresses (matching IPv4 dotted notation), a client which supports
> both can use the first record.  If a host name is found the client
> will need to resolve the name using DNS just as before.
>
> Advantages: A server can return both IPv4 and IPv6 addresses, and can
> also return multiple NTP/UDP servers.
>
> Disadvantages: Slightly more complex logic in a client.
>
> If the restriction of only one NTPv4 Server Negotiation record is kept,
> it's still possible to solve some of these issues by having using
> a host name with a DNS record with multiple A/AAAA records.  But it
> is an extra step.  Also much too many labs at small and large companies
> don't have working DNS.  It would be nice if everyone had working DNS
> but not everyone does.
>
> I have not been able to read all of the discussions on NTS, but I
> believe that one argument against allowing multiple NTPv4 Server
> Negotiation records was a possible Sybil attack.  As long as a host
> name is allowed in the NTPv4 Server Negotiation Record, the same
> Sybil attack would be possible with multiple A/AAAA records in DNS.
>
> A Sybil attack should not be an issue if the standard adds a
> paragraph on how clients should treat multiple records, e.g.
> something like this.
>
> Note, when a NTSKE server returns multiple IP addresses for the
> NTS/UDP servers, either through multiple NTPv4 Server Negotiation
> records, or by returning a host name which resolves to multiple A/AAAA
> records in DNS, the addresses SHOULD be considered as alternate
> addresses for the same server, not as independent servers.  The
> intended use of multiple records, is for a single server which uses
> multiple transports such as IPv4 and IPv6 or when a server which has
> multiple  IP addresses for load balancing and/or failover purposes.  A
> client should normally select one of the addresses from the response and
> keep using it forever.  A client can save the list of addresses and
> switch to a different address as a fallback in case that currently used
> address becomes unreachable, for example if the client is using an IPv6
> address and loses IPv6 connectivity or if one of the ports on the
> server stop working.
>
> 4) If multiple records are allowed, it will be a bit unclear which
> NTPv4 Port Negotation record corresponds to each NTPv4 Server
> Negotiation record.
>
> Suggestion: drop the NTPv4 Port Negotation record from the standard
> move the port number into the NTPv4 Server Negotiation record.
>
> 4a) Encode the port number with a colon similar to how it is done in a
> URI.  For example:
>
>     79.99.1.121:123
>     [2a02:750:7::817]:123
>     xn--rksmrgs-5wao1o.se:123
>
> Note that it will not be possible to implement the suggestion in (2)
> with this suggestion since an address such as 2a02:750:7::817:123 is
> ambiguous and will probably be interpreted as an IPv6 address ending
> with ":817:123".  The brackets are needed to disambiguate this case.
>
> Advantage: Nice and human readable.  Easy to put the literal string in
> a config file.  Extensible to other addressing schemes.
>
> Disadvantage: Requires a bit of parsing on the client side to extract
> the host and port parts.
>
> 4b) Encode the port number in the two first bytes of the record and
> the server in the remaining space:
>
>        0                   1
>        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       |             Port              |
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       |                               |
>       |   Server padded with up to 3  |
>       |   octets of 0.                |
>       |                               |
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> Advantage: The port number uses a binary encoding and can be read
> directly from the field without any parsing.  If the suggestion in (2)
> is implemented the server part can be passed directly to getaddrinfo
> to resolve the server address.
>
> Disadvantage: This will limit the port number to 16 bits, which is not
> a problem for IPv4 or IPv6.  Do we have to care about some
> hypothetical future protocol that would require more bits in the port
> number?  (Note that if this is a proble, we already have this problem
> with the existing NTPv4 Port Negotiation record).
>
> 4c) Make the encoding explicit by adding a protocol identifier at the
> start of the NTPv4 Server Negotiation record:
>
>        0                   1
>        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       | Procotol (numeric values TBD) |
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       |                               |
>       |  Protocol specific encoding   |
>       |  of server address            |
>       |                               |
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> for example, an IPv4 address would be encoded like this:
>
>        0                   1
>        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       | Proto=IPv4 (numeric value TBD)|
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       |    Port (2 octets)            |
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       |   4 octets of IPv4 address    |
>       |                               |
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> an IPv6 like this:
>
>        0                   1
>        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       | Proto=IPv6 (numeric value TBD)|
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       |    Port (2 octets)            |
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       |   16 octets of IPv6 address   |
>       |                               |
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> a host name which should be looked up via DNS:
>
>        0                   1
>        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       | Proto=DNS (numeric value TBD) |
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       |    Port (2 octets)            |
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       |   N octets of A-LABEL padded  |
>       |    with up to 3 zero octets   |
>       |                               |
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> some future protocol which uses a 32 byte UUID to identify the server:
>
>        0                   1
>        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       | Proto=Future (value TBD)      |
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>       |    32 bytes UIID              |
>       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> Advantage: Everything is explicit.  No parsing needed, IPv4 and IPv6
> addresses can be used to fill in a sockaddr_in or sockaddr_in6
> structure directly.
>
> Disadvantage: I feel this is a bit too complex and overdesigned. We'd
> have to decide on a numbering scheme for the protocols. (Could we
> reuse some existing list of protocols?)
>
> 4d) Keep the NTPv4 Server Negotiation record and NTPv4 Port
> Negotiation record separate, but define an order for the records.
>
> For example the following wording could work:
>
>     The port specified in NTPv4 Port Negotiation record applies to all
>     NTPv4 Server Negotiation records that follow it.  If no NTPv4 Port
>     Negotiation records are provided, the client should default to the
>     NTS port (currently the same as for NTP, 123).  If no NTPv4 Server
>     Negotiation records are provided the client should fall back to
>     using the same IP address as the NTSKE server.
>
> and some Python-like pseudocode to select the first NTPv4 Server
> Negotiation record that the client can use:
>
>     server = None
>     port = 123   # default port
>
>     for record in ntske_session.records:
>         if record.type == NTPv4_Port_Negotiation:
>             port = unpack_big_endian_16bits(record.body)
>         elif record.type == NTPv4_Server_Negotiation:
>             if is_ipv4_address(record.body):
>                 if ipv4_supported:
>                     server = (parse_ipv4_address(record.body), port)
>                     break
>             elif is_ipv6_address(record.body):
>                 if ipv6_supported:
>                     server = (parse_ipv6_address(record.body), port)
>                     break
>             else:
>                 tmp = resolve_address(record.body)
>                 if tmp:
>                     server = (tmp, port)
>                     break
>
>     if server is None:
>         servers = ( ntske_host, port )
>
> Advantage: Fairly easy to implement.
>
> Disavantage: Slightly more complex logic than if the port number is
> part of the NTPv4 Server Negotiation record.
>
> 4e) Ignore the problem.  All servers must use the same port, only
> allow one NTPv4 Port Negotiation record.
>
> Advantage: Easy to implement.
>
> Disavantage: Not flexible.  But realistically very few people
> will need multiple NTS/UDP servers at different ports. The servers
> will need to share master keys, and will probably use the same NTS/UDP
> implementation, so there is probably no reasonable reason to why they
> should use different ports.
>
> Right now I'm leaning towards implementing suggestion (1), (2) and
> (4d), mostly because they involve as few changes to the draft as
> possible.  Otherwise implementing (1) (2) and (4b), or (1) and (4a)
> would be my preferred choices.  The only one I feel is really important
> though is to fix the issue in (1).
>
> What do you think?
>
> Regards,
>   Christer
>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp

-- 
Martin Langer, M.Eng.
Ostfalia Hochschule für angewandte Wissenschaften
- Hochschule Braunschweig/Wolfenbüttel
University of Applied Sciences

Labor Datentechnik, Labor Design Digitaler Systeme
Fakultät Elektrotechnik
Salzdahlumer Straße 46/48
38302 Wolfenbüttel
Germany

Tel. : +49 5331 939 43370
Web  : https://www.ostfalia.de/cms/de/pws/bermbach/mitarbeiter/martin-langer


--Boundary_(ID_xcqAWMtWn8rLHqZvVuExgg)
Content-type: text/html; charset=utf-8
Content-transfer-encoding: 8BIT

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    hello together,<br>
    <br>
    As Christer already knows, I have noticed many of these points
    during the implementation<br>
    too and I guess a simplification of the URI <span
      class="tlid-translation translation"><span title="" class="">makes
        sense.<br>
        <br>
        On the subject of the server negotiation: <br>
      </span></span>If the KE server supplies multiple time servers, it
    is currently necessary to ensure that these<br>
    servers support the cookies. This means that all servers must use
    the same MasterKey.<br>
    <br>
    <br>
    best regards,<br>
    Martin<br>
    <br>
    <div class="moz-cite-prefix">Am 04.02.2019 um 16:55 schrieb Christer
      Weinigel:<br>
    </div>
    <blockquote type="cite"
      cite="mid:c8a0a1f6-21f5-e79a-ed03-1e7f5f32bb8d@netnod.se">Hello
      all,
      <br>
      <br>
      sorry for jumping on the NTS discussions this late, but I have
      recently
      <br>
      started working  for Netnod here in Sweden and have just written
      yet
      <br>
      another proof of concept implementation of NTS:
      <br>
      <br>
          <a class="moz-txt-link-freetext" href="https://github.com/Netnod/nts-poc-python">https://github.com/Netnod/nts-poc-python</a>
      <br>
      <br>
      While doing this I've found two issues regarding the NTPv4
      Server/Port
      <br>
      Negotiation record in NTS.  The first one regarding the syntax of
      a
      <br>
      host name, is something i believe must be changed, the second one,
      <br>
      allowing multiple NTPv4 Server Negotiation records is something I
      <br>
      hope can be changed.  And sorry for the long email, but I wanted
      <br>
      to cover all the bases and show that I have considered  different
      <br>
      ways to solve the issues.
      <br>
      <br>
      First some background.  Netnod has developed a NTP implementation
      which
      <br>
      runs in a FPGA.  This implementation runs on a Xilinx VC709 board
      and
      <br>
      can serve NTP at wire speed on 4 ports which each run at 10GBit/s.
      <br>
      <br>
          <a class="moz-txt-link-freetext" href="https://github.com/Netnod/FPGA_NTP_SERVER">https://github.com/Netnod/FPGA_NTP_SERVER</a>
      <br>
      <br>
      A distant goal is to implement UDP timestamping part of NTS in the
      <br>
      same FPGA.  To do this, we will have to run NTSKE on a PC separate
      from
      <br>
      the FPGA and will need to use the NTPv4 Server Negotiation
      records.
      <br>
      While writing my proof of concept I have found a few things in the
      draft
      <br>
      that I would like to change.
      <br>
      <br>
      1) Parsing of a host name in the NTPv4 Server Negotiation record
      <br>
      <br>
      The specification looks like this:
      <br>
      <br>
          4.1.7.  NTPv4 Server Negotiation
      <br>
      <br>
          The NTPv4 Server Negotiation record has a Record Type number
      of 6.
      <br>
          Its body consists of an ASCII-encoded [ANSI.X3-4.1986] string
      <br>
          conforming to the syntax of the Host subcomponent of a URI
      <br>
          ([RFC3986]).
      <br>
      <br>
      RFC3986 has this to say about the host subcomponent of a URI:
      <br>
      <br>
          <a class="moz-txt-link-freetext" href="https://tools.ietf.org/html/rfc3986">https://tools.ietf.org/html/rfc3986</a>
      <br>
      <br>
          host        = IP-literal / IPv4address / reg-name
      <br>
      <br>
          reg-name    = *( unreserved / pct-encoded / sub-delims )
      <br>
      <br>
          unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"
      <br>
      <br>
          sub-delims  = "!" / "$" / "&amp;" / "'" / "(" / ")"
      <br>
                        / "*" / "+" / "," / ";" / "="
      <br>
      <br>
      that is, letters outside of unreserved/sub-delims should be
      %-encoded.
      <br>
      This means that the following NTPv4 Server Negotiation records
      could
      <br>
      be used for "räksmörgås.se":
      <br>
      <br>
          79.99.1.121
      <br>
          [2a02:750:7::817]
      <br>
          xn--rksmrgs-5wao1o.se
      <br>
          r%E4ksm%F6rg%E5s.se
      <br>
          r%C3%A4ksm%C3%B6rg%C3%A5s.se
      <br>
      <br>
      The last two encodings are a bit troublesome though. RFC3986
      <br>
      specifies no definite character encoding, which means that
      depending
      <br>
      on the server it could be ISO-8859-1 "r%E4ksm%F6rg%E5s.se", UTF-8
      <br>
      "r%C3%A4ksm%C3%B6rg%C3%A5s.se", or some other encoding. The client
      <br>
      will have to guess which encoding is used, convert that to
      Unicode,
      <br>
      and finally translate the Unicode string to an IDNA encoded string
      <br>
      "xn--rksmrgs-5wao1o.se" which can be handed over to a DNS
      resolver.
      <br>
      The client may also have to handle normalization/denormalization
      of
      <br>
      Unicode which can be painful.  I consider this a bug in the
      <br>
      specification.
      <br>
      <br>
      Suggestion: Change the NTPv4 Server Negotiation record
      specification
      <br>
      so that it is self contained and no longer refers to RFC3986 and
      only
      <br>
      allows ASCII characters in hostnames.  IDNA-encoding must be used
      <br>
      for characters outside of ASCII:
      <br>
      <br>
          An IPv4 address using the dotted decimal notation, an IPv6
      address
      <br>
          using the "Text Representation of Addresses" described in
      <br>
          [RFC4291] enclosed in brackets "[" IPv6-adress "]", or an
      ASCII
      <br>
          string with a host name consisting of A-LABELS separated by
      <br>
          periods (".").  The A-LABEL syntax is specified in [IDNA2008].
      <br>
      <br>
      the only actual change in functionality, compared to the existing
      <br>
      draft, will be that %-encoding is no longer allowed and the
      <br>
      uncertainty regarding character encoding is removed. With this
      <br>
      change, the following NTPv4 Server Negotiation records could be
      used
      <br>
      for "räksmörgås.se":
      <br>
      <br>
          79.99.1.121
      <br>
          [2a02:750:7::817]
      <br>
          xn--rksmrgs-5wao1o.se
      <br>
      <br>
      Advantage: Removes complexity from the client.  The client can
      almost
      <br>
      hand over the record directly to a resolver (i.e. getaddrinfo on
      Unix).
      <br>
      See (2) for a further issue though.
      <br>
      <br>
      Disadvantage: None that I can see.
      <br>
      <br>
      I believe that this is something that must be changed in the
      <br>
      specification.
      <br>
      <br>
      2) Even with the suggested fix for (1), the string contained in a
      <br>
      NTPv4 Server Negotiation record can not be handed over to
      getaddrinfo
      <br>
      and needs a bit of parsing in the client.  The URI specification
      in
      <br>
      RFC3986 requires IPv6 addresses to be enclosed in brackets which
      <br>
      getaddrinfo is not able to parse.  It's not hard for a client to
      parse
      <br>
      the string and remove the brackets but it is an extra step.
      <br>
      <br>
      Suggestion: Change the specification so that brackets are not
      needed
      <br>
      nor allowed for IPv6 addresses:
      <br>
      <br>
          An IPv4 address using the dotted decimal notation, an IPv6
      address
      <br>
          using the "Text Representation of Addresses" described in
      <br>
          [RFC4291], or an ASCII string with a host name consisting of
      <br>
          A-LABELS separated by periods (".").  The A-LABEL syntax is
      <br>
          specified in [IDNA2008].
      <br>
      <br>
      Advantage: Simplifies the client and allows the contens of a NTPv4
      <br>
      Server Negotiation record to be passed directly to getaddrinfo.
      <br>
      <br>
      Disadvantage: Incompatible with the NTPv4 Server Negotiation
      record
      <br>
      format suggested in (4a).
      <br>
      <br>
      If the suggestion in (4a) is rejected I'd suggest doing this to
      <br>
      simplify the client logic.
      <br>
      <br>
      Note that a client ought to do a bit of sanity checking on the
      host
      <br>
      name anyway just to be on the safe side.  At a minimum it should
      <br>
      check that the record only contains [-.A-Za-z0-9] and that it is
      <br>
      a maximum of 253 characters long.
      <br>
      <br>
      3) Multiple NTPv4 Server Negotiation records are forbidden
      <br>
      <br>
      Since our FPGA_NTP_SERVER speaks both IPv4 and IPv6 we would like
      to
      <br>
      be able to return both an IPv4 and IPv6 address to the NTS/UDP
      server
      <br>
      in the response from the NTSKE server.  A client would ususally
      use
      <br>
      the first address it can handle.  A client which only speaks IPv4
      <br>
      would use the first IPv4 address.  A client which speaks both IPv4
      and
      <br>
      IPv6 might prefer IPv6 with a fallback to IPv4 if it ends up on
      <br>
      network without IPv6 connectivity.
      <br>
      <br>
      Actually, Netnod's use case would need the NTSKE server to be able
      to
      <br>
      return a total of 8 addresses since our FPGA implementation has 4
      <br>
      ports with an IPv4 and an IPv6 addresses for each port. But we are
      a
      <br>
      bit special in our requirements.
      <br>
      <br>
      Unfortunately multiple records are explicitly forbidden by
      draft-15.
      <br>
      <br>
          4.1.7.  NTPv4 Server Negotiation
      <br>
      <br>
          ... Servers MUST NOT send more than one record of this type.
      <br>
      <br>
          ... The client MUST NOT send more than one record of this
      type.
      <br>
      <br>
      I would like to remove this restriction if possible, and allow
      <br>
      multiple NTPv4 Server Negotiation records.
      <br>
      <br>
      Consequences for a server: A server can limit itself to sending
      only
      <br>
      one NTPv4 Server Negotiation record and can ignore any such
      records it
      <br>
      has received.  There will be no complexity gain unless the server
      <br>
      needs it.
      <br>
      <br>
      Consequences for a client: A client will have to be slightly more
      <br>
      complex, with an emphasis on slightly.  It should not be that hard
      for
      <br>
      a client to handle multiple records, it can just use the first
      record
      <br>
      that contains a valid address that the client can handle.  That
      is, a
      <br>
      client which only supports IPv4 should ignore IPv6 addresses
      (starting
      <br>
      with "["), a client which only supports IPv6 should ignore IPv4
      <br>
      addresses (matching IPv4 dotted notation), a client which supports
      <br>
      both can use the first record.  If a host name is found the client
      <br>
      will need to resolve the name using DNS just as before.
      <br>
      <br>
      Advantages: A server can return both IPv4 and IPv6 addresses, and
      can
      <br>
      also return multiple NTP/UDP servers.
      <br>
      <br>
      Disadvantages: Slightly more complex logic in a client.
      <br>
      <br>
      If the restriction of only one NTPv4 Server Negotiation record is
      kept,
      <br>
      it's still possible to solve some of these issues by having using
      <br>
      a host name with a DNS record with multiple A/AAAA records.  But
      it
      <br>
      is an extra step.  Also much too many labs at small and large
      companies
      <br>
      don't have working DNS.  It would be nice if everyone had working
      DNS
      <br>
      but not everyone does.
      <br>
      <br>
      I have not been able to read all of the discussions on NTS, but I
      <br>
      believe that one argument against allowing multiple NTPv4 Server
      <br>
      Negotiation records was a possible Sybil attack.  As long as a
      host
      <br>
      name is allowed in the NTPv4 Server Negotiation Record, the same
      <br>
      Sybil attack would be possible with multiple A/AAAA records in
      DNS.
      <br>
      <br>
      A Sybil attack should not be an issue if the standard adds a
      <br>
      paragraph on how clients should treat multiple records, e.g.
      <br>
      something like this.
      <br>
      <br>
      Note, when a NTSKE server returns multiple IP addresses for the
      <br>
      NTS/UDP servers, either through multiple NTPv4 Server Negotiation
      <br>
      records, or by returning a host name which resolves to multiple
      A/AAAA
      <br>
      records in DNS, the addresses SHOULD be considered as alternate
      <br>
      addresses for the same server, not as independent servers.  The
      <br>
      intended use of multiple records, is for a single server which
      uses
      <br>
      multiple transports such as IPv4 and IPv6 or when a server which
      has
      <br>
      multiple  IP addresses for load balancing and/or failover
      purposes.  A
      <br>
      client should normally select one of the addresses from the
      response and
      <br>
      keep using it forever.  A client can save the list of addresses
      and
      <br>
      switch to a different address as a fallback in case that currently
      used
      <br>
      address becomes unreachable, for example if the client is using an
      IPv6
      <br>
      address and loses IPv6 connectivity or if one of the ports on the
      <br>
      server stop working.
      <br>
      <br>
      4) If multiple records are allowed, it will be a bit unclear which
      <br>
      NTPv4 Port Negotation record corresponds to each NTPv4 Server
      <br>
      Negotiation record.
      <br>
      <br>
      Suggestion: drop the NTPv4 Port Negotation record from the
      standard
      <br>
      move the port number into the NTPv4 Server Negotiation record.
      <br>
      <br>
      4a) Encode the port number with a colon similar to how it is done
      in a
      <br>
      URI.  For example:
      <br>
      <br>
          79.99.1.121:123
      <br>
          [2a02:750:7::817]:123
      <br>
          xn--rksmrgs-5wao1o.se:123
      <br>
      <br>
      Note that it will not be possible to implement the suggestion in
      (2)
      <br>
      with this suggestion since an address such as 2a02:750:7::817:123
      is
      <br>
      ambiguous and will probably be interpreted as an IPv6 address
      ending
      <br>
      with ":817:123".  The brackets are needed to disambiguate this
      case.
      <br>
      <br>
      Advantage: Nice and human readable.  Easy to put the literal
      string in
      <br>
      a config file.  Extensible to other addressing schemes.
      <br>
      <br>
      Disadvantage: Requires a bit of parsing on the client side to
      extract
      <br>
      the host and port parts.
      <br>
      <br>
      4b) Encode the port number in the two first bytes of the record
      and
      <br>
      the server in the remaining space:
      <br>
      <br>
             0                   1
      <br>
             0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            |             Port              |
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            |                               |
      <br>
            |   Server padded with up to 3  |
      <br>
            |   octets of 0.                |
      <br>
            |                               |
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
      <br>
      Advantage: The port number uses a binary encoding and can be read
      <br>
      directly from the field without any parsing.  If the suggestion in
      (2)
      <br>
      is implemented the server part can be passed directly to
      getaddrinfo
      <br>
      to resolve the server address.
      <br>
      <br>
      Disadvantage: This will limit the port number to 16 bits, which is
      not
      <br>
      a problem for IPv4 or IPv6.  Do we have to care about some
      <br>
      hypothetical future protocol that would require more bits in the
      port
      <br>
      number?  (Note that if this is a proble, we already have this
      problem
      <br>
      with the existing NTPv4 Port Negotiation record).
      <br>
      <br>
      4c) Make the encoding explicit by adding a protocol identifier at
      the
      <br>
      start of the NTPv4 Server Negotiation record:
      <br>
      <br>
             0                   1
      <br>
             0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            | Procotol (numeric values TBD) |
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            |                               |
      <br>
            |  Protocol specific encoding   |
      <br>
            |  of server address            |
      <br>
            |                               |
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
      <br>
      for example, an IPv4 address would be encoded like this:
      <br>
      <br>
             0                   1
      <br>
             0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            | Proto=IPv4 (numeric value TBD)|
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            |    Port (2 octets)            |
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            |   4 octets of IPv4 address    |
      <br>
            |                               |
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
      <br>
      an IPv6 like this:
      <br>
      <br>
             0                   1
      <br>
             0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            | Proto=IPv6 (numeric value TBD)|
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            |    Port (2 octets)            |
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            |   16 octets of IPv6 address   |
      <br>
            |                               |
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
      <br>
      a host name which should be looked up via DNS:
      <br>
      <br>
             0                   1
      <br>
             0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            | Proto=DNS (numeric value TBD) |
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            |    Port (2 octets)            |
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            |   N octets of A-LABEL padded  |
      <br>
            |    with up to 3 zero octets   |
      <br>
            |                               |
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
      <br>
      some future protocol which uses a 32 byte UUID to identify the
      server:
      <br>
      <br>
             0                   1
      <br>
             0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            | Proto=Future (value TBD)      |
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
            |    32 bytes UIID              |
      <br>
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      <br>
      <br>
      Advantage: Everything is explicit.  No parsing needed, IPv4 and
      IPv6
      <br>
      addresses can be used to fill in a sockaddr_in or sockaddr_in6
      <br>
      structure directly.
      <br>
      <br>
      Disadvantage: I feel this is a bit too complex and overdesigned. 
      We'd
      <br>
      have to decide on a numbering scheme for the protocols. (Could we
      <br>
      reuse some existing list of protocols?)
      <br>
      <br>
      4d) Keep the NTPv4 Server Negotiation record and NTPv4 Port
      <br>
      Negotiation record separate, but define an order for the records.
      <br>
      <br>
      For example the following wording could work:
      <br>
      <br>
          The port specified in NTPv4 Port Negotiation record applies to
      all
      <br>
          NTPv4 Server Negotiation records that follow it.  If no NTPv4
      Port
      <br>
          Negotiation records are provided, the client should default to
      the
      <br>
          NTS port (currently the same as for NTP, 123).  If no NTPv4
      Server
      <br>
          Negotiation records are provided the client should fall back
      to
      <br>
          using the same IP address as the NTSKE server.
      <br>
      <br>
      and some Python-like pseudocode to select the first NTPv4 Server
      <br>
      Negotiation record that the client can use:
      <br>
      <br>
          server = None
      <br>
          port = 123   # default port
      <br>
      <br>
          for record in ntske_session.records:
      <br>
              if record.type == NTPv4_Port_Negotiation:
      <br>
                  port = unpack_big_endian_16bits(record.body)
      <br>
              elif record.type == NTPv4_Server_Negotiation:
      <br>
                  if is_ipv4_address(record.body):
      <br>
                      if ipv4_supported:
      <br>
                          server = (parse_ipv4_address(record.body),
      port)
      <br>
                          break
      <br>
                  elif is_ipv6_address(record.body):
      <br>
                      if ipv6_supported:
      <br>
                          server = (parse_ipv6_address(record.body),
      port)
      <br>
                          break
      <br>
                  else:
      <br>
                      tmp = resolve_address(record.body)
      <br>
                      if tmp:
      <br>
                          server = (tmp, port)
      <br>
                          break
      <br>
      <br>
          if server is None:
      <br>
              servers = ( ntske_host, port )
      <br>
      <br>
      Advantage: Fairly easy to implement.
      <br>
      <br>
      Disavantage: Slightly more complex logic than if the port number
      is
      <br>
      part of the NTPv4 Server Negotiation record.
      <br>
      <br>
      4e) Ignore the problem.  All servers must use the same port, only
      <br>
      allow one NTPv4 Port Negotiation record.
      <br>
      <br>
      Advantage: Easy to implement.
      <br>
      <br>
      Disavantage: Not flexible.  But realistically very few people
      <br>
      will need multiple NTS/UDP servers at different ports. The servers
      <br>
      will need to share master keys, and will probably use the same
      NTS/UDP
      <br>
      implementation, so there is probably no reasonable reason to why
      they
      <br>
      should use different ports.
      <br>
      <br>
      Right now I'm leaning towards implementing suggestion (1), (2) and
      <br>
      (4d), mostly because they involve as few changes to the draft as
      <br>
      possible.  Otherwise implementing (1) (2) and (4b), or (1) and
      (4a)
      <br>
      would be my preferred choices.  The only one I feel is really
      important
      <br>
      though is to fix the issue in (1).
      <br>
      <br>
      What do you think?
      <br>
      <br>
      Regards,
      <br>
        Christer
      <br>
      <br>
      _______________________________________________
      <br>
      ntp mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:ntp@ietf.org">ntp@ietf.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="https://www.ietf.org/mailman/listinfo/ntp">https://www.ietf.org/mailman/listinfo/ntp</a>
      <br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Martin Langer, M.Eng.
Ostfalia Hochschule für angewandte Wissenschaften 
- Hochschule Braunschweig/Wolfenbüttel
University of Applied Sciences

Labor Datentechnik, Labor Design Digitaler Systeme
Fakultät Elektrotechnik
Salzdahlumer Straße 46/48
38302 Wolfenbüttel
Germany

Tel. : +49 5331 939 43370
Web  : <a class="moz-txt-link-freetext" href="https://www.ostfalia.de/cms/de/pws/bermbach/mitarbeiter/martin-langer">https://www.ostfalia.de/cms/de/pws/bermbach/mitarbeiter/martin-langer</a>
</pre>
  </body>
</html>

--Boundary_(ID_xcqAWMtWn8rLHqZvVuExgg)--


From nobody Fri Feb  8 10:31:26 2019
Return-Path: <internet-drafts@ietf.org>
X-Original-To: ntp@ietf.org
Delivered-To: ntp@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 107071228B7; Fri,  8 Feb 2019 10:31:18 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: <i-d-announce@ietf.org>
Cc: ntp@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 6.91.0
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: ntp@ietf.org
Message-ID: <154965067799.31223.7015446786803413383@ietfa.amsl.com>
Date: Fri, 08 Feb 2019 10:31:18 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/vcch268b5srGEXe2YFdzEc4Q5iM>
Subject: [Ntp] I-D Action: draft-ietf-ntp-using-nts-for-ntp-16.txt
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
List-Id: <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: Fri, 08 Feb 2019 18:31:18 -0000

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Network Time Protocol WG of the IETF.

        Title           : Network Time Security for the Network Time Protocol
        Authors         : Daniel Fox Franke
                          Dieter Sibold
                          Kristof Teichel
                          Marcus Dansarie
                          Ragnar Sundblad
	Filename        : draft-ietf-ntp-using-nts-for-ntp-16.txt
	Pages           : 39
	Date            : 2019-02-08

Abstract:
   This memo specifies Network Time Security (NTS), a mechanism for
   using Transport Layer Security (TLS) and Authenticated Encryption
   with Associated Data (AEAD) to provide cryptographic security for the
   client-server mode of the Network Time Protocol (NTP).

   NTS is structured as a suite of two loosely coupled sub-protocols.
   The first (NTS-KE) handles initial authentication and key
   establishment over TLS.  The second handles encryption and
   authentication during NTP time synchronization via extension fields
   in the NTP packets, and holds all required state only on the client
   via opaque cookies.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ietf-ntp-using-nts-for-ntp/

There are also htmlized versions available at:
https://tools.ietf.org/html/draft-ietf-ntp-using-nts-for-ntp-16
https://datatracker.ietf.org/doc/html/draft-ietf-ntp-using-nts-for-ntp-16

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-ietf-ntp-using-nts-for-ntp-16


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/


From nobody Fri Feb  8 14:12:37 2019
Return-Path: <aanchal4@bu.edu>
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 45197130FFA for <ntp@ietfa.amsl.com>; Fri,  8 Feb 2019 14:12:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.198
X-Spam-Level: 
X-Spam-Status: No, score=-4.198 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qqBULltu4mkg for <ntp@ietfa.amsl.com>; Fri,  8 Feb 2019 14:12:33 -0800 (PST)
Received: from relay74.bu.edu (relay74.bu.edu [128.197.228.174]) (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 A79E5129A85 for <ntp@ietf.org>; Fri,  8 Feb 2019 14:12:33 -0800 (PST)
X-Envelope-From: aanchal4@bu.edu
Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay74.bu.edu (8.14.3/8.14.3) with ESMTP id x18MCAFF000506 for <ntp@ietf.org>; Fri, 8 Feb 2019 17:12:11 -0500
Received: by mail-lj1-f200.google.com with SMTP id t7-v6so1357772ljg.9 for <ntp@ietf.org>; Fri, 08 Feb 2019 14:12:11 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ULjJiudlKzptIqJcqXH6V6WmOFJFHbj2gwAlvrkS5eU=; b=NPMfnOVcpR/7meBqnRtcruoG8jvvTELiPzLL9VLmiE9dW2MFjLIWGkTgnyghGJB9OT Jzb7ZwYZN/pFm90KBYa4POJkuNHqWNOtKeaC8iOXbB/GqtRqw6W66nwYfDBVoDG9nGAh cAJva+vQnBpkJ6em7KvepM/w2SlW7Mr92P4jXhIcaVK7TTWuYgIr/hAgMq/SDVVW74cv EzccGZH0e6/avk+sJwsLm0PAFccoOSZeSZSZuA+SMSUgRyZXiOt59Uu5rG6y5AC0P9Z7 61k1V6NWlzulw/RaqMQg+s/koOw7Eun/BADpcHelVDTnvXRF1xuBixExkVO7pL8GEy+x bp+Q==
X-Gm-Message-State: AHQUAuY3Rhc8cjd4IQ/uSpBSlbRstrIBGh7xhkB5Nz98G4xduXPV0pe/ wvIt3nV160wHcISFfGr9yY3MjaNJ9I55UdY2zMFF+O3y06kmMa8oXYfDe9jkvLpsBz/oJbxfqEZ fKrS0sSHsG2zdExau4Y3C
X-Received: by 2002:a19:2584:: with SMTP id l126mr14861865lfl.69.1549663930064;  Fri, 08 Feb 2019 14:12:10 -0800 (PST)
X-Google-Smtp-Source: AHgI3IZxdutTDp9f8HhluasakzFR6m2auXTTx0Mr0gMW58G/x7QbY86nnvin/yJ+JpoJ82fsWvCi64tIR9LEfXG3ScQ=
X-Received: by 2002:a19:2584:: with SMTP id l126mr14861851lfl.69.1549663929653;  Fri, 08 Feb 2019 14:12:09 -0800 (PST)
MIME-Version: 1.0
From: Aanchal Malhotra <aanchal4@bu.edu>
Date: Fri, 8 Feb 2019 14:11:58 -0800
Message-ID: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com>
To: ntp@ietf.org, ntp-chairs@ietf.org
Content-Type: multipart/alternative; boundary="0000000000000c808205816940e9"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/FyeCVBjgNbeD3Cq8aE0y5QuEmkk>
Subject: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Fri, 08 Feb 2019 22:12:35 -0000

--0000000000000c808205816940e9
Content-Type: text/plain; charset="UTF-8"

Hi All,

We have put together a draft for Roughtime. We encourage folks here to have
a look at the draft and see if they think that there is a value in
adopting/implementing it and would be interested to do so.

 https://tools.ietf.org/html/draft-roughtime-aanchal-00

Best,
Aanchal.

--0000000000000c808205816940e9
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi All,<div><br></div><div>We have put together a draft fo=
r Roughtime. We encourage folks here to have a look at the draft and see if=
 they think that there is a value in adopting/implementing it and would be =
interested to do so.</div><div><br></div><div>=C2=A0<a href=3D"https://tool=
s.ietf.org/html/draft-roughtime-aanchal-00" rel=3D"noreferrer" target=3D"_b=
lank">https://tools.ietf.org/html/draft-roughtime-aanchal-00</a><br></div><=
div><br></div><div>Best,</div><div>Aanchal.</div><div><br></div><div><br></=
div></div>

--0000000000000c808205816940e9--


From nobody Fri Feb  8 14:35:44 2019
Return-Path: <ietf-secretariat-reply@ietf.org>
X-Original-To: ntp@ietf.org
Delivered-To: ntp@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 2E340131023; Fri,  8 Feb 2019 14:35:42 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: IETF Secretariat <ietf-secretariat-reply@ietf.org>
To: <ntp-chairs@ietf.org>, <draft-roughtime-aanchal@ietf.org>, <ntp@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 6.91.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <154966534218.31168.1133872829133812830.idtracker@ietfa.amsl.com>
Date: Fri, 08 Feb 2019 14:35:42 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/LpW7UmWWPrVDpB8Y9hF9dDnek40>
Subject: [Ntp] The NTP WG has placed draft-roughtime-aanchal in state "Candidate for WG Adoption"
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
List-Id: <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: Fri, 08 Feb 2019 22:35:42 -0000

The NTP WG has placed draft-roughtime-aanchal in state
Candidate for WG Adoption (entered by Karen O'Donoghue)

The document is available at
https://datatracker.ietf.org/doc/draft-roughtime-aanchal/

Comment:
Marking this as a candidate for adoption so that it shows up as of interest
to the ntp working group. Still need to consider how to proceed with it.


From nobody Fri Feb  8 14:48:32 2019
Return-Path: <dfoxfranke@gmail.com>
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 732A2130EBA; Fri,  8 Feb 2019 14:48:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CMtjEXTqz9FL; Fri,  8 Feb 2019 14:48:28 -0800 (PST)
Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 43BD3130EB2; Fri,  8 Feb 2019 14:48:28 -0800 (PST)
Received: by mail-qk1-x72b.google.com with SMTP id w204so3153083qka.2; Fri, 08 Feb 2019 14:48:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5LmPkJUaUqxqz/naN9lnjBMruzBSj1noYcp24ErSq80=; b=cGu//ZJ3SPaXnnOkGUu+834WUfBwSREaeg4+xzsJ/bWONCVgQzW5WYAMcByfvToCRw 1boSiLQ+tKa/31vQSBvh2flqcrYqdcjiaMP6faUbNQU9yv5g+AwC8URtySNDYkCJ4cUN jh+k2OdfEdjaFpxxEC3Eef8E3Z5ZrWP8EDxsg2L2H8Ol0SoFpuY/8nJIQCD3iT3nBdSR 4CE6X8bOPYzHxm1+nFp3saZdDYIB3xctfuZHjuR8tf0IkLrWknRvCSdkqhfByQ8rxcd9 Ca9+Ry4LwEqIapR80bOQ+Lr9PsYwt4n22xhl5zIyyaMUBFZuaLmwmjBXxwB/g75gWjS0 z0sg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5LmPkJUaUqxqz/naN9lnjBMruzBSj1noYcp24ErSq80=; b=ABbug4hQXCP4bV0wc9Zq8zb7uyn5kb5OBHRwlvEyyzxdo85RmQr7Um78yeJ0Dxw/T1 aFJEKf0y7GBLsfQrhKZziadUWU83W25BmhUdyWf2WACl0dOnbJZIsxdCC104NWxWCTJK i4xkkz1kR2Z3A0DWJ+xjoyC1I4yTTSL4ufKT8unJTG0tjmKiLNK3Mw6TkJewslr2G1+8 Af/Vxh5k2iVkcxg5rbiJdRDlfoRb8yg8lPOiBuv4Xt23P4qwXtj7gv9T6hG7tHyk6HNS cnfgJf2KsXJMqYtd5x3cucRl7vWwaIHbRQlIiTjPiPgkCtiHijVknXtMmfhCWyQxOD7v 2gxg==
X-Gm-Message-State: AHQUAuZJlBDBiG+GyijneIxH6Zu4+fJAuBXfjGLG4pZtWg9MjvAnPS6o W+/ZR8/Y2vyFagHURRylaiyDHnBsZGeSx5cx7DA=
X-Google-Smtp-Source: AHgI3IZmAoLh68V5mHpqYIe1u21tlLoBFp+B4Vr8riAq664MickS1LgHcChPJCFaQ/hWIV7BWMufXGgyc/3CfRlM2BQ=
X-Received: by 2002:a37:c38b:: with SMTP id r11mr7708129qkl.159.1549666105908;  Fri, 08 Feb 2019 14:48:25 -0800 (PST)
MIME-Version: 1.0
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com>
In-Reply-To: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com>
From: Daniel Franke <dfoxfranke@gmail.com>
Date: Fri, 8 Feb 2019 17:48:14 -0500
Message-ID: <CAJm83bARWr_z=Jp7yO+CFYzjJd-Sj5BJrFY_tOaKyR+3nxZCWg@mail.gmail.com>
To: Aanchal Malhotra <aanchal4@bu.edu>
Cc: ntp@ietf.org, ntp-chairs@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/bjXiApwFalwW62vBfcsS6XGC0Ao>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Fri, 08 Feb 2019 22:48:31 -0000

I think we can do better than to send smeared time on the wire. Let
timestamps be TAI-based, and let each response contain, in addition to
the timestamp, the most-recently-published leap second (which could be
in the past or could be in the future). Data for a leap second
consists of a sequence number, a bit indicating whether it is an
insertion or a deletion, the TAI time at which the leap second ends,
and what the TAI-UTC offset will be after the leap second has elapsed.
Also provide separate message types for querying and communicating
historical leap seconds.

This will allow clients to decide as a matter of policy how and
whether to smear, rather than baking the decision into protocol
mechanism. Furthermore, it creates a malfeasance-evident mechanism for
distribution of leap second data, thus filling what is presently a
void.

On Fri, Feb 8, 2019 at 5:12 PM Aanchal Malhotra <aanchal4@bu.edu> wrote:
>
> Hi All,
>
> We have put together a draft for Roughtime. We encourage folks here to have a look at the draft and see if they think that there is a value in adopting/implementing it and would be interested to do so.
>
>  https://tools.ietf.org/html/draft-roughtime-aanchal-00
>
> Best,
> Aanchal.
>
>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp


From nobody Fri Feb  8 15:29:07 2019
Return-Path: <gem@rellim.com>
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 1ADD5130E6F; Fri,  8 Feb 2019 15:29:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.207
X-Spam-Level: 
X-Spam-Status: No, score=-1.207 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RDNS_NONE=0.793, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rellim.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S4XvTd8WeOvu; Fri,  8 Feb 2019 15:29:04 -0800 (PST)
Received: from mail.rellim.com (unknown [IPv6:2001:470:e815::19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A8C1812D4EC; Fri,  8 Feb 2019 15:29:04 -0800 (PST)
Received: from spidey.rellim.com (dave.rellim.com [IPv6:2001:470:e815:0:0:0:0:19] (may be forged)) (authenticated bits=0) by mail.rellim.com (8.15.2/8.15.2) with ESMTPSA id x18NSsaQ023260 (version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 8 Feb 2019 15:28:59 -0800
DKIM-Filter: OpenDKIM Filter v2.10.3 mail.rellim.com x18NSsaQ023260
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong; t=1549668540; bh=dZl+XiYMMHDZqr5J2veGJA9jv1g78yicQmmQJSmR/wI=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=cGk5FYhWMhxX/TAbvG+oBV1NZaH0xthaELBXefIdva+UgmAcEmbkaZN4ljXs/psG8 IFyxnX6E9wENe5CcMXU5f1E+aaJwg+yWGJCDZbFwGRWcsuMbEyAOnXewRvZO2fUfE0 bn6eJg+rNyy2DxMwXoROZHLVozUurTA9E87AJAf4=
Date: Fri, 8 Feb 2019 15:28:53 -0800
From: "Gary E. Miller" <gem@rellim.com>
To: Daniel Franke <dfoxfranke@gmail.com>
Cc: Aanchal Malhotra <aanchal4@bu.edu>, ntp-chairs@ietf.org, ntp@ietf.org
Message-ID: <20190208152853.6218462d@spidey.rellim.com>
In-Reply-To: <CAJm83bARWr_z=Jp7yO+CFYzjJd-Sj5BJrFY_tOaKyR+3nxZCWg@mail.gmail.com>
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com> <CAJm83bARWr_z=Jp7yO+CFYzjJd-Sj5BJrFY_tOaKyR+3nxZCWg@mail.gmail.com>
Organization: Rellim
X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/HKI4dM9/DxpjuH8GorSRr1R"; protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]); Fri, 08 Feb 2019 15:29:00 -0800 (PST)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/LZl4FDfpKL7bYmSlTrzvQ5DP9uE>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Fri, 08 Feb 2019 23:29:06 -0000

--Sig_/HKI4dM9/DxpjuH8GorSRr1R
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Yo Daniel!

On Fri, 8 Feb 2019 17:48:14 -0500
Daniel Franke <dfoxfranke@gmail.com> wrote:

> I think we can do better than to send smeared time on the wire. Let
> timestamps be TAI-based, and let each response contain, in addition to
> the timestamp, the most-recently-published leap second (which could be
> in the past or could be in the future).

+1. =20

Having NTP serve smeared time has already caused big problems.

Confine that mess to the client.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can=E2=80=99t measure it, you can=E2=80=99t improve it." - Lord=
 Kelvin

--Sig_/HKI4dM9/DxpjuH8GorSRr1R
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIzBAEBCgAdFiEEDImNR/2vUKZZKLG0LmvF3i7oaj4FAlxeELUACgkQLmvF3i7o
aj4HcA//UMYOl2ArEQw0xAbnSXeoRoWTfk0jQwj7pZFw7P6wOnWnchlKKG9vsLcs
QwbHq/ba752WXcBVX1kfj7mOROSPqsoUlCS9qzI0J5u2j2a1bTgXmp5Z8aGp0wm3
ql+7TB/ZCeNzGfDeEEKFepGoeS4bC875Awzwgr5bCL8i4358P42zA2bcHKq8TeFJ
kGfVI6zk+A/xIJBwCci8jPgCWpawEQZ7sdM+da5Qz0uMZdMGRwHh0UU44DnyQSnf
ePLayKjhw6+HrwVDEzaY8juzJ+MdzOvwRSey2uxMXN3NvIrp+obBjaAoYPrUrDpZ
hAn7n19LxcBMsnryA2XDqsFscw0A08H7RVmakOipEpRvfjjC+nwWuTuh7QrPDMFZ
JqreGIjtkhnoJUVCjp8baBE6hAgHqQZec41eU96yeY7DmQ4NG9SK/skbGQWEARv6
m43YSUppi7foEpjAMpHm1b3MjCjWL/ZZQE6GnsZHuiRa4bPcSz3mmGbBb/o6uK6G
l7eONvsQKSFaO5p8/qcnYaIlPdDKbS+aNZ6Y1TWA/vmDWuc9E9DgarLTriIaZNft
5N3ezBUulwFbSyfjb5PUf/LidT46arG/fglQI0fhmHCQfYCI8WCREUOf39LeotaW
5QO/jbRtJ0iqFOomFVnbKuN1eV25X1iAlPkNwep+kK7zDs45XIg=
=UZ+/
-----END PGP SIGNATURE-----

--Sig_/HKI4dM9/DxpjuH8GorSRr1R--


From nobody Sun Feb 10 05:11:34 2019
Return-Path: <marcus.dansarie.nilsson@gmail.com>
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 56C10128D52 for <ntp@ietfa.amsl.com>; Sun, 10 Feb 2019 05:11:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.881
X-Spam-Level: 
X-Spam-Status: No, score=-1.881 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.018, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0-y3-QDdd8dH for <ntp@ietfa.amsl.com>; Sun, 10 Feb 2019 05:11:30 -0800 (PST)
Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E59A9126F72 for <ntp@ietf.org>; Sun, 10 Feb 2019 05:11:29 -0800 (PST)
Received: by mail-lj1-x22d.google.com with SMTP id z25-v6so6590659ljk.7 for <ntp@ietf.org>; Sun, 10 Feb 2019 05:11:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=sender:subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=htSiMMZeHMbiOU+nnRLt4jjrP7MZ9N+DJd5/XVWn5CA=; b=dfq0JvTUvwRpFWV06FluTacMiHLz976vPZzyBKjGX8N48d8wTz9xh1Qk/1Rlm4I3H1 Up6RAezDdXtag1rphfah+azWpSkdenhDziz8rTuWz8K5dzV9AWEpuD80186LkrXMP9bi 1wP39othWF2DwIpUzI4AUh/l+zPxIT6hixeS1GslVxn/XKOj2AMtEKZjsgCH+lIvctC9 thfDdEXhLox16TjkDjOBKT9b9PnI+400uV7gUWgDrU4z13uH9Me+ty1XfaW4md78nn3F /rmC+JkD83hMWWn0t9Kk5Wq6p5qUPMyDr74vXnEfLBmmjSrNbmQdSAsWJYwCs96Dv8k0 L9YA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:openpgp :autocrypt:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=htSiMMZeHMbiOU+nnRLt4jjrP7MZ9N+DJd5/XVWn5CA=; b=uAzHvMPMwnczq4KDJHx6bwJlAE9QB87WGKrza/4skMfBDTJpJLVINWniuyF6zz9FBx bN6SVREWmajqpwS9DyjCfPeGca+wNG5xEpuwe8+tj70N/Ga4BwwnQhDg95pdbTX2fhvQ XU1iRcbTKqDTfWYSBHatim+RFPDfVUtSvSMXP0odwqrfUfQAwthxUCNJAkE5kQPtGDN8 GW+RVY6Vd3/4egL5StnXEeu11j0Lmck7/Km0reWIPsbcXtBzOVj2qV+Pww/6D6m0QpG6 /RQ9LvSSzFlqS+ehK7/Zy8Tolg7/9E/nRcSppjtFaMrkUBkbxKXHZd57ENZI9rGdaL/3 HR5A==
X-Gm-Message-State: AHQUAubzvD3R73TVXcHyEJ7aLUw24WumBrg8Vqr6GyQlAszWi2hkhEA6 9pG0J78+So1idYjo/X2ZabVRVgsr
X-Google-Smtp-Source: AHgI3IbmM+ILJHs8/ulnMEl0wwCG6qAhzo9MkFYOUXS03ZX53UB8q35lc2o/9a0qYkzdEhlaRN2kdw==
X-Received: by 2002:a2e:9d8e:: with SMTP id c14-v6mr19983405ljj.146.1549804287379;  Sun, 10 Feb 2019 05:11:27 -0800 (PST)
Received: from [10.0.0.126] ([185.40.184.26]) by smtp.gmail.com with ESMTPSA id h22-v6sm1547605ljg.24.2019.02.10.05.11.26 for <ntp@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Feb 2019 05:11:26 -0800 (PST)
Sender: Marcus Dansarie <marcus.dansarie.nilsson@gmail.com>
To: ntp@ietf.org
References: <c8a0a1f6-21f5-e79a-ed03-1e7f5f32bb8d@netnod.se> <fe843443-92d3-08e8-a584-2a362bd2386c@ostfalia.de>
From: Marcus Dansarie <marcus@dansarie.se>
Openpgp: preference=signencrypt
Autocrypt: addr=marcus@dansarie.se; prefer-encrypt=mutual; keydata= mQINBFawEn4BEAC8YukDy8f3eczlE8WAcuctrjsNltPCLZDzcj3vBmiayXlXuPULOopqeuw4 +oaZqj4KqvdFBA1mzvwPll7IHePuwAoJYJr48IbIXc9MRjtLoFtd0KnhiVPUS8F2cmfzSJ8E FEv92sz6UT8/tlLEu6sNqr6/caYUivspuW5wf4f6nkSE+6rao9Nx9X03r289IPNBSZv+Y/Ym jWHDPpbT8WLUJZ+A8RsW/1oza609oAzqTkclmnRzip8wZZWNg3Q55P7onBmTIOrEz13My9r5 DWCMHyxXgFL1RJ9YW0t4yRkRm+HvOn3Vesk3m8CCGA6esHV0IPZmBOxJr3l+UQYuDiTgFufr WMpu5MvlyKGHS4fNd505DyyJY2G6eQLLrOq3nZy4qoZSL42TMxzYglexg+H6P/YsIIShk5Ch h/hNphXjrElDWhbGT5JiRWIivgSj/gq5QVBbDLR3b25n9PA0byGemfcEHLkii6EKyH7GW6v9 sgmvCmPfEfppYcOP2g9Jdt8RPitx0UBjoCzWAn0Py0NvlFDyz0FQhWDPig3yo1CG5ljb686v VBwcHJthczUV0rIyVzfmnikIb9ZjydHSX3fFwLz1IcIIX+INS58qA0SDqOoyP2WTYGZCDPVw GMMh+wMtAL2MICTr6vybFWB58m4PsI1j8Ri+AQiEkxyJauI2WQARAQABtCRNYXJjdXMgRGFu c2FyaWUgPG1hcmN1c0BkYW5zYXJpZS5zZT6JAlwEEwEIAEYCGwMCHgECF4ACGQEJCwkNCAwH CwoEBhUKCQgLAgUWAwIBABYhBBfkVFb0H62SH33Csy9j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slzlvhrmI90XcKAyHrukdnanS+gle61a44uFwtUGPTvCtSW4AQLR1uixc8 qaHsQNmXpQQOIt6nudcOCisXa1c6P/WU8I94u9BmCjTWRQ==
Message-ID: <a1d309a7-13be-2257-2e0e-629c9ef24120@dansarie.se>
Date: Sun, 10 Feb 2019 14:11:25 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
MIME-Version: 1.0
In-Reply-To: <fe843443-92d3-08e8-a584-2a362bd2386c@ostfalia.de>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/MVl3O0Rwk98wXB6SNx2WHebvsNs>
Subject: Re: [Ntp] NTPv4 Server/Port Negotiation records in NTS
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Sun, 10 Feb 2019 13:11:33 -0000

On 2019-02-08 17:01, Martin Langer wrote:
> On the subject of the server negotiation:
> If the KE server supplies multiple time servers, it is currently
> necessary to ensure that these
> servers support the cookies. This means that all servers must use the
> same MasterKey.

No, not as I see it. This is first of all an implementation issue and
there's nothing in the draft that requires this.

Most NTS-KE servers will send a NTPv4 Server Negotiation record with the
initial cookies. This record indicates which NTP server the cookies will
work with. It is entirely possible for an NTS-KE server to handle
several master keys. This will, for example, be necessary in pool
configurations where there is no trust between operators of the NTP
servers in the pool.

In some configurations, such as the anycast configuration used by
ntp.se, this will require special handling, but that's up to the
operator(s) of the servers and software implementors to handle.

In a more extreme case, the actual data format of the cookies sent by an
NTS-KE server may be different for cookies meant for different NTP servers.

Kind regards,
Marcus


From nobody Sun Feb 10 13:07:45 2019
Return-Path: <marcus.dansarie.nilsson@gmail.com>
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 57A9C1279E6 for <ntp@ietfa.amsl.com>; Sun, 10 Feb 2019 13:07:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.881
X-Spam-Level: 
X-Spam-Status: No, score=-1.881 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.018, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Yhlg0lfb33L0 for <ntp@ietfa.amsl.com>; Sun, 10 Feb 2019 13:07:39 -0800 (PST)
Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1E3091277D2 for <ntp@ietf.org>; Sun, 10 Feb 2019 13:07:39 -0800 (PST)
Received: by mail-lj1-x231.google.com with SMTP id v12-v6so2426879ljc.6 for <ntp@ietf.org>; Sun, 10 Feb 2019 13:07:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=sender:subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to; bh=asBLAiVfjRkjI9dQSp6/MxyrkFVSpELUNmQaKeSGMEA=; b=LkcyMITex2eSm5LmL1WMLS8Je72ugZffdMnizCjGEZGdggqytr+x+gzEWXVkDy8ZmM gkSwjnCGbFhNnygiX5AUb28Na7QczW9RvFu5GnH8QuUpOe5aoEkfagvaJVxkpkMrU1Yj 8ced1wBKxFR2X2KZwfBMQ5/1rEJ2iedUx+hSRlaWmDhu5qY7qev01iTxluH5L8fy3BUp OMTu0aJkiOl88GijuIVlZhzPaW7dc1hE2Rq/lZRBBfWS9rzT3CmIPyQOW2TCBE+2rArn iYyg912mKbVDNa03zDBva4u10AAIGDETrUNv3XpTlcJwwA7zGnn5PRj++dOm6m0xwW61 q7Ng==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:openpgp :autocrypt:message-id:date:user-agent:mime-version:in-reply-to; bh=asBLAiVfjRkjI9dQSp6/MxyrkFVSpELUNmQaKeSGMEA=; b=a65UDA5SpQTYgaIBxYR36NKBNwXDy7+XVuUJKUosnAUgH24dL1ZaOfG4FZy4G1gNEs 3q67KWsJwUXNUI2M43G5bCPD5MSpvssKxJjnCMkSYWPhnWiJJbbYmORoymvX3l1kR3JZ vPKfAJDE7b9VrtDsyJdgUbrpFz7prPcvhhF4kjsa35Dxa6JI6c2HR56wZb/kD8b9cLt6 nAN/p1cyjwUJWTNE2xu+84whef58CxJG27yv74Lt1OAIrtg0NtlBo/8H2eqQPQpj8L3C OwZnuPjydAIGZ26YxW3f+irDp7r6Mo7f1qDwHzjPRJc5ZlhAYdnYrzz4heIdXqPBDYVJ ElOA==
X-Gm-Message-State: AHQUAubXOJODgW23OlrbcnFlcS5JQiSiLxHZyA/hA3ratm6Oxg87z9/s tj44RD2y+vI1oQDyH6bgK2SY4ntE
X-Google-Smtp-Source: AHgI3IbyPzLIyvyKiA/USsjjIpLMGiyHXfqBfQK9ded0eJdvzJFPijewwAS6qZvR/db9PqaFcHhs7Q==
X-Received: by 2002:a2e:96c9:: with SMTP id d9-v6mr4886659ljj.105.1549832856626;  Sun, 10 Feb 2019 13:07:36 -0800 (PST)
Received: from [10.0.0.126] ([185.40.184.26]) by smtp.gmail.com with ESMTPSA id c22sm2012750lfi.27.2019.02.10.13.07.35 for <ntp@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Feb 2019 13:07:35 -0800 (PST)
Sender: Marcus Dansarie <marcus.dansarie.nilsson@gmail.com>
To: ntp@ietf.org
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com>
From: Marcus Dansarie <marcus@dansarie.se>
Openpgp: preference=signencrypt
Autocrypt: addr=marcus@dansarie.se; prefer-encrypt=mutual; keydata= mQINBFawEn4BEAC8YukDy8f3eczlE8WAcuctrjsNltPCLZDzcj3vBmiayXlXuPULOopqeuw4 +oaZqj4KqvdFBA1mzvwPll7IHePuwAoJYJr48IbIXc9MRjtLoFtd0KnhiVPUS8F2cmfzSJ8E FEv92sz6UT8/tlLEu6sNqr6/caYUivspuW5wf4f6nkSE+6rao9Nx9X03r289IPNBSZv+Y/Ym jWHDPpbT8WLUJZ+A8RsW/1oza609oAzqTkclmnRzip8wZZWNg3Q55P7onBmTIOrEz13My9r5 DWCMHyxXgFL1RJ9YW0t4yRkRm+HvOn3Vesk3m8CCGA6esHV0IPZmBOxJr3l+UQYuDiTgFufr WMpu5MvlyKGHS4fNd505DyyJY2G6eQLLrOq3nZy4qoZSL42TMxzYglexg+H6P/YsIIShk5Ch h/hNphXjrElDWhbGT5JiRWIivgSj/gq5QVBbDLR3b25n9PA0byGemfcEHLkii6EKyH7GW6v9 sgmvCmPfEfppYcOP2g9Jdt8RPitx0UBjoCzWAn0Py0NvlFDyz0FQhWDPig3yo1CG5ljb686v VBwcHJthczUV0rI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M1 xr99DODBAEtJ0/tUfSsGvfETmAhYD2tjRmVwzB7jRq6U4bc5jtcYEL5YKEWBIvJDVvzE3iu/ HHjc83bIIyqxeYyT3uClTWPVP5OEWBxGUas7u3hlxxmSzGjpXUDBZyoeC+Q6Q3WUp6zOSg+/ yVwD/KBQQ/Sy6vOfvgh6PmsP1D5xCZSl6UWnxSi8lTtAcjUjHyG1qCudR/pmDv0OL5Ul8PeF 87DBMz4Y0our+MslzlvhrmI90XcKAyHrukdnanS+gle61a44uFwtUGPTvCtSW4AQLR1uixc8 qaHsQNmXpQQOIt6nudcOCisXa1c6P/WU8I94u9BmCjTWRQ==
Message-ID: <abe14d52-3f6d-2d91-fa5f-fe99f9742c69@dansarie.se>
Date: Sun, 10 Feb 2019 22:07:26 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
MIME-Version: 1.0
In-Reply-To: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com>
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="QTGqwYg5AeTNgn4Ys6TFfPfsdNbkkx3Lf"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/BSYmaFGoEYHNECg2Mc2qgjzQZh4>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Sun, 10 Feb 2019 21:07:43 -0000

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--QTGqwYg5AeTNgn4Ys6TFfPfsdNbkkx3Lf
Content-Type: multipart/mixed; boundary="I7atBG8xAIrgYLzyTHbOgXSXu5jWq4rjx";
 protected-headers="v1"
From: Marcus Dansarie <marcus@dansarie.se>
To: ntp@ietf.org
Message-ID: <abe14d52-3f6d-2d91-fa5f-fe99f9742c69@dansarie.se>
Subject: Re: [Ntp] Roughtime draft
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com>
In-Reply-To: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com>

--I7atBG8xAIrgYLzyTHbOgXSXu5jWq4rjx
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

Hi!

I've heard about Roughtime before and have had it described to me, but
this is the first time I have actually read a specification. After
reading through the draft, I made a quick client implementation in
Python which is available on Github: https://github.com/dansarie/pyrought=
ime

Here's a couple of comments and suggestions based on my first impressions=
:

First of all, I like how simple and straightforward the protocol is. It
should be possible to implement even on small platforms. I also note
that it is possible to create a very small client implementation
entirely without any cryptographic functions. (Though it's not a good
idea to do so other than in very special circumstances.) The
amortization of the signatures over a (possibly) large number of
requests is a nice idea.

In Section 1, the draft says that "newer protocols like [NTS] fail to
ensure that the servers behave correctly." This is technically true,
because it is not a design goal of NTS. When using NTS, server
misbehavior is detected by the same means as in standard NTP. All but
the simplest NTP implementations have the capability to detect rogue
time servers and Chronos represents the state-of-the-art in doing so.
That said, I don't dispute the motivation or need for Roughtime.

A couple of nits in Section 3:
* "The response inculdes" should be "The response includes"
* "used to indicate the servers certainty" should be "used to indicate
the server's certainty"
* "response so that its needed to" should be "response so that it's
needed to"
* "proof of any servers misbehavior" should be "proof of any server's
misbehavior"

The abbreviations uint32 and uint64 are used a number of times without
explanation. While their meanings should be obvious to any experienced
programmer, they should be explained. "Unsigned 32-bit integer in
little-endian format" should suffice.

The message format was a bit confusing at first. A figure in Section 4
would have made the text easier to understand.

While Section 4 is very clear on how uint32s are converted to and from
byte strings, the same is not true for longer byte strings. I was a bit
confused about how to parse longer fields, such as public keys and
signatures, and about how pass the signed tags to the verification functi=
on.

Section 4 contains the phrase "Exempli gratia". Please change this to
"For example," to improve readability.

Section 5.1 states that request packets must be at least 1024 bytes. I
assume the reason for this requirement is to prevent amplification
attacks. If so, this should be stated explicitly in either section 5.1
or in the security considerations. Also, there should be a requirement
that servers MUST ignore request packets that are shorter than 1024 bytes=
=2E

The PAD tag key is encoded as PAD\xff, while the SIG tag key is encoded
as SIG\x00. For consistency, this should be changed so that both are
terminated with \x00. Additionally, terminating the tag keys with the
NULL character will make displaying them easier on many platforms.

Section 5.2 is hard to read. My suggestion is to give each tag its own
subsection. For example, the one on SREP could read:
"SREP is a parent tag in Roughtime format. It contains the ROOT, MIDP,
and RADI tags."

Nit: The first sentence in Section 5.2 is comma spliced.

In Section 5.2.1, the text "a Merkle tree using SHA512 as described when
we reach the PATH and INDX blocks" should be changed to "a Merkle tree
as described in Section 5.2.3" (or whichever number the description will
be in).

I can't find the format of RADI in the draft. It appears to be uint32.

It appears that there can be up to 32 members in the PATH array, but
this limit is not stated anywhere. With that many members, the PATH
array alone will be 2048 bytes in size. This could enable amplification
attacks and must be addressed. Furthermore, the path MTU on the public
Internet is normally 1500 bytes, which would require packet fragmentation=
=2E

Here's a tag tree with the tags' sizes in bytes:
[Header]  5*8 =3D 40 bytes
SREP      3*8 =3D 24 bytes
   * ROOT       64 bytes
   * MIDP        8 bytes
   * RADI        4 bytes
SIG             64 bytes
CERT      2*8 =3D 16 bytes
   * DELE 3*8 =3D 24 bytes
      - MINT     8 bytes
      - MAXT     8 bytes
      - PUBK    32 bytes
   * SIG        64 bytes
INDX             4 bytes
PATH          n*64 bytes

Except for the PATH tag, the sizes of the tags in a Roughtime reply are
fixed. Thus, with zero PATH members the minimum message size is 360
bytes. With PATH size (n) equal to 32, the maximum message size is 2408
bytes. The message size could be contained within 1024 bytes by limiting
n to 10. I haven't studied the Merkle tree structure in detail, so I
don't know if that's possible or what effects it would have.

Section 5.2.3 should be split into three sections: two describing the
INDX and PATH formats and one describing the Merkle tree data structure
and how the SREP ROOT is verified.

Section 5.3 is very clear and easy to understand.

I agree with Daniel Franke re Section 6.

Is the purpose of the JSON format mentioned in Section 7 to exchange
proofs of server cheating?

I don't understand the purpose of the grease described in Section 8.

The servers' public keys in Section 9 should all be in the same format
to simplify implementations.

The key for roughtime.int08h.com has been truncated. The correct key in
base64 format seems to be AW5uAoTSTDfG5NfY1bTh08GUnOqlRb+HVhbJ3ODJvsE=3D.=


Nit: "hexidecimal" in Section 9 should be "hexadecimal".

Section 11 should include a request to IANA for a UDP port assignment.

Section 11 should include a request to IANA for a new registry for
Roughtime tag keys. Each assignment could include: the tag name (four
bytes), whether it is a parent or leaf tag, the data format/stride, and
a reference (i.e. RFC and section).

Roughtime is, like all other network time protocols, vulnerable to delay
and replay attacks by adversaries that control all or many of the
network paths to the client. This should be elaborated on in the
security considerations.

I haven't gone through the list of references in detail, but it seems to
me that some of them should be normative instead of informative.

Thank you for submitting this draft. I support its adoption by the
working group.

I hope any of this was helpful...

Kind regards,
Marcus Dansarie



On 2019-02-08 23:11, Aanchal Malhotra wrote:
> Hi All,
>=20
> We have put together a draft for Roughtime. We encourage folks here to
> have a look at the draft and see if they think that there is a value in=

> adopting/implementing it and would be interested to do so.
>=20
> =C2=A0https://tools.ietf.org/html/draft-roughtime-aanchal-00
>=20
> Best,
> Aanchal.
>=20
>=20
>=20
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
>=20


--I7atBG8xAIrgYLzyTHbOgXSXu5jWq4rjx--

--QTGqwYg5AeTNgn4Ys6TFfPfsdNbkkx3Lf
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEPIi2jSSFxqOAzfAvwQgADsPhIeYFAlxgkpIACgkQwQgADsPh
Ieb0dA//e8mJMWMeuTMKSbCWxCKvgVjKj3xMuPNF62pmmGes0ulWmBrDYDhWWZy/
3fFa5/0MXuKJuv4Os0e4JhadbmlicCNHM9/msff0AifcqgSMbki9RJJQYgm1sQN4
+WZul8B5GErLSDDyIszgOJLCY02D3lR+ltH7Ue+cRvi4R7k+N8UsYtPUyziXZwnD
xOASD6vWb7J2JkL0Ye6mos5/K9Xg+xlU4v/W5CQvc3Qw2E3HjujClEYNkUItCsR+
UU7EQs9TFJK5dPelTb9moDzZX6OiamXBKWdMHA1CW5iPq1pJIe/MxZIFO2ujUufk
TbAkupx0O4ddJhtSwAuLC05JiFaRQdJIH0b6mRCW762Q5/h/be+lGMGqj1XemKon
6H/CNE7pxNgtLE0wjzGdOZD9mETuwS9Vlekv/f16sapY6FGwRtJRjRYltVwywmuv
5gFcIrIB39dVlBNYIIcj+a+PEiy2GCYp8c+OlZaUY7ZzqVJnQHdJhcEPwcmZKtAw
XaC0jzZLCi4/hvrCp6NpRw+gMxbMGAAAsHGhhHFbb3MyBU4aWnyZew+8+iUK0G6M
Z3BLEUrI2FRukNBMBRedDcl6/+E0JOuuLC1ysZxBh4Rz/lDNCJEySwq8oEQvi0GP
39DawfID4pmH4185LGHm5yPaLo4J4WW32qyizjJw49gR2ecyc6U=
=Qhvm
-----END PGP SIGNATURE-----

--QTGqwYg5AeTNgn4Ys6TFfPfsdNbkkx3Lf--


From nobody Sun Feb 10 13:53:44 2019
Return-Path: <marcus.dansarie.nilsson@gmail.com>
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 AEBED129524 for <ntp@ietfa.amsl.com>; Sun, 10 Feb 2019 13:53:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.881
X-Spam-Level: 
X-Spam-Status: No, score=-1.881 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.018, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NNkNRgdwtRY1 for <ntp@ietfa.amsl.com>; Sun, 10 Feb 2019 13:53:41 -0800 (PST)
Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 788161286E7 for <ntp@ietf.org>; Sun, 10 Feb 2019 13:53:40 -0800 (PST)
Received: by mail-lj1-x22b.google.com with SMTP id z25-v6so7173071ljk.7 for <ntp@ietf.org>; Sun, 10 Feb 2019 13:53:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=sender:subject:from:to:references:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to; bh=IU6CDoapCCblhmnivfaCf3DqraVgBHb0TdDieN9Xz24=; b=pjNjBOanUwePuIcABQEy1rGNCAKpBdQYJE7SR26ZxGiDaDxPSRyXv1G/zo5swQJfw9 Hzk38MvioPB0Md5xCt+WaUJHOjRloG2ZpmAxU/UHg+JspF68EMGHKXfWi3wxeBmoep3E fMdzKXW4KhF7Pao1e1w//XgzR2FxGmKTcvsKLWCDvLtuNesw3DjebZ4jxbipX01bXCkn G0QJrnCeSsLwLUU0Qz/rH1OnKXSN8EiW7Src8XwMMKKtpexCyHHUAAid7I2JL2OH+c3O 9ltG4PnYckGl/gBLTvfuW1rvHwAlmu1iA6OoD3iCj1P44teb5yAlcako/wHlgdS4AtX2 81vw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:references:openpgp :autocrypt:message-id:date:user-agent:mime-version:in-reply-to; bh=IU6CDoapCCblhmnivfaCf3DqraVgBHb0TdDieN9Xz24=; b=cdafaQEq9LwDw3Y7lK7hKt/6Fi0XUanqkzqwyJsyRUnZzfgajmmZdXYqbzqFhFFMdr GNFIZrWLu2QZxs2kDk6QbQfCuR5/ggh3WJMQdgevk5h8ft8yaVZCslNH9DpI1e5rGvD5 ti6kltku3WhjyE8fISp4leTM1zl4Npm1CGa8H5+8qUlfBNGxUJreaqdnM60bB4Afy/H/ hWqi+3V1jWxaEc+de403B6/XZromu9kvKoNL3VHXw5cDf2TV6RxCICq4zFH6CJRX1Bev D3J3dllseaCMsIozc3ABrp6WP2c0ifQbtL7oorYnhmuHgbyuhQBZKuWsXFWWmKdXL0/D aJuw==
X-Gm-Message-State: AHQUAubyQdwDlom9ujglFd0+LEkAyASaMvA7W6stlvkUAbnCEKYEacf7 yWVBEEDLCS8YwI3V7r8S2QO3eSF0
X-Google-Smtp-Source: AHgI3Ib41687R+vj7OBVnxDDy9W+Qw9XD40sMi+GyaOPH+PHXoBF3ZctAQZAcnF1TeC11uUxFelF/g==
X-Received: by 2002:a2e:9101:: with SMTP id m1-v6mr4846243ljg.192.1549835618298;  Sun, 10 Feb 2019 13:53:38 -0800 (PST)
Received: from [10.0.0.126] ([185.40.184.26]) by smtp.gmail.com with ESMTPSA id s21-v6sm1786279lji.49.2019.02.10.13.53.37 for <ntp@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Feb 2019 13:53:37 -0800 (PST)
Sender: Marcus Dansarie <marcus.dansarie.nilsson@gmail.com>
From: Marcus Dansarie <marcus@dansarie.se>
To: ntp@ietf.org
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com> <abe14d52-3f6d-2d91-fa5f-fe99f9742c69@dansarie.se>
Openpgp: preference=signencrypt
Autocrypt: addr=marcus@dansarie.se; prefer-encrypt=mutual; keydata= mQINBFawEn4BEAC8YukDy8f3eczlE8WAcuctrjsNltPCLZDzcj3vBmiayXlXuPULOopqeuw4 +oaZqj4KqvdFBA1mzvwPll7IHePuwAoJYJr48IbIXc9MRjtLoFtd0KnhiVPUS8F2cmfzSJ8E FEv92sz6UT8/tlLEu6sNqr6/caYUivspuW5wf4f6nkSE+6rao9Nx9X03r289IPNBSZv+Y/Ym jWHDPpbT8WLUJZ+A8RsW/1oza609oAzqTkclmnRzip8wZZWNg3Q55P7onBmTIOrEz13My9r5 DWCMHyxXgFL1RJ9YW0t4yRkRm+HvOn3Vesk3m8CCGA6esHV0IPZmBOxJr3l+UQYuDiTgFufr WMpu5MvlyKGHS4fNd505DyyJY2G6eQLLrOq3nZy4qoZSL42TMxzYglexg+H6P/YsIIShk5Ch h/hNphXjrElDWhbGT5JiRWIivgSj/gq5QVBbDLR3b25n9PA0byGemfcEHLkii6EKyH7GW6v9 sgmvCmPfEfppYcOP2g9Jdt8RPitx0UBjoCzWAn0Py0NvlFDyz0FQhWDPig3yo1CG5ljb686v VBwcHJthczUV0rIyVzfmnikIb9ZjydHSX3fFwLz1IcIIX+INS58qA0SDqOoyP2WTYGZCDPVw GMMh+wMtAL2MICTr6vybFWB58m4PsI1j8Ri+AQiEkxyJauI2WQARAQABtCRNYXJjdXMgRGFu c2FyaWUgPG1hcmN1c0BkYW5zYXJpZS5zZT6JAlwEEwEIAEYCGwMCHgECF4ACGQEJCwkNCAwH CwoEBhUKCQgLAgUWAwIBABYhBBfkVFb0H62SH33Csy9j5/6tpPBjBQJcLN6RBQkHXf+TAAoJ EC9j5/6tpPBjZNoQAI87t6fN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aHsQNmXpQQOIt6nudcOCisXa1c6P/WU8I94u9BmCjTWRQ==
Message-ID: <ead4cfa7-56fa-8612-10d5-abaefc15160d@dansarie.se>
Date: Sun, 10 Feb 2019 22:53:33 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
MIME-Version: 1.0
In-Reply-To: <abe14d52-3f6d-2d91-fa5f-fe99f9742c69@dansarie.se>
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="OYU9TgmLJTUrQlLYYnO7b41vxRB8TfkrH"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/fSWyB3HVlo-K2gDNL6KzrxC846E>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Sun, 10 Feb 2019 21:53:43 -0000

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--OYU9TgmLJTUrQlLYYnO7b41vxRB8TfkrH
Content-Type: multipart/mixed; boundary="yRBBxVLsBe9jZNNSi7IRIMKE5iioa0CEc";
 protected-headers="v1"
From: Marcus Dansarie <marcus@dansarie.se>
To: ntp@ietf.org
Message-ID: <ead4cfa7-56fa-8612-10d5-abaefc15160d@dansarie.se>
Subject: Re: [Ntp] Roughtime draft
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com>
 <abe14d52-3f6d-2d91-fa5f-fe99f9742c69@dansarie.se>
In-Reply-To: <abe14d52-3f6d-2d91-fa5f-fe99f9742c69@dansarie.se>

--yRBBxVLsBe9jZNNSi7IRIMKE5iioa0CEc
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

One more thing which I forgot:
The server implementations of Roughtime referenced in Section 9 prepend
'RoughTime v1 delegation signature--\x00' and 'RoughTime v1 response
signature\x00' to the delegation and response tags, respectively, before
signing them. This is currently not mentioned in the draft.

Kind regards,
Marcus Dansarie


--yRBBxVLsBe9jZNNSi7IRIMKE5iioa0CEc--

--OYU9TgmLJTUrQlLYYnO7b41vxRB8TfkrH
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEPIi2jSSFxqOAzfAvwQgADsPhIeYFAlxgnV0ACgkQwQgADsPh
IebeTw//edQm9bJK3iiXV0tv5pQG5Cy3FVegT4BzED+Jb4oY1n4sh7nCxXFdaG6T
L7Voba7igUsFD9eFiKU7X9Bix3FVvedGY8+2kY/zFBda70+PgZ1ELIxEMDtp5kd+
rmjoxhx/SKsyMO1StWSnpvyVCkUeJfVbhdQfsAZRnr5A9vV0lEH3WKRc1t+eBajS
CTRMraDiiARJTCiOineaPw3s7PVACygeW2qfsYhekhb4+O0nqOI5T0BtkJzq6nXq
ehOruHCDY86MaE1Q7EmNOgFrAjGVcLyBmGJ+tSTKmf8a9bwWHhMMT3VN5CgFFwJl
PmTPqDXrb6BGENe5YIuxqvu/rddb99Wg0ddLebcmGniqLTdPEfZuHhR1fGOUv9Fy
VrMqMR2eacXaDkweEPMAHvyJ5XrMVrK+EMtYnGeSC9DQHgWUM3XMHrUulH6coX/P
T7T3QAvvMLrUt4HrxP8hwZl+9ZPwafGjiPAlU6sSMQrtfbg55WA2F7R+uk7J9UGv
zgf39jg1qWeFETKK0xOhb/fpfObar23jbmrhS9hlCTksN+e0iJT+9tObrWR2oeAh
FZLi9JgiRyNfuXXzCzK/UnkziMN1/Mord46paAJrVVY8o2M2HGXavNX/aYQvq1I5
4SmgcbF8ahAt5k3ZuQwtfVmAvA4THjRjkHSOQ2HlJe8S/6d4FQE=
=wuRx
-----END PGP SIGNATURE-----

--OYU9TgmLJTUrQlLYYnO7b41vxRB8TfkrH--


From nobody Sun Feb 10 14:49:50 2019
Return-Path: <hmurray@megapathdsl.net>
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 3F4C712941A for <ntp@ietfa.amsl.com>; Sun, 10 Feb 2019 14:49:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.033
X-Spam-Level: *
X-Spam-Status: No, score=1.033 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_DYNAMIC_IPADDR=1.951, RDNS_DYNAMIC=0.982] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6LUtAdVE40tV for <ntp@ietfa.amsl.com>; Sun, 10 Feb 2019 14:49:47 -0800 (PST)
Received: from ip-64-139-1-69.sjc.megapath.net (ip-64-139-1-69.sjc.megapath.net [64.139.1.69]) by ietfa.amsl.com (Postfix) with ESMTP id AB41012950A for <ntp@ietf.org>; Sun, 10 Feb 2019 14:49:47 -0800 (PST)
Received: from shuksan (localhost [127.0.0.1]) by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 6724E40605C; Sun, 10 Feb 2019 14:49:46 -0800 (PST)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: Marcus Dansarie <marcus@dansarie.se>
cc: ntp@ietf.org, hmurray@megapathdsl.net
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from Marcus Dansarie <marcus@dansarie.se> of "Sun, 10 Feb 2019 14:11:25 +0100." <a1d309a7-13be-2257-2e0e-629c9ef24120@dansarie.se>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sun, 10 Feb 2019 14:49:46 -0800
Message-Id: <20190210224946.6724E40605C@ip-64-139-1-69.sjc.megapath.net>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/dMYNeDbNXs355sz4VuBFuSbbHMM>
Subject: Re: [Ntp] NTPv4 Server/Port Negotiation records in NTS
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Sun, 10 Feb 2019 22:49:49 -0000

marcus@dansarie.se said:
> Most NTS-KE servers will send a NTPv4 Server Negotiation record with the
> initial cookies. This record indicates which NTP server the cookies will work
> with. It is entirely possible for an NTS-KE server to handle several master
> keys.

A NTS-KE server can handle cookies from several NTP servers, but the protocol 
doesn't have any way to specify which cookies go with which IP Address.

I think the current approach for allowing the KE-server to return multiple IP 
Addresses covers the IPv4 vs IPv6 case.

It might cover the load sharing case where several servers are run by the same 
organization.  (From an admin standpoint, it may not be a good idea to have 
all your NTP servers using the same key.)  We can already cover that case by 
having the NTS-KE server pick the target NTP server rather than the NTS-KE 
client.

For something like the pool, I see two possibilities.

One is for the NTP server to do all the work, for example do the DNS lookup on 
pool.example.com to get several IP Addresses, do a reverse DNS lookup on each 
one to get the DNS name (which will be tied to the certificate), then do a 
normal NTS-KE with each name.

The other is to modify the NTS-KE protocol to process multiple servers.  I 
think this requires a new record type for the client to say how many servers 
it wants, and another record type for the server to say 
end-of-data-for-this-server.



-- 
These are my opinions.  I hate spam.




From nobody Mon Feb 11 01:03:20 2019
Return-Path: <tal.mizrahi.phd@gmail.com>
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 269BF130E11; Mon, 11 Feb 2019 01:03:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id flPk1eFhJGaW; Mon, 11 Feb 2019 01:03:17 -0800 (PST)
Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D0F97130E85; Mon, 11 Feb 2019 01:03:16 -0800 (PST)
Received: by mail-qt1-x82a.google.com with SMTP id 2so11282966qtb.5; Mon, 11 Feb 2019 01:03:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q/YSRzMnraOZaqcGn38t8z2KD7FXZHoBg/6LTKDoK1o=; b=ahvIqTZBLIqm6KcohJUUXFoQBzdKCkAORBW/EqEb28Jre79olI1k9Y2KU8NYnW17du 5bqV5ulK5+rXNiVz7R0X09DujbaMGLtVn7f9zrHicS2mMvqM7fff6pfFtOdMmj48CsBi zbzamq8+yUgsSa50yHNESlDtfORuSFd4ttG7e8Zq60YReO6ddWKCiSCbQqkGsKzPvtXS /YdhhNzM8lD3eMG/QruZ5h9dwgqrrWs33Hb+etMUg2G+wTkQ7w8302nFzWbYcmqgrVNe v2S5Fq31AFfHb3YyHcKG6EZ689SIxLviK2TLBSIu1ETaQz0uaKj7mvx77JsyidZzFV+j mXYw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q/YSRzMnraOZaqcGn38t8z2KD7FXZHoBg/6LTKDoK1o=; b=qxHGYS2WTJkCQdEFLrmg1Zh2hE7byyhGujhoZ4d/GOPMtj9fyVDsvqPW2LUFG9RkWK cXpLYh8vhZmoi3u5BTvcO/l79E887qRb+C7YqfDCF6PkS64sONG97LbrmG68umcSVUFP SvXN8j6tElt94fIRI7SWlwYT4LRCEY5w0gINVLNQM6wnEYnJ1LIp45Z7I+jwYysDwlZy +O5CBE241VBo6VPDQh7cD0pQwo+5lYYKTpyxTuCdsa34JNQN5TYzwdr9xMOJ/zERxMs7 lXLmKguPL30vUui6u0bpK2H5J41fbNGI82mclDQXmpE/8M6aqNsXi2l/zN2iW2wq4u/A umaQ==
X-Gm-Message-State: AHQUAubBb54b6VnmAm8Aw9l5K8IrgBQZaUDRuP0qw5j4mMPSKKEV/cqB HeVzvPSyxVWJPMxLRVKC+eAFN+dE7ndn5lf4zMc=
X-Google-Smtp-Source: AHgI3IZTryBh7jq2punHS0cNlNJxgf6hyCEWYVEAbWz2dLaqrDjny3MDHX9ELeDqK+ruSX4ytCb5WEh+laIkuwSQq6c=
X-Received: by 2002:a0c:8afa:: with SMTP id 55mr4627049qvw.73.1549875795614; Mon, 11 Feb 2019 01:03:15 -0800 (PST)
MIME-Version: 1.0
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com>
In-Reply-To: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com>
From: Tal Mizrahi <tal.mizrahi.phd@gmail.com>
Date: Mon, 11 Feb 2019 11:03:04 +0200
Message-ID: <CABUE3X=XhYTBUrzPd4mnU__oTDofxQL-0V0VWPELMDhrAia6OQ@mail.gmail.com>
To: Aanchal Malhotra <aanchal4@bu.edu>
Cc: ntp@ietf.org, ntp-chairs@ietf.org
Content-Type: multipart/alternative; boundary="0000000000003e60a905819a948c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/JyqB-7Q8M8YQNlVupjeq8DBoPyw>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 11 Feb 2019 09:03:19 -0000

--0000000000003e60a905819a948c
Content-Type: text/plain; charset="UTF-8"

Hi Aanchal,

Thanks for putting this draft together.

A few clarification questions:
- What is the threat model? Please clarify in the draft what is the threat
that you are trying to address and is not addressed by the existing
protocols/solutions.
- Also please specify in the draft what you mean by 'malfeasance'. One
could speculate that this is identical to NTP's 'Falsetickers', and NTP's
clustering+combining algorithms (when used with authentication) address
Falsetickers.
- Please clarify in the draft what Roughtime achieves that NTP's
clustering+combining+authentication does not achieve.

And a minor comment: it would be helpful if the draft name would be
according to the IETF convention, something like
draft-aanchal-ntp-roughtime.

Cheers,
Tal.

On Sat, Feb 9, 2019 at 12:12 AM Aanchal Malhotra <aanchal4@bu.edu> wrote:

> Hi All,
>
> We have put together a draft for Roughtime. We encourage folks here to
> have a look at the draft and see if they think that there is a value in
> adopting/implementing it and would be interested to do so.
>
>  https://tools.ietf.org/html/draft-roughtime-aanchal-00
>
> Best,
> Aanchal.
>
>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
>

--0000000000003e60a905819a948c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">Hi Aanchal,<div><br></div><div>Thanks for=
 putting this draft together.</div><div><br></div><div>A few clarification =
questions:=C2=A0</div><div>- What is the threat model? Please clarify in th=
e draft what is the threat that you are trying to address and is not addres=
sed by the existing protocols/solutions.=C2=A0</div><div>- Also please spec=
ify in the draft what you mean by &#39;malfeasance&#39;. One could speculat=
e that this is identical to NTP&#39;s &#39;Falsetickers&#39;, and NTP&#39;s=
 clustering+combining algorithms (when used with authentication) address Fa=
lsetickers.=C2=A0</div><div>- Please clarify in the draft what Roughtime ac=
hieves that NTP&#39;s clustering+combining+authentication does not achieve.=
</div><div><br></div><div>And a minor comment: it would be helpful if the d=
raft name would be according to the IETF convention, something like draft-a=
anchal-ntp-roughtime.</div><div><br></div><div>Cheers,</div><div>Tal.</div>=
</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_=
attr">On Sat, Feb 9, 2019 at 12:12 AM Aanchal Malhotra &lt;<a href=3D"mailt=
o:aanchal4@bu.edu">aanchal4@bu.edu</a>&gt; wrote:<br></div><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid r=
gb(204,204,204);padding-left:1ex"><div dir=3D"ltr">Hi All,<div><br></div><d=
iv>We have put together a draft for Roughtime. We encourage folks here to h=
ave a look at the draft and see if they think that there is a value in adop=
ting/implementing it and would be interested to do so.</div><div><br></div>=
<div>=C2=A0<a href=3D"https://tools.ietf.org/html/draft-roughtime-aanchal-0=
0" rel=3D"noreferrer" target=3D"_blank">https://tools.ietf.org/html/draft-r=
oughtime-aanchal-00</a><br></div><div><br></div><div>Best,</div><div>Aancha=
l.</div><div><br></div><div><br></div></div>
_______________________________________________<br>
ntp mailing list<br>
<a href=3D"mailto:ntp@ietf.org" target=3D"_blank">ntp@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/ntp" rel=3D"noreferrer" ta=
rget=3D"_blank">https://www.ietf.org/mailman/listinfo/ntp</a><br>
</blockquote></div>

--0000000000003e60a905819a948c--


From nobody Mon Feb 11 01:22:58 2019
Return-Path: <kristof.teichel@ptb.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 B9340130E7D for <ntp@ietfa.amsl.com>; Mon, 11 Feb 2019 01:22:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2Is6K4QgvHjf for <ntp@ietfa.amsl.com>; Mon, 11 Feb 2019 01:22:54 -0800 (PST)
Received: from mx1.bs.ptb.de (mx1.bs.ptb.de [192.53.103.120]) (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 E26B8128AFB for <ntp@ietf.org>; Mon, 11 Feb 2019 01:22:53 -0800 (PST)
Received: from smtp-hub.bs.ptb.de (smtpint01.bs.ptb.de [141.25.87.32]) by mx1.bs.ptb.de  with ESMTP id x1B9MnMf016556-x1B9MnMh016556 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 11 Feb 2019 10:22:49 +0100
Received: from lotus.bs.ptb.de (lotus.bs.ptb.de [141.25.85.200]) by smtp-hub.bs.ptb.de (Postfix) with ESMTPS id 56E3B76CF86; Mon, 11 Feb 2019 10:22:48 +0100 (CET)
To: ntp@ietf.org, "Aanchal Malhotra" <aanchal4@bu.edu>
MIME-Version: 1.0
Message-ID: <OFE6845B00.D1810252-ONC125839E.002DDDCE-C125839E.00338689@ptb.de>
From: kristof.teichel@ptb.de
Date: Mon, 11 Feb 2019 10:23:11 +0100
Content-Type: multipart/mixed; boundary="=_mixed 00338688C125839E_="
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/GyXfoiVInOM1F7jPLtlYGWZ2uv8>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 11 Feb 2019 09:22:57 -0000

--=_mixed 00338688C125839E_=
Content-Type: multipart/alternative;
 boundary="=_alternative 00338688C125839E_="


--=_alternative 00338688C125839E_=
Content-Type: text/plain; charset="US-ASCII"

Hi all,

I really like what the draft does, and I absolutely think there is merit 
in adopting it.

That said, I do have a few points that I would like to adress and discuss:

1) I kind of fall in line with Marcus' comment on Section 1: the 
unique-selling-point discussion seems slightly over the top.
It might be helpful to re-formulate to make clearer that Roughtime's 
novelty lies in the fact  that it explicitly makes an attempt at 
cryptgraphic ensurance of server accountability in the first place.

2) Also, I suggest to clarify what guarantees and assurances Roughtime 
intends to give, and more importantly: to whom.
After my first read-through, it seems to me that the enforcement policy is 
something like "if client X ever witnesses malfeasance by server Y, then X 
stops trusting Y" and that that is the full extent of it.
Did I miss instructions about how to actually submit cryptographic 
evidence of malfeasance, so it can be used to improve the health of the 
overall Roughtime environment (a proper, abuse-protected procedure for 
this seems non-trivial to me)?

2a) In case that I did not miss anything important and there simply is 
none:
The described functionality is nice, but I don't know that it delivers on 
the implicit promise that Roughtime would "ensure that the servers behave 
correctly".
This reverts back to 1): I support Marcus' point that any kind of 
cryptograhically secured NTP can supply similar functionality - arguably 
even better because it could detect more subtle versions of false time.
In order to make its novelty a practical benefit, Roughtime would have to 
include a procedure on how to use crypto evidence to improve its server 
environment.

2b) In case I did miss something, and Roughtime servers can actually be 
held accountable by the system (as opposed to by individual clients):
My first thought was that it would be possible to use Roughtime to "probe" 
known public trusted timeservers (that also use other protocols, such as 
NTP).
I was disappointed when I realized that this would not really be that 
helpful, since such probing would be 100% recognizable as such, and rogue 
servers are free to choose when to lie and when to simply revert to 
telling the truth...
I don't know if it makes any sense to go into this anywhere in the 
document, as it is a big strawman argument - but crypto-derived guarantees 
are notoriously hard to understand, and perhaps other people could be 
mislead as well if this is not discussed?

3) I completely agree with Daniel and the others that everyone would do 
well to use TAI over smeared time of any sort.
I just don't know if the issue is really open to debate anymore, as in: 
how wide-spread is use of Roughtime implementations at this point? 
Could a specification actually still influence a question like this?


None of this is meant to sound overly critical to the protocol or the 
document effort as such - I definitely see that Roughtime does provide 
novelty, even if I'm not convined that it is currently used optimally.
As stated, I think the draft should be adopted and discussed. 

Perhaps there is even a way to generically specify the procedure that 
Roughtime employs for its goal for use in other secured timesync 
procedures, such as NTS?
After all, the most important step seems to be to include data from 
previous responses in the nonces of future requests. (I don't think this 
is strictly prohibited in NTS right now?)


Thanks for all the work and best regards,
Kristof


On 2019-02-08 23:11, Aanchal Malhotra wrote:
> Hi All,
> 
> We have put together a draft for Roughtime. We encourage folks here to
> have a look at the draft and see if they think that there is a value in
> adopting/implementing it and would be interested to do so.
> 
>  https://tools.ietf.org/html/draft-roughtime-aanchal-00
> 
> Best,
> Aanchal.
> 
> 
> 
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
> 

_______________________________________________
ntp mailing list
ntp@ietf.org
https://www.ietf.org/mailman/listinfo/ntp

--=_alternative 00338688C125839E_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">Hi all,</font>
<br>
<br><font size=2 face="sans-serif">I really like what the draft does, and
I absolutely think there is merit in adopting it.</font>
<br>
<br><font size=2 face="sans-serif">That said, I do have a few points that
I would like to adress and discuss:</font>
<br>
<br><font size=2 face="sans-serif">1) I kind of fall in line with Marcus'
comment on Section 1: the unique-selling-point discussion seems slightly
over the top.</font>
<br><font size=2 face="sans-serif">It might be helpful to re-formulate
to make clearer that Roughtime's novelty lies in the fact &nbsp;that it
explicitly makes an attempt at cryptgraphic ensurance of server accountability
in the first place.</font>
<br>
<br><font size=2 face="sans-serif">2) Also, I suggest to clarify what guarantees
and assurances Roughtime intends to give, and more importantly: to whom.</font>
<br><font size=2 face="sans-serif">After my first read-through, it seems
to me that the enforcement policy is something like &quot;if client X ever
witnesses malfeasance by server Y, then X stops trusting Y&quot; and that
that is the full extent of it.</font>
<br><font size=2 face="sans-serif">Did I miss instructions about how to
actually submit cryptographic evidence of malfeasance, so it can be used
to improve the health of the overall Roughtime environment (a proper, abuse-protected
procedure for this seems non-trivial to me)?</font>
<br>
<br><font size=2 face="sans-serif">2a) In case that I did not miss anything
important and there simply is none:</font>
<br><font size=2 face="sans-serif">The described functionality is nice,
but I don't know that it delivers on the implicit promise that Roughtime
would &quot;ensure that the servers behave correctly&quot;.</font>
<br><font size=2 face="sans-serif">This reverts back to 1): I support Marcus'
point that any kind of cryptograhically secured NTP can supply similar
functionality - arguably even better because it could detect more subtle
versions of false time.</font>
<br><font size=2 face="sans-serif">In order to make its novelty a practical
benefit, Roughtime would have to include a procedure on how to use crypto
evidence to improve its server environment.</font>
<br>
<br><font size=2 face="sans-serif">2b) In case I did miss something, and
Roughtime servers can actually be held accountable by the system (as opposed
to by individual clients):</font>
<br><font size=2 face="sans-serif">My first thought was that it would be
possible to use Roughtime to &quot;probe&quot; known public trusted timeservers
(that also use other protocols, such as NTP).</font>
<br><font size=2 face="sans-serif">I was disappointed when I realized that
this would not really be that helpful, since such probing would be 100%
recognizable as such, and rogue servers are free to choose when to lie
and when to simply revert to telling the truth...</font>
<br><font size=2 face="sans-serif">I don't know if it makes any sense to
go into this anywhere in the document, as it is a big strawman argument
- but crypto-derived guarantees are notoriously hard to understand, and
perhaps other people could be mislead as well if this is not discussed?</font>
<br>
<br><font size=2 face="sans-serif">3) I completely agree with Daniel and
the others that everyone would do well to use TAI over smeared time of
any sort.</font>
<br><font size=2 face="sans-serif">I just don't know if the issue is really
open to debate anymore, as in: how wide-spread is use of Roughtime implementations
at this point? </font>
<br><font size=2 face="sans-serif">Could a specification actually still
influence a question like this?</font>
<br>
<br>
<br><font size=2 face="sans-serif">None of this is meant to sound overly
critical to the protocol or the document effort as such - I definitely
see that Roughtime does provide novelty, even if I'm not convined that
it is currently used optimally.</font>
<br><font size=2 face="sans-serif">As stated, I think the draft should
be adopted and discussed. </font>
<br>
<br><font size=2 face="sans-serif">Perhaps there is even a way to generically
specify the procedure that Roughtime employs for its goal for use in other
secured timesync procedures, such as NTS?</font>
<br><font size=2 face="sans-serif">After all, the most important step seems
to be to include data from previous responses in the nonces of future requests.
(I don't think this is strictly prohibited in NTS right now?)</font>
<br>
<br>
<br><font size=2 face="sans-serif">Thanks for all the work and best regards,</font>
<br><font size=2 face="sans-serif">Kristof</font>
<br>
<br>
<br><tt><font size=2>On 2019-02-08 23:11, Aanchal Malhotra wrote:<br>
&gt; Hi All,<br>
&gt; <br>
&gt; We have put together a draft for Roughtime. We encourage folks here
to<br>
&gt; have a look at the draft and see if they think that there is a value
in<br>
&gt; adopting/implementing it and would be interested to do so.<br>
&gt; <br>
&gt; &nbsp;</font></tt><a href="https://tools.ietf.org/html/draft-roughtime-aanchal-00"><tt><font size=2>https://tools.ietf.org/html/draft-roughtime-aanchal-00</font></tt></a><tt><font size=2><br>
&gt; <br>
&gt; Best,<br>
&gt; Aanchal.<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; ntp mailing list<br>
&gt; ntp@ietf.org<br>
&gt; </font></tt><a href=https://www.ietf.org/mailman/listinfo/ntp><tt><font size=2>https://www.ietf.org/mailman/listinfo/ntp</font></tt></a><tt><font size=2><br>
&gt; <br>
<br>
_______________________________________________<br>
ntp mailing list<br>
ntp@ietf.org<br>
</font></tt><a href=https://www.ietf.org/mailman/listinfo/ntp><tt><font size=2>https://www.ietf.org/mailman/listinfo/ntp</font></tt></a><tt><font size=2><br>
</font></tt>
--=_alternative 00338688C125839E_=--

--=_mixed 00338688C125839E_=
Content-Type: application/octet-stream; name="signature.asc"
Content-Disposition: attachment; filename="signature.asc"
Content-Transfer-Encoding: base64

LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0NCg0KaVFJekJBRUJDQUFkRmlFRVBJaTJqU1NG
eHFPQXpmQXZ3UWdBRHNQaEllWUZBbHhna3BJQUNna1F3UWdBRHNQaA0KSWViMGRBLy9lOG1KTVdN
ZXVUTUtTYkNXeENLdmdWaktqM3hNdVBORjYycG1tR2VzMHVsV21CckRZRGhXV1p5Lw0KM2ZGYTUv
ME1YdUtKdXY0T3MwZTRKaGFkYm1saWNDTkhNOS9tc2ZmMEFpZmNxZ1NNYmtpOVJKSlFZZ20xc1FO
NA0KK1dadWw4QjVHRXJMU0REeUlzemdPSkxDWTAyRDNsUitsdEg3VWUrY1J2aTRSN2srTjhVc1l0
UFV5emlYWnduRA0KeE9BU0Q2dldiN0oySmtMMFllNm1vczUvSzlYZyt4bFU0di9XNUNRdmMzUXcy
RTNIanVqQ2xFWU5rVUl0Q3NSKw0KVVU3RVFzOVRGSks1ZFBlbFRiOW1vRHpaWDZPaWFtWEJLV2RN
SEExQ1c1aVBxMXBKSWUvTXhaSUZPMnVqVXVmaw0KVGJBa3VweDBPNGRkSmh0U3dBdUxDMDVKaUZh
UlFkSklIMGI2bVJDVzc2MlE1L2gvYmUrbEdNR3FqMVhlbUtvbg0KNkgvQ05FN3B4Tmd0TEUwd2p6
R2RPWkQ5bUVUdXdTOVZsZWt2L2YxNnNhcFk2Rkd3UnRKUmpSWWx0Vnd5d211dg0KNWdGY0lySUIz
OWRWbEJOWUlJY2orYStQRWl5MkdDWXA4YytPbFphVVk3WnpxVkpuUUhkSmhjRVB3Y21aS3RBdw0K
WGFDMGp6WkxDaTQvaHZyQ3A2TnBSdytnTXhiTUdBQUFzSEdoaEhGYmIzTXlCVTRhV255WmV3Kzgr
aVVLMEc2TQ0KWjNCTEVVckkyRlJ1a05CTUJSZWREY2w2LytFMEpPdXVMQzF5c1p4Qmg0UnovbERO
Q0pFeVN3cThvRVF2aTBHUA0KMzlEYXdmSUQ0cG1INDE4NUxHSG01eVBhTG80SjRXVzMycXlpempK
dzQ5Z1IyZWN5YzZVPQ0KPVFodm0NCi0tLS0tRU5EIFBHUCBTSUdOQVRVUkUtLS0tLQ0K

--=_mixed 00338688C125839E_=--


From nobody Mon Feb 11 02:05:27 2019
Return-Path: <mlichvar@redhat.com>
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 CAD68130E8D for <ntp@ietfa.amsl.com>; Mon, 11 Feb 2019 02:05:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.9
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id asuXtYylMuAa for <ntp@ietfa.amsl.com>; Mon, 11 Feb 2019 02:05:19 -0800 (PST)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B94D4130ECE for <ntp@ietf.org>; Mon, 11 Feb 2019 02:05:19 -0800 (PST)
Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4D62CC073D57 for <ntp@ietf.org>; Mon, 11 Feb 2019 10:05:19 +0000 (UTC)
Received: from localhost (holly.tpb.lab.eng.brq.redhat.com [10.43.134.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B8E0A1057058 for <ntp@ietf.org>; Mon, 11 Feb 2019 10:05:18 +0000 (UTC)
Date: Mon, 11 Feb 2019 11:05:17 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: ntp@ietf.org
Message-ID: <20190211100517.GE6602@localhost>
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 11 Feb 2019 10:05:19 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/bMK7QUirrQDgnJFO4YO9HXNQX4g>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 11 Feb 2019 10:05:26 -0000

On Fri, Feb 08, 2019 at 02:11:58PM -0800, Aanchal Malhotra wrote:
> We have put together a draft for Roughtime. We encourage folks here to have
> a look at the draft and see if they think that there is a value in
> adopting/implementing it and would be interested to do so.
> 
>  https://tools.ietf.org/html/draft-roughtime-aanchal-00

Very intestersting. It's nice to have a specification of the protocol.

It's not very clear to me what can I do with the proof that a server
provided an incorrect time. Like with NTP, when that happens, it most
likely was a problem with the clock, e.g. migrated VM, bug in GPS
firmware, etc.

If this is useful, I think we should consider adopting the mechanism
as an NTP extension, so people could still have accurate
synchronization in the normal case when nobody is trying to spoof
time. Even if the crypto is expensive and the operations need to be
batched for multiple clients, I think with the interleaved mode it
would still be possible to get the accurate TX timestamp.

Maybe the Roughtime packet could simply be adopted as is as a single
NTP extension field and it could be used as an additional check of the
NTP timestamps?

Also, I'm wondering what would be the minimal change in NTS required
to construct the Roughtime proof.

-- 
Miroslav Lichvar


From nobody Mon Feb 11 02:07:36 2019
Return-Path: <wingel@netnod.se>
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 1EB5E130E8D for <ntp@ietfa.amsl.com>; Mon, 11 Feb 2019 02:07:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=netnod-se.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FNmdmwI-Myah for <ntp@ietfa.amsl.com>; Mon, 11 Feb 2019 02:07:32 -0800 (PST)
Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4B288124C04 for <ntp@ietf.org>; Mon, 11 Feb 2019 02:07:32 -0800 (PST)
Received: by mail-lf1-x12b.google.com with SMTP id u21so1809054lfu.1 for <ntp@ietf.org>; Mon, 11 Feb 2019 02:07:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netnod-se.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=5LelD9v6XklMtTlWyh2eEqF1h/N1Yezry2oe1fjdxbw=; b=wry0H+IVSHqRIxgvljdcVToO20jZdrfSdLyYBUHA9tE/3D5OJmW/zUTXGXqEw55lUt rvSs4zx9g13Am+5Rk73zQyeWOzmJvcyQmVs+z3DeS4eQAYs0VrO5h6OycCHdg5Ka8VAo YXwPFxhXR/+dzr9A1fLOygLNNVgXxudmM+xApFLAv7EAVYeYJ7JYph7+o/9h41GLCqAL ZbkmbDnBge4Orhblv2RFXhDrlwInXC7raYZduySJNocgykU9HEaE7w+MG4cn7vW/h5wb aK9SVkBioPaU85koLxWphKOcY3yd+DDK+2jtiDp2XEl01XTdu3wFtmJ4/WfnVi5PruyH xwAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5LelD9v6XklMtTlWyh2eEqF1h/N1Yezry2oe1fjdxbw=; b=AkeWu81Xe2UkYhnpsFtzm3n1+/uCrNyhDPgBP5+15LP8j39ihh3ZxX9gvhL8W5LHNy I+0SFA/fuLaFwkJvIHwfzoGHrYJA7obLWI7wjRyEkgOkyPlUo+GsNtY5cQnhQwpNAySY he9S0k7sJzbGhX4Wxg/rc5AukDyjwCHYDZCCqaCE1qJVoTz7CB62IqsoxLGGy3G2hc25 vI07LJUQbdXcl+X0RDrJJQ5Xi4Mu88CyA8ejgbIeSSbQkBZZY/gi0pfTLxqEF7NZG6El rz29czom6uj8MmkqftvP073E+TnewJfzBr282XK99H8hDLbHb9hAetBtceLpHo81r8ey pHPQ==
X-Gm-Message-State: AHQUAub3a3Sa4WX5DzI9tsH5QUGvwy1wlXtyuFGXnrNzXVIBih/n57ed RQy7KOTFuEFjoYx0IgC8QHVtWitMz4c=
X-Google-Smtp-Source: AHgI3IbUw1pUvbbspAwvkfi1fj3KON7BKO3mXVPqNIyILB5w42x6qrAgu/Uk27hIVZ25TeOPFqF5uA==
X-Received: by 2002:a19:2242:: with SMTP id i63mr6444744lfi.39.1549879649974;  Mon, 11 Feb 2019 02:07:29 -0800 (PST)
Received: from ?IPv6:2a01:3f0:1:5:ec1d:d16c:682e:682e? ([2a01:3f0:1:5:ec1d:d16c:682e:682e]) by smtp.gmail.com with ESMTPSA id b17-v6sm2033608ljj.93.2019.02.11.02.07.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 02:07:29 -0800 (PST)
To: Hal Murray <hmurray@megapathdsl.net>, Marcus Dansarie <marcus@dansarie.se>
Cc: ntp@ietf.org
References: <marcus@dansarie.se> <20190210224946.6724E40605C@ip-64-139-1-69.sjc.megapath.net>
From: Christer Weinigel <wingel@netnod.se>
Message-ID: <868f02ec-42d7-5a34-0453-ec1cc07fcf9f@netnod.se>
Date: Mon, 11 Feb 2019 11:07:28 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
MIME-Version: 1.0
In-Reply-To: <20190210224946.6724E40605C@ip-64-139-1-69.sjc.megapath.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/rkajvoPVn1t3rlKTR04TTxIXR8s>
Subject: Re: [Ntp] NTPv4 Server/Port Negotiation records in NTS
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 11 Feb 2019 10:07:35 -0000

On 2019-02-10 23:49, Hal Murray wrote:
> 
> marcus@dansarie.se said:
>> Most NTS-KE servers will send a NTPv4 Server Negotiation record with the
>> initial cookies. This record indicates which NTP server the cookies will work
>> with. It is entirely possible for an NTS-KE server to handle several master
>> keys.

> I think the current approach for allowing the KE-server to return multiple IP
> Addresses covers the IPv4 vs IPv6 case.

There is no way for a NTSKE server to return multiple IP-addresses right 
now.  NTS draft 15 explicitly forbids multiple NTPv4 Server Negotiation 
records:

4.1.7.  NTPv4 Server Negotiation

    ... Servers MUST NOT send more than one record of this type.

    ... The client MUST NOT send more than one record of this type.

Currently the only way to have multiple IP-addresses for the NTPv4/UDP 
servers, is to place a host name in the record and then have multiple 
A/AAAA records in DNS.

> It might cover the load sharing case where several servers are run by the same
> organization.  (From an admin standpoint, it may not be a good idea to have
> all your NTP servers using the same key.)  We can already cover that case by
> having the NTS-KE server pick the target NTP server rather than the NTS-KE
> client.

It seems to me that the common use case for multiple NTPv4 Server 
Negotiation records would be to be able to return both an IPv4 and IPv6 
address for the NTPv4/UDP server and not have to rely on DNS for that.

A more uncommon use case is a server like Netnod's FPGA implementation 
where one NTPv4/UDP server has four interfaces which are used for load 
balancing.

We might just decide that needing two IP-addresses for NTPv4/UDP is so 
uncommon that those who want to use both IPv4 and IPv6, or who want to 
have a NTPv4 server with multiple interfaces, will have to use DNS for 
that.  Unfortunately my experience from working in hardware labs is that 
DNS is often a luxury that is not available.  Management will happily 
spend $100k on a new spectrum analyzer, but getting the outsourced IT 
department to configure a DNS server is almost an impossibility.

So even though Netnod can manage with the restriction of only one NTPv4 
Server Negotiation record in the NTSKE protocol by using multiple A/AAAA 
records in DNS, I would be much happier if the restriction is removed.

> A NTS-KE server can handle cookies from several NTP servers, but the protocol
> doesn't have any way to specify which cookies go with which IP Address.

Right now NTSKE server can only supply one IP address or host name.  If 
a host name is used and resolves to multiple IP addresses in DNS all 
those NTPv4/UDP servers must accept the same key.

I'd say that it is a good idea to not introduce multiple sets of keys 
and multiple servers which use different keys.  To do so would make the 
protocol too complex.  One NTSKE session should only return IP-addresses 
and cookies for one "logical" NTPv4/UDP server which uses one key.

> For something like the pool, I see two possibilities.

I believe that pools ought to be solved outside of the NTSKE protocol.

> One is for the NTP server to do all the work, for example do the DNS lookup on
> pool.example.com to get several IP Addresses, do a reverse DNS lookup on each
> one to get the DNS name (which will be tied to the certificate), then do a
> normal NTS-KE with each name.

One way to do this would be to simply use a different host name for the 
NTSKE servers.  Use "se-nts.pool.ntp.org" instead of "se.pool.ntp.org". 
If one of the NTSKE servers in the pool is "sto1-nts.ntp.se" it would 
then return a NTPv4 Server Negotiation record for one of the NTPv4/UDP 
servers it knows the keys for, e.g. "sto1.ntp.se" which then resolves to 
the IPv4 and IPv6 addresses for the four ports the FPGA in Stockholm.

In addition to that one could add a SRV record on "se.pool.ntp.org" that 
points to a NTSKE server.  That is:

_nts._tcp.se.pool.ntp.org. 86400 IN SRV 0 5 443 se-nts.pool.ntp.org

se-nts.pool.ntp.org.        86400     IN      A       192.168.1.27
se-nts.pool.ntp.org.        86400     IN      A       172.16.10.37

I'm no DNS expert, but I think this ought to work.  The idea is that a 
user can just enter "se.pool.ntp.org" in the configuration field for 
"ntp servers" and a NTS aware client can then find the NTSKE server 
using the SRV record.

> The other is to modify the NTS-KE protocol to process multiple servers.  I
> think this requires a new record type for the client to say how many servers
> it wants, and another record type for the server to say
> end-of-data-for-this-server.

As I wrote, I don't think this is necessary since it can be solved 
outside of the NTSKE protocol.

Regards,
   Christer


From nobody Mon Feb 11 02:22:11 2019
Return-Path: <hidinginthebbc@gmail.com>
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 9A5AB130E8D for <ntp@ietfa.amsl.com>; Mon, 11 Feb 2019 02:22:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3VYfz6K-mh9e for <ntp@ietfa.amsl.com>; Mon, 11 Feb 2019 02:22:08 -0800 (PST)
Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 96BA1130E7D for <ntp@ietf.org>; Mon, 11 Feb 2019 02:22:08 -0800 (PST)
Received: by mail-wm1-x342.google.com with SMTP id b11so16695587wmj.1 for <ntp@ietf.org>; Mon, 11 Feb 2019 02:22:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=DHaFm69ApQXYqXpBbU6UF+sQG1ZlhKJlMSHWfbgng4Y=; b=emsNnxmoJc3NTBgJqAgsDLevMH9pDpCv60UTb8YweXZAtHktTPRwaCQsej4Ws3m83z w0OE06vbUDwGFl9wA6InwcBjiwQ9IbCooqld24PytgFAQu8xYorZvZ3I46WlVQknxIi0 7Dr1r3i1Q/4PzV+67l/JaLCUB5QPhcxhbW/63dp4CIl6KOlfTGUMOfpUfw9+q+xuhxdn RMWq8W9ifWDKrfWNHFrhp0U1huX5Dgo7iyUtzIuWFx0yiU9zU3HsgDTDQ9yJs8oR+s5v Jd+KCLVZ2Et8nGBZX/5G5bAowk4aU1kdAaQI4op6KU7Lnf4dy0DBZMGKjCaLaeOIqrFr FA7g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=DHaFm69ApQXYqXpBbU6UF+sQG1ZlhKJlMSHWfbgng4Y=; b=fFV/f6KqpzHUOX60Fy6h4+Rm2PVo9mbq5ObJbDJmwXPHXVxBPyEiAXj7PK/fcne8rL OYkaqcWrErA0qJOPSif2SWMLC2b/Wur5JdLHsiwTzp+WR3+3AC3X9jpv9wjTTuyqmESU s/I0oU4mRSSOP0A3TcDODkgTXHYz8BjbzJVQfW2tCj6MA7j+Xz9oFjY4XW/uqGhk5n+F 7y3J1Vhqz/mbMq4QMxeRpNvweZ6nDCWy3Cn38XkcyeaCkhvuevKeonF3QCFZ0UE070gZ zW5jxQQxSKLkJUbrIEiMLYpCkJBmftRX7MN+lvDjUjZtblWJAPMJwklHeVkhhPsYNdr5 GqgA==
X-Gm-Message-State: AHQUAua9VerMw7oJv05eZq6VvsXGs2pW8iRDMCkao9S+lmiluTdEkNNj ElYHvvMub83tJHKswVtVAfJYuDRy0Qc=
X-Google-Smtp-Source: AHgI3IZMS2ZcjIaP1mMqzFdBPeyDpkdK8dJtJP5LtiGSQ+Nzp8LEKWsA/qmpgXB1uvALIe1bP9VskQ==
X-Received: by 2002:a05:6000:1091:: with SMTP id y17mr922935wrw.317.1549880526499;  Mon, 11 Feb 2019 02:22:06 -0800 (PST)
Received: from ROADKILL.local ([132.185.158.36]) by smtp.gmail.com with ESMTPSA id l19sm6120061wme.21.2019.02.11.02.22.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 02:22:05 -0800 (PST)
To: Miroslav Lichvar <mlichvar@redhat.com>, ntp@ietf.org
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com> <20190211100517.GE6602@localhost>
From: Thomas Peterson <hidinginthebbc@gmail.com>
Message-ID: <9100bb74-80fa-a53d-92f9-7a136af516ce@gmail.com>
Date: Mon, 11 Feb 2019 10:22:02 +0000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <20190211100517.GE6602@localhost>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-GB
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/o7LfcPxzwwDibcMYgzKzMUrK030>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 11 Feb 2019 10:22:11 -0000

Responses inline.


Regards


On 11/02/2019 10:05, Miroslav Lichvar wrote:
> On Fri, Feb 08, 2019 at 02:11:58PM -0800, Aanchal Malhotra wrote:
>> We have put together a draft for Roughtime. We encourage folks here to have
>> a look at the draft and see if they think that there is a value in
>> adopting/implementing it and would be interested to do so.
>>
>>   https://tools.ietf.org/html/draft-roughtime-aanchal-00
> Very intestersting. It's nice to have a specification of the protocol.
>
> It's not very clear to me what can I do with the proof that a server
> provided an incorrect time. Like with NTP, when that happens, it most
> likely was a problem with the clock, e.g. migrated VM, bug in GPS
> firmware, etc.
In the original Google specification[1], it suggests that clients can 
send information upstream (to where exactly is undefined) with the 
responses from servers providing incorrect time. As servers are 
identified by clients by several identifiers it would also obviously 
allow them to no longer be queried. For services like the NTP pool, this 
might be useful to act on servers reporting incorrect time and ensure 
existing or future clients do not use them.
> If this is useful, I think we should consider adopting the mechanism
> as an NTP extension, so people could still have accurate
> synchronization in the normal case when nobody is trying to spoof
> time. Even if the crypto is expensive and the operations need to be
> batched for multiple clients, I think with the interleaved mode it
> would still be possible to get the accurate TX timestamp.
>
> Maybe the Roughtime packet could simply be adopted as is as a single
> NTP extension field and it could be used as an additional check of the
> NTP timestamps?
I think that providing an NTP extension like this would be beneficial to 
existing deployments, but would like to see Roughtime adopted as its own 
standalone protocol. The undefined section I refer to above of what 
clients could do to propagate information about incorrect servers should 
also be addressed.
> Also, I'm wondering what would be the minimal change in NTS required
> to construct the Roughtime proof.
>
1: https://roughtime.googlesource.com/roughtime


From nobody Mon Feb 11 05:13:53 2019
Return-Path: <tal.mizrahi.phd@gmail.com>
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 4AAD0130E8A; Mon, 11 Feb 2019 05:13:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9hilAgmtL3qN; Mon, 11 Feb 2019 05:13:37 -0800 (PST)
Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C0BEA12008A; Mon, 11 Feb 2019 05:13:36 -0800 (PST)
Received: by mail-qk1-x730.google.com with SMTP id y140so6325653qkb.9; Mon, 11 Feb 2019 05:13:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AOIpwo+Fl5JVMDcynpnMnd6XUjAJaDp1hyDBnMpc6Ws=; b=jB2tQg72VUIS9xhIxZlwrXNcANbCs0pVUoGpBM/qn78UdzUHcsi0Q1Irsuxbv3JDnF Vr2j1zotp6azp1z7AIvKl031b0Jmhx+0cRWia6Jd2y1Bx5NWXe7UHo4YRxwD+4JlUgx9 0G24aPHdN5zWZhbbwaNX/Yjxhp1XyX5kaGedKaKK+u8bmNlcwgdJDy7vWroTUFG3wClz tbndtTtcI7E8fF8txvw39sfXqZf3uRKPiej7sRiEdxYKcKSVPxe6CcZP0sFjpdjgZuE8 Bm7le1Dp5NvzaMLG8XR56fGEFMOiIvbIG6qTkZszITwQesnyUewzoXU062CBvp3H1SqI 1yZw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AOIpwo+Fl5JVMDcynpnMnd6XUjAJaDp1hyDBnMpc6Ws=; b=dggWk48w+G2yGuuAs3WBrg/rACehUnFXCz01zF5BzhUPXnHDIWXhymriyuOqer9pI1 S2Zbn5TYOlAWWAIeqcVEB6K+2spQZU6iGV3PKJ4RiAtUYIeGSRaKu2fd3lO4+e5JCD8g 2B/VFtiXKY9lkxQqfrErOfd8JFu4CPX2OYS9b2uKlAtumlriT8gYps5fa0OerlwaGS1P TN3xy0on93cYMGtYmm8yEB+6N4zKu7AfQ+6MobLhPiVZLnpXnQVPn6GFEW7csKDKpo8U irbLdqDcAT8ppg4a1dVW9NrkKmQG9Qpwq+SFME6F2qZmn6U1UbYahJPLAE8fjS+TWdc2 59EQ==
X-Gm-Message-State: AHQUAuZw1pzWCSxJPQ763uLbkTWnlYC56/jbsJwad6tVwR5X595y3ojs CCLmwJtmNE+172fwbo3T0/KCzrzL9ZdGePFoFfg=
X-Google-Smtp-Source: AHgI3IZvBTMc/735gIk6gowWcjsF2/eR8Fph5/7NmpyTDEIfPkFvd4SX3RQ/JVFJcvs5rHme5ssLAr+w/fu+7LnoeIo=
X-Received: by 2002:a37:79c5:: with SMTP id u188mr24849514qkc.259.1549890815892;  Mon, 11 Feb 2019 05:13:35 -0800 (PST)
MIME-Version: 1.0
References: <154444480037.17333.5127536482994262799.idtracker@ietfa.amsl.com> <CABUE3XnQSi9rJnN2pxp2ZmmMAF4-aTgZ3eFeuWgj7uDWkZDoHw@mail.gmail.com> <0277B06D-060A-44AB-BA7A-C02F3C6E5021@kaloom.com> <CABUE3XmL_XERozG96bCboxwsbSFWjxvbwyupvs+CjvFA8eR59Q@mail.gmail.com> <22cec0be-76df-9fed-45d9-48769d662506@earthlink.net>
In-Reply-To: <22cec0be-76df-9fed-45d9-48769d662506@earthlink.net>
From: Tal Mizrahi <tal.mizrahi.phd@gmail.com>
Date: Mon, 11 Feb 2019 15:13:24 +0200
Message-ID: <CABUE3XmQ7LDwL6HyA0QZaL1=QBSUaXQE3b=hCO0vp23irct=Ag@mail.gmail.com>
To: Charlie Perkins <charles.perkins@earthlink.net>
Cc: Suresh Krishnan <Suresh@kaloom.com>,  "draft-ietf-6lo-deadline-time@ietf.org" <draft-ietf-6lo-deadline-time@ietf.org>,  "6lo-chairs@ietf.org" <6lo-chairs@ietf.org>, IETF <ietf@ietf.org>, "ntp@ietf.org" <ntp@ietf.org>,  "6lo@ietf.org" <6lo@ietf.org>, "ntp-chairs@ietf.org" <ntp-chairs@ietf.org>,  IETF-Announce <ietf-announce@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000859fca05819e13d8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/iZguKTO103Z5zIdfu4PLD8hKvEw>
Subject: Re: [Ntp] Last Call: <draft-ietf-6lo-deadline-time-03.txt> (Packet Delivery Deadline time in 6LoWPAN Routing Header) to Proposed Standard
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 11 Feb 2019 13:13:39 -0000

--000000000000859fca05819e13d8
Content-Type: text/plain; charset="UTF-8"

Hi Charlie,

Thanks for reviewing the packet timestamp draft.

Your suggestion makes sense to me.

Just a minor question regarding your example below ("If we had a 12-bit
timestamp format..."):
The DTL and OTL fields specify the length of the DT and OT fields in
octets, and therefore the length of DT and OT is a multiple of 8 bits. So
the DT and OT can't be 12 bits long, right?

Cheers,
Tal.

On Sat, Feb 9, 2019 at 4:25 AM Charlie Perkins <
charles.perkins@earthlink.net> wrote:

> Hello Tal and all,
>
> I have read draft-ietf-ntp-packet-timestamps-05.txt.  This is an excellent
> document.
>
> Our previous timestamp format in draft-ietf-6lo-deadline-time-03.txt
> offers a lot of flexibility in a compact format, but maybe that much
> flexibility is not needed.  I would like to suggest that we use the
> timestamp template in draft-ietf-ntp-packet-timestamps-05.txt, but with
> possibly fewer bits than the 32-bit NTP format.  As I understand it, that
> format divides the available number of bits evenly between integral seconds
> and fractional seconds. So, for instance, if we had an 8-bit timestamp
> format, that would allow for 16 seconds total duration denominated in
> sixteenths of a second (i.e., time units of about 64 milliseconds).  That
> would be pretty good for most purposes.  If we had a 12-bit timestamp
> format, that would allow for 64 seconds denominated in units of
> approximately 16 milliseconds.  If the optional Origination Time is
> included, then we would mandate that the OT has the same time unit as the
> DT.  In this case, that translates to meaning that the number of bits for
> fractional seconds is the same, but we could allow the OT to have fewer
> bits for the integer number of seconds.
>
> If we go this way with predefined time designations according to the NTP
> draft format, we don't need the Exp field.  It is also possible that an
> asymmetric number of bits would be considered to satisfy the specified
> NTP-related format (i.e., not the same number of bits for fractional
> seconds as for integer seconds).  In that case, we could use a new field to
> locate the binary point.  We can make the definitions so that this new
> information still fits within the space of the Deadline-6LoRHE format.  One
> could argue that this new field is analogous to the Exp field.
>
> draft-ietf-ntp-packet-timestamps-05.txt mandates certain details in the
> Security Considerations which we will need to obey.  It also suggests
> inclusion of material about synchronization.  I think we also have to do
> consider doing that.
>
> What do you think?
>
> Regards,
> Charlie P.
> On 1/3/2019 5:02 AM, Tal Mizrahi wrote:
>
> Hi Suresh, authors,
>
> >> I would suggest to follow the timestamp specification template of
> Section
> >> 3 in draft-ietf-ntp-packet-timestamps-05.
>
> >I think the semantics of the DT and OT fields are a bit different from
> the
> >NTP packet timestamps and there are also resource constraints in the
> >6lo world that might make the 64 bit formats expensive. I will let the
> >authors and the WG comment further on this.
>
>
> I agree that the NTP timestamp format does not fit here.
> My comment was that DT and OT should be defined according to the timestamp
> specification template (section 3 in the packet timestamp draft).
> This is a *generic template* for defining all kinds of timestamp formats.
> The template was defined in order to make sure that when you define a
> timestamp format you do not forget important details.
> Just to clarify, I am not suggesting to change the timestamp formats of DT
> and OT, but only to specify them in a clear and unambiguous manner.
>
> Thanks,
> Tal.
>
>
>
>
> On Wed, Jan 2, 2019 at 11:00 PM Suresh Krishnan <Suresh@kaloom.com> wrote:
>
>> Hi Tal,
>>
>> On Dec 23, 2018, at 3:49 AM, Tal Mizrahi <tal.mizrahi.phd@gmail.com>
>> wrote:
>>
>> Hi,
>>
>> I am not a 6lo native, but I reviewed the draft specifically from a
>> timestamp formatting perspective.
>> In the NTP working group we currently have a draft in WGLC that presents
>> guidelines for defining timestamp formats.
>> https://tools.ietf.org/html/draft-ietf-ntp-packet-timestamps-05
>>
>> I believe that the definitions of the timestamps (DT and OT)
>> in draft-ietf-6lo-deadline-time should be more detailed. For example,
>> aspects about the epoch and the potential effect of leap seconds are
>> currently not described in the current draft.
>>
>>
>> Good point. Authors, can you add some further descriptive text around
>> these fields.
>>
>> I would suggest to follow the timestamp specification template of Section
>> 3 in draft-ietf-ntp-packet-timestamps-05.
>>
>>
>> I think the semantics of the DT and OT fields are a bit different from
>> the NTP packet timestamps and there are also resource constraints in the
>> 6lo world that might make the 64 bit formats expensive. I will let the
>> authors and the WG comment further on this.
>>
>> Thanks
>> Suresh
>>
>>

--000000000000859fca05819e13d8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">Hi Charlie,<div><br></div><div>Thanks for=
 reviewing the packet timestamp draft.</div><div><br></div><div>Your sugges=
tion makes sense to me.</div><div><br></div><div>Just a minor question rega=
rding your example below (&quot;If we had a 12-bit timestamp format...&quot=
;):</div><div>The DTL and OTL fields specify the length of the DT and OT fi=
elds in octets, and therefore the length of DT and OT is a multiple of 8 bi=
ts. So the DT and OT can&#39;t be 12 bits long, right?</div><div><br></div>=
<div>Cheers,</div><div>Tal.</div></div></div><br><div class=3D"gmail_quote"=
><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Feb 9, 2019 at 4:25 AM Charl=
ie Perkins &lt;<a href=3D"mailto:charles.perkins@earthlink.net">charles.per=
kins@earthlink.net</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote=
" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);=
padding-left:1ex">
 =20
   =20
 =20
  <div bgcolor=3D"#FFFFFF">
    <p>Hello Tal and all,</p>
    <p>I have read draft-ietf-ntp-packet-timestamps-05.txt.=C2=A0 This is a=
n
      excellent document.<br>
      <br>
      Our previous timestamp format in
      draft-ietf-6lo-deadline-time-03.txt offers a lot of flexibility in
      a compact format, but maybe that much flexibility is not needed.=C2=
=A0
      I would like to suggest that we use the timestamp template in
      draft-ietf-ntp-packet-timestamps-05.txt, but with possibly fewer
      bits than the 32-bit NTP format.=C2=A0 As I understand it, that forma=
t
      divides the available number of bits evenly between integral
      seconds and fractional seconds. So, for instance, if we had an
      8-bit timestamp format, that would allow for 16 seconds total
      duration denominated in sixteenths of a second (i.e., time units
      of about 64 milliseconds).=C2=A0 That would be pretty good for most
      purposes.=C2=A0 If we had a 12-bit timestamp format, that would allow
      for 64 seconds denominated in units of approximately 16
      milliseconds.=C2=A0 If the optional Origination Time is included, the=
n
      we would mandate that the OT has the same time unit as the DT.=C2=A0 =
In
      this case, that translates to meaning that the number of bits for
      fractional seconds is the same, but we could allow the OT to have
      fewer bits for the integer number of seconds.<br>
      <br>
      If we go this way with predefined time designations according to
      the NTP draft format, we don&#39;t need the Exp field.=C2=A0 It is al=
so
      possible that an asymmetric number of bits would be considered to
      satisfy the specified NTP-related format (i.e., not the same
      number of bits for fractional seconds as for integer seconds).=C2=A0 =
In
      that case, we could use a new field to locate the binary point.=C2=A0
      We can make the definitions so that this new information still
      fits within the space of the Deadline-6LoRHE format.=C2=A0 One could
      argue that this new field is analogous to the Exp field.<br>
    </p>
    <p>draft-ietf-ntp-packet-timestamps-05.txt mandates certain details
      in the Security Considerations which we will need to obey.=C2=A0 It
      also suggests inclusion of material about synchronization.=C2=A0 I
      think we also have to do consider doing that.</p>
    <p>What do you think?</p>
    <p>Regards,<br>
      Charlie P.<br>
    </p>
    <div class=3D"gmail-m_1626195672213380152moz-cite-prefix">On 1/3/2019 5=
:02 AM, Tal Mizrahi wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
      <div dir=3D"ltr">
        <div dir=3D"ltr">
          <div dir=3D"ltr">Hi Suresh, authors,
            <div><br>
            </div>
            <div>
              <div>&gt;&gt; I would suggest to follow the timestamp
                specification template of Section=C2=A0</div>
              <div>&gt;&gt; 3 in draft-ietf-ntp-packet-timestamps-05.</div>
              <div><br>
              </div>
              <div>&gt;I think the semantics of the DT and OT fields are
                a bit different from the=C2=A0</div>
              <div>&gt;NTP packet timestamps and there are also resource
                constraints in the=C2=A0</div>
              <div>&gt;6lo world that might make the 64 bit formats
                expensive. I will let the=C2=A0</div>
              <div>&gt;authors and the WG comment further on this.</div>
              <div><br>
              </div>
              <div><br>
              </div>
            </div>
            <div>I agree that the NTP timestamp format does not fit
              here.<br>
            </div>
            <div>My comment was that DT and OT should be defined
              according to the timestamp specification template (section
              3 in the packet timestamp draft).=C2=A0</div>
            <div>This is a *generic template* for defining all kinds of
              timestamp formats.</div>
            <div>The template was defined in order to make sure that
              when you define a timestamp format you do not forget
              important details.<br>
            </div>
            <div>Just to clarify, I am not suggesting to change the
              timestamp formats of DT and OT, but only to specify them
              in a clear and unambiguous manner.</div>
            <div><br>
            </div>
            <div>Thanks,</div>
            <div>Tal.</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
          </div>
        </div>
        <br>
        <div class=3D"gmail_quote">
          <div dir=3D"ltr">On Wed, Jan 2, 2019 at 11:00 PM Suresh Krishnan
            &lt;<a href=3D"mailto:Suresh@kaloom.com" target=3D"_blank">Sure=
sh@kaloom.com</a>&gt; wrote:<br>
          </div>
          <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div>
              Hi Tal,<br>
              <div><br>
                <blockquote type=3D"cite">
                  <div>On Dec 23, 2018, at 3:49 AM, Tal Mizrahi &lt;<a href=
=3D"mailto:tal.mizrahi.phd@gmail.com" target=3D"_blank">tal.mizrahi.phd@gma=
il.com</a>&gt;
                    wrote:</div>
                  <br class=3D"gmail-m_1626195672213380152gmail-m_-96789825=
1921994082Apple-interchange-newline">
                  <div>
                    <div dir=3D"ltr">
                      <div dir=3D"ltr">
                        <div dir=3D"ltr">
                          <div dir=3D"ltr">Hi,
                            <div><br>
                            </div>
                            <div>I am not a 6lo native, but I reviewed
                              the draft specifically from a timestamp
                              formatting perspective.</div>
                            <div>In the NTP working group we currently
                              have a draft in WGLC that presents
                              guidelines for defining timestamp formats.</d=
iv>
                            <div><a href=3D"https://tools.ietf.org/html/dra=
ft-ietf-ntp-packet-timestamps-05" target=3D"_blank">https://tools.ietf.org/=
html/draft-ietf-ntp-packet-timestamps-05</a><br>
                            </div>
                            <div><br>
                            </div>
                            <div>I believe that the definitions of the
                              timestamps (DT and OT)
                              in=C2=A0draft-ietf-6lo-deadline-time should b=
e
                              more detailed. For example, aspects about
                              the epoch and the potential effect of leap
                              seconds are currently not described in the
                              current draft.=C2=A0</div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </blockquote>
                <div><br>
                </div>
                Good point. Authors, can you add some further
                descriptive text around these fields.</div>
              <div><br>
                <blockquote type=3D"cite">
                  <div>
                    <div dir=3D"ltr">
                      <div dir=3D"ltr">
                        <div dir=3D"ltr">
                          <div dir=3D"ltr">
                            <div>I would suggest to follow the timestamp
                              specification template of Section 3 in
                              draft-ietf-ntp-packet-timestamps-05.</div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </blockquote>
                <br>
              </div>
              <div>I think the semantics of the DT and OT fields are a
                bit different from the NTP packet timestamps and there
                are also resource constraints in the 6lo world that
                might make the 64 bit formats expensive. I will let the
                authors and the WG comment further on this.</div>
              <div><br>
              </div>
              <div>Thanks</div>
              <div>Suresh</div>
              <br>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
  </div>

</blockquote></div>

--000000000000859fca05819e13d8--


From nobody Mon Feb 11 07:06:51 2019
Return-Path: <charles.perkins@earthlink.net>
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 8E72A128B14; Fri,  8 Feb 2019 18:25:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=earthlink.net; domainkeys=pass (2048-bit key) header.from=charles.perkins@earthlink.net header.d=earthlink.net
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gMfQgZq3QuQM; Fri,  8 Feb 2019 18:25:23 -0800 (PST)
Received: from elasmtp-galgo.atl.sa.earthlink.net (elasmtp-galgo.atl.sa.earthlink.net [209.86.89.61]) (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 5903912894E; Fri,  8 Feb 2019 18:25:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=earthlink.net; s=dk12062016; t=1549679123; bh=aJmddUdSVMJa/M0rcx4kBOl9BuMIB0/vDN+n kZ+SW/g=; h=Received:Subject:To:Cc:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:Content-Type:Content-Language: X-ELNK-Trace:X-Originating-IP; b=Fm0GQtcLY4uCnsEP2ijUfDD5x+CC1M4Zf cgQ0TWnU6CWHwffWBw12ZkkTXmMgbwbODyBTRcF6CGCk3GZfctKmpi2DPLU3EQV9vz/ COzeVEu7ECcb3/PyM6V9lSLB8mD4B2eC3JJllGJbwRH+pkZzH1bgz6otYwsMeZ0+rYn Hh+bnOtk4sxN6rre4UumMi0Ixk4r+ESIVOF3p0R7x59RE4H7MALGz5fGsehUjm9xbS+ QeFSmzupjSfKZVSSgh757IHt/y4PRa/bhEU09gJAeYjag2FuFj2rTB8smmopVXCSGI4 xS6p3gTOKCuE20pag/cqQr5f2LTjc80o7IqxRbNxw==
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk12062016; d=earthlink.net; b=d2ZQJRE6s1oGcFIDCA2HLyyPW3P7qWjMroq6RHCt+duY6QCRRe2OYarD7zHHqpokaI5Cmxkfx464ImoEmkOe2jq4kqvf3EYX122Ko75SLWBOjQqMlJ16GryIY9eAFfPeXhpffGsxC+R7WeVWc5eFXPpbavFm2809wo3ZbfGjCMDFbdaeTIX2BTYDQVkrqUe554QkVn4se5l8vuC8tSCmSQN0GBXKsi/GK09r+xrhzDNX3l9hBIhX73RQEPcEJnfNOUdSUqlXABVjOOEdGMzykuW+W1MM5EbWwNBv7f22uSDwLp7aCrubJNHtpketzmmprlXeifpKDGj6NgyfyyD/4Q==; h=Received:Subject:To:Cc:References:From:Message-ID:Date:User-Agent:MIME-Version:In-Reply-To:Content-Type:Content-Language:X-ELNK-Trace:X-Originating-IP;
Received: from [99.51.72.196] (helo=[192.168.1.82]) by elasmtp-galgo.atl.sa.earthlink.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4) (envelope-from <charles.perkins@earthlink.net>) id 1gsIKX-0008sK-DN; Fri, 08 Feb 2019 21:25:21 -0500
To: Tal Mizrahi <tal.mizrahi.phd@gmail.com>
Cc: Suresh Krishnan <Suresh@kaloom.com>, "draft-ietf-6lo-deadline-time@ietf.org" <draft-ietf-6lo-deadline-time@ietf.org>, "6lo-chairs@ietf.org" <6lo-chairs@ietf.org>, IETF <ietf@ietf.org>, "ntp@ietf.org" <ntp@ietf.org>, "6lo@ietf.org" <6lo@ietf.org>, "ntp-chairs@ietf.org" <ntp-chairs@ietf.org>, IETF-Announce <ietf-announce@ietf.org>
References: <154444480037.17333.5127536482994262799.idtracker@ietfa.amsl.com> <CABUE3XnQSi9rJnN2pxp2ZmmMAF4-aTgZ3eFeuWgj7uDWkZDoHw@mail.gmail.com> <0277B06D-060A-44AB-BA7A-C02F3C6E5021@kaloom.com> <CABUE3XmL_XERozG96bCboxwsbSFWjxvbwyupvs+CjvFA8eR59Q@mail.gmail.com>
From: Charlie Perkins <charles.perkins@earthlink.net>
Message-ID: <22cec0be-76df-9fed-45d9-48769d662506@earthlink.net>
Date: Fri, 8 Feb 2019 18:25:18 -0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <CABUE3XmL_XERozG96bCboxwsbSFWjxvbwyupvs+CjvFA8eR59Q@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------AE9B87FC4709576E0BA12825"
Content-Language: en-US
X-ELNK-Trace: 137d7d78656ed6919973fd6a8f21c4f2d780f4a490ca6956846b590522b13c95b36ddadf380120e6869530b2fa681aa7350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 99.51.72.196
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/c4NzUZ2CxZNoSWiJMHyj8wSB3UE>
X-Mailman-Approved-At: Mon, 11 Feb 2019 07:06:49 -0800
Subject: Re: [Ntp] Last Call: <draft-ietf-6lo-deadline-time-03.txt> (Packet Delivery Deadline time in 6LoWPAN Routing Header) to Proposed Standard
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Sat, 09 Feb 2019 02:25:27 -0000

This is a multi-part message in MIME format.
--------------AE9B87FC4709576E0BA12825
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

Hello Tal and all,

I have read draft-ietf-ntp-packet-timestamps-05.txt.  This is an 
excellent document.

Our previous timestamp format in draft-ietf-6lo-deadline-time-03.txt 
offers a lot of flexibility in a compact format, but maybe that much 
flexibility is not needed. I would like to suggest that we use the 
timestamp template in draft-ietf-ntp-packet-timestamps-05.txt, but with 
possibly fewer bits than the 32-bit NTP format.  As I understand it, 
that format divides the available number of bits evenly between integral 
seconds and fractional seconds. So, for instance, if we had an 8-bit 
timestamp format, that would allow for 16 seconds total duration 
denominated in sixteenths of a second (i.e., time units of about 64 
milliseconds).  That would be pretty good for most purposes.  If we had 
a 12-bit timestamp format, that would allow for 64 seconds denominated 
in units of approximately 16 milliseconds.  If the optional Origination 
Time is included, then we would mandate that the OT has the same time 
unit as the DT.  In this case, that translates to meaning that the 
number of bits for fractional seconds is the same, but we could allow 
the OT to have fewer bits for the integer number of seconds.

If we go this way with predefined time designations according to the NTP 
draft format, we don't need the Exp field.  It is also possible that an 
asymmetric number of bits would be considered to satisfy the specified 
NTP-related format (i.e., not the same number of bits for fractional 
seconds as for integer seconds).  In that case, we could use a new field 
to locate the binary point. We can make the definitions so that this new 
information still fits within the space of the Deadline-6LoRHE format.  
One could argue that this new field is analogous to the Exp field.

draft-ietf-ntp-packet-timestamps-05.txt mandates certain details in the 
Security Considerations which we will need to obey.  It also suggests 
inclusion of material about synchronization.  I think we also have to do 
consider doing that.

What do you think?

Regards,
Charlie P.

On 1/3/2019 5:02 AM, Tal Mizrahi wrote:
> Hi Suresh, authors,
>
> >> I would suggest to follow the timestamp specification template of 
> Section
> >> 3 in draft-ietf-ntp-packet-timestamps-05.
>
> >I think the semantics of the DT and OT fields are a bit different 
> from the
> >NTP packet timestamps and there are also resource constraints in the
> >6lo world that might make the 64 bit formats expensive. I will let the
> >authors and the WG comment further on this.
>
>
> I agree that the NTP timestamp format does not fit here.
> My comment was that DT and OT should be defined according to the 
> timestamp specification template (section 3 in the packet timestamp 
> draft).
> This is a *generic template* for defining all kinds of timestamp formats.
> The template was defined in order to make sure that when you define a 
> timestamp format you do not forget important details.
> Just to clarify, I am not suggesting to change the timestamp formats 
> of DT and OT, but only to specify them in a clear and unambiguous manner.
>
> Thanks,
> Tal.
>
>
>
>
> On Wed, Jan 2, 2019 at 11:00 PM Suresh Krishnan <Suresh@kaloom.com 
> <mailto:Suresh@kaloom.com>> wrote:
>
>     Hi Tal,
>
>>     On Dec 23, 2018, at 3:49 AM, Tal Mizrahi
>>     <tal.mizrahi.phd@gmail.com <mailto:tal.mizrahi.phd@gmail.com>> wrote:
>>
>>     Hi,
>>
>>     I am not a 6lo native, but I reviewed the draft specifically from
>>     a timestamp formatting perspective.
>>     In the NTP working group we currently have a draft in WGLC that
>>     presents guidelines for defining timestamp formats.
>>     https://tools.ietf.org/html/draft-ietf-ntp-packet-timestamps-05
>>
>>     I believe that the definitions of the timestamps (DT and OT)
>>     in draft-ietf-6lo-deadline-time should be more detailed. For
>>     example, aspects about the epoch and the potential effect of leap
>>     seconds are currently not described in the current draft.
>
>     Good point. Authors, can you add some further descriptive text
>     around these fields.
>
>>     I would suggest to follow the timestamp specification template of
>>     Section 3 in draft-ietf-ntp-packet-timestamps-05.
>
>     I think the semantics of the DT and OT fields are a bit different
>     from the NTP packet timestamps and there are also resource
>     constraints in the 6lo world that might make the 64 bit formats
>     expensive. I will let the authors and the WG comment further on this.
>
>     Thanks
>     Suresh
>

--------------AE9B87FC4709576E0BA12825
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello Tal and all,</p>
    <p>I have read draft-ietf-ntp-packet-timestamps-05.txt.  This is an
      excellent document.<br>
      <br>
      Our previous timestamp format in
      draft-ietf-6lo-deadline-time-03.txt offers a lot of flexibility in
      a compact format, but maybe that much flexibility is not needed. 
      I would like to suggest that we use the timestamp template in
      draft-ietf-ntp-packet-timestamps-05.txt, but with possibly fewer
      bits than the 32-bit NTP format.  As I understand it, that format
      divides the available number of bits evenly between integral
      seconds and fractional seconds. So, for instance, if we had an
      8-bit timestamp format, that would allow for 16 seconds total
      duration denominated in sixteenths of a second (i.e., time units
      of about 64 milliseconds).  That would be pretty good for most
      purposes.  If we had a 12-bit timestamp format, that would allow
      for 64 seconds denominated in units of approximately 16
      milliseconds.  If the optional Origination Time is included, then
      we would mandate that the OT has the same time unit as the DT.  In
      this case, that translates to meaning that the number of bits for
      fractional seconds is the same, but we could allow the OT to have
      fewer bits for the integer number of seconds.<br>
      <br>
      If we go this way with predefined time designations according to
      the NTP draft format, we don't need the Exp field.  It is also
      possible that an asymmetric number of bits would be considered to
      satisfy the specified NTP-related format (i.e., not the same
      number of bits for fractional seconds as for integer seconds).  In
      that case, we could use a new field to locate the binary point. 
      We can make the definitions so that this new information still
      fits within the space of the Deadline-6LoRHE format.  One could
      argue that this new field is analogous to the Exp field.<br>
    </p>
    <p>draft-ietf-ntp-packet-timestamps-05.txt mandates certain details
      in the Security Considerations which we will need to obey.  It
      also suggests inclusion of material about synchronization.  I
      think we also have to do consider doing that.</p>
    <p>What do you think?</p>
    <p>Regards,<br>
      Charlie P.<br>
    </p>
    <div class="moz-cite-prefix">On 1/3/2019 5:02 AM, Tal Mizrahi wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABUE3XmL_XERozG96bCboxwsbSFWjxvbwyupvs+CjvFA8eR59Q@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">Hi Suresh, authors,
            <div><br>
            </div>
            <div>
              <div>&gt;&gt; I would suggest to follow the timestamp
                specification template of Section </div>
              <div>&gt;&gt; 3 in draft-ietf-ntp-packet-timestamps-05.</div>
              <div><br>
              </div>
              <div>&gt;I think the semantics of the DT and OT fields are
                a bit different from the </div>
              <div>&gt;NTP packet timestamps and there are also resource
                constraints in the </div>
              <div>&gt;6lo world that might make the 64 bit formats
                expensive. I will let the </div>
              <div>&gt;authors and the WG comment further on this.</div>
              <div><br>
              </div>
              <div><br>
              </div>
            </div>
            <div>I agree that the NTP timestamp format does not fit
              here.<br>
            </div>
            <div>My comment was that DT and OT should be defined
              according to the timestamp specification template (section
              3 in the packet timestamp draft). </div>
            <div>This is a *generic template* for defining all kinds of
              timestamp formats.</div>
            <div>The template was defined in order to make sure that
              when you define a timestamp format you do not forget
              important details.<br>
            </div>
            <div>Just to clarify, I am not suggesting to change the
              timestamp formats of DT and OT, but only to specify them
              in a clear and unambiguous manner.</div>
            <div><br>
            </div>
            <div>Thanks,</div>
            <div>Tal.</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr">On Wed, Jan 2, 2019 at 11:00 PM Suresh Krishnan
            &lt;<a href="mailto:Suresh@kaloom.com"
              moz-do-not-send="true">Suresh@kaloom.com</a>&gt; wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div style="overflow-wrap: break-word;">
              Hi Tal,<br>
              <div><br>
                <blockquote type="cite">
                  <div>On Dec 23, 2018, at 3:49 AM, Tal Mizrahi &lt;<a
                      href="mailto:tal.mizrahi.phd@gmail.com"
                      target="_blank" moz-do-not-send="true">tal.mizrahi.phd@gmail.com</a>&gt;
                    wrote:</div>
                  <br
                    class="gmail-m_-967898251921994082Apple-interchange-newline">
                  <div>
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div dir="ltr">Hi,
                            <div><br>
                            </div>
                            <div>I am not a 6lo native, but I reviewed
                              the draft specifically from a timestamp
                              formatting perspective.</div>
                            <div>In the NTP working group we currently
                              have a draft in WGLC that presents
                              guidelines for defining timestamp formats.</div>
                            <div><a
                                href="https://tools.ietf.org/html/draft-ietf-ntp-packet-timestamps-05"
                                target="_blank" moz-do-not-send="true">https://tools.ietf.org/html/draft-ietf-ntp-packet-timestamps-05</a><br>
                            </div>
                            <div><br>
                            </div>
                            <div>I believe that the definitions of the
                              timestamps (DT and OT)
                              in draft-ietf-6lo-deadline-time should be
                              more detailed. For example, aspects about
                              the epoch and the potential effect of leap
                              seconds are currently not described in the
                              current draft. </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </blockquote>
                <div><br>
                </div>
                Good point. Authors, can you add some further
                descriptive text around these fields.</div>
              <div><br>
                <blockquote type="cite">
                  <div>
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div dir="ltr">
                            <div>I would suggest to follow the timestamp
                              specification template of Section 3 in
                              draft-ietf-ntp-packet-timestamps-05.</div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </blockquote>
                <br>
              </div>
              <div>I think the semantics of the DT and OT fields are a
                bit different from the NTP packet timestamps and there
                are also resource constraints in the 6lo world that
                might make the 64 bit formats expensive. I will let the
                authors and the WG comment further on this.</div>
              <div><br>
              </div>
              <div>Thanks</div>
              <div>Suresh</div>
              <br>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
  </body>
</html>

--------------AE9B87FC4709576E0BA12825--


From nobody Mon Feb 11 07:06:56 2019
Return-Path: <acm@research.att.com>
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 E1EC312008A; Mon, 11 Feb 2019 05:56:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 4.39
X-Spam-Level: ****
X-Spam-Status: No, score=4.39 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, GB_SUMOF=5, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=1.989, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GingoPWt_nwU; Mon, 11 Feb 2019 05:56:50 -0800 (PST)
Received: from mx0a-00191d01.pphosted.com (mx0b-00191d01.pphosted.com [67.231.157.136]) (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 B7BF5129BBF; Mon, 11 Feb 2019 05:56:50 -0800 (PST)
Received: from pps.filterd (m0049459.ppops.net [127.0.0.1]) by m0049459.ppops.net-00191d01. (8.16.0.27/8.16.0.27) with SMTP id x1BDtdUm046081; Mon, 11 Feb 2019 08:56:47 -0500
Received: from tlpd255.enaf.dadc.sbc.com (sbcsmtp3.sbc.com [144.160.112.28]) by m0049459.ppops.net-00191d01. with ESMTP id 2qk7j9c1r7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 11 Feb 2019 08:56:46 -0500
Received: from enaf.dadc.sbc.com (localhost [127.0.0.1]) by tlpd255.enaf.dadc.sbc.com (8.14.5/8.14.5) with ESMTP id x1BDui6L090222; Mon, 11 Feb 2019 07:56:45 -0600
Received: from zlp30496.vci.att.com (zlp30496.vci.att.com [135.46.181.157]) by tlpd255.enaf.dadc.sbc.com (8.14.5/8.14.5) with ESMTP id x1BDue7a090124; Mon, 11 Feb 2019 07:56:40 -0600
Received: from zlp30496.vci.att.com (zlp30496.vci.att.com [127.0.0.1]) by zlp30496.vci.att.com (Service) with ESMTP id E043E40CF598; Mon, 11 Feb 2019 13:56:40 +0000 (GMT)
Received: from clpi183.sldc.sbc.com (unknown [135.41.1.46]) by zlp30496.vci.att.com (Service) with ESMTP id B3D5F40CF589; Mon, 11 Feb 2019 13:56:40 +0000 (GMT)
Received: from sldc.sbc.com (localhost [127.0.0.1]) by clpi183.sldc.sbc.com (8.14.5/8.14.5) with ESMTP id x1BDuepJ026954; Mon, 11 Feb 2019 07:56:40 -0600
Received: from mail-azure.research.att.com (mail-azure.research.att.com [135.207.255.18]) by clpi183.sldc.sbc.com (8.14.5/8.14.5) with ESMTP id x1BDuWSc026586; Mon, 11 Feb 2019 07:56:32 -0600
Received: from exchange.research.att.com (njbdcas1.research.att.com [135.197.255.61]) by mail-azure.research.att.com (Postfix) with ESMTP id 99EA1E1321; Mon, 11 Feb 2019 08:56:31 -0500 (EST)
Received: from njmtexg5.research.att.com ([fe80::b09c:ff13:4487:78b6]) by njbdcas1.research.att.com ([fe80::8c6b:4b77:618f:9a01%11]) with mapi id 14.03.0435.000; Mon, 11 Feb 2019 08:55:13 -0500
From: "MORTON, ALFRED C (AL)" <acm@research.att.com>
To: Tal Mizrahi <tal.mizrahi.phd@gmail.com>, Charlie Perkins <charles.perkins@earthlink.net>
CC: "draft-ietf-6lo-deadline-time@ietf.org" <draft-ietf-6lo-deadline-time@ietf.org>, "6lo-chairs@ietf.org" <6lo-chairs@ietf.org>, IETF <ietf@ietf.org>, "ntp@ietf.org" <ntp@ietf.org>, "6lo@ietf.org" <6lo@ietf.org>, "ntp-chairs@ietf.org" <ntp-chairs@ietf.org>, Suresh Krishnan <Suresh@kaloom.com>
Thread-Topic: [Ntp] Last Call: <draft-ietf-6lo-deadline-time-03.txt> (Packet Delivery Deadline time in 6LoWPAN Routing Header) to Proposed Standard
Thread-Index: AQHUkIOgfj7ZaWV+Yk+gnWNPNUXqpaWMa7wAgBE86KOAPU2KSIAACZEQ
Date: Mon, 11 Feb 2019 13:55:12 +0000
Message-ID: <4D7F4AD313D3FC43A053B309F97543CF6BFD64F6@njmtexg5.research.att.com>
References: <154444480037.17333.5127536482994262799.idtracker@ietfa.amsl.com> <CABUE3XnQSi9rJnN2pxp2ZmmMAF4-aTgZ3eFeuWgj7uDWkZDoHw@mail.gmail.com> <0277B06D-060A-44AB-BA7A-C02F3C6E5021@kaloom.com> <CABUE3XmL_XERozG96bCboxwsbSFWjxvbwyupvs+CjvFA8eR59Q@mail.gmail.com> <22cec0be-76df-9fed-45d9-48769d662506@earthlink.net> <CABUE3XmQ7LDwL6HyA0QZaL1=QBSUaXQE3b=hCO0vp23irct=Ag@mail.gmail.com>
In-Reply-To: <CABUE3XmQ7LDwL6HyA0QZaL1=QBSUaXQE3b=hCO0vp23irct=Ag@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [69.141.203.172]
Content-Type: multipart/alternative; boundary="_000_4D7F4AD313D3FC43A053B309F97543CF6BFD64F6njmtexg5researc_"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-02-11_09:, , signatures=0
X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902110109
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/BWSn6T3AjH5nVizV4od_sDelbJU>
X-Mailman-Approved-At: Mon, 11 Feb 2019 07:06:49 -0800
Subject: Re: [Ntp] Last Call: <draft-ietf-6lo-deadline-time-03.txt> (Packet Delivery Deadline time in 6LoWPAN Routing Header) to Proposed Standard
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 11 Feb 2019 13:56:54 -0000

--_000_4D7F4AD313D3FC43A053B309F97543CF6BFD64F6njmtexg5researc_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64

SGkgVGFsIGFuZCBDaGFybG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F97543CF6BFD64F6njmtexg5researc_--


From nobody Mon Feb 11 07:07:02 2019
Return-Path: <charles.perkins@earthlink.net>
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 2D3B912008A; Mon, 11 Feb 2019 06:14:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level: 
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9,  DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=earthlink.net; domainkeys=pass (2048-bit key) header.from=charles.perkins@earthlink.net header.d=earthlink.net
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N3nwxL-ENM5m; Mon, 11 Feb 2019 06:14:42 -0800 (PST)
Received: from elasmtp-masked.atl.sa.earthlink.net (elasmtp-masked.atl.sa.earthlink.net [209.86.89.68]) (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 481F8126F72; Mon, 11 Feb 2019 06:14:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=earthlink.net; s=dk12062016; t=1549894482; bh=AcM6FdgORjhOveCcMBrbaOUnYz+wMs3g/PYA kqLMnwI=; h=Received:Subject:To:Cc:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:Content-Type:Content-Language: X-ELNK-Trace:X-Originating-IP; b=gKEB8IXbULNG1DyppFYBP7mYYdbXs493O KTbNmw7wOeTBaqdU6esLUiTYPKYyJuYD3VEm5evMUOkCnkkcAM5k9XVAnxnBNdPkrm5 t+/5LS0nWErW7q/O+km/Ytc9snu0jgNWbC+Ma6SX1+PF4gKMCuVKUi2P5ucz+i4T4cP Imok/bF7iiFPdhJjTe6jPWSJMs2Qv9tXfLKqYlWuKuItMQZcPZLUoXWWupZp91uNnho NiDl6pOaqwfrILyaYhzc4UZlIWVr9QI56cSZKFHa3uPIR4OccjeNlcfBoACzs7UoDvU iwCBq/kkFv+j5jtXsL8qPzDxlbeMRGi3ssvEI22kQ==
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk12062016; d=earthlink.net; b=jQonkwsbL6PuSx2pczlGMu4h/TF8YfEVcp7fF3cZ6c6+dTU8tLWKkSaz8WhLDYSWqPu4+FXxU5zSn0Pug8HJ0qOvYfjP05jCgFHS7m1SM3ooOtaEHOp1jfb71N2UNvNoWa5zHNVt69hrqyd1cXMQYfoVrRlLCuXAQ/Kmxzxinbb4qzwYtnKjMyDDAogoI5BH27AOxYiXZ/4zydvndbDT5LFJXVgHCC/EdjDFaVTZBfKNHD31AZV9QYyDzR9cqKKtke5a27nQYL24vaF8HjkL5Lse33qGv9vTY3vDcs+Us9vuUTRLfmeybzRdQPr3csI9nnDm+5woBSiVFMQjV9BO7g==; h=Received:Subject:To:Cc:References:From:Message-ID:Date:User-Agent:MIME-Version:In-Reply-To:Content-Type:Content-Language:X-ELNK-Trace:X-Originating-IP;
Received: from [99.51.72.196] (helo=[192.168.1.82]) by elasmtp-masked.atl.sa.earthlink.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4) (envelope-from <charles.perkins@earthlink.net>) id 1gtCM5-000CLb-3I; Mon, 11 Feb 2019 09:14:41 -0500
To: Tal Mizrahi <tal.mizrahi.phd@gmail.com>
Cc: "draft-ietf-6lo-deadline-time@ietf.org" <draft-ietf-6lo-deadline-time@ietf.org>, "6lo-chairs@ietf.org" <6lo-chairs@ietf.org>, IETF <ietf@ietf.org>, "ntp@ietf.org" <ntp@ietf.org>, "6lo@ietf.org" <6lo@ietf.org>, "ntp-chairs@ietf.org" <ntp-chairs@ietf.org>, Suresh Krishnan <Suresh@kaloom.com>, IETF-Announce <ietf-announce@ietf.org>
References: <154444480037.17333.5127536482994262799.idtracker@ietfa.amsl.com> <CABUE3XnQSi9rJnN2pxp2ZmmMAF4-aTgZ3eFeuWgj7uDWkZDoHw@mail.gmail.com> <0277B06D-060A-44AB-BA7A-C02F3C6E5021@kaloom.com> <CABUE3XmL_XERozG96bCboxwsbSFWjxvbwyupvs+CjvFA8eR59Q@mail.gmail.com> <22cec0be-76df-9fed-45d9-48769d662506@earthlink.net> <CABUE3XmQ7LDwL6HyA0QZaL1=QBSUaXQE3b=hCO0vp23irct=Ag@mail.gmail.com>
From: Charlie Perkins <charles.perkins@earthlink.net>
Message-ID: <73109dcb-915c-a826-6aef-6a14f858a8dd@earthlink.net>
Date: Mon, 11 Feb 2019 06:14:38 -0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <CABUE3XmQ7LDwL6HyA0QZaL1=QBSUaXQE3b=hCO0vp23irct=Ag@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------B75AE5445EEB697EF10DE626"
Content-Language: en-US
X-ELNK-Trace: 137d7d78656ed6919973fd6a8f21c4f2d780f4a490ca6956846b590522b13c95579d7b72e0d46e3ef7d8d953048843b5350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 99.51.72.196
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/mH54SaXhXNMCUXe3UAHXi2uSUzk>
X-Mailman-Approved-At: Mon, 11 Feb 2019 07:06:49 -0800
Subject: Re: [Ntp] [6lo] Last Call: <draft-ietf-6lo-deadline-time-03.txt> (Packet Delivery Deadline time in 6LoWPAN Routing Header) to Proposed Standard
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 11 Feb 2019 14:14:45 -0000

This is a multi-part message in MIME format.
--------------B75AE5445EEB697EF10DE626
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

Hello Tal and all,

I thought it would be better to make the length fields count nibbles 
instead of octets, since we don't have EXP any more.  A 4-bit length 
field then allows up to 64 bits precision, which should be enough for 
most purposes.

Do you think that would be O.K.?

Regards,
Charlie P.


On 2/11/2019 5:13 AM, Tal Mizrahi wrote:
> Hi Charlie,
>
> Thanks for reviewing the packet timestamp draft.
>
> Your suggestion makes sense to me.
>
> Just a minor question regarding your example below ("If we had a 
> 12-bit timestamp format..."):
> The DTL and OTL fields specify the length of the DT and OT fields in 
> octets, and therefore the length of DT and OT is a multiple of 8 bits. 
> So the DT and OT can't be 12 bits long, right?
>
> Cheers,
> Tal.
>
> On Sat, Feb 9, 2019 at 4:25 AM Charlie Perkins 
> <charles.perkins@earthlink.net <mailto:charles.perkins@earthlink.net>> 
> wrote:
>
>     Hello Tal and all,
>
>     I have read draft-ietf-ntp-packet-timestamps-05.txt. This is an
>     excellent document.
>
>     Our previous timestamp format in
>     draft-ietf-6lo-deadline-time-03.txt offers a lot of flexibility in
>     a compact format, but maybe that much flexibility is not needed. 
>     I would like to suggest that we use the timestamp template in
>     draft-ietf-ntp-packet-timestamps-05.txt, but with possibly fewer
>     bits than the 32-bit NTP format.  As I understand it, that format
>     divides the available number of bits evenly between integral
>     seconds and fractional seconds. So, for instance, if we had an
>     8-bit timestamp format, that would allow for 16 seconds total
>     duration denominated in sixteenths of a second (i.e., time units
>     of about 64 milliseconds).  That would be pretty good for most
>     purposes.  If we had a 12-bit timestamp format, that would allow
>     for 64 seconds denominated in units of approximately 16
>     milliseconds.  If the optional Origination Time is included, then
>     we would mandate that the OT has the same time unit as the DT.  In
>     this case, that translates to meaning that the number of bits for
>     fractional seconds is the same, but we could allow the OT to have
>     fewer bits for the integer number of seconds.
>
>     If we go this way with predefined time designations according to
>     the NTP draft format, we don't need the Exp field.  It is also
>     possible that an asymmetric number of bits would be considered to
>     satisfy the specified NTP-related format (i.e., not the same
>     number of bits for fractional seconds as for integer seconds).  In
>     that case, we could use a new field to locate the binary point. 
>     We can make the definitions so that this new information still
>     fits within the space of the Deadline-6LoRHE format.  One could
>     argue that this new field is analogous to the Exp field.
>
>     draft-ietf-ntp-packet-timestamps-05.txt mandates certain details
>     in the Security Considerations which we will need to obey.  It
>     also suggests inclusion of material about synchronization.  I
>     think we also have to do consider doing that.
>
>     What do you think?
>
>     Regards,
>     Charlie P.
>
>     On 1/3/2019 5:02 AM, Tal Mizrahi wrote:
>>     Hi Suresh, authors,
>>
>>     >> I would suggest to follow the timestamp specification template
>>     of Section
>>     >> 3 in draft-ietf-ntp-packet-timestamps-05.
>>
>>     >I think the semantics of the DT and OT fields are a bit
>>     different from the
>>     >NTP packet timestamps and there are also resource constraints in
>>     the
>>     >6lo world that might make the 64 bit formats expensive. I will
>>     let the
>>     >authors and the WG comment further on this.
>>
>>
>>     I agree that the NTP timestamp format does not fit here.
>>     My comment was that DT and OT should be defined according to the
>>     timestamp specification template (section 3 in the packet
>>     timestamp draft).
>>     This is a *generic template* for defining all kinds of timestamp
>>     formats.
>>     The template was defined in order to make sure that when you
>>     define a timestamp format you do not forget important details.
>>     Just to clarify, I am not suggesting to change the timestamp
>>     formats of DT and OT, but only to specify them in a clear and
>>     unambiguous manner.
>>
>>     Thanks,
>>     Tal.
>>
>>
>>
>>
>>     On Wed, Jan 2, 2019 at 11:00 PM Suresh Krishnan
>>     <Suresh@kaloom.com <mailto:Suresh@kaloom.com>> wrote:
>>
>>         Hi Tal,
>>
>>>         On Dec 23, 2018, at 3:49 AM, Tal Mizrahi
>>>         <tal.mizrahi.phd@gmail.com
>>>         <mailto:tal.mizrahi.phd@gmail.com>> wrote:
>>>
>>>         Hi,
>>>
>>>         I am not a 6lo native, but I reviewed the draft specifically
>>>         from a timestamp formatting perspective.
>>>         In the NTP working group we currently have a draft in WGLC
>>>         that presents guidelines for defining timestamp formats.
>>>         https://tools.ietf.org/html/draft-ietf-ntp-packet-timestamps-05
>>>
>>>         I believe that the definitions of the timestamps (DT and OT)
>>>         in draft-ietf-6lo-deadline-time should be more detailed. For
>>>         example, aspects about the epoch and the potential effect of
>>>         leap seconds are currently not described in the current draft.
>>
>>         Good point. Authors, can you add some further descriptive
>>         text around these fields.
>>
>>>         I would suggest to follow the timestamp specification
>>>         template of Section 3 in draft-ietf-ntp-packet-timestamps-05.
>>
>>         I think the semantics of the DT and OT fields are a bit
>>         different from the NTP packet timestamps and there are also
>>         resource constraints in the 6lo world that might make the 64
>>         bit formats expensive. I will let the authors and the WG
>>         comment further on this.
>>
>>         Thanks
>>         Suresh
>>
>
> _______________________________________________
> 6lo mailing list
> 6lo@ietf.org
> https://www.ietf.org/mailman/listinfo/6lo

--------------B75AE5445EEB697EF10DE626
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello Tal and all,</p>
    <p>I thought it would be better to make the length fields count
      nibbles instead of octets, since we don't have EXP any more.  A
      4-bit length field then allows up to 64 bits precision, which
      should be enough for most purposes.</p>
    <p>Do you think that would be O.K.?</p>
    <p>Regards,<br>
      Charlie P.</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 2/11/2019 5:13 AM, Tal Mizrahi
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABUE3XmQ7LDwL6HyA0QZaL1=QBSUaXQE3b=hCO0vp23irct=Ag@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">Hi Charlie,
          <div><br>
          </div>
          <div>Thanks for reviewing the packet timestamp draft.</div>
          <div><br>
          </div>
          <div>Your suggestion makes sense to me.</div>
          <div><br>
          </div>
          <div>Just a minor question regarding your example below ("If
            we had a 12-bit timestamp format..."):</div>
          <div>The DTL and OTL fields specify the length of the DT and
            OT fields in octets, and therefore the length of DT and OT
            is a multiple of 8 bits. So the DT and OT can't be 12 bits
            long, right?</div>
          <div><br>
          </div>
          <div>Cheers,</div>
          <div>Tal.</div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Sat, Feb 9, 2019 at 4:25 AM
          Charlie Perkins &lt;<a
            href="mailto:charles.perkins@earthlink.net"
            moz-do-not-send="true">charles.perkins@earthlink.net</a>&gt;
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor="#FFFFFF">
            <p>Hello Tal and all,</p>
            <p>I have read draft-ietf-ntp-packet-timestamps-05.txt. 
              This is an excellent document.<br>
              <br>
              Our previous timestamp format in
              draft-ietf-6lo-deadline-time-03.txt offers a lot of
              flexibility in a compact format, but maybe that much
              flexibility is not needed.  I would like to suggest that
              we use the timestamp template in
              draft-ietf-ntp-packet-timestamps-05.txt, but with possibly
              fewer bits than the 32-bit NTP format.  As I understand
              it, that format divides the available number of bits
              evenly between integral seconds and fractional seconds.
              So, for instance, if we had an 8-bit timestamp format,
              that would allow for 16 seconds total duration denominated
              in sixteenths of a second (i.e., time units of about 64
              milliseconds).  That would be pretty good for most
              purposes.  If we had a 12-bit timestamp format, that would
              allow for 64 seconds denominated in units of approximately
              16 milliseconds.  If the optional Origination Time is
              included, then we would mandate that the OT has the same
              time unit as the DT.  In this case, that translates to
              meaning that the number of bits for fractional seconds is
              the same, but we could allow the OT to have fewer bits for
              the integer number of seconds.<br>
              <br>
              If we go this way with predefined time designations
              according to the NTP draft format, we don't need the Exp
              field.  It is also possible that an asymmetric number of
              bits would be considered to satisfy the specified
              NTP-related format (i.e., not the same number of bits for
              fractional seconds as for integer seconds).  In that case,
              we could use a new field to locate the binary point.  We
              can make the definitions so that this new information
              still fits within the space of the Deadline-6LoRHE
              format.  One could argue that this new field is analogous
              to the Exp field.<br>
            </p>
            <p>draft-ietf-ntp-packet-timestamps-05.txt mandates certain
              details in the Security Considerations which we will need
              to obey.  It also suggests inclusion of material about
              synchronization.  I think we also have to do consider
              doing that.</p>
            <p>What do you think?</p>
            <p>Regards,<br>
              Charlie P.<br>
            </p>
            <div class="gmail-m_1626195672213380152moz-cite-prefix">On
              1/3/2019 5:02 AM, Tal Mizrahi wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">Hi Suresh, authors,
                    <div><br>
                    </div>
                    <div>
                      <div>&gt;&gt; I would suggest to follow the
                        timestamp specification template of Section </div>
                      <div>&gt;&gt; 3 in
                        draft-ietf-ntp-packet-timestamps-05.</div>
                      <div><br>
                      </div>
                      <div>&gt;I think the semantics of the DT and OT
                        fields are a bit different from the </div>
                      <div>&gt;NTP packet timestamps and there are also
                        resource constraints in the </div>
                      <div>&gt;6lo world that might make the 64 bit
                        formats expensive. I will let the </div>
                      <div>&gt;authors and the WG comment further on
                        this.</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                    </div>
                    <div>I agree that the NTP timestamp format does not
                      fit here.<br>
                    </div>
                    <div>My comment was that DT and OT should be defined
                      according to the timestamp specification template
                      (section 3 in the packet timestamp draft). </div>
                    <div>This is a *generic template* for defining all
                      kinds of timestamp formats.</div>
                    <div>The template was defined in order to make sure
                      that when you define a timestamp format you do not
                      forget important details.<br>
                    </div>
                    <div>Just to clarify, I am not suggesting to change
                      the timestamp formats of DT and OT, but only to
                      specify them in a clear and unambiguous manner.</div>
                    <div><br>
                    </div>
                    <div>Thanks,</div>
                    <div>Tal.</div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                  </div>
                </div>
                <br>
                <div class="gmail_quote">
                  <div dir="ltr">On Wed, Jan 2, 2019 at 11:00 PM Suresh
                    Krishnan &lt;<a href="mailto:Suresh@kaloom.com"
                      target="_blank" moz-do-not-send="true">Suresh@kaloom.com</a>&gt;
                    wrote:<br>
                  </div>
                  <blockquote class="gmail_quote" style="margin:0px 0px
                    0px 0.8ex;border-left:1px solid
                    rgb(204,204,204);padding-left:1ex">
                    <div> Hi Tal,<br>
                      <div><br>
                        <blockquote type="cite">
                          <div>On Dec 23, 2018, at 3:49 AM, Tal Mizrahi
                            &lt;<a
                              href="mailto:tal.mizrahi.phd@gmail.com"
                              target="_blank" moz-do-not-send="true">tal.mizrahi.phd@gmail.com</a>&gt;
                            wrote:</div>
                          <br
class="gmail-m_1626195672213380152gmail-m_-967898251921994082Apple-interchange-newline">
                          <div>
                            <div dir="ltr">
                              <div dir="ltr">
                                <div dir="ltr">
                                  <div dir="ltr">Hi,
                                    <div><br>
                                    </div>
                                    <div>I am not a 6lo native, but I
                                      reviewed the draft specifically
                                      from a timestamp formatting
                                      perspective.</div>
                                    <div>In the NTP working group we
                                      currently have a draft in WGLC
                                      that presents guidelines for
                                      defining timestamp formats.</div>
                                    <div><a
                                        href="https://tools.ietf.org/html/draft-ietf-ntp-packet-timestamps-05"
                                        target="_blank"
                                        moz-do-not-send="true">https://tools.ietf.org/html/draft-ietf-ntp-packet-timestamps-05</a><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>I believe that the definitions
                                      of the timestamps (DT and OT)
                                      in draft-ietf-6lo-deadline-time
                                      should be more detailed. For
                                      example, aspects about the epoch
                                      and the potential effect of leap
                                      seconds are currently not
                                      described in the current draft. </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                        <div><br>
                        </div>
                        Good point. Authors, can you add some further
                        descriptive text around these fields.</div>
                      <div><br>
                        <blockquote type="cite">
                          <div>
                            <div dir="ltr">
                              <div dir="ltr">
                                <div dir="ltr">
                                  <div dir="ltr">
                                    <div>I would suggest to follow the
                                      timestamp specification template
                                      of Section 3 in
                                      draft-ietf-ntp-packet-timestamps-05.</div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                        <br>
                      </div>
                      <div>I think the semantics of the DT and OT fields
                        are a bit different from the NTP packet
                        timestamps and there are also resource
                        constraints in the 6lo world that might make the
                        64 bit formats expensive. I will let the authors
                        and the WG comment further on this.</div>
                      <div><br>
                      </div>
                      <div>Thanks</div>
                      <div>Suresh</div>
                      <br>
                    </div>
                  </blockquote>
                </div>
              </div>
            </blockquote>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
6lo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:6lo@ietf.org">6lo@ietf.org</a>
<a class="moz-txt-link-freetext" href="https://www.ietf.org/mailman/listinfo/6lo">https://www.ietf.org/mailman/listinfo/6lo</a>
</pre>
    </blockquote>
  </body>
</html>

--------------B75AE5445EEB697EF10DE626--


From nobody Mon Feb 11 09:12:06 2019
Return-Path: <iesg-secretary@ietf.org>
X-Original-To: ntp@ietf.org
Delivered-To: ntp@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 98EB61310C2; Mon, 11 Feb 2019 09:11:53 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: The IESG <iesg-secretary@ietf.org>
To: "IETF-Announce" <ietf-announce@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 6.91.0
Auto-Submitted: auto-generated
Precedence: bulk
Cc: The IESG <iesg@ietf.org>, ntp@ietf.org, odonoghue@isoc.org, Karen O'Donoghue <odonoghue@isoc.org>, ntp-chairs@ietf.org, draft-ietf-ntp-mac@ietf.org, suresh@kaloom.com, rfc-editor@rfc-editor.org
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Message-ID: <154990511361.29568.14358193407806286815.idtracker@ietfa.amsl.com>
Date: Mon, 11 Feb 2019 09:11:53 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/hCspEVvRTuQ_TqVFYHUQIinOQ2A>
Subject: [Ntp] Protocol Action: 'Message Authentication Code for the Network Time Protocol' to Proposed Standard (draft-ietf-ntp-mac-06.txt)
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
List-Id: <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, 11 Feb 2019 17:11:54 -0000

The IESG has approved the following document:
- 'Message Authentication Code for the Network Time Protocol'
  (draft-ietf-ntp-mac-06.txt) as Proposed Standard

This document is the product of the Network Time Protocol Working Group.

The IESG contact persons are Suresh Krishnan and Terry Manderson.

A URL of this Internet Draft is:
https://datatracker.ietf.org/doc/draft-ietf-ntp-mac/





Technical Summary

RFC 5905 [RFC5905] states that Network Time Protocol (NTP) packets  should be authenticated by appending a 128-bit key to the NTP data, and hashing the result with MD5 to obtain a 128-bit tag.  This document deprecates MD5-based authentication, which is considered to be too weak, and recommends the use of AES-CMAC [RFC4493] as a replacement. 

Working Group Summary

The document has clear working group consensus for publication, and has been reviewed by several WG participants since its initial adoption as a working group item. 

Document Quality

This document has been reviewed and revised several times during its development. There were no specific external expert reviews conducted. 

Personnel

Karen O'Donoghue is acting as the Document Shepherd.  Suresh Krishnan is the Responsible Area Director. 


From nobody Mon Feb 11 22:20:35 2019
Return-Path: <internet-drafts@ietf.org>
X-Original-To: ntp@ietf.org
Delivered-To: ntp@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 651821274D0; Mon, 11 Feb 2019 22:20:33 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: <i-d-announce@ietf.org>
Cc: ntp@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 6.91.0
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: ntp@ietf.org
Message-ID: <154995243332.29588.4962582841705334593@ietfa.amsl.com>
Date: Mon, 11 Feb 2019 22:20:33 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/_QiZ1Yvp3lfEdyy6Kxv0evztreA>
Subject: [Ntp] I-D Action: draft-ietf-ntp-packet-timestamps-06.txt
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
List-Id: <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: Tue, 12 Feb 2019 06:20:34 -0000

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Network Time Protocol WG of the IETF.

        Title           : Guidelines for Defining Packet Timestamps
        Authors         : Tal Mizrahi
                          Joachim Fabini
                          Al Morton
	Filename        : draft-ietf-ntp-packet-timestamps-06.txt
	Pages           : 19
	Date            : 2019-02-11

Abstract:
   Various network protocols make use of binary-encoded timestamps that
   are incorporated in the protocol packet format, referred to as packet
   timestamps for short.  This document specifies guidelines for
   defining packet timestamp formats in networking protocols at various
   layers.  It also presents three recommended timestamp formats.  The
   target audience of this memo includes network protocol designers.  It
   is expected that a new network protocol that requires a packet
   timestamp will, in most cases, use one of the recommended timestamp
   formats.  If none of the recommended formats fits the protocol
   requirements, the new protocol specification should specify the
   format of the packet timestamp according to the guidelines in this
   document.

   The rationale behind defining a relatively small set of recommended
   formats is that it enables significant reuse; network protocols can
   typically reuse the timestamp format of the Network Time Protocol
   (NTP) or the Precision Time Protocol (PTP), allowing a
   straightforward integration with an NTP or a PTP-based timer.
   Moreover, since accurate timestamping mechanisms are often
   implemented in hardware, a new network protocol that reuses an
   existing timestamp format can be quickly deployed using existing
   hardware timestamping capabilities.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ietf-ntp-packet-timestamps/

There are also htmlized versions available at:
https://tools.ietf.org/html/draft-ietf-ntp-packet-timestamps-06
https://datatracker.ietf.org/doc/html/draft-ietf-ntp-packet-timestamps-06

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-ietf-ntp-packet-timestamps-06


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/


From nobody Mon Feb 11 22:23:18 2019
Return-Path: <tal.mizrahi.phd@gmail.com>
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 9D7A0129A87 for <ntp@ietfa.amsl.com>; Mon, 11 Feb 2019 22:23:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WBE-NEEPI_fh for <ntp@ietfa.amsl.com>; Mon, 11 Feb 2019 22:23:15 -0800 (PST)
Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 504411274D0 for <ntp@ietf.org>; Mon, 11 Feb 2019 22:23:15 -0800 (PST)
Received: by mail-qk1-x736.google.com with SMTP id u188so8042218qkh.8 for <ntp@ietf.org>; Mon, 11 Feb 2019 22:23:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to;  bh=6UW7eFBaCSNoGzhUpEiepAZGCnAQ72Xyqo6ihrgx9dY=; b=VQSVvKvhSrQCm500meiMHVn6/k60qAJz4XKysXc2It8QSqHU710FTTRdKVeQTg7eZV bBslh5PzH6o5dmU8mXB3l9ZPjfjmWAiCZXbxgMXLXLVZWNmcCHvFoIlP1iwVOlY7hBzi h5SvWcDwk5YneMqWTEcfM+6Tqbg+if7NKffRZYgsxLAuZt6sBEbdH5PtTDjYeIS6ByV9 qEUZPIoGWo9Qol6zlghcPlhf7Ggbrn9KBo+ZScjeFV9J1skqQ8JdG+H63BRVH1cZxT5R +mG/kNhM3MjJaEzPVFIsZaUobzWfdB0xMiHspprFQ74tv+Qb3Pd3LjhQQLtg+ZUDcE9G HSww==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=6UW7eFBaCSNoGzhUpEiepAZGCnAQ72Xyqo6ihrgx9dY=; b=RwJHZVWLWRI/1EJ+VzbW7saoK0FQTifnTMIfQ3Gx2tPuoVr5k+CKplB0+R48nyxC2s /kbN0El4yYtg9b9m3Z3OiNsMETjpAK+7gli0hksRSYgxS0FujCMVpt/xXQ/yLJ0/0FbG qSnp56HlUIiZA6GmEbVy5qY+8/DSGo+3WStUqHrjLd9YJAPOpmi9uZuJZ6+O01W4eLRq o+iR33/AEyBU4AB+dgHAT1IHkq7J1Z9j8erWNl9kaQWw5jSkEzFhRuHwPjI0GqysWnmw ccF84Z46sjbGSs33v/p9BuhLKy+D16DWvtQ/jsiF+49FpRkH9f0WAzk26joftSMzKIA/ +ivg==
X-Gm-Message-State: AHQUAubIU6XaCEPNcjHhjmUdCVehJzRnlTPhwat5mhKkEviiRJVAxzSV lL+t0Qn+N7E0HQ81gTU8rif8OsknxrtdEDig2QjyAI5l
X-Google-Smtp-Source: AHgI3IYm3COz2ZF9vn9lM/ald1Mwhcrq0Cla5qniPdPh9VgY5uLlOYjt3jr3NlAHK9KikKxvRbfyCFEowUfmoLIm0HE=
X-Received: by 2002:a37:8b41:: with SMTP id n62mr1472156qkd.262.1549952594138;  Mon, 11 Feb 2019 22:23:14 -0800 (PST)
MIME-Version: 1.0
References: <154995243332.29588.4962582841705334593@ietfa.amsl.com>
In-Reply-To: <154995243332.29588.4962582841705334593@ietfa.amsl.com>
From: Tal Mizrahi <tal.mizrahi.phd@gmail.com>
Date: Tue, 12 Feb 2019 08:23:01 +0200
Message-ID: <CABUE3X=bsbgqDGhor6bu9JtxCr+DDh30ZP+wBjmgwWg5rZ6xJg@mail.gmail.com>
To: ntp@ietf.org
Content-Type: multipart/alternative; boundary="000000000000cadad50581ac75c2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/oUDL4SuK5uqjgQKq2k4ZP3WfGsY>
Subject: Re: [Ntp] I-D Action: draft-ietf-ntp-packet-timestamps-06.txt
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Tue, 12 Feb 2019 06:23:18 -0000

--000000000000cadad50581ac75c2
Content-Type: text/plain; charset="UTF-8"

Hi,

We have submitted version 06, which addresses the latest comments from
Daniel and Greg.
With that we believe we have resolved all the comments from WG LC.

Thanks,
The authors.

On Tue, Feb 12, 2019 at 8:20 AM <internet-drafts@ietf.org> wrote:

>
> A New Internet-Draft is available from the on-line Internet-Drafts
> directories.
> This draft is a work item of the Network Time Protocol WG of the IETF.
>
>         Title           : Guidelines for Defining Packet Timestamps
>         Authors         : Tal Mizrahi
>                           Joachim Fabini
>                           Al Morton
>         Filename        : draft-ietf-ntp-packet-timestamps-06.txt
>         Pages           : 19
>         Date            : 2019-02-11
>
> Abstract:
>    Various network protocols make use of binary-encoded timestamps that
>    are incorporated in the protocol packet format, referred to as packet
>    timestamps for short.  This document specifies guidelines for
>    defining packet timestamp formats in networking protocols at various
>    layers.  It also presents three recommended timestamp formats.  The
>    target audience of this memo includes network protocol designers.  It
>    is expected that a new network protocol that requires a packet
>    timestamp will, in most cases, use one of the recommended timestamp
>    formats.  If none of the recommended formats fits the protocol
>    requirements, the new protocol specification should specify the
>    format of the packet timestamp according to the guidelines in this
>    document.
>
>    The rationale behind defining a relatively small set of recommended
>    formats is that it enables significant reuse; network protocols can
>    typically reuse the timestamp format of the Network Time Protocol
>    (NTP) or the Precision Time Protocol (PTP), allowing a
>    straightforward integration with an NTP or a PTP-based timer.
>    Moreover, since accurate timestamping mechanisms are often
>    implemented in hardware, a new network protocol that reuses an
>    existing timestamp format can be quickly deployed using existing
>    hardware timestamping capabilities.
>
>
> The IETF datatracker status page for this draft is:
> https://datatracker.ietf.org/doc/draft-ietf-ntp-packet-timestamps/
>
> There are also htmlized versions available at:
> https://tools.ietf.org/html/draft-ietf-ntp-packet-timestamps-06
> https://datatracker.ietf.org/doc/html/draft-ietf-ntp-packet-timestamps-06
>
> A diff from the previous version is available at:
> https://www.ietf.org/rfcdiff?url2=draft-ietf-ntp-packet-timestamps-06
>
>
> Please note that it may take a couple of minutes from the time of
> submission
> until the htmlized version and diff are available at tools.ietf.org.
>
> Internet-Drafts are also available by anonymous FTP at:
> ftp://ftp.ietf.org/internet-drafts/
>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
>

--000000000000cadad50581ac75c2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>We have submitted version 06, which=
 addresses the latest comments from Daniel and Greg.</div><div>With that we=
 believe we have resolved all the comments from WG LC.</div><div><br></div>=
<div>Thanks,</div><div>The authors.<br></div></div><br><div class=3D"gmail_=
quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Feb 12, 2019 at 8:20 A=
M &lt;<a href=3D"mailto:internet-drafts@ietf.org">internet-drafts@ietf.org<=
/a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><=
br>
A New Internet-Draft is available from the on-line Internet-Drafts director=
ies.<br>
This draft is a work item of the Network Time Protocol WG of the IETF.<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Title=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:=
 Guidelines for Defining Packet Timestamps<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Authors=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: Tal =
Mizrahi<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 Joachim Fabini<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 Al Morton<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Filename=C2=A0 =C2=A0 =C2=A0 =C2=A0 : draft-iet=
f-ntp-packet-timestamps-06.txt<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Pages=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:=
 19<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Date=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :=
 2019-02-11<br>
<br>
Abstract:<br>
=C2=A0 =C2=A0Various network protocols make use of binary-encoded timestamp=
s that<br>
=C2=A0 =C2=A0are incorporated in the protocol packet format, referred to as=
 packet<br>
=C2=A0 =C2=A0timestamps for short.=C2=A0 This document specifies guidelines=
 for<br>
=C2=A0 =C2=A0defining packet timestamp formats in networking protocols at v=
arious<br>
=C2=A0 =C2=A0layers.=C2=A0 It also presents three recommended timestamp for=
mats.=C2=A0 The<br>
=C2=A0 =C2=A0target audience of this memo includes network protocol designe=
rs.=C2=A0 It<br>
=C2=A0 =C2=A0is expected that a new network protocol that requires a packet=
<br>
=C2=A0 =C2=A0timestamp will, in most cases, use one of the recommended time=
stamp<br>
=C2=A0 =C2=A0formats.=C2=A0 If none of the recommended formats fits the pro=
tocol<br>
=C2=A0 =C2=A0requirements, the new protocol specification should specify th=
e<br>
=C2=A0 =C2=A0format of the packet timestamp according to the guidelines in =
this<br>
=C2=A0 =C2=A0document.<br>
<br>
=C2=A0 =C2=A0The rationale behind defining a relatively small set of recomm=
ended<br>
=C2=A0 =C2=A0formats is that it enables significant reuse; network protocol=
s can<br>
=C2=A0 =C2=A0typically reuse the timestamp format of the Network Time Proto=
col<br>
=C2=A0 =C2=A0(NTP) or the Precision Time Protocol (PTP), allowing a<br>
=C2=A0 =C2=A0straightforward integration with an NTP or a PTP-based timer.<=
br>
=C2=A0 =C2=A0Moreover, since accurate timestamping mechanisms are often<br>
=C2=A0 =C2=A0implemented in hardware, a new network protocol that reuses an=
<br>
=C2=A0 =C2=A0existing timestamp format can be quickly deployed using existi=
ng<br>
=C2=A0 =C2=A0hardware timestamping capabilities.<br>
<br>
<br>
The IETF datatracker status page for this draft is:<br>
<a href=3D"https://datatracker.ietf.org/doc/draft-ietf-ntp-packet-timestamp=
s/" rel=3D"noreferrer" target=3D"_blank">https://datatracker.ietf.org/doc/d=
raft-ietf-ntp-packet-timestamps/</a><br>
<br>
There are also htmlized versions available at:<br>
<a href=3D"https://tools.ietf.org/html/draft-ietf-ntp-packet-timestamps-06"=
 rel=3D"noreferrer" target=3D"_blank">https://tools.ietf.org/html/draft-iet=
f-ntp-packet-timestamps-06</a><br>
<a href=3D"https://datatracker.ietf.org/doc/html/draft-ietf-ntp-packet-time=
stamps-06" rel=3D"noreferrer" target=3D"_blank">https://datatracker.ietf.or=
g/doc/html/draft-ietf-ntp-packet-timestamps-06</a><br>
<br>
A diff from the previous version is available at:<br>
<a href=3D"https://www.ietf.org/rfcdiff?url2=3Ddraft-ietf-ntp-packet-timest=
amps-06" rel=3D"noreferrer" target=3D"_blank">https://www.ietf.org/rfcdiff?=
url2=3Ddraft-ietf-ntp-packet-timestamps-06</a><br>
<br>
<br>
Please note that it may take a couple of minutes from the time of submissio=
n<br>
until the htmlized version and diff are available at <a href=3D"http://tool=
s.ietf.org" rel=3D"noreferrer" target=3D"_blank">tools.ietf.org</a>.<br>
<br>
Internet-Drafts are also available by anonymous FTP at:<br>
<a href=3D"ftp://ftp.ietf.org/internet-drafts/" rel=3D"noreferrer" target=
=3D"_blank">ftp://ftp.ietf.org/internet-drafts/</a><br>
<br>
_______________________________________________<br>
ntp mailing list<br>
<a href=3D"mailto:ntp@ietf.org" target=3D"_blank">ntp@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/ntp" rel=3D"noreferrer" ta=
rget=3D"_blank">https://www.ietf.org/mailman/listinfo/ntp</a><br>
</blockquote></div>

--000000000000cadad50581ac75c2--


From nobody Tue Feb 12 05:33:15 2019
Return-Path: <alissa@cooperw.in>
X-Original-To: ntp@ietf.org
Delivered-To: ntp@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id EE8A1128701; Tue, 12 Feb 2019 05:33:04 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: Alissa Cooper <alissa@cooperw.in>
To: "The IESG" <iesg@ietf.org>
Cc: draft-ietf-ntp-bcp@ietf.org, Karen O'Donoghue <odonoghue@isoc.org>, ntp-chairs@ietf.org, odonoghue@isoc.org, ntp@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 6.91.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <154997838497.8241.14193127415980960618.idtracker@ietfa.amsl.com>
Date: Tue, 12 Feb 2019 05:33:04 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/IHjIqh3yrBND4ncUxxUO9axOD4o>
Subject: [Ntp] Alissa Cooper's No Objection on draft-ietf-ntp-bcp-12: (with COMMENT)
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
List-Id: <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: Tue, 12 Feb 2019 13:33:05 -0000

Alissa Cooper has entered the following ballot position for
draft-ietf-ntp-bcp-12: No Objection

When responding, please keep the subject line intact and reply to all
email addresses included in the To and CC lines. (Feel free to cut this
introductory paragraph, however.)


Please refer to https://www.ietf.org/iesg/statement/discuss-criteria.html
for more information about IESG DISCUSS and COMMENT positions.


The document, along with other ballot positions, can be found here:
https://datatracker.ietf.org/doc/draft-ietf-ntp-bcp/



----------------------------------------------------------------------
COMMENT:
----------------------------------------------------------------------

Thanks for addressing my DISCUSS. Previous COMMENT:

Section 2.1:

s/BCP 38 [RFC2827] was approved/BCP 38 [RFC2827] was published/ (presumably the
approval was not the seminal thing)

"It is RECOMMENDED that large corporate networks (and ISP's of any size)
implement ingress and egress filtering."

I'm not really sure what the parentheses are meant to imply here. If this is a
normative recommendation for both ISPs and large corporate networks, why
doesn't it say "ISPs and large corporate networks"?

Section 3.2:

"If time sources do not generally agree, find out the cause and either
   correct the problems or stop using defective servers."

It seems odd to frame this as a directive, especially in a paragraph where the
subject is made explicit ("operators"). I think this would make more sense if
it said "operators should find out" or "operators ought to find out."

Section 3.3:

Please fix the sentence highlighted by the Gen-ART reviewer.

Section 3.4:

"To provide protection for such abuse NTP server
   operators on large networks SHOULD deploy ingress filtering in
   accordance with BCP 38 [RFC2827]."

Why is this recommendation limited to large networks, whereas the normative
recommendation to do ingress and egress filtering in Section 2.1 applies to
ISPs of any size?

Section 3.6:

I agree with the Gen-ART reviewer that the use of "you" is inappropriate here
and should be replaced by a noun (e.g., "operators").

Section 4.1:

"Therefore, for each association, keys SHOULD be exchanged securely by external
   means, and they SHOULD be protected from disclosure."

I recognize that this is outside the bounds of the protocol, but if this
document is a BCP that is going to make these normative recommendations for
what they're worth, shouldn't they be MUSTs? If not, what are the exceptional
cases where the exchange of these keys shouldn't be secure and confidential?

Section 4.2:

Same question as Section 4.1.

Section 5:

Same comment as Section 3.2. The subject to which the directive is being given
should be named.

Section 5.2:

"It is likely to become the default behavior in other
       systems as they migrate legacy init scripts to process
       supervisors such as systemd."

For posterity it may be better to say, "At the time of this writing, it appears
likely to ..."

"Operators SHOULD be aware that when operating with the above two
   conditions, the panic threshold offers no protection from attacks."

I don't think it's appropriate to use normative language about being aware.

Section 6.1:

"Vendors of embedded devices MUST pay attention to the current state
   of protocol security issues and bugs in their chosen implementation."

Same comment as 5.2, it's inappropriate to normatively require paying attention.

Section 6.2.1:

"For more information, visit ..."

Same comment as 3.2 and 5 -- this sentence needs a subject.



From nobody Tue Feb 12 16:49:24 2019
Return-Path: <aanchal4@bu.edu>
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 E952C130EAA for <ntp@ietfa.amsl.com>; Tue, 12 Feb 2019 16:49:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.198
X-Spam-Level: 
X-Spam-Status: No, score=-4.198 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vQgaFFQQtsaH for <ntp@ietfa.amsl.com>; Tue, 12 Feb 2019 16:49:19 -0800 (PST)
Received: from relay73.bu.edu (relay73.bu.edu [128.197.228.173]) (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 DEA1D130E11 for <ntp@ietf.org>; Tue, 12 Feb 2019 16:49:18 -0800 (PST)
X-Envelope-From: aanchal4@bu.edu
Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay73.bu.edu (8.14.3/8.14.3) with ESMTP id x1D0n2bJ025607 for <ntp@ietf.org>; Tue, 12 Feb 2019 19:49:03 -0500
Received: by mail-lj1-f198.google.com with SMTP id j24-v6so145406ljb.13 for <ntp@ietf.org>; Tue, 12 Feb 2019 16:49:03 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UEF5GbYGBX6Gw+45yWFDxhc6S3OlSr75uoesgyE7W9w=; b=GVcWh0AWa4lBgExIQ5+4OGaWnwIomeA0k1hZsiC6yJqabKZKv4pVUieFDNyxHhuyC7 dhb9ENXZR5ePNhoCYK8eYMPMm2O7hR08CuJB4+gqYIKmZVC6JBnkSnMPQZIS+kfRw9Z1 skk1/FDHDAv2hZROZTD9zV/ZXoXmBWbXp2osuIk7LjOodk5oxwDxMROG/4lO+h8ZlpJQ fCP5EBDjb7eWZJpKOzpR8HlnmLfJEgB4HAvZoNp+9uWZtUvmo44xbTi303JZcnB1jpg1 W6TKC1Vo8U/K/Fnb5bQOe1sufI2SccSuWLn15spZ+dqb7s6luQ1iULkT2AWOqAjHrcE7 uF1Q==
X-Gm-Message-State: AHQUAuZkQchBFAqMc34+e+2Pg/sXDElgpeX2BQA+L2xyE6Ksq+E6Kpo8 9PBC+Cbcy3Lc5tHdMywPjIDsElXnamn5to4pXjp2CfdjNUOtV/hAlN0FgVW/5sTpF9zb7X22dVg seBd5fRm6rXubkKN7LCFG
X-Received: by 2002:a2e:6e09:: with SMTP id j9-v6mr3764316ljc.118.1550018942410;  Tue, 12 Feb 2019 16:49:02 -0800 (PST)
X-Google-Smtp-Source: AHgI3IasomRgn5zZkaV8tdf2ELP5uxbly2KoWK18K9YiYRjjo5nU/teJmCaww5G/j4ZdOVTRHceWi2n8Na6Pv0LlpNs=
X-Received: by 2002:a2e:6e09:: with SMTP id j9-v6mr3764309ljc.118.1550018942040;  Tue, 12 Feb 2019 16:49:02 -0800 (PST)
MIME-Version: 1.0
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com> <CAJm83bARWr_z=Jp7yO+CFYzjJd-Sj5BJrFY_tOaKyR+3nxZCWg@mail.gmail.com>
In-Reply-To: <CAJm83bARWr_z=Jp7yO+CFYzjJd-Sj5BJrFY_tOaKyR+3nxZCWg@mail.gmail.com>
From: Aanchal Malhotra <aanchal4@bu.edu>
Date: Tue, 12 Feb 2019 16:48:50 -0800
Message-ID: <CAMbs7kuMh0AuLBY1znhLN3+ZuX-xvkuitOCnZjedzzhjY7dF0Q@mail.gmail.com>
To: Daniel Franke <dfoxfranke@gmail.com>
Cc: ntp@ietf.org, ntp-chairs@ietf.org
Content-Type: multipart/alternative; boundary="0000000000006f93030581bbe8e0"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/1CeHjdewRlsL0pzM6ZfaU-udGg0>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 00:49:22 -0000

--0000000000006f93030581bbe8e0
Content-Type: text/plain; charset="UTF-8"

Hi Daniel,

Thanks for the comment.

We agree to the general idea. However, I am not sure if I follow the
concrete idea. More specifically, I am not sure if I understand the intent
for separate message types for querying and communicating the historical
leap seconds & how does it create a malfeasance-evident mechanism for
distribution of leap second data. Can you please elaborate?

On Fri, Feb 8, 2019 at 2:48 PM Daniel Franke <dfoxfranke@gmail.com> wrote:

> I think we can do better than to send smeared time on the wire. Let
> timestamps be TAI-based, and let each response contain, in addition to
> the timestamp, the most-recently-published leap second (which could be
> in the past or could be in the future). Data for a leap second
> consists of a sequence number, a bit indicating whether it is an
> insertion or a deletion, the TAI time at which the leap second ends,
> and what the TAI-UTC offset will be after the leap second has elapsed.

Also provide separate message types for querying and communicating
> historical leap seconds.


> This will allow clients to decide as a matter of policy how and
> whether to smear, rather than baking the decision into protocol
> mechanism. Furthermore, it creates a malfeasance-evident mechanism for
> distribution of leap second data, thus filling what is presently a
> void.
>
> On Fri, Feb 8, 2019 at 5:12 PM Aanchal Malhotra <aanchal4@bu.edu> wrote:
> >
> > Hi All,
> >
> > We have put together a draft for Roughtime. We encourage folks here to
> have a look at the draft and see if they think that there is a value in
> adopting/implementing it and would be interested to do so.
> >
> >  https://tools.ietf.org/html/draft-roughtime-aanchal-00
> >
> > Best,
> > Aanchal.
> >
> >
> > _______________________________________________
> > ntp mailing list
> > ntp@ietf.org
> > https://www.ietf.org/mailman/listinfo/ntp
>

--0000000000006f93030581bbe8e0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">Hi Daniel,<div><br></div><div>Thanks for =
the comment.=C2=A0</div><div><br></div><div>We agree to the general idea. H=
owever, I am not sure if I follow the concrete idea. More specifically, I a=
m not sure if I understand the intent for separate message types for queryi=
ng and communicating the historical leap seconds &amp; how does it create a=
 malfeasance-evident mechanism for distribution of leap second data. Can yo=
u please elaborate?</div><div><br></div></div><div class=3D"gmail_quote"><d=
iv dir=3D"ltr" class=3D"gmail_attr">On Fri, Feb 8, 2019 at 2:48 PM Daniel F=
ranke &lt;<a href=3D"mailto:dfoxfranke@gmail.com">dfoxfranke@gmail.com</a>&=
gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I thi=
nk we can do better than to send smeared time on the wire. Let<br>
timestamps be TAI-based, and let each response contain, in addition to<br>
the timestamp, the most-recently-published leap second (which could be<br>
in the past or could be in the future). Data for a leap second<br>
consists of a sequence number, a bit indicating whether it is an<br>
insertion or a deletion, the TAI time at which the leap second ends,<br>
and what the TAI-UTC offset will be after the leap second has elapsed.=C2=
=A0</blockquote><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0=
px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Also provide separate message types for querying and communicating<br>
historical leap seconds.</blockquote><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddin=
g-left:1ex">
<br>
This will allow clients to decide as a matter of policy how and<br>
whether to smear, rather than baking the decision into protocol<br>
mechanism. Furthermore, it creates a malfeasance-evident mechanism for<br>
distribution of leap second data, thus filling what is presently a<br>
void.<br>
<br>
On Fri, Feb 8, 2019 at 5:12 PM Aanchal Malhotra &lt;<a href=3D"mailto:aanch=
al4@bu.edu" target=3D"_blank">aanchal4@bu.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi All,<br>
&gt;<br>
&gt; We have put together a draft for Roughtime. We encourage folks here to=
 have a look at the draft and see if they think that there is a value in ad=
opting/implementing it and would be interested to do so.<br>
&gt;<br>
&gt;=C2=A0 <a href=3D"https://tools.ietf.org/html/draft-roughtime-aanchal-0=
0" rel=3D"noreferrer" target=3D"_blank">https://tools.ietf.org/html/draft-r=
oughtime-aanchal-00</a><br>
&gt;<br>
&gt; Best,<br>
&gt; Aanchal.<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; ntp mailing list<br>
&gt; <a href=3D"mailto:ntp@ietf.org" target=3D"_blank">ntp@ietf.org</a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/ntp" rel=3D"noreferre=
r" target=3D"_blank">https://www.ietf.org/mailman/listinfo/ntp</a><br>
</blockquote></div></div>

--0000000000006f93030581bbe8e0--


From nobody Tue Feb 12 16:59:13 2019
Return-Path: <mayer@ntp.org>
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 CF69D130EB0 for <ntp@ietfa.amsl.com>; Tue, 12 Feb 2019 16:59:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.235
X-Spam-Level: 
X-Spam-Status: No, score=-1.235 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_SOFTFAIL=0.665] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VosyMNT_DEW0 for <ntp@ietfa.amsl.com>; Tue, 12 Feb 2019 16:59:11 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [66.220.13.234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1DF0B130EA7 for <ntp@ietf.org>; Tue, 12 Feb 2019 16:59:11 -0800 (PST)
Received: from [10.10.10.122] (pool-71-174-223-53.bstnma.east.verizon.net [71.174.223.53]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 43zh4G3FbpzL7P for <ntp@ietf.org>; Wed, 13 Feb 2019 00:59:10 +0000 (UTC)
From: Danny Mayer <mayer@ntp.org>
To: "ntp@ietf.org" <ntp@ietf.org>
Message-ID: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org>
Date: Tue, 12 Feb 2019 19:59:08 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------BAC7CC96D5982C8F15DF0D6D"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/GtvyWAR1Bbx4p6CcyXKkl_Ro9hM>
Subject: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 00:59:12 -0000

This is a multi-part message in MIME format.
--------------BAC7CC96D5982C8F15DF0D6D
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

I'd just like to reiterate what I said in the virtual interim meeting
during the roughtime discussion that any server that steps their clock
backwards is fundamentally broken and breaks the NTP protocol. It does
not matter where it's broken, if Posix, the O/S, or elsewhere.

Any such server should not be used as a source of NTP packets and should
be avoided at all costs.

Danny




--------------BAC7CC96D5982C8F15DF0D6D
Content-Type: application/pgp-keys;
 name="pEpkey.asc"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="pEpkey.asc"

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFuvm5wBCAC9DxF2vFcA4FES0ajbbUz/YPUHec/4/4QaZnXjEBNUCcYqRKhD
sGrabF7b1IVW2VV00dKDk9Hxk2cZ0OtDAoTFVozlhMPQbbQHW5FCUCmvmOUfTcqj
nYSXjt3UULLvKoZhPwteuoZEBVno+SkiMYbkCVUyEvjgcQyMAOdFdJbKS3lKqU7t
8OxIgsH5lHdddMcOGDvYYREsRhd3tTwFwssvg91I2Xh+b7x7EPoIqptcopLc2oGe
X3ccuXZuqKqRNTViODIBT79bxenl38y4+uSgYoZSGNCXJe83W7JMXf5TmeTbzaxo
Jsw93kXH71y2Db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6DEG6qn8DWexV2E
Pt05ia53cvvyxvpUaB3wuiEdr/1PrbuR97PHx0NCMtp/FzYjG/eNuLUFV2lZDoRV
dK4h8koE7c0KQGBwGG0nGUtF471Ku/vtxDQeoPtM632JsbeM4QLHAnOU9j40xmY3
E3hvVpa0zK9NawoMTYVgEWSmQtIvdPiB6e666CCITdysMwOvKoOx40Bl0eFW53yh
gyy1dtRL7uCTCplSQ9MWru0+GDfxwWk2C5zmNFfs+/ldZ0xYSsN9UYXuHLuK
=3DS/5P
-----END PGP PUBLIC KEY BLOCK-----


--------------BAC7CC96D5982C8F15DF0D6D--


From nobody Tue Feb 12 17:22:37 2019
Return-Path: <watson@cloudflare.com>
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 0DEEF130EA7 for <ntp@ietfa.amsl.com>; Tue, 12 Feb 2019 17:22:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level: 
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cloudflare.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bQ8Fg6UjzYq0 for <ntp@ietfa.amsl.com>; Tue, 12 Feb 2019 17:22:33 -0800 (PST)
Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 32F04124B0C for <ntp@ietf.org>; Tue, 12 Feb 2019 17:22:33 -0800 (PST)
Received: by mail-qt1-x831.google.com with SMTP id y20so754606qtm.13 for <ntp@ietf.org>; Tue, 12 Feb 2019 17:22:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1o7oghgfQ4ifzoI/Gi6ovgCGHNlkWkBk3kjzw3JJbJ8=; b=k9Kz2ZA6z5SlabGd7h/XM9akWODO4XtvBR8BwCROAUo+zUWTYqxzZRRImWhJRuWzQX mCKz5MTY7zOW7qLdbWiCdHH1XBgXnfYcl3IKTpdfjKA0YIK6LUw8v86apJAlelXkmfhF arnePJWYS/3xQHjTYMrByL2baxq+EwsQTvz08=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1o7oghgfQ4ifzoI/Gi6ovgCGHNlkWkBk3kjzw3JJbJ8=; b=Yc06X2QHbfMPkZiRdK/mdXLA0dZYaPPeDFgmViFsonpecGYJVO/5PsE39OsMwv/pVf sSxw5fOKFfMmCDtvwT5DQddABqTlcxp6pp65VTHaaUb0OtC4vAe2OxMoEnluiB10gW6R ri5Gw9BMCJda2ZTFQCp3vAYXae0ZAm3Dv5vrLAKaLa9ou7WDaGPzNrzpvs+78AhyZf0A BTM54qWkQalCNhLbsda3QwHakeY4hNG3WPkHuYQJ2CLd2jkxT/hlFwOlqap/81U7cZme IxUDwqdmcBxlwsD3ACt60vJ1nprCGdb1PPnDxbUrNc8bj2kL1VWfMVgmBciVcS0hhQsV P7Ow==
X-Gm-Message-State: AHQUAuYmgEeSqxYul/GbiuYoH5TqS87tvhB8rTjmHPqNHRHtxc95A9Yp qswHJFJBnwo+YZG4x1OvHwILff277wZGKnbEMUVw8Q==
X-Google-Smtp-Source: AHgI3IYikrDcky1rc733tylMeYiph8VsHFs7pGLk1B5Igtb1hYQmXArRRt+wx/G6ht8UqgWRPyHNO86OvBv8zbTigCQ=
X-Received: by 2002:aed:3907:: with SMTP id l7mr5246713qte.65.1550020952323; Tue, 12 Feb 2019 17:22:32 -0800 (PST)
MIME-Version: 1.0
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org>
In-Reply-To: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org>
From: Watson Ladd <watson@cloudflare.com>
Date: Tue, 12 Feb 2019 17:22:21 -0800
Message-ID: <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com>
To: Danny Mayer <mayer@ntp.org>
Cc: "ntp@ietf.org" <ntp@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/CWGMBUt6u2vokZTAd3dpMOCUqAI>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 01:22:35 -0000

What do you believe the NTP UTC timestamp should be of the event drawn
in Figure 3, Annex 3 of
https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!PDF-E.pdf?
What do you believe the timestamp is one second before that?

The problem is not with server monotonicity (which raises questions
about where ntpd gets the time on Linux: we did have an outage from
using the usual time functions) but rather with monotonicity of the
timescale without reference to any given server: it should be
impossible for a casually later event to have an earlier timestamp.
The common interpretation of UTC, as you admit contained is POSIX,
doesn't support that. The idea that UTC NTP timestamps as defined in
NTP v4 are silently spread over a period given by the filter is a
reading not supported by the text: leap second appears exactly once in
it.

It may be that common implementations do this. There are solutions
using a proper hour, minute, second format to this problem. But I
could just use TAI and avoid all these issues: the relevant verbiage
in TF.460-6* is a continuous scale vs. the adjustments made to UTC.

Sincerely,
Watson Ladd

On Tue, Feb 12, 2019 at 4:59 PM Danny Mayer <mayer@ntp.org> wrote:
>
> I'd just like to reiterate what I said in the virtual interim meeting
> during the roughtime discussion that any server that steps their clock
> backwards is fundamentally broken and breaks the NTP protocol. It does
> not matter where it's broken, if Posix, the O/S, or elsewhere.
>
> Any such server should not be used as a source of NTP packets and should
> be avoided at all costs.
>
> Danny
>
>
>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp


From nobody Tue Feb 12 18:53:57 2019
Return-Path: <mayer@ntp.org>
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 622D4130F2B for <ntp@ietfa.amsl.com>; Tue, 12 Feb 2019 18:53:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.234
X-Spam-Level: 
X-Spam-Status: No, score=-1.234 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8nCIZKvW84cl for <ntp@ietfa.amsl.com>; Tue, 12 Feb 2019 18:53:55 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [66.220.13.234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 269091277D2 for <ntp@ietf.org>; Tue, 12 Feb 2019 18:53:55 -0800 (PST)
Received: from [10.10.10.122] (pool-71-174-223-53.bstnma.east.verizon.net [71.174.223.53]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 43zkcf2TZFzL7T; Wed, 13 Feb 2019 02:53:54 +0000 (UTC)
To: Watson Ladd <watson@cloudflare.com>
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com>
From: Danny Mayer <mayer@ntp.org>
Message-ID: <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org>
Date: Tue, 12 Feb 2019 21:53:53 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/z34uqgGaneLlt-L5ldsEW7N5wKk>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 02:53:56 -0000

On 2/12/19 8:22 PM, Watson Ladd wrote:
> What do you believe the NTP UTC timestamp should be of the event drawn
> in Figure 3, Annex 3 of
> https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!PD=
F-E.pdf?
> What do you believe the timestamp is one second before that?

What you are seeing there is that when adding a leap-second into the
stream of ticks they add a 60 just before UTC midnight, they are not
moving the clock back one second. Standard displays and functions of
time cannot show 23:59:60 though they can do 23:59:59 and 00:00:00
(ignoring fractions of a second). This is where reality (or at least our
programmers' ideas of reality) meets theory. Similarly if they were ever
to declare a negative leap-second, there would be no 23:59:59, it would
just go from 23:59:58 to 00:00:00.

This is where things get tricky. To handle a leap-second insertion there
are various different schemes that have been implemented. Almost all of
the involve slowing down the clock, ie reducing the the frequency of the
next ticks from some point before the leap-second is to be inserted
until some point after when normal frequency is restored. The reference
implementation does this one way, Google implemented leap-smear which
does things differently. You can find Dave Mills's documentation on this
here: https://www.eecis.udel.edu/~mills/leap.html and Google's here:
https://developers.google.com/time/smear and there are a number of other
implementations of leap-second smearing.

Dave's document discusses the problems with POSIX's approach and why he
thinks it's wrong.

Interestingly enough RFC5905 has nothing to say about implementing
leap-seconds only that the protocol packet has an indicator that a
leap-second is imminent at the last minute of the current month. We
might want to consider adding guidance on this issue.

In the meantime I believe that at least one of the REFID drafts wants to
add a way of indicating that leap-smear is in effect.=C2=A0 The other iss=
ue
here is what if you don't want leap-smearing so you need to know if the
NTP server providing NTP packets is doing or not doing leap-smearng in
which case you want to drop those packets.

Does this help?

Danny

>
> The problem is not with server monotonicity (which raises questions
> about where ntpd gets the time on Linux: we did have an outage from
> using the usual time functions) but rather with monotonicity of the
> timescale without reference to any given server: it should be
> impossible for a casually later event to have an earlier timestamp.
> The common interpretation of UTC, as you admit contained is POSIX,
> doesn't support that. The idea that UTC NTP timestamps as defined in
> NTP v4 are silently spread over a period given by the filter is a
> reading not supported by the text: leap second appears exactly once in
> it.
>
> It may be that common implementations do this. There are solutions
> using a proper hour, minute, second format to this problem. But I
> could just use TAI and avoid all these issues: the relevant verbiage
> in TF.460-6* is a continuous scale vs. the adjustments made to UTC.
>
> Sincerely,
> Watson Ladd
>
> On Tue, Feb 12, 2019 at 4:59 PM Danny Mayer <mayer@ntp.org> wrote:
>> I'd just like to reiterate what I said in the virtual interim meeting
>> during the roughtime discussion that any server that steps their clock=

>> backwards is fundamentally broken and breaks the NTP protocol. It does=

>> not matter where it's broken, if Posix, the O/S, or elsewhere.
>>
>> Any such server should not be used as a source of NTP packets and shou=
ld
>> be avoided at all costs.
>>
>> Danny
>>
>>
>>
>> _______________________________________________
>> ntp mailing list
>> ntp@ietf.org
>> https://www.ietf.org/mailman/listinfo/ntp
>


From nobody Wed Feb 13 00:20:38 2019
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 5D80D128CB7 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 00:20:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level: 
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iXVZSOd4s2gN for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 00:20:31 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (rrzmta2.uni-regensburg.de [194.94.155.52]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 02EBD12870E for <ntp@ietf.org>; Wed, 13 Feb 2019 00:20:30 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id ADFD07E0C1 for <ntp@ietf.org>; Wed, 13 Feb 2019 09:20:28 +0100 (CET)
Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta2.uni-regensburg.de (Postfix) with ESMTP id 82C337B49F for <ntp@ietf.org>; Wed, 13 Feb 2019 09:20:26 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Wed, 13 Feb 2019 09:20:26 +0100
Message-Id: <5C63D349020000A10002FA5B@gwsmtp1.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.1.0 
Date: Wed, 13 Feb 2019 09:20:25 +0100
From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
To: "Watson Ladd" <watson@cloudflare.com>, "Danny Mayer" <mayer@ntp.org>
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org>
In-Reply-To: <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/pUf8QwuF-pytZuMYAh8EnO5v8go>
Subject: [Ntp] Antw: Re:  Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 08:20:35 -0000

>>> Danny Mayer <mayer@ntp.org> schrieb am 13.02.2019 um 03:53 in =
Nachricht
<4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org>:

> On 2/12/19 8:22 PM, Watson Ladd wrote:
>> What do you believe the NTP UTC timestamp should be of the event drawn
>> in Figure 3, Annex 3 of
>>=20
> https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!PDF-=
E.pd=20
> f?
>> What do you believe the timestamp is one second before that?
>=20
> What you are seeing there is that when adding a leap-second into the
> stream of ticks they add a 60 just before UTC midnight, they are not
> moving the clock back one second. Standard displays and functions of
> time cannot show 23:59:60 though they can do 23:59:59 and 00:00:00
> (ignoring fractions of a second). This is where reality (or at least our
> programmers' ideas of reality) meets theory. Similarly if they were ever
> to declare a negative leap-second, there would be no 23:59:59, it would
> just go from 23:59:58 to 00:00:00.

(while incrementing the day ;-))

>=20
> This is where things get tricky. To handle a leap-second insertion there
> are various different schemes that have been implemented. Almost all of
> the involve slowing down the clock, ie reducing the the frequency of the
> next ticks from some point before the leap-second is to be inserted
> until some point after when normal frequency is restored. The reference
> implementation does this one way, Google implemented leap-smear which
> does things differently. You can find Dave Mills's documentation on this
> here: https://www.eecis.udel.edu/~mills/leap.html and Google's here:
> https://developers.google.com/time/smear and there are a number of other
> implementations of leap-second smearing.

I guess the decision against leap smearing was that "a second should still =
be a second". Otherwise we could continuously smear the second from one =
leap event to the next.

>=20
> Dave's document discusses the problems with POSIX's approach and why he
> thinks it's wrong.
>=20
> Interestingly enough RFC5905 has nothing to say about implementing
> leap-seconds only that the protocol packet has an indicator that a
> leap-second is imminent at the last minute of the current month. We
> might want to consider adding guidance on this issue.

Yes especially as NTPv3 had a clock model to handle that. So unless =
updates, I guess people will stick to that older model.

>=20
> In the meantime I believe that at least one of the REFID drafts wants to
> add a way of indicating that leap-smear is in effect.  The other issue

Personally I think the purpose of REFID is different.

> here is what if you don't want leap-smearing so you need to know if the
> NTP server providing NTP packets is doing or not doing leap-smearng in
> which case you want to drop those packets.

Isn't there agreement that leap-smearing NTP servers actually are not =
RFC-compiant RFC servers?
So I think leap-smearing servers should show them selves as such (maybe =
via extension field), but not "pollutiong" the REFID.

Regards,
Ulrich

>=20
> Does this help?
>=20
> Danny
>=20
>>
>> The problem is not with server monotonicity (which raises questions
>> about where ntpd gets the time on Linux: we did have an outage from
>> using the usual time functions) but rather with monotonicity of the
>> timescale without reference to any given server: it should be
>> impossible for a casually later event to have an earlier timestamp.
>> The common interpretation of UTC, as you admit contained is POSIX,
>> doesn't support that. The idea that UTC NTP timestamps as defined in
>> NTP v4 are silently spread over a period given by the filter is a
>> reading not supported by the text: leap second appears exactly once in
>> it.
>>
>> It may be that common implementations do this. There are solutions
>> using a proper hour, minute, second format to this problem. But I
>> could just use TAI and avoid all these issues: the relevant verbiage
>> in TF.460-6* is a continuous scale vs. the adjustments made to UTC.
>>
>> Sincerely,
>> Watson Ladd
>>
>> On Tue, Feb 12, 2019 at 4:59 PM Danny Mayer <mayer@ntp.org> wrote:
>>> I'd just like to reiterate what I said in the virtual interim meeting
>>> during the roughtime discussion that any server that steps their clock
>>> backwards is fundamentally broken and breaks the NTP protocol. It does
>>> not matter where it's broken, if Posix, the O/S, or elsewhere.
>>>
>>> Any such server should not be used as a source of NTP packets and =
should
>>> be avoided at all costs.
>>>
>>> Danny
>>>
>>>
>>>
>>> _______________________________________________
>>> ntp mailing list
>>> ntp@ietf.org=20
>>> https://www.ietf.org/mailman/listinfo/ntp=20
>>
>=20
> _______________________________________________
> ntp mailing list
> ntp@ietf.org=20
> https://www.ietf.org/mailman/listinfo/ntp=20




From nobody Wed Feb 13 01:18:58 2019
Return-Path: <martin.burnicki@meinberg.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 B2C90130E6E for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 01:18:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.3
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l8brHceBrk8P for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 01:18:53 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5677F128CB7 for <ntp@ietf.org>; Wed, 13 Feb 2019 01:18:53 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id 3D10771C0784; Wed, 13 Feb 2019 10:18:45 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de 3D10771C0784
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1550049530; bh=uC/wioMXcvCrJNtY9MemGbX9HFyGzYHp2cbxfol7S1o=; h=Subject:To:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=K+vKI/eJmIQP23KUPZpt5isxArvcEgJZr7Zd0lPY9PNXvzQ3cRckexXv1NHA+YGeL I2QDeWtszIylRpyy2kPqFRNFGOZwC/nZEcRt4MYW4gxpMgrXU8ePSejovsOytR8asJ jAfGtvi7m1nnOJCFCPvV4aWNxrc0pDHJDb6yShsE=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1210, Stamp: 3], Multi: [Enabled, t: (0.000004,0.002522)], BW: [Enabled, t: (0.000005)], RTDA: [Enabled, t: (0.183393), Hit: No, Details: v2.7.27; Id: 15.1i67ns7.1d3j2derp.l66d], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Wed, 13 Feb 2019 10:18:43 +0100
To: Danny Mayer <mayer@ntp.org>, "ntp@ietf.org" <ntp@ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Openpgp: preference=signencrypt
Autocrypt: addr=martin.burnicki@meinberg.de; prefer-encrypt=mutual; keydata= xsFNBFUJbhwBEADpbjlFJrR+RWZSc5WFFmRVQUFQ+XwgRBrAtTkJyu+xhu6DvD6zq2IgnXQ3 W8pz/MoMMfKWaNOJ1qCxMfd8XrCR1WaO1m98Re9RqB9948ZH2VZIRN0MiLVVYLU0I0EufAUo y5P9TgyRet7Ojuy3j7LqOEjhYpIkkz1XNup2CjfNAN3xxrx8KJJ4iErtLL35X+UyNpHd57tx Y+OzOdBOfweHNyaj1vtY5cAQuzR66hom+gK0YyuXdGDeN5Gb1nvk8H9tj5Fd/VIm4nZdIxam n63Mdk8mQ7dO8f04B0XzhAxF0+B9uZqdC0twUuRvROuDC6eAjO3JganfXvCE6QKTb3rOM8l1 c8bTA/Pg3WF6y2Jnq4Rs4I1SiU9Oy5elr6pJJdhi7RY0b2Lj4l/7SaiwUCyMBX3Gm00sWOYF OU9fYa6cs/I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Gp1+kElwVKj0VzXy0OC6UIQJ3J1on0l ArkcfPTIMcWxGmfGPw==
Organization: Meinberg Funkuhren, Bad Pyrmont, Germany
Message-ID: <0cdf0654-58b5-4452-b8b8-6826f3921f0a@meinberg.de>
Date: Wed, 13 Feb 2019 10:18:43 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/F2xc1oif8cS4Bn_72LXQl5c0Tzk>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 09:18:57 -0000

Danny Mayer wrote:
> I'd just like to reiterate what I said in the virtual interim meeting
> during the roughtime discussion that any server that steps their clock
> backwards is fundamentally broken and breaks the NTP protocol. It does
> not matter where it's broken, if Posix, the O/S, or elsewhere.
> 
> Any such server should not be used as a source of NTP packets and should
> be avoided at all costs.

If this is taken strictly then most Unix operating systems must not be
used as NTP servers since they simply *do* step the time back whenever a
leap second is inserted. :-(

Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy


From nobody Wed Feb 13 01:48:48 2019
Return-Path: <martin.burnicki@meinberg.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 D2B09131031 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 01:48:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.3
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XnvG2Jq2k1Zm for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 01:48:45 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A2844130F65 for <ntp@ietf.org>; Wed, 13 Feb 2019 01:48:44 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id 4E8D171C0A22; Wed, 13 Feb 2019 10:48:35 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de 4E8D171C0A22
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1550051323; bh=b1kpjK5BwXYQtORSSJALQgqEA3y94BEAO3rG2Vgrh8E=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=gRYPBINcXd8GKhuBfFsIdCGioRIR738ezQlMqogdQErXnBkjsYbwvnzmAcG2ubn61 ey1yZE5wyulAFEvGyP5CLY4SBTmRxy6t/KuNsd3qKxe29OrYF/f0W7LMKchrmquAUS K+YAIFYYGKqZIZZdUJhOc/gHkre+NLiqbDQCC2A0=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1210, Stamp: 3], Multi: [Enabled, t: (0.000005,0.008525)], BW: [Enabled, t: (0.000006)], RTDA: [Enabled, t: (0.071143), Hit: No, Details: v2.7.27; Id: 15.1i6d3am.1d3j442tg.a2en], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Wed, 13 Feb 2019 10:48:33 +0100
To: Watson Ladd <watson=40cloudflare.com@dmarc.ietf.org>, Danny Mayer <mayer@ntp.org>
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Openpgp: preference=signencrypt
Autocrypt: addr=martin.burnicki@meinberg.de; prefer-encrypt=mutual; keydata= xsFNBFUJbhwBEADpbjlFJrR+RWZSc5WFFmRVQUFQ+XwgRBrAtTkJyu+xhu6DvD6zq2IgnX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70FnE70nVGICvMgUpmrM4XH1Yr7kt+5cBM583yuJ94rF/hOFHuR4GQWeFR xBSWd41qArjdABIxhZrnMICSW3fMyo9yfiQ6tXoyD1cHD/i2WmOnqCKEOtFScVeQJZJhqQb5 4NBx+viRax9d+X066AKYiBspm7kYwBVzNsng3uHOfyQXnVmcCEawxWIPyCtxSoV6fCKYdAfJ CQeElBXE89inkdGmdb0KLmYkHDoV4L1deAsPUI/t6qZjwqF3pKcr8kdGExqHwvytL8n1KGbY PyJ6Fn1z/idOOiTYgN+Q7FWRRX0QplyVpSBU4OnD0Gd3KkP+a0+kErokA1Lk3/YCE45VT8J8 8f4YGbRsIkf0xW+Ei0fk3fl9VPOrbTD+gFv+AzbT+Gp1+kElwVKj0VzXy0OC6UIQJ3J1on0l ArkcfPTIMcWxGmfGPw==
Organization: Meinberg Funkuhren, Bad Pyrmont, Germany
Message-ID: <ea86e875-054a-3bf6-ad20-b125d1636771@meinberg.de>
Date: Wed, 13 Feb 2019 10:48:33 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/4O18Jkj9SlqKNKhuVpx8TOiGoYE>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 09:48:47 -0000

Watson Ladd wrote:
> What do you believe the NTP UTC timestamp should be of the event drawn
> in Figure 3, Annex 3 of
> https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!PDF-E.pdf?
> What do you believe the timestamp is one second before that?

The usual problem here is that all these nice documents tell you about a
second numbered '60', while in fact the system timestamp (at the kernel
level) is only a number of seconds since an epoch, and fractions of that
second.

IMO the main problem is that there's no commonly used API call that
provides some status information together with the system timestamp.

This is similar to changing the derived local time back by 1 hour at the
end of DST. Only if you know the DST status together with the time (e.g.
2:15 AM) you can distinguish whether "2:15" refers to the first (e.g
2:15 CEST) or second (e.g. 2:15 CET) occurrence.

It's similar with a leap second. Only if there was a leap second status
indicator associated with the system time stamp the runtime library
which converts system timestamps to a human readable time and calendar
date would be able to see that the system time was stepped back due to a
leap second, and could return second "60" for the duplicate second.

> The problem is not with server monotonicity (which raises questions
> about where ntpd gets the time on Linux: we did have an outage from
> using the usual time functions) but rather with monotonicity of the
> timescale without reference to any given server: it should be
> impossible for a casually later event to have an earlier timestamp.
> The common interpretation of UTC, as you admit contained is POSIX,
> doesn't support that. The idea that UTC NTP timestamps as defined in
> NTP v4 are silently spread over a period given by the filter is a
> reading not supported by the text: leap second appears exactly once in
> it.
> 
> It may be that common implementations do this. There are solutions
> using a proper hour, minute, second format to this problem. But I
> could just use TAI and avoid all these issues: the relevant verbiage
> in TF.460-6* is a continuous scale vs. the adjustments made to UTC.

True, but if your system runs on TAI which needs to be converted to UTC
then you have to maintain the TAI/UTC offset. Of course this can be done
by some kind of leap second file, but the problem is to keep this
information continuously updated.

The PTP protocol has been designed to broadcast that offset, but for NTP
this was only possible with an extension to the autokey protocol, which
is now considered obsolete.


Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy


From nobody Wed Feb 13 02:15:37 2019
Return-Path: <martin.burnicki@meinberg.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 B4A19124BAA for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 02:15:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.3
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mMdGzsbothzS for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 02:15:31 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EF8E3124408 for <ntp@ietf.org>; Wed, 13 Feb 2019 02:15:30 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id 0776671C0E36; Wed, 13 Feb 2019 11:15:18 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de 0776671C0E36
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1550052929; bh=jNerQ7d1TibAHP27wdW+XSncpsjY7L8KSFtrTl2Vc+I=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=gbFugfoDBDooSU4XWLS5iXpG/HDXGQPwLrwCHygOFcXemtCXkyLD/vjLTMdhT2VIh bOl8U/ChwqscyTMxP6Rk/R/VsTjpVIv929wkdXoCXuUw3vU5Uh03hToak9FuYSEGE6 HJ8zdlh7D/5q27J9Yv5jBMueyipruMPh8Hh6dAQY=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1210, Stamp: 3], Multi: [Enabled, t: (0.000014,0.007273)], BW: [Enabled, t: (0.000020)], RTDA: [Enabled, t: (0.199793), Hit: No, Details: v2.7.27; Id: 15.1i6d3am.1d3j5ktke.cvj8], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Wed, 13 Feb 2019 11:15:14 +0100
To: Danny Mayer <mayer@ntp.org>, Watson Ladd <watson@cloudflare.com>
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Openpgp: preference=signencrypt
Autocrypt: addr=martin.burnicki@meinberg.de; prefer-encrypt=mutual; keydata= xsFNBFUJ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FJq3eBAdxfGROyFOK9N29FU3hoU+tsYPSKrl3ws3PMg45cyRHLV Rip0xr0yXPYUYb70FnE70nVGICvMgUpmrM4XH1Yr7kt+5cBM583yuJ94rF/hOFHuR4GQWeFR xBSWd41qArjdABIxhZrnMICSW3fMyo9yfiQ6tXoyD1cHD/i2WmOnqCKEOtFScVeQJZJhqQb5 4NBx+viRax9d+X066AKYiBspm7kYwBVzNsng3uHOfyQXnVmcCEawxWIPyCtxSoV6fCKYdAfJ CQeElBXE89inkdGmdb0KLmYkHDoV4L1deAsPUI/t6qZjwqF3pKcr8kdGExqHwvytL8n1KGbY PyJ6Fn1z/idOOiTYgN+Q7FWRRX0QplyVpSBU4OnD0Gd3KkP+a0+kErokA1Lk3/YCE45VT8J8 8f4YGbRsIkf0xW+Ei0fk3fl9VPOrbTD+gFv+AzbT+Gp1+kElwVKj0VzXy0OC6UIQJ3J1on0l ArkcfPTIMcWxGmfGPw==
Organization: Meinberg Funkuhren, Bad Pyrmont, Germany
Message-ID: <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de>
Date: Wed, 13 Feb 2019 11:15:13 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/HeKtGJbVBL2eKRQWQM0UuBE2tCI>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 10:15:34 -0000

Danny Mayer wrote:
> 
> On 2/12/19 8:22 PM, Watson Ladd wrote:
>> What do you believe the NTP UTC timestamp should be of the event drawn
>> in Figure 3, Annex 3 of
>> https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!PDF-E.pdf?
>> What do you believe the timestamp is one second before that?
> 
> What you are seeing there is that when adding a leap-second into the
> stream of ticks they add a 60 just before UTC midnight, they are not
> moving the clock back one second. Standard displays and functions of
> time cannot show 23:59:60 though they can do 23:59:59 and 00:00:00
> (ignoring fractions of a second).

I think they could if they knew the second occurrence of the same second
number is a leap second. See my other email. The firmware used inside
Meinberg devices supports a leap second indicator flag, and thus can
distinguish second "60" from a duplicate "59".

> This is where reality (or at least our
> programmers' ideas of reality) meets theory. Similarly if they were ever
> to declare a negative leap-second, there would be no 23:59:59, it would
> just go from 23:59:58 to 00:00:00.

This case can easily be handled by a conversion routine.

> This is where things get tricky. To handle a leap-second insertion there
> are various different schemes that have been implemented. Almost all of
> the involve slowing down the clock, ie reducing the the frequency of the
> next ticks from some point before the leap-second is to be inserted
> until some point after when normal frequency is restored.

Hm, almost all? ntpd for Windows does this because it has explicitly
implemented in ntpd, and it's ntpd who slews the system time quickly
because the Windows system wouldn't do it at all.

On most Unix-like systems the OS handles a positive leap second by just
stepping the system time, and any application (including ntpd) just
observes that the time is stepped back.

> The reference
> implementation does this one way,

Please note the kind of leap smearing implemented in ntpd does *not*
smear its own internal system time. It just smears the time sent to its
clients.

> Google implemented leap-smear which
> does things differently. You can find Dave Mills's documentation on this
> here: https://www.eecis.udel.edu/~mills/leap.html and Google's here:
> https://developers.google.com/time/smear and there are a number of other
> implementations of leap-second smearing.
> 
> Dave's document discusses the problems with POSIX's approach and why he
> thinks it's wrong.

The POSIX approach is obviously wrong, or at least imperfect, but there
is not much you can do against it in an application.

> Interestingly enough RFC5905 has nothing to say about implementing
> leap-seconds only that the protocol packet has an indicator that a
> leap-second is imminent at the last minute of the current month. We
> might want to consider adding guidance on this issue.
> 
> In the meantime I believe that at least one of the REFID drafts wants to
> add a way of indicating that leap-smear is in effect.

In fact, this has been implemented in the current versions of ntpd. So a
client has at least a chance to determine that leap smearing is in
progress. I don't think, however, that this has been specified in any RFC.

> The other issue
> here is what if you don't want leap-smearing so you need to know if the
> NTP server providing NTP packets is doing or not doing leap-smearng in
> which case you want to drop those packets.

If a client of a leapsecond-smearing ntpd checked the refid accordingly,
it could determine if the server is actually smearing.

On the other hand, if a client polls several servers and only one (or
few) of them smears then the smearing servers would be discarded anyway
as falsetickers.

Smearing is a hack to avoid known problems with clients that have
problems when the system time is stepped back due to a leap second, and
as Heiko wrote, it can hurt the requirement to use accurate legal time
in an application.


Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy


From nobody Wed Feb 13 03:22:41 2019
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 90DF312DDA3 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 03:22:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level: 
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yMbzLKHhzrex for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 03:22:33 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (rrzmta2.uni-regensburg.de [194.94.155.52]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 50D16130E8C for <ntp@ietf.org>; Wed, 13 Feb 2019 03:22:33 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id A0C3D7E57C for <ntp@ietf.org>; Wed, 13 Feb 2019 12:22:30 +0100 (CET)
Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta2.uni-regensburg.de (Postfix) with ESMTP id 92D947E56E for <ntp@ietf.org>; Wed, 13 Feb 2019 12:22:29 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Wed, 13 Feb 2019 12:22:29 +0100
Message-Id: <5C63FDF2020000A10002FA86@gwsmtp1.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.1.0 
Date: Wed, 13 Feb 2019 12:22:26 +0100
From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
To: "ntp@ietf.org" <ntp@ietf.org>,<martin.burnicki@meinberg.de>, "Danny Mayer" <mayer@ntp.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <0cdf0654-58b5-4452-b8b8-6826f3921f0a@meinberg.de>
In-Reply-To: <0cdf0654-58b5-4452-b8b8-6826f3921f0a@meinberg.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/YCXviwx4t7DIVGp1B9vIIl2Td18>
Subject: [Ntp] Antw: Re:  Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 11:22:41 -0000

>>> Martin Burnicki <martin.burnicki@meinberg.de> schrieb am 13.02.2019 um =
10:18 in
Nachricht <0cdf0654-58b5-4452-b8b8-6826f3921f0a@meinberg.de>:

[...]
> If this is taken strictly then most Unix operating systems must not be
> used as NTP servers since they simply *do* step the time back whenever a
> leap second is inserted. :-(

I think it's due to time() returning seconds since the epoch, not counting =
leap seconds. There should be a separate leap seconds counter in UNIX, but =
there isn't.

So when looking at the return value of time() only you MUST see a value =
that's jumping back after having inserted a leap second, even in those =
system who "correctly" handle leap seconds, right?

So Martin, are you saying that most UNIX systems do not know about leap =
seconds at all?

Regards,
Ulrich



From nobody Wed Feb 13 03:29:35 2019
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 C1220130DE7 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 03:29:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level: 
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jf_znJhkuhc1 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 03:29:32 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (rrzmta2.uni-regensburg.de [194.94.155.52]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 431AF128CB7 for <ntp@ietf.org>; Wed, 13 Feb 2019 03:29:32 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 8FDB37E57E for <ntp@ietf.org>; Wed, 13 Feb 2019 12:29:30 +0100 (CET)
Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta2.uni-regensburg.de (Postfix) with ESMTP id 7FC367E5CF for <ntp@ietf.org>; Wed, 13 Feb 2019 12:29:30 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Wed, 13 Feb 2019 12:29:30 +0100
Message-Id: <5C63FF97020000A10002FA90@gwsmtp1.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.1.0 
Date: Wed, 13 Feb 2019 12:29:27 +0100
From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
To: "Watson Ladd" <watson=40cloudflare.com@dmarc.ietf.org>, <martin.burnicki@meinberg.de>,"Danny Mayer" <mayer@ntp.org>
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <ea86e875-054a-3bf6-ad20-b125d1636771@meinberg.de>
In-Reply-To: <ea86e875-054a-3bf6-ad20-b125d1636771@meinberg.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/x4mm9n5Fb--byrcsXlf4YJL7Bq4>
Subject: [Ntp] Antw: Re:  Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 11:29:34 -0000

>>> Martin Burnicki <martin.burnicki@meinberg.de> schrieb am 13.02.2019 um =
10:48 in
Nachricht <ea86e875-054a-3bf6-ad20-b125d1636771@meinberg.de>:
[...]
> The PTP protocol has been designed to broadcast that offset, but for NTP
> this was only possible with an extension to the autokey protocol, which
> is now considered obsolete.

The decision to send the TAI offset in an extension field only if the =
autokey protocol is being used was a very poor design decision actually.  =
Actually it was a reason to use the autokey protocol ;-)

Ulrich



From nobody Wed Feb 13 04:01:18 2019
Return-Path: <watsonbladd@gmail.com>
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 AD0D2130E6E for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 04:01:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sdKo-WA5j9uU for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 04:01:13 -0800 (PST)
Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 48A58128CB7 for <ntp@ietf.org>; Wed, 13 Feb 2019 04:01:13 -0800 (PST)
Received: by mail-lj1-x232.google.com with SMTP id j13-v6so1785254ljc.2 for <ntp@ietf.org>; Wed, 13 Feb 2019 04:01:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CMtzBnrnL31DAOk05+QcXTIo8WSEokvYj1+3BfIlZXI=; b=mjBLZT3RoyVWOdIucDNVUUoFFJ7v1+Q+mhWFp8YshkohnMb4NNUktbvtlNhHzQ2Gbd OIJZqMlnq8FVw5WGg/z9ykbUDlBEQRbbm75SnqLjNbbFWP0pvoegCjaribwB+YDSstTM gwigaD2akdw1PZfpVI09YzdTyifhnpbVRrYk68QTEo4icFaFX1sRJN544XyP5abfWct4 Rj8o8yviKnOBdYjwPXw4ZipyZyr4s1lkznruBfA2YhwkGB75mzgYxvHDEb6Jyq2iHDI6 Tb3AbPvpsbXngyYNr3aa4GrCSJQBk82FKr+vX4gmfsEq6zEJ9FTroVN+N5dyUJMxYfWL PK+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CMtzBnrnL31DAOk05+QcXTIo8WSEokvYj1+3BfIlZXI=; b=F2eGp77TdLeObubSZ+l6ZtFSpt6RijNHay9w33B/+1JDhzGVIKUO47VURmUE2wTGpV luISzkGJVPArVl22E03WBRvSm9IARbXj6VbCj2lsAq78YGDUmhkHN0pK6nCOBT1FZ/NB hhAfcMcKbFqErSggkTvwQ8L8W31Tq6xJMV28iRYvu/gg/0tRgEhHV6J+nKKxX55o4M4E TB0UB7P/LQGUrnKGwj9XpSyQSjczpET0w7YCJOWXAWHVmaEAPDgh2PYyTNELIW701Vm3 ZVeB+gd6vFcIGSP67R6pbNQxqvh4/mB2fmMQq2/c88FGRasrczcKJqYvWxIGjOfnKn9o uGLQ==
X-Gm-Message-State: AHQUAuaoAoJ9xIlFp73eVuwDSYcvYboQYQgDHUdbwQ3N9vSnCgTpaObJ btYQNHDTaQL1MQ5QW9ANMnIbAV+ODuhWgIH8NnQ=
X-Google-Smtp-Source: AHgI3IYkttdXKfVYV1f46YyiqkTtTpVK0AMo7wOcKU5siw8OapWaP86cW16fHNKO6GjMM9qt1OfPTlf0t3GPH7JUk/E=
X-Received: by 2002:a2e:9e93:: with SMTP id f19-v6mr95941ljk.122.1550059270846;  Wed, 13 Feb 2019 04:01:10 -0800 (PST)
MIME-Version: 1.0
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org>
In-Reply-To: <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org>
From: Watson Ladd <watsonbladd@gmail.com>
Date: Wed, 13 Feb 2019 04:00:58 -0800
Message-ID: <CACsn0c=iOx09dA7yZb9iCz12PkUQVO-QKkKm7zy+p7wk=xd5mQ@mail.gmail.com>
To: Danny Mayer <mayer@ntp.org>
Cc: watson@cloudflare.com, ntp@ietf.org
Content-Type: multipart/alternative; boundary="000000000000385f6a0581c54cb0"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/KKVPd1ZOI3IW49oUighF2HgjW5s>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 12:01:17 -0000

--000000000000385f6a0581c54cb0
Content-Type: text/plain; charset="UTF-8"

On Tue, Feb 12, 2019 at 6:54 PM Danny Mayer <mayer@ntp.org> wrote:
>
>
> On 2/12/19 8:22 PM, Watson Ladd wrote:
> > What do you believe the NTP UTC timestamp should be of the event drawn
> > in Figure 3, Annex 3 of
> >
https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!PDF-E.pdf
?
> > What do you believe the timestamp is one second before that?
>
> What you are seeing there is that when adding a leap-second into the
> stream of ticks they add a 60 just before UTC midnight, they are not
> moving the clock back one second. Standard displays and functions of
> time cannot show 23:59:60 though they can do 23:59:59 and 00:00:00
> (ignoring fractions of a second). This is where reality (or at least our
> programmers' ideas of reality) meets theory. Similarly if they were ever
> to declare a negative leap-second, there would be no 23:59:59, it would
> just go from 23:59:58 to 00:00:00.

The UTC timestamp format is a single binary number defined in RFC 5905.
What should it be at those two times?

I don't think we can have roughtime without an answer to that question, and
it's clear that TAI sidesteps this whole
problem and was prefered over smearing.

The discussion below seems curiously resistant to answering my question on
this matter.


>
> This is where things get tricky. To handle a leap-second insertion there
> are various different schemes that have been implemented. Almost all of
> the involve slowing down the clock, ie reducing the the frequency of the
> next ticks from some point before the leap-second is to be inserted
> until some point after when normal frequency is restored. The reference
> implementation does this one way, Google implemented leap-smear which
> does things differently. You can find Dave Mills's documentation on this
> here: https://www.eecis.udel.edu/~mills/leap.html and Google's here:
> https://developers.google.com/time/smear and there are a number of other
> implementations of leap-second smearing.
>
> Dave's document discusses the problems with POSIX's approach and why he
> thinks it's wrong.

David's approach will not work for Roughtime. Could you explain a version
of UTC that would?
We did specify smeared UTC, people clearly want TAI instead.

>
> Interestingly enough RFC5905 has nothing to say about implementing
> leap-seconds only that the protocol packet has an indicator that a
> leap-second is imminent at the last minute of the current month. We
> might want to consider adding guidance on this issue.
>
> In the meantime I believe that at least one of the REFID drafts wants to
> add a way of indicating that leap-smear is in effect.  The other issue
> here is what if you don't want leap-smearing so you need to know if the
> NTP server providing NTP packets is doing or not doing leap-smearng in
> which case you want to drop those packets.
>
> Does this help?
>
> Danny
>
> >
> > The problem is not with server monotonicity (which raises questions
> > about where ntpd gets the time on Linux: we did have an outage from
> > using the usual time functions) but rather with monotonicity of the
> > timescale without reference to any given server: it should be
> > impossible for a casually later event to have an earlier timestamp.
> > The common interpretation of UTC, as you admit contained is POSIX,
> > doesn't support that. The idea that UTC NTP timestamps as defined in
> > NTP v4 are silently spread over a period given by the filter is a
> > reading not supported by the text: leap second appears exactly once in
> > it.
> >
> > It may be that common implementations do this. There are solutions
> > using a proper hour, minute, second format to this problem. But I
> > could just use TAI and avoid all these issues: the relevant verbiage
> > in TF.460-6* is a continuous scale vs. the adjustments made to UTC.
> >
> > Sincerely,
> > Watson Ladd
> >
> > On Tue, Feb 12, 2019 at 4:59 PM Danny Mayer <mayer@ntp.org> wrote:
> >> I'd just like to reiterate what I said in the virtual interim meeting
> >> during the roughtime discussion that any server that steps their clock
> >> backwards is fundamentally broken and breaks the NTP protocol. It does
> >> not matter where it's broken, if Posix, the O/S, or elsewhere.
> >>
> >> Any such server should not be used as a source of NTP packets and
should
> >> be avoided at all costs.
> >>
> >> Danny
> >>
> >>
> >>
> >> _______________________________________________
> >> ntp mailing list
> >> ntp@ietf.org
> >> https://www.ietf.org/mailman/listinfo/ntp
> >
>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp



-- 
"Man is born free, but everywhere he is in chains".
--Rousseau.

--000000000000385f6a0581c54cb0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><br>
<br>
On Tue, Feb 12, 2019 at 6:54 PM Danny Mayer &lt;<a href=3D"mailto:mayer@ntp=
.org" target=3D"_blank" rel=3D"noreferrer">mayer@ntp.org</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On 2/12/19 8:22 PM, Watson Ladd wrote:<br>
&gt; &gt; What do you believe the NTP UTC timestamp should be of the event =
drawn<br>
&gt; &gt; in Figure 3, Annex 3 of<br>
&gt; &gt; <a href=3D"https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.4=
60-6-200202-I!!PDF-E.pdf" rel=3D"noreferrer noreferrer" target=3D"_blank">h=
ttps://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!PDF-E.p=
df</a>?<br>
&gt; &gt; What do you believe the timestamp is one second before that?<br>
&gt;<br>
&gt; What you are seeing there is that when adding a leap-second into the<b=
r>
&gt; stream of ticks they add a 60 just before UTC midnight, they are not<b=
r>
&gt; moving the clock back one second. Standard displays and functions of<b=
r>
&gt; time cannot show 23:59:60 though they can do 23:59:59 and 00:00:00<br>
&gt; (ignoring fractions of a second). This is where reality (or at least o=
ur<br>
&gt; programmers&#39; ideas of reality) meets theory. Similarly if they wer=
e ever<br>
&gt; to declare a negative leap-second, there would be no 23:59:59, it woul=
d<br>
&gt; just go from 23:59:58 to 00:00:00.<br>
<br>
The UTC timestamp format is a single binary number defined in RFC 5905. Wha=
t should it be at those two times?<br>
<br>
I don&#39;t think we can have roughtime without an answer to that question,=
 and it&#39;s clear that TAI sidesteps this whole<br>
problem and was prefered over smearing.<div dir=3D"auto"><br></div><div dir=
=3D"auto">The discussion below seems curiously resistant to answering my qu=
estion on this matter.</div><div dir=3D"auto"><br></div><div dir=3D"auto">
<br>
&gt;<br>
&gt; This is where things get tricky. To handle a leap-second insertion the=
re<br>
&gt; are various different schemes that have been implemented. Almost all o=
f<br>
&gt; the involve slowing down the clock, ie reducing the the frequency of t=
he<br>
&gt; next ticks from some point before the leap-second is to be inserted<br=
>
&gt; until some point after when normal frequency is restored. The referenc=
e<br>
&gt; implementation does this one way, Google implemented leap-smear which<=
br>
&gt; does things differently. You can find Dave Mills&#39;s documentation o=
n this<br>
&gt; here: <a href=3D"https://www.eecis.udel.edu/~mills/leap.html" rel=3D"n=
oreferrer noreferrer" target=3D"_blank">https://www.eecis.udel.edu/~mills/l=
eap.html</a> and Google&#39;s here:<br>
&gt; <a href=3D"https://developers.google.com/time/smear" rel=3D"noreferrer=
 noreferrer" target=3D"_blank">https://developers.google.com/time/smear</a>=
 and there are a number of other<br>
&gt; implementations of leap-second smearing.<br>
&gt;<br>
&gt; Dave&#39;s document discusses the problems with POSIX&#39;s approach a=
nd why he<br>
&gt; thinks it&#39;s wrong.<br>
<br>
David&#39;s approach will not work for Roughtime. Could you explain a versi=
on of UTC that would?<br>
We did specify smeared UTC, people clearly want TAI instead.</div><div dir=
=3D"auto"><br>
&gt;<br>
&gt; Interestingly enough RFC5905 has nothing to say about implementing<br>
&gt; leap-seconds only that the protocol packet has an indicator that a<br>
&gt; leap-second is imminent at the last minute of the current month. We<br=
>
&gt; might want to consider adding guidance on this issue.<br>
&gt;<br>
&gt; In the meantime I believe that at least one of the REFID drafts wants =
to<br>
&gt; add a way of indicating that leap-smear is in effect.=C2=A0 The other =
issue<br>
&gt; here is what if you don&#39;t want leap-smearing so you need to know i=
f the<br>
&gt; NTP server providing NTP packets is doing or not doing leap-smearng in=
<br>
&gt; which case you want to drop those packets.<br>
&gt;<br>
&gt; Does this help?<br>
&gt;<br>
&gt; Danny<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; The problem is not with server monotonicity (which raises questio=
ns<br>
&gt; &gt; about where ntpd gets the time on Linux: we did have an outage fr=
om<br>
&gt; &gt; using the usual time functions) but rather with monotonicity of t=
he<br>
&gt; &gt; timescale without reference to any given server: it should be<br>
&gt; &gt; impossible for a casually later event to have an earlier timestam=
p.<br>
&gt; &gt; The common interpretation of UTC, as you admit contained is POSIX=
,<br>
&gt; &gt; doesn&#39;t support that. The idea that UTC NTP timestamps as def=
ined in<br>
&gt; &gt; NTP v4 are silently spread over a period given by the filter is a=
<br>
&gt; &gt; reading not supported by the text: leap second appears exactly on=
ce in<br>
&gt; &gt; it.<br>
&gt; &gt;<br>
&gt; &gt; It may be that common implementations do this. There are solution=
s<br>
&gt; &gt; using a proper hour, minute, second format to this problem. But I=
<br>
&gt; &gt; could just use TAI and avoid all these issues: the relevant verbi=
age<br>
&gt; &gt; in TF.460-6* is a continuous scale vs. the adjustments made to UT=
C.<br>
&gt; &gt;<br>
&gt; &gt; Sincerely,<br>
&gt; &gt; Watson Ladd<br>
&gt; &gt;<br>
&gt; &gt; On Tue, Feb 12, 2019 at 4:59 PM Danny Mayer &lt;<a href=3D"mailto=
:mayer@ntp.org" target=3D"_blank" rel=3D"noreferrer">mayer@ntp.org</a>&gt; =
wrote:<br>
&gt; &gt;&gt; I&#39;d just like to reiterate what I said in the virtual int=
erim meeting<br>
&gt; &gt;&gt; during the roughtime discussion that any server that steps th=
eir clock<br>
&gt; &gt;&gt; backwards is fundamentally broken and breaks the NTP protocol=
. It does<br>
&gt; &gt;&gt; not matter where it&#39;s broken, if Posix, the O/S, or elsew=
here.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Any such server should not be used as a source of NTP packets=
 and should<br>
&gt; &gt;&gt; be avoided at all costs.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Danny<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; ntp mailing list<br>
&gt; &gt;&gt; <a href=3D"mailto:ntp@ietf.org" target=3D"_blank" rel=3D"nore=
ferrer">ntp@ietf.org</a><br>
&gt; &gt;&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/ntp" rel=3D"=
noreferrer noreferrer" target=3D"_blank">https://www.ietf.org/mailman/listi=
nfo/ntp</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; ntp mailing list<br>
&gt; <a href=3D"mailto:ntp@ietf.org" target=3D"_blank" rel=3D"noreferrer">n=
tp@ietf.org</a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/ntp" rel=3D"noreferre=
r noreferrer" target=3D"_blank">https://www.ietf.org/mailman/listinfo/ntp</=
a><br>
<br>
<br>
<br>
-- <br>
&quot;Man is born free, but everywhere he is in chains&quot;.<br>
--Rousseau.<br></div></div>

--000000000000385f6a0581c54cb0--


From nobody Wed Feb 13 05:03:00 2019
Return-Path: <mayer@ntp.org>
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 9151612D861 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 05:02:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.889
X-Spam-Level: 
X-Spam-Status: No, score=-1.889 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yMaliUxl8nlv for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 05:02:57 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [IPv6:2001:470:1:205::234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0D05C128CE4 for <ntp@ietf.org>; Wed, 13 Feb 2019 05:02:57 -0800 (PST)
Received: from l34097ous.rpega.com (unknown [198.22.153.34]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 44007M4kttzL7P; Wed, 13 Feb 2019 13:02:55 +0000 (UTC)
To: Martin Burnicki <martin.burnicki@meinberg.de>, Watson Ladd <watson@cloudflare.com>
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de>
From: Danny Mayer <mayer@ntp.org>
Message-ID: <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org>
Date: Wed, 13 Feb 2019 08:02:54 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/sU0kJ3WxwVuurz4d0xAuTZsmjBM>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 13:02:59 -0000

On 2/13/19 5:15 AM, Martin Burnicki wrote:
> Danny Mayer wrote:
>> On 2/12/19 8:22 PM, Watson Ladd wrote:
>>> What do you believe the NTP UTC timestamp should be of the event draw=
n
>>> in Figure 3, Annex 3 of
>>> https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!=
PDF-E.pdf?
>>> What do you believe the timestamp is one second before that?
>> What you are seeing there is that when adding a leap-second into the
>> stream of ticks they add a 60 just before UTC midnight, they are not
>> moving the clock back one second. Standard displays and functions of
>> time cannot show 23:59:60 though they can do 23:59:59 and 00:00:00
>> (ignoring fractions of a second).
> I think they could if they knew the second occurrence of the same secon=
d
> number is a leap second. See my other email. The firmware used inside
> Meinberg devices supports a leap second indicator flag, and thus can
> distinguish second "60" from a duplicate "59".
There is no duplicate 59. and there can be no "same" second.

Danny



From nobody Wed Feb 13 05:06:45 2019
Return-Path: <mayer@ntp.org>
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 E3254131083 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 05:06:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.233
X-Spam-Level: 
X-Spam-Status: No, score=-1.233 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EmAVUcTVD_wV for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 05:06:36 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [66.220.13.234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7B615131062 for <ntp@ietf.org>; Wed, 13 Feb 2019 05:06:36 -0800 (PST)
Received: from l34097ous.rpega.com (unknown [198.22.153.34]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 4400Cb5vfdzL7P; Wed, 13 Feb 2019 13:06:35 +0000 (UTC)
To: Watson Ladd <watsonbladd@gmail.com>
Cc: ntp@ietf.org, watson@cloudflare.com
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <CACsn0c=iOx09dA7yZb9iCz12PkUQVO-QKkKm7zy+p7wk=xd5mQ@mail.gmail.com>
From: Danny Mayer <mayer@ntp.org>
Message-ID: <85851dd6-4a31-3315-0fe1-94ec5bf7b0f3@ntp.org>
Date: Wed, 13 Feb 2019 08:06:34 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <CACsn0c=iOx09dA7yZb9iCz12PkUQVO-QKkKm7zy+p7wk=xd5mQ@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------1CCF9A2796CAE8D01B1D3F0E"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/YJWGXX6U09mtHIjkAKXiKdUUGxU>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 13:06:44 -0000

This is a multi-part message in MIME format.
--------------1CCF9A2796CAE8D01B1D3F0E
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


On 2/13/19 7:00 AM, Watson Ladd wrote:
>
>
> On Tue, Feb 12, 2019 at 6:54 PM Danny Mayer <mayer@ntp.org
> <mailto:mayer@ntp..org>> wrote:
> >
> >
> > On 2/12/19 8:22 PM, Watson Ladd wrote:
> > > What do you believe the NTP UTC timestamp should be of the event dr=
awn
> > > in Figure 3, Annex 3 of
> > >
> https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!PD=
F-E.pdf?
> > > What do you believe the timestamp is one second before that?
> >
> > What you are seeing there is that when adding a leap-second into the
> > stream of ticks they add a 60 just before UTC midnight, they are not
> > moving the clock back one second. Standard displays and functions of
> > time cannot show 23:59:60 though they can do 23:59:59 and 00:00:00
> > (ignoring fractions of a second). This is where reality (or at least =
our
> > programmers' ideas of reality) meets theory. Similarly if they were e=
ver
> > to declare a negative leap-second, there would be no 23:59:59, it wou=
ld
> > just go from 23:59:58 to 00:00:00.
>
> The UTC timestamp format is a single binary number defined in RFC
> 5905. What should it be at those two times?
>
> I don't think we can have roughtime without an answer to that
> question, and it's clear that TAI sidesteps this whole
> problem and was prefered over smearing.
>
> The discussion below seems curiously resistant to answering my
> question on this matter.
>
Sorry but I must have missed what question you asked. Can you phase it
in a way that I (and perhaps others) can understand?

Danny


--------------1CCF9A2796CAE8D01B1D3F0E
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF=
-8">
  </head>
  <body text=3D"#000000" bgcolor=3D"#FFFFFF">
    <p><br>
    </p>
    <div class=3D"moz-cite-prefix">On 2/13/19 7:00 AM, Watson Ladd wrote:=
<br>
    </div>
    <blockquote type=3D"cite"
cite=3D"mid:CACsn0c=3DiOx09dA7yZb9iCz12PkUQVO-QKkKm7zy+p7wk=3Dxd5mQ@mail.=
gmail.com">
      <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DU=
TF-8">
      <div dir=3D"auto"><br>
        <br>
        On Tue, Feb 12, 2019 at 6:54 PM Danny Mayer &lt;<a
          href=3D"mailto:mayer@ntp..org" target=3D"_blank" rel=3D"norefer=
rer"
          moz-do-not-send=3D"true">mayer@ntp.org</a>&gt; wrote:<br>
        &gt;<br>
        &gt;<br>
        &gt; On 2/12/19 8:22 PM, Watson Ladd wrote:<br>
        &gt; &gt; What do you believe the NTP UTC timestamp should be of
        the event drawn<br>
        &gt; &gt; in Figure 3, Annex 3 of<br>
        &gt; &gt; <a
href=3D"https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202=
-I!!PDF-E.pdf"
          rel=3D"noreferrer noreferrer" target=3D"_blank"
          moz-do-not-send=3D"true">https://www.itu.int/dms_pubrec/itu-r/r=
ec/tf/R-REC-TF.460-6-200202-I!!PDF-E.pdf</a>?<br>
        &gt; &gt; What do you believe the timestamp is one second before
        that?<br>
        &gt;<br>
        &gt; What you are seeing there is that when adding a leap-second
        into the<br>
        &gt; stream of ticks they add a 60 just before UTC midnight,
        they are not<br>
        &gt; moving the clock back one second. Standard displays and
        functions of<br>
        &gt; time cannot show 23:59:60 though they can do 23:59:59 and
        00:00:00<br>
        &gt; (ignoring fractions of a second). This is where reality (or
        at least our<br>
        &gt; programmers' ideas of reality) meets theory. Similarly if
        they were ever<br>
        &gt; to declare a negative leap-second, there would be no
        23:59:59, it would<br>
        &gt; just go from 23:59:58 to 00:00:00.<br>
        <br>
        The UTC timestamp format is a single binary number defined in
        RFC 5905. What should it be at those two times?<br>
        <br>
        I don't think we can have roughtime without an answer to that
        question, and it's clear that TAI sidesteps this whole<br>
        problem and was prefered over smearing.
        <div dir=3D"auto"><br>
        </div>
        <div dir=3D"auto">The discussion below seems curiously resistant
          to answering my question on this matter.</div>
        <div dir=3D"auto"><br>
        </div>
      </div>
    </blockquote>
    <p>Sorry but I must have missed what question you asked. Can you
      phase it in a way that I (and perhaps others) can understand?</p>
    <p>Danny<br>
    </p>
  </body>
</html>

--------------1CCF9A2796CAE8D01B1D3F0E--


From nobody Wed Feb 13 05:09:04 2019
Return-Path: <heiko.gerstung@meinberg.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 0E50F128CB7 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 05:09:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.29
X-Spam-Level: 
X-Spam-Status: No, score=-4.29 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qSazi3RCR7_g for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 05:09:00 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DD7B9128CE4 for <ntp@ietf.org>; Wed, 13 Feb 2019 05:08:59 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id 1904271C075B for <ntp@ietf.org>; Wed, 13 Feb 2019 14:08:56 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de 1904271C075B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1550063338; bh=C0VjUIvgx1fhC2nK32kkVgCBr6EpUJ+SM9Vdmwl5Tyw=; h=Date:Subject:Message-ID:Mime-version:From:To:Content-Type: Content-Transfer-Encoding; b=KPgcfocIXtrxlV8LimqS+FTEA50z0vn+GgNaxnuwIzv/uPLekKcAqPeq6QmCTbwf5 zlOFiSQMGJHvY7t/sxslRvY57ER1izzE2zsHN+tEL9OExwWSc5KeMO7FMwY7z6PDeV myfdrj6/DN5JMQW0NVBjv1MKXxs3N5GKDLeEW73o=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1210, Stamp: 3], Multi: [Enabled, t: (0.000005,0.003852)], BW: [Enabled, t: (0.000006)], RTDA: [Enabled, t: (0.091356), Hit: No, Details: v2.7.27; Id: 15.1i670un.1d3jfitre.ped3], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
User-Agent: Microsoft-MacOutlook/10.16.0.190211
Date: Wed, 13 Feb 2019 14:08:53 +0100
Message-ID: <F97F7828-BE6D-44B5-A076-B195C505FF57@meinberg.de>
Thread-Topic: [Ntp] Servers stepping back their clocks
Mime-version: 1.0
Importance: Normal
X-Priority: 3
Thread-Index: AZ2x3tU+NmEyZDVlZGQzMWM3Y2MxYg==
From: Heiko Gerstung <heiko.gerstung@meinberg.de>
To: "ntp@ietf.org" <ntp@ietf.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/7LChr1B_DHVRcPvsgLNYxVZVml4>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 13:09:03 -0000

..... and I would like to add that every source of time that applies a leap=
 smearing technology is most probably not usable in applications where a re=
quirement to use legal time exists and a maximum offset to legal time is de=
fined that is exceeded during the leap smearing period. If you need to stay=
 within a couple of microseconds of UTC, you might have to step your clock =
backwards if you want to be compliant ...

Heiko


=EF=BB=BFOn 13.02.19, 10:20 "ntp im Auftrag von Martin Burnicki" <ntp-bounc=
es@ietf.org im Auftrag von martin.burnicki@meinberg.de> wrote:

    Danny Mayer wrote:
    > I'd just like to reiterate what I said in the virtual interim meeting
    > during the roughtime discussion that any server that steps their cloc=
k
    > backwards is fundamentally broken and breaks the NTP protocol. It doe=
s
    > not matter where it's broken, if Posix, the O/S, or elsewhere.
    >=20
    > Any such server should not be used as a source of NTP packets and sho=
uld
    > be avoided at all costs.
   =20
    If this is taken strictly then most Unix operating systems must not be
    used as NTP servers since they simply *do* step the time back whenever =
a
    leap second is inserted. :-(
   =20
    Martin
    --=20
    Martin Burnicki
   =20
    Senior Software Engineer
   =20
    MEINBERG Funkuhren GmbH & Co. KG
    Email: martin.burnicki@meinberg.de
    Phone: +49 5281 9309-414
    Linkedin: https://www.linkedin.com/in/martinburnicki/
   =20
    Lange Wand 9, 31812 Bad Pyrmont, Germany
    Amtsgericht Hannover 17HRA 100322
    Gesch=C3=A4ftsf=C3=BChrer/Managing Directors: G=C3=BCnter Meinberg, Wer=
ner Meinberg,
    Andre Hartmann, Heiko Gerstung
    Websites: https://www.meinberg.de  https://www.meinbergglobal.com
    Training: https://www.meinberg.academy
   =20
    _______________________________________________
    ntp mailing list
    ntp@ietf.org
    https://www.ietf.org/mailman/listinfo/ntp
   =20


--=20
Heiko Gerstung=20
Managing Director

MEINBERG=C2=AE Funkuhren GmbH & Co. KG
Lange Wand 9
D-31812 Bad Pyrmont, Germany
Phone:    +49 (0)5281 9309-404
Fax:        +49 (0)5281 9309-9404

Amtsgericht Hannover 17HRA 100322
Gesch=C3=A4ftsf=C3=BChrer/Management: G=C3=BCnter Meinberg, Werner Meinberg=
, Andre Hartmann, Heiko Gerstung

Email:
 heiko.gerstung@meinberg.de=20
Web:
 Deutsch   https://www.meinberg.de
 English    https://www.meinbergglobal.com

Do not miss our Time Synchronization Blog:
 https://blog.meinbergglobal.com=20

Connect via LinkedIn:=20
https://www.linkedin.com/in/heikogerstung
=20



=


From nobody Wed Feb 13 06:24:13 2019
Return-Path: <martin.burnicki@meinberg.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 A2F40131092 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 06:24:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.3
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EzVxJq7I3ZbL for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 06:24:02 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5544A131071 for <ntp@ietf.org>; Wed, 13 Feb 2019 06:24:02 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id EFA5C71C0344; Wed, 13 Feb 2019 15:23:50 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de EFA5C71C0344
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1550067840; bh=7gMlCNbSs9yYkDxGBsDD9u1DG12hMeIAyArE8fWe3Bk=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=cgNd1/79dA1F+c5IBzo89snbvhNLx57IzaJNUhEqqd6QdDUKFWkcB4xqr4xC6J0Cl x9DpcB1xMaJmSzbqhk2PmtVRtti5LSlGZqTe0Lfe/kGvo9js4bzwRkeQi0/uaMWAwQ /PA8xQhpM0H9+u1FvwEynAzFUrrA7GFD0eOd4GWg=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1210, Stamp: 3], Multi: [Enabled, t: (0.000006,0.004533)], BW: [Enabled, t: (0.000007)], RTDA: [Enabled, t: (0.058881), Hit: No, Details: v2.7.27; Id: 15.1i6092n.1d3jjs2ou.1quj8], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Wed, 13 Feb 2019 15:23:48 +0100
To: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
Cc: Watson Ladd <watson=40cloudflare.com@dmarc.ietf.org>, Danny Mayer <mayer@ntp.org>, "ntp@ietf.org" <ntp@ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <ea86e875-054a-3bf6-ad20-b125d1636771@meinberg.de> <5C63FF97020000A10002FA90@gwsmtp1.uni-regensburg.de>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Openpgp: preference=signencrypt
Autocrypt: addr=martin.burnicki@meinberg.de; prefer-encrypt=mutual; keydata= xsFNBFUJbhwBEADpbjlFJrR+RWZSc5WFFmRVQUFQ+XwgRBrAtTkJyu+xhu6DvD6zq2IgnXQ3 W8pz/MoMMfKWaNOJ1qCxMfd8XrCR1WaO1m98Re9RqB9948ZH2VZIRN0MiLVVYLU0I0EufAUo y5P9TgyRet7Ojuy3j7LqOEjhYpIkkz1XNup2CjfNAN3xxrx8KJJ4iErtLL35X+UyNpHd57tx Y+OzOdBOfweHNyaj1vtY5cAQuzR66hom+gK0YyuXdGDeN5Gb1nvk8H9tj5Fd/VIm4nZdIxam n63Mdk8mQ7dO8f04B0XzhAxF0+B9uZqdC0twUuRvROuDC6eAjO3JganfXvCE6QKTb3rOM8l1 c8bTA/Pg3WF6y2Jnq4Rs4I1SiU9Oy5elr6pJJdhi7RY0b2Lj4l/7SaiwUCyMBX3Gm00sWOYF OU9fYa6cs/IvW9JQbeQu9Ph8QYczH51sNBpL7RfkjGybqZyU+HKs0EUe6nlpuIPL3MZ3QoKl G1M7PhV2BGkn3fzLHsDp1Nxuv1bbdfW4dkdyW/yLcu994VYSFrgDStt9g1Or0mkk+HeR0m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OuxaVKZCdipTNWqIKQzkEVOixUPgie8sM/DPY 8TXhrsmRsWy9gb+pmszqmyvkTf4N1nP8yhS0wujtxxp6OHuzZs6EA2PB3t6CY4jFQ9Wx/YY8 A2abAhDb321Y79JhciNhBeBSTHivDnG3gsOy17LulRlkVN18vfTacxfQpJ0cafWExMmCE+o8 TMz85rQF8S7ftKIl9pJCcD6sZnxOTfkUa8C1NI93t+n4xe93wb+/8DiyVw8ZEa02RRYh/3ua +/2CDUvwR+qozbM4+1xb1skWYt81Vi7eLzGeZP2HscaieTYsKLgqD/sES5rNrNDKrItZKpP4 /r+c7F1zwCBxLyW2wcZyi5weEL8UaAu31HhoWT32y54m0ZyVrPVRwDXV8iHpCgMck26VLinj yFfi8WZsolS1lxLPOdD2B67sVNKXISJQk/Y2CN1CXA0vWLc0ENsaQyZAZjAbuo+TT37WjoXT nO8lOJJ5D9LhyjFjW0hYMFJq3eBAdxfGROyFOK9N29FU3hoU+tsYPSKrl3ws3PMg45cyRHLV Rip0xr0yXPYUYb70FnE70nVGICvMgUpmrM4XH1Yr7kt+5cBM583yuJ94rF/hOFHuR4GQWeFR xBSWd41qArjdABIxhZrnMICSW3fMyo9yfiQ6tXoyD1cHD/i2WmOnqCKEOtFScVeQJZJhqQb5 4NBx+viRax9d+X066AKYiBspm7kYwBVzNsng3uHOfyQXnVmcCEawxWIPyCtxSoV6fCKYdAfJ CQeElBXE89inkdGmdb0KLmYkHDoV4L1deAsPUI/t6qZjwqF3pKcr8kdGExqHwvytL8n1KGbY PyJ6Fn1z/idOOiTYgN+Q7FWRRX0QplyVpSBU4OnD0Gd3KkP+a0+kErokA1Lk3/YCE45VT8J8 8f4YGbRsIkf0xW+Ei0fk3fl9VPOrbTD+gFv+AzbT+Gp1+kElwVKj0VzXy0OC6UIQJ3J1on0l ArkcfPTIMcWxGmfGPw==
Organization: Meinberg Funkuhren, Bad Pyrmont, Germany
Message-ID: <2e4f63fb-befc-6dae-3c52-525fe4811efa@meinberg.de>
Date: Wed, 13 Feb 2019 15:23:47 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <5C63FF97020000A10002FA90@gwsmtp1.uni-regensburg.de>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/fzGg5YHFdK7GmuWeMr_IVMZu_eU>
Subject: Re: [Ntp] Antw: Re: Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 14:24:12 -0000

Ulrich Windl wrote:
>>>> Martin Burnicki <martin.burnicki@meinberg.de> schrieb am 13.02.2019 um 10:48 in
> Nachricht <ea86e875-054a-3bf6-ad20-b125d1636771@meinberg.de>:
> [...]
>> The PTP protocol has been designed to broadcast that offset, but for NTP
>> this was only possible with an extension to the autokey protocol, which
>> is now considered obsolete.
> 
> The decision to send the TAI offset in an extension field only if the autokey protocol is being used was a very poor design decision actually.  Actually it was a reason to use the autokey protocol ;-)

I absolutely agree. And a replacement should be available if autokey
isn't used anymore.

Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy


From nobody Wed Feb 13 07:01:01 2019
Return-Path: <martin.burnicki@meinberg.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 34082128701 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 07:01:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.3
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tkICmEoByJJW for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 07:00:54 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 438481310B1 for <ntp@ietf.org>; Wed, 13 Feb 2019 07:00:54 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id 737BE71C0412; Wed, 13 Feb 2019 16:00:36 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de 737BE71C0412
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1550070052; bh=sHLejjQblZOyNNGAnQroHVR1Unk2WovYnGU1IwV6Zu8=; h=Subject:To:References:From:Cc:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=YxM1oaMNPPsjYhIpF2GN3zmfEgkH8ZbECekEAfPZQPoGe8XeuIQPqADbWpNfsj2Qs zgMwpQj2j97g+T/UCl3fgfd1MVE/hLG17V11G5XV2VqFtE2tafcAngYzCO5kXHDaQi svFQO6f5m6m8/5yyGJhqHfiSg7XAr/vWNE2mWy9o=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1210, Stamp: 3], Multi: [Enabled, t: (0.000005,0.004778)], BW: [Enabled, t: (0.000013)], RTDA: [Enabled, t: (0.123097), Hit: No, Details: v2.7.27; Id: 15.1i60a1n.1d3jlvd7b.14hsp], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Wed, 13 Feb 2019 16:00:34 +0100
To: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>, "ntp@ietf.org" <ntp@ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <0cdf0654-58b5-4452-b8b8-6826f3921f0a@meinberg.de> <5C63FDF2020000A10002FA86@gwsmtp1.uni-regensburg.de>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Openpgp: preference=signencrypt
Autocrypt: addr=martin.burnicki@meinberg.de; prefer-encrypt=mutual; keydata= xsFNBFUJbhwBEADpbjlFJrR+RWZSc5WFFmRVQUFQ+XwgRBrAtTkJyu+xhu6DvD6zq2IgnXQ3 W8pz/MoMMfKWaNOJ1qCxMfd8XrCR1WaO1m98Re9RqB9948ZH2VZIRN0MiLVVYLU0I0EufAUo y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3fMyo9yfiQ6tXoyD1cHD/i2WmOnqCKEOtFScVeQJZJhqQb5 4NBx+viRax9d+X066AKYiBspm7kYwBVzNsng3uHOfyQXnVmcCEawxWIPyCtxSoV6fCKYdAfJ CQeElBXE89inkdGmdb0KLmYkHDoV4L1deAsPUI/t6qZjwqF3pKcr8kdGExqHwvytL8n1KGbY PyJ6Fn1z/idOOiTYgN+Q7FWRRX0QplyVpSBU4OnD0Gd3KkP+a0+kErokA1Lk3/YCE45VT8J8 8f4YGbRsIkf0xW+Ei0fk3fl9VPOrbTD+gFv+AzbT+Gp1+kElwVKj0VzXy0OC6UIQJ3J1on0l ArkcfPTIMcWxGmfGPw==
Organization: Meinberg Funkuhren, Bad Pyrmont, Germany
Cc: Danny Mayer <mayer@ntp.org>
Message-ID: <28d39207-92df-5e36-c2d2-2bccea070c8a@meinberg.de>
Date: Wed, 13 Feb 2019 16:00:33 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <5C63FDF2020000A10002FA86@gwsmtp1.uni-regensburg.de>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/q0nmgd7uX8SdAlKxgRnb5ul9vOQ>
Subject: Re: [Ntp] Antw: Re: Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 15:01:01 -0000

Ulrich Windl wrote:
>>>> Martin Burnicki <martin.burnicki@meinberg.de> schrieb am 13.02.2019 um 10:18 in
> Nachricht <0cdf0654-58b5-4452-b8b8-6826f3921f0a@meinberg.de>:
> 
> [...]
>> If this is taken strictly then most Unix operating systems must not be
>> used as NTP servers since they simply *do* step the time back whenever a
>> leap second is inserted. :-(
> 
> I think it's due to time() returning seconds since the epoch, not counting leap seconds.

True, and the same for clock_gettime( CLOCK_REALTIME, ...)

> There should be a separate leap seconds counter in UNIX, but there isn't.

Yes, there is.

At least the Linux kernel maintains a TAI offset value. However, some
time sync software has to set the initial TAI offset in the kernel after
reboot. ntpd with autokey or a valid leap second file can do this.

The Linux kernel increments its TAI offset value automatically whenever
it has to insert a leap second.

Unfortunately this even happens if the kernel's TAI offset value has not
been set before, so after a leap second the TAI value may have been
incremented from 0 to 1, and you can't simply check if the TAI offset is
really valid by just checking if it's 0 or not.

> So when looking at the return value of time() only you MUST see a value that's jumping back after having inserted a leap second, even in those system who "correctly" handle leap seconds, right?

Right, that's what I meant. You get the same numeric value twice, and if
you feed that time_t into the gmtime() function you get of course the
same date and time twice, with second "59". If gmtime() knew about the
leap second status then it could simply return "60" instead of "59", and
this would become visible to the user.

> So Martin, are you saying that most UNIX systems do not know about leap seconds at all?

Of course they do insert a leap second, but usually step the time back
by one second, but usually you won't ever see a second "60" in the user
interface.

Danny said systems that eventually step the time back are not suitable
to work as NTP servers, and my conclusion was that most Unix systems
weren't suitable since they just do this in case of a leap second.

Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy


From nobody Wed Feb 13 07:37:27 2019
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 E54DD12DD85 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 07:37:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level: 
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3tkzZ3euv_wJ for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 07:37:21 -0800 (PST)
Received: from rrzmta1.uni-regensburg.de (rrzmta1.uni-regensburg.de [194.94.155.51]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7EF0612DDA3 for <ntp@ietf.org>; Wed, 13 Feb 2019 07:37:18 -0800 (PST)
Received: from rrzmta1.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 5A67A67EFC for <ntp@ietf.org>; Wed, 13 Feb 2019 16:37:15 +0100 (CET)
Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta1.uni-regensburg.de (Postfix) with ESMTP id 387BE67EF9 for <ntp@ietf.org>; Wed, 13 Feb 2019 16:37:14 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Wed, 13 Feb 2019 16:37:14 +0100
Message-Id: <5C6439A9020000A10002FAB8@gwsmtp1.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.1.0 
Date: Wed, 13 Feb 2019 16:37:13 +0100
From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
To: "ntp@ietf.org" <ntp@ietf.org>,<martin.burnicki@meinberg.de>
Cc: "Danny Mayer" <mayer@ntp.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <0cdf0654-58b5-4452-b8b8-6826f3921f0a@meinberg.de> <5C63FDF2020000A10002FA86@gwsmtp1.uni-regensburg.de> <28d39207-92df-5e36-c2d2-2bccea070c8a@meinberg.de>
In-Reply-To: <28d39207-92df-5e36-c2d2-2bccea070c8a@meinberg.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/NjmgOCyA7qNVfL4K1kHNU4eE-gw>
Subject: [Ntp] Antw: Re:  Antw: Re: Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 15:37:24 -0000

Hi!

Probably one should ask the "POSIX people" that made that standard how a
localtime() routine can ever return 60 in tm_sec if the decision is only made
by reading a time_t value. ;-)

       char *asctime(const struct tm *tm);
       char *asctime_r(const struct tm *tm, char *buf);

       char *ctime(const time_t *timep);
       char *ctime_r(const time_t *timep, char *buf);

       struct tm *gmtime(const time_t *timep);
       struct tm *gmtime_r(const time_t *timep, struct tm *result);

       struct tm *localtime(const time_t *timep);
       struct tm *localtime_r(const time_t *timep, struct tm *result);

       tm_sec    The number of seconds after the minute, normally in the
range
                 0 to 59, but can be up to 60 to allow for leap seconds.

There's a symmetric problem for "time_t mktime(struct tm *tm);", BTW.

Regards,
Ulrich Windl

>>> Martin Burnicki <martin.burnicki@meinberg.de> schrieb am 13.02.2019 um
16:00 in
Nachricht <28d39207-92df-5e36-c2d2-2bccea070c8a@meinberg.de>:
> Ulrich Windl wrote:
>>>>> Martin Burnicki <martin.burnicki@meinberg.de> schrieb am 13.02.2019 um
10:18 
> in
>> Nachricht <0cdf0654-58b5-4452-b8b8-6826f3921f0a@meinberg.de>:
>> 
>> [...]
>>> If this is taken strictly then most Unix operating systems must not be
>>> used as NTP servers since they simply *do* step the time back whenever a
>>> leap second is inserted. :-(
>> 
>> I think it's due to time() returning seconds since the epoch, not counting

> leap seconds.
> 
> True, and the same for clock_gettime( CLOCK_REALTIME, ...)
> 
>> There should be a separate leap seconds counter in UNIX, but there isn't.
> 
> Yes, there is.
> 
> At least the Linux kernel maintains a TAI offset value. However, some
> time sync software has to set the initial TAI offset in the kernel after
> reboot. ntpd with autokey or a valid leap second file can do this.
> 
> The Linux kernel increments its TAI offset value automatically whenever
> it has to insert a leap second.
> 
> Unfortunately this even happens if the kernel's TAI offset value has not
> been set before, so after a leap second the TAI value may have been
> incremented from 0 to 1, and you can't simply check if the TAI offset is
> really valid by just checking if it's 0 or not.
> 
>> So when looking at the return value of time() only you MUST see a value 
> that's jumping back after having inserted a leap second, even in those
system 
> who "correctly" handle leap seconds, right?
> 
> Right, that's what I meant. You get the same numeric value twice, and if
> you feed that time_t into the gmtime() function you get of course the
> same date and time twice, with second "59". If gmtime() knew about the
> leap second status then it could simply return "60" instead of "59", and
> this would become visible to the user.
> 
>> So Martin, are you saying that most UNIX systems do not know about leap 
> seconds at all?
> 
> Of course they do insert a leap second, but usually step the time back
> by one second, but usually you won't ever see a second "60" in the user
> interface.
> 
> Danny said systems that eventually step the time back are not suitable
> to work as NTP servers, and my conclusion was that most Unix systems
> weren't suitable since they just do this in case of a leap second.
> 
> Martin
> -- 
> Martin Burnicki
> 
> Senior Software Engineer
> 
> MEINBERG Funkuhren GmbH & Co. KG
> Email: martin.burnicki@meinberg.de 
> Phone: +49 5281 9309-414
> Linkedin: https://www.linkedin.com/in/martinburnicki/ 
> 
> Lange Wand 9, 31812 Bad Pyrmont, Germany
> Amtsgericht Hannover 17HRA 100322
> Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
> Andre Hartmann, Heiko Gerstung
> Websites: https://www.meinberg.de  https://www.meinbergglobal.com 
> Training: https://www.meinberg.academy 




From nobody Wed Feb 13 07:47:11 2019
Return-Path: <mlichvar@redhat.com>
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 9504E1200ED for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 07:47:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.901
X-Spam-Level: 
X-Spam-Status: No, score=-6.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x8ndxmEZUjSa for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 07:47:07 -0800 (PST)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B342112EB11 for <ntp@ietf.org>; Wed, 13 Feb 2019 07:46:59 -0800 (PST)
Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 57C257DD28; Wed, 13 Feb 2019 15:46:59 +0000 (UTC)
Received: from localhost (holly.tpb.lab.eng.brq.redhat.com [10.43.134.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C018D5C219; Wed, 13 Feb 2019 15:46:57 +0000 (UTC)
Date: Wed, 13 Feb 2019 16:46:55 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
Cc: "ntp@ietf.org" <ntp@ietf.org>, martin.burnicki@meinberg.de, Danny Mayer <mayer@ntp.org>
Message-ID: <20190213154655.GN6602@localhost>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <0cdf0654-58b5-4452-b8b8-6826f3921f0a@meinberg.de> <5C63FDF2020000A10002FA86@gwsmtp1.uni-regensburg.de> <28d39207-92df-5e36-c2d2-2bccea070c8a@meinberg.de> <5C6439A9020000A10002FAB8@gwsmtp1.uni-regensburg.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <5C6439A9020000A10002FAB8@gwsmtp1.uni-regensburg.de>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 13 Feb 2019 15:46:59 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/qAVn4Svb7dMXl2UA2EKOAJh3090>
Subject: Re: [Ntp] Antw: Re:  Antw: Re: Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 15:47:09 -0000

On Wed, Feb 13, 2019 at 04:37:13PM +0100, Ulrich Windl wrote:
> Hi!
> 
> Probably one should ask the "POSIX people" that made that standard how a
> localtime() routine can ever return 60 in tm_sec if the decision is only made
> by reading a time_t value. ;-)

It will return 60 when using one of the "right" timezones, which
include leap seconds. Of course, that requires the system clock to not
keep time in the Unix timescale, but rather in "TAI-10" and that can
break all kinds of applications.

-- 
Miroslav Lichvar


From nobody Wed Feb 13 08:49:00 2019
Return-Path: <internet-drafts@ietf.org>
X-Original-To: ntp@ietf.org
Delivered-To: ntp@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 776DD1200ED; Wed, 13 Feb 2019 08:48:58 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: <i-d-announce@ietf.org>
Cc: ntp@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 6.91.0
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: ntp@ietf.org
Message-ID: <155007653842.9631.13956988133965924591@ietfa.amsl.com>
Date: Wed, 13 Feb 2019 08:48:58 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/UKNIR2uu0hNuE3G_JURYy61b6Qg>
Subject: [Ntp] I-D Action: draft-ietf-ntp-using-nts-for-ntp-17.txt
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
List-Id: <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: Wed, 13 Feb 2019 16:48:59 -0000

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Network Time Protocol WG of the IETF.

        Title           : Network Time Security for the Network Time Protocol
        Authors         : Daniel Fox Franke
                          Dieter Sibold
                          Kristof Teichel
                          Marcus Dansarie
                          Ragnar Sundblad
	Filename        : draft-ietf-ntp-using-nts-for-ntp-17.txt
	Pages           : 39
	Date            : 2019-02-13

Abstract:
   This memo specifies Network Time Security (NTS), a mechanism for
   using Transport Layer Security (TLS) and Authenticated Encryption
   with Associated Data (AEAD) to provide cryptographic security for the
   client-server mode of the Network Time Protocol (NTP).

   NTS is structured as a suite of two loosely coupled sub-protocols.
   The first (NTS-KE) handles initial authentication and key
   establishment over TLS.  The second handles encryption and
   authentication during NTP time synchronization via extension fields
   in the NTP packets, and holds all required state only on the client
   via opaque cookies.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ietf-ntp-using-nts-for-ntp/

There are also htmlized versions available at:
https://tools.ietf.org/html/draft-ietf-ntp-using-nts-for-ntp-17
https://datatracker.ietf.org/doc/html/draft-ietf-ntp-using-nts-for-ntp-17

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-ietf-ntp-using-nts-for-ntp-17


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/


From nobody Wed Feb 13 09:05:29 2019
Return-Path: <mayer@pdmconsulting.net>
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 91EC6130E9A for <ntp@ietfa.amsl.com>; Tue, 12 Feb 2019 14:18:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.501
X-Spam-Level: 
X-Spam-Status: No, score=-0.501 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GHxuNrf2ydfH for <ntp@ietfa.amsl.com>; Tue, 12 Feb 2019 14:18:50 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [66.220.13.234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B79EB130E81 for <ntp@ietf.org>; Tue, 12 Feb 2019 14:18:50 -0800 (PST)
Received: from [10.10.10.122] (pool-71-174-223-53.bstnma.east.verizon.net [71.174.223.53]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 43zcWF69FszL7S for <ntp@ietf.org>; Tue, 12 Feb 2019 22:18:49 +0000 (UTC)
To: "ntp@ietf.org" <ntp@ietf.org>
From: Danny Mayer <mayer@pdmconsulting.net>
Message-ID: <1c973286-6f1c-5447-c9cf-bbe6ac004ae8@pdmconsulting.net>
Date: Tue, 12 Feb 2019 17:18:47 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------B1648AEF4E025687AF4952D1"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/zPIbHKleleC2hRaTnK1ZfaA1tLk>
X-Mailman-Approved-At: Wed, 13 Feb 2019 09:05:28 -0800
Subject: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Tue, 12 Feb 2019 22:18:59 -0000

This is a multi-part message in MIME format.
--------------B1648AEF4E025687AF4952D1
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

I'd just like to reiterate what I said in the virtual interim meeting
during the roughtime discussion that any server that steps their clock
backwards is fundamentally broken and breaks the NTP protocol. It does
not matter where it's broken, if Posix, the O/S, or elsewhere.

Any such server should not be used as a source of NTP packets and should
be avoided at all costs.

Danny


--------------B1648AEF4E025687AF4952D1
Content-Type: application/pgp-keys;
 name="pEpkey.asc"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="pEpkey.asc"

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFuvm5wBCAC9DxF2vFcA4FES0ajbbUz/YPUHec/4/4QaZnXjEBNUCcYqRKhD
sGrabF7b1IVW2VV00dKDk9Hxk2cZ0OtDAoTFVozlhMPQbbQHW5FCUCmvmOUfTcqj
nYSXjt3UULLvKoZhPwteuoZEBVno+SkiMYbkCVUyEvjgcQyMAOdFdJbKS3lKqU7t
8OxIgsH5lHdddMcOGDvYYREsRhd3tTwFwssvg91I2Xh+b7x7EPoIqptcopLc2oGe
X3ccuXZuqKqRNTViODIBT79bxenl38y4+uSgYoZSGNCXJe83W7JMXf5TmeTbzaxo
Jsw93kXH71y2DbNqIt2AMOGDJIdWVxf7aHvBABEBAAG0JURhbm55IE1heWVyIDxt
YXllckBwZG1jb25zdWx0aW5nLm5ldD6JAVQEEwEIAD4WIQRgb1gA0HP+S+QJ2mb9
HkdxwIhMygUCW6+bnQIbAwUJAeEzgAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAK
CRD9HkdxwIhMys6fB/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0eFW53yh
gyy1dtRL7uCTCplSQ9MWru0+GDfxwWk2C5zmNFfs+/ldZ0xYSsN9UYXuHLuK
=3DS/5P
-----END PGP PUBLIC KEY BLOCK-----

--------------B1648AEF4E025687AF4952D1--


From nobody Wed Feb 13 09:29:09 2019
Return-Path: <sla@ucolick.org>
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 C3D8E130E63 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 09:29:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pzovhfcNxGVm for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 09:29:06 -0800 (PST)
Received: from smtp.ucolick.org (zilan.ucolick.org [128.114.23.234]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 615A4130E6E for <ntp@ietf.org>; Wed, 13 Feb 2019 09:29:06 -0800 (PST)
Received: from smtp.ucolick.org (localhost [127.0.0.1]) by smtp.ucolick.org (Postfix) with ESMTP id 3809D29E4 for <ntp@ietf.org>; Wed, 13 Feb 2019 09:29:05 -0800 (PST)
Received: from geneva.ucolick.org (geneva.ucolick.org [128.114.23.183]) by smtp.ucolick.org (Postfix) with ESMTP id 3541A29C1 for <ntp@ietf.org>; Wed, 13 Feb 2019 09:29:05 -0800 (PST)
Received: from geneva.ucolick.org (localhost [127.0.0.1]) by geneva.ucolick.org (Postfix) with ESMTP id 0001F288 for <ntp@ietf.org>; Wed, 13 Feb 2019 09:29:04 -0800 (PST)
Received: (from sla@localhost) by geneva.ucolick.org (8.14.7/8.14.7/Submit) id x1DHT4Dc025456 for ntp@ietf.org; Wed, 13 Feb 2019 09:29:04 -0800
Date: Wed, 13 Feb 2019 09:29:04 -0800
From: Steve Allen <sla@ucolick.org>
To: NTP WG <ntp@ietf.org>
Message-ID: <20190213172904.GE19408@ucolick.org>
References: <1c973286-6f1c-5447-c9cf-bbe6ac004ae8@pdmconsulting.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1c973286-6f1c-5447-c9cf-bbe6ac004ae8@pdmconsulting.net>
User-Agent: Mutt/1.9.2 (2017-12-15)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/PHDaNI8NT7X90JTi1Suj41Tqeqg>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 17:29:08 -0000

On Tue 2019-02-12T17:18:47-0500 Danny Mayer hath writ:
> I'd just like to reiterate what I said in the virtual interim meeting
> during the roughtime discussion that any server that steps their clock
> backwards is fundamentally broken and breaks the NTP protocol. It does
> not matter where it's broken, if Posix, the O/S, or elsewhere.
>
> Any such server should not be used as a source of NTP packets and should
> be avoided at all costs.

Suppose I start up my system, and it is an NTP server.
Suppose that at startup my LAN has no connection to the outside world.
Suppose that I later get a network connection and find that my system
clock is 10 seconds ahead of UTC.

It is possible for any system not to know what time it is.
A good protocol should recommend what actions should be taken.

--
Steve Allen                    <sla@ucolick.org>              WGS-84 (GPS)
UCO/Lick Observatory--ISB 260  Natural Sciences II, Room 165  Lat  +36.99855
1156 High Street               Voice: +1 831 459 3046         Lng -122.06015
Santa Cruz, CA 95064           https://www.ucolick.org/~sla/  Hgt +250 m


From nobody Wed Feb 13 09:29:40 2019
Return-Path: <wlosh@bsdimp.com>
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 9F398130E6E for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 09:29:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=bsdimp-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uAqPTlAu63Gl for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 09:29:36 -0800 (PST)
Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B2E40130E63 for <ntp@ietf.org>; Wed, 13 Feb 2019 09:29:36 -0800 (PST)
Received: by mail-qk1-x72a.google.com with SMTP id i5so1806045qkd.13 for <ntp@ietf.org>; Wed, 13 Feb 2019 09:29:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3L/NxKZI1vSpqNpHVVqg35zzL/f+ks1v3AZwqCv7M8Q=; b=xy5TMKmsdTqTMt43JC/mdOVY6L2pGAhZMOIXfAr51eF9s88hSLKQ13WDJUQIvOtabq Kl/h4oGL5cvaoidwRSBZFxlqRcSqaKea1J+ipRnxc1jPH7puhOWtnW+3cpEV4nXaGuJz lyC1aitL8/6sHroOPgeNVxaPHsPu9Efx6Pl8wlE33tHoGfUj40MCVWF9ajmpIepjI2/s TbmZt+6YIO8DwU/G423qWtkfuyQ2xDWr0G1WtD6g01n2zC0Y93m7p0PFSlFlzZ7gfqDK PxxchaPP9TXEqpgtltZVRpb1P9ExIGGFDOOm8q/JDLoG3aRL9aqOWqC/eWi6GUvDfFbJ B3Yw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3L/NxKZI1vSpqNpHVVqg35zzL/f+ks1v3AZwqCv7M8Q=; b=h5MGDmBt5u0AxG3nHvXxQo1h/CO5Gs/T2NRd+TLJOI8rBmFShnygSds1kS2PLzFgzX 7I1VvbE5Uw26389mrT9qpX/sWtAr9BBbYnA2Nr/Zcehukwlq2VWINyPtU6oG3NN7ZUnq 9rwwSJ+j9fcHZaQSvL5fqnFxiIkSXnmSUqrp2WBviLbMxjenUzVUHioCN+GGpRPQeAvl ijjw///m3DS/DlT3hDFLakJESBeAncz00zid9BtWVqAEt5+mSRd5EIdemGTC8mUK2wdn GPEfERNyZzU9FZ66B0wxladomOlMe6s3oLzxdB1yudcCeRcBEXm5kquOz/Fwr/MVO2Fw cfqA==
X-Gm-Message-State: AHQUAuYPC4LLfxtNl7uvDZ5yXV33ULbHrifsGCxX0+yH6UMixSZnT5WT nX8Hl9B1vDcGcuP2JZVhzGL/1Vsfiq92yDwkKkV4i0Y3
X-Google-Smtp-Source: AHgI3IaHKRrguEWAS38L16E5+bdGvZJYk0D0PGFbDguq8KNp1932bLyXICNLorYEJ3jlYASoQ+2sfhOgOg1tY/kVmNE=
X-Received: by 2002:a37:9604:: with SMTP id y4mr1270350qkd.279.1550078975445;  Wed, 13 Feb 2019 09:29:35 -0800 (PST)
MIME-Version: 1.0
References: <1c973286-6f1c-5447-c9cf-bbe6ac004ae8@pdmconsulting.net>
In-Reply-To: <1c973286-6f1c-5447-c9cf-bbe6ac004ae8@pdmconsulting.net>
From: Warner Losh <imp@bsdimp.com>
Date: Wed, 13 Feb 2019 10:29:24 -0700
Message-ID: <CANCZdfrDNYQEzfbcAn7+6ZJ-Qc3j__K53oYO1Bus+XTZOwpAsA@mail.gmail.com>
To: Danny Mayer <mayer@pdmconsulting.net>
Cc: "ntp@ietf.org" <ntp@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000b4a54f0581c9e208"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/OcugSKb27EC-Euojz-Shzxk9EGw>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 17:29:39 -0000

--000000000000b4a54f0581c9e208
Content-Type: text/plain; charset="UTF-8"

On Wed, Feb 13, 2019 at 10:05 AM Danny Mayer <mayer@pdmconsulting.net>
wrote:

> I'd just like to reiterate what I said in the virtual interim meeting
> during the roughtime discussion that any server that steps their clock
> backwards is fundamentally broken and breaks the NTP protocol. It does
> not matter where it's broken, if Posix, the O/S, or elsewhere.
>
> Any such server should not be used as a source of NTP packets and should
> be avoided at all costs.
>

POSIX absolutely requires it. All Unix kernels do this, or at least all the
ones I've seen[*]. The clock is stepped back, but that doesn't stop it from
being a viable NTP server because the UTC TAI offiset is bumped when the
clock is stepped back. Since it does that, ntpd can get enough information
to produce the proper time stamps, repeating the last second once w/o the
leap indicator and once with the leap indicator. ntp_adjtime is how they
cope.

POSIX is fundamentally broke, but ain't going to change it's fundamental
brokenness ever.

You can't get both 'simple math' that POSIX requires along with a count
since epoch, which POSIX also requires.

But to say servers that step time can't get NTP right is 100% wrong.

Warner

[*] More recently, there's been attempts to get kernels to tick in TAI and
then "hide" the delta from the applications except when specifically asked
for TAI time. I fixed FreeBSD's kernel years ago to do the right thing when
it was stepping so that ntpd could do the right thing. I did a lot of
research at the time and the then-current was hand-wavy at best: many
people tried TAI and found that it broke a lot of things that were hard to
fix. Coupled with the lack of reliable leap second distribution of the
time, and nothing was more than a science experiment at the time.

--000000000000b4a54f0581c9e208
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Wed, Feb 13, 2019 at 10:05 AM Dann=
y Mayer &lt;<a href=3D"mailto:mayer@pdmconsulting.net">mayer@pdmconsulting.=
net</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"marg=
in:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1e=
x">I&#39;d just like to reiterate what I said in the virtual interim meetin=
g<br>
during the roughtime discussion that any server that steps their clock<br>
backwards is fundamentally broken and breaks the NTP protocol. It does<br>
not matter where it&#39;s broken, if Posix, the O/S, or elsewhere.<br>
<br>
Any such server should not be used as a source of NTP packets and should<br=
>
be avoided at all costs.<br></blockquote><div><br></div><div>POSIX absolute=
ly requires it. All Unix kernels do this, or at least all the ones I&#39;ve=
 seen[*]. The clock is stepped back, but that doesn&#39;t stop it from bein=
g a viable NTP server because the UTC TAI offiset is bumped when the clock =
is stepped back. Since it does that, ntpd can get enough information to pro=
duce the proper time stamps, repeating the last second once w/o the leap in=
dicator and once with the leap indicator. ntp_adjtime is how they cope.</di=
v><div><br></div><div>POSIX is fundamentally broke, but ain&#39;t going to =
change it&#39;s fundamental brokenness ever.<br></div><div><br></div><div>Y=
ou can&#39;t get both &#39;simple math&#39; that POSIX requires along with =
a count since epoch, which POSIX also requires.</div><div><br></div><div>Bu=
t to say servers that step time can&#39;t get NTP right is 100% wrong.</div=
><div><br></div><div>Warner</div><div><br></div><div>[*] More recently, the=
re&#39;s been attempts to get kernels to tick in TAI and then &quot;hide&qu=
ot; the delta from the applications except when specifically asked for TAI =
time. I fixed FreeBSD&#39;s kernel years ago to do the right thing when it =
was stepping so that ntpd could do the right thing. I did a lot of research=
 at the time and the then-current was hand-wavy at best: many people tried =
TAI and found that it broke a lot of things that were hard to fix. Coupled =
with the lack of reliable leap second distribution of the time, and nothing=
 was more than a science experiment at the time.</div></div></div>

--000000000000b4a54f0581c9e208--


From nobody Wed Feb 13 09:55:32 2019
Return-Path: <martin.burnicki@meinberg.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 5AF321200B3 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 09:55:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.3
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VdlukqY1kyzY for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 09:55:27 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 94DC7128766 for <ntp@ietf.org>; Wed, 13 Feb 2019 09:55:27 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id 6E31E71C065A; Wed, 13 Feb 2019 18:55:18 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de 6E31E71C065A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1550080525; bh=lF9d6b0fXuvYztpNrVPKTd6sBIkEEoM6CsuxeVm5YHY=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Mv8LCZJ6bZTxaQCe0OEfs20ZSHQl4DYvmzfQHNiWZhD1gvB5Hzn3eMxZZQjOsq62S ttjIIYiF2MdseCq8JMcWMcqk3/03uhNSYLveERW8F+OamhW4DIoyKoQYIfpZ/+sJDa PhAfynx2HTQ/W/kqiY0Qjchz8AqzmwP911Z7uMlM=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1210, Stamp: 3], Multi: [Enabled, t: (0.000005,0.003910)], BW: [Enabled, t: (0.000013,0.000001)], RTDA: [Enabled, t: (0.219599), Hit: No, Details: v2.7.27; Id: 15.1i69srd.1d3jvv8a4.18ija], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Wed, 13 Feb 2019 18:55:14 +0100
To: Danny Mayer <mayer@ntp.org>, Watson Ladd <watson@cloudflare.com>
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Openpgp: preference=signencrypt
Autocrypt: addr=martin.burnicki@meinberg.de; prefer-encrypt=mutual; keydata= xsFNBFUJbhwBEADpbjlFJrR+RWZSc5WFFmRVQUFQ+XwgRBrAtTkJyu+xhu6DvD6zq2IgnXQ3 W8pz/MoMMfKWaNOJ1qCxMfd8XrCR1WaO1m98Re9RqB9948ZH2VZIRN0MiLVVYLU0I0EufAUo y5P9TgyRet7Ojuy3j7LqOEjhYpIkkz1XNup2CjfNAN3xxrx8KJJ4iErtLL35X+UyNpHd57tx Y+OzOdBOfweHNyaj1vtY5cAQuzR66hom+gK0YyuXdGDeN5Gb1nvk8H9tj5Fd/VIm4nZdIxam n63Mdk8mQ7dO8f04B0XzhAxF0+B9uZqdC0twUuRvROuDC6eAjO3JganfXvCE6QKTb3rOM8l1 c8bTA/Pg3WF6y2Jnq4Rs4I1SiU9Oy5elr6pJJdhi7RY0b2Lj4l/7SaiwUCyMBX3Gm00sWOYF OU9fYa6cs/IvW9JQbeQu9Ph8QYczH51sNBpL7RfkjGybqZyU+HKs0EUe6nlpuIPL3MZ3QoKl G1M7PhV2BGkn3fzLHsDp1Nxuv1bbdfW4dkd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e27-4dfa-7d31-e48a0b6c4a80@meinberg.de>
Date: Wed, 13 Feb 2019 18:55:14 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/rXLwhCUhX7JQ7Hn7M6loGN5QrFM>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 17:55:31 -0000

Danny Mayer wrote:
> 
> On 2/13/19 5:15 AM, Martin Burnicki wrote:
>> Danny Mayer wrote:
>>> On 2/12/19 8:22 PM, Watson Ladd wrote:
>>>> What do you believe the NTP UTC timestamp should be of the event drawn
>>>> in Figure 3, Annex 3 of
>>>> https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!PDF-E.pdf?
>>>> What do you believe the timestamp is one second before that?
>>> What you are seeing there is that when adding a leap-second into the
>>> stream of ticks they add a 60 just before UTC midnight, they are not
>>> moving the clock back one second. Standard displays and functions of
>>> time cannot show 23:59:60 though they can do 23:59:59 and 00:00:00
>>> (ignoring fractions of a second).
>> I think they could if they knew the second occurrence of the same second
>> number is a leap second. See my other email. The firmware used inside
>> Meinberg devices supports a leap second indicator flag, and thus can
>> distinguish second "60" from a duplicate "59".
>
> There is no duplicate 59. and there can be no "same" second.

Of course there is.

I've just duplicated a test I've already run some years ago and put the
results here:
https://kb.meinbergglobal.com/kb/time_sync/leap_second_handling_by_the_linux_kernel

So you can see exactly what happens on a Linux system.

Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy


From nobody Wed Feb 13 10:10:49 2019
Return-Path: <mayer@ntp.org>
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 C6F2C1292F1 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 10:10:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.889
X-Spam-Level: 
X-Spam-Status: No, score=-1.889 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XK5KTQlwrKjg for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 10:10:45 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [IPv6:2001:470:1:205::234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DDD0C128766 for <ntp@ietf.org>; Wed, 13 Feb 2019 10:10:45 -0800 (PST)
Received: from l34097ous.rpega.com (unknown [198.22.153.34]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 4406yY1JCXzL7P; Wed, 13 Feb 2019 18:10:45 +0000 (UTC)
To: Martin Burnicki <martin.burnicki@meinberg.de>, Watson Ladd <watson@cloudflare.com>
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <46f48ee5-2e27-4dfa-7d31-e48a0b6c4a80@meinberg.de>
From: Danny Mayer <mayer@ntp.org>
Message-ID: <3886e606-9326-7d7b-f110-ebeab6b3c4d7@ntp.org>
Date: Wed, 13 Feb 2019 13:10:44 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <46f48ee5-2e27-4dfa-7d31-e48a0b6c4a80@meinberg.de>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/MCYYuULhH8rRNBUMosiJw1KsxgI>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 18:10:48 -0000

On 2/13/19 12:55 PM, Martin Burnicki wrote:
> Danny Mayer wrote:
>> On 2/13/19 5:15 AM, Martin Burnicki wrote:
>>> Danny Mayer wrote:
>>>> On 2/12/19 8:22 PM, Watson Ladd wrote:
>>>>> What do you believe the NTP UTC timestamp should be of the event dr=
awn
>>>>> in Figure 3, Annex 3 of
>>>>> https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I=
!!PDF-E.pdf?
>>>>> What do you believe the timestamp is one second before that?
>>>> What you are seeing there is that when adding a leap-second into the=

>>>> stream of ticks they add a 60 just before UTC midnight, they are not=

>>>> moving the clock back one second. Standard displays and functions of=

>>>> time cannot show 23:59:60 though they can do 23:59:59 and 00:00:00
>>>> (ignoring fractions of a second).
>>> I think they could if they knew the second occurrence of the same sec=
ond
>>> number is a leap second. See my other email. The firmware used inside=

>>> Meinberg devices supports a leap second indicator flag, and thus can
>>> distinguish second "60" from a duplicate "59".
>> There is no duplicate 59. and there can be no "same" second.
> Of course there is.
>
> I've just duplicated a test I've already run some years ago and put the=

> results here:
> https://kb.meinbergglobal.com/kb/time_sync/leap_second_handling_by_the_=
linux_kernel
>
> So you can see exactly what happens on a Linux system.
>
> Martin

That's someone broken implementation. The ITU-T document makes it clear
that it's a different second.

Let's at least differentiate between what is implemented and what the
standard has stated.

Danny



From nobody Wed Feb 13 10:21:14 2019
Return-Path: <mayer@pdmconsulting.net>
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 D6524128766 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 10:20:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TQyr-JpcRJYh for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 10:20:23 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [IPv6:2001:470:1:205::234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 61F6C1200B3 for <ntp@ietf.org>; Wed, 13 Feb 2019 10:20:20 -0800 (PST)
Received: from l34097ous.rpega.com (unknown [198.22.153.34]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 44079c3CfszL7T; Wed, 13 Feb 2019 18:20:20 +0000 (UTC)
To: Steve Allen <sla@ucolick.org>, NTP WG <ntp@ietf.org>
References: <1c973286-6f1c-5447-c9cf-bbe6ac004ae8@pdmconsulting.net> <20190213172904.GE19408@ucolick.org>
From: Danny Mayer <mayer@pdmconsulting.net>
Message-ID: <06ec0e34-ef63-e6b9-ff68-363bcc72c81a@pdmconsulting.net>
Date: Wed, 13 Feb 2019 13:20:19 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <20190213172904.GE19408@ucolick.org>
Content-Type: multipart/mixed; boundary="------------637AC1D013C4F022446AEE0F"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/S7_yotOdVPuytM5QHQNwNV1sFXI>
X-Mailman-Approved-At: Wed, 13 Feb 2019 10:21:13 -0800
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 18:20:25 -0000

This is a multi-part message in MIME format.
--------------637AC1D013C4F022446AEE0F
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


On 2/13/19 12:29 PM, Steve Allen wrote:
> On Tue 2019-02-12T17:18:47-0500 Danny Mayer hath writ:
>> I'd just like to reiterate what I said in the virtual interim meeting
>> during the roughtime discussion that any server that steps their clock=

>> backwards is fundamentally broken and breaks the NTP protocol. It does=

>> not matter where it's broken, if Posix, the O/S, or elsewhere.
>>
>> Any such server should not be used as a source of NTP packets and shou=
ld
>> be avoided at all costs.
> Suppose I start up my system, and it is an NTP server.
> Suppose that at startup my LAN has no connection to the outside world.
> Suppose that I later get a network connection and find that my system
> clock is 10 seconds ahead of UTC.
>
> It is possible for any system not to know what time it is.
> A good protocol should recommend what actions should be taken.
>
This is the case where you should step the clock to be where it should
be (more or less) but you shouldn't provide time to any other system
until you have synchronized the clock and you shouldn't start any
application on your system which requires a good clock until you have
done so. At an Observatory like yours that is crucial to pointing your
telescope in the right direction.

Danny


--------------637AC1D013C4F022446AEE0F
Content-Type: application/pgp-keys;
 name="pEpkey.asc"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="pEpkey.asc"

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFuvm5wBCAC9DxF2vFcA4FES0ajbbUz/YPUHec/4/4QaZnXjEBNUCcYqRKhD
sGrabF7b1IVW2VV00dKDk9Hxk2cZ0OtDAoTFVozlhMPQbbQHW5FCUCmvmOUfTcqj
nYSXjt3UULLvKoZhPwteuo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z3o
tlhqSutv6gCDABEBAAGJATwEGAEIACYWIQRgb1gA0HP+S+QJ2mb9HkdxwIhMygUC
W6+bnAIbDAUJAeEzgAAKCRD9HkdxwIhMyuHYB/9qfdOMU7szYmxzv+vtWcJtwCn9
WoJgX3dm1QEnc38o+o+OzokXWP28O3MKcSHUj1+VGFf1VULXa6DEG6qn8DWexV2E
Pt05ia53cvvyxvpUaB3wuiEdr/1PrbuR97PHx0NCMtp/FzYjG/eNuLUFV2lZDoRV
dK4h8koE7c0KQGBwGG0nGUtF471Ku/vtxDQeoPtM632JsbeM4QLHAnOU9j40xmY3
E3hvVpa0zK9NawoMTYVgEWSmQtIvdPiB6e666CCITdysMwOvKoOx40Bl0eFW53yh
gyy1dtRL7uCTCplSQ9MWru0+GDfxwWk2C5zmNFfs+/ldZ0xYSsN9UYXuHLuK
=3DS/5P
-----END PGP PUBLIC KEY BLOCK-----

--------------637AC1D013C4F022446AEE0F--


From nobody Wed Feb 13 10:56:31 2019
Return-Path: <mayer@ntp.org>
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 07DB8126F72 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 10:56:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.89
X-Spam-Level: 
X-Spam-Status: No, score=-1.89 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_SPF_PERMERROR=0.01] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XXnenLnOZTSY for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 10:56:28 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [IPv6:2001:470:1:205::234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4B77C1200D7 for <ntp@ietf.org>; Wed, 13 Feb 2019 10:56:28 -0800 (PST)
Received: from l34097ous.rpega.com (unknown [198.22.153.34]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 4407zH1jWVzL7P; Wed, 13 Feb 2019 18:56:27 +0000 (UTC)
From: Danny Mayer <mayer@ntp.org>
To: Steve Allen <sla@ucolick.org>, NTP WG <ntp@ietf.org>
References: <1c973286-6f1c-5447-c9cf-bbe6ac004ae8@pdmconsulting.net> <20190213172904.GE19408@ucolick.org>
Message-ID: <29bd0d31-6530-5a66-be2c-33c62aa4448a@ntp.org>
Date: Wed, 13 Feb 2019 13:56:26 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <20190213172904.GE19408@ucolick.org>
Content-Type: multipart/mixed; boundary="------------21C4F108C8702D63EA2D0326"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/gCUJyukrb_HivG5pYRtg3Ww67V4>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 18:56:30 -0000

This is a multi-part message in MIME format.
--------------21C4F108C8702D63EA2D0326
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


On 2/13/19 12:29 PM, Steve Allen wrote:
> On Tue 2019-02-12T17:18:47-0500 Danny Mayer hath writ:
>> I'd just like to reiterate what I said in the virtual interim meeting
>> during the roughtime discussion that any server that steps their clock=

>> backwards is fundamentally broken and breaks the NTP protocol. It does=

>> not matter where it's broken, if Posix, the O/S, or elsewhere.
>>
>> Any such server should not be used as a source of NTP packets and shou=
ld
>> be avoided at all costs.
> Suppose I start up my system, and it is an NTP server.
> Suppose that at startup my LAN has no connection to the outside world.
> Suppose that I later get a network connection and find that my system
> clock is 10 seconds ahead of UTC.
>
> It is possible for any system not to know what time it is.
> A good protocol should recommend what actions should be taken.
>
This is the case where you should step the clock to be where it should
be (more or less) but you shouldn't provide time to any other system
until you have synchronized the clock and you shouldn't start any
application on your system which requires a good clock until you have
done so. At an Observatory like yours that is crucial to pointing your
telescope in the right direction.

Danny




--------------21C4F108C8702D63EA2D0326
Content-Type: application/pgp-keys;
 name="pEpkey.asc"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="pEpkey.asc"

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFuvm5wBCAC9DxF2vFcA4FES0ajbbUz/YPUHec/4/4QaZnXjEBNUCcYqRKhD
sGrabF7b1IVW2VV00dKDk9Hxk2cZ0OtDAoTFVozlhMPQbbQHW5FCUCmvmOUfTcqj
nYSXjt3UULLvKoZhPwteuoZEBVno+SkiMYbkCVUyEvjgcQyMAOdFdJbKS3lKqU7t
8OxIgsH5lHdddMcOGDvYYREsRhd3tTwFwssvg91I2Xh+b7x7EPoIqptcopLc2oGe
X3ccuXZuqKqRNTViODIBT79bxenl38y4+uSgYoZSGNCXJe83W7JMXf5TmeTbzaxo
Jsw93kXH71y2DbNqIt2AMOGDJIdWVxf7aHvBABEBAAG0JURhbm55IE1heWVyIDxt
YXllckBwZG1jb25zdWx0aW5nLm5ldD6JAVQEEwEIAD4WIQRgb1gA0HP+S+QJ2mb9
HkdxwIhMygUCW6+bnQIbAwUJAeEzgAULCQgHAgYVCgkICwIEFg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EWSmQtIvdPiB6e666CCITdysMwOvKoOx40Bl0eFW53yh
gyy1dtRL7uCTCplSQ9MWru0+GDfxwWk2C5zmNFfs+/ldZ0xYSsN9UYXuHLuK
=3DS/5P
-----END PGP PUBLIC KEY BLOCK-----


--------------21C4F108C8702D63EA2D0326--


From nobody Wed Feb 13 12:30:10 2019
Return-Path: <marcus.dansarie.nilsson@gmail.com>
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 0FE15128B01 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 12:30:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.881
X-Spam-Level: 
X-Spam-Status: No, score=-1.881 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.018, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MNJb0W-lru99 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 12:30:01 -0800 (PST)
Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7B65E1200B3 for <ntp@ietf.org>; Wed, 13 Feb 2019 12:30:00 -0800 (PST)
Received: by mail-lf1-x12c.google.com with SMTP id q12so2849201lfm.0 for <ntp@ietf.org>; Wed, 13 Feb 2019 12:30:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=sender:subject:from:to:references:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to; bh=A96eBD4JWo4HcOn73dALwWJqDixTM3/Tdlybsb6Y5k8=; b=RkhIQYQiKrSpzU72ZJ8C2hGlX1VaHw3w9iios3p/hYbOBub4MoSj94yd5cYrq3E3X7 7dMWJWUVZuJKKD8Qg05J4nLmVKwNKyUB1rV14uoWHOfEUdtU+RlhX0cxOLMYEE8MH/Gg w8jTzzIux/puOQ6Iip7Tk1a4rRfFGfIlfHgbcuneOzLI7KTiCvPcoRCsBNmES3zmu0qB Y8+pxO2/i2SE+yv/Ye+nSVfQV9DP+jsxGIIHIRD3BuIT+wlju80FFzWyHRRNE2N+djTI fYh5ViJvPzSCq3tBMQ4LMGy8pj+kjbvd0EGWhQS7Wy6hG1semkcmoP6X8Sy/EB03PZzK s4yQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:references:openpgp :autocrypt:message-id:date:user-agent:mime-version:in-reply-to; bh=A96eBD4JWo4HcOn73dALwWJqDixTM3/Tdlybsb6Y5k8=; b=ty1UGptgCUvLVY3kZa8eZtpN4HUkYaKVdiQaw0KJHmh+IBSr+pxmQ/dcgiS5YUgDC+ /1tkY1yIF5cxgp+lOrlKbM/OUwUz9TwdNA4H0AnS3YFKTXj80Okqgxb6nAMTkzTMNJnd 3D7hcAxYuK0Qz6iOXNS34raG7qj8BKwJwJuoeK5MtN0dmDiS1X0CyRu/N26Fj5GozSUt YcrKuvi1lf2oeKtz+JQ7fhpBH83jeyIlHUmVha07DRphsCalxkNODu8KUlkaLD2Mwfu5 ho4Yma03AsSPeafefl2PQzLib4EhlZEw3d58dQQGz31MmliNqLxjUc45nOgaAOqr2+Hf 2znw==
X-Gm-Message-State: AHQUAubderMSyr8jtmCqCn+FWhxBJerzPPQkGkiWcqJOqoWExfwQdGDs j38PXLWkNp0aJBBj0JSNUizmdiRuVeU=
X-Google-Smtp-Source: AHgI3IaJJJHmWxhfNNrrUPoMPM6/TkNbm1LS5xCBRUWABECm44BkOGmmLYlkUZhwsW4YdtHYtkHWqw==
X-Received: by 2002:ac2:5085:: with SMTP id f5mr20438lfm.30.1550089798107; Wed, 13 Feb 2019 12:29:58 -0800 (PST)
Received: from [10.0.0.126] ([185.40.184.26]) by smtp.gmail.com with ESMTPSA id y10sm58440lfg.44.2019.02.13.12.29.56 for <ntp@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 12:29:57 -0800 (PST)
Sender: Marcus Dansarie <marcus.dansarie.nilsson@gmail.com>
From: Marcus Dansarie <marcus@dansarie.se>
To: ntp@ietf.org
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com> <abe14d52-3f6d-2d91-fa5f-fe99f9742c69@dansarie.se> <ead4cfa7-56fa-8612-10d5-abaefc15160d@dansarie.se>
Openpgp: preference=signencrypt
Autocrypt: addr=marcus@dansarie.se; prefer-encrypt=mutual; keydata= mQINBFawEn4BEAC8YukDy8f3eczlE8WAcuctrjsNltPCLZDzcj3vBmiayXlXuPULOopqeuw4 +oaZqj4KqvdFBA1mzvwPll7IHePuwAoJYJr48IbIXc9MRjtLoFtd0KnhiVPUS8F2cmfzSJ8E FEv92sz6UT8/tlLEu6sNqr6/caYUivspuW5wf4f6nkSE+6rao9Nx9X03r289IPNBSZv+Y/Ym jWHDPpbT8WLUJZ+A8RsW/1oza609oAzqTkclmnRzip8wZZWNg3Q55P7onBmTIOrEz13My9r5 DWCMHyxXgFL1RJ9YW0t4yRkRm+HvOn3Vesk3m8CCGA6esHV0IPZmBOxJr3l+UQYuDiTgFufr WMpu5MvlyKGHS4fNd505DyyJY2G6eQLLrOq3nZy4q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cDau+fFDUzS04gtcgkJb3wXg0MhgoZF/KU3JSq0Xs0Ni ioljOHDgOddGzO7Dd2KbCW2vtzo7m50yrLHI77hsocnkqrIcIn6TeYtH7K1aksEI0KC2Sg0b ome7eO8jCziXZO73iwq9hflXAiZp9CM2HWlb7e2zXe8vChJorEf+9w3t/jyvQzCtOf12jUM1 xr99DODBAEtJ0/tUfSsGvfETmAhYD2tjRmVwzB7jRq6U4bc5jtcYEL5YKEWBIvJDVvzE3iu/ HHjc83bIIyqxeYyT3uClTWPVP5OEWBxGUas7u3hlxxmSzGjpXUDBZyoeC+Q6Q3WUp6zOSg+/ yVwD/KBQQ/Sy6vOfvgh6PmsP1D5xCZSl6UWnxSi8lTtAcjUjHyG1qCudR/pmDv0OL5Ul8PeF 87DBMz4Y0our+MslzlvhrmI90XcKAyHrukdnanS+gle61a44uFwtUGPTvCtSW4AQLR1uixc8 qaHsQNmXpQQOIt6nudcOCisXa1c6P/WU8I94u9BmCjTWRQ==
Message-ID: <945915c3-9884-1581-4a12-090e491ea2f1@dansarie.se>
Date: Wed, 13 Feb 2019 21:29:48 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
MIME-Version: 1.0
In-Reply-To: <ead4cfa7-56fa-8612-10d5-abaefc15160d@dansarie.se>
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7qfXoHNF6xnkFncmQyLO3mgvAGNBLx1Kc"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/IZimC1tnWnIWOQs5Y_tAB-oW9P4>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 20:30:09 -0000

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--7qfXoHNF6xnkFncmQyLO3mgvAGNBLx1Kc
Content-Type: multipart/mixed; boundary="FudNgj4QY4q0QoYYiI5P8VMpzeBKcJidS";
 protected-headers="v1"
From: Marcus Dansarie <marcus@dansarie.se>
To: ntp@ietf.org
Message-ID: <945915c3-9884-1581-4a12-090e491ea2f1@dansarie.se>
Subject: Re: [Ntp] Roughtime draft
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com>
 <abe14d52-3f6d-2d91-fa5f-fe99f9742c69@dansarie.se>
 <ead4cfa7-56fa-8612-10d5-abaefc15160d@dansarie.se>
In-Reply-To: <ead4cfa7-56fa-8612-10d5-abaefc15160d@dansarie.se>

--FudNgj4QY4q0QoYYiI5P8VMpzeBKcJidS
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

As I mentioned during the virtual interim meeting, I have a few more
comments on the Roughtime draft:

First and most important: My general impression of the protocol is that
one of its greatest strengths is its simplicity. Any further development
must therefore be vary of scope creep. In particular, features that
require the server to keep per-client state or return tags tailored for
individual clients (except for INDX and PATH) should not be included.
The same goes for features that aren't directly related to the
protocol's goal of authenticated moderate accuracy (rough) time
synchronization.

In Section 5.2.1, the definition of what instance in time MIDP (+/-
RADI) is can be improved. Defining MIDP +/- RADI as the server's
estimate of the time interval in which the replies will actually leave
the network interface could improve the potential time accuracy. (See
also my next point.) Servers that don't want to or can't perform this
estimation can simply use the time of processing and set RADI
accordingly. (And the draft should probably mention that the error in
MIDP most likely won't follow a statistical distribution.)

Including an equivalent interval (say, RECV +/- RADR) in SREP for when
the replies included in the Merkle tree were received would, together
with the previous point, allow the clients to calculate the approximate
path delay. These tags could be optional for the server to include and
for clients to use.

Section 7 mentions a "64 bit blind". I think this was meant to say "64
byte blind".

The draft says nothing about how clients and servers should handle
unknown tags. My suggestion is that the default behavior should be to
ignore them.

The minimum requirement for leap second information provided by the
server should be an int32 containing the TAI-UTC offset at MIDP.
Requiring anything more would place requirements on regular maintenance
that can be hard to satisfy in all systems. Furthermore, a Roughtime
server with a GNSS receiver can operate completely standalone and still
be compliant.

Roughtime system related comments:

The draft mentions trust in servers. Technically, trust in the Roughtime
system is in the long-term public keys. All that can be proven by
chaining Roughtime requests is that a server using a delegate
certificate signed by a certain public key has misbehaved (or not).
Conversely, a distrusted server can restore trust simply by changing its
public key.

The ecosystem currently provides no means to revoke a compromised
delegate certificate. The simple solution to this is to recommend very
short-term delegate certificates, but this might cause implementation
issues on the server end. Some thought is probably needed here.

Someone (this is perhaps left to client implementers or auditors) will
have to decide how to measure trust in public keys. Possible metrics are:=

- length of the time interval(s) that the key/server has provided good ti=
me;
- length or number of time intervals that the key/server has provided
bad time;
- number of time errors/incidents, and;
- the size of identified time errors.

As others have mentioned: How will clients find lists of (probably) good
time servers? This is really just another trust anchoring problem and
possibly an implementation issue. The users are placing a large amount
of trust in the implementer anyways. It is probably going to end up
being implementation dependent with a list of servers distributed with
the client and updated over HTTPS. An API specification for list
distribution would enable users to select their trusted source of
Roughtime server lists.

Clients that identify time inconsistencies or misbehaving time servers
must be able to report them somehow, i.e. there needs to be an API for
automatically notifying server list distributors, client implementers,
auditors, and server owners. (Well-behaved servers might turn themselves
off if presented evidence of malfunction signed by other time servers
trusted by them. This evidence will probably be sent out of band and not
via the Roughtime protocol.)

That's all for now...

Kind regards,
Marcus





--FudNgj4QY4q0QoYYiI5P8VMpzeBKcJidS--

--7qfXoHNF6xnkFncmQyLO3mgvAGNBLx1Kc
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEPIi2jSSFxqOAzfAvwQgADsPhIeYFAlxkfkAACgkQwQgADsPh
IeZT1Q/9GSIS4Rv1nOCSOAWEKUjues7P9Z0GeIVO98GCwo/n1Knlq7jVuvaF/g9e
p9MYYreHSukKh1riu9s9FilxbXx+pVR5KrPSNwaJYt1vBrnT+0+POg+YMen505fj
+AOOD4X/NJ4Sj5XxSsjt+AOjePvZoT2N/aCu+jsYQ/rl+usDQx5w+unkOoVYVLQ6
IiZDgenMm12CYS4snhDVJN3hDQa61zPPnBd08Q+SHt1C8tsleeMblcJI2p9F98Tw
5ni7PftTPBnsSmqWbPj1UJicScX5gR0blZD0koG0WXu/z1o38DZbQriqAQ7PWcx6
T/YDt5VWBhgLjin8I4wbsAgD6Iehx43Ub2p+PYMQdPuMrB/hxtAq8M7XOv75SwO+
QLy6+KZTHnKy86UwJYbhQWjOiXUYqyUBN9GRx5nc+L6VfPxc/Cv4H0QoH0fnTFmM
Irak0BoxBByVfRuZ9KVaxN1uqKvVG+0wNkmhM4IOK12ag9M7/1EUJAPLNUfTZoz+
8Ax4QtrwGvh3kpoG4YqXHoo4Tfi4eiwcsvSTXlp970vPaMjiUIBNg6kKPgXyz4AV
VaLkko/zQji88h806UXH7DRTKkyCT9A6n4bu8HY7rus88ZzsKOwfnjJrd3XEmoj6
XlzJcyXUCVG5I8sIV3oilIyfzbclYpkLFtUqHCmkCSogrSe639o=
=AKNQ
-----END PGP SIGNATURE-----

--7qfXoHNF6xnkFncmQyLO3mgvAGNBLx1Kc--


From nobody Wed Feb 13 13:14:27 2019
Return-Path: <stenn@nwtime.org>
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 91FE812E7C1 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 13:14:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RDC4qrv94KBc for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 13:14:22 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [IPv6:2001:470:1:205::234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E876B1200B3 for <ntp@ietf.org>; Wed, 13 Feb 2019 13:14:21 -0800 (PST)
Received: from [10.208.75.157] (75-139-194-196.dhcp.knwc.wa.charter.com [75.139.194.196]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 440C2P0gjSzL7P; Wed, 13 Feb 2019 21:14:21 +0000 (UTC)
To: Martin Burnicki <martin.burnicki@meinberg.de>, Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
Cc: Danny Mayer <mayer@ntp.org>, "ntp@ietf.org" <ntp@ietf.org>, Watson Ladd <watson=40cloudflare.com@dmarc.ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <ea86e875-054a-3bf6-ad20-b125d1636771@meinberg.de> <5C63FF97020000A10002FA90@gwsmtp1.uni-regensburg.de> <2e4f63fb-befc-6dae-3c52-525fe4811efa@meinberg.de>
From: Harlan Stenn <stenn@nwtime.org>
Openpgp: preference=signencrypt
Autocrypt: addr=stenn@nwtime.org; prefer-encrypt=mutual; keydata= mQGNBFI2xmQBDACrPayw18eU4pIwCvKh7k0iMkAV9cvzs49kBppM+xoH+KKj4QWmkKELD39H ngQnT3RkKs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9+pj 4i32ETz1nJAvYAAqgTF/0PL+8ZNQoEpe/n9woMKrlZrqD4EgFmhQ3bNVhlaXz1nuTZDrwPt1 yMxBuUNbCF4jFnaruwrSiGTRoIfUZQwAjQglahrV4/mcjfnvbNoseHX0PKd9q+wjg7MIjWqr f2CI8Fa6MdanqwYphz43I2yXANKFZuMWsWqyQYlvGuPUlUUcAL3stp24RkzDB1Q+JS0IZJST T2JSu0aTfUdWVNqr2UI19eX+zxbOTckSi3Ng14ezG8ZX194ZH10b8JzntQOwmA20pd5JDhug zQfASER+CZDiPPcQ4mvC4y7rMrfV6XGQbDynC3ekDxo8SC5SvjaczXMwXg6SZ8iFtEWmEwW9 r7zPjjIPDrX8w5LXBgxArM5o/HbERpc2EdAvMh1D7LC0SvmoE7fBKxsicVBe4h6vXjEZ+LLr /wuZiBld9OnxAUIpwptbBspO6WKTQYvgFH2OeDG27hiE5P4Xs4WSp5j9ez8OVB1iZnA2nCQ+ tNTjO8c+C/P92vPLx5+bpGRXTXMNaLh34PS3ZsYoUDkKZNhczRZUWJ7nynSbeeyF+QW7SLwA qY7O7dyk9LFTsfJqRQJ7tWnIAjJPCwmSgQ8Kl0UJ
Message-ID: <bc299967-3d48-b73f-e4ff-884937432a75@nwtime.org>
Date: Wed, 13 Feb 2019 13:14:21 -0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <2e4f63fb-befc-6dae-3c52-525fe4811efa@meinberg.de>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/oN4ANUVLbc1Ey7yYu3Iee34BebA>
Subject: Re: [Ntp] Antw: Re: Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 21:14:26 -0000

On 2/13/2019 6:23 AM, Martin Burnicki wrote:
> Ulrich Windl wrote:
>>>>> Martin Burnicki <martin.burnicki@meinberg.de> schrieb am 13.02.2019 um 10:48 in
>> Nachricht <ea86e875-054a-3bf6-ad20-b125d1636771@meinberg.de>:
>> [...]
>>> The PTP protocol has been designed to broadcast that offset, but for NTP
>>> this was only possible with an extension to the autokey protocol, which
>>> is now considered obsolete.
>>
>> The decision to send the TAI offset in an extension field only if the autokey protocol is being used was a very poor design decision actually.  Actually it was a reason to use the autokey protocol ;-)
> 
> I absolutely agree. And a replacement should be available if autokey
> isn't used anymore.

"Let me get in to my Delorean."  Please see
draft-stenn-ntp-extended-information, which had this in -00 in October
of 2016.

> Martin
> 

-- 
Harlan Stenn, Network Time Foundation
http://nwtime.org - be a Member!


From nobody Wed Feb 13 13:32:09 2019
Return-Path: <wlosh@bsdimp.com>
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 6268E12F18C for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 13:32:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=bsdimp-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9g0dCISbWpaI for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 13:32:03 -0800 (PST)
Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CD2E3130DC8 for <ntp@ietf.org>; Wed, 13 Feb 2019 13:31:58 -0800 (PST)
Received: by mail-qt1-x82e.google.com with SMTP id w4so4506883qtc.1 for <ntp@ietf.org>; Wed, 13 Feb 2019 13:31:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lkUl1bOrgAaUez8oaN6HltWV5foKh7Z4PqwTMle+Txo=; b=j1gzvmGRjoY5+1vVnsGdH0otky/rkqO8W3P3hQfyZpbtpeBPjLPPp7H98oJNRZt9Vf /cVBuwQHJ/GCpsCyT4iMr2GkGa4H5RJT6brl4PJRpKTz/MuoqhmJPs2/DYkfU1tHeTPp L5TYMGBnUNWqJofChUTfdo+tSsCe/TBPY+MOhEAdyS/daRHISxMwGCISgUu0M/hqPWQH 5fjeNO7apCg5kFxdkbYv9lbT7zjnVvWM6nrTYo9cYewOTpK8NApyZgThYs6IK5L3ZhAs lsdw9m5XT2kyqWt8rXnht09mm7jsY+mNM6cnLR8+TiIHGrNC2yZK8EOFxqC+F73QYRmQ qWPg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lkUl1bOrgAaUez8oaN6HltWV5foKh7Z4PqwTMle+Txo=; b=LZD0egxhDMcHsVADatwDB1h9iY8Q4mi08eS4mn/gCebPfzA3FlkJlQLKcN82IYoymn KxaC9wjSVrcilUzhBpYiTK5KhKGgOuoLQDkZuD85S6pdhKQr7dgazG/I5wNdQed2qSMd SRFFQ/QEovfkajyWA3db6hL1hFbOhOogs9UIf3tlPeiPDzC1oEwC/UvDA6FzrnNHvDjq YmbvpsQk6Js2x01WLDcCZqfX+QnEJzBXRdhkjiCck3EBTDabEOuhsY+Q2Bwitc9WjMM/ hoKEc+XvokgHAb7LoZedquCVnt40Y3/WgJoPhT/FFPJ2eR+dU42WERJTgQSfmq0xJ2ON XRPA==
X-Gm-Message-State: AHQUAuZn5nnAs5c8d5Vsa2DjIgmQTlK/w+Vv1yRqzvx5dcdu9IbMH4rC lvD132kTQuqrpFgEPWd6BRFvdkx1N0t5RQBGVgnKj/UZ
X-Google-Smtp-Source: AHgI3IYB8GKsdEg2iwUn8rBUVmFDwH6xF64qd+tD70WEQ0dc539V8rV3vqr3SNBZLXs4Qc6qVWx78V6k+NwE3zM7vsc=
X-Received: by 2002:aed:3964:: with SMTP id l91mr225343qte.33.1550093516697; Wed, 13 Feb 2019 13:31:56 -0800 (PST)
MIME-Version: 1.0
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org>
In-Reply-To: <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org>
From: Warner Losh <imp@bsdimp.com>
Date: Wed, 13 Feb 2019 14:31:44 -0700
Message-ID: <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com>
To: Danny Mayer <mayer@ntp.org>
Cc: Martin Burnicki <martin.burnicki@meinberg.de>, Watson Ladd <watson@cloudflare.com>, "ntp@ietf.org" <ntp@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000006e8c050581cd45a0"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/v7v_Iyu_KkP0OQpuR2snY_36d80>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 21:32:08 -0000

--0000000000006e8c050581cd45a0
Content-Type: text/plain; charset="UTF-8"

On Wed, Feb 13, 2019, 6:03 AM Danny Mayer <mayer@ntp.org wrote:

>
> On 2/13/19 5:15 AM, Martin Burnicki wrote:
> > Danny Mayer wrote:
> >> On 2/12/19 8:22 PM, Watson Ladd wrote:
> >>> What do you believe the NTP UTC timestamp should be of the event drawn
> >>> in Figure 3, Annex 3 of
> >>>
> https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!PDF-E.pdf
> ?
> >>> What do you believe the timestamp is one second before that?
> >> What you are seeing there is that when adding a leap-second into the
> >> stream of ticks they add a 60 just before UTC midnight, they are not
> >> moving the clock back one second. Standard displays and functions of
> >> time cannot show 23:59:60 though they can do 23:59:59 and 00:00:00
> >> (ignoring fractions of a second).
> > I think they could if they knew the second occurrence of the same second
> > number is a leap second. See my other email. The firmware used inside
> > Meinberg devices supports a leap second indicator flag, and thus can
> > distinguish second "60" from a duplicate "59".
> There is no duplicate 59. and there can be no "same" second.
>

In POSIX there most certainly is. There is no unique encoding for the leap
second to distinguish 59 from 60 (or in some interpretations 60 from 00).
That is the fundamental problem with POSIX that is absolutely not fixable,
absent additional metadata. That is what Martin is talking about here:
providing that data to resolve an otherwise ambiguous case.

Warner

Danny
>
>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
>

--0000000000006e8c050581cd45a0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr">=
On Wed, Feb 13, 2019, 6:03 AM Danny Mayer &lt;<a href=3D"mailto:mayer@ntp.o=
rg">mayer@ntp.org</a> wrote:<br></div><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On 2/13/19 5:15 AM, Martin Burnicki wrote:<br>
&gt; Danny Mayer wrote:<br>
&gt;&gt; On 2/12/19 8:22 PM, Watson Ladd wrote:<br>
&gt;&gt;&gt; What do you believe the NTP UTC timestamp should be of the eve=
nt drawn<br>
&gt;&gt;&gt; in Figure 3, Annex 3 of<br>
&gt;&gt;&gt; <a href=3D"https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-T=
F.460-6-200202-I!!PDF-E.pdf" rel=3D"noreferrer noreferrer" target=3D"_blank=
">https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!PDF-=
E.pdf</a>?<br>
&gt;&gt;&gt; What do you believe the timestamp is one second before that?<b=
r>
&gt;&gt; What you are seeing there is that when adding a leap-second into t=
he<br>
&gt;&gt; stream of ticks they add a 60 just before UTC midnight, they are n=
ot<br>
&gt;&gt; moving the clock back one second. Standard displays and functions =
of<br>
&gt;&gt; time cannot show 23:59:60 though they can do 23:59:59 and 00:00:00=
<br>
&gt;&gt; (ignoring fractions of a second).<br>
&gt; I think they could if they knew the second occurrence of the same seco=
nd<br>
&gt; number is a leap second. See my other email. The firmware used inside<=
br>
&gt; Meinberg devices supports a leap second indicator flag, and thus can<b=
r>
&gt; distinguish second &quot;60&quot; from a duplicate &quot;59&quot;.<br>
There is no duplicate 59. and there can be no &quot;same&quot; second.<br><=
/blockquote></div></div><div dir=3D"auto"><br></div><div dir=3D"auto">In PO=
SIX there most certainly is. There is no unique encoding for the leap secon=
d to distinguish 59 from 60 (or in some interpretations 60 from 00). That i=
s the fundamental problem with POSIX that is absolutely not fixable, absent=
 additional metadata. That is what Martin is talking about here: providing =
that data to resolve an otherwise ambiguous case.</div><div dir=3D"auto"><b=
r></div><div dir=3D"auto">Warner</div><div dir=3D"auto"><br></div><div dir=
=3D"auto"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Danny<br>
<br>
<br>
_______________________________________________<br>
ntp mailing list<br>
<a href=3D"mailto:ntp@ietf.org" target=3D"_blank" rel=3D"noreferrer">ntp@ie=
tf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/ntp" rel=3D"noreferrer nor=
eferrer" target=3D"_blank">https://www.ietf.org/mailman/listinfo/ntp</a><br=
>
</blockquote></div></div></div>

--0000000000006e8c050581cd45a0--


From nobody Wed Feb 13 13:55:56 2019
Return-Path: <dfoxfranke@gmail.com>
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 D204A12DF71; Wed, 13 Feb 2019 13:55:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T8Rg_R0H6GcL; Wed, 13 Feb 2019 13:55:51 -0800 (PST)
Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8B72B128766; Wed, 13 Feb 2019 13:55:51 -0800 (PST)
Received: by mail-qt1-x82d.google.com with SMTP id b8so4507647qtr.9; Wed, 13 Feb 2019 13:55:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ZfEP4gYzEVkGhw70uGnzRtGxw/RqrQ70mGNOjS6vLRs=; b=NUtD8Rd920wrCFCufYKU8Z8hkeOn+jXxTCHP5GGDfnCBF7GlhnizLO7yqmRqvM24dz 7EMnRIjpO/liyrVk/WWzl3b3f0sXGQSATkP9TRkJuUixPYbhO14929uSFcNOdGj2qJcm VuxjUZ5ELo9y8LwFZtS/9CJo/isxz1e6MtCbFgkOtjqtqyEueKfMHhR70QUtWBKQp25T isAu/H8MS9FI1doD513b7d+GVgtPrGfSlIpR51/9qNS3we6Qln9uJi1CjT/BencsI3Mv XT0MT8wHcHSOtlAUvC51JAmGPW2Nx/Z4clLICKDzLExce7SRUVZcdYNWBs7dcORsqLiv UmNQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ZfEP4gYzEVkGhw70uGnzRtGxw/RqrQ70mGNOjS6vLRs=; b=RtUZTCJDu17Ck+GsBKvJty4Ncn7CEtCAX1R9YR6X6lAQ7b1VjU8nKQwPGg8pzTT/Du sFXic+2Zxc0MZaeSqfK0kalzBSZrBNCOlPtAjIEYzCR7Zmrnk+mE5vu03d+kuTfY0xlU YsgYLHEPUvsWaer/8rv6haSjq51QG1r0y+KbzwJ1hjoG7S2Weme2HJJpn80BZfc40+b8 UnxT/ydNZ6lTQr6/YUiqGPqx4GMqARKxtP8KscwOw6SSq/62UDnC/y2rs7h6YPZ8lUeg pNXnrcdHKhhXydCRF4IGqSCcH7aSnHU5PhykHDBkvhcHih6yTd2AsEgiYc6iKNelOCBE gktQ==
X-Gm-Message-State: AHQUAuYkrqgZ1HQzighB/k8rZZRzjioH1HRdiVSGRg0xEdEAV3iFZPEr 5C8imsT+PTsKz3gDOFkQL989wf2T1kDEmwgh4fo=
X-Google-Smtp-Source: AHgI3IZCjsj7h1as2L/KfAlR9i5HI3tQAqaOj0uBePHLFET5g2B1KDgcm/JGDuyoNRT0k3Hq8AQoSMOLHgYZPr8pVOE=
X-Received: by 2002:aed:2a6d:: with SMTP id k42mr313912qtf.390.1550094950501;  Wed, 13 Feb 2019 13:55:50 -0800 (PST)
MIME-Version: 1.0
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com> <CAJm83bARWr_z=Jp7yO+CFYzjJd-Sj5BJrFY_tOaKyR+3nxZCWg@mail.gmail.com> <CAMbs7kuMh0AuLBY1znhLN3+ZuX-xvkuitOCnZjedzzhjY7dF0Q@mail.gmail.com>
In-Reply-To: <CAMbs7kuMh0AuLBY1znhLN3+ZuX-xvkuitOCnZjedzzhjY7dF0Q@mail.gmail.com>
From: Daniel Franke <dfoxfranke@gmail.com>
Date: Wed, 13 Feb 2019 16:55:39 -0500
Message-ID: <CAJm83bBOv4=yYMO9P2soJkK7vnfwkvHkVxPsEMrSby32FPjiyA@mail.gmail.com>
To: Aanchal Malhotra <aanchal4@bu.edu>
Cc: ntp@ietf.org, ntp-chairs@ietf.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/8cRiYjuxPz_JD7NdP3xXqgXh6_c>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 21:55:55 -0000

The idea of a separate query type for historical leap seconds is just
to conserve bandwidth. We don't want to be sending the whole table in
response to every time query.

Leap second queries would contain a nonce just like time queries, and
responses to leap second queries would be signed the same way response
to time queries are, making it easy to prove if a server was sending
bad leap second data and when it was doing it.

On Tue, Feb 12, 2019 at 7:49 PM Aanchal Malhotra <aanchal4@bu.edu> wrote:
>
> Hi Daniel,
>
> Thanks for the comment.
>
> We agree to the general idea. However, I am not sure if I follow the conc=
rete idea. More specifically, I am not sure if I understand the intent for =
separate message types for querying and communicating the historical leap s=
econds & how does it create a malfeasance-evident mechanism for distributio=
n of leap second data. Can you please elaborate?
>
> On Fri, Feb 8, 2019 at 2:48 PM Daniel Franke <dfoxfranke@gmail.com> wrote=
:
>>
>> I think we can do better than to send smeared time on the wire. Let
>> timestamps be TAI-based, and let each response contain, in addition to
>> the timestamp, the most-recently-published leap second (which could be
>> in the past or could be in the future). Data for a leap second
>> consists of a sequence number, a bit indicating whether it is an
>> insertion or a deletion, the TAI time at which the leap second ends,
>> and what the TAI-UTC offset will be after the leap second has elapsed.
>>
>> Also provide separate message types for querying and communicating
>> historical leap seconds.
>>
>>
>> This will allow clients to decide as a matter of policy how and
>> whether to smear, rather than baking the decision into protocol
>> mechanism. Furthermore, it creates a malfeasance-evident mechanism for
>> distribution of leap second data, thus filling what is presently a
>> void.
>>
>> On Fri, Feb 8, 2019 at 5:12 PM Aanchal Malhotra <aanchal4@bu.edu> wrote:
>> >
>> > Hi All,
>> >
>> > We have put together a draft for Roughtime. We encourage folks here to=
 have a look at the draft and see if they think that there is a value in ad=
opting/implementing it and would be interested to do so.
>> >
>> >  https://tools.ietf.org/html/draft-roughtime-aanchal-00
>> >
>> > Best,
>> > Aanchal.
>> >
>> >
>> > _______________________________________________
>> > ntp mailing list
>> > ntp@ietf.org
>> > https://www.ietf.org/mailman/listinfo/ntp


From nobody Wed Feb 13 14:06:10 2019
Return-Path: <stenn@nwtime.org>
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 50A0B12DF71 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 14:06:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5E3rEsrSLXqB for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 14:06:05 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [66.220.13.234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A15A3128766 for <ntp@ietf.org>; Wed, 13 Feb 2019 14:06:05 -0800 (PST)
Received: from [10.208.75.157] (75-139-194-196.dhcp.knwc.wa.charter.com [75.139.194.196]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 440DB436lrzL7W; Wed, 13 Feb 2019 22:06:04 +0000 (UTC)
To: ntp@ietf.org
References: <F97F7828-BE6D-44B5-A076-B195C505FF57@meinberg.de>
From: Harlan Stenn <stenn@nwtime.org>
Openpgp: preference=signencrypt
Autocrypt: addr=stenn@nwtime.org; prefer-encrypt=mutual; keydata= mQGNBFI2xmQBDACrPayw18eU4pIwCvKh7k0iMkAV9cvzs49kBppM+xoH+KKj4QWmkKELD39H ngQnT3RkKsTLlwxyLqPdUmeQNAY2M5fsOK+OF6EvwLPK9hbmE3Wx2moX+sbEUxJ2VzFhKSKb OPZALXwk1XxL0qBedz0xHYcDwaSAZZkEFXURv2pDIdrmnoUnq2gdC8GpoFJiXoUaCLSYzzaY ac4Njw7Mue8IqfzRQb70aMjXl/qmsmfmEVAyGXywDdc/ler4XSgiuYOV7Kf69bj9PFZZSMdJ MWgEyZH6lJ0TU5ccR2zp5ZRmWzQQkxJMyH2th7q0Nmz3aX4A0K4yE0Ba9/5Dr7ctpF15BrMF aEo4s5lwI6tUnkgMWo265mMzCz4mAPV/ac0w0OXQg7r9E2r0+dRapnzUlG43D0JLDqDr9uRR L6IrRQqoCWUC75lfmPYQYSlaTJaK68r3lXd0z1cXJUgVtEL5H3/Z71R2B20twcQVAnw2iIH6 L5vdrsIjHrMmkqRVbs9nNyEAEQEAAbQ5SGFybGFuIFN0ZW5uIChOZXR3b3JrIFRpbWUgRm91 bmRhdGlvbikgPHN0ZW5uQG53dGltZS5vcmc+iQG5BBMBAgAjBQJSNsblAhsvBwsJCAcDAgEG FQgCCQoLBBYCAwECHgECF4AACgkQyIwAt1pH+kBlzgv/QOg70vdj8wU/z97UPdlbxtN4THAB gfSX4N0VPKT5fjX1tFhuXZQAOv7wedR3Trh7TGteyg33TBAFf9A42mXZK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User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <F97F7828-BE6D-44B5-A076-B195C505FF57@meinberg.de>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/AKH-kEnkoOLBkIrqpgdAPVBhZCY>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 22:06:08 -0000

On 2/13/2019 5:08 AM, Heiko Gerstung wrote:
> ..... and I would like to add that every source of time that applies a leap smearing technology is most probably not usable in applications where a requirement to use legal time exists and a maximum offset to legal time is defined that is exceeded during the leap smearing period. If you need to stay within a couple of microseconds of UTC, you might have to step your clock backwards if you want to be compliant ...
> 
> Heiko

As long as one can calculate the expected difference between smeared
time and UTC I'm not sure what the problem is, other than POSIX.

This may not require a backwards step - there are some tests I want to
do to be sure.

H
--
> 
> ﻿On 13.02.19, 10:20 "ntp im Auftrag von Martin Burnicki" <ntp-bounces@ietf.org im Auftrag von martin.burnicki@meinberg.de> wrote:
> 
>     Danny Mayer wrote:
>     > I'd just like to reiterate what I said in the virtual interim meeting
>     > during the roughtime discussion that any server that steps their clock
>     > backwards is fundamentally broken and breaks the NTP protocol. It does
>     > not matter where it's broken, if Posix, the O/S, or elsewhere.
>     > 
>     > Any such server should not be used as a source of NTP packets and should
>     > be avoided at all costs.
>     
>     If this is taken strictly then most Unix operating systems must not be
>     used as NTP servers since they simply *do* step the time back whenever a
>     leap second is inserted. :-(
>     
>     Martin
>     -- 
>     Martin Burnicki
>     
>     Senior Software Engineer
>     
>     MEINBERG Funkuhren GmbH & Co. KG
>     Email: martin.burnicki@meinberg.de
>     Phone: +49 5281 9309-414
>     Linkedin: https://www.linkedin.com/in/martinburnicki/
>     
>     Lange Wand 9, 31812 Bad Pyrmont, Germany
>     Amtsgericht Hannover 17HRA 100322
>     Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
>     Andre Hartmann, Heiko Gerstung
>     Websites: https://www.meinberg.de  https://www.meinbergglobal.com
>     Training: https://www.meinberg.academy
>     
>     _______________________________________________
>     ntp mailing list
>     ntp@ietf.org
>     https://www.ietf.org/mailman/listinfo/ntp
>     
> 
> 

-- 
Harlan Stenn, Network Time Foundation
http://nwtime.org - be a Member!


From nobody Wed Feb 13 14:09:52 2019
Return-Path: <stenn@nwtime.org>
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 63AD412785F for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 14:09:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7PwslgIVOwzf for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 14:09:48 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [66.220.13.234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 67606124BF6 for <ntp@ietf.org>; Wed, 13 Feb 2019 14:09:48 -0800 (PST)
Received: from [10.208.75.157] (75-139-194-196.dhcp.knwc.wa.charter.com [75.139.194.196]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 440DGN0HjLzL7P; Wed, 13 Feb 2019 22:09:48 +0000 (UTC)
To: Warner Losh <imp@bsdimp.com>, Danny Mayer <mayer@ntp.org>
Cc: "ntp@ietf.org" <ntp@ietf.org>, Martin Burnicki <martin.burnicki@meinberg.de>, Watson Ladd <watson@cloudflare.com>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com>
From: Harlan Stenn <stenn@nwtime.org>
Openpgp: preference=signencrypt
Autocrypt: addr=stenn@nwtime.org; prefer-encrypt=mutual; keydata= mQGNBFI2xmQBDACrPayw18eU4pIwCvKh7k0iMkAV9cvzs49kBppM+xoH+KKj4QWmkKELD39H ngQnT3RkKsTLlwxyLqPdUmeQNAY2M5fsOK+OF6EvwLPK9hbmE3Wx2moX+sbEUxJ2VzFhKSKb OPZALXwk1XxL0qBedz0xHYcDwaSAZZkEFXURv2pDIdrmnoUnq2gdC8GpoFJiXoUaCLSYzzaY ac4Njw7Mue8IqfzRQb70aMjXl/qmsmfmEVAyGXywDdc/ler4XSgiuYOV7Kf69bj9PFZZSMdJ MWgEyZH6lJ0TU5ccR2zp5ZRmWzQQkxJMyH2th7q0Nmz3aX4A0K4yE0Ba9/5Dr7ctpF15BrMF aEo4s5lwI6tU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PPcQ4mvC4y7rMrfV6XGQbDynC3ekDxo8SC5SvjaczXMwXg6SZ8iFtEWmEwW9 r7zPjjIPDrX8w5LXBgxArM5o/HbERpc2EdAvMh1D7LC0SvmoE7fBKxsicVBe4h6vXjEZ+LLr /wuZiBld9OnxAUIpwptbBspO6WKTQYvgFH2OeDG27hiE5P4Xs4WSp5j9ez8OVB1iZnA2nCQ+ tNTjO8c+C/P92vPLx5+bpGRXTXMNaLh34PS3ZsYoUDkKZNhczRZUWJ7nynSbeeyF+QW7SLwA qY7O7dyk9LFTsfJqRQJ7tWnIAjJPCwmSgQ8Kl0UJ
Message-ID: <3c1993d9-6b18-1e41-7dbe-12f7e7308e3b@nwtime.org>
Date: Wed, 13 Feb 2019 14:09:48 -0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/wo6dOnfVqtbNhekLnLesQpYHI94>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 22:09:50 -0000

We have a responsibility to let the POSIX folks know about their problems.

We don't have a responsibility to *fix* their problems.

H

On 2/13/2019 1:31 PM, Warner Losh wrote:
> 
> 
> On Wed, Feb 13, 2019, 6:03 AM Danny Mayer <mayer@ntp.org
> <mailto:mayer@ntp.org> wrote:
> 
> 
>     On 2/13/19 5:15 AM, Martin Burnicki wrote:
>     > Danny Mayer wrote:
>     >> On 2/12/19 8:22 PM, Watson Ladd wrote:
>     >>> What do you believe the NTP UTC timestamp should be of the event
>     drawn
>     >>> in Figure 3, Annex 3 of
>     >>>
>     https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!PDF-E.pdf?
>     >>> What do you believe the timestamp is one second before that?
>     >> What you are seeing there is that when adding a leap-second into the
>     >> stream of ticks they add a 60 just before UTC midnight, they are not
>     >> moving the clock back one second. Standard displays and functions of
>     >> time cannot show 23:59:60 though they can do 23:59:59 and 00:00:00
>     >> (ignoring fractions of a second).
>     > I think they could if they knew the second occurrence of the same
>     second
>     > number is a leap second. See my other email. The firmware used inside
>     > Meinberg devices supports a leap second indicator flag, and thus can
>     > distinguish second "60" from a duplicate "59".
>     There is no duplicate 59. and there can be no "same" second.
> 
> 
> In POSIX there most certainly is. There is no unique encoding for the
> leap second to distinguish 59 from 60 (or in some interpretations 60
> from 00). That is the fundamental problem with POSIX that is absolutely
> not fixable, absent additional metadata. That is what Martin is talking
> about here: providing that data to resolve an otherwise ambiguous case.
> 
> Warner
> 
>     Danny
> 
> 
>     _______________________________________________
>     ntp mailing list
>     ntp@ietf.org <mailto:ntp@ietf.org>
>     https://www.ietf.org/mailman/listinfo/ntp
> 
> 
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
> 

-- 
Harlan Stenn, Network Time Foundation
http://nwtime.org - be a Member!


From nobody Wed Feb 13 14:25:25 2019
Return-Path: <wlosh@bsdimp.com>
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 9A967128CF2 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 14:25:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=bsdimp-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h_Q5V9Q3RbQE for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 14:25:21 -0800 (PST)
Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D30DA128B36 for <ntp@ietf.org>; Wed, 13 Feb 2019 14:25:20 -0800 (PST)
Received: by mail-qt1-x836.google.com with SMTP id p48so4651663qtk.2 for <ntp@ietf.org>; Wed, 13 Feb 2019 14:25:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=O4VEK33e7w6utDz+p/i1s2M0C6Nsn3vt85GCSC3pWaY=; b=aXHTjofQ/pOe7ChMwsmoe2Ca+P/xBVbbVuhc9sOmwIXt0H/6Pp4vRU/hg4XKV9FlpO ZU4+32qDVMVDf0+g6i96aNjNE6Jdf0P7sIkUNOW2v8YrmbXMpRE5C/9x96wP5Yt/QKxc iRUkc4W3uMJz+0ccA0H7m+DMkEW+ltOzj83TNIweSrIgGH79I84GCBUJqNwNmTGvf/c4 je+02TVTdCe/fn/JWnBVGSkS90LvucVzIy1gZR8L0kpd+j2aoN+xRhM6lMIV8ig3ewop luv7EmJGt3o7MeCr0YfwegVWcvsUz3kxZa5P4sFTfPS+AFJtZsXYMd89xN4tvm0RyxSb nL6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=O4VEK33e7w6utDz+p/i1s2M0C6Nsn3vt85GCSC3pWaY=; b=CU3caEoOApZ2VIOUr8s+YgEhkF59iJzVQFbiYrVIqYT2zmM0TIYnEKL1yws5UmmCPY qX9RGvVySWytET0rjIPWqpEkf46++c3DCnjoaScDZtuTMbPda627UMPXEVzZvxFyY+A1 qS7xmjm9/DOTExVZsfy+JllfAWE9v2sG/JqWGZi3+XT6YJnFXGDmy2mOpHPuRRkLnh0y pf2nCcQfYBWoO2nsT92RX3o5Ytf1V7qDmOK2H+yAifZ1NZhjJmif10tKHtuL2QuRO2dS UWwUmTeh7+By3UxqlEhtJzlemP30OweI6m0IPKPi3Kmpt93JSccRMfUuGavgXqZpPmux 8o9A==
X-Gm-Message-State: AHQUAubgg3BpiqMkRVj4nxjUaOQsQlGUGF/q69iyEv+ueexoYeuzweZs ADPLbgvvNFzlCGXmBk2upSNkP9b4ITq77GlIA62xRQ==
X-Google-Smtp-Source: AHgI3Ia7PW2+50KjMOk4DT1m5J3Kg/eEo3AZg4WcQkZt5QCB2Ds4gsTOavCRsuZQ6Ymcbb2uGE+r8da66cQoYcpnalM=
X-Received: by 2002:ac8:35f8:: with SMTP id l53mr405413qtb.15.1550096719423; Wed, 13 Feb 2019 14:25:19 -0800 (PST)
MIME-Version: 1.0
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com> <3c1993d9-6b18-1e41-7dbe-12f7e7308e3b@nwtime.org>
In-Reply-To: <3c1993d9-6b18-1e41-7dbe-12f7e7308e3b@nwtime.org>
From: Warner Losh <imp@bsdimp.com>
Date: Wed, 13 Feb 2019 15:25:07 -0700
Message-ID: <CANCZdfoUsQtQvGaSobRszZNUsXWFudxaO3qLKAeva7Fy0XewQA@mail.gmail.com>
To: Harlan Stenn <stenn@nwtime.org>
Cc: mayer@ntp.org, ntp@ietf.org, Martin Burnicki <martin.burnicki@meinberg.de>, Watson Ladd <watson@cloudflare.com>
Content-Type: multipart/alternative; boundary="0000000000005440b00581ce0452"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/rcEPC_TKgLuNn9jewQ_1OrpeS8c>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Wed, 13 Feb 2019 22:25:24 -0000

--0000000000005440b00581ce0452
Content-Type: text/plain; charset="UTF-8"

I agree. History has shown there is no political will to change this aspect
of POSIX. Hisory has also show leap seconds as a means to keep UTC in sync
are not loved by people having to implement them, but also not hated enough
in the public at large for there to be any  change. So any solution will
need to consider the two incompatible realities coexisting :(

Warner

On Wed, Feb 13, 2019, 3:09 PM Harlan Stenn <stenn@nwtime.org wrote:

> We have a responsibility to let the POSIX folks know about their problems.
>
> We don't have a responsibility to *fix* their problems.
>
> H
>
> On 2/13/2019 1:31 PM, Warner Losh wrote:
> >
> >
> > On Wed, Feb 13, 2019, 6:03 AM Danny Mayer <mayer@ntp.org
> > <mailto:mayer@ntp.org> wrote:
> >
> >
> >     On 2/13/19 5:15 AM, Martin Burnicki wrote:
> >     > Danny Mayer wrote:
> >     >> On 2/12/19 8:22 PM, Watson Ladd wrote:
> >     >>> What do you believe the NTP UTC timestamp should be of the event
> >     drawn
> >     >>> in Figure 3, Annex 3 of
> >     >>>
> >
> https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!PDF-E.pdf
> ?
> >     >>> What do you believe the timestamp is one second before that?
> >     >> What you are seeing there is that when adding a leap-second into
> the
> >     >> stream of ticks they add a 60 just before UTC midnight, they are
> not
> >     >> moving the clock back one second. Standard displays and functions
> of
> >     >> time cannot show 23:59:60 though they can do 23:59:59 and 00:00:00
> >     >> (ignoring fractions of a second).
> >     > I think they could if they knew the second occurrence of the same
> >     second
> >     > number is a leap second. See my other email. The firmware used
> inside
> >     > Meinberg devices supports a leap second indicator flag, and thus
> can
> >     > distinguish second "60" from a duplicate "59".
> >     There is no duplicate 59. and there can be no "same" second.
> >
> >
> > In POSIX there most certainly is. There is no unique encoding for the
> > leap second to distinguish 59 from 60 (or in some interpretations 60
> > from 00). That is the fundamental problem with POSIX that is absolutely
> > not fixable, absent additional metadata. That is what Martin is talking
> > about here: providing that data to resolve an otherwise ambiguous case.
> >
> > Warner
> >
> >     Danny
> >
> >
> >     _______________________________________________
> >     ntp mailing list
> >     ntp@ietf.org <mailto:ntp@ietf.org>
> >     https://www.ietf.org/mailman/listinfo/ntp
> >
> >
> > _______________________________________________
> > ntp mailing list
> > ntp@ietf.org
> > https://www.ietf.org/mailman/listinfo/ntp
> >
>
> --
> Harlan Stenn, Network Time Foundation
> http://nwtime.org - be a Member!
>

--0000000000005440b00581ce0452
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">I agree. History has shown there is no political will to =
change this aspect of POSIX. Hisory has also show leap seconds as a means t=
o keep UTC in sync are not loved by people having to implement them, but al=
so not hated enough in the public at large for there to be any=C2=A0 change=
. So any solution will need to consider the two incompatible realities coex=
isting :(<div dir=3D"auto"><br></div><div dir=3D"auto">Warner</div></div><b=
r><div class=3D"gmail_quote"><div dir=3D"ltr">On Wed, Feb 13, 2019, 3:09 PM=
 Harlan Stenn &lt;<a href=3D"mailto:stenn@nwtime.org">stenn@nwtime.org</a> =
wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8e=
x;border-left:1px #ccc solid;padding-left:1ex">We have a responsibility to =
let the POSIX folks know about their problems.<br>
<br>
We don&#39;t have a responsibility to *fix* their problems.<br>
<br>
H<br>
<br>
On 2/13/2019 1:31 PM, Warner Losh wrote:<br>
&gt; <br>
&gt; <br>
&gt; On Wed, Feb 13, 2019, 6:03 AM Danny Mayer &lt;<a href=3D"mailto:mayer@=
ntp.org" target=3D"_blank" rel=3D"noreferrer">mayer@ntp.org</a><br>
&gt; &lt;mailto:<a href=3D"mailto:mayer@ntp.org" target=3D"_blank" rel=3D"n=
oreferrer">mayer@ntp.org</a>&gt; wrote:<br>
&gt; <br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0On 2/13/19 5:15 AM, Martin Burnicki wrote:<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt; Danny Mayer wrote:<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt;&gt; On 2/12/19 8:22 PM, Watson Ladd wrote:<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt;&gt;&gt; What do you believe the NTP UTC timest=
amp should be of the event<br>
&gt;=C2=A0 =C2=A0 =C2=A0drawn<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt;&gt;&gt; in Figure 3, Annex 3 of<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt;&gt;&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0<a href=3D"https://www.itu.int/dms_pubrec/itu-r/rec=
/tf/R-REC-TF.460-6-200202-I!!PDF-E.pdf" rel=3D"noreferrer noreferrer" targe=
t=3D"_blank">https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200=
202-I!!PDF-E.pdf</a>?<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt;&gt;&gt; What do you believe the timestamp is o=
ne second before that?<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt;&gt; What you are seeing there is that when add=
ing a leap-second into the<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt;&gt; stream of ticks they add a 60 just before =
UTC midnight, they are not<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt;&gt; moving the clock back one second. Standard=
 displays and functions of<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt;&gt; time cannot show 23:59:60 though they can =
do 23:59:59 and 00:00:00<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt;&gt; (ignoring fractions of a second).<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt; I think they could if they knew the second occ=
urrence of the same<br>
&gt;=C2=A0 =C2=A0 =C2=A0second<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt; number is a leap second. See my other email. T=
he firmware used inside<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt; Meinberg devices supports a leap second indica=
tor flag, and thus can<br>
&gt;=C2=A0 =C2=A0 =C2=A0&gt; distinguish second &quot;60&quot; from a dupli=
cate &quot;59&quot;.<br>
&gt;=C2=A0 =C2=A0 =C2=A0There is no duplicate 59. and there can be no &quot=
;same&quot; second.<br>
&gt; <br>
&gt; <br>
&gt; In POSIX there most certainly is. There is no unique encoding for the<=
br>
&gt; leap second to distinguish 59 from 60 (or in some interpretations 60<b=
r>
&gt; from 00). That is the fundamental problem with POSIX that is absolutel=
y<br>
&gt; not fixable, absent additional metadata. That is what Martin is talkin=
g<br>
&gt; about here: providing that data to resolve an otherwise ambiguous case=
.<br>
&gt; <br>
&gt; Warner<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0Danny<br>
&gt; <br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0_______________________________________________<br>
&gt;=C2=A0 =C2=A0 =C2=A0ntp mailing list<br>
&gt;=C2=A0 =C2=A0 =C2=A0<a href=3D"mailto:ntp@ietf.org" target=3D"_blank" r=
el=3D"noreferrer">ntp@ietf.org</a> &lt;mailto:<a href=3D"mailto:ntp@ietf.or=
g" target=3D"_blank" rel=3D"noreferrer">ntp@ietf.org</a>&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0<a href=3D"https://www.ietf.org/mailman/listinfo/nt=
p" rel=3D"noreferrer noreferrer" target=3D"_blank">https://www.ietf.org/mai=
lman/listinfo/ntp</a><br>
&gt; <br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; ntp mailing list<br>
&gt; <a href=3D"mailto:ntp@ietf.org" target=3D"_blank" rel=3D"noreferrer">n=
tp@ietf.org</a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/ntp" rel=3D"noreferre=
r noreferrer" target=3D"_blank">https://www.ietf.org/mailman/listinfo/ntp</=
a><br>
&gt; <br>
<br>
-- <br>
Harlan Stenn, Network Time Foundation<br>
<a href=3D"http://nwtime.org" rel=3D"noreferrer noreferrer" target=3D"_blan=
k">http://nwtime.org</a> - be a Member!<br>
</blockquote></div>

--0000000000005440b00581ce0452--


From nobody Wed Feb 13 23:23:45 2019
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 388C212D7F8 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 23:20:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level: 
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02zkBW-KiN5i for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 23:19:59 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (rrzmta2.uni-regensburg.de [194.94.155.52]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7A5B6129A87 for <ntp@ietf.org>; Wed, 13 Feb 2019 23:19:59 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id A04D17BF52 for <ntp@ietf.org>; Thu, 14 Feb 2019 08:19:57 +0100 (CET)
Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta2.uni-regensburg.de (Postfix) with ESMTP id 81B847BDDB for <ntp@ietf.org>; Thu, 14 Feb 2019 08:19:55 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Thu, 14 Feb 2019 08:19:55 +0100
Message-Id: <5C65169A020000A10002FADD@gwsmtp1.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.1.0 
Date: Thu, 14 Feb 2019 08:19:54 +0100
From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
To: "ntp@ietf.org" <ntp@ietf.org>,"Steve Allen" <sla@ucolick.org>
References: <1c973286-6f1c-5447-c9cf-bbe6ac004ae8@pdmconsulting.net> <20190213172904.GE19408@ucolick.org>
In-Reply-To: <20190213172904.GE19408@ucolick.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/tPmIMpDvOChdT5-5u6tk1c7A_Kk>
Subject: [Ntp] Antw: Re:  Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 07:20:02 -0000

>>> Steve Allen <sla@ucolick.org> schrieb am 13.02.2019 um 18:29 in Nachricht
<20190213172904.GE19408@ucolick.org>:
> On Tue 2019‑02‑12T17:18:47‑0500 Danny Mayer hath writ:
>> I'd just like to reiterate what I said in the virtual interim meeting
>> during the roughtime discussion that any server that steps their clock
>> backwards is fundamentally broken and breaks the NTP protocol. It does
>> not matter where it's broken, if Posix, the O/S, or elsewhere.
>>
>> Any such server should not be used as a source of NTP packets and should
>> be avoided at all costs.
> 
> Suppose I start up my system, and it is an NTP server.
> Suppose that at startup my LAN has no connection to the outside world.
> Suppose that I later get a network connection and find that my system
> clock is 10 seconds ahead of UTC.
> 
> It is possible for any system not to know what time it is.
> A good protocol should recommend what actions should be taken.

Isn't the practice to use a program to set the time quick and dirty first
(SNTP client, maybe), then starting the ntp daemon)? Are we talking about bad
time when the daemon starts, or bad time while the daemon is running? Actually
it's an interesting case to decide when a server is properly synced: In the
past I had cases where the time was badly synced, but it wasn't always
indicated by the numbers I could get from ntpd.

So maybe the best practices document could include some guidelines how to
decide whether a server is "well-synced". In the past I developed a set of
tests that can either succeed or fail, for each successful test, the component
gets one point, and in the end I converted the point score to a value in the
range [0-1], where 0 is a complete failure and 1 is "perfect" sync.
Unfortunately the test parameters depend on the type of server I'm monitoring
(e.g. stratum, LAN or WAN, etc.)...

Regards,
Ulrich

> 
> ‑‑
> Steve Allen                    <sla@ucolick.org>              WGS‑84 (GPS)
> UCO/Lick Observatory‑‑ISB 260  Natural Sciences II, Room 165  Lat 
+36.99855
> 1156 High Street               Voice: +1 831 459 3046         Lng
‑122.06015
> Santa Cruz, CA 95064           https://www.ucolick.org/~sla/  Hgt +250 m
> 
> _______________________________________________
> ntp mailing list
> ntp@ietf.org 
> https://www.ietf.org/mailman/listinfo/ntp 




From nobody Wed Feb 13 23:24:51 2019
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 B399212D7F8 for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 23:24:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level: 
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mYk0A2zd4B1k for <ntp@ietfa.amsl.com>; Wed, 13 Feb 2019 23:24:44 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (rrzmta2.uni-regensburg.de [194.94.155.52]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 40A45129A87 for <ntp@ietf.org>; Wed, 13 Feb 2019 23:24:44 -0800 (PST)
Received: from rrzmta2.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id A448C7E475 for <ntp@ietf.org>; Thu, 14 Feb 2019 08:24:42 +0100 (CET)
Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta2.uni-regensburg.de (Postfix) with ESMTP id 6DEED7CDF2 for <ntp@ietf.org>; Thu, 14 Feb 2019 08:24:41 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Thu, 14 Feb 2019 08:24:41 +0100
Message-Id: <5C6517B7020000A10002FAE2@gwsmtp1.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.1.0 
Date: Thu, 14 Feb 2019 08:24:39 +0100
From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
To: "Watson Ladd" <watson@cloudflare.com>, <martin.burnicki@meinberg.de>,"Danny Mayer" <mayer@ntp.org>
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <46f48ee5-2e27-4dfa-7d31-e48a0b6c4a80@meinberg.de> <3886e606-9326-7d7b-f110-ebeab6b3c4d7@ntp.org>
In-Reply-To: <3886e606-9326-7d7b-f110-ebeab6b3c4d7@ntp.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/qZM5IeIWKRVQWF1y87192sihPKE>
Subject: [Ntp] Antw: Re:  Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 07:24:47 -0000

>>> Danny Mayer <mayer@ntp.org> schrieb am 13.02.2019 um 19:10 in Nachricht
<3886e606-9326-7d7b-f110-ebeab6b3c4d7@ntp.org>:

> On 2/13/19 12:55 PM, Martin Burnicki wrote:
>> Danny Mayer wrote:
>>> On 2/13/19 5:15 AM, Martin Burnicki wrote:
>>>> Danny Mayer wrote:
>>>>> On 2/12/19 8:22 PM, Watson Ladd wrote:
>>>>>> What do you believe the NTP UTC timestamp should be of the event drawn
>>>>>> in Figure 3, Annex 3 of
>>>>>>
https://www.itu.int/dms_pubrec/itu‑r/rec/tf/R‑REC‑TF.460‑6‑200202‑I!!PDF‑E.pdf?

>>>>>> What do you believe the timestamp is one second before that?
>>>>> What you are seeing there is that when adding a leap‑second into the
>>>>> stream of ticks they add a 60 just before UTC midnight, they are not
>>>>> moving the clock back one second. Standard displays and functions of
>>>>> time cannot show 23:59:60 though they can do 23:59:59 and 00:00:00
>>>>> (ignoring fractions of a second).
>>>> I think they could if they knew the second occurrence of the same second
>>>> number is a leap second. See my other email. The firmware used inside
>>>> Meinberg devices supports a leap second indicator flag, and thus can
>>>> distinguish second "60" from a duplicate "59".
>>> There is no duplicate 59. and there can be no "same" second.
>> Of course there is.
>>
>> I've just duplicated a test I've already run some years ago and put the
>> results here:
>> 
>
https://kb.meinbergglobal.com/kb/time_sync/leap_second_handling_by_the_linux_

> kernel
>>
>> So you can see exactly what happens on a Linux system.
>>
>> Martin
> 
> That's someone broken implementation. The ITU‑T document makes it clear
> that it's a different second.
> 
> Let's at least differentiate between what is implemented and what the
> standard has stated.

Let's make it positive: Who can show an implementation that worked as
designed, i.e. showing the 61st second in the minute?

Regards,
Ulrich

> 
> Danny
> 
> 
> _______________________________________________
> ntp mailing list
> ntp@ietf.org 
> https://www.ietf.org/mailman/listinfo/ntp 




From nobody Thu Feb 14 00:18:04 2019
Return-Path: <martin.burnicki@meinberg.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 8D70613102D for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 00:18:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.3
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0V0w1nV7aw84 for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 00:18:00 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CA42D12D7F8 for <ntp@ietf.org>; Thu, 14 Feb 2019 00:17:59 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id CF9BA71C06FE; Thu, 14 Feb 2019 09:17:48 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de CF9BA71C06FE
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1550132278; bh=sReK2giHo66w/4fpLiqXdHIBfBr9CTv82FOJcDTyuOU=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=oh13uxTZYT/p/S0Px0WacJ8yaRPy6GpZDM+a/Z1p3e+ujBUKq0etcjHqVMIVIIkID qruDR/CqromTZs4/zbKLRpaOoYPA3DlG/EJzRSFoKbfEQmp+wnExq69A9ed6A9XrI5 PzhAlMCEcqkgdc7Sis9rKSLp37xTgqLpffuLXi8M=
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Thu, 14 Feb 2019 09:13:58 +0100
To: Warner Losh <imp@bsdimp.com>, Danny Mayer <mayer@ntp.org>
Cc: Watson Ladd <watson@cloudflare.com>, "ntp@ietf.org" <ntp@ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Openpgp: preference=signencrypt
Autocrypt: addr=martin.burnicki@meinberg.de; prefer-encrypt=mutual; keydata= xsFNBFUJbhwBEADpbjlFJrR+RWZSc5WFFmRVQUFQ+XwgRBrAtTkJyu+xhu6DvD6zq2IgnXQ3 W8pz/MoMMfKWaNOJ1qCxMfd8XrCR1WaO1m98Re9RqB9948ZH2VZIRN0MiLV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jdABIxhZrnMICSW3fMyo9yfiQ6tXoyD1cHD/i2WmOnqCKEOtFScVeQJZJhqQb5 4NBx+viRax9d+X066AKYiBspm7kYwBVzNsng3uHOfyQXnVmcCEawxWIPyCtxSoV6fCKYdAfJ CQeElBXE89inkdGmdb0KLmYkHDoV4L1deAsPUI/t6qZjwqF3pKcr8kdGExqHwvytL8n1KGbY PyJ6Fn1z/idOOiTYgN+Q7FWRRX0QplyVpSBU4OnD0Gd3KkP+a0+kErokA1Lk3/YCE45VT8J8 8f4YGbRsIkf0xW+Ei0fk3fl9VPOrbTD+gFv+AzbT+Gp1+kElwVKj0VzXy0OC6UIQJ3J1on0l ArkcfPTIMcWxGmfGPw==
Organization: Meinberg Funkuhren, Bad Pyrmont, Germany
Message-ID: <d485ae4c-93cb-30ca-0223-260e3ff61cd4@meinberg.de>
Date: Thu, 14 Feb 2019 09:13:58 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/0urzXjv60FDa5mwJMBqwuOk5aJk>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 08:18:03 -0000

Warner Losh wrote:
>     There is no duplicate 59. and there can be no "same" second.
> 
> 
> In POSIX there most certainly is. There is no unique encoding for the
> leap second to distinguish 59 from 60 (or in some interpretations 60
> from 00). That is the fundamental problem with POSIX that is absolutely
> not fixable, absent additional metadata. That is what Martin is talking
> about here: providing that data to resolve an otherwise ambiguous case.

Exactly. Thanks!

Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy


From nobody Thu Feb 14 00:18:13 2019
Return-Path: <stenn@nwtime.org>
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 33067131163 for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 00:18:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Njvf3dbbaJmK for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 00:18:04 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [IPv6:2001:470:1:205::234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EE6A112D7F8 for <ntp@ietf.org>; Thu, 14 Feb 2019 00:18:03 -0800 (PST)
Received: from [10.208.75.157] (75-139-194-196.dhcp.knwc.wa.charter.com [75.139.194.196]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 440TmC2pnBzL7P; Thu, 14 Feb 2019 08:18:03 +0000 (UTC)
To: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>, "ntp@ietf.org" <ntp@ietf.org>, Steve Allen <sla@ucolick.org>
References: <1c973286-6f1c-5447-c9cf-bbe6ac004ae8@pdmconsulting.net> <20190213172904.GE19408@ucolick.org> <5C65169A020000A10002FADD@gwsmtp1.uni-regensburg.de>
From: Harlan Stenn <stenn@nwtime.org>
Openpgp: preference=signencrypt
Autocrypt: addr=stenn@nwtime.org; prefer-encrypt=mutual; keydata= mQGNBFI2xmQBDACrPayw18eU4pIwCvKh7k0iMkAV9cvzs49kBppM+xoH+KKj4QWmkKELD39H ngQnT3RkKsTLlwxyLqPdUmeQNAY2M5fsOK+OF6EvwLPK9hbmE3Wx2moX+sbEUxJ2VzFhKSKb OPZALXwk1XxL0qBedz0xHYcDwaSAZZkEFXURv2pDIdrmnoUnq2gdC8GpoFJiXoUaCLSYzzaY ac4Njw7Mue8IqfzRQb70aMjXl/qmsmfmEVAyGXywDdc/ler4XSgiuYOV7Kf69bj9PFZZSMdJ MWgEyZH6lJ0TU5ccR2zp5ZRmWzQQkxJMyH2th7q0Nmz3aX4A0K4yE0Ba9/5Dr7ctpF15BrMF aEo4s5lwI6tUnkgMWo265mMzCz4mAPV/ac0w0OXQg7r9E2r0+dRapnzUlG43D0JLDqDr9uRR L6IrRQqoCWUC75lfmPYQYSlaTJaK68r3lXd0z1cXJUgVtEL5H3/Z71R2B20twcQVAnw2iIH6 L5vdrsIjHrMmkqRVbs9nNyEAEQEAAbQ5SGFybGFuIFN0ZW5uIChOZXR3b3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9ez8OVB1iZnA2nCQ+ tNTjO8c+C/P92vPLx5+bpGRXTXMNaLh34PS3ZsYoUDkKZNhczRZUWJ7nynSbeeyF+QW7SLwA qY7O7dyk9LFTsfJqRQJ7tWnIAjJPCwmSgQ8Kl0UJ
Message-ID: <fb3565a5-40a9-c9cd-cb78-04057aa98ebb@nwtime.org>
Date: Thu, 14 Feb 2019 00:18:02 -0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <5C65169A020000A10002FADD@gwsmtp1.uni-regensburg.de>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/UK0Jb5pyI90vxwaVAz594F5iUIs>
Subject: Re: [Ntp] Antw: Re: Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 08:18:10 -0000

On 2/13/2019 11:19 PM, Ulrich Windl wrote:
>>>> Steve Allen <sla@ucolick.org> schrieb am 13.02.2019 um 18:29 in Nachricht
> <20190213172904.GE19408@ucolick.org>:
>> On Tue 2019‑02‑12T17:18:47‑0500 Danny Mayer hath writ:
>>> I'd just like to reiterate what I said in the virtual interim meeting
>>> during the roughtime discussion that any server that steps their clock
>>> backwards is fundamentally broken and breaks the NTP protocol. It does
>>> not matter where it's broken, if Posix, the O/S, or elsewhere.
>>>
>>> Any such server should not be used as a source of NTP packets and should
>>> be avoided at all costs.
>>
>> Suppose I start up my system, and it is an NTP server.
>> Suppose that at startup my LAN has no connection to the outside world.
>> Suppose that I later get a network connection and find that my system
>> clock is 10 seconds ahead of UTC.
>>
>> It is possible for any system not to know what time it is.
>> A good protocol should recommend what actions should be taken.
> 
> Isn't the practice to use a program to set the time quick and dirty first
> (SNTP client, maybe), then starting the ntp daemon)? Are we talking about bad
> time when the daemon starts, or bad time while the daemon is running? Actually
> it's an interesting case to decide when a server is properly synced: In the
> past I had cases where the time was badly synced, but it wasn't always
> indicated by the numbers I could get from ntpd.

There should be no need to set the clock before calling ntpd.

That's why we recommend -g on cold-start (only).

I've heard a couple of people say that they think it's still useful, and
I would love to understand exactly why that would be the case.

The best thing to do is to have "enough" sources of time.

H
--
> So maybe the best practices document could include some guidelines how to
> decide whether a server is "well-synced". In the past I developed a set of
> tests that can either succeed or fail, for each successful test, the component
> gets one point, and in the end I converted the point score to a value in the
> range [0-1], where 0 is a complete failure and 1 is "perfect" sync.
> Unfortunately the test parameters depend on the type of server I'm monitoring
> (e.g. stratum, LAN or WAN, etc.)...
> 
> Regards,
> Ulrich
> 
>>
>> ‑‑
>> Steve Allen                    <sla@ucolick.org>              WGS‑84 (GPS)
>> UCO/Lick Observatory‑‑ISB 260  Natural Sciences II, Room 165  Lat 
> +36.99855
>> 1156 High Street               Voice: +1 831 459 3046         Lng
> ‑122.06015
>> Santa Cruz, CA 95064           https://www.ucolick.org/~sla/  Hgt +250 m
>>
>> _______________________________________________
>> ntp mailing list
>> ntp@ietf.org 
>> https://www.ietf.org/mailman/listinfo/ntp 
> 
> 
> 
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
> 

-- 
Harlan Stenn, Network Time Foundation
http://nwtime.org - be a Member!


From nobody Thu Feb 14 00:20:06 2019
Return-Path: <martin.burnicki@meinberg.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 4D423131056 for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 00:20:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.3
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g1ZhiUMb7fHe for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 00:20:03 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E805D13102B for <ntp@ietf.org>; Thu, 14 Feb 2019 00:20:02 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id 15E8F71C051C; Thu, 14 Feb 2019 09:19:50 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de 15E8F71C051C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1550132401; bh=vWdqS8g0nUoYeZWvq2qbguoYAdgA9QtCoLuO8qvQBbo=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=IfIW6g3OY6p6nQ9c1pu9kMgWgQBW8/aQZhfm13FM8tRGdhhK5KMfcXDEH+3cnr1K6 qip/IskbRv2A2JBAX6b0+I4ZhwEo3NfNLG9L1+lk2klYHd5ws8kKnXv9Q1tg6G2h3s 0XoIxLTRrlvsXLP48p7juEXG/PT30yivwHPemWgo=
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Thu, 14 Feb 2019 09:15:23 +0100
To: Harlan Stenn <stenn@nwtime.org>, Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
Cc: Danny Mayer <mayer@ntp.org>, "ntp@ietf.org" <ntp@ietf.org>, Watson Ladd <watson=40cloudflare.com@dmarc.ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <ea86e875-054a-3bf6-ad20-b125d1636771@meinberg.de> <5C63FF97020000A10002FA90@gwsmtp1.uni-regensburg.de> <2e4f63fb-befc-6dae-3c52-525fe4811efa@meinberg.de> <bc299967-3d48-b73f-e4ff-884937432a75@nwtime.org>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Openpgp: preference=signencrypt
Autocrypt: addr=martin.burnicki@meinberg.de; prefer-encrypt=mutual; keydata= xsFNBFUJbhwBEADpbjlFJrR+RWZSc5WFFmRVQUFQ+XwgRBrAtTkJyu+xhu6DvD6zq2IgnXQ3 W8pz/MoMMfKWaNOJ1qCxMfd8XrCR1WaO1m98Re9RqB9948ZH2VZIRN0MiLVVYLU0I0EufAUo y5P9TgyRet7Ojuy3j7LqOEjhYpIkkz1XNup2CjfNAN3xxrx8KJJ4iErtLL35X+UyNpHd57tx Y+OzOdBOfweHNyaj1vtY5cAQuzR66hom+gK0YyuXdGDeN5Gb1nvk8H9tj5Fd/VIm4nZdIxam n63Mdk8mQ7dO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ZjwqF3pKcr8kdGExqHwvytL8n1KGbY PyJ6Fn1z/idOOiTYgN+Q7FWRRX0QplyVpSBU4OnD0Gd3KkP+a0+kErokA1Lk3/YCE45VT8J8 8f4YGbRsIkf0xW+Ei0fk3fl9VPOrbTD+gFv+AzbT+Gp1+kElwVKj0VzXy0OC6UIQJ3J1on0l ArkcfPTIMcWxGmfGPw==
Organization: Meinberg Funkuhren, Bad Pyrmont, Germany
Message-ID: <7745cd22-dbdd-7c9f-7a2d-11108c88143d@meinberg.de>
Date: Thu, 14 Feb 2019 09:15:23 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <bc299967-3d48-b73f-e4ff-884937432a75@nwtime.org>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/CQmjP3v0JU9GOUXQG_F9hpUDa3c>
Subject: Re: [Ntp] Antw: Re: Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 08:20:05 -0000

Harlan,

Harlan Stenn wrote:
> On 2/13/2019 6:23 AM, Martin Burnicki wrote:
>> I absolutely agree. And a replacement should be available if autokey
>> isn't used anymore.
> 
> "Let me get in to my Delorean."  Please see
> draft-stenn-ntp-extended-information, which had this in -00 in October
> of 2016.

I know, and I hope this becomes available for usage soon.

Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy


From nobody Thu Feb 14 00:40:51 2019
Return-Path: <mlichvar@redhat.com>
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 E6D5C131056 for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 00:40:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.901
X-Spam-Level: 
X-Spam-Status: No, score=-6.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7WAsqxuAAMBm for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 00:40:47 -0800 (PST)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 40F18131055 for <ntp@ietf.org>; Thu, 14 Feb 2019 00:40:47 -0800 (PST)
Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 59C8FAC2DA; Thu, 14 Feb 2019 08:40:46 +0000 (UTC)
Received: from localhost (holly.tpb.lab.eng.brq.redhat.com [10.43.134.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 014F519936; Thu, 14 Feb 2019 08:40:44 +0000 (UTC)
Date: Thu, 14 Feb 2019 09:40:43 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Warner Losh <imp@bsdimp.com>
Cc: Danny Mayer <mayer@ntp.org>, "ntp@ietf.org" <ntp@ietf.org>, Martin Burnicki <martin.burnicki@meinberg.de>, Watson Ladd <watson@cloudflare.com>
Message-ID: <20190214084043.GP6602@localhost>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 14 Feb 2019 08:40:46 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/ZH_qS-YgvPshQTMDlyRPWTcYWlc>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 08:40:49 -0000

On Wed, Feb 13, 2019 at 02:31:44PM -0700, Warner Losh wrote:
> In POSIX there most certainly is. There is no unique encoding for the leap
> second to distinguish 59 from 60 (or in some interpretations 60 from 00).
> That is the fundamental problem with POSIX that is absolutely not fixable,
> absent additional metadata. That is what Martin is talking about here:
> providing that data to resolve an otherwise ambiguous case.

The question is how NTP should deal with this ambiguity. Clients can
ignore measurements with timestamps in those two seconds and servers
could perhaps respond with "not synchronized". I think some NTP
implementations do this. Maybe it should be added to the
specification.

-- 
Miroslav Lichvar


From nobody Thu Feb 14 00:48:54 2019
Return-Path: <tal.mizrahi.phd@gmail.com>
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 78F7E12D7F8; Thu, 14 Feb 2019 00:48:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N67hAsmHXiU3; Thu, 14 Feb 2019 00:48:49 -0800 (PST)
Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6768A13106D; Thu, 14 Feb 2019 00:48:49 -0800 (PST)
Received: by mail-qt1-x82a.google.com with SMTP id y20so5909424qtm.13; Thu, 14 Feb 2019 00:48:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=q5ydGUDWO9l4vJDLkfEF4gfP6OfMNODtm+91rhv2MJk=; b=sGSmgO62+iG0StfrurUNDUVH6Fq2L/FSrDR/jIa3xBu1e//D4hE9qLJ7e4Xl1G7loO gU3ECbf/lX9nlCq+eG2q7HrNpf+2Vp3MjkDLwLfzj+H6V5+hD/AnW/65D51h0EpM+AkP +x5nrm9ZKRxgnCDS6Ehzt4L5x4dAhDIFQbh6vCeUolwTcfbsbM43z7ymfJaS+Bw1DlhE rwknfgLhx5JJfH3x2HKbqxDl4yo1TB73Dn0GNdPM199dwfq1goeTBKceNvQMBivKjFwM 4kmUTWZj3LjrLbkWipAh2ROZaL4vE604fhvzvq/5xExj+lY/X+oFIGXQ0qeEsGRGVajj mziw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=q5ydGUDWO9l4vJDLkfEF4gfP6OfMNODtm+91rhv2MJk=; b=TkxJB9MgJj31J3QduCT+FBTWPm2BuLeXLT73a8CBj4dFNBLbROeTnVznwbWRwFv2Fm V5Xs+bg+WJPHkZGycx389E8Usm9lspVCDNaJVj/4P9uIKHhBSExYbDZk6J0gEkl1utBo g52B8OrmHNavLFtfJw3L3uhTOmqgbdTB9s/+Tf97YkBjDAZfio4yxdVW+Q41zYvdLScj 9kOU0uFfowiveKoihWNrbzOlQcWNjn9vLjGHVNpxsTwvF1KVk8EeJDeIIWBB4v77/AUl T0Rhc067ExbY9xOz0QcHSUwjsJs16gprFzoROxfzUq4UIWxmCNjyvFBpVg6+RXxlGRQi Icsw==
X-Gm-Message-State: AHQUAublLJcgqU99w9PPgyEAOdCML2tXS4YS7BA/PgkSqWSBOg5PtCS7 DENh+ZZ8iclgT6Gs5gCOJW1HigpDJqT/j/z2xLzOqpVm
X-Google-Smtp-Source: AHgI3Ia9QRjncVlxNIKmrD5IBn5b/3GF0bOndlvAyoa2Wjr8hRH7NQTH/0lGp+Q6Q7qbOswWtrl11z9Wn6ygdusby78=
X-Received: by 2002:ac8:3341:: with SMTP id u1mr2004957qta.58.1550134128399; Thu, 14 Feb 2019 00:48:48 -0800 (PST)
MIME-Version: 1.0
References: <154444480037.17333.5127536482994262799.idtracker@ietfa.amsl.com> <CABUE3XnQSi9rJnN2pxp2ZmmMAF4-aTgZ3eFeuWgj7uDWkZDoHw@mail.gmail.com> <0277B06D-060A-44AB-BA7A-C02F3C6E5021@kaloom.com> <CABUE3XmL_XERozG96bCboxwsbSFWjxvbwyupvs+CjvFA8eR59Q@mail.gmail.com> <22cec0be-76df-9fed-45d9-48769d662506@earthlink.net> <CABUE3XmQ7LDwL6HyA0QZaL1=QBSUaXQE3b=hCO0vp23irct=Ag@mail.gmail.com> <73109dcb-915c-a826-6aef-6a14f858a8dd@earthlink.net>
In-Reply-To: <73109dcb-915c-a826-6aef-6a14f858a8dd@earthlink.net>
From: Tal Mizrahi <tal.mizrahi.phd@gmail.com>
Date: Thu, 14 Feb 2019 10:48:37 +0200
Message-ID: <CABUE3XkHTyrzAj-iW-GrBZ3TL=zht6ciauawzL+Nur6eOggS9Q@mail.gmail.com>
To: Charlie Perkins <charles.perkins@earthlink.net>,  "draft-ietf-6lo-deadline-time@ietf.org" <draft-ietf-6lo-deadline-time@ietf.org>,  "6lo-chairs@ietf.org" <6lo-chairs@ietf.org>
Cc: "ntp@ietf.org" <ntp@ietf.org>, "6lo@ietf.org" <6lo@ietf.org>,  "ntp-chairs@ietf.org" <ntp-chairs@ietf.org>, Suresh Krishnan <Suresh@kaloom.com>
Content-Type: multipart/alternative; boundary="00000000000013d8e20581d6ba40"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/JSHbhA99Jnj7_LH9kvUZgDpmYIA>
Subject: Re: [Ntp] [6lo] Last Call: <draft-ietf-6lo-deadline-time-03.txt> (Packet Delivery Deadline time in 6LoWPAN Routing Header) to Proposed Standard
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 08:48:53 -0000

--00000000000013d8e20581d6ba40
Content-Type: text/plain; charset="UTF-8"

Hi Charlie,

Gotcha.
That sounds okay.

Cheers,
Tal.

On Mon, Feb 11, 2019 at 4:14 PM Charlie Perkins <
charles.perkins@earthlink.net> wrote:

> Hello Tal and all,
>
> I thought it would be better to make the length fields count nibbles
> instead of octets, since we don't have EXP any more.  A 4-bit length field
> then allows up to 64 bits precision, which should be enough for most
> purposes.
>
> Do you think that would be O.K.?
>
> Regards,
> Charlie P.
>
>
> On 2/11/2019 5:13 AM, Tal Mizrahi wrote:
>
> Hi Charlie,
>
> Thanks for reviewing the packet timestamp draft.
>
> Your suggestion makes sense to me.
>
> Just a minor question regarding your example below ("If we had a 12-bit
> timestamp format..."):
> The DTL and OTL fields specify the length of the DT and OT fields in
> octets, and therefore the length of DT and OT is a multiple of 8 bits. So
> the DT and OT can't be 12 bits long, right?
>
> Cheers,
> Tal.
>
> On Sat, Feb 9, 2019 at 4:25 AM Charlie Perkins <
> charles.perkins@earthlink.net> wrote:
>
>> Hello Tal and all,
>>
>> I have read draft-ietf-ntp-packet-timestamps-05.txt.  This is an
>> excellent document.
>>
>> Our previous timestamp format in draft-ietf-6lo-deadline-time-03.txt
>> offers a lot of flexibility in a compact format, but maybe that much
>> flexibility is not needed.  I would like to suggest that we use the
>> timestamp template in draft-ietf-ntp-packet-timestamps-05.txt, but with
>> possibly fewer bits than the 32-bit NTP format.  As I understand it, that
>> format divides the available number of bits evenly between integral seconds
>> and fractional seconds. So, for instance, if we had an 8-bit timestamp
>> format, that would allow for 16 seconds total duration denominated in
>> sixteenths of a second (i.e., time units of about 64 milliseconds).  That
>> would be pretty good for most purposes.  If we had a 12-bit timestamp
>> format, that would allow for 64 seconds denominated in units of
>> approximately 16 milliseconds.  If the optional Origination Time is
>> included, then we would mandate that the OT has the same time unit as the
>> DT.  In this case, that translates to meaning that the number of bits for
>> fractional seconds is the same, but we could allow the OT to have fewer
>> bits for the integer number of seconds.
>>
>> If we go this way with predefined time designations according to the NTP
>> draft format, we don't need the Exp field.  It is also possible that an
>> asymmetric number of bits would be considered to satisfy the specified
>> NTP-related format (i.e., not the same number of bits for fractional
>> seconds as for integer seconds).  In that case, we could use a new field to
>> locate the binary point.  We can make the definitions so that this new
>> information still fits within the space of the Deadline-6LoRHE format.  One
>> could argue that this new field is analogous to the Exp field.
>>
>> draft-ietf-ntp-packet-timestamps-05.txt mandates certain details in the
>> Security Considerations which we will need to obey.  It also suggests
>> inclusion of material about synchronization.  I think we also have to do
>> consider doing that.
>>
>> What do you think?
>>
>> Regards,
>> Charlie P.
>> On 1/3/2019 5:02 AM, Tal Mizrahi wrote:
>>
>> Hi Suresh, authors,
>>
>> >> I would suggest to follow the timestamp specification template of
>> Section
>> >> 3 in draft-ietf-ntp-packet-timestamps-05.
>>
>> >I think the semantics of the DT and OT fields are a bit different from
>> the
>> >NTP packet timestamps and there are also resource constraints in the
>> >6lo world that might make the 64 bit formats expensive. I will let the
>> >authors and the WG comment further on this.
>>
>>
>> I agree that the NTP timestamp format does not fit here.
>> My comment was that DT and OT should be defined according to the
>> timestamp specification template (section 3 in the packet timestamp draft).
>> This is a *generic template* for defining all kinds of timestamp formats.
>> The template was defined in order to make sure that when you define a
>> timestamp format you do not forget important details.
>> Just to clarify, I am not suggesting to change the timestamp formats of
>> DT and OT, but only to specify them in a clear and unambiguous manner.
>>
>> Thanks,
>> Tal.
>>
>>
>>
>>
>> On Wed, Jan 2, 2019 at 11:00 PM Suresh Krishnan <Suresh@kaloom.com>
>> wrote:
>>
>>> Hi Tal,
>>>
>>> On Dec 23, 2018, at 3:49 AM, Tal Mizrahi <tal.mizrahi.phd@gmail.com>
>>> wrote:
>>>
>>> Hi,
>>>
>>> I am not a 6lo native, but I reviewed the draft specifically from a
>>> timestamp formatting perspective.
>>> In the NTP working group we currently have a draft in WGLC that presents
>>> guidelines for defining timestamp formats.
>>> https://tools.ietf.org/html/draft-ietf-ntp-packet-timestamps-05
>>>
>>> I believe that the definitions of the timestamps (DT and OT)
>>> in draft-ietf-6lo-deadline-time should be more detailed. For example,
>>> aspects about the epoch and the potential effect of leap seconds are
>>> currently not described in the current draft.
>>>
>>>
>>> Good point. Authors, can you add some further descriptive text around
>>> these fields.
>>>
>>> I would suggest to follow the timestamp specification template of
>>> Section 3 in draft-ietf-ntp-packet-timestamps-05.
>>>
>>>
>>> I think the semantics of the DT and OT fields are a bit different from
>>> the NTP packet timestamps and there are also resource constraints in the
>>> 6lo world that might make the 64 bit formats expensive. I will let the
>>> authors and the WG comment further on this.
>>>
>>> Thanks
>>> Suresh
>>>
>>>
> _______________________________________________
> 6lo mailing list6lo@ietf.orghttps://www.ietf.org/mailman/listinfo/6lo
>
>

--00000000000013d8e20581d6ba40
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Charlie,<div><br></div><div>Gotcha.</div><div>That soun=
ds okay.</div><div><br></div><div>Cheers,</div><div>Tal.</div></div><br><di=
v class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Feb 1=
1, 2019 at 4:14 PM Charlie Perkins &lt;<a href=3D"mailto:charles.perkins@ea=
rthlink.net">charles.perkins@earthlink.net</a>&gt; wrote:<br></div><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px=
 solid rgb(204,204,204);padding-left:1ex">
 =20
   =20
 =20
  <div bgcolor=3D"#FFFFFF">
    <p>Hello Tal and all,</p>
    <p>I thought it would be better to make the length fields count
      nibbles instead of octets, since we don&#39;t have EXP any more.=C2=
=A0 A
      4-bit length field then allows up to 64 bits precision, which
      should be enough for most purposes.</p>
    <p>Do you think that would be O.K.?</p>
    <p>Regards,<br>
      Charlie P.</p>
    <p><br>
    </p>
    <div class=3D"gmail-m_2408715102478742824moz-cite-prefix">On 2/11/2019 =
5:13 AM, Tal Mizrahi
      wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
      <div dir=3D"ltr">
        <div dir=3D"ltr">Hi Charlie,
          <div><br>
          </div>
          <div>Thanks for reviewing the packet timestamp draft.</div>
          <div><br>
          </div>
          <div>Your suggestion makes sense to me.</div>
          <div><br>
          </div>
          <div>Just a minor question regarding your example below (&quot;If
            we had a 12-bit timestamp format...&quot;):</div>
          <div>The DTL and OTL fields specify the length of the DT and
            OT fields in octets, and therefore the length of DT and OT
            is a multiple of 8 bits. So the DT and OT can&#39;t be 12 bits
            long, right?</div>
          <div><br>
          </div>
          <div>Cheers,</div>
          <div>Tal.</div>
        </div>
      </div>
      <br>
      <div class=3D"gmail_quote">
        <div dir=3D"ltr" class=3D"gmail_attr">On Sat, Feb 9, 2019 at 4:25 A=
M
          Charlie Perkins &lt;<a href=3D"mailto:charles.perkins@earthlink.n=
et" target=3D"_blank">charles.perkins@earthlink.net</a>&gt;
          wrote:<br>
        </div>
        <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex=
;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor=3D"#FFFFFF">
            <p>Hello Tal and all,</p>
            <p>I have read draft-ietf-ntp-packet-timestamps-05.txt.=C2=A0
              This is an excellent document.<br>
              <br>
              Our previous timestamp format in
              draft-ietf-6lo-deadline-time-03.txt offers a lot of
              flexibility in a compact format, but maybe that much
              flexibility is not needed.=C2=A0 I would like to suggest that
              we use the timestamp template in
              draft-ietf-ntp-packet-timestamps-05.txt, but with possibly
              fewer bits than the 32-bit NTP format.=C2=A0 As I understand
              it, that format divides the available number of bits
              evenly between integral seconds and fractional seconds.
              So, for instance, if we had an 8-bit timestamp format,
              that would allow for 16 seconds total duration denominated
              in sixteenths of a second (i.e., time units of about 64
              milliseconds).=C2=A0 That would be pretty good for most
              purposes.=C2=A0 If we had a 12-bit timestamp format, that wou=
ld
              allow for 64 seconds denominated in units of approximately
              16 milliseconds.=C2=A0 If the optional Origination Time is
              included, then we would mandate that the OT has the same
              time unit as the DT.=C2=A0 In this case, that translates to
              meaning that the number of bits for fractional seconds is
              the same, but we could allow the OT to have fewer bits for
              the integer number of seconds.<br>
              <br>
              If we go this way with predefined time designations
              according to the NTP draft format, we don&#39;t need the Exp
              field.=C2=A0 It is also possible that an asymmetric number of
              bits would be considered to satisfy the specified
              NTP-related format (i.e., not the same number of bits for
              fractional seconds as for integer seconds).=C2=A0 In that cas=
e,
              we could use a new field to locate the binary point.=C2=A0 We
              can make the definitions so that this new information
              still fits within the space of the Deadline-6LoRHE
              format.=C2=A0 One could argue that this new field is analogou=
s
              to the Exp field.<br>
            </p>
            <p>draft-ietf-ntp-packet-timestamps-05.txt mandates certain
              details in the Security Considerations which we will need
              to obey.=C2=A0 It also suggests inclusion of material about
              synchronization.=C2=A0 I think we also have to do consider
              doing that.</p>
            <p>What do you think?</p>
            <p>Regards,<br>
              Charlie P.<br>
            </p>
            <div class=3D"gmail-m_2408715102478742824gmail-m_16261956722133=
80152moz-cite-prefix">On
              1/3/2019 5:02 AM, Tal Mizrahi wrote:<br>
            </div>
            <blockquote type=3D"cite">
              <div dir=3D"ltr">
                <div dir=3D"ltr">
                  <div dir=3D"ltr">Hi Suresh, authors,
                    <div><br>
                    </div>
                    <div>
                      <div>&gt;&gt; I would suggest to follow the
                        timestamp specification template of Section=C2=A0</=
div>
                      <div>&gt;&gt; 3 in
                        draft-ietf-ntp-packet-timestamps-05.</div>
                      <div><br>
                      </div>
                      <div>&gt;I think the semantics of the DT and OT
                        fields are a bit different from the=C2=A0</div>
                      <div>&gt;NTP packet timestamps and there are also
                        resource constraints in the=C2=A0</div>
                      <div>&gt;6lo world that might make the 64 bit
                        formats expensive. I will let the=C2=A0</div>
                      <div>&gt;authors and the WG comment further on
                        this.</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                    </div>
                    <div>I agree that the NTP timestamp format does not
                      fit here.<br>
                    </div>
                    <div>My comment was that DT and OT should be defined
                      according to the timestamp specification template
                      (section 3 in the packet timestamp draft).=C2=A0</div=
>
                    <div>This is a *generic template* for defining all
                      kinds of timestamp formats.</div>
                    <div>The template was defined in order to make sure
                      that when you define a timestamp format you do not
                      forget important details.<br>
                    </div>
                    <div>Just to clarify, I am not suggesting to change
                      the timestamp formats of DT and OT, but only to
                      specify them in a clear and unambiguous manner.</div>
                    <div><br>
                    </div>
                    <div>Thanks,</div>
                    <div>Tal.</div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                  </div>
                </div>
                <br>
                <div class=3D"gmail_quote">
                  <div dir=3D"ltr">On Wed, Jan 2, 2019 at 11:00 PM Suresh
                    Krishnan &lt;<a href=3D"mailto:Suresh@kaloom.com" targe=
t=3D"_blank">Suresh@kaloom.com</a>&gt;
                    wrote:<br>
                  </div>
                  <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px=
 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                    <div> Hi Tal,<br>
                      <div><br>
                        <blockquote type=3D"cite">
                          <div>On Dec 23, 2018, at 3:49 AM, Tal Mizrahi
                            &lt;<a href=3D"mailto:tal.mizrahi.phd@gmail.com=
" target=3D"_blank">tal.mizrahi.phd@gmail.com</a>&gt;
                            wrote:</div>
                          <br class=3D"gmail-m_2408715102478742824gmail-m_1=
626195672213380152gmail-m_-967898251921994082Apple-interchange-newline">
                          <div>
                            <div dir=3D"ltr">
                              <div dir=3D"ltr">
                                <div dir=3D"ltr">
                                  <div dir=3D"ltr">Hi,
                                    <div><br>
                                    </div>
                                    <div>I am not a 6lo native, but I
                                      reviewed the draft specifically
                                      from a timestamp formatting
                                      perspective.</div>
                                    <div>In the NTP working group we
                                      currently have a draft in WGLC
                                      that presents guidelines for
                                      defining timestamp formats.</div>
                                    <div><a href=3D"https://tools.ietf.org/=
html/draft-ietf-ntp-packet-timestamps-05" target=3D"_blank">https://tools.i=
etf.org/html/draft-ietf-ntp-packet-timestamps-05</a><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>I believe that the definitions
                                      of the timestamps (DT and OT)
                                      in=C2=A0draft-ietf-6lo-deadline-time
                                      should be more detailed. For
                                      example, aspects about the epoch
                                      and the potential effect of leap
                                      seconds are currently not
                                      described in the current draft.=C2=A0=
</div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                        <div><br>
                        </div>
                        Good point. Authors, can you add some further
                        descriptive text around these fields.</div>
                      <div><br>
                        <blockquote type=3D"cite">
                          <div>
                            <div dir=3D"ltr">
                              <div dir=3D"ltr">
                                <div dir=3D"ltr">
                                  <div dir=3D"ltr">
                                    <div>I would suggest to follow the
                                      timestamp specification template
                                      of Section 3 in
                                      draft-ietf-ntp-packet-timestamps-05.<=
/div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                        <br>
                      </div>
                      <div>I think the semantics of the DT and OT fields
                        are a bit different from the NTP packet
                        timestamps and there are also resource
                        constraints in the 6lo world that might make the
                        64 bit formats expensive. I will let the authors
                        and the WG comment further on this.</div>
                      <div><br>
                      </div>
                      <div>Thanks</div>
                      <div>Suresh</div>
                      <br>
                    </div>
                  </blockquote>
                </div>
              </div>
            </blockquote>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class=3D"gmail-m_2408715102478742824mimeAttachmentHeader"><=
/fieldset>
      <pre class=3D"gmail-m_2408715102478742824moz-quote-pre">_____________=
__________________________________
6lo mailing list
<a class=3D"gmail-m_2408715102478742824moz-txt-link-abbreviated" href=3D"ma=
ilto:6lo@ietf.org" target=3D"_blank">6lo@ietf.org</a>
<a class=3D"gmail-m_2408715102478742824moz-txt-link-freetext" href=3D"https=
://www.ietf.org/mailman/listinfo/6lo" target=3D"_blank">https://www.ietf.or=
g/mailman/listinfo/6lo</a>
</pre>
    </blockquote>
  </div>

</blockquote></div>

--00000000000013d8e20581d6ba40--


From nobody Thu Feb 14 00:54:37 2019
Return-Path: <martin.burnicki@meinberg.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 7312013115C for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 00:54:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.3
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lEbURO2oUeEC for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 00:54:34 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 33672131156 for <ntp@ietf.org>; Thu, 14 Feb 2019 00:54:34 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id AB82071C03A4; Thu, 14 Feb 2019 09:54:26 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de AB82071C03A4
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1550134472; bh=rmoXfyy6B2QxVJTQjkD2zihgBmf9f1pzme9OO1DAZTI=; h=Subject:To:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=gUal+vmeHEt/KO6zw4FUSE9OPEzTp2bm7ktCaAlG/mcTWhU8mpBiSgQ9YmMpxklLS myKbOuehn7cJUDUnRwinmthgFcPATkhXNz9xYupFD5UhjssaR4TWEMv7piaAQUHbCj bPIbuIqqtf5FuiaV/34ckmMohL67DVqjZ1cChIQo=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1210, Stamp: 3], Multi: [Enabled, t: (0.000008,0.005452)], BW: [Enabled, t: (0.000008)], RTDA: [Enabled, t: (0.089411), Hit: No, Details: v2.7.27; Id: 15.1i66v9q.1d3ljdlfl.2qrkd], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Thu, 14 Feb 2019 09:54:24 +0100
To: Steve Allen <sla@ucolick.org>, NTP WG <ntp@ietf.org>
References: <1c973286-6f1c-5447-c9cf-bbe6ac004ae8@pdmconsulting.net> <20190213172904.GE19408@ucolick.org>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Openpgp: preference=signencrypt
Autocrypt: addr=martin.burnicki@meinberg.de; prefer-encrypt=mutual; keydata= xsFNBFUJbhwBEADpbjlFJrR+RWZSc5WFFmRVQUFQ+XwgRBrAtTkJyu+xhu6DvD6zq2IgnXQ3 W8pz/MoMMfKWaNOJ1qCxMfd8XrCR1WaO1m98Re9RqB9948ZH2VZIRN0MiLVVYLU0I0EufAUo y5P9TgyRet7Ojuy3j7LqOEjhYpIkkz1XNup2CjfNAN3xxrx8KJJ4iErtLL35X+UyNpHd57tx Y+OzOdBOfweHNyaj1vtY5cAQuzR66hom+gK0YyuXdGDeN5Gb1nvk8H9tj5Fd/VIm4nZdIxam n63Mdk8mQ7dO8f04B0XzhAxF0+B9uZqdC0twUuRvROuDC6eAjO3JganfXvCE6QKTb3rOM8l1 c8bTA/Pg3WF6y2Jnq4Rs4I1SiU9Oy5elr6pJJdhi7RY0b2Lj4l/7SaiwUCyMBX3Gm00sWOYF OU9fYa6cs/IvW9JQbeQu9Ph8QYczH51sNBpL7RfkjGybqZyU+HKs0EUe6nlpuIPL3MZ3QoKl G1M7PhV2BGkn3fzLHsDp1Nxuv1bbdfW4dkdyW/yLcu994VYSFrgDStt9g1Or0mkk+HeR0m3O 46w/FHw7ykvA8bp+2WMzJmyenj2/LN15l3CGewAbjjzgN9A1AOKlxGKcLOeTObxDMzj6qFWN O/g5GEsvYTe0qA3JEnNboJFJurBQJg7GBkAske0oJzTh9SgcTwARAQABzS5NYXJ0aW4gQnVy bmlja2kgPG1hcnRpbi5idXJuaWNraUBidXJuaWNraS5uZXQ+wsF7BBMBAgAlAhsvBgsJCAcD AgYVCAIJCgsEFgIDAQIeAQIXgAUCVg53sAIZAQAKCRDngzsH2I4xxZFMD/sE01cEvOva3nJW G9aUTmiKZJGfZHQ5I4JJUbixxPJxlV/U3oA7W9iEzH8W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xLyW2wcZyi5weEL8UaAu31HhoWT32y54m0ZyVrPVRwDXV8iHpCgMck26VLinj yFfi8WZsolS1lxLPOdD2B67sVNKXISJQk/Y2CN1CXA0vWLc0ENsaQyZAZjAbuo+TT37WjoXT nO8lOJJ5D9LhyjFjW0hYMFJq3eBAdxfGROyFOK9N29FU3hoU+tsYPSKrl3ws3PMg45cyRHLV Rip0xr0yXPYUYb70FnE70nVGICvMgUpmrM4XH1Yr7kt+5cBM583yuJ94rF/hOFHuR4GQWeFR xBSWd41qArjdABIxhZrnMICSW3fMyo9yfiQ6tXoyD1cHD/i2WmOnqCKEOtFScVeQJZJhqQb5 4NBx+viRax9d+X066AKYiBspm7kYwBVzNsng3uHOfyQXnVmcCEawxWIPyCtxSoV6fCKYdAfJ CQeElBXE89inkdGmdb0KLmYkHDoV4L1deAsPUI/t6qZjwqF3pKcr8kdGExqHwvytL8n1KGbY PyJ6Fn1z/idOOiTYgN+Q7FWRRX0QplyVpSBU4OnD0Gd3KkP+a0+kErokA1Lk3/YCE45VT8J8 8f4YGbRsIkf0xW+Ei0fk3fl9VPOrbTD+gFv+AzbT+Gp1+kElwVKj0VzXy0OC6UIQJ3J1on0l ArkcfPTIMcWxGmfGPw==
Organization: Meinberg Funkuhren, Bad Pyrmont, Germany
Message-ID: <fb1762c7-72e5-6a4f-38c3-75810c9ba2ee@meinberg.de>
Date: Thu, 14 Feb 2019 09:54:24 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <20190213172904.GE19408@ucolick.org>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/MCsHhkdzD2sFUqGI1AgEAIQaDIo>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 08:54:36 -0000

Steve Allen wrote:
> Suppose I start up my system, and it is an NTP server.
> Suppose that at startup my LAN has no connection to the outside world.

If ntpd, for example, has no reliable time source that is accessible
then it just indicates that it is not synchronized (leap bits '3',
stratum 16), doesn't adjust its own system time, and passed the "not
synchronized" status on to its clients, so its clients don't accept the
time, either.

> Suppose that I later get a network connection and find that my system
> clock is 10 seconds ahead of UTC.

Then ntpd *can* start to synchronize its own system time, and indicate
that it is synchronized, so its clients will accept it at time source.

*How* the initial offset of its own system time is corrected when ntpd
actually can figure out what the correct time is depends on the policy
or preferences for the particular system:

1.) If it doesn't hurt it can quickly step the time, even if the initial
time offset is huge. Usually this can be achieved with ntpd's '-g' flag,
which steps the time if the ffset exceeds the default 128 ms limit.

Current versions of ntpd also support a '-G' flag which also steps the
system time if the initial time offset is below the 128 ms limit, when
ntpd would normally just slew the time. So using '-G', too, make the
initial time synchronization even faster *if* time steps can be tolerated.

2.) If it would hurt to step the time then ntpd can "slew always" the
system time, but it may take very long until a large offset has been
compensated.

3.) If there are applications running on the local system that require
accurate time then it would be wise to start them only *after* the
system time is known to be accurate enough. This can be achieved by
running ntpdate, sntp, or 'ntpd -gGq' *before* the affected applications
are started, and then start ntpd in "normally" to keep the system time
synchronized.

> It is possible for any system not to know what time it is.
> A good protocol should recommend what actions should be taken.

If your system actually doesn't know which time it is then it's anyway
no good idea to run applications that require accurate time.

As I said above, the actions to be taken depend on your own preferences
and requirements, and you have to configure your system in a way that it
meets your requirement. At least NTP/ntpd offer various possibilities.


Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy


From nobody Thu Feb 14 01:47:14 2019
Return-Path: <stenn@nwtime.org>
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 C7DFD131056 for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 01:47:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z82e6b3J07bi for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 01:47:11 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [IPv6:2001:470:1:205::234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 05ADA12D4E9 for <ntp@ietf.org>; Thu, 14 Feb 2019 01:47:10 -0800 (PST)
Received: from [10.208.75.157] (75-139-194-196.dhcp.knwc.wa.charter.com [75.139.194.196]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 440Wl11tb0zL7P; Thu, 14 Feb 2019 09:47:09 +0000 (UTC)
To: Miroslav Lichvar <mlichvar@redhat.com>, Warner Losh <imp@bsdimp.com>
Cc: Danny Mayer <mayer@ntp.org>, "ntp@ietf.org" <ntp@ietf.org>, Martin Burnicki <martin.burnicki@meinberg.de>, Watson Ladd <watson@cloudflare.com>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com> <20190214084043.GP6602@localhost>
From: Harlan Stenn <stenn@nwtime.org>
Openpgp: preference=signencrypt
Autocrypt: addr=stenn@nwtime.org; prefer-encrypt=mutual; keydata= mQGNBFI2xmQBDACrPayw18eU4pIwCvKh7k0iMkAV9cvzs49kBppM+xoH+KKj4QWmkKELD39H ngQnT3RkKsTLlwxyLqPdUmeQNAY2M5fsOK+OF6EvwLPK9hbmE3Wx2moX+sbEUxJ2VzFhKSKb OPZALXwk1XxL0qBedz0xHYcDwaSAZZkEFXURv2pDIdrmnoUnq2gdC8GpoFJiXoUaCLSYzzaY ac4Njw7Mue8IqfzRQb70aMjXl/qmsmfmEVAyGXywDdc/ler4XSgiuYOV7Kf69bj9PFZZSMdJ MWgEyZH6lJ0TU5ccR2zp5ZRmWzQQkxJMyH2th7q0Nmz3aX4A0K4yE0Ba9/5Dr7ctpF15BrMF aEo4s5lwI6tUnkgMWo265mMzCz4mAPV/ac0w0OXQg7r9E2r0+dRapnzUlG43D0JLDqDr9uRR L6IrRQqoCWUC75lfmPYQYSlaTJaK68r3lXd0z1cXJUgVtEL5H3/Z71R2B20twcQVAnw2iIH6 L5vdrsIjHrMmkqRV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xAUIpwptbBspO6WKTQYvgFH2OeDG27hiE5P4Xs4WSp5j9ez8OVB1iZnA2nCQ+ tNTjO8c+C/P92vPLx5+bpGRXTXMNaLh34PS3ZsYoUDkKZNhczRZUWJ7nynSbeeyF+QW7SLwA qY7O7dyk9LFTsfJqRQJ7tWnIAjJPCwmSgQ8Kl0UJ
Message-ID: <3a258f83-a226-b411-1d0e-980c4e26e3d0@nwtime.org>
Date: Thu, 14 Feb 2019 01:47:09 -0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <20190214084043.GP6602@localhost>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/84gEwwTRs1jiXd9JcBGHJFYqNXU>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 09:47:13 -0000

On 2/14/2019 12:40 AM, Miroslav Lichvar wrote:
> On Wed, Feb 13, 2019 at 02:31:44PM -0700, Warner Losh wrote:
>> In POSIX there most certainly is. There is no unique encoding for the leap
>> second to distinguish 59 from 60 (or in some interpretations 60 from 00).
>> That is the fundamental problem with POSIX that is absolutely not fixable,
>> absent additional metadata. That is what Martin is talking about here:
>> providing that data to resolve an otherwise ambiguous case.
> 
> The question is how NTP should deal with this ambiguity. Clients can
> ignore measurements with timestamps in those two seconds and servers
> could perhaps respond with "not synchronized". I think some NTP
> implementations do this. Maybe it should be added to the
> specification.

I don't think it's an issue.

If ntpd is running on the system, it knows what time it is, and it knows
if it's before, during, or after a leap second.

The "window of potential difficulty" gets smaller if either we or the
upstream have a valid leapsecond file, and newer versions of ntpd
already respond with LI=3 if a leap second is in progress.  Clients that
receive these packets should ignore these packets.

If ntpd is getting its time from Somewhere that doesn't have smarts
about the leap second, then there are a variety of scenarios that all
boil down to the worst case is there may be 0, 1, or 2 timestamps in
there that *may* have a problem.  The only reason there would be 2 is if
the client is doing an iburst volley during the leapsecond.  Otherwise
there *might* be one packet with an interesting timestamp if the poll
happens close enough to the leap event.

But NTP is pretty good about detecting and ignoring wonky packets.

So again, I don't think it's an issue.

But I could be missing something.  If so, I'd love to know what it is.

-- 
Harlan Stenn, Network Time Foundation
http://nwtime.org - be a Member!


From nobody Thu Feb 14 02:27:16 2019
Return-Path: <martin.burnicki@meinberg.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 689B9130DC9 for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 02:27:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.3
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f_2qdyP0EYxt for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 02:27:11 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2ADC512870E for <ntp@ietf.org>; Thu, 14 Feb 2019 02:27:11 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id 57FAC71C0BB7; Thu, 14 Feb 2019 11:27:07 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de 57FAC71C0BB7
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1550140029; bh=vr9MJqd/SA0ryTANaKLr+0FkLEqrNEQJNV8LRTjou0E=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=phFWL4CAbprLAoqvdVsFqOs+VHBQI09MrfoIUpyTDbEYHyFpt55nYCvCWxu/2Zoxb W+/6rZdokHCCRSNGEFD+fR+x5+HPvN7MBZUD0uJFsJ5g8WptgWu4DuzXy5O747ePQH YD1DGm2Vqf/FuEBfqF4MICg/FKu6eYq70zeulxyQ=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1210, Stamp: 3], Multi: [Enabled, t: (0.000005,0.006279)], BW: [Enabled, t: (0.000005)], RTDA: [Enabled, t: (0.062664), Hit: No, Details: v2.7.27; Id: 15.1i6dj8u.1d3lomrsb.a41f], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Thu, 14 Feb 2019 11:26:50 +0100
To: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Warner Losh <imp@bsdimp.com>, Danny Mayer <mayer@ntp.org>, "ntp@ietf.org" <ntp@ietf.org>, Watson Ladd <watson@cloudflare.com>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com> <20190214084043.GP6602@localhost>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Openpgp: preference=signencrypt
Autocrypt: addr=martin.burnicki@meinberg.de; prefer-encrypt=mutual; keydata= xsFNBFUJbhwBEADpbjlFJrR+RWZSc5WFFmRVQUFQ+XwgRBrAtTkJyu+xhu6DvD6zq2IgnXQ3 W8pz/MoMMfKWaNOJ1qCxMfd8XrCR1WaO1m98Re9RqB9948ZH2VZIRN0MiLVVYLU0I0EufAUo y5P9TgyRet7Ojuy3j7LqOEjhYpIkkz1XNup2CjfNAN3xxrx8KJJ4iErtLL35X+UyNpHd57tx Y+OzOdBOfweHNyaj1vtY5cAQuzR66hom+gK0YyuXdGDeN5Gb1nvk8H9tj5Fd/VIm4nZdIxam n63Mdk8mQ7dO8f04B0XzhAxF0+B9uZqdC0twUuRvROuDC6eAjO3JganfXvCE6QKTb3rOM8l1 c8bTA/Pg3WF6y2Jnq4Rs4I1SiU9Oy5elr6pJJdhi7RY0b2Lj4l/7SaiwUCyMBX3Gm00sWOYF OU9fYa6cs/IvW9JQbeQu9Ph8QYczH51sNBpL7RfkjGybqZyU+HKs0EUe6nlpuIPL3MZ3QoKl G1M7PhV2BGkn3fzLHsDp1Nxuv1bbdfW4dkdyW/yLcu994VYSFrgDStt9g1Or0mkk+HeR0m3O 46w/FHw7ykvA8bp+2WMzJmyenj2/LN15l3CGew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XhrsmRsWy9gb+pmszqmyvkTf4N1nP8yhS0wujtxxp6OHuzZs6EA2PB3t6CY4jFQ9Wx/YY8 A2abAhDb321Y79JhciNhBeBSTHivDnG3gsOy17LulRlkVN18vfTacxfQpJ0cafWExMmCE+o8 TMz85rQF8S7ftKIl9pJCcD6sZnxOTfkUa8C1NI93t+n4xe93wb+/8DiyVw8ZEa02RRYh/3ua +/2CDUvwR+qozbM4+1xb1skWYt81Vi7eLzGeZP2HscaieTYsKLgqD/sES5rNrNDKrItZKpP4 /r+c7F1zwCBxLyW2wcZyi5weEL8UaAu31HhoWT32y54m0ZyVrPVRwDXV8iHpCgMck26VLinj yFfi8WZsolS1lxLPOdD2B67sVNKXISJQk/Y2CN1CXA0vWLc0ENsaQyZAZjAbuo+TT37WjoXT nO8lOJJ5D9LhyjFjW0hYMFJq3eBAdxfGROyFOK9N29FU3hoU+tsYPSKrl3ws3PMg45cyRHLV Rip0xr0yXPYUYb70FnE70nVGICvMgUpmrM4XH1Yr7kt+5cBM583yuJ94rF/hOFHuR4GQWeFR xBSWd41qArjdABIxhZrnMICSW3fMyo9yfiQ6tXoyD1cHD/i2WmOnqCKEOtFScVeQJZJhqQb5 4NBx+viRax9d+X066AKYiBspm7kYwBVzNsng3uHOfyQXnVmcCEawxWIPyCtxSoV6fCKYdAfJ CQeElBXE89inkdGmdb0KLmYkHDoV4L1deAsPUI/t6qZjwqF3pKcr8kdGExqHwvytL8n1KGbY PyJ6Fn1z/idOOiTYgN+Q7FWRRX0QplyVpSBU4OnD0Gd3KkP+a0+kErokA1Lk3/YCE45VT8J8 8f4YGbRsIkf0xW+Ei0fk3fl9VPOrbTD+gFv+AzbT+Gp1+kElwVKj0VzXy0OC6UIQJ3J1on0l ArkcfPTIMcWxGmfGPw==
Organization: Meinberg Funkuhren, Bad Pyrmont, Germany
Message-ID: <696f4a6e-c592-067c-3c83-c3da86a130b4@meinberg.de>
Date: Thu, 14 Feb 2019 11:26:49 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <20190214084043.GP6602@localhost>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/Qa_fluPMcS7S0ETOeBWKFMnugrc>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 10:27:14 -0000

Miroslav,

Miroslav Lichvar wrote:
> On Wed, Feb 13, 2019 at 02:31:44PM -0700, Warner Losh wrote:
>> In POSIX there most certainly is. There is no unique encoding for the leap
>> second to distinguish 59 from 60 (or in some interpretations 60 from 00).
>> That is the fundamental problem with POSIX that is absolutely not fixable,
>> absent additional metadata. That is what Martin is talking about here:
>> providing that data to resolve an otherwise ambiguous case.
> 
> The question is how NTP should deal with this ambiguity. Clients can
> ignore measurements with timestamps in those two seconds and servers
> could perhaps respond with "not synchronized". I think some NTP
> implementations do this. Maybe it should be added to the
> specification.

NTP/ntpd *does* have the required information. If configured properly
with reliable sources then it *knows* that a leap second is approaching,
and it forwards this information to its own kernel (if the OS supports
this) as well as to its clients.

The problem is that the operating system steps the system time back by 1
s at UTC midnight. ntpd just picks up a timestamp of the current system
time when it sends a reply to a client.

If I remember correctly then it was you who made the proposal to let an
NTP server send "not synchronized" for a short interval across a leap
second, and I think this is a very good idea.

For those who don't know why this is a good thing:

If you have server and a client which both step the time back by 1
second when they insert the leap second, this will not happen *exactly*
at the same time but let's say 1 millisecond or 10 microseconds after
each other.

If a client happens to poll the server exactly at this moment then the
server may already have switched back, but the client has not, or vice
versa. In either case the client will compute a time offset of about 1 s
in this case, rather than the expected offset in the ms range or below.
This can mess up the filtering done at the client side.

However, if the server sends "not synchronized" then this single packet
is discarded, which doesn't hurt since the time control loop works
similar to a flywheel, and the previous as well as the next queries
yield consistent results and low offsets.

The kernel itself steps the system time back, and a daemon like ntpd
interacts with the kernel only in periodic intervals, when it is
scheduled to run, so it doesn't know at which point in time exactly the
kernel inserts the leap second. So it's a good idea to start the "not
synchronized" period early enough, and end it when it can be sure the
leap second has been inserted, so it can send a consistent status to its
clients.

In normal case each individual client polls the server only once every
64 seconds, or in even longer intervals, so for a single client it is
very unlikely that it even notices that the server sends replies with
"not synchronized" across a leap second, but *if* this accidentally
happens it helps to keep the client's time control loop more stable.


Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy


From nobody Thu Feb 14 03:38:44 2019
Return-Path: <mlichvar@redhat.com>
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 A5E0B131166 for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 03:38:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.901
X-Spam-Level: 
X-Spam-Status: No, score=-6.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PRIiZN7oLvsa for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 03:38:34 -0800 (PST)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B4B40131183 for <ntp@ietf.org>; Thu, 14 Feb 2019 03:38:34 -0800 (PST)
Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B614C81DE6; Thu, 14 Feb 2019 11:38:33 +0000 (UTC)
Received: from localhost (holly.tpb.lab.eng.brq.redhat.com [10.43.134.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6717F5C70A; Thu, 14 Feb 2019 11:38:31 +0000 (UTC)
Date: Thu, 14 Feb 2019 12:38:30 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Martin Burnicki <martin.burnicki@meinberg.de>
Cc: Danny Mayer <mayer@ntp.org>, "ntp@ietf.org" <ntp@ietf.org>, Watson Ladd <watson@cloudflare.com>, Warner Losh <imp@bsdimp.com>
Message-ID: <20190214113830.GS6602@localhost>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com> <20190214084043.GP6602@localhost> <696f4a6e-c592-067c-3c83-c3da86a130b4@meinberg.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <696f4a6e-c592-067c-3c83-c3da86a130b4@meinberg.de>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 14 Feb 2019 11:38:34 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/t4Uh3XqWN-zOYSpQRIYO-vDBf9Q>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 11:38:43 -0000

On Thu, Feb 14, 2019 at 11:26:49AM +0100, Martin Burnicki wrote:
> If a client happens to poll the server exactly at this moment then the
> server may already have switched back, but the client has not, or vice
> versa. In either case the client will compute a time offset of about 1 s
> in this case, rather than the expected offset in the ms range or below.
> This can mess up the filtering done at the client side.

NTP uses four timestamps, two on each side, so it also depends between
which timestamps the step happened. On the client side, it can happen
before T1, between T1 and T4, or after T4. On the server side, it can
be before T2, between T2 and T3, or after T3. So, there are 9
combinations and the error in the measured offset due to the leap
second can be -1, -0.5, 0, +0.5, +1.0 seconds.

> The kernel itself steps the system time back, and a daemon like ntpd
> interacts with the kernel only in periodic intervals, when it is
> scheduled to run, so it doesn't know at which point in time exactly the
> kernel inserts the leap second.

I think the daemon could use the ntp_gettime() call to read the clock
and check if the timestamp is before or after the step, assuming the
kernel reports this information reliably - which may not always be the
case, but I have not seen any implementation doing that. There may be
a performance loss.

It's probably safer and easier to just ignore any measurements that
have a timestamp in that ~3 second interval around midnight. It would
be nice if it was explained in the NTP specification.

-- 
Miroslav Lichvar


From nobody Thu Feb 14 06:12:34 2019
Return-Path: <martin.burnicki@meinberg.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 BB0AC131056 for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 06:12:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.3
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0KHrJ0G41Sdr for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 06:12:29 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 61F7D130E6C for <ntp@ietf.org>; Thu, 14 Feb 2019 06:12:29 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id EB21D71C04C2; Thu, 14 Feb 2019 15:12:15 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de EB21D71C04C2
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1550153547; bh=4riXrNqdUtWvixzxzYbordY1DS2IoQLo31G94pAcD1U=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=LTMT4gwAAI+wMGW1at+7zfmwH+wOraU/M89fuxbscjzvY0AJqBwibWxEqamgHCrjV 8ar9QOEEdlG8SUTKtqQmjSJ5u8ynmn2WesHNdLRm05IV/ftOKAyLT2jZLcBlF5uEKw ESbTGkSNoeGS7OU9y+IpO8rsHsyYpwG3UlMb3hB0=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1210, Stamp: 3], Multi: [Enabled, t: (0.000005,0.005773)], BW: [Enabled, t: (0.000006)], RTDA: [Enabled, t: (0.085385), Hit: No, Details: v2.7.27; Id: 15.1i6092n.1d3m5jjok.4j9e2], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Thu, 14 Feb 2019 15:12:14 +0100
To: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Danny Mayer <mayer@ntp.org>, "ntp@ietf.org" <ntp@ietf.org>, Watson Ladd <watson@cloudflare.com>, Warner Losh <imp@bsdimp.com>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com> <20190214084043.GP6602@localhost> <696f4a6e-c592-067c-3c83-c3da86a130b4@meinberg.de> <20190214113830.GS6602@localhost>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Openpgp: preference=signencrypt
Autocrypt: addr=martin.burnicki@meinberg.de; prefer-encrypt=mutual; keydata= xsFNBFUJbhwBEADpbjlFJrR+RWZSc5WFFmRVQUFQ+XwgRBrAtTkJyu+xhu6DvD6zq2IgnXQ3 W8pz/MoMMfKWaNOJ1qCxMfd8XrCR1WaO1m98Re9RqB9948ZH2VZIRN0MiLVVYLU0I0EufAUo y5P9TgyRet7Ojuy3j7LqOEjhYpIkkz1XNup2CjfNAN3xxrx8KJJ4iErtLL35X+UyNpHd57tx Y+OzOdBOfweHNyaj1vtY5cAQuzR66hom+gK0YyuXdGDeN5Gb1nvk8H9tj5Fd/VIm4nZdIxam n63Mdk8mQ7dO8f04B0XzhAxF0+B9uZqdC0twUuRvROuDC6eAjO3JganfXvCE6QKTb3rOM8l1 c8bTA/Pg3WF6y2Jnq4Rs4I1SiU9Oy5elr6pJJdhi7RY0b2Lj4l/7SaiwUCyMBX3Gm00sWOYF OU9fYa6cs/IvW9JQbeQu9Ph8QYczH51sNBpL7RfkjGybqZyU+HKs0EUe6nlpuIPL3MZ3QoKl G1M7PhV2BGkn3fzLHsDp1Nxuv1bbdfW4dkdyW/yLcu994VYSFrgDStt9g1Or0mkk+HeR0m3O 46w/FHw7ykvA8bp+2WMzJmyenj2/LN15l3CGewAbjjzgN9A1AOKlxGKcLOeTObxDMzj6qFWN O/g5GEsvYTe0qA3JEnNboJFJurBQJg7GBkAske0oJzTh9SgcTwARAQABzS5NYXJ0aW4gQnVy bmlja2kgPG1hcnRpbi5idXJuaWNraUBidXJuaWNraS5uZXQ+wsF7BBMBAgAlAhsvBgsJCAcD AgYVCAIJCgsEFgIDAQI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Vw8ZEa02RRYh/3ua +/2CDUvwR+qozbM4+1xb1skWYt81Vi7eLzGeZP2HscaieTYsKLgqD/sES5rNrNDKrItZKpP4 /r+c7F1zwCBxLyW2wcZyi5weEL8UaAu31HhoWT32y54m0ZyVrPVRwDXV8iHpCgMck26VLinj yFfi8WZsolS1lxLPOdD2B67sVNKXISJQk/Y2CN1CXA0vWLc0ENsaQyZAZjAbuo+TT37WjoXT nO8lOJJ5D9LhyjFjW0hYMFJq3eBAdxfGROyFOK9N29FU3hoU+tsYPSKrl3ws3PMg45cyRHLV Rip0xr0yXPYUYb70FnE70nVGICvMgUpmrM4XH1Yr7kt+5cBM583yuJ94rF/hOFHuR4GQWeFR xBSWd41qArjdABIxhZrnMICSW3fMyo9yfiQ6tXoyD1cHD/i2WmOnqCKEOtFScVeQJZJhqQb5 4NBx+viRax9d+X066AKYiBspm7kYwBVzNsng3uHOfyQXnVmcCEawxWIPyCtxSoV6fCKYdAfJ CQeElBXE89inkdGmdb0KLmYkHDoV4L1deAsPUI/t6qZjwqF3pKcr8kdGExqHwvytL8n1KGbY PyJ6Fn1z/idOOiTYgN+Q7FWRRX0QplyVpSBU4OnD0Gd3KkP+a0+kErokA1Lk3/YCE45VT8J8 8f4YGbRsIkf0xW+Ei0fk3fl9VPOrbTD+gFv+AzbT+Gp1+kElwVKj0VzXy0OC6UIQJ3J1on0l ArkcfPTIMcWxGmfGPw==
Organization: Meinberg Funkuhren, Bad Pyrmont, Germany
Message-ID: <fcc6d180-4592-6130-d7e8-f790f3eed1c5@meinberg.de>
Date: Thu, 14 Feb 2019 15:12:14 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <20190214113830.GS6602@localhost>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/ifAuA7FBgHD21exECn-vJWr3YlA>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 14:12:33 -0000

Miroslav Lichvar wrote:
> On Thu, Feb 14, 2019 at 11:26:49AM +0100, Martin Burnicki wrote:
>> If a client happens to poll the server exactly at this moment then the
>> server may already have switched back, but the client has not, or vice
>> versa. In either case the client will compute a time offset of about 1 s
>> in this case, rather than the expected offset in the ms range or below.
>> This can mess up the filtering done at the client side.
> 
> NTP uses four timestamps, two on each side, so it also depends between
> which timestamps the step happened. On the client side, it can happen
> before T1, between T1 and T4, or after T4. On the server side, it can
> be before T2, between T2 and T3, or after T3. So, there are 9
> combinations and the error in the measured offset due to the leap
> second can be -1, -0.5, 0, +0.5, +1.0 seconds.

Yes, of course. I've simplified this a little bit since in worst case
the effect is the same.

>> The kernel itself steps the system time back, and a daemon like ntpd
>> interacts with the kernel only in periodic intervals, when it is
>> scheduled to run, so it doesn't know at which point in time exactly the
>> kernel inserts the leap second.
> 
> I think the daemon could use the ntp_gettime() call to read the clock
> and check if the timestamp is before or after the step, assuming the
> kernel reports this information reliably - which may not always be the
> case, but I have not seen any implementation doing that. There may be
> a performance loss.

I'm assuming the problem with the ntp_gettime() call is that it takes
longer to execute than the clock_gettime() call, and it needs at least
some kind of critical section or mutex to make sure consistent data is
returned.

As I said earlier, the main problem is not with ntpd, ptpd, or whatever,
but with applications which randomly read the current system time to do
their work.

If all these applications called ntp_gettime() instead of clock_gettime(
CLOCK_REALTIME, ... ) whenever they needed an unambiguous time then

1.) in worst case this could severely affect the resulting accuracy if
the system time is read very often and accesses needed to be serialized, and

2.) AFAIK there is still no common runtime library function that could
evaluate the status and return a second number with value "60".

> It's probably safer and easier to just ignore any measurements that
> have a timestamp in that ~3 second interval around midnight. It would
> be nice if it was explained in the NTP specification.

Indeed, it should be documented somewhere.


Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy


From nobody Thu Feb 14 06:30:35 2019
Return-Path: <wlosh@bsdimp.com>
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 046CB131084 for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 06:30:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=bsdimp-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nqmRS08WfJOg for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 06:30:32 -0800 (PST)
Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 93C7C131069 for <ntp@ietf.org>; Thu, 14 Feb 2019 06:30:30 -0800 (PST)
Received: by mail-qt1-x834.google.com with SMTP id p48so7043778qtk.2 for <ntp@ietf.org>; Thu, 14 Feb 2019 06:30:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=o2mmih7aZAuM7UkZ1CvEgDvM+RDFiWmLunrZYUDVG0k=; b=FC/L927F1I3xgM2ZX4o9aJg7cbFohMgvYNb3Pp259k7P2CskcyxQ7laWAOVSigFCkx ZJVC86W+YGYFz5ANdQvtCDT6sH0WAjSeiV+PjPIEhLqPvZ0VPZ5t1JNZaIFaUCefUbz4 90tfvgNQVq0Zr66xCqP3MAti72jWCEQwUocOP8Zpmj1O0qIoMHM0k3HYAI6perc/kxI6 wPDMXCV2bUAXpAUUNd1cfJYXU8giOiaC6GzFA16Wq0YgJR8yUqh9a9dHvn7p4x6cjm5+ pTTkfFwcKEzIJT3RQukeo3HIva+nZ9AhjdItbcDeUFy+SigYu8H2tUi8wSvt/0vsVio9 abkg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=o2mmih7aZAuM7UkZ1CvEgDvM+RDFiWmLunrZYUDVG0k=; b=K97kfV+sRldHbgWqYf9trO6qngslX60Z8y8LBhqLi0Z4IacGtviDXMSfmRukuxCjQU 72bkQ+M0d6hCKsIzUTGAQN++BOy4NKaKYfzHG/MGK/EJJM2WIWakdWq7jMeGed8nHRaN 3wLJylscde2tttEaJKraDMreOndLVNwPysTWnq0N80ncI53H+bp+0y4o0bSuinuj9wPD ladcZKd380x4dqKY/crjPe0Z4uM81wnTqdfVNr89BA6LCTwxtLoaNFDY0SFiu1io2s4l jFo5suDbbuwqy57zN5um+zWFLpn+4sD84ig1YOOGAI8aCRWGeUzw7eO1pvX/2ZqJqV5Q rdvw==
X-Gm-Message-State: AHQUAuaYPIbbG5u1NylfUnth9Eghd0+E0YQE81jRINcZ+FkGMvNpeLTy N1Pz/n8Ms1WeLKSRX6Xh+wo316IwE4u6RMexDPrGKQ==
X-Google-Smtp-Source: AHgI3IbYvjJrxTY3vNKqfHR6rqWxhDFHW4lOCxHdOYsE41XBn+iD/OduAcHXfM6JnKpO0WQ62LIVGNIfvQYAnaPdnjc=
X-Received: by 2002:a0c:9c89:: with SMTP id i9mr3092200qvf.153.1550154628986;  Thu, 14 Feb 2019 06:30:28 -0800 (PST)
MIME-Version: 1.0
References: <1c973286-6f1c-5447-c9cf-bbe6ac004ae8@pdmconsulting.net> <20190213172904.GE19408@ucolick.org> <fb1762c7-72e5-6a4f-38c3-75810c9ba2ee@meinberg.de>
In-Reply-To: <fb1762c7-72e5-6a4f-38c3-75810c9ba2ee@meinberg.de>
From: Warner Losh <imp@bsdimp.com>
Date: Thu, 14 Feb 2019 07:30:17 -0700
Message-ID: <CANCZdfpBmv7hLUrAws0W_ksKTZ4hmBKKbkQK85rWLz_yhBYPEA@mail.gmail.com>
To: Martin Burnicki <martin.burnicki@meinberg.de>
Cc: Steve Allen <sla@ucolick.org>, NTP WG <ntp@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000000213950581db80b6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/Crb16rUy8RikQb5M6TPJXhw2QIw>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 14:30:34 -0000

--0000000000000213950581db80b6
Content-Type: text/plain; charset="UTF-8"

>
> > It is possible for any system not to know what time it is.
> > A good protocol should recommend what actions should be taken.
>
> If your system actually doesn't know which time it is then it's anyway
> no good idea to run applications that require accurate time.
>
> As I said above, the actions to be taken depend on your own preferences
> and requirements, and you have to configure your system in a way that it
> meets your requirement. At least NTP/ntpd offer various possibilities.
>

The problems I ran into usually were a requirement to start some control
program, even if you didn't know what time it was (an LED was lit in this
case, for example). And it was better everybody had the same time so ntpd
started serving time.

The other case was I have time, life is good. GPS receiver goes out and the
OXCO that was disciplining PPS drifts a bit for a while. GPS comes back and
now we have a huge offset, larger than we're supposed to tolerate. The
choice is 'slew the clock slowly' or 'step now'. Different applications
landed on difference sides of that coin due to the other requirements.

So you can not know time at boot but you can also not know time later.

Warner

--0000000000000213950581db80b6
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quot=
e" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)=
;padding-left:1ex">&gt; It is possible for any system not to know what time=
 it is.<br>
&gt; A good protocol should recommend what actions should be taken.<br>
<br>
If your system actually doesn&#39;t know which time it is then it&#39;s any=
way<br>
no good idea to run applications that require accurate time.<br>
<br>
As I said above, the actions to be taken depend on your own preferences<br>
and requirements, and you have to configure your system in a way that it<br=
>
meets your requirement. At least NTP/ntpd offer various possibilities.<br><=
/blockquote><div><br></div><div>The problems I ran into usually were a requ=
irement to start some control program, even if you didn&#39;t know what tim=
e it was (an LED was lit in this case, for example). And it was better ever=
ybody had the same time so ntpd started serving time.</div><div><br></div><=
div>The other case was I have time, life is good. GPS receiver goes out and=
 the OXCO that was disciplining PPS drifts a bit for a while. GPS comes bac=
k and now we have a huge offset, larger than we&#39;re supposed to tolerate=
. The choice is &#39;slew the clock slowly&#39; or &#39;step now&#39;. Diff=
erent applications landed on difference sides of that coin due to the other=
 requirements.</div><div><br></div><div>So you can not know time at boot bu=
t you can also not know time later.</div><div><br></div><div>Warner=C2=A0</=
div></div></div>

--0000000000000213950581db80b6--


From nobody Thu Feb 14 07:20:34 2019
Return-Path: <martin.burnicki@meinberg.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 462E713105F for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 07:20:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.3
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinberg.de
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Th4j0SrRY9L2 for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 07:20:25 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 79150131054 for <ntp@ietf.org>; Thu, 14 Feb 2019 07:20:25 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id 2269F71C034D; Thu, 14 Feb 2019 16:20:16 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de 2269F71C034D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1550157623; bh=EJzOV/b1nVug3lQqNg2JArxfvxnFyjJfaRTj1TNL8Fw=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=tXifUFELxFxUaILRt14WtCLmY178DjCrBC6hmvwLZsa+Xmv64Ldj1ihQ9A8kbVt2L Trc0yaXWOMjtWYjPK65kxr1hXONToBWFAMcMhK1Dy+LiCuWaHgwHNmEDBDfnWYI5KX JbUGIZ7m9ShMuUaDURJZsyUrqjr+C++8GzvFcv0s=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1210, Stamp: 3], Multi: [Enabled, t: (0.000005,0.003898)], BW: [Enabled, t: (0.000006)], RTDA: [Enabled, t: (0.059729), Hit: No, Details: v2.7.27; Id: 15.1i6092n.1d3m9g4bq.4q4cu], total: 0(700)
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Thu, 14 Feb 2019 16:20:14 +0100
To: Warner Losh <imp@bsdimp.com>
Cc: Steve Allen <sla@ucolick.org>, NTP WG <ntp@ietf.org>
References: <1c973286-6f1c-5447-c9cf-bbe6ac004ae8@pdmconsulting.net> <20190213172904.GE19408@ucolick.org> <fb1762c7-72e5-6a4f-38c3-75810c9ba2ee@meinberg.de> <CANCZdfpBmv7hLUrAws0W_ksKTZ4hmBKKbkQK85rWLz_yhBYPEA@mail.gmail.com>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Openpgp: preference=signencrypt
Autocrypt: addr=martin.burnicki@meinberg.de; prefer-encrypt=mutual; keydata= xsFNBFUJbhwBEADpbjlFJrR+RWZSc5WFFmRVQUFQ+XwgRBrAtTkJyu+xhu6DvD6zq2IgnXQ3 W8pz/MoMMfKWaNOJ1qCxMfd8XrCR1WaO1m98Re9RqB9948ZH2VZIRN0MiLVVYLU0I0EufAUo y5P9TgyRet7Ojuy3j7LqOEjhYpIkkz1XNup2CjfNAN3xxrx8KJJ4iErtLL35X+UyNpHd57tx Y+OzOdBOfweHNyaj1vtY5cAQuzR66hom+gK0YyuXdGDeN5Gb1nvk8H9tj5Fd/VIm4nZdIxam n63Mdk8mQ7dO8f04B0XzhAxF0+B9uZqdC0twUuRvROuDC6eAjO3JganfXvCE6QKTb3rOM8l1 c8bTA/Pg3WF6y2Jnq4Rs4I1SiU9Oy5elr6pJJdhi7RY0b2Lj4l/7SaiwUCyMBX3Gm00sWOYF OU9fYa6cs/IvW9JQbeQu9Ph8QYczH51sNBpL7RfkjGybqZyU+HKs0EUe6nlpuIPL3MZ3QoKl G1M7PhV2BGkn3fzLHsDp1Nxuv1bbdfW4dkdyW/yLcu994VYSFrgDStt9g1Or0mkk+HeR0m3O 46w/FHw7ykvA8bp+2WMzJmyenj2/LN15l3CGewAbjjzgN9A1AOKlxGKcLOeTObxDMzj6qFWN O/g5GEsvYTe0qA3JEnNboJFJurBQJg7GBkAske0oJzTh9SgcTwARAQABzS5NYXJ0aW4gQnVy bmlja2kgPG1hcnRpbi5idXJuaWNraUBidXJuaWNraS5uZXQ+wsF7BBMBAgAlAhsvBgsJCAcD AgYVCAIJCgsEFgIDAQIeAQIXgAUCVg53sAIZAQAKCRDngzsH2I4xxZFMD/sE01cEvOva3nJW G9aUTmiKZJGfZHQ5I4JJUbixxPJxlV/U3oA7W9iEzH8Wn86HqZREEwKHLkFCWH6ij4riCyxV pq8i5xrq5nQm3ZEqfC2T7oi2FunO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inj yFfi8WZsolS1lxLPOdD2B67sVNKXISJQk/Y2CN1CXA0vWLc0ENsaQyZAZjAbuo+TT37WjoXT nO8lOJJ5D9LhyjFjW0hYMFJq3eBAdxfGROyFOK9N29FU3hoU+tsYPSKrl3ws3PMg45cyRHLV Rip0xr0yXPYUYb70FnE70nVGICvMgUpmrM4XH1Yr7kt+5cBM583yuJ94rF/hOFHuR4GQWeFR xBSWd41qArjdABIxhZrnMICSW3fMyo9yfiQ6tXoyD1cHD/i2WmOnqCKEOtFScVeQJZJhqQb5 4NBx+viRax9d+X066AKYiBspm7kYwBVzNsng3uHOfyQXnVmcCEawxWIPyCtxSoV6fCKYdAfJ CQeElBXE89inkdGmdb0KLmYkHDoV4L1deAsPUI/t6qZjwqF3pKcr8kdGExqHwvytL8n1KGbY PyJ6Fn1z/idOOiTYgN+Q7FWRRX0QplyVpSBU4OnD0Gd3KkP+a0+kErokA1Lk3/YCE45VT8J8 8f4YGbRsIkf0xW+Ei0fk3fl9VPOrbTD+gFv+AzbT+Gp1+kElwVKj0VzXy0OC6UIQJ3J1on0l ArkcfPTIMcWxGmfGPw==
Organization: Meinberg Funkuhren, Bad Pyrmont, Germany
Message-ID: <219aecdd-581b-3931-97d3-5d0dd9ca409d@meinberg.de>
Date: Thu, 14 Feb 2019 16:20:14 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <CANCZdfpBmv7hLUrAws0W_ksKTZ4hmBKKbkQK85rWLz_yhBYPEA@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.100.2 at server1a
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/d4CoDYj2VUc_DY1-xQUwELWg7WA>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 15:20:28 -0000

Warner Losh wrote:
>     > It is possible for any system not to know what time it is.
>     > A good protocol should recommend what actions should be taken.
> 
>     If your system actually doesn't know which time it is then it's anyway
>     no good idea to run applications that require accurate time.
> 
>     As I said above, the actions to be taken depend on your own preferences
>     and requirements, and you have to configure your system in a way that it
>     meets your requirement. At least NTP/ntpd offer various possibilities.
> 
> 
> The problems I ran into usually were a requirement to start some control
> program, even if you didn't know what time it was (an LED was lit in
> this case, for example). And it was better everybody had the same time
> so ntpd started serving time.
> 
> The other case was I have time, life is good. GPS receiver goes out and
> the OXCO that was disciplining PPS drifts a bit for a while. GPS comes
> back and now we have a huge offset, larger than we're supposed to
> tolerate. The choice is 'slew the clock slowly' or 'step now'. Different
> applications landed on difference sides of that coin due to the other
> requirements.
> 
> So you can not know time at boot but you can also not know time later.

I fully agree, and it conforms that there is no general "best case" how
to handle such cases. The best way to correct this kind of things
depends on the requirements of your application.


Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy


From nobody Thu Feb 14 07:22:58 2019
Return-Path: <dot@dotat.at>
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 63A6C131054; Thu, 14 Feb 2019 07:22:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level: 
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kBeDejYSiBf9; Thu, 14 Feb 2019 07:22:52 -0800 (PST)
Received: from ppsw-31.csi.cam.ac.uk (ppsw-31.csi.cam.ac.uk [131.111.8.131]) (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 B0C28128CE4; Thu, 14 Feb 2019 07:22:52 -0800 (PST)
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus
Received: from grey.csi.cam.ac.uk ([131.111.57.57]:40614) by ppsw-31.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.137]:25) with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1guIqe-000cNN-KY (Exim 4.91) (return-path <dot@dotat.at>); Thu, 14 Feb 2019 15:22:48 +0000
Date: Thu, 14 Feb 2019 15:22:48 +0000
From: Tony Finch <dot@dotat.at>
To: Daniel Franke <dfoxfranke@gmail.com>
cc: Aanchal Malhotra <aanchal4@bu.edu>, ntp-chairs@ietf.org, ntp@ietf.org
In-Reply-To: <CAJm83bBOv4=yYMO9P2soJkK7vnfwkvHkVxPsEMrSby32FPjiyA@mail.gmail.com>
Message-ID: <alpine.DEB.2.20.1902141514490.18720@grey.csi.cam.ac.uk>
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com> <CAJm83bARWr_z=Jp7yO+CFYzjJd-Sj5BJrFY_tOaKyR+3nxZCWg@mail.gmail.com> <CAMbs7kuMh0AuLBY1znhLN3+ZuX-xvkuitOCnZjedzzhjY7dF0Q@mail.gmail.com> <CAJm83bBOv4=yYMO9P2soJkK7vnfwkvHkVxPsEMrSby32FPjiyA@mail.gmail.com>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/_rPffqdJO0-VNBMr9n1XS7PKTzE>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 15:22:56 -0000

Daniel Franke <dfoxfranke@gmail.com> wrote:

> The idea of a separate query type for historical leap seconds is just
> to conserve bandwidth.

The leap second table can be very small:

6+6+12+12+12+12+12+12+12+18+12+12+24+30+24+12+18+12+12+18+18+18+84+36+42+36+18+35?

This format is interval in months, separated by leap signs (positive or
negative), starting from 1972.

[ I have a binary version which is (currently) 16 bytes. ]

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Channel Islands: Southeast 3 to 4, perhaps locally 5 at times, mainly
mid-channel. Smooth or slight, perhaps locally moderate mid-channel. Risk of
mist patches near french coasts early morning. Good, perhaps locally moderate
or poor near French coasts early morning.


From nobody Thu Feb 14 07:29:10 2019
Return-Path: <mayer@pdmconsulting.net>
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 C452C130F0E; Thu, 14 Feb 2019 07:29:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y0mFUXh8Cd1Q; Thu, 14 Feb 2019 07:29:06 -0800 (PST)
Received: from chessie.everett.org (chessie.everett.org [66.220.13.234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7C097128CE4; Thu, 14 Feb 2019 07:29:06 -0800 (PST)
Received: from [10.10.10.122] (pool-71-174-223-53.bstnma.east.verizon.net [71.174.223.53]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 440gKY2JQQzL7S; Thu, 14 Feb 2019 15:29:05 +0000 (UTC)
To: Tony Finch <dot@dotat.at>, Daniel Franke <dfoxfranke@gmail.com>
Cc: Aanchal Malhotra <aanchal4@bu.edu>, ntp-chairs@ietf.org, ntp@ietf.org
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com> <CAJm83bARWr_z=Jp7yO+CFYzjJd-Sj5BJrFY_tOaKyR+3nxZCWg@mail.gmail.com> <CAMbs7kuMh0AuLBY1znhLN3+ZuX-xvkuitOCnZjedzzhjY7dF0Q@mail.gmail.com> <CAJm83bBOv4=yYMO9P2soJkK7vnfwkvHkVxPsEMrSby32FPjiyA@mail.gmail.com> <alpine.DEB.2.20.1902141514490.18720@grey.csi.cam.ac.uk>
From: Danny Mayer <mayer@pdmconsulting.net>
Message-ID: <01d80439-52a5-dc28-66ae-8e32a7bd4a0a@pdmconsulting.net>
Date: Thu, 14 Feb 2019 10:29:03 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <alpine.DEB.2.20.1902141514490.18720@grey.csi.cam.ac.uk>
Content-Type: multipart/mixed; boundary="------------AEB1B3C8723BCB4FEC118206"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/2z18pDdXsmZgU6NUuAUiKGxBOVU>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 15:29:09 -0000

This is a multi-part message in MIME format.
--------------AEB1B3C8723BCB4FEC118206
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


On 2/14/19 10:22 AM, Tony Finch wrote:
> Daniel Franke <dfoxfranke@gmail.com> wrote:
>
>> The idea of a separate query type for historical leap seconds is just
>> to conserve bandwidth.
> The leap second table can be very small:
>
> 6+6+12+12+12+12+12+12+12+18+12+12+24+30+24+12+18+12+12+18+18+18+84+36+4=
2+36+18+35?
>
> This format is interval in months, separated by leap signs (positive or=

> negative), starting from 1972.
>
> [ I have a binary version which is (currently) 16 bytes. ]
>
> Tony.

And for completeness how do you deal with negative leap-seconds, even
though that seems very unlikely?

Danny


--------------AEB1B3C8723BCB4FEC118206
Content-Type: application/pgp-keys;
 name="pEpkey.asc"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="pEpkey.asc"

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFuvm5wBCAC9DxF2vFcA4FES0ajbbUz/YPUHec/4/4QaZnXjEBNUCcYqRKhD
sGrabF7b1IVW2VV00dKDk9Hxk2cZ0OtDAoTFVozlhMPQbbQHW5FCUCmvmOUfTcqj
nYSXjt3UULLvKoZhPwteuoZEBVno+SkiMYbkCVUyEvjgcQyMAOdFdJbKS3lKqU7t
8OxIgsH5lHdddMcOGDvYYREsRhd3tTwFwssvg91I2Xh+b7x7EPoIqptcopLc2oGe
X3ccuXZuqKqRNTViODIBT79bxenl38y4+uSgYoZSGNCXJe83W7JMXf5TmeTbzaxo
Jsw93kXH71y2DbNqIt2AMOGDJIdWVxf7aHvBABEBAAG0JURhbm55IE1heWVyIDxt
YXllckBwZG1jb25zdWx0aW5nLm5ldD6JAVQEEwEIAD4WIQRgb1gA0HP+S+QJ2mb9
HkdxwIhMygUCW6+bnQIbAwUJAeEzgAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAK
CRD9HkdxwIhMys6fB/0d0iuYGCP4K0UPpc3+1J/sG4AeMRMYH6EzrsvOtZsMtToe
lPgkYT9UjQ0PcOj8IBjW4+L5gGcUkTJI5fBnVgcBEF/1ZonzvGHBpdmn/PERFPtu
eP6A8lj664qzXxQQa48f4keESx+cg927ytP/OvQIN9O7KDSMuUPObkPWmdvB8/S2
wEQSCS0UKHDW+3zKTpsseDc84/ywgbyE/SnhXnbUjyHJm2QNZ3Rt/hH2r+YKM1s8
yxkK30ZjT/ex68S3/1tDMY88P/whMt9kMv+TuiiIl2rhOhZooOI3mgy3cSpu/1gA
JZyxC9YQNKPtLFsVChrzsOdgjan3mhjiZy82URYcuQENBFuvm5wBCACfJdNthq1K
qkrY55kHGoyYPenUWRbaMbSiTanMZ+U67W+4eErSgK4OeRLuWvEj5hrd2oq/Fowj
6qIZZ5lUm3uTOIQQLYchZSMemwAhkVdvu4gFTDldUnxgphrYDMmOc2oxKl+FHmJU
YCvBEIzLJkPhGHApHMgW5y7/lHZL8QE55+aZINC4LgqOWhx7WzjpkH9ebA+TnoqK
JdPXWKtqD8EU9m/LxDpXMulMArEZ/dlYfhfakJoj6iDC9yTIxfAkN4k5U5Y7MmeS
lNPEobdz+Y/UvoKTXWOr88W+dSce0toSwfuA2R5Ji0DzIQ7VJSxRHoMhGZkt3z3o
tlhqSutv6gCDABEBAAGJATwEGAEIACYWIQRgb1gA0HP+S+QJ2mb9HkdxwIhMygUC
W6+bnAIbDAUJAeEzgAAKCRD9HkdxwIhMyuHYB/9qfdOMU7szYmxzv+vtWcJtwCn9
WoJgX3dm1QEnc38o+o+OzokXWP28O3MKcSHUj1+VGFf1VULXa6DEG6qn8DWexV2E
Pt05ia53cvvyxvpUaB3wuiEdr/1PrbuR97PHx0NCMtp/FzYjG/eNuLUFV2lZDoRV
dK4h8koE7c0KQGBwGG0nGUtF471Ku/vtxDQeoPtM632JsbeM4QLHAnOU9j40xmY3
E3hvVpa0zK9NawoMTYVgEWSmQtIvdPiB6e666CCITdysMwOvKoOx40Bl0eFW53yh
gyy1dtRL7uCTCplSQ9MWru0+GDfxwWk2C5zmNFfs+/ldZ0xYSsN9UYXuHLuK
=3DS/5P
-----END PGP PUBLIC KEY BLOCK-----

--------------AEB1B3C8723BCB4FEC118206--


From nobody Thu Feb 14 07:39:24 2019
Return-Path: <dot@dotat.at>
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 E26B2131069 for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 07:39:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.197
X-Spam-Level: 
X-Spam-Status: No, score=-4.197 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kd8l6TjF-83Y for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 07:39:21 -0800 (PST)
Received: from ppsw-33.csi.cam.ac.uk (ppsw-33.csi.cam.ac.uk [131.111.8.133]) (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 176EC13105F for <ntp@ietf.org>; Thu, 14 Feb 2019 07:39:21 -0800 (PST)
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus
Received: from grey.csi.cam.ac.uk ([131.111.57.57]:60854) by ppsw-33.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.139]:25) with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1guJ6Y-000AWe-hp (Exim 4.91) (return-path <dot@dotat.at>); Thu, 14 Feb 2019 15:39:14 +0000
Date: Thu, 14 Feb 2019 15:39:14 +0000
From: Tony Finch <dot@dotat.at>
To: Miroslav Lichvar <mlichvar@redhat.com>
cc: Warner Losh <imp@bsdimp.com>, Danny Mayer <mayer@ntp.org>,  "ntp@ietf.org" <ntp@ietf.org>,  Martin Burnicki <martin.burnicki@meinberg.de>,  Watson Ladd <watson@cloudflare.com>
In-Reply-To: <20190214084043.GP6602@localhost>
Message-ID: <alpine.DEB.2.20.1902141527410.18720@grey.csi.cam.ac.uk>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com> <20190214084043.GP6602@localhost>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/4qwHUk1sE_HqwoX5klgqAWaL3O8>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 15:39:23 -0000

Miroslav Lichvar <mlichvar@redhat.com> wrote:
> On Wed, Feb 13, 2019 at 02:31:44PM -0700, Warner Losh wrote:
> >
> > In POSIX there most certainly is. There is no unique encoding for the leap
> > second to distinguish 59 from 60 (or in some interpretations 60 from 00).
> > That is the fundamental problem with POSIX that is absolutely not fixable,
> > absent additional metadata.
>
> The question is how NTP should deal with this ambiguity.

This discussion baffles me, because I thought all this had been settled
ages ago, as illustrated in Martin Burnicki's KB article:

https://kb.meinbergglobal.com/kb/time_sync/leap_second_handling_by_the_linux_kernel

i.e. the ntp_adjtime() system call provides the additional metadata that
Warner Losh refers to, which translates into the NTP leap indicator bits.

POSIX time is no worse than NTP time: there is a constant offset between
POSIX time and NTP time, so naive NTP has the same leap second ambiguity /
stepping backwards problem. But the leap indicator bits disambiguate so it
should be a non-issue in a correctly functioning system.

Look at the timestamps in RFC 5905:

   | 1 Jan 1970  | 40,587     | 0   | 2,208,988,800 | First day UNIX   |
   | 1 Jan 1972  | 41,317     | 0   | 2,272,060,800 | First day UTC    |
   | 31 Dec 1999 | 51,543     | 0   | 3,155,587,200 | Last day 20th    |
   |             |            |     |               | Century          |

2,208,988,800 is the constant offset between NTP and POSIX time.

POSIX time for 1999-12-31T00:00:00 is 946598400

2208988800 + 946598400 = 3155587200

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
The Minch: Southerly 6 to gale 8, occasionally 5 at first, perhaps severe gale
9 later in north. Slight or moderate just to the north of Skye, but elsewhere
moderate or rough. Drizzle then fair. Good, occasionally moderate at first.


From seaman@lpl.arizona.edu  Thu Feb 14 07:41:39 2019
Return-Path: <seaman@lpl.arizona.edu>
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 B7F6E131054 for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 07:41:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ds9sKeCOKnVn for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 07:41:37 -0800 (PST)
Received: from hindmost.LPL.Arizona.EDU (hindmost.lpl.arizona.edu [150.135.111.1]) (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 73F79130F0E for <ntp@ietf.org>; Thu, 14 Feb 2019 07:41:37 -0800 (PST)
Received: from MacBook-Pro-10.local (ip68-99-89-43.ph.ph.cox.net [68.99.89.43]) (authenticated bits=0) by hindmost.LPL.Arizona.EDU (8.15.1/8.15.1) with ESMTPSA id x1EFfVg5007750 (version=TLSv1.2 cipher=AES128-SHA bits=128 verify=NOT); Thu, 14 Feb 2019 08:41:35 -0700 (MST)
To: ntp@ietf.org
References: <1c973286-6f1c-5447-c9cf-bbe6ac004ae8@pdmconsulting.net> <20190213172904.GE19408@ucolick.org> <fb1762c7-72e5-6a4f-38c3-75810c9ba2ee@meinberg.de> <CANCZdfpBmv7hLUrAws0W_ksKTZ4hmBKKbkQK85rWLz_yhBYPEA@mail.gmail.com>
From: Rob Seaman <seaman@lpl.arizona.edu>
Message-ID: <3e235d1e-4e43-543e-f03e-81f3886bf679@lpl.arizona.edu>
Date: Thu, 14 Feb 2019 08:41:31 -0700
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <CANCZdfpBmv7hLUrAws0W_ksKTZ4hmBKKbkQK85rWLz_yhBYPEA@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/KC0ly-go1tzMZw1kOXpNR4jgfRs>
X-Mailman-Approved-At: Thu, 14 Feb 2019 07:44:41 -0800
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 15:43:56 -0000

On 2/14/19 7:30 AM, Warner Losh wrote:

> The choice is 'slew the clock slowly' or 'step now'. Different
> applications landed on difference sides of that coin due to the other
> requirements.

Yes. For example, the 10,000-year Clock (a mechanical digital computer)
implements multiple time scales, some of which can step backwards (say,
when re-synchronizing to the sun after a nuclear winter) and others that
pause to step slowly (so the Clock's orrery doesn't move backward as a
result):

   
http://hanksville.org/futureofutc/2011/preprints/10_AAS_11-665_Hillis.pdf

Others can comment on how NTP deals with the natural variation in
precision reference clocks, e.g., an IRIG card rated to 5 microseconds
driving a kernel clock. At whatever level of precision, one eventually
drills down to a physical process that oscillates both positive and
negative.

The clock discipline overlaid on such physical processes must also be
responsive to computer science requirements:

    https://lamport.azurewebsites.net/pubs/pubs.html#time-clocks

Even Einstein punted on synchrony. IIRC, relativity theory places the
simultaneity convention with the choice of gauge. Whereas the most
famous clock maintained by physicists steps forward and backward roughly
on an annual cadence:

    https://thebulletin.org/doomsday-clock/current-time/

Indeed, one suspects most here would be delighted to see that clock take
a big step backward.

Rob Seaman, University of Arizona


From nobody Thu Feb 14 07:48:41 2019
Return-Path: <dot@dotat.at>
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 30FBB131054; Thu, 14 Feb 2019 07:48:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.197
X-Spam-Level: 
X-Spam-Status: No, score=-4.197 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id joyLJt1FEOmK; Thu, 14 Feb 2019 07:48:38 -0800 (PST)
Received: from ppsw-33.csi.cam.ac.uk (ppsw-33.csi.cam.ac.uk [131.111.8.133]) (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 7A20C130F0E; Thu, 14 Feb 2019 07:48:38 -0800 (PST)
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus
Received: from grey.csi.cam.ac.uk ([131.111.57.57]:60944) by ppsw-33.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.139]:25) with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1guJFW-000Iwp-gW (Exim 4.91) (return-path <dot@dotat.at>); Thu, 14 Feb 2019 15:48:30 +0000
Date: Thu, 14 Feb 2019 15:48:30 +0000
From: Tony Finch <dot@dotat.at>
To: Danny Mayer <mayer@pdmconsulting.net>
cc: Daniel Franke <dfoxfranke@gmail.com>, Aanchal Malhotra <aanchal4@bu.edu>,  ntp-chairs@ietf.org, ntp@ietf.org
In-Reply-To: <01d80439-52a5-dc28-66ae-8e32a7bd4a0a@pdmconsulting.net>
Message-ID: <alpine.DEB.2.20.1902141542130.18720@grey.csi.cam.ac.uk>
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com> <CAJm83bARWr_z=Jp7yO+CFYzjJd-Sj5BJrFY_tOaKyR+3nxZCWg@mail.gmail.com> <CAMbs7kuMh0AuLBY1znhLN3+ZuX-xvkuitOCnZjedzzhjY7dF0Q@mail.gmail.com> <CAJm83bBOv4=yYMO9P2soJkK7vnfwkvHkVxPsEMrSby32FPjiyA@mail.gmail.com> <alpine.DEB.2.20.1902141514490.18720@grey.csi.cam.ac.uk> <01d80439-52a5-dc28-66ae-8e32a7bd4a0a@pdmconsulting.net>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/XpVZvcrLikUP7KT8MdMaffc5m4k>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 15:48:40 -0000

Danny Mayer <mayer@pdmconsulting.net> wrote:
> On 2/14/19 10:22 AM, Tony Finch wrote:

> > The leap second table can be very small:
> >
> > 6+6+12+12+12+12+12+12+12+18+12+12+24+30+24+12+18+12+12+18+18+18+84+36+42+36+18+35?
> >
> > This format is interval in months, separated by leap signs (positive or
> > negative), starting from 1972.
>
> And for completeness how do you deal with negative leap-seconds, even
> though that seems very unlikely?

Positive leaps are + negative are - and ? means unknown.

The binary version uses two bits with the same semantics as NTP leap
indicators.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Trafalgar: Southeast 6 to gale 8. Moderate or rough. Fair. Good.


From nobody Thu Feb 14 09:53:09 2019
Return-Path: <rsalz@akamai.com>
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 7470312EB11; Thu, 14 Feb 2019 09:53:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.702
X-Spam-Level: 
X-Spam-Status: No, score=-2.702 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=akamai.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r9NYR19bH5of; Thu, 14 Feb 2019 09:53:06 -0800 (PST)
Received: from mx0a-00190b01.pphosted.com (mx0a-00190b01.pphosted.com [IPv6:2620:100:9001:583::1]) (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 0D33C12D829; Thu, 14 Feb 2019 09:53:05 -0800 (PST)
Received: from pps.filterd (m0122333.ppops.net [127.0.0.1]) by mx0a-00190b01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1EHktw8018821; Thu, 14 Feb 2019 17:53:01 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=jan2016.eng; bh=Bs93LGI+EMH63U3JFIAQpGjqRUkyj/n12bdkkoS98B0=; b=Zbh1Llvr+sFo7rBbS3Oe2A247M4KbTKHIQffZ/42wZfPdJxPohGi28Gg7xx+Zjp+FLyj tbuo1hCeN+LwhheyVATC3wk9RwsDxNh9lLOIT82VyvKkuIYBBAYhE8EBfYll82kD790x scfyod9dW5hKy0itaAMnpYTtoNzKOJVdoZrDkDL2Q97XbUz/PcyM/tUvmPlyAwjEd98H Xi8gI16MW8jcMv8pfosmGIY+DMzrk7NATGOv756Y4RTfOErKe68Mx6dMZ1+U3PUjhwcy tSmgU+QUqydfwdnBuxuf+Rh/JJvSdFy3CVz58iW1mlTtpYiGTkglNpAacWHk/73+UnL9 QQ== 
Received: from prod-mail-ppoint2 (prod-mail-ppoint2.akamai.com [184.51.33.19]) by mx0a-00190b01.pphosted.com with ESMTP id 2qn02k2h95-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Feb 2019 17:53:01 +0000
Received: from pps.filterd (prod-mail-ppoint2.akamai.com [127.0.0.1]) by prod-mail-ppoint2.akamai.com (8.16.0.27/8.16.0.27) with SMTP id x1EHlDU8003119; Thu, 14 Feb 2019 12:52:59 -0500
Received: from email.msg.corp.akamai.com ([172.27.25.30]) by prod-mail-ppoint2.akamai.com with ESMTP id 2qhu305xdx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 14 Feb 2019 12:52:59 -0500
Received: from USTX2EX-DAG1MB1.msg.corp.akamai.com (172.27.27.101) by ustx2ex-dag1mb5.msg.corp.akamai.com (172.27.27.105) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 14 Feb 2019 11:52:58 -0600
Received: from USTX2EX-DAG1MB1.msg.corp.akamai.com ([172.27.6.131]) by ustx2ex-dag1mb1.msg.corp.akamai.com ([172.27.6.131]) with mapi id 15.00.1395.000; Thu, 14 Feb 2019 11:52:58 -0600
From: "Salz, Rich" <rsalz@akamai.com>
To: Danny Mayer <mayer@pdmconsulting.net>, Tony Finch <dot@dotat.at>, "Daniel Franke" <dfoxfranke@gmail.com>
CC: Aanchal Malhotra <aanchal4@bu.edu>, "ntp-chairs@ietf.org" <ntp-chairs@ietf.org>, "ntp@ietf.org" <ntp@ietf.org>
Thread-Topic: [Ntp] Roughtime draft
Thread-Index: AQHUv/vZhWgw9ACeeUO6xFwoQJ6mT6XW5V0AgAZrBQCAAWHygIABJJIAgAABv4D//9RkAA==
Date: Thu, 14 Feb 2019 17:52:58 +0000
Message-ID: <31CC27D1-175E-4CB1-947A-CF3D4AD727ED@akamai.com>
References: <CAMbs7ks7sVkN+o4mqqcGU=c0gBZw0SJDrtBHqmnOG1NR4+tBXg@mail.gmail.com> <CAJm83bARWr_z=Jp7yO+CFYzjJd-Sj5BJrFY_tOaKyR+3nxZCWg@mail.gmail.com> <CAMbs7kuMh0AuLBY1znhLN3+ZuX-xvkuitOCnZjedzzhjY7dF0Q@mail.gmail.com> <CAJm83bBOv4=yYMO9P2soJkK7vnfwkvHkVxPsEMrSby32FPjiyA@mail.gmail.com> <alpine.DEB.2.20.1902141514490.18720@grey.csi.cam.ac.uk> <01d80439-52a5-dc28-66ae-8e32a7bd4a0a@pdmconsulting.net>
In-Reply-To: <01d80439-52a5-dc28-66ae-8e32a7bd4a0a@pdmconsulting.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/10.16.0.190211
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [172.19.32.122]
Content-Type: text/plain; charset="utf-8"
Content-ID: <D2567AA83BEF274F887F246A06C86210@akamai.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-02-14_09:, , signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=676 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902140121
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-02-14_09:, , signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=677 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902140121
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/eLzIyAeQCP7AxZ0VznCHSEqPTlY>
Subject: Re: [Ntp] Roughtime draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 17:53:08 -0000

ICAgID4gVGhlIGxlYXAgc2Vjb25kIHRhYmxlIGNhbiBiZSB2ZXJ5IHNtYWxsOg0KICAgID4NCiAg
ICA+IDYrNisxMisxMisxMisxMisxMisxMisxMisxOCsxMisxMisyNCszMCsyNCsxMisxOCsxMisx
MisxOCsxOCsxOCs4NCszNis0MiszNisxOCszNT8NCiAgICA+DQogICAgPiBUaGlzIGZvcm1hdCBp
cyBpbnRlcnZhbCBpbiBtb250aHMsIHNlcGFyYXRlZCBieSBsZWFwIHNpZ25zIChwb3NpdGl2ZSBv
cg0KICAgID4gbmVnYXRpdmUpLCBzdGFydGluZyBmcm9tIDE5NzIuDQogDQpVc2UgaGV4IGFuZCBz
YXZlIChvb2gsIG5lYXQgY29pbmNpZGVuY2UpIDEyIGJ5dGVzLiAiKzEyIiAtPiAiK0MiDQoNCg==


From nobody Thu Feb 14 10:20:11 2019
Return-Path: <wlosh@bsdimp.com>
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 AC5BD12867A for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 10:20:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=bsdimp-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bRHSHO4hPiUT for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 10:20:08 -0800 (PST)
Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1DC871200ED for <ntp@ietf.org>; Thu, 14 Feb 2019 10:20:07 -0800 (PST)
Received: by mail-qt1-x831.google.com with SMTP id o6so7948747qtk.6 for <ntp@ietf.org>; Thu, 14 Feb 2019 10:20:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CRFbwUHUnY8wmZJF2+BsTgEHo6xVVNggP3DTOKq7AGQ=; b=D49oEg/Q9E51hO7G/WRpTiP71/X0JC4vS+ZqcCW1sYA1y3IKVUx0WgJNINLAkXRMZ/ xCIa0z8pD+0ykA3XizptkyZ9vNqfbSSpCoqpZHNmQNcaga4Cz5j1FtEjhsc+q/+JbAsv 3JH2E6uJ8oqklnpDUugMU9U4iWbpuXsLecaUAGLz1gvUPiBfB2z+KOcFhhDHH1vSTcrm h9LeZLtr0QZgsmuaepiqOC0/Q5FOTj2WQFwytoiJKhInN6ksHrqwtR2Km9ZFgR3p7oKC 1PHR6H6p51QKR3yyvAdHdnJeXXakJ5PX1WifybwaD0Vo8YBU6h3yJYv6fs1WFFWrzqWE eN+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CRFbwUHUnY8wmZJF2+BsTgEHo6xVVNggP3DTOKq7AGQ=; b=MzPNogz3s0lUFk1f+hu2mEFxIf55UQrT60hzMVJykz2L7JbPVWd5jN4TT62QNFIQkk qYzf7RiqyEdeEBh+F890W0yLWhSGM6Dk50APa0uDqF/OCPuFOvhvzMhqPiEN8SOepYpE 8Deo4SdNclB4DLZMUGLuWLqqy1W24ymnHh1aJ8xPOkWIY4ZC7cKMuVV4RUt6NyWC8Ogt z/4BeyuJ+v4sIcn69/kal9MgbLoloBmV5VDUPKYlS9W3ZMLcdhDtDS2AyTKbzxNZwnnH Cp6Z6IKS9sNe79HK+7i/VzuFIo6goT9PrOxoVEOTWaBJHUlAKgCJsaOPcsau+7XOarPG fFLA==
X-Gm-Message-State: AHQUAubQL0IkfrcsGM+1sduUJkrYVcSMCPbRYILZdPYjtpjIDq+IVJWc 0jsbuZqmw+xFa/ABFOgwwFAGINRuAfI9vEnMLgNe2w==
X-Google-Smtp-Source: AHgI3IZETD8XzN5PIvWD5SWtt9IL3X5zF8RUOFxYivQjEipQgqQaNN2NGF/v60zyqjuyNoFLqF8gRnZEEFAAjNv8tcM=
X-Received: by 2002:a0c:b68a:: with SMTP id u10mr4055526qvd.57.1550168405959;  Thu, 14 Feb 2019 10:20:05 -0800 (PST)
MIME-Version: 1.0
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com> <20190214084043.GP6602@localhost>
In-Reply-To: <20190214084043.GP6602@localhost>
From: Warner Losh <imp@bsdimp.com>
Date: Thu, 14 Feb 2019 11:19:54 -0700
Message-ID: <CANCZdfrLdR59v6ydq_unPJgNvUStJ+=A1+9t_XGnNd3zPwseMA@mail.gmail.com>
To: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Danny Mayer <mayer@ntp.org>, "ntp@ietf.org" <ntp@ietf.org>,  Martin Burnicki <martin.burnicki@meinberg.de>, Watson Ladd <watson@cloudflare.com>
Content-Type: multipart/alternative; boundary="0000000000002dfa3b0581deb5d4"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/0dyd7L9H2QQkoDwAt1ieD75mJrU>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Thu, 14 Feb 2019 18:20:10 -0000

--0000000000002dfa3b0581deb5d4
Content-Type: text/plain; charset="UTF-8"

On Thu, Feb 14, 2019 at 1:40 AM Miroslav Lichvar <mlichvar@redhat.com>
wrote:

> On Wed, Feb 13, 2019 at 02:31:44PM -0700, Warner Losh wrote:
> > In POSIX there most certainly is. There is no unique encoding for the
> leap
> > second to distinguish 59 from 60 (or in some interpretations 60 from 00).
> > That is the fundamental problem with POSIX that is absolutely not
> fixable,
> > absent additional metadata. That is what Martin is talking about here:
> > providing that data to resolve an otherwise ambiguous case.
>
> The question is how NTP should deal with this ambiguity. Clients can
> ignore measurements with timestamps in those two seconds and servers
> could perhaps respond with "not synchronized". I think some NTP
> implementations do this. Maybe it should be added to the
> specification.
>

NTP solved this problems years ago by having a flag on the measurement
saying that it's during a leap second. So while the numbers used to
exchange the time can be ambiguous, there's enough metadata so that the
server knows what's going on.

POSIX never did, so ntp_adjtime and other interfaces are needed for ntpd to
cope on a POSIX system. Thankfully, those are nearly universally
implemented.

Warner

--0000000000002dfa3b0581deb5d4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Thu, Feb 14, 2019 at 1:40 AM Miros=
lav Lichvar &lt;<a href=3D"mailto:mlichvar@redhat.com">mlichvar@redhat.com<=
/a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">O=
n Wed, Feb 13, 2019 at 02:31:44PM -0700, Warner Losh wrote:<br>
&gt; In POSIX there most certainly is. There is no unique encoding for the =
leap<br>
&gt; second to distinguish 59 from 60 (or in some interpretations 60 from 0=
0).<br>
&gt; That is the fundamental problem with POSIX that is absolutely not fixa=
ble,<br>
&gt; absent additional metadata. That is what Martin is talking about here:=
<br>
&gt; providing that data to resolve an otherwise ambiguous case.<br>
<br>
The question is how NTP should deal with this ambiguity. Clients can<br>
ignore measurements with timestamps in those two seconds and servers<br>
could perhaps respond with &quot;not synchronized&quot;. I think some NTP<b=
r>
implementations do this. Maybe it should be added to the<br>
specification.<br></blockquote><div><br></div><div>NTP solved this problems=
 years ago by having a flag on the measurement saying that it&#39;s during =
a leap second. So while the numbers used to exchange the time can be ambigu=
ous, there&#39;s enough metadata so that the server knows what&#39;s going =
on.</div><div><br></div><div>POSIX never did, so ntp_adjtime and other inte=
rfaces are needed for ntpd to cope on a POSIX system. Thankfully, those are=
 nearly universally implemented.</div><div><br></div><div>Warner</div></div=
></div>

--0000000000002dfa3b0581deb5d4--


From nobody Thu Feb 14 23:57:30 2019
Return-Path: <mlichvar@redhat.com>
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 C83DD130E69 for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 23:57:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.901
X-Spam-Level: 
X-Spam-Status: No, score=-6.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mO0vVvJfvDvg for <ntp@ietfa.amsl.com>; Thu, 14 Feb 2019 23:57:26 -0800 (PST)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5B44712867A for <ntp@ietf.org>; Thu, 14 Feb 2019 23:57:26 -0800 (PST)
Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6C12FC0E0146; Fri, 15 Feb 2019 07:57:25 +0000 (UTC)
Received: from localhost (holly.tpb.lab.eng.brq.redhat.com [10.43.134.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E094410027CE; Fri, 15 Feb 2019 07:57:23 +0000 (UTC)
Date: Fri, 15 Feb 2019 08:57:22 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Warner Losh <imp@bsdimp.com>
Cc: Danny Mayer <mayer@ntp.org>, "ntp@ietf.org" <ntp@ietf.org>, Martin Burnicki <martin.burnicki@meinberg.de>, Watson Ladd <watson@cloudflare.com>
Message-ID: <20190215075722.GY6602@localhost>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com> <20190214084043.GP6602@localhost> <CANCZdfrLdR59v6ydq_unPJgNvUStJ+=A1+9t_XGnNd3zPwseMA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CANCZdfrLdR59v6ydq_unPJgNvUStJ+=A1+9t_XGnNd3zPwseMA@mail.gmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 15 Feb 2019 07:57:25 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/xwQThKyao9gNsbLUo397KE1JWQU>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Fri, 15 Feb 2019 07:57:28 -0000

On Thu, Feb 14, 2019 at 11:19:54AM -0700, Warner Losh wrote:
> On Thu, Feb 14, 2019 at 1:40 AM Miroslav Lichvar <mlichvar@redhat.com>
> > The question is how NTP should deal with this ambiguity. Clients can
> > ignore measurements with timestamps in those two seconds and servers
> > could perhaps respond with "not synchronized". I think some NTP
> > implementations do this. Maybe it should be added to the
> > specification.
> 
> NTP solved this problems years ago by having a flag on the measurement
> saying that it's during a leap second. So while the numbers used to
> exchange the time can be ambiguous, there's enough metadata so that the
> server knows what's going on.

Which flag are you referring to? The leap indicator just says that the
last minute of the day or month (depending on where in RFC 5905 you
look at) has 61 or 59 seconds. It doesn't flip between the 60th and
61th second.

> POSIX never did, so ntp_adjtime and other interfaces are needed for ntpd to
> cope on a POSIX system. Thankfully, those are nearly universally
> implemented.

ntp_adjtime/gettime are nice, but AFAIK nothing is using them to read
the clock, not even the NTP implementations.

-- 
Miroslav Lichvar


From nobody Fri Feb 15 07:32:30 2019
Return-Path: <wlosh@bsdimp.com>
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 29AE2130E6C for <ntp@ietfa.amsl.com>; Fri, 15 Feb 2019 07:32:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=bsdimp-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fbdeg9yj5cpP for <ntp@ietfa.amsl.com>; Fri, 15 Feb 2019 07:32:25 -0800 (PST)
Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9298A12008F for <ntp@ietf.org>; Fri, 15 Feb 2019 07:32:25 -0800 (PST)
Received: by mail-qk1-x729.google.com with SMTP id w204so5924063qka.2 for <ntp@ietf.org>; Fri, 15 Feb 2019 07:32:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zDa5VeX+UrauSldCdeq77Ay1V6rgHRnb26kIp2IkgyU=; b=mws1WBrpUbp8hUTLvMjjaIpgQNjpn9yR3MIaChQjiH4R7o+uahAj+XyQ0VV9jVgycB mAz36TOrAr70iQ7SlkOwm/v4o8CX/LJ3a/gIEvFlt3+HxLG9WjQKq3uKWM38J8Q7fr4K pLEfA+SY+e7iSOodxH0lbOGZ+piKgcyLHpWkZ2kbi0xbBxxDfaOgchsN1zLACctjBTtr purANRQY7m6jxzLytIQQkVNRf7AZVQwnOYIQdvQGSHIGBYcHYJca2W22dlGFMDLr7K+X MmI6QyZx67xTZlR8EB/4KI1DC5y6gCTeDSzR+mYHia03s0YihsLCY/0fyrBh8q5zvjb2 ybhA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zDa5VeX+UrauSldCdeq77Ay1V6rgHRnb26kIp2IkgyU=; b=J/1MlsRm3hGb0/bn6WZVPL5bj4AOte37N0giMIoeYSou0EKUKd/GTHYRr6nXIwOf/S usuNLgIzEXgeGzdvTxa0+8aFLtj+RU/JHsoeFgd1Mk9z8q3c9G8ttmBh1rFlhnaLH0vG pIiLsO0+2qdqBPhBwMCRnThapWUdJ9VXPpRGJqsmn8kArvHwIkSKuL49wBUbJZZkqXhO 2DqgC94oXyzchc+PYb4Z0fHX2aQ29PxMsYKdnlQOFokZTdorNF4DHtQtBDTzaOb0dkzL fP96TllXVIGBteWRmefm1CIcA+ieHj1/XadqjbDBhhTW5Uo0x68iY0rTDAhpN7aZ1pf7 sGnw==
X-Gm-Message-State: AHQUAubmNRJ4+lYGHpXyttrFntGvl//Z2NJfTvjH/1512p03ws9cxd9y GZ5qGaHw0RBzXL+rTJINnD4hS9QQ1dsxqsOrLsOHuw==
X-Google-Smtp-Source: AHgI3IaMqmlx7cNtkNEfeztQG+7cjLd1I4EcDS0l3xb84ZyPJvFppehzRrQ1TFQKOc1D2cuoUgWervipBevDgZwxw0g=
X-Received: by 2002:a37:a704:: with SMTP id q4mr7658261qke.245.1550244743998;  Fri, 15 Feb 2019 07:32:23 -0800 (PST)
MIME-Version: 1.0
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com> <20190214084043.GP6602@localhost> <CANCZdfrLdR59v6ydq_unPJgNvUStJ+=A1+9t_XGnNd3zPwseMA@mail.gmail.com> <20190215075722.GY6602@localhost>
In-Reply-To: <20190215075722.GY6602@localhost>
From: Warner Losh <imp@bsdimp.com>
Date: Fri, 15 Feb 2019 08:32:12 -0700
Message-ID: <CANCZdfoaF+-wOMPF4sHB4B_rekAAcj6W2xC5W+8xgiePDUb6Yg@mail.gmail.com>
To: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Danny Mayer <mayer@ntp.org>, "ntp@ietf.org" <ntp@ietf.org>,  Martin Burnicki <martin.burnicki@meinberg.de>, Watson Ladd <watson@cloudflare.com>
Content-Type: multipart/alternative; boundary="0000000000004801660581f07ba1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/wFVXHUzAQX2bzkA_fzGSrzgD_2Q>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Fri, 15 Feb 2019 15:32:28 -0000

--0000000000004801660581f07ba1
Content-Type: text/plain; charset="UTF-8"

On Fri, Feb 15, 2019 at 12:57 AM Miroslav Lichvar <mlichvar@redhat.com>
wrote:

> On Thu, Feb 14, 2019 at 11:19:54AM -0700, Warner Losh wrote:
> > On Thu, Feb 14, 2019 at 1:40 AM Miroslav Lichvar <mlichvar@redhat.com>
> > > The question is how NTP should deal with this ambiguity. Clients can
> > > ignore measurements with timestamps in those two seconds and servers
> > > could perhaps respond with "not synchronized". I think some NTP
> > > implementations do this. Maybe it should be added to the
> > > specification.
> >
> > NTP solved this problems years ago by having a flag on the measurement
> > saying that it's during a leap second. So while the numbers used to
> > exchange the time can be ambiguous, there's enough metadata so that the
> > server knows what's going on.
>
> Which flag are you referring to? The leap indicator just says that the
> last minute of the day or month (depending on where in RFC 5905 you
> look at) has 61 or 59 seconds. It doesn't flip between the 60th and
> 61th second.
>

Ah, true. I'd recalled it was the upper bits of the timestamp, but can't
find that now. You know it could be a bad one if it's in the last two
seconds of the day. The negative leap second is unambiguous, though, if you
have the flag. But since we've never had negative leaps, and likely never
will, it's a moot point.


> > POSIX never did, so ntp_adjtime and other interfaces are needed for ntpd
> to
> > cope on a POSIX system. Thankfully, those are nearly universally
> > implemented.
>
> ntp_adjtime/gettime are nice, but AFAIK nothing is using them to read
> the clock, not even the NTP implementations.
>

Systems that care about leap seconds use them so that the leap second is
properly flagged. But not enough systems do that, so everybody gets the
leap second wrong because the traditional POSIX interface encourages a
"well, it's just a second every few years, so why bother" attitude. :(

Warner

--0000000000004801660581f07ba1
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Fri, Feb 15, 2019 at 12:57 AM Miro=
slav Lichvar &lt;<a href=3D"mailto:mlichvar@redhat.com">mlichvar@redhat.com=
</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">=
On Thu, Feb 14, 2019 at 11:19:54AM -0700, Warner Losh wrote:<br>
&gt; On Thu, Feb 14, 2019 at 1:40 AM Miroslav Lichvar &lt;<a href=3D"mailto=
:mlichvar@redhat.com" target=3D"_blank">mlichvar@redhat.com</a>&gt;<br>
&gt; &gt; The question is how NTP should deal with this ambiguity. Clients =
can<br>
&gt; &gt; ignore measurements with timestamps in those two seconds and serv=
ers<br>
&gt; &gt; could perhaps respond with &quot;not synchronized&quot;. I think =
some NTP<br>
&gt; &gt; implementations do this. Maybe it should be added to the<br>
&gt; &gt; specification.<br>
&gt; <br>
&gt; NTP solved this problems years ago by having a flag on the measurement=
<br>
&gt; saying that it&#39;s during a leap second. So while the numbers used t=
o<br>
&gt; exchange the time can be ambiguous, there&#39;s enough metadata so tha=
t the<br>
&gt; server knows what&#39;s going on.<br>
<br>
Which flag are you referring to? The leap indicator just says that the<br>
last minute of the day or month (depending on where in RFC 5905 you<br>
look at) has 61 or 59 seconds. It doesn&#39;t flip between the 60th and<br>
61th second.<br></blockquote><div><br></div><div>Ah, true. I&#39;d recalled=
 it was the upper bits of the timestamp, but can&#39;t find that now. You k=
now it could be a bad one if it&#39;s in the last two seconds of the day. T=
he negative leap second is unambiguous, though, if you have the flag. But s=
ince we&#39;ve never had negative leaps, and likely never will, it&#39;s a =
moot point.</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex">
&gt; POSIX never did, so ntp_adjtime and other interfaces are needed for nt=
pd to<br>
&gt; cope on a POSIX system. Thankfully, those are nearly universally<br>
&gt; implemented.<br><br>
ntp_adjtime/gettime are nice, but AFAIK nothing is using them to read<br>
the clock, not even the NTP implementations.<br></blockquote><div><br></div=
><div>Systems that care about leap seconds use them so that the leap second=
 is properly flagged. But not enough systems do that, so everybody gets the=
 leap second wrong because the traditional POSIX interface encourages a &qu=
ot;well, it&#39;s just a second every few years, so why bother&quot; attitu=
de. :(</div><div><br></div><div>Warner<br></div><div><br></div></div></div>

--0000000000004801660581f07ba1--


From nobody Fri Feb 15 08:04:31 2019
Return-Path: <dot@dotat.at>
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 02936130FDC for <ntp@ietfa.amsl.com>; Fri, 15 Feb 2019 08:04:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level: 
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dp2Dujzudwtj for <ntp@ietfa.amsl.com>; Fri, 15 Feb 2019 08:04:27 -0800 (PST)
Received: from ppsw-32.csi.cam.ac.uk (ppsw-32.csi.cam.ac.uk [131.111.8.132]) (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 AD57812008F for <ntp@ietf.org>; Fri, 15 Feb 2019 08:04:27 -0800 (PST)
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus
Received: from grey.csi.cam.ac.uk ([131.111.57.57]:34344) by ppsw-32.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.138]:25) with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1gufyO-000yFR-34 (Exim 4.91) (return-path <dot@dotat.at>); Fri, 15 Feb 2019 16:04:20 +0000
Date: Fri, 15 Feb 2019 16:04:20 +0000
From: Tony Finch <dot@dotat.at>
To: Warner Losh <imp@bsdimp.com>
cc: Miroslav Lichvar <mlichvar@redhat.com>, Danny Mayer <mayer@ntp.org>,  "ntp@ietf.org" <ntp@ietf.org>,  Martin Burnicki <martin.burnicki@meinberg.de>,  Watson Ladd <watson@cloudflare.com>
In-Reply-To: <CANCZdfoaF+-wOMPF4sHB4B_rekAAcj6W2xC5W+8xgiePDUb6Yg@mail.gmail.com>
Message-ID: <alpine.DEB.2.20.1902151551510.18720@grey.csi.cam.ac.uk>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com> <20190214084043.GP6602@localhost> <CANCZdfrLdR59v6ydq_unPJgNvUStJ+=A1+9t_XGnNd3zPwseMA@mail.gmail.com> <20190215075722.GY6602@localhost> <CANCZdfoaF+-wOMPF4sHB4B_rekAAcj6W2xC5W+8xgiePDUb6Yg@mail.gmail.com>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/96UygUiIG6WAPiiXAIrMtqPCZpQ>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Fri, 15 Feb 2019 16:04:30 -0000

Warner Losh <imp@bsdimp.com> wrote:
> Miroslav Lichvar <mlichvar@redhat.com> wrote:
> >
> > Which flag are you referring to? The leap indicator just says that the
> > last minute of the day or month (depending on where in RFC 5905 you
> > look at) has 61 or 59 seconds. It doesn't flip between the 60th and
> > 61th second.
>
> Ah, true. I'd recalled it was the upper bits of the timestamp, but can't
> find that now. You know it could be a bad one if it's in the last two
> seconds of the day.

That implies NTP servers cannot correctly answer around a positive leap
second :-( You also have to avoid the first second following the leap.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
an equitable and peaceful international order


From nobody Fri Feb 15 08:52:51 2019
Return-Path: <wlosh@bsdimp.com>
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 C5133130FDA for <ntp@ietfa.amsl.com>; Fri, 15 Feb 2019 08:52:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=bsdimp-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lg28q03CG47n for <ntp@ietfa.amsl.com>; Fri, 15 Feb 2019 08:52:47 -0800 (PST)
Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 978FC130FC1 for <ntp@ietf.org>; Fri, 15 Feb 2019 08:52:47 -0800 (PST)
Received: by mail-qk1-x72f.google.com with SMTP id x6so6074367qki.6 for <ntp@ietf.org>; Fri, 15 Feb 2019 08:52:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yOkXBBoVenl/inTzXpgaqB0n2jd+rsQDyaqgRiEu0z4=; b=J2QmYvV4pcS49CjhRi5cTGZHH/IUvksLyTAN0fGVzGaU3AdaJpLV/Qb7c6K2M03Jci IcVqmOU1BgNPo4ghxsDMQHbhYlij+P8CmZvCaIPS6UDuveEOQxwaBm6Tt6IoAzWt/gPl BgL7yNiBB8JZ9jxR99nE6u1yRT6k1/Ns7iSPsRXubs3flakxgBTWBsM5/SkiomNvVm2B XoUXtfXGpORtFWGdD1xPGx1krHAgkv80y6XoSNWnGXLvGXSqdMOAa0IkfWGj7NlKnhOU 0CDvo8GvMtPSH+RRnqDO1gO3LnfkeFslBgs6Nex1Ilzqorl/Cq0Mt5kFRmUplYGP96hO 3vmw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yOkXBBoVenl/inTzXpgaqB0n2jd+rsQDyaqgRiEu0z4=; b=mAZ/sjD6v8qbKpswLh3o76FT/9gd1YKMuFvdvRYftT6WdzSw4isZ+uRM+a21Qfmf1e HuIzOX1YP+ObjHaxvAU4tEsjkW8EvbmdgTqqDRipPT5KHqmbPqN6O5bs+nGqbysrlfTY HnE14KGZDwUgZ+WJKk3mgX6+jDW4NFcsOFcAk6HLwfm9i6lyYTrchq81lxBx+/DOP3q5 k3v2XhOGvEEMSa/8ciYHXQTRsD5IKmOgfIDeN98ZzKrujT+XXYgCmPvm9J5iKaZAlLzq Ol178LCuHySFfsNL1XDLeR5ofkuIvNfnSlWy5ZM12sWpjId3YXpthThCNj31CUdNTuGf Ttvg==
X-Gm-Message-State: AHQUAuZs4XYwa4JapsfqinZuz3zwf8QEc4T8juzbUrKqHdzDYRVk1mzV /v5eUW/SH4XY04n/hnxibvbCREkAp0oev37Z7TwUgw==
X-Google-Smtp-Source: AHgI3Iba2Rd2coKiu8cvkzcpUkEdq05Omsl9HHxV50O3nXsnherXfqAEe+UxX/h+EVFYcG6ZIsKCRPvU06L0Uiv9q3E=
X-Received: by 2002:a37:9201:: with SMTP id u1mr7945386qkd.258.1550249566126;  Fri, 15 Feb 2019 08:52:46 -0800 (PST)
MIME-Version: 1.0
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com> <20190214084043.GP6602@localhost> <CANCZdfrLdR59v6ydq_unPJgNvUStJ+=A1+9t_XGnNd3zPwseMA@mail.gmail.com> <20190215075722.GY6602@localhost> <CANCZdfoaF+-wOMPF4sHB4B_rekAAcj6W2xC5W+8xgiePDUb6Yg@mail.gmail.com> <alpine.DEB.2.20.1902151551510.18720@grey.csi.cam.ac.uk>
In-Reply-To: <alpine.DEB.2.20.1902151551510.18720@grey.csi.cam.ac.uk>
From: Warner Losh <imp@bsdimp.com>
Date: Fri, 15 Feb 2019 09:52:35 -0700
Message-ID: <CANCZdfrHJdDxyW_hZc8P=Dv6Hg24HO86w0HD9mcVAKHrKd2iNA@mail.gmail.com>
To: Tony Finch <dot@dotat.at>
Cc: Miroslav Lichvar <mlichvar@redhat.com>, Danny Mayer <mayer@ntp.org>, "ntp@ietf.org" <ntp@ietf.org>,  Martin Burnicki <martin.burnicki@meinberg.de>, Watson Ladd <watson@cloudflare.com>
Content-Type: multipart/alternative; boundary="000000000000b3ddb80581f19a22"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/OX737neQIgm2QRHPiFr3yMsk3VE>
Subject: Re: [Ntp] Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Fri, 15 Feb 2019 16:52:50 -0000

--000000000000b3ddb80581f19a22
Content-Type: text/plain; charset="UTF-8"

On Fri, Feb 15, 2019 at 9:04 AM Tony Finch <dot@dotat.at> wrote:

> Warner Losh <imp@bsdimp.com> wrote:
> > Miroslav Lichvar <mlichvar@redhat.com> wrote:
> > >
> > > Which flag are you referring to? The leap indicator just says that the
> > > last minute of the day or month (depending on where in RFC 5905 you
> > > look at) has 61 or 59 seconds. It doesn't flip between the 60th and
> > > 61th second.
> >
> > Ah, true. I'd recalled it was the upper bits of the timestamp, but can't
> > find that now. You know it could be a bad one if it's in the last two
> > seconds of the day.
>
> That implies NTP servers cannot correctly answer around a positive leap
> second :-( You also have to avoid the first second following the leap.
>

Yes. I believe that's what's done since the time deltas for NTP differences
are small enough that sleep(1) is an effective "solution".

Warner

--000000000000b3ddb80581f19a22
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Fri, Feb 15, 2019 at 9:04 AM Tony =
Finch &lt;<a href=3D"mailto:dot@dotat.at">dot@dotat.at</a>&gt; wrote:<br></=
div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bor=
der-left:1px solid rgb(204,204,204);padding-left:1ex">Warner Losh &lt;<a hr=
ef=3D"mailto:imp@bsdimp.com" target=3D"_blank">imp@bsdimp.com</a>&gt; wrote=
:<br>
&gt; Miroslav Lichvar &lt;<a href=3D"mailto:mlichvar@redhat.com" target=3D"=
_blank">mlichvar@redhat.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Which flag are you referring to? The leap indicator just says tha=
t the<br>
&gt; &gt; last minute of the day or month (depending on where in RFC 5905 y=
ou<br>
&gt; &gt; look at) has 61 or 59 seconds. It doesn&#39;t flip between the 60=
th and<br>
&gt; &gt; 61th second.<br>
&gt;<br>
&gt; Ah, true. I&#39;d recalled it was the upper bits of the timestamp, but=
 can&#39;t<br>
&gt; find that now. You know it could be a bad one if it&#39;s in the last =
two<br>
&gt; seconds of the day.<br>
<br>
That implies NTP servers cannot correctly answer around a positive leap<br>
second :-( You also have to avoid the first second following the leap.<br><=
/blockquote><div><br></div><div>Yes. I believe that&#39;s what&#39;s done s=
ince the time deltas for NTP differences are small enough that sleep(1) is =
an effective &quot;solution&quot;.</div><div><br></div><div>Warner=C2=A0</d=
iv></div></div>

--000000000000b3ddb80581f19a22--


From nobody Sun Feb 17 23:50:00 2019
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 AF1E512D4EB for <ntp@ietfa.amsl.com>; Sun, 17 Feb 2019 23:49:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level: 
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h89B468qV6bM for <ntp@ietfa.amsl.com>; Sun, 17 Feb 2019 23:49:56 -0800 (PST)
Received: from rrzmta1.uni-regensburg.de (rrzmta1.uni-regensburg.de [194.94.155.51]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BE3931228B7 for <ntp@ietf.org>; Sun, 17 Feb 2019 23:49:55 -0800 (PST)
Received: from rrzmta1.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 0B08068812 for <ntp@ietf.org>; Mon, 18 Feb 2019 08:49:52 +0100 (CET)
Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta1.uni-regensburg.de (Postfix) with ESMTP id 211C667CA3 for <ntp@ietf.org>; Mon, 18 Feb 2019 08:49:50 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Mon, 18 Feb 2019 08:49:50 +0100
Message-Id: <5C6A639C020000A10002FBC3@gwsmtp1.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.1.0 
Date: Mon, 18 Feb 2019 08:49:48 +0100
From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
To: "Tony Finch" <dot@dotat.at>
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com> <20190214084043.GP6602@localhost> <CANCZdfrLdR59v6ydq_unPJgNvUStJ+=A1+9t_XGnNd3zPwseMA@mail.gmail.com> <20190215075722.GY6602@localhost> <CANCZdfoaF+-wOMPF4sHB4B_rekAAcj6W2xC5W+8xgiePDUb6Yg@mail.gmail.com> <alpine.DEB.2.20.1902151551510.18720@grey.csi.cam.ac.uk>
In-Reply-To: <alpine.DEB.2.20.1902151551510.18720@grey.csi.cam.ac.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/cGR6U3hC8l6scF0SJJCr14iWedI>
Subject: [Ntp] Antw: Re:  Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 18 Feb 2019 07:49:59 -0000

>>> Tony Finch <dot@dotat.at> schrieb am 15.02.2019 um 17:04 in Nachricht
<alpine.DEB.2.20.1902151551510.18720@grey.csi.cam.ac.uk>:
> Warner Losh <imp@bsdimp.com> wrote:
>> Miroslav Lichvar <mlichvar@redhat.com> wrote:
>> >
>> > Which flag are you referring to? The leap indicator just says that the
>> > last minute of the day or month (depending on where in RFC 5905 you
>> > look at) has 61 or 59 seconds. It doesn't flip between the 60th and
>> > 61th second.
>>
>> Ah, true. I'd recalled it was the upper bits of the timestamp, but can't
>> find that now. You know it could be a bad one if it's in the last two
>> seconds of the day.
> 
> That implies NTP servers cannot correctly answer around a positive leap
> second :‑( You also have to avoid the first second following the leap.

I wonder: The LI seems to be an "input" leap indicator ("things to be done"),
but not an "output" leap indicator ("things actually done"): If the leap status
would be indicated during leap second processing, the time sent would be
correct, right?

Regards,
Ulrich
> 
> Tony.
> ‑‑ 
> f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/ 
> an equitable and peaceful international order
> 
> _______________________________________________
> ntp mailing list
> ntp@ietf.org 
> https://www.ietf.org/mailman/listinfo/ntp 




From nobody Mon Feb 18 06:41:40 2019
Return-Path: <dot@dotat.at>
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 18A68128B01 for <ntp@ietfa.amsl.com>; Mon, 18 Feb 2019 06:41:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level: 
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2B_tWBZCRALg for <ntp@ietfa.amsl.com>; Mon, 18 Feb 2019 06:41:36 -0800 (PST)
Received: from ppsw-32.csi.cam.ac.uk (ppsw-32.csi.cam.ac.uk [131.111.8.132]) (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 F311012941A for <ntp@ietf.org>; Mon, 18 Feb 2019 06:41:35 -0800 (PST)
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus
Received: from grey.csi.cam.ac.uk ([131.111.57.57]:40326) by ppsw-32.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.138]:25) with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1gvk6v-000g8k-1w (Exim 4.91) (return-path <dot@dotat.at>); Mon, 18 Feb 2019 14:41:33 +0000
Date: Mon, 18 Feb 2019 14:41:33 +0000
From: Tony Finch <dot@dotat.at>
To: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
cc: "ntp@ietf.org" <ntp@ietf.org>
In-Reply-To: <5C6A639C020000A10002FBC3@gwsmtp1.uni-regensburg.de>
Message-ID: <alpine.DEB.2.20.1902181436390.18720@grey.csi.cam.ac.uk>
References: <24619919-68fb-7418-acd8-fbbaf5705069@ntp.org> <CAN2QdAEhfQ7UNAZdOSPcH2sFNMRbcK6eP_GVXb9Z874YmvAx+Q@mail.gmail.com> <4d047825-3d01-cf70-580c-e24997ed0cb7@ntp.org> <d44e0d94-3c48-1404-8e0b-74b1e028f956@meinberg.de> <ac7b7317-1407-74d7-bbfa-9fe628feae12@ntp.org> <CANCZdfrt9Ux3VEQR+3ETBEp=LdBXv3F=zeLphMwaGkYz9niO=g@mail.gmail.com> <20190214084043.GP6602@localhost> <CANCZdfrLdR59v6ydq_unPJgNvUStJ+=A1+9t_XGnNd3zPwseMA@mail.gmail.com> <20190215075722.GY6602@localhost> <CANCZdfoaF+-wOMPF4sHB4B_rekAAcj6W2xC5W+8xgiePDUb6Yg@mail.gmail.com> <alpine.DEB.2.20.1902151551510.18720@grey.csi.cam.ac.uk> <5C6A639C020000A10002FBC3@gwsmtp1.uni-regensburg.de>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/5KD48S2BFAMemNx99zQSB83hOJ8>
Subject: Re: [Ntp] Antw: Re:  Servers stepping back their clocks
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 18 Feb 2019 14:41:38 -0000

Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> wrote:
>
> I wonder: The LI seems to be an "input" leap indicator ("things to be done"),
> but not an "output" leap indicator ("things actually done"): If the leap status
> would be indicated during leap second processing, the time sent would be
> correct, right?

Yes, although the leap indicator bits can also be "things just done but
still requiring cleanup". And, as you say, what is missing in NTP packets
is something like the return value from ntp_adjtime():

       TIME_OK     Clock synchronized, no leap second adjustment pending.

       TIME_INS    Indicates that a leap second will be added at the end of
                   the UTC day.

       TIME_DEL    Indicates that a leap second will be deleted at the end of
                   the UTC day.

       TIME_OOP    Insertion of a leap second is in progress.

       TIME_WAIT   A leap-second insertion or deletion has been completed.
                   This value will be returned until the next ADJ_STATUS
                   operation clears the STA_INS and STA_DEL flags.

       TIME_ERROR  The system clock is not synchronized to a reliable server.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Selsey Bill to Lyme Regis: West or southwest, 4 or 5. Slight or moderate,
occasionally rough at first. Occasional rain or showers, becoming fair. Good,
occasionally moderate.

