
From nobody Mon Apr  1 04:54:37 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 21AC71200FE for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 04:54:36 -0700 (PDT)
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, 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 IJ4BnEsSCxTM for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 04:54:33 -0700 (PDT)
Received: from ppsw-43.csi.cam.ac.uk (ppsw-43.csi.cam.ac.uk [131.111.8.143]) (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 6259C1200E3 for <ntp@ietf.org>; Mon,  1 Apr 2019 04:54:28 -0700 (PDT)
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]:60818) by ppsw-43.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.136]:25) with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1hAvW7-0001IW-nr (Exim 4.91) (return-path <dot@dotat.at>); Mon, 01 Apr 2019 12:54:19 +0100
Date: Mon, 1 Apr 2019 12:54:19 +0100
From: Tony Finch <dot@dotat.at>
To: Warner Losh <imp@bsdimp.com>
cc: Kurt Roeckx <kurt@roeckx.be>, Steve Allen <sla@ucolick.org>,  NTP WG <ntp@ietf.org>
In-Reply-To: <CANCZdfo57thjq_r41vL_XyczLyW18YFineOptfTbhES4Q4Xpyw@mail.gmail.com>
Message-ID: <alpine.DEB.2.20.1904011242140.13313@grey.csi.cam.ac.uk>
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190330045928.GA31550@ucolick.org> <20190330133348.GA20646@ucolick.org> <20190330152948.GI7706@roeckx.be> <CANCZdfo57thjq_r41vL_XyczLyW18YFineOptfTbhES4Q4Xpyw@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/mw6BPDiGKdMOiKeoXbRdpPipEvk>
Subject: Re: [Ntp] Leap second 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, 01 Apr 2019 11:54:36 -0000

Warner Losh <imp@bsdimp.com> wrote:
>
> And it's less obscure than the crazy notion that leap seconds could happen
> any time other than June and December as a practical matter.

RFC 5905 allows for monthly leap seconds. There's a chance we will need
more than two leap seconds in a year before the end of this century.

Some of the problems with leap second signalling are because NTP clients
only get a two bit warning signal, which isn't enough especially if the
server is setting the bits using assumptions about how leap seconds are
currently administered (at most every 6 months), and the client is
interpreting it according to RFC 5905 and TF.460 (at most every month) and
the server incorrectly provides more than one month warning.

I think if the server explicitly tells the client when the leap second(s)
occur, then there's less scope for problems caused by unwarranted
chumminess with the IERS's bulletin C schedule.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Lyme Regis to Lands End including the Isles of Scilly: East becoming variable,
3 or 4, then becoming northwest 5 or 6 later. Slight or moderate, becoming
smooth to slight for a time east of the Lizard. Rain for a time then showers.
Moderate or good.


From nobody Mon Apr  1 05:00:52 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 3216112010E for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 05:00:50 -0700 (PDT)
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 Fh92sy8Yjpxf for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 05:00:46 -0700 (PDT)
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 8DF6D12010C for <ntp@ietf.org>; Mon,  1 Apr 2019 05:00:46 -0700 (PDT)
Received: by mail-qt1-x82a.google.com with SMTP id k2so10403802qtm.1 for <ntp@ietf.org>; Mon, 01 Apr 2019 05:00:46 -0700 (PDT)
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=x1nDCSFOYbAwFTU/v+llYdHzbtudihPhbatTDv6sHlg=; b=NYyufjc+wnsqDgytUacQHl1x1UBhc0hnVenb/HWyLnAj+tJbqHrEbLK7rmODdhHoo+ snoXAdOUvO5WYfTu3H8ZqhQJgRqLZvNh13fIMykgqAbg5NPmisAfAQOHS+0Mj0vribLz OtydWY/GlcJfQdLdphRvDOpK1LzcoVyYF0xd89/sniKPvIpeOQVjsvAgpq3H5tI5z81O O7hCI9oWiJW9gaub0aofruylIYStQidk579JKBCfMxcm54KLQLLHYlY5PTWYdLpxs/wj f4m0Ux/N28K/1ggls+cHcRZMzDp+l29Uk9x2k6RRDkeuQUE1srx16ks50swtbkwTacQw J4NA==
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=x1nDCSFOYbAwFTU/v+llYdHzbtudihPhbatTDv6sHlg=; b=F/b9x/ScImiJUuL5PX2yKITMwL8v6/1R82xwhpBXLWXQ/qjEWsRUD3ku/5BojuF+ev NkSlMFszDv7V/lzE/1ABH2cn3t/kyK2ZIsLkLtPDOmanaNOrijj2vQi7kxbAyovOKp6U lp863nQ3t5odmiJZ9XkhYftPmTKDOaeS1qTIxx+LCNy23XCgpADiutOlHQUEeW7ZF6rZ SR0qnsyYlsDltm+ckspG/5x2x66gUadSyGhvWMrb+DdyQgGfm16/Qgvkb/fRCNOwv9TX 2wfsQ/Nrcofs6LbGjaqZ/4FIRvVe4ycCAOx+k3jABBf9tY0DKb6TCuAzxYAMY97ti3fU aitw==
X-Gm-Message-State: APjAAAVHzuNKVSs3TN0wmqWlelZ/znZ5wkz9MYY6bXzOEvx1Z0oxcgvP h8Urex+TOTayBK6emvT/zQ2cX7Q5yI35xlefWDmUyw==
X-Google-Smtp-Source: APXvYqz5KXAMBCBkmQNjQEgghT55pH3n0ou5Q9jYjCM3MHVAhtAL7+CdFHj57Xifzy+ga2z2hO2xXicVtdYUizeB8w8=
X-Received: by 2002:ac8:38b6:: with SMTP id f51mr30474871qtc.33.1554120045455;  Mon, 01 Apr 2019 05:00:45 -0700 (PDT)
MIME-Version: 1.0
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190330045928.GA31550@ucolick.org> <20190330133348.GA20646@ucolick.org> <20190330152948.GI7706@roeckx.be> <CANCZdfo57thjq_r41vL_XyczLyW18YFineOptfTbhES4Q4Xpyw@mail.gmail.com> <alpine.DEB.2.20.1904011242140.13313@grey.csi.cam.ac.uk>
In-Reply-To: <alpine.DEB.2.20.1904011242140.13313@grey.csi.cam.ac.uk>
From: Warner Losh <imp@bsdimp.com>
Date: Mon, 1 Apr 2019 06:00:32 -0600
Message-ID: <CANCZdfpEuJ=St+1qdCuk9cF5QV+VjXUm4xaajXnXtTJjR4KOXg@mail.gmail.com>
To: Tony Finch <dot@dotat.at>
Cc: Kurt Roeckx <kurt@roeckx.be>, Steve Allen <sla@ucolick.org>, NTP WG <ntp@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000003f7eab058576c579"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/tOmgXGNx2dD-G3t9-LwUZ6Jp_Vc>
Subject: Re: [Ntp] Leap second 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, 01 Apr 2019 12:00:50 -0000

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

On Mon, Apr 1, 2019, 5:54 AM Tony Finch <dot@dotat.at> wrote:

> Warner Losh <imp@bsdimp.com> wrote:
> >
> > And it's less obscure than the crazy notion that leap seconds could
> happen
> > any time other than June and December as a practical matter.
>
> RFC 5905 allows for monthly leap seconds. There's a chance we will need
> more than two leap seconds in a year before the end of this century.
>
> Some of the problems with leap second signalling are because NTP clients
> only get a two bit warning signal, which isn't enough especially if the
> server is setting the bits using assumptions about how leap seconds are
> currently administered (at most every 6 months), and the client is
> interpreting it according to RFC 5905 and TF.460 (at most every month) and
> the server incorrectly provides more than one month warning.
>
> I think if the server explicitly tells the client when the leap second(s)
> occur, then there's less scope for problems caused by unwarranted
> chumminess with the IERS's bulletin C schedule.
>

That would help. GPS give such a signal and it's quite helpful to know past
and future leaps to act as a sanity check on the data. Though in GPS' case,
it is needed because of the 1024 week wrapping issue.

We no longer live in an era where an extra 32bit word would kill us, yet
that would be extremely helpful if widely implemented.

Warner

Tony.
> --
> f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
> Lyme Regis to Lands End including the Isles of Scilly: East becoming
> variable,
> 3 or 4, then becoming northwest 5 or 6 later. Slight or moderate, becoming
> smooth to slight for a time east of the Lizard. Rain for a time then
> showers.
> Moderate or good.
>

--0000000000003f7eab058576c579
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" =
class=3D"gmail_attr">On Mon, Apr 1, 2019, 5:54 AM Tony Finch &lt;<a href=3D=
"mailto:dot@dotat.at">dot@dotat.at</a>&gt; wrote:<br></div><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad=
ding-left:1ex">Warner Losh &lt;<a href=3D"mailto:imp@bsdimp.com" target=3D"=
_blank" rel=3D"noreferrer">imp@bsdimp.com</a>&gt; wrote:<br>
&gt;<br>
&gt; And it&#39;s less obscure than the crazy notion that leap seconds coul=
d happen<br>
&gt; any time other than June and December as a practical matter.<br>
<br>
RFC 5905 allows for monthly leap seconds. There&#39;s a chance we will need=
<br>
more than two leap seconds in a year before the end of this century.<br>
<br>
Some of the problems with leap second signalling are because NTP clients<br=
>
only get a two bit warning signal, which isn&#39;t enough especially if the=
<br>
server is setting the bits using assumptions about how leap seconds are<br>
currently administered (at most every 6 months), and the client is<br>
interpreting it according to RFC 5905 and TF.460 (at most every month) and<=
br>
the server incorrectly provides more than one month warning.<br>
<br>
I think if the server explicitly tells the client when the leap second(s)<b=
r>
occur, then there&#39;s less scope for problems caused by unwarranted<br>
chumminess with the IERS&#39;s bulletin C schedule.<br></blockquote></div><=
/div><div dir=3D"auto"><br></div><div dir=3D"auto">That would help. GPS giv=
e such a signal and it&#39;s quite helpful to know past and future leaps to=
 act as a sanity check on the data. Though in GPS&#39; case, it is needed b=
ecause of the 1024 week wrapping issue.</div><div dir=3D"auto"><br></div><d=
iv dir=3D"auto">We no longer live in an era where an extra 32bit word would=
 kill us, yet that would be extremely helpful if widely implemented.</div><=
div dir=3D"auto"><br></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" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding=
-left:1ex">
Tony.<br>
-- <br>
f.anthony.n.finch=C2=A0 &lt;<a href=3D"mailto:dot@dotat.at" target=3D"_blan=
k" rel=3D"noreferrer">dot@dotat.at</a>&gt;=C2=A0 <a href=3D"http://dotat.at=
/" rel=3D"noreferrer noreferrer" target=3D"_blank">http://dotat.at/</a><br>
Lyme Regis to Lands End including the Isles of Scilly: East becoming variab=
le,<br>
3 or 4, then becoming northwest 5 or 6 later. Slight or moderate, becoming<=
br>
smooth to slight for a time east of the Lizard. Rain for a time then shower=
s.<br>
Moderate or good.<br>
</blockquote></div></div></div>

--0000000000003f7eab058576c579--


From nobody Mon Apr  1 05:23:18 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 31FD912011F for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 05:23:12 -0700 (PDT)
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 mhsKOWYNfrzl for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 05:23:10 -0700 (PDT)
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 50E6312010C for <ntp@ietf.org>; Mon,  1 Apr 2019 05:23:10 -0700 (PDT)
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]:48338) 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 1hAvxz-000RI0-hH (Exim 4.91) (return-path <dot@dotat.at>); Mon, 01 Apr 2019 13:23:07 +0100
Date: Mon, 1 Apr 2019 13:23:07 +0100
From: Tony Finch <dot@dotat.at>
To: Warner Losh <imp@bsdimp.com>
cc: Daniel Franke <dfoxfranke@gmail.com>, Steve Allen <sla@ucolick.org>,  NTP WG <ntp@ietf.org>, Kurt Roeckx <kurt@roeckx.be>
In-Reply-To: <CANCZdfrbJhVsVJrsw5QRxDWmpHLJdsMMXi=Z=XvJDi1bGvnk=w@mail.gmail.com>
Message-ID: <alpine.DEB.2.20.1904011304060.13313@grey.csi.cam.ac.uk>
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190330045928.GA31550@ucolick.org> <20190330133348.GA20646@ucolick.org> <20190330152948.GI7706@roeckx.be> <CAJm83bB6BF4_Ked5rVRdGmgYECz5gDrb+_7JeOUe1Lmq2ysVQQ@mail.gmail.com> <CANCZdfrbJhVsVJrsw5QRxDWmpHLJdsMMXi=Z=XvJDi1bGvnk=w@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/gK_xQd5pUjBQS6Ootez-QhEEsLw>
Subject: Re: [Ntp] Leap second 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, 01 Apr 2019 12:23:14 -0000

Warner Losh <imp@bsdimp.com> wrote:
>
> A reference to the POSIX standard would be likely be helpful.
> http://pubs.opengroup.org/onlinepubs/9699919799/ has the definition, and
> the reference on all the pages is "The Open Group Base Specifications Issue
> 7, 2018 edition IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008)"

A slightly more direct link is
http://pubs.opengroup.org/onlinepubs/9699919799.2018edition/basedefs/V1_chap04.html#tag_04_16

The frames on the POSIX web site are annoying :-(

> POSIX does not assign a value to the leap second.

I think it does, because I can't see any caveat about plugging
tm_sec == 60 into the expression for seconds since the epoch.

There's also explicit support for leap seconds in struct tm
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html
although it is not explicitly stated that the expression for seconds since
the epoch uses the same definitions as the fields in struct tm...

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Channel Islands: Northeast to east 3 to 4, locally 5 in the north until
mid-afternoon, becoming variable 1 to 3 this evening, then west to northwest 3
to 4 after midnight, increasing 4 to 5 around dawn, locally 6 at times.
Slight, locally moderate in the north early afternoon, generally increasing
moderate during Tuesday morning. Occasional haze risk of fog patches near
french coasts overnight outbreaks of rain spreading from the west by dawn,
clearing by midday. Moderate to good, locally poor at times, perhaps locally
very poor overnight.


From nobody Mon Apr  1 05:36:11 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 5B41E120110 for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 05:36:09 -0700 (PDT)
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, 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 JXd5I0qe4-qt for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 05:36:07 -0700 (PDT)
Received: from ppsw-42.csi.cam.ac.uk (ppsw-42.csi.cam.ac.uk [131.111.8.142]) (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 113E1120088 for <ntp@ietf.org>; Mon,  1 Apr 2019 05:36:07 -0700 (PDT)
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]:57816) by ppsw-42.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.137]:25) with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1hAwAU-000jc0-8D (Exim 4.91) (return-path <dot@dotat.at>); Mon, 01 Apr 2019 13:36:02 +0100
Date: Mon, 1 Apr 2019 13:36:02 +0100
From: Tony Finch <dot@dotat.at>
To: Kurt Roeckx <kurt@roeckx.be>
cc: Daniel Franke <dfoxfranke@gmail.com>, ntp@ietf.org
In-Reply-To: <20190330152353.GH7706@roeckx.be>
Message-ID: <alpine.DEB.2.20.1904011334490.13313@grey.csi.cam.ac.uk>
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190330152353.GH7706@roeckx.be>
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/xsFNoREwO4jF1c_Lg9lJGh3xu0I>
Subject: Re: [Ntp] Leap second 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, 01 Apr 2019 12:36:09 -0000

Kurt Roeckx <kurt@roeckx.be> wrote:
>
> I'm not really sure what you mean here exactly. But I think that
> for an insert, either the receive or transmit happening during
> the leap second can cause problems if this extension is not used.

You need to allow a second either side as well, to allow for different
ways of implementing the ambiguous timestamps.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Cape Wrath to Rattray Head including Orkney: South or southwest 5 to 7,
becoming variable 3 or 4 later. Slight in Moray Firth, otherwise moderate or
rough. Occasional rain or showers. Moderate or good.


From nobody Mon Apr  1 05:46: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 55CE4120113 for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 05:46:56 -0700 (PDT)
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 FIqbPJ3-6YBE for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 05:46:52 -0700 (PDT)
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 79E06120110 for <ntp@ietf.org>; Mon,  1 Apr 2019 05:46:52 -0700 (PDT)
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 D1B6671C0C8B; Mon,  1 Apr 2019 14:46:09 +0200 (CEST)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de D1B6671C0C8B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1554122810; bh=6zYMUOGg0iIjIVBWJknpi4ORCajEiBPGbyhCu3C9ugo=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=E8zDnhHQjdt3SCip0G3bgONSRJwDKxYl2DmXonjpGGWnLzlJOI5ds9nwlcdWwUCfZ ba8f45IomxZTKYAReHMUHHfhJOM7hykh8GNVv/jVq0+28+XS2sfI3H6IbhAoM9GAw8 zvFRZhWnwCyWud4xFjCigagCbfUUaBSSxYq3w6oo=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1226, Stamp: 3], Multi: [Enabled, t: (0.000006,0.005151)], BW: [Enabled, t: (0.000006)], RTDA: [Enabled, t: (0.035638), Hit: No, Details: v2.7.31; Id: 15.1i6u31f.1d7cev04d.8c56], 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)); Mon, 1 Apr 2019 14:46:06 +0200
To: Tony Finch <dot@dotat.at>
Cc: Warner Losh <imp@bsdimp.com>, Steve Allen <sla@ucolick.org>, NTP WG <ntp@ietf.org>, Kurt Roeckx <kurt@roeckx.be>
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190330045928.GA31550@ucolick.org> <20190330133348.GA20646@ucolick.org> <20190330152948.GI7706@roeckx.be> <CANCZdfo57thjq_r41vL_XyczLyW18YFineOptfTbhES4Q4Xpyw@mail.gmail.com> <alpine.DEB.2.20.1904011242140.13313@grey.csi.cam.ac.uk>
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/LN15l3CGewAbjjzgN9A1AOKlxGKcLOeT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f4N1nP8yhS0wujtxxp6OHuzZs6EA2PB3t6CY4jFQ9Wx/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: <40efbe5c-678b-ce22-aa66-1fd01b0730f5@meinberg.de>
Date: Mon, 1 Apr 2019 14:46:06 +0200
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: <alpine.DEB.2.20.1904011242140.13313@grey.csi.cam.ac.uk>
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/llSvkX_q-t9OSGx88gezRzCDy-A>
Subject: Re: [Ntp] Leap second 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, 01 Apr 2019 12:46:56 -0000

Tony Finch wrote:
> Warner Losh <imp@bsdimp.com> wrote:
>>
>> And it's less obscure than the crazy notion that leap seconds could happen
>> any time other than June and December as a practical matter.
> 
> RFC 5905 allows for monthly leap seconds. There's a chance we will need
> more than two leap seconds in a year before the end of this century.
> 
> Some of the problems with leap second signalling are because NTP clients
> only get a two bit warning signal, which isn't enough especially if the
> server is setting the bits using assumptions about how leap seconds are
> currently administered (at most every 6 months), and the client is
> interpreting it according to RFC 5905 and TF.460 (at most every month) and
> the server incorrectly provides more than one month warning.
> 
> I think if the server explicitly tells the client when the leap second(s)
> occur, then there's less scope for problems caused by unwarranted
> chumminess with the IERS's bulletin C schedule.

>From what I've seen in the past there are only very few leap second
problems due to NTP itself, neither due to the protocol, nor due to the
implementation, ntpd.

If a GPS receiver emits a wrong leap second announcement, e.g. at the
end of September when in fact the leap second occurs at the end of
December, then it wouldn't even help if the full (wrong) date was passed
to clients instead of just an announcement flag.

If an OS kernel just steps the time back by 1s to insert a leap second
then this will happen, too, if a full date is specified for the leap
second, with the same effects on applications that get confused due to
the step.

If an OS kernel has a bug and the kernel hogs up the CPU (happened with
some older Linux kernels) when the kernel itself tries to insert a leap
second then there's no big difference whether the kernel has received
the leap second announcement from an NTP implementation evaluating just
a flag, or a full date, or from some PTP slave software, or from any
other source.

If an OS doesn't support leap seconds at all (Windows before *very*
current versions) then you can only try to implement a workaround.
Similar with smearing.

Please note I absolutely find it useful to be able to specify the full
date for which a leap second has been scheduled, but keep in mind that
doing so doesn't prevent from the kind of problems mentioned above,
which are not even related to NTP.


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 Mon Apr  1 05:52:41 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 EC5B0120115 for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 05:52:39 -0700 (PDT)
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 2DTHNO9ww4DK for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 05:52:37 -0700 (PDT)
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 415431200A1 for <ntp@ietf.org>; Mon,  1 Apr 2019 05:52:37 -0700 (PDT)
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 17CE571C0BA9; Mon,  1 Apr 2019 14:52:11 +0200 (CEST)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de 17CE571C0BA9
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1554123155; bh=vkd0FostuMirRL+/eu6Me+pzzPQqx8uOk6qSDseLCmE=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=spCI1mK378au3vsskjTayZV62Dkq+xIXWFNJIzmeIkg8HgidUTZnpwnOc6KAWFwoa PYPu6U7Wbu1LLc405MaV+nXrI7LVFy2sWaTMEzGie9ckpR5u9mYqPRDpMzUy1tzg2M DpCWrGgbaWr2qdlOI9blffFuhtNV8se5FoMGk/+A=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1226, Stamp: 3], Multi: [Enabled, t: (0.000005,0.003706)], BW: [Enabled, t: (0.000006,0.000001)], RTDA: [Enabled, t: (0.119039), Hit: No, Details: v2.7.31; Id: 15.1i6tcc0.1d7cfa1o7.8vbj], 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)); Mon, 1 Apr 2019 14:52:08 +0200
To: Tony Finch <dot@dotat.at>, Warner Losh <imp@bsdimp.com>
Cc: Steve Allen <sla@ucolick.org>, NTP WG <ntp@ietf.org>, Daniel Franke <dfoxfranke@gmail.com>, Kurt Roeckx <kurt@roeckx.be>
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190330045928.GA31550@ucolick.org> <20190330133348.GA20646@ucolick.org> <20190330152948.GI7706@roeckx.be> <CAJm83bB6BF4_Ked5rVRdGmgYECz5gDrb+_7JeOUe1Lmq2ysVQQ@mail.gmail.com> <CANCZdfrbJhVsVJrsw5QRxDWmpHLJdsMMXi=Z=XvJDi1bGvnk=w@mail.gmail.com> <alpine.DEB.2.20.1904011304060.13313@grey.csi.cam.ac.uk>
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/Pg3WF6y2Jnq4Rs4I1SiU9Oy5elr6pJJdhi7RY0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4YGbRsIkf0xW+Ei0fk3fl9VPOrbTD+gFv+AzbT+Gp1+kElwVKj0VzXy0OC6UIQJ3J1on0l ArkcfPTIMcWxGmfGPw==
Organization: Meinberg Funkuhren, Bad Pyrmont, Germany
Message-ID: <400bbfc6-28ca-3fb9-b52f-86de138a64ff@meinberg.de>
Date: Mon, 1 Apr 2019 14:52:07 +0200
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: <alpine.DEB.2.20.1904011304060.13313@grey.csi.cam.ac.uk>
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/HonTnOg7uBZMGHpbCasf5xXao_Y>
Subject: Re: [Ntp] Leap second 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, 01 Apr 2019 12:52:40 -0000

Tony Finch wrote:
> Warner Losh <imp@bsdimp.com> wrote:
>>
>> A reference to the POSIX standard would be likely be helpful.
>> http://pubs.opengroup.org/onlinepubs/9699919799/ has the definition, and
>> the reference on all the pages is "The Open Group Base Specifications Issue
>> 7, 2018 edition IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008)"
> 
> A slightly more direct link is
> http://pubs.opengroup.org/onlinepubs/9699919799.2018edition/basedefs/V1_chap04.html#tag_04_16
> 
> The frames on the POSIX web site are annoying :-(
> 
>> POSIX does not assign a value to the leap second.
> 
> I think it does, because I can't see any caveat about plugging
> tm_sec == 60 into the expression for seconds since the epoch.
> 
> There's also explicit support for leap seconds in struct tm
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html
> although it is not explicitly stated that the expression for seconds since
> the epoch uses the same definitions as the fields in struct tm...

The problem is not that struct tm can't store a specific point in time
that is a leap second. The problem is that if you take a system time
stamp in time_t format and call gmtime() or localtime() you never get a
struct tm back where the value of the second is 60.


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 Mon Apr  1 06:00:21 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 829D2120115 for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 06:00:19 -0700 (PDT)
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 VBstLaYszI-k for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 06:00:17 -0700 (PDT)
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 3409D12010E for <ntp@ietf.org>; Mon,  1 Apr 2019 06:00:17 -0700 (PDT)
Received: by mail-qt1-x82d.google.com with SMTP id z17so10314975qts.13 for <ntp@ietf.org>; Mon, 01 Apr 2019 06:00:17 -0700 (PDT)
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=xZcPlWdNqLRcmTOfOiqh691lPMdCiJexM76ffGxytro=; b=BjSjknRqwiKCwqvGz1uM7l9oMcE3QVHiHWx9lBODHvV7HaFi5CZI9coM8jHaBGYo5h bgrWAEa6LBU5g5xJZf5HBUr+HYEjUgMVGZEEalmS1d613HX0Vlg7Dl6ebkuOtfrpiyvs lgxllQZJM8JTGe9UB1wuUEwkfuNZDfZ7HE7yjd6/LXK6mw/78xUngK+onle/8AiaYBTg DXylXk9lZgeL9B5WqzCYiqrHqWz5nwifTBrnPAMrcrMDsJ3sjOf2e3zpb6oV4A7MWLFO lyf9Q+UAtZKIxXB1L0tREmlr4Zm1YLGN3XdCFcwnJcvKcOF04HB54JwP6pr3QwIcFi7j APSw==
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=xZcPlWdNqLRcmTOfOiqh691lPMdCiJexM76ffGxytro=; b=h1kxCux12AO4cJVn+ghvyyPbGSngOn8279cXmxzcqdKZJta/ltblDNjyqdGrmebAYu z0WWS96eIeI80U8Uay1tUf7y9IMqPNim/hgAb1ELvNpRzr9jF+/V1/uRSNUjrCQ4jzmV mwGcxsL96im2poxclcsGtx9ni/QHP94sqbKVm+vAa6VpKL+7hPQpHs/Th3KNH5s/myvp veuAKHqnHfQXjD6iLV63PRyVnORoMG12olTxnu0o4Axrl1ph4QigTh1FSys661h6GCTk fEJpT4KPrfY9Nwhfg75JNdq/lhVxnNcAuQJVxkihmM2H3SIdYqUcE6zhOODF2mUxZrgr befw==
X-Gm-Message-State: APjAAAUqc9irFHv7+FSGHvoPmMmQXR2UlDVsOvb3SjBPsOWlhFxcYaj4 mfLJ0SW8clMsHdNOkdxbjHMBkwmsx3QFIrCVmtlqlg==
X-Google-Smtp-Source: APXvYqwGg9o8On34WzlwovSjy7z8bw05MBWqSGKM+J1WhcFMcJje0bT8MnOYT8NvkrHKrCovb79OAG7fZLkJeg8yq38=
X-Received: by 2002:ac8:4685:: with SMTP id g5mr45709216qto.242.1554123616015;  Mon, 01 Apr 2019 06:00:16 -0700 (PDT)
MIME-Version: 1.0
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190330045928.GA31550@ucolick.org> <20190330133348.GA20646@ucolick.org> <20190330152948.GI7706@roeckx.be> <CAJm83bB6BF4_Ked5rVRdGmgYECz5gDrb+_7JeOUe1Lmq2ysVQQ@mail.gmail.com> <CANCZdfrbJhVsVJrsw5QRxDWmpHLJdsMMXi=Z=XvJDi1bGvnk=w@mail.gmail.com> <alpine.DEB.2.20.1904011304060.13313@grey.csi.cam.ac.uk>
In-Reply-To: <alpine.DEB.2.20.1904011304060.13313@grey.csi.cam.ac.uk>
From: Warner Losh <imp@bsdimp.com>
Date: Mon, 1 Apr 2019 07:00:04 -0600
Message-ID: <CANCZdfowTxEFgc9khU+CEQU-oJZW4+NUt6y6029M0pOsJCHUmw@mail.gmail.com>
To: Tony Finch <dot@dotat.at>
Cc: Daniel Franke <dfoxfranke@gmail.com>, Steve Allen <sla@ucolick.org>, NTP WG <ntp@ietf.org>, Kurt Roeckx <kurt@roeckx.be>
Content-Type: multipart/alternative; boundary="00000000000011ecdb0585779aa1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/9Gg2004EqjBUw7q2FQBollxdpOU>
Subject: Re: [Ntp] Leap second 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, 01 Apr 2019 13:00:20 -0000

--00000000000011ecdb0585779aa1
Content-Type: text/plain; charset="UTF-8"

On Mon, Apr 1, 2019 at 6:23 AM Tony Finch <dot@dotat.at> wrote:

> Warner Losh <imp@bsdimp.com> wrote:
> >
> > A reference to the POSIX standard would be likely be helpful.
> > http://pubs.opengroup.org/onlinepubs/9699919799/ has the definition, and
> > the reference on all the pages is "The Open Group Base Specifications
> Issue
> > 7, 2018 edition IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008)"
>
> A slightly more direct link is
>
> http://pubs.opengroup.org/onlinepubs/9699919799.2018edition/basedefs/V1_chap04.html#tag_04_16
>
> The frames on the POSIX web site are annoying :-(
>
> > POSIX does not assign a value to the leap second.
>
> I think it does, because I can't see any caveat about plugging
> tm_sec == 60 into the expression for seconds since the epoch.
>

I'd say it doesn't, because it doesn't say what to do with leap seconds.

It also says that mapping of time of day to epoch second is undefined.


> There's also explicit support for leap seconds in struct tm
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html
> although it is not explicitly stated that the expression for seconds since
> the epoch uses the same definitions as the fields in struct tm...
>

It doesn't say explicitly. One can make a reasonable argument that it's a
correct mapping. But other correct mappings are possible because time_t
does not have an explicit encoding for leap seconds.

Which is my point. POSIX does not define it explicitly, so strong
statements about what it does and why are not appropriate.

Warner


> Tony.
> --
> f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
> Channel Islands: Northeast to east 3 to 4, locally 5 in the north until
> mid-afternoon, becoming variable 1 to 3 this evening, then west to
> northwest 3
> to 4 after midnight, increasing 4 to 5 around dawn, locally 6 at times.
> Slight, locally moderate in the north early afternoon, generally increasing
> moderate during Tuesday morning. Occasional haze risk of fog patches near
> french coasts overnight outbreaks of rain spreading from the west by dawn,
> clearing by midday. Moderate to good, locally poor at times, perhaps
> locally
> very poor overnight.
>

--00000000000011ecdb0585779aa1
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 Mon, Apr 1, 2019 at 6:23 AM Tony F=
inch &lt;<a href=3D"mailto:dot@dotat.at">dot@dotat.at</a>&gt; wrote:<br></d=
iv><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bord=
er-left:1px solid rgb(204,204,204);padding-left:1ex">Warner Losh &lt;<a hre=
f=3D"mailto:imp@bsdimp.com" target=3D"_blank">imp@bsdimp.com</a>&gt; wrote:=
<br>
&gt;<br>
&gt; A reference to the POSIX standard would be likely be helpful.<br>
&gt; <a href=3D"http://pubs.opengroup.org/onlinepubs/9699919799/" rel=3D"no=
referrer" target=3D"_blank">http://pubs.opengroup.org/onlinepubs/9699919799=
/</a> has the definition, and<br>
&gt; the reference on all the pages is &quot;The Open Group Base Specificat=
ions Issue<br>
&gt; 7, 2018 edition IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008=
)&quot;<br>
<br>
A slightly more direct link is<br>
<a href=3D"http://pubs.opengroup.org/onlinepubs/9699919799.2018edition/base=
defs/V1_chap04.html#tag_04_16" rel=3D"noreferrer" target=3D"_blank">http://=
pubs.opengroup.org/onlinepubs/9699919799.2018edition/basedefs/V1_chap04.htm=
l#tag_04_16</a><br>
<br>
The frames on the POSIX web site are annoying :-(<br>
<br>
&gt; POSIX does not assign a value to the leap second.<br>
<br>
I think it does, because I can&#39;t see any caveat about plugging<br>
tm_sec =3D=3D 60 into the expression for seconds since the epoch.<br></bloc=
kquote><div><br></div><div>I&#39;d say it doesn&#39;t, because it doesn&#39=
;t say what to do with leap seconds.</div><div><br></div><div>It also says =
that mapping of time of day to epoch second is undefined.</div><div>=C2=A0<=
/div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo=
rder-left:1px solid rgb(204,204,204);padding-left:1ex">
There&#39;s also explicit support for leap seconds in struct tm<br>
<a href=3D"http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.=
html" rel=3D"noreferrer" target=3D"_blank">http://pubs.opengroup.org/online=
pubs/9699919799/basedefs/time.h.html</a><br>
although it is not explicitly stated that the expression for seconds since<=
br>
the epoch uses the same definitions as the fields in struct tm...<br></bloc=
kquote><div><br></div><div>It doesn&#39;t say explicitly. One can make a re=
asonable argument that it&#39;s a correct mapping. But other correct mappin=
gs are possible because time_t does not have an explicit encoding for leap =
seconds.</div><div><br></div><div>Which is my point. POSIX does not define =
it explicitly, so strong statements about what it does and why are not appr=
opriate.</div><div><br></div><div>Warner</div><div>=C2=A0</div><blockquote =
class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px sol=
id rgb(204,204,204);padding-left:1ex">
Tony.<br>
-- <br>
f.anthony.n.finch=C2=A0 &lt;<a href=3D"mailto:dot@dotat.at" target=3D"_blan=
k">dot@dotat.at</a>&gt;=C2=A0 <a href=3D"http://dotat.at/" rel=3D"noreferre=
r" target=3D"_blank">http://dotat.at/</a><br>
Channel Islands: Northeast to east 3 to 4, locally 5 in the north until<br>
mid-afternoon, becoming variable 1 to 3 this evening, then west to northwes=
t 3<br>
to 4 after midnight, increasing 4 to 5 around dawn, locally 6 at times.<br>
Slight, locally moderate in the north early afternoon, generally increasing=
<br>
moderate during Tuesday morning. Occasional haze risk of fog patches near<b=
r>
french coasts overnight outbreaks of rain spreading from the west by dawn,<=
br>
clearing by midday. Moderate to good, locally poor at times, perhaps locall=
y<br>
very poor overnight.<br>
</blockquote></div></div>

--00000000000011ecdb0585779aa1--


From nobody Mon Apr  1 06:03:04 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 1DAC812010E for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 06:03:02 -0700 (PDT)
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 cFGk3evHvzbB for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 06:02:56 -0700 (PDT)
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 244C0120116 for <ntp@ietf.org>; Mon,  1 Apr 2019 06:02:51 -0700 (PDT)
Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8996EC066445; Mon,  1 Apr 2019 13:02: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 D40155D70E; Mon,  1 Apr 2019 13:02:45 +0000 (UTC)
Date: Mon, 1 Apr 2019 15:02:44 +0200
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Daniel Franke <dfoxfranke@gmail.com>
Cc: ntp@ietf.org
Message-ID: <20190401130244.GD12525@localhost>
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 01 Apr 2019 13:02:49 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/Sa3frshBcVqRpidh25meN9wmUK8>
Subject: Re: [Ntp] Leap second 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, 01 Apr 2019 13:03:02 -0000

On Fri, Mar 29, 2019 at 08:57:42PM +0100, Daniel Franke wrote:
> 1.2.  The Leap Indicator field
> 
>    NTP packets include a Leap Indicator field which warns receivers of
>    an upcoming insertion or deletion of a leap second.  [RFC5905]
>    specifies that this field warns "of an impending leap second to be
>    inserted or deleted in the last minute of the current month".

RFC 5905 actually says both "current month" and "current day". I think
the leap field was supposed to be compatible with NTPv3 (it's not
mentioned in the RFC as an incompatible change - unlike the refid
field) and both instances in the document should say "day". I've
submitted an errata for this couple years ago.

>    The Era Number subfield gives the era number of the Receive
>    Timestamp.  The Reference Timestamp always precedes the Receive
>    Timestamp, and the Transmit Timestamp always succeeds the Receive
>    Timestamp.

I don't think this is always the case. It's not required by RFC 5905.

Some reasons for a TX timestamp not being after RX:
- low-precision clock (randomization of low-order bits may, but
  doesn't have to enforce the order of generated timestamps)
- clock stepped between RX and TX (e.g. in symmetric mode)
- very simple server using a single timestamp for both TX and RX
- interleaved mode (in this case it would be unusual to see RX < TX)

>       F: When set, indicates that the Reference Timestamp was captured
>       during a leap second.
> 
>       R: When set, indicates that the Receive Timestamp was captured
>       during a leap second.
> 
>       X: When set, indicates that the Transmit Timestamp was captured
>       during a leap second

This sounds nice, but I'm curious if it can actually be implemented on
current systems. One issue is that the system clock may not be stepped
exactly at 00:00:00.000000000. It may happen few microseconds or even
milliseconds later.

Timestamps captured by ntp_gettime(), which gives also the clock
status code, could be better at least in theory, but it may be much
slower than clock_gettime() and there is no way to get this
information for timestamps captured by the kernel (e.g. with the
SO_TIMESTAMP socket option).

To me it would make more sense to specify that clients should ignore
any measurements that have a timestamp that is too close to the leap
second and servers should respond with "unsynchronized" leap bits
around leap second. Some implementations already do this.

-- 
Miroslav Lichvar


From nobody Mon Apr  1 06:03: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 0AA59120116 for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 06:03:04 -0700 (PDT)
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 fUZlRte2S1OP for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 06:03:02 -0700 (PDT)
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 12D5C120118 for <ntp@ietf.org>; Mon,  1 Apr 2019 06:02:55 -0700 (PDT)
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 EC8E271C0835; Mon,  1 Apr 2019 15:02:37 +0200 (CEST)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de EC8E271C0835
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1554123773; bh=bSkOGs2zVmgLRhXZcgBoxQ3M+PhgtJEXvlJDABrLYr8=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=tyGZJcbf7yDgSkwz3BrzrsnCuD0UwSSr0VGlGW/80Zk6m94w4osrwmQjPWIL1qpKy T3x93hGbOUuD5uB2ebaJ8CWdic5PyPayRW07yPcqnniJyQjpq4OqzsG/NhF3Qcw/JJ sGgAs9Y1PUxacdj+fz0og+B7mJAGGg3SHuru2A0U=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1226, Stamp: 3], Multi: [Enabled, t: (0.000005,0.002685)], BW: [Enabled, t: (0.000006)], RTDA: [Enabled, t: (0.040535), Hit: No, Details: v2.7.31; Id: 15.1i6u29l.1d7cft521.6n6j], 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)); Mon, 1 Apr 2019 15:02:36 +0200
To: Tony Finch <dot@dotat.at>, Kurt Roeckx <kurt@roeckx.be>
Cc: ntp@ietf.org, Daniel Franke <dfoxfranke@gmail.com>
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190330152353.GH7706@roeckx.be> <alpine.DEB.2.20.1904011334490.13313@grey.csi.cam.ac.uk>
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+B9uZqdC0twUuRvRO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Y PyJ6Fn1z/idOOiTYgN+Q7FWRRX0QplyVpSBU4OnD0Gd3KkP+a0+kErokA1Lk3/YCE45VT8J8 8f4YGbRsIkf0xW+Ei0fk3fl9VPOrbTD+gFv+AzbT+Gp1+kElwVKj0VzXy0OC6UIQJ3J1on0l ArkcfPTIMcWxGmfGPw==
Organization: Meinberg Funkuhren, Bad Pyrmont, Germany
Message-ID: <240525c8-2f4c-a132-32ba-e67829dbcf1c@meinberg.de>
Date: Mon, 1 Apr 2019 15:02:36 +0200
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: <alpine.DEB.2.20.1904011334490.13313@grey.csi.cam.ac.uk>
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/eJE79-GmygpWlEQCiPqLcZgzprM>
Subject: Re: [Ntp] Leap second 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, 01 Apr 2019 13:03:04 -0000

Tony Finch wrote:
> Kurt Roeckx <kurt@roeckx.be> wrote:
>>
>> I'm not really sure what you mean here exactly. But I think that
>> for an insert, either the receive or transmit happening during
>> the leap second can cause problems if this extension is not used.
> 
> You need to allow a second either side as well, to allow for different
> ways of implementing the ambiguous timestamps.

This why currently ntpd sends leap bits "unsynchronized" (0x3) back to
clients for a short interval across the leap second.

I very much like this idea since the chance that a client even sees this
is very low, and if it should really happen then it doesn't hurt the
client, even if the client is not so sophisticated to handle the new EFs.

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 Mon Apr  1 09:18:38 2019
Return-Path: <kurt@roeckx.be>
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 7AC6B120347 for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 09:18:36 -0700 (PDT)
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 N18c_laC-ClS for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 09:18:33 -0700 (PDT)
Received: from excelsior.roeckx.be (excelsior.roeckx.be [IPv6:2a05:7300:0:100::3]) (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 1AD71120342 for <ntp@ietf.org>; Mon,  1 Apr 2019 09:18:19 -0700 (PDT)
Received: from intrepid.roeckx.be (localhost [127.0.0.1]) by excelsior.roeckx.be (Postfix) with ESMTP id 0DFCCA8A0C1C; Mon,  1 Apr 2019 16:18:17 +0000 (UTC)
Received: by intrepid.roeckx.be (Postfix, from userid 1000) id D9BBE1FE0B3B; Mon,  1 Apr 2019 18:18:16 +0200 (CEST)
Date: Mon, 1 Apr 2019 18:18:16 +0200
From: Kurt Roeckx <kurt@roeckx.be>
To: Daniel Franke <dfoxfranke@gmail.com>
Cc: ntp@ietf.org
Message-ID: <20190401161816.GN7706@roeckx.be>
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/0bPBSnxX23M7VtQB8WBkPcytrjI>
Subject: Re: [Ntp] Leap second 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, 01 Apr 2019 16:18:37 -0000

One question I have that I can't seem to find the answer for is
which second do you announce during the leap second in NTP.

There was a leap second at 3692217600. Do you send:
3692217599
3692217599 (leap second)
3692217600

Or:

3692217599
3692217600 (leap second)
3692217600

I can see arguments for both ways, and if it's not specified
somewhere yet, I think we need to specify it.


Kurt


From nobody Mon Apr  1 18:15:02 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 261A712006E for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 18:15:01 -0700 (PDT)
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 Xbr-_qvBCQmr for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 18:14:59 -0700 (PDT)
Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (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 D30DD120086 for <ntp@ietf.org>; Mon,  1 Apr 2019 18:14:58 -0700 (PDT)
Received: by mail-lj1-x229.google.com with SMTP id v13so9989355ljk.4 for <ntp@ietf.org>; Mon, 01 Apr 2019 18:14:58 -0700 (PDT)
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=sxbEaguG0B7tdtFrHghLlTD80gmE1m36SGAUvoGymJQ=; b=GJqMbIwtu5zLWnvGQOgZdvhVgzyXYjIah9WvfrPUUm214hbHqpIYAre3Rsntt6owFN iJH1Ff/liVBqubjt0OGv04m84y55NolzPCIymnzY/H6+It7zIpPZd0LLX21kVCGrGhjp ZkjDGrc71mo411u4nMpFLsJIHQkHiwNh9CQk23rgxX9SvwqEwMaLdMmhFc9TFwWCPwZF n62bq5T/5U8XMzP3dolTgZ9JAcTEPKVHPUo1JEol6onNFZjumaMPjA7ifjvzApNGXPU9 vB2cmPMaXl12fOXS0cj8vm0IcNcw78re3ra/dWnCqVgQ4lenNGcKlbp+DYP7J9+Aopfe SefA==
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=sxbEaguG0B7tdtFrHghLlTD80gmE1m36SGAUvoGymJQ=; b=THn5v/kzRYwH89/LUUzMtM/MpLq8TjxVxDB/QWFXHE/pzDrMppDKua6OujYVL182r1 9eXgLv5deBnX6DDC4237QFl1oyecs7Elhs7ERuVpiq1t4DqU7M2/JhJds/kYniPHrvE/ 2nE/Qu5ymyfEJ46DDv8MrzWxFgYQeffWzZV5YzIHQHBCrER3cl3NycfPYojljEbtPFCC BCtzk+D/6xTgwZVSxvT5fy4RPUgc7P/d+TO2HAWJymnagApOSJp68+qfzi3+m19p763h gkvU7JaukXEzPMtcgHUsccDxGL/ytShiiAZwKfIpbFh4WAtEa387uVgWLM+nJ00aTWDh jdJw==
X-Gm-Message-State: APjAAAVvw0Bt49I417PgAL+2sJHJH5ID+0hMrE1+q2LNOcg66919/qDP XXW0dPCfTRhfo3yyPzeYylqQ3S2QTHqAvEdNCH4=
X-Google-Smtp-Source: APXvYqyxOIWgM2huWQoA52ef4H4uRVz8s7ksUiTK/6IV4tkfeVSgrW2zCJ9AP0Ou8A3iRdc57bwRvRVK+z7pdXLTC1E=
X-Received: by 2002:a2e:8446:: with SMTP id u6mr8808753ljh.71.1554167697048; Mon, 01 Apr 2019 18:14:57 -0700 (PDT)
MIME-Version: 1.0
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190330045928.GA31550@ucolick.org> <20190330133348.GA20646@ucolick.org> <20190330152948.GI7706@roeckx.be> <CAJm83bB6BF4_Ked5rVRdGmgYECz5gDrb+_7JeOUe1Lmq2ysVQQ@mail.gmail.com> <CANCZdfrbJhVsVJrsw5QRxDWmpHLJdsMMXi=Z=XvJDi1bGvnk=w@mail.gmail.com> <CAJm83bCRW4dDcZZFL1kqhKyWH_PszGjvmqyyt_E1HgOPw_bktQ@mail.gmail.com> <20190330194428.GA3572@ucolick.org> <20190330235249.GK7706@roeckx.be> <CAJm83bBiY0iEm_TShJyrUepdw=mrDx3HVK+g9Tj7WpR79Knt1Q@mail.gmail.com> <CANCZdfrV_nH9OUCuJn2WoPqONcY+pMa017du4mzoZ_kaZfoZPQ@mail.gmail.com>
In-Reply-To: <CANCZdfrV_nH9OUCuJn2WoPqONcY+pMa017du4mzoZ_kaZfoZPQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
Date: Mon, 1 Apr 2019 18:14:45 -0700
Message-ID: <CACsn0cnCX_qDTKKr=9UO=8auEq0XMDZnhXtyKDYgAgC=FrucBg@mail.gmail.com>
To: Warner Losh <imp@bsdimp.com>
Cc: Daniel Franke <dfoxfranke@gmail.com>, Steve Allen <sla@ucolick.org>, NTP WG <ntp@ietf.org>, Kurt Roeckx <kurt@roeckx.be>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/udjb_cpYiF2oAcQ8Pg15JBujUX0>
Subject: Re: [Ntp] Leap second 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: Tue, 02 Apr 2019 01:15:01 -0000

On Sat, Mar 30, 2019 at 8:02 PM Warner Losh <imp@bsdimp.com> wrote:
>
>
>
> On Sat, Mar 30, 2019, 6:36 PM Daniel Franke <dfoxfranke@gmail.com> wrote:
>>
>> On Sat, Mar 30, 2019 at 7:53 PM Kurt Roeckx <kurt@roeckx.be> wrote:
>> > Anyway, I think we should avoid defining what things like NTP
>> > time, UTC and TAI is. They should all have external definitions
>> > we can just point to.
>>
>> Where the definitions are normative, sure. But as Steve's infodumps in
>> this thread rather vividly illustrate, readers need a comprehensible
>> summary; we can't just incorporate the whole body of relevant
>> standards by reference and leave it at that. The statements in the
>> background section aren't normative, and should be accurate but don't
>> have to be comprehensive. And I won't be worried if, for example, the
>> quoted definition of an SI second gets superseded a month after the
>> RFC is published, because the quote isn't there to be authoritative;
>> it's there to illustrate what such a definition can look like.
>
>
> The current definition doesn't help. A reference to the BIPM with the lat=
est definition doc at the time of publication would suffice. The hard part =
is getting the right pointers.
>
> It doesn't matter what a SI second is. NTP counts them and exchanges that=
 count. They could be anything. People have done GPS times (also SI seconds=
) and UT1 times (solar variable length seconds). They've even done Julian T=
ime NTP.. Now obviously these different time scales won't interoperate, but=
 they are fine so long as everybody exchanging time agrees on the rules for=
 the time scale. That brings us to UTC. It's the odd man out. It ticks at a=
 fixed rate, and occasionally has seconds inserted into it. UTC is related =
to TAI by a stepwise function that always increases or decreases by 1. This=
 increase or decrease historically has always been December or June, but te=
chnically could be at the end of any month. UTC is synchronized to UT1 ever=
y so often based on a set of rules. The current rule is that | DUT1 | must =
remain < .9s so you move it when you think it might exceed .9 before the ne=
xt chance to move it. Other rules are possible, but just like leaps at the =
end of any other month than December or June not likely.

I've tried citing the BIPM definitions, but they are specified in
years, months, days, hours, minutes, seconds, and fraction of second,
while NTP uses seconds and fraction of seconds. Then there is the
whole document access issue.

>
> So, it makes sense to just hit these points, and give pointers to the und=
erlying details, which don't matter.
>
> Warner
>
>> _______________________________________________
>> 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.


From nobody Mon Apr  1 18:35: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 2FD7312006E for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 18:35:08 -0700 (PDT)
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 OXY2HmAq4iQF for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 18:35:05 -0700 (PDT)
Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) (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 15DB9120021 for <ntp@ietf.org>; Mon,  1 Apr 2019 18:35:04 -0700 (PDT)
Received: by mail-qk1-x733.google.com with SMTP id z76so6914356qkb.12 for <ntp@ietf.org>; Mon, 01 Apr 2019 18:35:04 -0700 (PDT)
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=+aI9Vq2kFUhVx6dJxqrMuhZIzMY6jvtAveZ8xgL+0ic=; b=osMXEzDvW6TJkqKKTI/JjJeZ7d9+Grj3XxhNeNodAobC3M782mZCHu6JHIZ2t0Yo5d Szi0pcbpGjVv04ocb8YK/CtrmkcZo2pGUBSzD4RJBwD/RcV2r+XuCSFv5hdKCg+ruIGZ 5hr1KyLZePTKBlKKnhCALFOFUBr996V5PF/wdfuUz1b29P/+3EuzgzoPhjkUDm6hVuOF EEtVDp6l4Lxo8RdI8h0qfouEZuE3kp/JxJalzha4u0cWFGPpgFWjiTdjdyD6exxbBF8/ q74xYbZBQVB7NBISfnsEIokxMcKyooWpMgRWnWFPz+iWH1RRl+pvGsZu8n9Ap9wouUBI W/3Q==
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=+aI9Vq2kFUhVx6dJxqrMuhZIzMY6jvtAveZ8xgL+0ic=; b=mCFHjDMWrqdEoWINyOrIuyPgBPB0XkuPxz1ntBnIXiXnhWvu/Q0FO3dgLlzGLFAQu2 vgnR8X5H3T+UYwwAESIgEDrOGzkh7bmTSflLlFVsXdV6heWqZ8W5lRUIHCUm12yax7wD rpf/fGObTvS4iP1Ec1UQxAxVKhO40yZbriUhD1O/t+7gF+dDoeQg1y5caz5lOrjFFiMS lzfLaLEpQDUx1CYlPz9Sn39JIrQfNzTxl2IBw2wcmboaiaGTVjR0lwnYPo3drZv9lFxn +nMTrC8WIzpc+8RTKeu9nvwjlMzz+6yZ6OymE/QcFiS+OYBQSyPU8iE/OjQTngsCV4VM UHLQ==
X-Gm-Message-State: APjAAAU6c9bLwY3Wme8Am/PGVsRAmM5dBZe3lkCQQsVjsdRAYzcAVgW6 MkxbOnXbh80BIQneUZAnG9WAi8JXq3YK2fSknKnVtQ==
X-Google-Smtp-Source: APXvYqzn15yR/+eiS6nDXZ/sboqSSVeblS3v8ju27C3roVUYipqq2IApE7oXjly/VCKM7OM8zs1aYE/XaHyUhoC7OcM=
X-Received: by 2002:a37:9a54:: with SMTP id c81mr43479375qke.113.1554168903803;  Mon, 01 Apr 2019 18:35:03 -0700 (PDT)
MIME-Version: 1.0
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190330045928.GA31550@ucolick.org> <20190330133348.GA20646@ucolick.org> <20190330152948.GI7706@roeckx.be> <CAJm83bB6BF4_Ked5rVRdGmgYECz5gDrb+_7JeOUe1Lmq2ysVQQ@mail.gmail.com> <CANCZdfrbJhVsVJrsw5QRxDWmpHLJdsMMXi=Z=XvJDi1bGvnk=w@mail.gmail.com> <CAJm83bCRW4dDcZZFL1kqhKyWH_PszGjvmqyyt_E1HgOPw_bktQ@mail.gmail.com> <20190330194428.GA3572@ucolick.org> <20190330235249.GK7706@roeckx.be> <CAJm83bBiY0iEm_TShJyrUepdw=mrDx3HVK+g9Tj7WpR79Knt1Q@mail.gmail.com> <CANCZdfrV_nH9OUCuJn2WoPqONcY+pMa017du4mzoZ_kaZfoZPQ@mail.gmail.com> <CACsn0cnCX_qDTKKr=9UO=8auEq0XMDZnhXtyKDYgAgC=FrucBg@mail.gmail.com>
In-Reply-To: <CACsn0cnCX_qDTKKr=9UO=8auEq0XMDZnhXtyKDYgAgC=FrucBg@mail.gmail.com>
From: Warner Losh <imp@bsdimp.com>
Date: Mon, 1 Apr 2019 19:34:52 -0600
Message-ID: <CANCZdfqfxRjs+4R-VPtPQNexXRjjNrhCx6nZQ3fDpUYuADz+hg@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Cc: Daniel Franke <dfoxfranke@gmail.com>, Steve Allen <sla@ucolick.org>, NTP WG <ntp@ietf.org>, Kurt Roeckx <kurt@roeckx.be>
Content-Type: multipart/alternative; boundary="0000000000006ebf970585822523"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/w2oVvpPYLaZKKfOgeKaRaGJdVQs>
Subject: Re: [Ntp] Leap second 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: Tue, 02 Apr 2019 01:35:08 -0000

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

On Mon, Apr 1, 2019 at 7:14 PM Watson Ladd <watsonbladd@gmail.com> wrote:

> On Sat, Mar 30, 2019 at 8:02 PM Warner Losh <imp@bsdimp.com> wrote:
> >
> >
> >
> > On Sat, Mar 30, 2019, 6:36 PM Daniel Franke <dfoxfranke@gmail.com>
> wrote:
> >>
> >> On Sat, Mar 30, 2019 at 7:53 PM Kurt Roeckx <kurt@roeckx.be> wrote:
> >> > Anyway, I think we should avoid defining what things like NTP
> >> > time, UTC and TAI is. They should all have external definitions
> >> > we can just point to.
> >>
> >> Where the definitions are normative, sure. But as Steve's infodumps in
> >> this thread rather vividly illustrate, readers need a comprehensible
> >> summary; we can't just incorporate the whole body of relevant
> >> standards by reference and leave it at that. The statements in the
> >> background section aren't normative, and should be accurate but don't
> >> have to be comprehensive. And I won't be worried if, for example, the
> >> quoted definition of an SI second gets superseded a month after the
> >> RFC is published, because the quote isn't there to be authoritative;
> >> it's there to illustrate what such a definition can look like.
> >
> >
> > The current definition doesn't help. A reference to the BIPM with the
> latest definition doc at the time of publication would suffice. The hard
> part is getting the right pointers.
> >
> > It doesn't matter what a SI second is. NTP counts them and exchanges
> that count. They could be anything. People have done GPS times (also SI
> seconds) and UT1 times (solar variable length seconds). They've even done
> Julian Time NTP.. Now obviously these different time scales won't
> interoperate, but they are fine so long as everybody exchanging time agrees
> on the rules for the time scale. That brings us to UTC. It's the odd man
> out. It ticks at a fixed rate, and occasionally has seconds inserted into
> it. UTC is related to TAI by a stepwise function that always increases or
> decreases by 1. This increase or decrease historically has always been
> December or June, but technically could be at the end of any month. UTC is
> synchronized to UT1 every so often based on a set of rules. The current
> rule is that | DUT1 | must remain < .9s so you move it when you think it
> might exceed .9 before the next chance to move it. Other rules are
> possible, but just like leaps at the end of any other month than December
> or June not likely.
>
> I've tried citing the BIPM definitions, but they are specified in
> years, months, days, hours, minutes, seconds, and fraction of second,
> while NTP uses seconds and fraction of seconds. Then there is the
> whole document access issue.
>

The definition of an SI seconds has nothing to do with years, etc.

Warner


> >
> > So, it makes sense to just hit these points, and give pointers to the
> underlying details, which don't matter.
> >
> > Warner
> >
> >> _______________________________________________
> >> 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.
>

--0000000000006ebf970585822523
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 Mon, Apr 1, 2019 at 7:14 PM Watson=
 Ladd &lt;<a href=3D"mailto:watsonbladd@gmail.com">watsonbladd@gmail.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 =
Sat, Mar 30, 2019 at 8:02 PM Warner Losh &lt;<a href=3D"mailto:imp@bsdimp.c=
om" target=3D"_blank">imp@bsdimp.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Sat, Mar 30, 2019, 6:36 PM Daniel Franke &lt;<a href=3D"mailto:dfox=
franke@gmail.com" target=3D"_blank">dfoxfranke@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Sat, Mar 30, 2019 at 7:53 PM Kurt Roeckx &lt;<a href=3D"mailto:=
kurt@roeckx.be" target=3D"_blank">kurt@roeckx.be</a>&gt; wrote:<br>
&gt;&gt; &gt; Anyway, I think we should avoid defining what things like NTP=
<br>
&gt;&gt; &gt; time, UTC and TAI is. They should all have external definitio=
ns<br>
&gt;&gt; &gt; we can just point to.<br>
&gt;&gt;<br>
&gt;&gt; Where the definitions are normative, sure. But as Steve&#39;s info=
dumps in<br>
&gt;&gt; this thread rather vividly illustrate, readers need a comprehensib=
le<br>
&gt;&gt; summary; we can&#39;t just incorporate the whole body of relevant<=
br>
&gt;&gt; standards by reference and leave it at that. The statements in the=
<br>
&gt;&gt; background section aren&#39;t normative, and should be accurate bu=
t don&#39;t<br>
&gt;&gt; have to be comprehensive. And I won&#39;t be worried if, for examp=
le, the<br>
&gt;&gt; quoted definition of an SI second gets superseded a month after th=
e<br>
&gt;&gt; RFC is published, because the quote isn&#39;t there to be authorit=
ative;<br>
&gt;&gt; it&#39;s there to illustrate what such a definition can look like.=
<br>
&gt;<br>
&gt;<br>
&gt; The current definition doesn&#39;t help. A reference to the BIPM with =
the latest definition doc at the time of publication would suffice. The har=
d part is getting the right pointers.<br>
&gt;<br>
&gt; It doesn&#39;t matter what a SI second is. NTP counts them and exchang=
es that count. They could be anything. People have done GPS times (also SI =
seconds) and UT1 times (solar variable length seconds). They&#39;ve even do=
ne Julian Time NTP.. Now obviously these different time scales won&#39;t in=
teroperate, but they are fine so long as everybody exchanging time agrees o=
n the rules for the time scale. That brings us to UTC. It&#39;s the odd man=
 out. It ticks at a fixed rate, and occasionally has seconds inserted into =
it. UTC is related to TAI by a stepwise function that always increases or d=
ecreases by 1. This increase or decrease historically has always been Decem=
ber or June, but technically could be at the end of any month. UTC is synch=
ronized to UT1 every so often based on a set of rules. The current rule is =
that | DUT1 | must remain &lt; .9s so you move it when you think it might e=
xceed .9 before the next chance to move it. Other rules are possible, but j=
ust like leaps at the end of any other month than December or June not like=
ly.<br>
<br>
I&#39;ve tried citing the BIPM definitions, but they are specified in<br>
years, months, days, hours, minutes, seconds, and fraction of second,<br>
while NTP uses seconds and fraction of seconds. Then there is the<br>
whole document access issue.<br></blockquote><div><br></div><div>The defini=
tion of an SI seconds has nothing to do with years, etc.</div><div><br></di=
v><div>Warner</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;<br>
&gt; So, it makes sense to just hit these points, and give pointers to the =
underlying details, which don&#39;t matter.<br>
&gt;<br>
&gt; Warner<br>
&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; ntp mailing list<br>
&gt;&gt; <a href=3D"mailto:ntp@ietf.org" target=3D"_blank">ntp@ietf.org</a>=
<br>
&gt;&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/ntp" rel=3D"noref=
errer" target=3D"_blank">https://www.ietf.org/mailman/listinfo/ntp</a><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>
<br>
<br>
<br>
--<br>
&quot;Man is born free, but everywhere he is in chains&quot;.<br>
--Rousseau.<br>
</blockquote></div></div>

--0000000000006ebf970585822523--


From nobody Mon Apr  1 19:06:37 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 9BD431200B8 for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 19:06:35 -0700 (PDT)
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 ZxyeespUcfJC for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 19:06:33 -0700 (PDT)
Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) (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 8112A12006E for <ntp@ietf.org>; Mon,  1 Apr 2019 19:06:33 -0700 (PDT)
Received: by mail-lj1-x236.google.com with SMTP id r24so10072049ljg.3 for <ntp@ietf.org>; Mon, 01 Apr 2019 19:06:33 -0700 (PDT)
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=MoA+qvBW0xEPDp3QL3aTLKKLjK49c/nnRZqx8XWlvYI=; b=bFpbfAHVm4qyS1ey5ZHTQ4NLYVj1W2zxzkwKg9NS0Hk485RZnHv20yHgqEEdORFec/ Qvv4vvSKtKCbRerBplyUM/KVAvrVMh3z6Ev2TRWA6RvDDgfFxIcl6Z5YC5iJLokUBm7z HvmwnAG2BgMShFJvgFsSeMEjrcXRcS2kJ/XQVWwJ3j+Y7uDyhavS6j3Ke/w9fezCe6AI bj1FhhYHDOqdt/cm0mbd900Zvk7AN+gg4OkjMRxxu4/iMmUHYVx8XTsVnN7wUJCd9EwO m0KaYl2YGZDLBzECsNdVXEb6hZLFVSB2/iQ1eqfK+iOuno8LuDBgZnc0LDF4j6UC5vAn XS8Q==
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=MoA+qvBW0xEPDp3QL3aTLKKLjK49c/nnRZqx8XWlvYI=; b=Bdqrffu8kC/TU5JnyVfsncysRUmDMVnWMPd23oK+cmHjJiS4iJJL/MLpUiOt3s6Dcz bNoRI9eu0EUCbkXHtJS2XEMRMoqCWOPirYBSSHAweIQ6W5206w4YSezDIpg8sehtKWE3 6+z3Xw1IKO2PCvn3+Z+WuZhLO+mFJJCp1UlMqas/oyNpn0EH5m4CzO+96cfc4y71HenZ FcGIDK3zyAgkhGgqaAKcIBSrLrio080NqIIOOF5p77bhc26vYPi5Xi63+Lawlj6dLXn8 bugf18jWXkHwug2EFna5dCbodyGnbJG4C9zcVv6AXM7XCTR1qwcI7oAl3XrpCaLyF00W VbLQ==
X-Gm-Message-State: APjAAAUn6qoU7qEYRMVsykrQv7hsa3W5RmonYtt+ODSanpFNFlDo3mWA nX3o//OvH5e4MpdeR857namoiNB2/NDcldvGU1E=
X-Google-Smtp-Source: APXvYqwws6M8cfDY1QUZ3vX7M+hG8u7odw4ywSt5vOKjRDoiF5SADFeY0LvrohYkt2VCfv3YIgZqANNxYcvOkv4j67o=
X-Received: by 2002:a2e:b016:: with SMTP id y22mr36578147ljk.133.1554170791618;  Mon, 01 Apr 2019 19:06:31 -0700 (PDT)
MIME-Version: 1.0
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190330045928.GA31550@ucolick.org> <20190330133348.GA20646@ucolick.org> <20190330152948.GI7706@roeckx.be> <CAJm83bB6BF4_Ked5rVRdGmgYECz5gDrb+_7JeOUe1Lmq2ysVQQ@mail.gmail.com> <CANCZdfrbJhVsVJrsw5QRxDWmpHLJdsMMXi=Z=XvJDi1bGvnk=w@mail.gmail.com> <CAJm83bCRW4dDcZZFL1kqhKyWH_PszGjvmqyyt_E1HgOPw_bktQ@mail.gmail.com> <20190330194428.GA3572@ucolick.org> <20190330235249.GK7706@roeckx.be> <CAJm83bBiY0iEm_TShJyrUepdw=mrDx3HVK+g9Tj7WpR79Knt1Q@mail.gmail.com> <CANCZdfrV_nH9OUCuJn2WoPqONcY+pMa017du4mzoZ_kaZfoZPQ@mail.gmail.com> <CACsn0cnCX_qDTKKr=9UO=8auEq0XMDZnhXtyKDYgAgC=FrucBg@mail.gmail.com> <CANCZdfqfxRjs+4R-VPtPQNexXRjjNrhCx6nZQ3fDpUYuADz+hg@mail.gmail.com>
In-Reply-To: <CANCZdfqfxRjs+4R-VPtPQNexXRjjNrhCx6nZQ3fDpUYuADz+hg@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
Date: Mon, 1 Apr 2019 19:06:19 -0700
Message-ID: <CACsn0cnWrcTeBAvaWpM+p0W-4ftn48BG7jZXZydnrS1qcavyOA@mail.gmail.com>
To: Warner Losh <imp@bsdimp.com>
Cc: Daniel Franke <dfoxfranke@gmail.com>, Steve Allen <sla@ucolick.org>, NTP WG <ntp@ietf.org>, Kurt Roeckx <kurt@roeckx.be>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/xwDLJnpxIXVKWK0hPRQeR8setXM>
Subject: Re: [Ntp] Leap second 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: Tue, 02 Apr 2019 02:06:36 -0000

On Mon, Apr 1, 2019 at 6:35 PM Warner Losh <imp@bsdimp.com> wrote:
>
>
>
> On Mon, Apr 1, 2019 at 7:14 PM Watson Ladd <watsonbladd@gmail.com> wrote:
>>
>> On Sat, Mar 30, 2019 at 8:02 PM Warner Losh <imp@bsdimp.com> wrote:
>> >
>> >
>> >
>> > On Sat, Mar 30, 2019, 6:36 PM Daniel Franke <dfoxfranke@gmail.com> wro=
te:
>> >>
>> >> On Sat, Mar 30, 2019 at 7:53 PM Kurt Roeckx <kurt@roeckx.be> wrote:
>> >> > Anyway, I think we should avoid defining what things like NTP
>> >> > time, UTC and TAI is. They should all have external definitions
>> >> > we can just point to.
>> >>
>> >> Where the definitions are normative, sure. But as Steve's infodumps i=
n
>> >> this thread rather vividly illustrate, readers need a comprehensible
>> >> summary; we can't just incorporate the whole body of relevant
>> >> standards by reference and leave it at that. The statements in the
>> >> background section aren't normative, and should be accurate but don't
>> >> have to be comprehensive. And I won't be worried if, for example, the
>> >> quoted definition of an SI second gets superseded a month after the
>> >> RFC is published, because the quote isn't there to be authoritative;
>> >> it's there to illustrate what such a definition can look like.
>> >
>> >
>> > The current definition doesn't help. A reference to the BIPM with the =
latest definition doc at the time of publication would suffice. The hard pa=
rt is getting the right pointers.
>> >
>> > It doesn't matter what a SI second is. NTP counts them and exchanges t=
hat count. They could be anything. People have done GPS times (also SI seco=
nds) and UT1 times (solar variable length seconds). They've even done Julia=
n Time NTP.. Now obviously these different time scales won't interoperate, =
but they are fine so long as everybody exchanging time agrees on the rules =
for the time scale. That brings us to UTC. It's the odd man out. It ticks a=
t a fixed rate, and occasionally has seconds inserted into it. UTC is relat=
ed to TAI by a stepwise function that always increases or decreases by 1. T=
his increase or decrease historically has always been December or June, but=
 technically could be at the end of any month. UTC is synchronized to UT1 e=
very so often based on a set of rules. The current rule is that | DUT1 | mu=
st remain < .9s so you move it when you think it might exceed .9 before the=
 next chance to move it. Other rules are possible, but just like leaps at t=
he end of any other month than December or June not likely.
>>
>> I've tried citing the BIPM definitions, but they are specified in
>> years, months, days, hours, minutes, seconds, and fraction of second,
>> while NTP uses seconds and fraction of seconds. Then there is the
>> whole document access issue.
>
>
> The definition of an SI seconds has nothing to do with years, etc.

Correct, but UTC timestamps are specified with a representation based
on hours, minutes, and seconds.

>
> Warner
>
>>
>> >
>> > So, it makes sense to just hit these points, and give pointers to the =
underlying details, which don't matter.
>> >
>> > Warner
>> >
>> >> _______________________________________________
>> >> 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.



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


From nobody Mon Apr  1 20:51:43 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 287141200F5 for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 20:51:41 -0700 (PDT)
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 mAkzzfGs-8MA for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 20:51:38 -0700 (PDT)
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 53F3E12001E for <ntp@ietf.org>; Mon,  1 Apr 2019 20:51:38 -0700 (PDT)
Received: by mail-qt1-x82a.google.com with SMTP id w30so13412210qta.8 for <ntp@ietf.org>; Mon, 01 Apr 2019 20:51:38 -0700 (PDT)
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=DowJXNAnvgw5gD4lK39s7QH174JUtxALvNSm5Xj23Ok=; b=VSBr/97UAJZhhX9aSi2EqoNxKhguf5bkKZAVqHsAtZAqCC2ERKvJ5sChiChOQOdUcz pkYm3vjZUNx1jw92i1BXLZ6iLrE2jKI7Jd8Tr77IbxWBqBnWL/JlyfQmdKfVEXr41e8B r3nUMb7laZExbYThc1Sgdjq5/PtsL5pjKiAi1zQndZNGjyOMG5oWko+qOxyAw9gNT6dL ipIjeKFadHdxMpRf/DZbYNaqn20PZOGKHdI42Ijwo6DKcVrlX9uO7wTvZWBnmF0oDLFM r4FmsH3LuZ64cdgsRXRaywEcTkmTn9RtJc6ReNRqFB5WhyFecOpzLTk/I6ijxq09MXiv 0Shg==
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=DowJXNAnvgw5gD4lK39s7QH174JUtxALvNSm5Xj23Ok=; b=XiU26OPgMdMRdt24jQcueheW6tC3athD/ovgEhrbbJ1S2ngwFE1oPDyNkzETtyEThY Wm9fjNUX3ZI1MKUJ/nQZy5Ounz253ZDM40wjFLs6C/05CUQBh6ys919gkLKzGBPTKpf/ sPj6IJMiMvywO72gi1tVlHOAt776ELNYlUDRii3NybJ+s786Mt0u7l3spvZmKJhTXx6V ktviTJH2ZWHx8xhSD8gm7FscYTqFuoj7f3phiwL/vL61Sy1zpwiK8U/vkhxd/CBdhYXQ 0Ix9rEEVbFkcZNSBiqiarNIBBnZYsNhrzrx1Gzn53upPOyvw38K9COKaX/Ykz73Hp0DX XG4Q==
X-Gm-Message-State: APjAAAXC8CButOG5uBZqplqW/16eA5HFnjDOUoIj1pmISLW2WjySHHAP SWyfzWaBIyOXnVVvvpVmjIZeQpu8sUWPqYZZiAZAaA==
X-Google-Smtp-Source: APXvYqwg0M7v21jYTgz4qNZwzO5u407sSVqIyGH6Yj6pHUKnfe49MEW5pdv+gevuSoOynvX84F1LBk/HB2Myq34/yAg=
X-Received: by 2002:ac8:5493:: with SMTP id h19mr54717871qtq.23.1554177097084;  Mon, 01 Apr 2019 20:51:37 -0700 (PDT)
MIME-Version: 1.0
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190330045928.GA31550@ucolick.org> <20190330133348.GA20646@ucolick.org> <20190330152948.GI7706@roeckx.be> <CAJm83bB6BF4_Ked5rVRdGmgYECz5gDrb+_7JeOUe1Lmq2ysVQQ@mail.gmail.com> <CANCZdfrbJhVsVJrsw5QRxDWmpHLJdsMMXi=Z=XvJDi1bGvnk=w@mail.gmail.com> <CAJm83bCRW4dDcZZFL1kqhKyWH_PszGjvmqyyt_E1HgOPw_bktQ@mail.gmail.com> <20190330194428.GA3572@ucolick.org> <20190330235249.GK7706@roeckx.be> <CAJm83bBiY0iEm_TShJyrUepdw=mrDx3HVK+g9Tj7WpR79Knt1Q@mail.gmail.com> <CANCZdfrV_nH9OUCuJn2WoPqONcY+pMa017du4mzoZ_kaZfoZPQ@mail.gmail.com> <CACsn0cnCX_qDTKKr=9UO=8auEq0XMDZnhXtyKDYgAgC=FrucBg@mail.gmail.com> <CANCZdfqfxRjs+4R-VPtPQNexXRjjNrhCx6nZQ3fDpUYuADz+hg@mail.gmail.com> <CACsn0cnWrcTeBAvaWpM+p0W-4ftn48BG7jZXZydnrS1qcavyOA@mail.gmail.com>
In-Reply-To: <CACsn0cnWrcTeBAvaWpM+p0W-4ftn48BG7jZXZydnrS1qcavyOA@mail.gmail.com>
From: Warner Losh <imp@bsdimp.com>
Date: Mon, 1 Apr 2019 21:51:23 -0600
Message-ID: <CANCZdfoS-CZW+u5nCkUyKV=bEXbVxXWAu0HrB87rCh6XbZ0VJw@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Cc: Daniel Franke <dfoxfranke@gmail.com>, Steve Allen <sla@ucolick.org>, NTP WG <ntp@ietf.org>, Kurt Roeckx <kurt@roeckx.be>
Content-Type: multipart/alternative; boundary="000000000000ca45f00585840d94"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/aTBRUp5G7hbLhh2XQ_5YyRLypMY>
Subject: Re: [Ntp] Leap second 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: Tue, 02 Apr 2019 03:51:41 -0000

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

On Mon, Apr 1, 2019, 8:06 PM Watson Ladd <watsonbladd@gmail.com> wrote:

> On Mon, Apr 1, 2019 at 6:35 PM Warner Losh <imp@bsdimp.com> wrote:
> >
> >
> >
> > On Mon, Apr 1, 2019 at 7:14 PM Watson Ladd <watsonbladd@gmail.com>
> wrote:
> >>
> >> On Sat, Mar 30, 2019 at 8:02 PM Warner Losh <imp@bsdimp.com> wrote:
> >> >
> >> >
> >> >
> >> > On Sat, Mar 30, 2019, 6:36 PM Daniel Franke <dfoxfranke@gmail.com>
> wrote:
> >> >>
> >> >> On Sat, Mar 30, 2019 at 7:53 PM Kurt Roeckx <kurt@roeckx.be> wrote:
> >> >> > Anyway, I think we should avoid defining what things like NTP
> >> >> > time, UTC and TAI is. They should all have external definitions
> >> >> > we can just point to.
> >> >>
> >> >> Where the definitions are normative, sure. But as Steve's infodumps
> in
> >> >> this thread rather vividly illustrate, readers need a comprehensible
> >> >> summary; we can't just incorporate the whole body of relevant
> >> >> standards by reference and leave it at that. The statements in the
> >> >> background section aren't normative, and should be accurate but don't
> >> >> have to be comprehensive. And I won't be worried if, for example, the
> >> >> quoted definition of an SI second gets superseded a month after the
> >> >> RFC is published, because the quote isn't there to be authoritative;
> >> >> it's there to illustrate what such a definition can look like.
> >> >
> >> >
> >> > The current definition doesn't help. A reference to the BIPM with the
> latest definition doc at the time of publication would suffice. The hard
> part is getting the right pointers.
> >> >
> >> > It doesn't matter what a SI second is. NTP counts them and exchanges
> that count. They could be anything. People have done GPS times (also SI
> seconds) and UT1 times (solar variable length seconds). They've even done
> Julian Time NTP.. Now obviously these different time scales won't
> interoperate, but they are fine so long as everybody exchanging time agrees
> on the rules for the time scale. That brings us to UTC. It's the odd man
> out. It ticks at a fixed rate, and occasionally has seconds inserted into
> it. UTC is related to TAI by a stepwise function that always increases or
> decreases by 1. This increase or decrease historically has always been
> December or June, but technically could be at the end of any month. UTC is
> synchronized to UT1 every so often based on a set of rules. The current
> rule is that | DUT1 | must remain < .9s so you move it when you think it
> might exceed .9 before the next chance to move it. Other rules are
> possible, but just like leaps at the end of any other month than December
> or June not likely.
> >>
> >> I've tried citing the BIPM definitions, but they are specified in
> >> years, months, days, hours, minutes, seconds, and fraction of second,
> >> while NTP uses seconds and fraction of seconds. Then there is the
> >> whole document access issue.
> >
> >
> > The definition of an SI seconds has nothing to do with years, etc.
>
> Correct, but UTC timestamps are specified with a representation based
> on hours, minutes, and seconds.
>

There are two standards. What defines an si second. And also how UTC labels
the seconds. TF460 is for the latter. I don't have a good reference for the
former, but we don't have to repeat the current SI definition because that
is not relevant to NTP. It just exchanges counts of seconds, whatever they
are, and the number of hyper fine transitions is never an issue for the
protocol. It is an issue if you are building a cesium standard and almost
never at any other time.

The mapping of a number to the UTC labeling of the second is defined in the
NTP RFC. It is relevant because the mapping is unique to NTP. Also relevant
is how UTC labels the seconds, since it is totally weird to the
uninitiated.

Also, what to do around the leap second, where UTC is totally weird and
irregular compared to a traditional time scales is highly relevant. Those
details matter and are of critical importance to implementing NTP in an
interoperable way. Even the basics are worth repeating. All the more
because supposedly obvious details not worth mentioning in prior docs are
done in a diversity of ways.

Although I've been nitpicky, it comes from a decade of doing high precision
time and frequency work and having to interoperate with all the different
choices... I'm so glad to see this get spelled out. Thank you so much for
doing this...

Warner

>
> > Warner
> >
> >>
> >> >
> >> > So, it makes sense to just hit these points, and give pointers to the
> underlying details, which don't matter.
> >> >
> >> > Warner
> >> >
> >> >> _______________________________________________
> >> >> 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.
>
>
>
> --
> "Man is born free, but everywhere he is in chains".
> --Rousseau.
>

--000000000000ca45f00585840d94
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" =
class=3D"gmail_attr">On Mon, Apr 1, 2019, 8:06 PM Watson Ladd &lt;<a href=
=3D"mailto:watsonbladd@gmail.com">watsonbladd@gmail.com</a>&gt; wrote:<br><=
/div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le=
ft:1px #ccc solid;padding-left:1ex">On Mon, Apr 1, 2019 at 6:35 PM Warner L=
osh &lt;<a href=3D"mailto:imp@bsdimp.com" target=3D"_blank" rel=3D"noreferr=
er">imp@bsdimp.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Apr 1, 2019 at 7:14 PM Watson Ladd &lt;<a href=3D"mailto:watso=
nbladd@gmail.com" target=3D"_blank" rel=3D"noreferrer">watsonbladd@gmail.co=
m</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Sat, Mar 30, 2019 at 8:02 PM Warner Losh &lt;<a href=3D"mailto:=
imp@bsdimp.com" target=3D"_blank" rel=3D"noreferrer">imp@bsdimp.com</a>&gt;=
 wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Sat, Mar 30, 2019, 6:36 PM Daniel Franke &lt;<a href=3D"ma=
ilto:dfoxfranke@gmail.com" target=3D"_blank" rel=3D"noreferrer">dfoxfranke@=
gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Sat, Mar 30, 2019 at 7:53 PM Kurt Roeckx &lt;<a href=
=3D"mailto:kurt@roeckx.be" target=3D"_blank" rel=3D"noreferrer">kurt@roeckx=
.be</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt; Anyway, I think we should avoid defining what things=
 like NTP<br>
&gt;&gt; &gt;&gt; &gt; time, UTC and TAI is. They should all have external =
definitions<br>
&gt;&gt; &gt;&gt; &gt; we can just point to.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Where the definitions are normative, sure. But as Steve&#=
39;s infodumps in<br>
&gt;&gt; &gt;&gt; this thread rather vividly illustrate, readers need a com=
prehensible<br>
&gt;&gt; &gt;&gt; summary; we can&#39;t just incorporate the whole body of =
relevant<br>
&gt;&gt; &gt;&gt; standards by reference and leave it at that. The statemen=
ts in the<br>
&gt;&gt; &gt;&gt; background section aren&#39;t normative, and should be ac=
curate but don&#39;t<br>
&gt;&gt; &gt;&gt; have to be comprehensive. And I won&#39;t be worried if, =
for example, the<br>
&gt;&gt; &gt;&gt; quoted definition of an SI second gets superseded a month=
 after the<br>
&gt;&gt; &gt;&gt; RFC is published, because the quote isn&#39;t there to be=
 authoritative;<br>
&gt;&gt; &gt;&gt; it&#39;s there to illustrate what such a definition can l=
ook like.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The current definition doesn&#39;t help. A reference to the B=
IPM with the latest definition doc at the time of publication would suffice=
. The hard part is getting the right pointers.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; It doesn&#39;t matter what a SI second is. NTP counts them an=
d exchanges that count. They could be anything. People have done GPS times =
(also SI seconds) and UT1 times (solar variable length seconds). They&#39;v=
e even done Julian Time NTP.. Now obviously these different time scales won=
&#39;t interoperate, but they are fine so long as everybody exchanging time=
 agrees on the rules for the time scale. That brings us to UTC. It&#39;s th=
e odd man out. It ticks at a fixed rate, and occasionally has seconds inser=
ted into it. UTC is related to TAI by a stepwise function that always incre=
ases or decreases by 1. This increase or decrease historically has always b=
een December or June, but technically could be at the end of any month. UTC=
 is synchronized to UT1 every so often based on a set of rules. The current=
 rule is that | DUT1 | must remain &lt; .9s so you move it when you think i=
t might exceed .9 before the next chance to move it. Other rules are possib=
le, but just like leaps at the end of any other month than December or June=
 not likely.<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve tried citing the BIPM definitions, but they are specified=
 in<br>
&gt;&gt; years, months, days, hours, minutes, seconds, and fraction of seco=
nd,<br>
&gt;&gt; while NTP uses seconds and fraction of seconds. Then there is the<=
br>
&gt;&gt; whole document access issue.<br>
&gt;<br>
&gt;<br>
&gt; The definition of an SI seconds has nothing to do with years, etc.<br>
<br>
Correct, but UTC timestamps are specified with a representation based<br>
on hours, minutes, and seconds.<br></blockquote></div></div><div dir=3D"aut=
o"><br></div><div dir=3D"auto">There are two standards. What defines an si =
second. And also how UTC labels the seconds. TF460 is for the latter. I don=
&#39;t have a good reference for the former, but we don&#39;t have to repea=
t the current SI definition because that is not relevant to NTP. It just ex=
changes counts of seconds, whatever they are, and the number of hyper fine =
transitions is never an issue for the protocol. It is an issue if you are b=
uilding a cesium standard and almost never at any other time.</div><div dir=
=3D"auto"><br></div><div dir=3D"auto">The mapping of a number to the UTC la=
beling of the second is defined in the NTP RFC. It is relevant because the =
mapping is unique to NTP. Also relevant is how UTC labels the seconds, sinc=
e it is totally weird to the uninitiated.=C2=A0</div><div dir=3D"auto"><br>=
</div><div dir=3D"auto">Also, what to do around the leap second, where UTC =
is totally weird and irregular compared to a traditional time scales is hig=
hly relevant. Those details matter and are of critical importance to implem=
enting NTP in an interoperable way. Even the basics are worth repeating. Al=
l the more because supposedly obvious details not worth mentioning in prior=
 docs are done in a diversity of ways.</div><div dir=3D"auto"><br></div><di=
v dir=3D"auto">Although I&#39;ve been nitpicky, it comes from a decade of d=
oing high precision time and frequency work and having to interoperate with=
 all the different choices... I&#39;m so glad to see this get spelled out. =
Thank you so much for doing this...</div><div dir=3D"auto"><br></div><div d=
ir=3D"auto">Warner</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div =
class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&gt;<br>
&gt; Warner<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; So, it makes sense to just hit these points, and give pointer=
s to the underlying details, which don&#39;t matter.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Warner<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; ntp mailing list<br>
&gt;&gt; &gt;&gt; <a href=3D"mailto:ntp@ietf.org" target=3D"_blank" rel=3D"=
noreferrer">ntp@ietf.org</a><br>
&gt;&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/l=
istinfo/ntp</a><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;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; &quot;Man is born free, but everywhere he is in chains&quot;.<br>
&gt;&gt; --Rousseau.<br>
<br>
<br>
<br>
-- <br>
&quot;Man is born free, but everywhere he is in chains&quot;.<br>
--Rousseau.<br>
</blockquote></div></div></div>

--000000000000ca45f00585840d94--


From nobody Mon Apr  1 21:00: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 EB1A112001E for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 21:00:38 -0700 (PDT)
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 m23sw0MS6fma for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 21:00:36 -0700 (PDT)
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 2718C120004 for <ntp@ietf.org>; Mon,  1 Apr 2019 21:00:36 -0700 (PDT)
Received: by mail-qt1-x831.google.com with SMTP id h39so13702890qte.2 for <ntp@ietf.org>; Mon, 01 Apr 2019 21:00:36 -0700 (PDT)
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=CxC7ikmn8rrhI5+ALPqkol1wxYnvdIJBtdqaMsxCxqw=; b=wHHSSphZ+bF8B7GrkzFunfX6qkm+OJyP8c1Ng2EJAbZYfdxH835mY5ae+JoTsvd/O4 2vjCJrEWfCi0hHVwHt6st6NLdX3PqsjfysaTNbXLjkio330K1vechXzuC9HYj1SDtsNR 89HqeXXevsHbPcLUkE0jT/PejxkegzrMIpq5pnnxvKia7K89qSHcVLgZ1Gl84X4XTOLM Sxo6HERZlXbq52V6LgQjnGQyU3ENIxcE3crWh8aTffM7nITRJRXDUs2+f+eIVIygtRF/ TcQLkHDlInSGOVlm3PjgSaLeVO86MM7tg09NLkRe7YdUU0tG7gsKpIP9eay1JQD7/Osa 62kQ==
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=CxC7ikmn8rrhI5+ALPqkol1wxYnvdIJBtdqaMsxCxqw=; b=daXij//ND4p3RfYNb73qlq5KYCgVvMPke38n9IPJgjUakUfwBCOaSjz0yEpmxaRFBz nStNPQ8hjYj0zycZuxXgDepojRGXX08j91gMPdlXrvqpMTXcigMVO2iUgcKakk34nXsN 5ZMkGfCUEN4Dh2yHiaNi0Z17hHm2OzjFiuTewuWESVKdf9BwmpM2jQvT09NAYXjdj4+D SzCsgwkbKo551ERBUx8x/cKpYwr3PSEH10sjd6v8HqA3rtXJyb1/t9cXQOhkWXkyLgWw 1L9jXrJ0TI+rmQETY8X155lwY5v6fLi1DaGZ+9RXL/o4shVua78q1XdWMNRyP10803JV AGgw==
X-Gm-Message-State: APjAAAXeO71Vvx2BvZijc1n/lV3l2BSNxn/I1EPw5m7WIw8Eq/frXZFZ mSyJtse5BqsK17BjTaFW0MkVDu1uzUqTrya3b3rZPA==
X-Google-Smtp-Source: APXvYqwbTgL2F/Z4ObXgshx84jMlP/kWhM5SB72lCkX+6RmBlB3UW+Ih1vMz1Yw7+SvOoTxRb6WPhTflZXxCKASL82c=
X-Received: by 2002:a0c:b609:: with SMTP id f9mr55791317qve.137.1554177635025;  Mon, 01 Apr 2019 21:00:35 -0700 (PDT)
MIME-Version: 1.0
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190330045928.GA31550@ucolick.org> <20190330133348.GA20646@ucolick.org> <20190330152948.GI7706@roeckx.be> <CAJm83bB6BF4_Ked5rVRdGmgYECz5gDrb+_7JeOUe1Lmq2ysVQQ@mail.gmail.com> <CANCZdfrbJhVsVJrsw5QRxDWmpHLJdsMMXi=Z=XvJDi1bGvnk=w@mail.gmail.com> <CAJm83bCRW4dDcZZFL1kqhKyWH_PszGjvmqyyt_E1HgOPw_bktQ@mail.gmail.com> <20190330194428.GA3572@ucolick.org> <20190330235249.GK7706@roeckx.be> <CAJm83bBiY0iEm_TShJyrUepdw=mrDx3HVK+g9Tj7WpR79Knt1Q@mail.gmail.com> <CANCZdfrV_nH9OUCuJn2WoPqONcY+pMa017du4mzoZ_kaZfoZPQ@mail.gmail.com> <CACsn0cnCX_qDTKKr=9UO=8auEq0XMDZnhXtyKDYgAgC=FrucBg@mail.gmail.com> <CANCZdfqfxRjs+4R-VPtPQNexXRjjNrhCx6nZQ3fDpUYuADz+hg@mail.gmail.com> <68233BC0-49DB-4FF9-B8A2-29BB1A5B8ECE@email.arizona.edu>
In-Reply-To: <68233BC0-49DB-4FF9-B8A2-29BB1A5B8ECE@email.arizona.edu>
From: Warner Losh <imp@bsdimp.com>
Date: Mon, 1 Apr 2019 22:00:22 -0600
Message-ID: <CANCZdfqzbqnmOu9dttuMbH7BJzGaQxveKXETwu=F3yzqAgXyYg@mail.gmail.com>
To: "Seaman, Robert Lewis - (rseaman)" <rseaman@email.arizona.edu>
Cc: NTP WG <ntp@ietf.org>, Watson Ladd <watsonbladd@gmail.com>, Steve Allen <sla@ucolick.org>,  Daniel Franke <dfoxfranke@gmail.com>, Kurt Roeckx <kurt@roeckx.be>
Content-Type: multipart/alternative; boundary="000000000000da9f1b0585842dd6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/zyQdeY_TzZLsUloIHPTWoQum3JY>
Subject: Re: [Ntp] Leap second 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: Tue, 02 Apr 2019 04:00:39 -0000

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

On Mon, Apr 1, 2019, 8:27 PM Seaman, Robert Lewis - (rseaman) <
rseaman@email.arizona.edu> wrote:

> On 4/1/19, 6:35 PM, Warner Losh wrote:
>
>
>
> The definition of an SI seconds has nothing to do with years, etc.
>
>
>
> If only this were true. The unnecessary confusion of the SI unit of
> interval time (the =E2=80=9Csecond=E2=80=9D) with the original definition=
 of the second as
> a fraction of a solar day is what has created the lengthy debate about UT=
C
> and leap seconds. This then extends to the definition of the solar synodi=
c
> day (
> http://hanksville.org/futureofutc/preprints/files/28_AAS_13-515_Seaman.pd=
f).
> By choosing the SI unit to masquerade as Universal Time, that is, as a
> fraction of the mean solar day, the precision timing community has
> generated diverse dependencies between what should be independent concept=
s,
> including between the SI unit and the physical concept of year. That many
> of these dependencies are esoteric does not make them thereby less real.
>
>
>
> By all means the SI second could have been =E2=80=9Cset by fixing the num=
erical
> value of the ground state hyperfine splitting frequency of the cesium 133
> atom to be equal to *[say]* exactly *10 000 000 000* when it is expressed
> in the SI unit s=E2=80=931, which is equal to Hz=E2=80=9D (or the corresp=
onding original
> phrasing), but rather the frequency was selected to be *9 192 631 770*
> Hz. This wasn=E2=80=99t a coincidence, but an attempt to obscure the real=
ity that
> atomic time and solar time are two different things. Civil time, and thus
> NTP which conveys it, has dependencies on two different time scales.
>

Historically  the number was chosen to replace the old definition. It is
relevant there. But it's not relevant for the purpose of implementing NTP.

NTP gets it's time from a reference clock, which may care about the details
of the definition, or from a peers, which doesn't. Either way, NTP doesn't
care. It can easily exchange times with a different notion of a second from
SI, so long as all the peers agree to follow the same standard. It could be
GPS which uses SI seconds without leaps. It could have an offset like
exchanging Julian dates. It could even be UT1. This document is not
relevant to any of those. I give them by way of example for why the details
of UTC should be repeated (since they are weird and unique to UTC) and why
the SI second definition need not be (since it will change to be more
precise, but such changes don't matter to NTP since those details don't
affect how you'd write an NTP client or server.)

Warner

> Rob Seaman
>
> University of Arizona
>
>
>
>
>
>
>

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

<div dir=3D"auto"><br><br><div class=3D"gmail_quote" dir=3D"auto"><div dir=
=3D"ltr" class=3D"gmail_attr">On Mon, Apr 1, 2019, 8:27 PM Seaman, Robert L=
ewis - (rseaman) &lt;<a href=3D"mailto:rseaman@email.arizona.edu">rseaman@e=
mail.arizona.edu</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" =
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"m_-9196576545875668540WordSection1">
<p class=3D"MsoNormal">On 4/1/19, 6:35 PM, Warner Losh wrote:<u></u><u></u>=
</p>
<div>
<p class=3D"MsoNormal" style=3D"margin-left:.5in"><u></u>=C2=A0<u></u></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"color:blac=
k">The definition of an SI seconds has nothing to do with years, etc.<u></u=
><u></u></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"color:blac=
k"><u></u>=C2=A0<u></u></span></p>
</div>
<div>
<p class=3D"MsoNormal">If only this were true. The unnecessary confusion of=
 the SI unit of interval time (the =E2=80=9Csecond=E2=80=9D) with the origi=
nal definition of the second as a fraction of a solar day is what has creat=
ed the lengthy debate about UTC and leap seconds.
 This then extends to the definition of the solar synodic day (<a href=3D"h=
ttp://hanksville.org/futureofutc/preprints/files/28_AAS_13-515_Seaman.pdf" =
target=3D"_blank" rel=3D"noreferrer">http://hanksville.org/futureofutc/prep=
rints/files/28_AAS_13-515_Seaman.pdf</a>). By choosing the SI unit to masqu=
erade
 as Universal Time, that is, as a fraction of the mean solar day, the preci=
sion timing community has generated diverse dependencies between what shoul=
d be independent concepts, including between the SI unit and the physical c=
oncept of year. That many of these
 dependencies are esoteric does not make them thereby less real.<u></u><u><=
/u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">By all means the SI second could have been =E2=80=9C=
set by fixing the numerical value of the ground state hyperfine splitting f=
requency of the cesium 133 atom to be equal to
<i>[say]</i> exactly <i>10 000 000 000</i> when it is expressed in the SI u=
nit s=E2=80=931, which is equal to Hz=E2=80=9D (or the corresponding origin=
al phrasing), but rather the frequency was selected to be
<i>9 192 631 770</i> Hz. This wasn=E2=80=99t a coincidence, but an attempt =
to obscure the reality that atomic time and solar time are two different th=
ings. Civil time, and thus NTP which conveys it, has dependencies on two di=
fferent time scales.</p></div></div></div></blockquote></div><div dir=3D"au=
to"><br></div><div dir=3D"auto">Historically=C2=A0 the number was chosen to=
 replace the old definition. It is relevant there. But it&#39;s not relevan=
t for the purpose of implementing NTP.=C2=A0</div><div dir=3D"auto"><br></d=
iv><div dir=3D"auto">NTP gets it&#39;s time from a reference clock, which m=
ay care about the details of the definition, or from a peers, which doesn&#=
39;t. Either way, NTP doesn&#39;t care. It can easily exchange times with a=
 different notion of a second from SI, so long as all the peers agree to fo=
llow the same standard. It could be GPS which uses SI seconds without leaps=
. It could have an offset like exchanging Julian dates. It could even be UT=
1. This document is not relevant to any of those. I give them by way of exa=
mple for why the details of UTC should be repeated (since they are weird an=
d unique to UTC) and why the SI second definition need not be (since it wil=
l change to be more precise, but such changes don&#39;t matter to NTP since=
 those details don&#39;t affect how you&#39;d write an NTP client or server=
.)</div><div dir=3D"auto"><br></div><div dir=3D"auto">Warner</div><div clas=
s=3D"gmail_quote" dir=3D"auto"><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang=3D"=
EN-US" link=3D"#0563C1" vlink=3D"#954F72"><div class=3D"m_-9196576545875668=
540WordSection1"><div>
<p class=3D"MsoNormal">Rob Seaman<u></u><u></u></p>
<p class=3D"MsoNormal">University of Arizona<u></u><u></u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
</div>
</div>

</blockquote></div></div>

--000000000000da9f1b0585842dd6--


From nobody Mon Apr  1 21:14:01 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 68263120004 for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 21:13:59 -0700 (PDT)
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 F4wvz6813wum for <ntp@ietfa.amsl.com>; Mon,  1 Apr 2019 21:13:57 -0700 (PDT)
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 9D6C512001E for <ntp@ietf.org>; Mon,  1 Apr 2019 21:13:57 -0700 (PDT)
Received: by mail-wm1-x342.google.com with SMTP id v14so1816997wmf.2 for <ntp@ietf.org>; Mon, 01 Apr 2019 21:13:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:from:date:message-id:subject:to; bh=tp39uGhy9efxv6yIdVeuXRjoU9ZRBmYTAkoCM2v09IU=; b=XpSwP2/7WP99zGxXlTw1ZgP9vm9ylFMn25QlrD4iSx/+0uu8AhwLHEZwHYs/nec3n8 yOo+s0D4f++ln+50PgsK7x8HifR8Vf+trcQ0goGqs7B6R1qN/ex3GYojHdGiatPOr7Ls ApYuGg2+avUx1UXzJTAN9ElXcvTRnbLqGG69D4AUU632P3ZVwHstRuhEMGp48IXZCRzy 9G6Ftrn6YxjugmBuQ8B6F7NYxkifgkBkvIH36x5nKEjcSQObk0BfhdUNFivgr758fvTT SYbmZImrUT2+VEZPt4xQk0A+AMik3G2ngHSH3aPUIBb1EoQHCcYI8Ovix6Dy0wOp8GdJ OFTA==
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=tp39uGhy9efxv6yIdVeuXRjoU9ZRBmYTAkoCM2v09IU=; b=alVlob7eLNgSlu7vwd9tMx3yAJbNSVD1eBCxY9+5nNFeiozjrfQhIbkoU13UPpZUqt 65oNg2Q1pnK9MgsizGdu5TbpBycJh2pL6TsZcwDXaieOm/VD1eCnWw+FP2h6NtE5zkNA aOGKPic/65uc8k2YApveEmtuLSqHj7KLekxtCn36BvvmeozFO7rx0lpx9389JpcNkws1 vgI3zUxTQWD7OVYIXEf4TaLks5a+KzdfSnFN0N9YVhLEpTIlXEspU2iLVkjlonfWdtxd Rv0d9lWzqbhIyPp/7IFYh+0BSkoVFQ4+V1kyLuTpwtDGkNC0YMcIT9NujWOPQ3Ywbn6U cLSQ==
X-Gm-Message-State: APjAAAWLe8UFP/ijjMHifiz1d9uB+itOzUvVc5YuqicmUoUX0BMibb3/ KQPb4OOAjsrRUbsa9usaZLNL3M5J667YLwu6+oU=
X-Google-Smtp-Source: APXvYqwfKnEtF9VesjJufygnYfnX/bI/P0YFswDATm95FltzWZmPq0VBEv13Ep/n+ubTBzERFOM0aDcnPKPkOiRQ2v4=
X-Received: by 2002:a1c:c00b:: with SMTP id q11mr1981721wmf.38.1554178436017;  Mon, 01 Apr 2019 21:13:56 -0700 (PDT)
MIME-Version: 1.0
From: Tal Mizrahi <tal.mizrahi.phd@gmail.com>
Date: Tue, 2 Apr 2019 07:13:42 +0300
Message-ID: <CABUE3Xmg1vZedhEras54LC6WyChPhcZnqB2s1TNcMaoLbarkdQ@mail.gmail.com>
To: Aanchal Malhotra <aanchal4@bu.edu>, Watson Ladd <watsonbladd@gmail.com>, kristof.teichel@ptb.de, ntp@ietf.org
Content-Type: multipart/alternative; boundary="00000000000098b3fe0585845d7a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/OL4tAukVQDe-bf8a8NGKLAdU-vQ>
Subject: [Ntp] Roughtime and Delay Attacks
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, 02 Apr 2019 04:14:00 -0000

--00000000000098b3fe0585845d7a
Content-Type: text/plain; charset="UTF-8"

Hi Aanchal, Watson, Kristof,

Thanks for a fruitful discussion in Prague.

To summarize our discussion regarding delay attacks: in order to roughly
detect delay attacks, a client has a MAX bound on the RTT. If the RTT of a
request-response handshake exceeds MAX, the client ignores the
corresponding server. Indeed, I believe this helps the client to roughly
detect delay attacks.

Question: in the scenario above, i.e., RTT>MAX, how can the client prove
the server's malfeasance? The cryptographic chain in this example would
indicate that all the servers are well, and the client has no way to prove
that RTT>MAX. What am I missing?

Thanks,
Tal.

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

<div dir=3D"ltr">Hi Aanchal, Watson, Kristof,<div><br></div><div>Thanks for=
 a fruitful discussion in Prague.</div><div><br></div><div>To summarize our=
 discussion regarding delay attacks: in order to roughly detect delay attac=
ks, a client has a MAX bound on the RTT. If the RTT of a request-response h=
andshake exceeds MAX, the client ignores the corresponding server. Indeed, =
I believe this helps the client to roughly detect delay attacks.</div><div>=
<br></div><div>Question: in the scenario above, i.e., RTT&gt;MAX, how can t=
he client prove the server&#39;s malfeasance? The cryptographic chain in th=
is example would indicate that all the servers are well, and the client has=
 no way to prove that RTT&gt;MAX. What am I missing?</div><div><br></div><d=
iv>Thanks,</div><div>Tal.</div></div>

--00000000000098b3fe0585845d7a--


From nobody Tue Apr  2 00:33:08 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 A0A321201DB for <ntp@ietfa.amsl.com>; Tue,  2 Apr 2019 00:33:06 -0700 (PDT)
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 xYlgJF38OY4M for <ntp@ietfa.amsl.com>; Tue,  2 Apr 2019 00:33:03 -0700 (PDT)
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 1274C1201CC for <ntp@ietf.org>; Tue,  2 Apr 2019 00:33:02 -0700 (PDT)
Received: from smtp-hub.bs.ptb.de (smtpint01.bs.ptb.de [141.25.87.32]) by mx1.bs.ptb.de  with ESMTP id x327Wv01029548-x327Wv03029548 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=CAFAIL); Tue, 2 Apr 2019 09:32:57 +0200
Received: from lotus.bs.ptb.de (lotus.bs.ptb.de [141.25.85.200]) by smtp-hub.bs.ptb.de (Postfix) with ESMTPS id 8B9D97A1F9A; Tue,  2 Apr 2019 09:32:56 +0200 (CEST)
In-Reply-To: <CABUE3Xmg1vZedhEras54LC6WyChPhcZnqB2s1TNcMaoLbarkdQ@mail.gmail.com>
References: <CABUE3Xmg1vZedhEras54LC6WyChPhcZnqB2s1TNcMaoLbarkdQ@mail.gmail.com>
To: "Tal Mizrahi" <tal.mizrahi.phd@gmail.com>, ntp@ietf.org
Cc: "Aanchal Malhotra" <aanchal4@bu.edu>, "Watson Ladd" <watsonbladd@gmail.com>
MIME-Version: 1.0
Message-ID: <OFF21B3920.9A750F87-ONC12583D0.002454E6-C12583D0.00297785@ptb.de>
From: kristof.teichel@ptb.de
Date: Tue, 2 Apr 2019 09:33:14 +0200
Content-Type: multipart/alternative; boundary="=_alternative 00297783C12583D0_="
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/a68c82iHccnzjvf9R-GHlfUZ-q0>
Subject: Re: [Ntp] Roughtime and Delay Attacks
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, 02 Apr 2019 07:33:07 -0000

Dies ist eine mehrteilige Nachricht im MIME-Format.
--=_alternative 00297783C12583D0_=
Content-Type: text/plain; charset="US-ASCII"

Hi all,

I think it is essential that we get started on not only a threat analysis, 
but also a clear list of goals and (I believe roughtime is one of the few 
cases where this might make sense) non-goals.
Off the top of my head:
- Roughtime is supposed to do one thing very well: if a server is giving 
out visibly false time (with unconspicuously small RTT), then Roughtime 
can give cryptographic proof of this server's message not fitting into the 
time context of other servers' messages
- Absence of proof of malfeasance is not proof of absence of malfeasance! 
Roughtime should probably not be used as a witness that a server is 
overall "good" (at best that it has been good so far...).
- Roughtime (AFAIK) still needs to include some considerations of RTT in 
its analysis somehow (see below).


Towards that last point and also Tal's question:
A case distinction (perhaps better presented as a table) should be made 
for the relations between "good/bad" offset and "long/short" RTT:
* Good offset at short RTT: proof that (in this instance!!), the server 
behaved well and the association was not attacked
* Good offset at long RTT: could imply either good or bad server 
behavior... certainly an oddity, so potentially report-worthy?
* Bad offset at short RTT: strong proof of server malfeasance, absolutely 
report-worthy and actually the reason why Roughtime was built
* Bad offset at long RTT: no proof of server malfeasance in particular... 
but proof that something bad is going on, and IMO report-worthy

The crux here is that the distinction of "long/short" RTT actually depends 
on the offset.
That is why I'm not convinced that a simple threshold is the way to go for 
RTT handling.
Perhaps attaching the RTT or half the RTT to metadata for every offset 
measurement is better? 
As in: "this server's time messages yielded a measured offset of X with a 
possible error of Y"... and then evaluate this as an interval [X-Y, X+Y] 
and make your "good/bad" criteria also an interval?
Then the measurement interval can be contained in the criteria intervall 
(i.e. everything is good), can lie partly inside and partly outside of it 
(i.e. uncertain result) or they can be completely disjoint (i.e. proof of 
server malfeasance). 
This does cause a good amount of possibly unwanted complexity... but it 
would also be significantly more expressive!


Thanks for the helpful discussion and best regards,
Kristof





Von:    "Tal Mizrahi" <tal.mizrahi.phd@gmail.com>
An:     "Aanchal Malhotra" <aanchal4@bu.edu>, "Watson Ladd" 
<watsonbladd@gmail.com>, kristof.teichel@ptb.de, ntp@ietf.org
Datum:  02.04.2019 06:14
Betreff:        [Ntp] Roughtime and Delay Attacks
Gesendet von:   "ntp" <ntp-bounces@ietf.org>



Hi Aanchal, Watson, Kristof,

Thanks for a fruitful discussion in Prague.

To summarize our discussion regarding delay attacks: in order to roughly 
detect delay attacks, a client has a MAX bound on the RTT. If the RTT of a 
request-response handshake exceeds MAX, the client ignores the 
corresponding server. Indeed, I believe this helps the client to roughly 
detect delay attacks.

Question: in the scenario above, i.e., RTT>MAX, how can the client prove 
the server's malfeasance? The cryptographic chain in this example would 
indicate that all the servers are well, and the client has no way to prove 
that RTT>MAX. What am I missing?

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



--=_alternative 00297783C12583D0_=
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 think it is essential that we get
started on not only a threat analysis, but also a clear list of goals and
(I believe roughtime is one of the few cases where this might make sense)
non-goals.</font>
<br><font size=2 face="sans-serif">Off the top of my head:</font>
<br><font size=2 face="sans-serif">- Roughtime is supposed to do one thing
very well: if a server is giving out visibly false time (with unconspicuously
small RTT), then Roughtime can give cryptographic proof of this server's
message not fitting into the time context of other servers' messages</font>
<br><font size=2 face="sans-serif">- Absence of proof of malfeasance is
not proof of absence of malfeasance! Roughtime should probably not be used
as a witness that a server is overall &quot;good&quot; (at best that it
has been good so far...).</font>
<br><font size=2 face="sans-serif">- Roughtime (AFAIK) still needs to include
some considerations of RTT in its analysis somehow (see below).</font>
<br>
<br>
<br><font size=2 face="sans-serif">Towards that last point and also Tal's
question:</font>
<br><font size=2 face="sans-serif">A case distinction (perhaps better presented
as a table) should be made for the relations between &quot;good/bad&quot;
offset and &quot;long/short&quot; RTT:</font>
<br><font size=2 face="sans-serif">* Good offset at short RTT: proof that
(in this instance!!), the server behaved well and the association was not
attacked</font>
<br><font size=2 face="sans-serif">* Good offset at long RTT: could imply
either good or bad server behavior... certainly an oddity, so potentially
report-worthy?</font>
<br><font size=2 face="sans-serif">* Bad offset at short RTT: strong proof
of server malfeasance, absolutely report-worthy and actually the reason
why Roughtime was built</font>
<br><font size=2 face="sans-serif">* Bad offset at long RTT: no proof of
server malfeasance in particular... but proof that something bad is going
on, and IMO report-worthy</font>
<br>
<br><font size=2 face="sans-serif">The crux here is that the distinction
of &quot;long/short&quot; RTT actually depends on the offset.</font>
<br><font size=2 face="sans-serif">That is why I'm not convinced that a
simple threshold is the way to go for RTT handling.</font>
<br><font size=2 face="sans-serif">Perhaps attaching the RTT or half the
RTT to metadata for every offset measurement is better? </font>
<br><font size=2 face="sans-serif">As in: &quot;this server's time messages
yielded a measured offset of X with a possible error of Y&quot;... and
then evaluate this as an interval [X-Y, X+Y] and make your &quot;good/bad&quot;
criteria also an interval?</font>
<br><font size=2 face="sans-serif">Then the measurement interval can be
contained in the criteria intervall (i.e. everything is good), can lie
partly inside and partly outside of it (i.e. uncertain result) or they
can be completely disjoint (i.e. proof of server malfeasance). </font>
<br><font size=2 face="sans-serif">This does cause a good amount of possibly
unwanted complexity... but it would also be significantly more expressive!</font>
<br>
<br>
<br><font size=2 face="sans-serif">Thanks for the helpful discussion and
best regards,</font>
<br><font size=2 face="sans-serif">Kristof</font>
<br>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;Tal Mizrahi&quot;
&lt;tal.mizrahi.phd@gmail.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">An: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;Aanchal Malhotra&quot;
&lt;aanchal4@bu.edu&gt;, &quot;Watson Ladd&quot; &lt;watsonbladd@gmail.com&gt;,
kristof.teichel@ptb.de, ntp@ietf.org</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">02.04.2019 06:14</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">[Ntp] Roughtime
and Delay Attacks</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Gesendet von: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">&quot;ntp&quot;
&lt;ntp-bounces@ietf.org&gt;</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Hi Aanchal, Watson, Kristof,</font>
<br>
<br><font size=3>Thanks for a fruitful discussion in Prague.</font>
<br>
<br><font size=3>To summarize our discussion regarding delay attacks: in
order to roughly detect delay attacks, a client has a MAX bound on the
RTT. If the RTT of a request-response handshake exceeds MAX, the client
ignores the corresponding server. Indeed, I believe this helps the client
to roughly detect delay attacks.</font>
<br>
<br><font size=3>Question: in the scenario above, i.e., RTT&gt;MAX, how
can the client prove the server's malfeasance? The cryptographic chain
in this example would indicate that all the servers are well, and the client
has no way to prove that RTT&gt;MAX. What am I missing?</font>
<br>
<br><font size=3>Thanks,</font>
<br><font size=3>Tal.</font><tt><font size=2>_______________________________________________<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>
<br>
<br>
--=_alternative 00297783C12583D0_=--


From nobody Tue Apr  2 00:41:26 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 4024C120236 for <ntp@ietfa.amsl.com>; Tue,  2 Apr 2019 00:41:19 -0700 (PDT)
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 mBDz54vf7f6o for <ntp@ietfa.amsl.com>; Tue,  2 Apr 2019 00:41:15 -0700 (PDT)
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 60679120089 for <ntp@ietf.org>; Tue,  2 Apr 2019 00:41:15 -0700 (PDT)
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 259E871C0CC3; Tue,  2 Apr 2019 09:41:01 +0200 (CEST)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de 259E871C0CC3
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1554190873; bh=sgC5nuSJ4Gadh2UgO/XqGvpbquesVhSNaiHuwL+iNHQ=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=hxiq7ytEulvNJBEON41Pb3sOafr0tkMjvjGTsEbtENX7hB5x9HrmKihfS1r4kmm4C bUKiNgCeztE0Tp80hjes5vpLyA5Ia+Fghadw9T8QUhojpndnIoK0BR1KpSij5F2U1V Wqy+TkmKRMS9ZULpRipttk0YLFF3/ezUk+3x3EW4=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1226, Stamp: 3], Multi: [Enabled, t: (0.000005,0.004499)], BW: [Enabled, t: (0.000007)], RTDA: [Enabled, t: (0.033660), Hit: No, Details: v2.7.31; Id: 15.1i6m640.1d7efsvgq.ob9b], 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)); Tue, 2 Apr 2019 09:40:58 +0200
To: Kurt Roeckx <kurt@roeckx.be>
Cc: Daniel Franke <dfoxfranke@gmail.com>, ntp@ietf.org
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190401161816.GN7706@roeckx.be>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Openpgp: preference=signencrypt
Autocrypt: addr=martin.burnicki@meinberg.de; prefer-encrypt=mutual; keydata= xsFNBFUJbhwBEADpbjlFJrR+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K9N29FU3hoU+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: <5590de79-de9e-a576-eee8-10a7df6d0ffb@meinberg.de>
Date: Tue, 2 Apr 2019 09:40:58 +0200
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: <20190401161816.GN7706@roeckx.be>
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/GIWDj_Umtiu6-PrNvW4ZNr5igjo>
Subject: Re: [Ntp] Leap second 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: Tue, 02 Apr 2019 07:41:23 -0000

Kurt Roeckx wrote:
> One question I have that I can't seem to find the answer for is
> which second do you announce during the leap second in NTP.
> 
> There was a leap second at 3692217600. Do you send:
> 3692217599
> 3692217599 (leap second)
> 3692217600
> 
> Or:
> 
> 3692217599
> 3692217600 (leap second)
> 3692217600
> 
> I can see arguments for both ways, and if it's not specified
> somewhere yet, I think we need to specify it.

NTP implementations I've seen just pick up the current system time, so
which timestamps are returned during a leap second depends on the way
the particular operating system handles the leap second, and e.g. ntpd
running on one type of operating system can behave differently than ntpd
running on a different type of operating system.

So the discussion which way is the "better" one had to be done with the
maintainers of the OS kernel clock implementation. ;-)

Letting an NTP daemon decide what kind of timestamp to return would
require that it

1.) uses the adjtimex()/ntp_adjtime() API calls to retrieve a timestamp
including some status information, and then modifies the time stamp in a
preferred way

2.) maintains its own clock beside the system clock so it could handle
the leap second in a different way than the kernel clock

Solution 1.) is normally not used because adjtimex()/ntp_adjtime() take
longer to execute than a simple clock_gettime()

Solution 2.) can cause additional problems if the daemon's internal leap
second handling differs from the leap second handling observed by
applications running on the particular 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 Tue Apr  2 00:53:35 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 45CBB120071 for <ntp@ietfa.amsl.com>; Tue,  2 Apr 2019 00:53:34 -0700 (PDT)
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 jH4GYMiCV3Bs for <ntp@ietfa.amsl.com>; Tue,  2 Apr 2019 00:53:31 -0700 (PDT)
Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (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 18FE312006B for <ntp@ietf.org>; Tue,  2 Apr 2019 00:53:31 -0700 (PDT)
Received: by mail-qt1-x832.google.com with SMTP id x12so14117459qts.7 for <ntp@ietf.org>; Tue, 02 Apr 2019 00:53:31 -0700 (PDT)
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=PBnhuIeyV+/svm7eItLU0HdG/a1xjVWIG0KNUYmELtA=; b=hz3osN9KVDLp5i3bzZUtHlM+G1W1eaH/wCXlDecdeW/YQ5Mp+YlHQvW1LspVHyo1K4 orQBFbKPiTD2NvW1oq5G6+50VmEYSED24RnL00ecu3aQ89LzrnqfQ1EUvC0j4HEWdmv8 4pS3EcqhlSW+j6xdouS28p60PbBGDzzb6xksbIiv1flAou555/8D32KaEs7Lfajb1/gh ad8FEm+pOab0ExPXLuOECAmNt1v/4z5jss+x9xT2NT8zmDXkad73Jb6je/E6lnuveM0l pSYDiKXmpKe2AYoMBvdT3pM/nivbDdGDN9dXSUvRRu9toWH4xQBnrVHxBToKqaH9Ke2j +UWQ==
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=PBnhuIeyV+/svm7eItLU0HdG/a1xjVWIG0KNUYmELtA=; b=Kahky6HQ0WMtKPTn2RN2CEsJjyD6Y9tnlDZfUcEBzUKJa1yASfFP3R5sVj4p5atba/ bZL+oRmSWvEOLQE7qyMJaJEK4ra/qlrt9u3/oprwr4oldczlUo3wbBK3tZuiWi7WsD2P aSgS9uCHEZJbJYGJGvo0Mp+1Q6sXd966LRQY9yGeVWwwJ9i1MkxrBbtTk0vFu8LbKNcf xb5mH/EbBARbwWzxyGhki29QdYj3Qs0lp17kAyo5lo0i/3Xxm+73urtQCHQVv7evGO6+ 1KrmzF3heGE0suKrF30jQjCOgBs2xAVDEt4xntX62iehn47wpwX2bHHVPMCuaqchw+nt zxWg==
X-Gm-Message-State: APjAAAWprNOoyr6yFlGJMlIun9rMHmEjO6B/Auf9TpXtSQyVdDeFscao u8p2pQ/0KGjKVmMXHcUnb9XuweUehJ6rSmTKmvY=
X-Google-Smtp-Source: APXvYqwnE5DvWpPRr9HygdK17lR9h2vTcSOMgb1TTidVXogGnhiPbbhMKKHJJgIbUVfvd0pJeuQYVRnD/w8Y4mu0OR8=
X-Received: by 2002:ac8:17ee:: with SMTP id r43mr55907169qtk.169.1554191610135;  Tue, 02 Apr 2019 00:53:30 -0700 (PDT)
MIME-Version: 1.0
References: <CABUE3Xmg1vZedhEras54LC6WyChPhcZnqB2s1TNcMaoLbarkdQ@mail.gmail.com> <OFF21B3920.9A750F87-ONC12583D0.002454E6-C12583D0.00297785@ptb.de>
In-Reply-To: <OFF21B3920.9A750F87-ONC12583D0.002454E6-C12583D0.00297785@ptb.de>
From: Tal Mizrahi <tal.mizrahi.phd@gmail.com>
Date: Tue, 2 Apr 2019 10:53:19 +0300
Message-ID: <CABUE3X=n1uwynLGzMtOPVM0+8iocgt=yi=SO+6tS6Fd7SubGUw@mail.gmail.com>
To: kristof.teichel@ptb.de
Cc: ntp@ietf.org, Aanchal Malhotra <aanchal4@bu.edu>, Watson Ladd <watsonbladd@gmail.com>
Content-Type: multipart/alternative; boundary="000000000000d5c7f10585876e17"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/YH9yfVvMu5HzwggpILjKrSMYCs4>
Subject: Re: [Ntp] Roughtime and Delay Attacks
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, 02 Apr 2019 07:53:34 -0000

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

Hi Kristof,

Thanks for the clarification.
Your description makes sense, and I believe this analysis MUST be in the
draft, preferably at the beginning of the draft.

Cheers,
Tal.


On Tue, Apr 2, 2019 at 10:33 AM <kristof.teichel@ptb.de> wrote:

> Hi all,
>
> I think it is essential that we get started on not only a threat analysis,
> but also a clear list of goals and (I believe roughtime is one of the few
> cases where this might make sense) non-goals.
> Off the top of my head:
> - Roughtime is supposed to do one thing very well: if a server is giving
> out visibly false time (with unconspicuously small RTT), then Roughtime can
> give cryptographic proof of this server's message not fitting into the time
> context of other servers' messages
> - Absence of proof of malfeasance is not proof of absence of malfeasance!
> Roughtime should probably not be used as a witness that a server is overall
> "good" (at best that it has been good so far...).
> - Roughtime (AFAIK) still needs to include some considerations of RTT in
> its analysis somehow (see below).
>
>
> Towards that last point and also Tal's question:
> A case distinction (perhaps better presented as a table) should be made
> for the relations between "good/bad" offset and "long/short" RTT:
> * Good offset at short RTT: proof that (in this instance!!), the server
> behaved well and the association was not attacked
> * Good offset at long RTT: could imply either good or bad server
> behavior... certainly an oddity, so potentially report-worthy?
> * Bad offset at short RTT: strong proof of server malfeasance, absolutely
> report-worthy and actually the reason why Roughtime was built
> * Bad offset at long RTT: no proof of server malfeasance in particular...
> but proof that something bad is going on, and IMO report-worthy
>
> The crux here is that the distinction of "long/short" RTT actually depends
> on the offset.
> That is why I'm not convinced that a simple threshold is the way to go for
> RTT handling.
> Perhaps attaching the RTT or half the RTT to metadata for every offset
> measurement is better?
> As in: "this server's time messages yielded a measured offset of X with a
> possible error of Y"... and then evaluate this as an interval [X-Y, X+Y]
> and make your "good/bad" criteria also an interval?
> Then the measurement interval can be contained in the criteria intervall
> (i.e. everything is good), can lie partly inside and partly outside of it
> (i.e. uncertain result) or they can be completely disjoint (i.e. proof of
> server malfeasance).
> This does cause a good amount of possibly unwanted complexity... but it
> would also be significantly more expressive!
>
>
> Thanks for the helpful discussion and best regards,
> Kristof
>
>
>
>
>
> Von:        "Tal Mizrahi" <tal.mizrahi.phd@gmail.com>
> An:        "Aanchal Malhotra" <aanchal4@bu.edu>, "Watson Ladd" <
> watsonbladd@gmail.com>, kristof.teichel@ptb.de, ntp@ietf.org
> Datum:        02.04.2019 06:14
> Betreff:        [Ntp] Roughtime and Delay Attacks
> Gesendet von:        "ntp" <ntp-bounces@ietf.org>
> ------------------------------
>
>
>
> Hi Aanchal, Watson, Kristof,
>
> Thanks for a fruitful discussion in Prague.
>
> To summarize our discussion regarding delay attacks: in order to roughly
> detect delay attacks, a client has a MAX bound on the RTT. If the RTT of a
> request-response handshake exceeds MAX, the client ignores the
> corresponding server. Indeed, I believe this helps the client to roughly
> detect delay attacks.
>
> Question: in the scenario above, i.e., RTT>MAX, how can the client prove
> the server's malfeasance? The cryptographic chain in this example would
> indicate that all the servers are well, and the client has no way to prove
> that RTT>MAX. What am I missing?
>
> Thanks,
> Tal._______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
>
>
>

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

<div dir=3D"ltr">Hi Kristof,<div><br></div><div>Thanks for the clarificatio=
n.</div><div>Your description makes sense, and I believe this analysis MUST=
 be in the draft, preferably at the beginning of the draft.<br></div><div><=
br></div><div>Cheers,</div><div>Tal.</div><div><br></div></div><br><div cla=
ss=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Apr 2, 201=
9 at 10:33 AM &lt;<a href=3D"mailto:kristof.teichel@ptb.de">kristof.teichel=
@ptb.de</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-lef=
t:1ex"><font size=3D"2" face=3D"sans-serif">Hi all,</font>
<br>
<br><font size=3D"2" face=3D"sans-serif">I think it is essential that we ge=
t
started on not only a threat analysis, but also a clear list of goals and
(I believe roughtime is one of the few cases where this might make sense)
non-goals.</font>
<br><font size=3D"2" face=3D"sans-serif">Off the top of my head:</font>
<br><font size=3D"2" face=3D"sans-serif">- Roughtime is supposed to do one =
thing
very well: if a server is giving out visibly false time (with unconspicuous=
ly
small RTT), then Roughtime can give cryptographic proof of this server&#39;=
s
message not fitting into the time context of other servers&#39; messages</f=
ont>
<br><font size=3D"2" face=3D"sans-serif">- Absence of proof of malfeasance =
is
not proof of absence of malfeasance! Roughtime should probably not be used
as a witness that a server is overall &quot;good&quot; (at best that it
has been good so far...).</font>
<br><font size=3D"2" face=3D"sans-serif">- Roughtime (AFAIK) still needs to=
 include
some considerations of RTT in its analysis somehow (see below).</font>
<br>
<br>
<br><font size=3D"2" face=3D"sans-serif">Towards that last point and also T=
al&#39;s
question:</font>
<br><font size=3D"2" face=3D"sans-serif">A case distinction (perhaps better=
 presented
as a table) should be made for the relations between &quot;good/bad&quot;
offset and &quot;long/short&quot; RTT:</font>
<br><font size=3D"2" face=3D"sans-serif">* Good offset at short RTT: proof =
that
(in this instance!!), the server behaved well and the association was not
attacked</font>
<br><font size=3D"2" face=3D"sans-serif">* Good offset at long RTT: could i=
mply
either good or bad server behavior... certainly an oddity, so potentially
report-worthy?</font>
<br><font size=3D"2" face=3D"sans-serif">* Bad offset at short RTT: strong =
proof
of server malfeasance, absolutely report-worthy and actually the reason
why Roughtime was built</font>
<br><font size=3D"2" face=3D"sans-serif">* Bad offset at long RTT: no proof=
 of
server malfeasance in particular... but proof that something bad is going
on, and IMO report-worthy</font>
<br>
<br><font size=3D"2" face=3D"sans-serif">The crux here is that the distinct=
ion
of &quot;long/short&quot; RTT actually depends on the offset.</font>
<br><font size=3D"2" face=3D"sans-serif">That is why I&#39;m not convinced =
that a
simple threshold is the way to go for RTT handling.</font>
<br><font size=3D"2" face=3D"sans-serif">Perhaps attaching the RTT or half =
the
RTT to metadata for every offset measurement is better? </font>
<br><font size=3D"2" face=3D"sans-serif">As in: &quot;this server&#39;s tim=
e messages
yielded a measured offset of X with a possible error of Y&quot;... and
then evaluate this as an interval [X-Y, X+Y] and make your &quot;good/bad&q=
uot;
criteria also an interval?</font>
<br><font size=3D"2" face=3D"sans-serif">Then the measurement interval can =
be
contained in the criteria intervall (i.e. everything is good), can lie
partly inside and partly outside of it (i.e. uncertain result) or they
can be completely disjoint (i.e. proof of server malfeasance). </font>
<br><font size=3D"2" face=3D"sans-serif">This does cause a good amount of p=
ossibly
unwanted complexity... but it would also be significantly more expressive!<=
/font>
<br>
<br>
<br><font size=3D"2" face=3D"sans-serif">Thanks for the helpful discussion =
and
best regards,</font>
<br><font size=3D"2" face=3D"sans-serif">Kristof</font>
<br>
<br>
<br>
<br>
<br>
<br><font size=3D"1" color=3D"#5f5f5f" face=3D"sans-serif">Von: =C2=A0 =C2=
=A0 =C2=A0
=C2=A0</font><font size=3D"1" face=3D"sans-serif">&quot;Tal Mizrahi&quot;
&lt;<a href=3D"mailto:tal.mizrahi.phd@gmail.com" target=3D"_blank">tal.mizr=
ahi.phd@gmail.com</a>&gt;</font>
<br><font size=3D"1" color=3D"#5f5f5f" face=3D"sans-serif">An: =C2=A0 =C2=
=A0 =C2=A0
=C2=A0</font><font size=3D"1" face=3D"sans-serif">&quot;Aanchal Malhotra&qu=
ot;
&lt;<a href=3D"mailto:aanchal4@bu.edu" target=3D"_blank">aanchal4@bu.edu</a=
>&gt;, &quot;Watson Ladd&quot; &lt;<a href=3D"mailto:watsonbladd@gmail.com"=
 target=3D"_blank">watsonbladd@gmail.com</a>&gt;,
<a href=3D"mailto:kristof.teichel@ptb.de" target=3D"_blank">kristof.teichel=
@ptb.de</a>, <a href=3D"mailto:ntp@ietf.org" target=3D"_blank">ntp@ietf.org=
</a></font>
<br><font size=3D"1" color=3D"#5f5f5f" face=3D"sans-serif">Datum: =C2=A0 =
=C2=A0 =C2=A0
=C2=A0</font><font size=3D"1" face=3D"sans-serif">02.04.2019 06:14</font>
<br><font size=3D"1" color=3D"#5f5f5f" face=3D"sans-serif">Betreff: =C2=A0 =
=C2=A0
=C2=A0 =C2=A0</font><font size=3D"1" face=3D"sans-serif">[Ntp] Roughtime
and Delay Attacks</font>
<br><font size=3D"1" color=3D"#5f5f5f" face=3D"sans-serif">Gesendet von: =
=C2=A0 =C2=A0
=C2=A0 =C2=A0</font><font size=3D"1" face=3D"sans-serif">&quot;ntp&quot;
&lt;<a href=3D"mailto:ntp-bounces@ietf.org" target=3D"_blank">ntp-bounces@i=
etf.org</a>&gt;</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3D"3">Hi Aanchal, Watson, Kristof,</font>
<br>
<br><font size=3D"3">Thanks for a fruitful discussion in Prague.</font>
<br>
<br><font size=3D"3">To summarize our discussion regarding delay attacks: i=
n
order to roughly detect delay attacks, a client has a MAX bound on the
RTT. If the RTT of a request-response handshake exceeds MAX, the client
ignores the corresponding server. Indeed, I believe this helps the client
to roughly detect delay attacks.</font>
<br>
<br><font size=3D"3">Question: in the scenario above, i.e., RTT&gt;MAX, how
can the client prove the server&#39;s malfeasance? The cryptographic chain
in this example would indicate that all the servers are well, and the clien=
t
has no way to prove that RTT&gt;MAX. What am I missing?</font>
<br>
<br><font size=3D"3">Thanks,</font>
<br><font size=3D"3">Tal.</font><tt><font size=3D"2">______________________=
_________________________<br>
ntp mailing list<br>
<a href=3D"mailto:ntp@ietf.org" target=3D"_blank">ntp@ietf.org</a><br>
</font></tt><a href=3D"https://www.ietf.org/mailman/listinfo/ntp" target=3D=
"_blank"><tt><font size=3D"2">https://www.ietf.org/mailman/listinfo/ntp</fo=
nt></tt></a><tt><font size=3D"2"><br>
</font></tt>
<br>
<br></blockquote></div>

--000000000000d5c7f10585876e17--


From nobody Tue Apr  2 08:27:01 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 A6FFA1200E3 for <ntp@ietfa.amsl.com>; Tue,  2 Apr 2019 08:26:59 -0700 (PDT)
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, 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 Be6LWUZeF27i for <ntp@ietfa.amsl.com>; Tue,  2 Apr 2019 08:26:57 -0700 (PDT)
Received: from ppsw-43.csi.cam.ac.uk (ppsw-43.csi.cam.ac.uk [131.111.8.143]) (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 363501200B6 for <ntp@ietf.org>; Tue,  2 Apr 2019 08:26:57 -0700 (PDT)
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]:50372) by ppsw-43.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.136]:25) with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1hBLJO-0003nk-nd (Exim 4.91) (return-path <dot@dotat.at>); Tue, 02 Apr 2019 16:26:54 +0100
Date: Tue, 2 Apr 2019 16:26:53 +0100
From: Tony Finch <dot@dotat.at>
To: kristof.teichel@ptb.de
cc: Tal Mizrahi <tal.mizrahi.phd@gmail.com>, ntp@ietf.org,  Aanchal Malhotra <aanchal4@bu.edu>, Watson Ladd <watsonbladd@gmail.com>
In-Reply-To: <OFF21B3920.9A750F87-ONC12583D0.002454E6-C12583D0.00297785@ptb.de>
Message-ID: <alpine.DEB.2.20.1904021625120.18432@grey.csi.cam.ac.uk>
References: <CABUE3Xmg1vZedhEras54LC6WyChPhcZnqB2s1TNcMaoLbarkdQ@mail.gmail.com> <OFF21B3920.9A750F87-ONC12583D0.002454E6-C12583D0.00297785@ptb.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/2IYKBG8gHcH5P7VDGGDZbG8nAQc>
Subject: Re: [Ntp] Roughtime and Delay Attacks
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, 02 Apr 2019 15:27:00 -0000

kristof.teichel@ptb.de <kristof.teichel@ptb.de> wrote:

> - Roughtime (AFAIK) still needs to include some considerations of RTT in
> its analysis somehow (see below).

Maybe roughtime clients should use the Chronos clock selection algorithm,
because it is supposed to be resistant to delay attacks.

https://tools.ietf.org/html/draft-schiff-ntp-chronos-02

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
North Foreland to Selsey Bill: Westerly or southwesterly 5 or 6, becoming
variable 3 or 4. Slight, occasionally moderate at first. Rain or showers,
occasionally thundery. Good, occasionally moderate.


From nobody Tue Apr  2 10:04:27 2019
Return-Path: <kurt@roeckx.be>
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 5B7651201EF for <ntp@ietfa.amsl.com>; Tue,  2 Apr 2019 10:04:18 -0700 (PDT)
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, RCVD_IN_DNSWL_NONE=-0.0001, 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 kIKkV3lydDmk for <ntp@ietfa.amsl.com>; Tue,  2 Apr 2019 10:04:15 -0700 (PDT)
Received: from excelsior.roeckx.be (excelsior.roeckx.be [195.234.45.115]) (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 3028E12022D for <ntp@ietf.org>; Tue,  2 Apr 2019 10:04:15 -0700 (PDT)
Received: from intrepid.roeckx.be (localhost [127.0.0.1]) by excelsior.roeckx.be (Postfix) with ESMTP id 86EDCA8A012A; Tue,  2 Apr 2019 17:04:12 +0000 (UTC)
Received: by intrepid.roeckx.be (Postfix, from userid 1000) id 3613A1FE0B44; Tue,  2 Apr 2019 19:04:11 +0200 (CEST)
Date: Tue, 2 Apr 2019 19:04:11 +0200
From: Kurt Roeckx <kurt@roeckx.be>
To: Martin Burnicki <martin.burnicki@meinberg.de>
Cc: Daniel Franke <dfoxfranke@gmail.com>, ntp@ietf.org
Message-ID: <20190402170411.GQ7706@roeckx.be>
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190401161816.GN7706@roeckx.be> <5590de79-de9e-a576-eee8-10a7df6d0ffb@meinberg.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <5590de79-de9e-a576-eee8-10a7df6d0ffb@meinberg.de>
User-Agent: Mutt/1.10.1 (2018-07-13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/dzSOefPVzY2ELu5-yH0nHm0TL0U>
Subject: Re: [Ntp] Leap second 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: Tue, 02 Apr 2019 17:04:26 -0000

On Tue, Apr 02, 2019 at 09:40:58AM +0200, Martin Burnicki wrote:
> Kurt Roeckx wrote:
> > One question I have that I can't seem to find the answer for is
> > which second do you announce during the leap second in NTP.
> > 
> > There was a leap second at 3692217600. Do you send:
> > 3692217599
> > 3692217599 (leap second)
> > 3692217600
> > 
> > Or:
> > 
> > 3692217599
> > 3692217600 (leap second)
> > 3692217600
> > 
> > I can see arguments for both ways, and if it's not specified
> > somewhere yet, I think we need to specify it.
> 
> NTP implementations I've seen just pick up the current system time, so
> which timestamps are returned during a leap second depends on the way
> the particular operating system handles the leap second, and e.g. ntpd
> running on one type of operating system can behave differently than ntpd
> running on a different type of operating system.
> 
> So the discussion which way is the "better" one had to be done with the
> maintainers of the OS kernel clock implementation. ;-)
> 
> Letting an NTP daemon decide what kind of timestamp to return would
> require that it
> 
> 1.) uses the adjtimex()/ntp_adjtime() API calls to retrieve a timestamp
> including some status information, and then modifies the time stamp in a
> preferred way
> 
> 2.) maintains its own clock beside the system clock so it could handle
> the leap second in a different way than the kernel clock
> 
> Solution 1.) is normally not used because adjtimex()/ntp_adjtime() take
> longer to execute than a simple clock_gettime()
> 
> Solution 2.) can cause additional problems if the daemon's internal leap
> second handling differs from the leap second handling observed by
> applications running on the particular system.

One option would be the allow both the cases, but I still think
that should get documented.

But to be compliant with the current draft, you would need to know
that a timestamp is within the leap second.

It can be that with the current kernel APIs, this is very hard to
properly do, but I don't see that as a problem of the draft.

Assuming it's not possible to properly implement the bits
indicating that a timestamp is within the leap second, maybe the
draft should mention that in that case you should either not reply
around the leap second or return that you're not synchronized.


Kurt


From nobody Tue Apr  2 23:42:19 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 9F9F91200D7 for <ntp@ietfa.amsl.com>; Tue,  2 Apr 2019 23:42:18 -0700 (PDT)
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 nxF_tyYF58_4 for <ntp@ietfa.amsl.com>; Tue,  2 Apr 2019 23:42:15 -0700 (PDT)
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 1EC3E120059 for <ntp@ietf.org>; Tue,  2 Apr 2019 23:42:14 -0700 (PDT)
Received: from smtp-hub.bs.ptb.de (smtpint01.bs.ptb.de [141.25.87.32]) by mx1.bs.ptb.de  with ESMTP id x336g696031344-x336g698031344 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=CAFAIL); Wed, 3 Apr 2019 08:42:06 +0200
Received: from lotus.bs.ptb.de (lotus.bs.ptb.de [141.25.85.200]) by smtp-hub.bs.ptb.de (Postfix) with ESMTPS id 44D397A36B8; Wed,  3 Apr 2019 08:42:05 +0200 (CEST)
In-Reply-To: <alpine.DEB.2.20.1904021625120.18432@grey.csi.cam.ac.uk>
References: <CABUE3Xmg1vZedhEras54LC6WyChPhcZnqB2s1TNcMaoLbarkdQ@mail.gmail.com> <OFF21B3920.9A750F87-ONC12583D0.002454E6-C12583D0.00297785@ptb.de> <alpine.DEB.2.20.1904021625120.18432@grey.csi.cam.ac.uk>
To: ntp@ietf.org
Cc: "Aanchal Malhotra" <aanchal4@bu.edu>, "Tal Mizrahi" <tal.mizrahi.phd@gmail.com>, "Watson Ladd" <watsonbladd@gmail.com>, "Tony Finch" <dot@dotat.at>
MIME-Version: 1.0
Message-ID: <OFD1EBEBD5.5B611EB8-ONC12583D1.0023D222-C12583D1.0024CF9E@ptb.de>
From: kristof.teichel@ptb.de
Date: Wed, 3 Apr 2019 08:42:23 +0200
Content-Type: multipart/alternative; boundary="=_alternative 0024CF9CC12583D1_="
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/evRfEBZyCyj9SnL5GCsm0nKyw7M>
Subject: Re: [Ntp] Roughtime and Delay Attacks
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, 03 Apr 2019 06:42:19 -0000

Dies ist eine mehrteilige Nachricht im MIME-Format.
--=_alternative 0024CF9CC12583D1_=
Content-Type: text/plain; charset="US-ASCII"

Hey Tony and everyone,

I believe this idea sadly cannot work, due to the difference contexts of 
how Chronos resists delay attacks versus how delay attacks potentially 
affect the workings of Roughtime.
Chronos mitigates delay attacks (and, actually, all kinds of attacks or 
malfeasance) by evaluating time signals from many sources and using this 
large collection of data to make smart estimations about the true time.
Roughtime deliberately looks at the associations to single server and 
tries to judge whether (and potentially prove that) each single given 
server is showing signs of malfeasance.
Their aims and scopes are so different (looking at the whole system to 
find the best estimation for a global truth versusbasically performing 
audits of singular parts of said system) - I just don't see how to combine 
or borrow techniques in the way you suggest.

Best regards,
Kristof




Von:    "Tony Finch" <dot@dotat.at>
An:     kristof.teichel@ptb.de
Kopie:  "Tal Mizrahi" <tal.mizrahi.phd@gmail.com>, ntp@ietf.org, "Aanchal 
Malhotra" <aanchal4@bu.edu>, "Watson Ladd" <watsonbladd@gmail.com>
Datum:  02.04.2019 17:52
Betreff:        Re: [Ntp] Roughtime and Delay Attacks



kristof.teichel@ptb.de <kristof.teichel@ptb.de> wrote:

> - Roughtime (AFAIK) still needs to include some considerations of RTT in
> its analysis somehow (see below).

Maybe roughtime clients should use the Chronos clock selection algorithm,
because it is supposed to be resistant to delay attacks.

https://tools.ietf.org/html/draft-schiff-ntp-chronos-02

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
North Foreland to Selsey Bill: Westerly or southwesterly 5 or 6, becoming
variable 3 or 4. Slight, occasionally moderate at first. Rain or showers,
occasionally thundery. Good, occasionally moderate.



--=_alternative 0024CF9CC12583D1_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">Hey Tony and everyone,</font>
<br>
<br><font size=2 face="sans-serif">I believe this idea sadly cannot work,
due to the difference contexts of how Chronos resists delay attacks versus
how delay attacks potentially affect the workings of Roughtime.</font>
<br><font size=2 face="sans-serif">Chronos mitigates delay attacks (and,
actually, all kinds of attacks or malfeasance) by evaluating time signals
from many sources and using this large collection of data to make smart
estimations about the true time.</font>
<br><font size=2 face="sans-serif">Roughtime deliberately looks at the
associations to single server and tries to judge whether (and potentially
prove that) each single given server is showing signs of malfeasance.</font>
<br><font size=2 face="sans-serif">Their aims and scopes are so different
(looking at the whole system to find the best estimation for a global truth
versusbasically performing audits of singular parts of said system) - I
just don't see how to combine or borrow techniques in the way you suggest.</font>
<br>
<br><font size=2 face="sans-serif">Best regards,</font>
<br><font size=2 face="sans-serif">Kristof</font>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;Tony Finch&quot;
&lt;dot@dotat.at&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">An: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">kristof.teichel@ptb.de</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Kopie: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;Tal Mizrahi&quot;
&lt;tal.mizrahi.phd@gmail.com&gt;, ntp@ietf.org, &quot;Aanchal Malhotra&quot;
&lt;aanchal4@bu.edu&gt;, &quot;Watson Ladd&quot; &lt;watsonbladd@gmail.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">02.04.2019 17:52</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [Ntp] Roughtime
and Delay Attacks</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>kristof.teichel@ptb.de &lt;kristof.teichel@ptb.de&gt;
wrote:<br>
<br>
&gt; - Roughtime (AFAIK) still needs to include some considerations of
RTT in<br>
&gt; its analysis somehow (see below).<br>
<br>
Maybe roughtime clients should use the Chronos clock selection algorithm,<br>
because it is supposed to be resistant to delay attacks.<br>
<br>
</font></tt><a href="https://tools.ietf.org/html/draft-schiff-ntp-chronos-02"><tt><font size=2>https://tools.ietf.org/html/draft-schiff-ntp-chronos-02</font></tt></a><tt><font size=2><br>
<br>
Tony.<br>
-- <br>
f.anthony.n.finch &nbsp;&lt;dot@dotat.at&gt; &nbsp;</font></tt><a href=http://dotat.at/><tt><font size=2>http://dotat.at/</font></tt></a><tt><font size=2><br>
North Foreland to Selsey Bill: Westerly or southwesterly 5 or 6, becoming<br>
variable 3 or 4. Slight, occasionally moderate at first. Rain or showers,<br>
occasionally thundery. Good, occasionally moderate.<br>
</font></tt>
<br>
<br>
--=_alternative 0024CF9CC12583D1_=--


From nobody Wed Apr  3 00:23:01 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 76027120086 for <ntp@ietfa.amsl.com>; Wed,  3 Apr 2019 00:22:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.034
X-Spam-Level: *
X-Spam-Status: No, score=1.034 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_DYNAMIC_IPADDR=1.951, RDNS_DYNAMIC=0.982, 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 oj0RMm18P-kB for <ntp@ietfa.amsl.com>; Wed,  3 Apr 2019 00:22:57 -0700 (PDT)
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 4C44412001E for <ntp@ietf.org>; Wed,  3 Apr 2019 00:22:56 -0700 (PDT)
Received: from shuksan (localhost [127.0.0.1]) by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id EA16E40605C; Wed,  3 Apr 2019 00:22:55 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: ntp@ietf.org
cc: Hal Murray <hmurray@megapathdsl.net>
From: Hal Murray <hmurray@megapathdsl.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 03 Apr 2019 00:22:55 -0700
Message-Id: <20190403072255.EA16E40605C@ip-64-139-1-69.sjc.megapath.net>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/0RQ_GsBsqropGCIiYqlwx8x7Q3c>
Subject: Re: [Ntp] Roughtime and Delay Attacks
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, 03 Apr 2019 07:22:59 -0000

kristof.teichel@ptb.de said:
> Roughtime deliberately looks at the associations to single server and  tries
> to judge whether (and potentially prove that) each single given  server is
> showing signs of malfeasance. 

You can't do that unless you know your local time is accurate.  You probably 
need to know how accurate.

Even if you have something like GPS, you need to be suspicious of it.  There 
have been many firmware bugs, and a 1024 week rollover is coming up this 
weekend.


-- 
These are my opinions.  I hate spam.




From nobody Wed Apr  3 01:03:46 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 7F299120164; Wed,  3 Apr 2019 01:03:45 -0700 (PDT)
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 LyjEVAW9tgdD; Wed,  3 Apr 2019 01:03:43 -0700 (PDT)
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 3B3651201A3; Wed,  3 Apr 2019 01:03:43 -0700 (PDT)
Received: from smtp-hub.bs.ptb.de (smtpint01.bs.ptb.de [141.25.87.32]) by mx1.bs.ptb.de  with ESMTP id x3383ecY009692-x3383eca009692 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=CAFAIL); Wed, 3 Apr 2019 10:03:40 +0200
Received: from lotus.bs.ptb.de (lotus.bs.ptb.de [141.25.85.200]) by smtp-hub.bs.ptb.de (Postfix) with ESMTPS id A9FBD7A3A8F; Wed,  3 Apr 2019 10:03:38 +0200 (CEST)
In-Reply-To: <20190403072255.EA16E40605C@ip-64-139-1-69.sjc.megapath.net>
References: <20190403072255.EA16E40605C@ip-64-139-1-69.sjc.megapath.net>
To: "Hal Murray" <hmurray@megapathdsl.net>
Cc: ntp@ietf.org, "ntp" <ntp-bounces@ietf.org>
MIME-Version: 1.0
Message-ID: <OF1EB096AA.8F10FC47-ONC12583D1.002B338D-C12583D1.002C46D5@ptb.de>
From: kristof.teichel@ptb.de
Date: Wed, 3 Apr 2019 10:03:56 +0200
Content-Type: multipart/alternative; boundary="=_alternative 002C46D3C12583D1_="
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/w_89ZHpNRwjv1njWvS5z9Qq9moU>
Subject: Re: [Ntp] Roughtime and Delay Attacks
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, 03 Apr 2019 08:03:46 -0000

Dies ist eine mehrteilige Nachricht im MIME-Format.
--=_alternative 002C46D3C12583D1_=
Content-Type: text/plain; charset="US-ASCII"

Perhaps I should have been more precise in my description.
Roughtime does look at associations with many different servers, and from 
that tries to find the "outliers" that suggest server malfeasance.
Its criterion for ruling "server X is bad" is not discrepancy with the 
client's local time, but examples where timestamps from one server visibly 
don't fit into the same timing context with timestamps from a majority of 
other servers.
Specifically, it does not have to rely on local time.

But I think all that is pretty far beside the point (the point being that 
the models of Chronos and Roughtime don't fit together well enough to 
transfer techniques against delay attacks from Chronos to Roughtime in a 
helpful way), don't you?


Best regards,
Kristof



Von:    "Hal Murray" <hmurray@megapathdsl.net>
An:     ntp@ietf.org
Kopie:  "Hal Murray" <hmurray@megapathdsl.net>
Datum:  03.04.2019 09:23
Betreff:        Re: [Ntp] Roughtime and Delay Attacks
Gesendet von:   "ntp" <ntp-bounces@ietf.org>




kristof.teichel@ptb.de said:
> Roughtime deliberately looks at the associations to single server and 
tries
> to judge whether (and potentially prove that) each single given  server 
is
> showing signs of malfeasance. 

You can't do that unless you know your local time is accurate.  You 
probably 
need to know how accurate.

Even if you have something like GPS, you need to be suspicious of it. 
There 
have been many firmware bugs, and a 1024 week rollover is coming up this 
weekend.


-- 
These are my opinions.  I hate spam.



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



--=_alternative 002C46D3C12583D1_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">Perhaps I should have been more precise
in my description.</font>
<br><font size=2 face="sans-serif">Roughtime does look at associations
with many different servers, and from that tries to find the &quot;outliers&quot;
that suggest server malfeasance.</font>
<br><font size=2 face="sans-serif">Its criterion for ruling &quot;server
X is bad&quot; is not discrepancy with the client's local time, but examples
where timestamps from one server visibly don't fit into the same timing
context with timestamps from a majority of other servers.</font>
<br><font size=2 face="sans-serif">Specifically, it does not have to rely
on local time.</font>
<br>
<br><font size=2 face="sans-serif">But I think all that is pretty far beside
the point (the point being that the models of Chronos and Roughtime don't
fit together well enough to transfer techniques against delay attacks from
Chronos to Roughtime in a helpful way), don't you?</font>
<br>
<br>
<br><font size=2 face="sans-serif">Best regards,</font>
<br><font size=2 face="sans-serif">Kristof</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;Hal Murray&quot;
&lt;hmurray@megapathdsl.net&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">An: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">ntp@ietf.org</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Kopie: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;Hal Murray&quot;
&lt;hmurray@megapathdsl.net&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">03.04.2019 09:23</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [Ntp] Roughtime
and Delay Attacks</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Gesendet von: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">&quot;ntp&quot;
&lt;ntp-bounces@ietf.org&gt;</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2><br>
kristof.teichel@ptb.de said:<br>
&gt; Roughtime deliberately looks at the associations to single server
and &nbsp;tries<br>
&gt; to judge whether (and potentially prove that) each single given &nbsp;server
is<br>
&gt; showing signs of malfeasance. <br>
<br>
You can't do that unless you know your local time is accurate. &nbsp;You
probably <br>
need to know how accurate.<br>
<br>
Even if you have something like GPS, you need to be suspicious of it. &nbsp;There
<br>
have been many firmware bugs, and a 1024 week rollover is coming up this
<br>
weekend.<br>
<br>
<br>
-- <br>
These are my opinions. &nbsp;I hate spam.<br>
<br>
<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>
<br>
<br>
--=_alternative 002C46D3C12583D1_=--


From nobody Wed Apr  3 01:42:00 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 3BC9C12000E for <ntp@ietfa.amsl.com>; Wed,  3 Apr 2019 01:41:58 -0700 (PDT)
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 54e9ynqdDxVz for <ntp@ietfa.amsl.com>; Wed,  3 Apr 2019 01:41:54 -0700 (PDT)
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 E9EDD120013 for <ntp@ietf.org>; Wed,  3 Apr 2019 01:41:53 -0700 (PDT)
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 43F9771C0BE7; Wed,  3 Apr 2019 10:41:37 +0200 (CEST)
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de 43F9771C0BE7
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1554280911; bh=m+p1LDaYAW6hN8o/WIHArAv+m31L0w9uc/lsdrMaKP0=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=AtlXm892QNB3AO3AHZ3uT+dUgy6akch2Dy8OcnXz9LGipQLAbJZY3VfOjdT+ap3cf 0eaU9cpQXKmHO2BqrZnlijbUeY5plj0IRs1A19Brr1AUY4aZgpa6aglFFJAJ4Mop6b o8zpHuAYz4EePqAtA8pclX/NbWvvf2IAxKXKWm20=
X-Kerio-Anti-Spam: Build: [Engines: 2.15.9.1226, Stamp: 3], Multi: [Enabled, t: (0.000005,0.009208)], BW: [Enabled, t: (0.000006)], RTDA: [Enabled, t: (0.036618), Hit: No, Details: v2.7.31; Id: 15.1i6u2ph.1d7h5om09.1rtmv], 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, 3 Apr 2019 10:41:35 +0200
To: Kurt Roeckx <kurt@roeckx.be>
Cc: ntp@ietf.org, Daniel Franke <dfoxfranke@gmail.com>
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190401161816.GN7706@roeckx.be> <5590de79-de9e-a576-eee8-10a7df6d0ffb@meinberg.de> <20190402170411.GQ7706@roeckx.be>
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/MoMMfKWaNOJ1qCxMfd8XrCR1WaO1m98Re9RqB9948ZH2VZIRN0MiLVVYLU0I0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rnMICSW3fMyo9yfiQ6tXoyD1cHD/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: <03d4b30d-556c-c585-84dc-a73df953f38e@meinberg.de>
Date: Wed, 3 Apr 2019 10:41:34 +0200
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: <20190402170411.GQ7706@roeckx.be>
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/0imZ-akCp13NH6evdICqA0V4hDE>
Subject: Re: [Ntp] Leap second 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, 03 Apr 2019 08:41:58 -0000

Kurt Roeckx wrote:
> On Tue, Apr 02, 2019 at 09:40:58AM +0200, Martin Burnicki wrote:
>> Kurt Roeckx wrote:
>>> One question I have that I can't seem to find the answer for is
>>> which second do you announce during the leap second in NTP.
>>>
>>> There was a leap second at 3692217600. Do you send:
>>> 3692217599
>>> 3692217599 (leap second)
>>> 3692217600
>>>
>>> Or:
>>>
>>> 3692217599
>>> 3692217600 (leap second)
>>> 3692217600
>>>
>>> I can see arguments for both ways, and if it's not specified
>>> somewhere yet, I think we need to specify it.
>>
>> NTP implementations I've seen just pick up the current system time, so
>> which timestamps are returned during a leap second depends on the way
>> the particular operating system handles the leap second, and e.g. ntpd
>> running on one type of operating system can behave differently than ntpd
>> running on a different type of operating system.
>>
>> So the discussion which way is the "better" one had to be done with the
>> maintainers of the OS kernel clock implementation. ;-)
>>
>> Letting an NTP daemon decide what kind of timestamp to return would
>> require that it
>>
>> 1.) uses the adjtimex()/ntp_adjtime() API calls to retrieve a timestamp
>> including some status information, and then modifies the time stamp in a
>> preferred way
>>
>> 2.) maintains its own clock beside the system clock so it could handle
>> the leap second in a different way than the kernel clock
>>
>> Solution 1.) is normally not used because adjtimex()/ntp_adjtime() take
>> longer to execute than a simple clock_gettime()
>>
>> Solution 2.) can cause additional problems if the daemon's internal leap
>> second handling differs from the leap second handling observed by
>> applications running on the particular system.
> 
> One option would be the allow both the cases, but I still think
> that should get documented.
> 
> But to be compliant with the current draft, you would need to know
> that a timestamp is within the leap second.
> 
> It can be that with the current kernel APIs, this is very hard to
> properly do, but I don't see that as a problem of the draft.

I agree, but on the other hand, what's the advantage of a draft if it is
not implemented, e.g. because the performance is degraded?

Many years ago Dave Mills suggested to implement kernel clocks in a way
that the system time doesn't have to be stepped back to insert a leap
second. Instead, it should basically be stopped during that second, but
this would result in always the same time stamp during the leap second,
so the final proposal was to increment the least significant bit of the
time stamp e.g. 1 microsecond or nanosecond whenever any application
retrieves a time stamp. This approach makes sure the system time is
always strictly monotonically increasing.

Thus, an approach like this at the kernel level would avoid many
problems with user space applications across a leap second, and some
time ago I've discussed this with one of the Linux kernel developers.

He told me it's simply too expensive (in terms of execution time) to let
the kernel check whether its time is inside a leap second, or not,
whenever any applications asks for the system time, just because this
may happen during a single second in a couple of years.

So the kernel in fact simply steps the time back at the beginning or end
of a leap second, which often causes problems with applications that
don't expect such step, but anyway it's less expensive for the kernel.

Basically the same problem arises if you call adjtimex()/ntp_adjtime()
whenever you want to get a current system timestamp. If a program like
ntpd did it the number of client requests it can handle per second would
probably be decrease, and on the other hand this wouldn't even improve
the situation of applications running on a client.

In my opinion the current mechanisms provided by the protocol to
announce and handle a leap second are sufficient, even across several
stratum levels.

What was generally missing (unless you used autokey) was a way to
propagate the current TAI/UTC offset over the network, so it's good to
have a replacement which can be used to do this in the absence of
autokey, if required, e.g. using an extension field.

A bigger problem than the protocol itself is to have a way to inject
information on an upcoming leap seconds, TAI offset, etc. reliably at
the top of the timing chain.

With reliably I mean that this must not only work as long as the OS
maintainers provide software update packages that contain a tzdata/leap
second file, but independently from firmware updates. We have discussed
this a couple of days ago.

> Assuming it's not possible to properly implement the bits
> indicating that a timestamp is within the leap second, maybe the
> draft should mention that in that case you should either not reply
> around the leap second or return that you're not synchronized.

Yes, the current behavior of ntpd to claim to be *not* synchronized for
a short interval across a leap second (as has been suggested by
Miroslav) doesn't hurt, but reduces potential problems especially with
simple clients, and I agree that *this* behavior should be documented.


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 Apr  3 11:11:44 2019
Return-Path: <kurt@roeckx.be>
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 B055412010C for <ntp@ietfa.amsl.com>; Wed,  3 Apr 2019 11:11:42 -0700 (PDT)
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 49rLENfjsv46 for <ntp@ietfa.amsl.com>; Wed,  3 Apr 2019 11:11:40 -0700 (PDT)
Received: from excelsior.roeckx.be (excelsior.roeckx.be [IPv6:2a05:7300:0:100::3]) (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 3C173120153 for <ntp@ietf.org>; Wed,  3 Apr 2019 11:11:39 -0700 (PDT)
Received: from intrepid.roeckx.be (localhost [127.0.0.1]) by excelsior.roeckx.be (Postfix) with ESMTP id 487C2A8A0CC9; Wed,  3 Apr 2019 18:11:37 +0000 (UTC)
Received: by intrepid.roeckx.be (Postfix, from userid 1000) id 986A11FE0B45; Wed,  3 Apr 2019 20:11:36 +0200 (CEST)
Date: Wed, 3 Apr 2019 20:11:36 +0200
From: Kurt Roeckx <kurt@roeckx.be>
To: Martin Burnicki <martin.burnicki@meinberg.de>
Cc: ntp@ietf.org, Daniel Franke <dfoxfranke@gmail.com>
Message-ID: <20190403181135.GR7706@roeckx.be>
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190401161816.GN7706@roeckx.be> <5590de79-de9e-a576-eee8-10a7df6d0ffb@meinberg.de> <20190402170411.GQ7706@roeckx.be> <03d4b30d-556c-c585-84dc-a73df953f38e@meinberg.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <03d4b30d-556c-c585-84dc-a73df953f38e@meinberg.de>
User-Agent: Mutt/1.10.1 (2018-07-13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/IcVAJT3OVvjacLUNPb1t6Ww4m_M>
Subject: Re: [Ntp] Leap second 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, 03 Apr 2019 18:11:43 -0000

On Wed, Apr 03, 2019 at 10:41:34AM +0200, Martin Burnicki wrote:
> Kurt Roeckx wrote:
> > 
> > One option would be the allow both the cases, but I still think
> > that should get documented.
> > 
> > But to be compliant with the current draft, you would need to know
> > that a timestamp is within the leap second.
> > 
> > It can be that with the current kernel APIs, this is very hard to
> > properly do, but I don't see that as a problem of the draft.
> 
> I agree, but on the other hand, what's the advantage of a draft if it is
> not implemented, e.g. because the performance is degraded?
> 
> Many years ago Dave Mills suggested to implement kernel clocks in a way
> that the system time doesn't have to be stepped back to insert a leap
> second. Instead, it should basically be stopped during that second, but
> this would result in always the same time stamp during the leap second,
> so the final proposal was to increment the least significant bit of the
> time stamp e.g. 1 microsecond or nanosecond whenever any application
> retrieves a time stamp. This approach makes sure the system time is
> always strictly monotonically increasing.
> 
> Thus, an approach like this at the kernel level would avoid many
> problems with user space applications across a leap second, and some
> time ago I've discussed this with one of the Linux kernel developers.
> 
> He told me it's simply too expensive (in terms of execution time) to let
> the kernel check whether its time is inside a leap second, or not,
> whenever any applications asks for the system time, just because this
> may happen during a single second in a couple of years.

The other problem with a solution like that is that your time is
wrong, going from 0 to -0.5, then jump to +0.5 to go back to 0.
It would a case where you do not want to answer packets either.

> So the kernel in fact simply steps the time back at the beginning or end
> of a leap second, which often causes problems with applications that
> don't expect such step, but anyway it's less expensive for the kernel.
> 
> Basically the same problem arises if you call adjtimex()/ntp_adjtime()
> whenever you want to get a current system timestamp. If a program like
> ntpd did it the number of client requests it can handle per second would
> probably be decrease, and on the other hand this wouldn't even improve
> the situation of applications running on a client.

I can understand that you don't want to have such a check in
kernel code, because things that don't care about it are also
affected by it. But I don't see a problem doing such a check in
userspace as a problem. In case it's known that the kernel does a
step, it looks like you should be able known if you're in the
middle of a leap second or not without losing much performance.

An other solution is that the kernel provides a TAI interface, and
user space can then just adjust it with the TAI-UTC offset.

Anyway, I'm not arguing that we need the to be able to indicate
that a timestamp was during a leap second, just saying that there
might be solutions to properly implement the draft as it currently
is.

> In my opinion the current mechanisms provided by the protocol to
> announce and handle a leap second are sufficient, even across several
> stratum levels.

I've seen many broken ntp servers during each leap second, it takes
a long time for them to get fixed across the statum level. I think
one of the reasons is that the NTP RFC defines "00" as no leap
second, instead of not knowning it, and that the "00" wins even when
others servers have properly announced the leap second. I think that
the current draft making a distinction between the 2 cases is a good
thing, but I guess it needs to have guidance of how to actually
deal with it.


Kurt


From nobody Thu Apr  4 02:00:13 2019
Return-Path: <stewart.bryant@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 BB958120086 for <ntp@ietfa.amsl.com>; Thu,  4 Apr 2019 02:00:11 -0700 (PDT)
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,  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] 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 9EDdW4JWtYzm for <ntp@ietfa.amsl.com>; Thu,  4 Apr 2019 02:00:10 -0700 (PDT)
Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (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 09F40120059 for <ntp@ietf.org>; Thu,  4 Apr 2019 02:00:10 -0700 (PDT)
Received: by mail-wm1-x332.google.com with SMTP id w15so2381212wmc.3 for <ntp@ietf.org>; Thu, 04 Apr 2019 02:00:09 -0700 (PDT)
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-language:content-transfer-encoding; bh=pTQyed9plBKskKITAbsB5+AZ2thBEIEwKdLDBYvDsgw=; b=Ttwc7wZ4bi0xk+ez27SbalvQlmu0SwXto6siPNFaTTbNNPEMfNnyAzAQd39DpUdaVi EnP0Zzx/VEVlvyY/09eSrd0fqX0I+Sti8AHnFdTPKiEPCVZOWsqLGg4oHkJjVKou8dnx AZ0hKjJ79chfSL/SvKKgnngGX9alXIfnCRAMjzZDGwUPN79lc4fxpvIVPngT+gWlPHYj PnPKfkd8SkrFxq1vVMDS46Js1FOziR+TcjGnGjsGku7KnKkGyHWw5u4cJjJxUS+vBz+g 0ajV/svL0WHRfM9OYOzUzSUiRAIv9lZW9+yRXRGSsHvQz9JwXPCDlKVy87UNWxhWimS9 AvsA==
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-language :content-transfer-encoding; bh=pTQyed9plBKskKITAbsB5+AZ2thBEIEwKdLDBYvDsgw=; b=Mi29vUPle6yyAZGTC/s2AhSoc06aZBv/ElVHzQRt1y7X5VyZedgwQ5sA4wz3VPIrZh +Z7Cfxwy8sDnSlAyCooz4A3YQ0aUE8oSr+/Mu2eirWVTxJXQkHuULhtYScI3jqXKLnXj 9rT0mt2WZKZWO5p3Wt+XGQSuUGhICuIwxIRD6U5ZfHYdDZ0jQB5QmIxYhvN8IQ8ei9zH ZVxnjGI8mYOx0FuHxtNDD84/DjDBa0DtbpI8C6pjvC9KW/psO+rUVzu3pq43Y1XPo6D7 fCM3kR0hGxLUFy+coXf0DHz2Ja5+xzVUVxYiWV6MLRc9HI3X6CKWRN3WZM2WR+pWUMtb IrfA==
X-Gm-Message-State: APjAAAWtX98/XQmyOUidfjyc/i+aldpvpyiCJ+gtOaYC9S3RmlAWr6s4 KD78YYIh4AlmBtv6TzGo3mVgK9oy
X-Google-Smtp-Source: APXvYqwVcFftQ/q3+kRekmX5e5V15hLt8azEKOOW5E1zm3Wbwy3TfrW4aZL2wPPzaLjnNCVJKCwKiQ==
X-Received: by 2002:a1c:4e0a:: with SMTP id g10mr3248248wmh.128.1554368408289;  Thu, 04 Apr 2019 02:00:08 -0700 (PDT)
Received: from [192.168.178.22] ([62.3.64.16]) by smtp.gmail.com with ESMTPSA id 204sm34979494wmc.1.2019.04.04.02.00.07 for <ntp@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Apr 2019 02:00:07 -0700 (PDT)
To: ntp@ietf.org
References: <20190403072255.EA16E40605C@ip-64-139-1-69.sjc.megapath.net> <OF1EB096AA.8F10FC47-ONC12583D1.002B338D-C12583D1.002C46D5@ptb.de>
From: Stewart Bryant <stewart.bryant@gmail.com>
Message-ID: <47b2705b-e29b-320b-c832-3d6c4e7feeb9@gmail.com>
Date: Thu, 4 Apr 2019 10:00:05 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <OF1EB096AA.8F10FC47-ONC12583D1.002B338D-C12583D1.002C46D5@ptb.de>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/SMNkhWV-Yfv9uEAQTYD3QkppqiY>
Subject: Re: [Ntp] Roughtime and Delay Attacks
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, 04 Apr 2019 09:00:12 -0000

Sorry I am struggling to understand how the protection works.

If C (who has just woken) sends a request to S, then all C knows is that 
T ~ Ts - 1/2 RTT. C can know that it was S that replied, but C cannot 
possibly know if S was lying or if an on-path router delayed the packet.

C can keep asking S, and within the limits of the server delay and the 
variation in the routing path and queuing delays RTT stay sort of 
constant, so C can be suspicious if it changes after it has been running 
or if Ts - 1/2 RTT changes by more than the known drift in its local 
clock. However routing paths do change and there are traffic congestion 
delays in networks.

C can ask S', S'' etc and build up a picture of various servers time, 
but it has to be careful that the paths are disjoint and that S, S' and 
S'' have truly independent and authoritative master clocks.

On the other hand, if the routers are compromised, then there are much 
worse things that can do, so we normally assume that they are truthful.

So how does this design do better than "T ~ Ts - 1/2 RTT assuming S did 
not lie and also was not simply wrong"?

- Stewart




From nobody Thu Apr  4 09:55:33 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 9F85A120118 for <ntp@ietfa.amsl.com>; Thu,  4 Apr 2019 09:55:30 -0700 (PDT)
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 C5h2ofhKR3cn for <ntp@ietfa.amsl.com>; Thu,  4 Apr 2019 09:55:28 -0700 (PDT)
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 8368F1200C7 for <ntp@ietf.org>; Thu,  4 Apr 2019 09:55:28 -0700 (PDT)
Received: by mail-qk1-x72f.google.com with SMTP id z76so2048189qkb.12 for <ntp@ietf.org>; Thu, 04 Apr 2019 09:55:28 -0700 (PDT)
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=4rP9KaxQT/NrRAs6+GbgoD8hhB2+iwiI5u7Rw7rpQ7g=; b=D4EXr+BfT9lj+Z6WPyZMsZuv8FhxRYrVPFHgiBCj5y9j3GX24zAkEb8FHeHgUONQ0n SMbqlqJ+n5pUpDeCI9mxo9rT29Wsi/duztWm+mX7vvB+ySwA09Q72ZrFGBSrHh57QIjZ uO0iGC0AGNQTn/QIrI6h2X/YyEn9GuzkWlLHo=
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=4rP9KaxQT/NrRAs6+GbgoD8hhB2+iwiI5u7Rw7rpQ7g=; b=eDMWCvYeElbO/RZ0XFJjnTfLmNIgjjJNsm1QucrEghuu6hrluD3t7bqlfijR2bQ8CJ TChjiBIBPK8Y3xQ9ywMgWUsJpGbQbzdbPtKcTM+7IG7j4Op7wiCSxy9YFVs++648NlkL IwTNKLP8PRjuuHNrvqoME8NISNcXhEXRzhLkZ5nVtV8q2qwj7VlZbmRSDwJCHZRCFPsP nrgabYkKXEpLZSgbD8rz0csM6cYvEWHY25hUhlB5Pdzu0ruqp6x8mcQ+D1HpHHjl5mRP kaSyq75GF3i3rFCcgMW8U7PDtDlXA+HZDVWG7qX8rf79tJw1XeKMh/3Gnj3cKtgxIe/n 2m0w==
X-Gm-Message-State: APjAAAV4TlEcA7ZAm9k7yUXP2zbvH63xFlqug15U1GE0G3z16ZE83De1 Mov9RHlV6kRZZYCNuGsQIB2TIQbz670t2ZTCPYd0og==
X-Google-Smtp-Source: APXvYqwvaLg0RcuYZqXVaawBbjzg/Py9JHiaNff2bthByRSE56W5N5m64o7lkubbTUh47dn7zB6H98e++k1rR2cGWak=
X-Received: by 2002:a37:b444:: with SMTP id d65mr6038545qkf.125.1554396927591;  Thu, 04 Apr 2019 09:55:27 -0700 (PDT)
MIME-Version: 1.0
References: <20190403072255.EA16E40605C@ip-64-139-1-69.sjc.megapath.net> <OF1EB096AA.8F10FC47-ONC12583D1.002B338D-C12583D1.002C46D5@ptb.de> <47b2705b-e29b-320b-c832-3d6c4e7feeb9@gmail.com>
In-Reply-To: <47b2705b-e29b-320b-c832-3d6c4e7feeb9@gmail.com>
From: Watson Ladd <watson@cloudflare.com>
Date: Thu, 4 Apr 2019 09:55:16 -0700
Message-ID: <CAN2QdAFgamnmehCodorszjM-=kt7QCd0ThFcACUu5CjpqP-stg@mail.gmail.com>
To: Stewart Bryant <stewart.bryant@gmail.com>
Cc: ntp@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/JjhM6kAfJV_ju8wZaT1j5fMxKIE>
Subject: Re: [Ntp] Roughtime and Delay Attacks
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, 04 Apr 2019 16:55:31 -0000

On Thu, Apr 4, 2019 at 2:00 AM Stewart Bryant <stewart.bryant@gmail.com> wrote:
>
> Sorry I am struggling to understand how the protection works.
>
> If C (who has just woken) sends a request to S, then all C knows is that
> T ~ Ts - 1/2 RTT. C can know that it was S that replied, but C cannot
> possibly know if S was lying or if an on-path router delayed the packet.

Correct.

>
> C can keep asking S, and within the limits of the server delay and the
> variation in the routing path and queuing delays RTT stay sort of
> constant, so C can be suspicious if it changes after it has been running
> or if Ts - 1/2 RTT changes by more than the known drift in its local
> clock. However routing paths do change and there are traffic congestion
> delays in networks.
>
> C can ask S', S'' etc and build up a picture of various servers time,
> but it has to be careful that the paths are disjoint and that S, S' and
> S'' have truly independent and authoritative master clocks.
>
> On the other hand, if the routers are compromised, then there are much
> worse things that can do, so we normally assume that they are truthful.
>
> So how does this design do better than "T ~ Ts - 1/2 RTT assuming S did
> not lie and also was not simply wrong"?

It doesn't. But this is fine. RTTs can be seconds, not hours.

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


From nobody Thu Apr  4 12:16:50 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 9CFCB120128 for <ntp@ietfa.amsl.com>; Thu,  4 Apr 2019 12:16:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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=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 d4RAEzGORbcm for <ntp@ietfa.amsl.com>; Thu,  4 Apr 2019 12:16:46 -0700 (PDT)
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 7A678120126 for <ntp@ietf.org>; Thu,  4 Apr 2019 12:16:46 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="5.60,309,1549954800"; d="scan'208";a="29493050"
Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Apr 2019 12:16:45 -0700
Received: from NAM01-BY2-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.106) with Microsoft SMTP Server (TLS) id 14.3.352.0; Thu, 4 Apr 2019 12:16:45 -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=/IYswut7e2eBzQzv7peHi7ZQ8UBRR3WMPSJoBf5MJWQ=; b=PrifxwUiz5KW70B+XPAIXfGFpKqgEJKHtMt8JKHnTimUUKK9TngIlp9FX1Av3jwRVnTlhmVLp8LgbG4tyQ1mb4Dpq7djDY7WovQ3bDbSOzJQJ/IM3CBYnlHrXcKWFEuiOtpoxpqs8/7dNH0lITHc22nqniGK8ViU3KgmaqBCTLU=
Received: from BYAPR11MB3239.namprd11.prod.outlook.com (20.177.184.76) by BYAPR11MB3016.namprd11.prod.outlook.com (20.177.225.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.20; Thu, 4 Apr 2019 19:16:40 +0000
Received: from BYAPR11MB3239.namprd11.prod.outlook.com ([fe80::44c6:8072:389:6e05]) by BYAPR11MB3239.namprd11.prod.outlook.com ([fe80::44c6:8072:389:6e05%2]) with mapi id 15.20.1750.017; Thu, 4 Apr 2019 19:16:40 +0000
From: <Greg.Dowd@microchip.com>
To: <watson=40cloudflare.com@dmarc.ietf.org>, <stewart.bryant@gmail.com>
CC: <ntp@ietf.org>
Thread-Topic: [Ntp] Roughtime and Delay Attacks
Thread-Index: AQHU6e5Pi21j1k9WYUqVsuKlKfmSq6YqE7UAgAGiBYCAAITEAIAAJy+w
Date: Thu, 4 Apr 2019 19:16:40 +0000
Message-ID: <BYAPR11MB32395EE9ABA1A9F283F1A3FAFC500@BYAPR11MB3239.namprd11.prod.outlook.com>
References: <20190403072255.EA16E40605C@ip-64-139-1-69.sjc.megapath.net> <OF1EB096AA.8F10FC47-ONC12583D1.002B338D-C12583D1.002C46D5@ptb.de> <47b2705b-e29b-320b-c832-3d6c4e7feeb9@gmail.com> <CAN2QdAFgamnmehCodorszjM-=kt7QCd0ThFcACUu5CjpqP-stg@mail.gmail.com>
In-Reply-To: <CAN2QdAFgamnmehCodorszjM-=kt7QCd0ThFcACUu5CjpqP-stg@mail.gmail.com>
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-ms-office365-filtering-correlation-id: ace2e5a9-dbc3-4ec0-5442-08d6b932113e
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:BYAPR11MB3016; 
x-ms-traffictypediagnostic: BYAPR11MB3016:
x-ms-exchange-purlcount: 2
x-microsoft-antispam-prvs: <BYAPR11MB301691A0B44BEEC117C81038FC500@BYAPR11MB3016.namprd11.prod.outlook.com>
x-forefront-prvs: 0997523C40
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(376002)(346002)(366004)(39860400002)(396003)(13464003)(189003)(199004)(66066001)(71200400001)(966005)(6306002)(4326008)(26005)(52536014)(66574012)(99286004)(6436002)(97736004)(53546011)(11346002)(14444005)(6506007)(305945005)(86362001)(478600001)(7736002)(446003)(74316002)(71190400001)(93886005)(186003)(68736007)(7696005)(76176011)(486006)(256004)(102836004)(476003)(106356001)(105586002)(6246003)(8676002)(72206003)(81166006)(25786009)(15974865002)(2906002)(33656002)(8936002)(9686003)(81156014)(53936002)(110136005)(55016002)(3846002)(316002)(14454004)(6116002)(5660300002)(229853002); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR11MB3016; 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: C4NMxcwhfeQ0CjLcPSQF76aUoyWvU2mO7kLKmBg6XiSBpXOZmLvKuA+Ue631xE8w4LWolCYp88v6Xs6nE9dwqpqb+JlFbc7wRQfNoE1e7ZJSHQfvMqtrWNt1t2oRkRJq3SMnd63XWjBRoT63l7afWLz8CngVYx7BdqQ+SXP08E+w9o8xaZWIPMWTWi9bDa3Gn+f7QIPwmw92v73BV/2KdqvJIfECek4qInmvOXTCGLqOfDDVAuOWgsLlkkCKRUYbqMzB80AWeQxHOo0hR03CZKY7UT2g4t07icpD4IV2LTXwXrVEttKC2fIKxACEjkaqRzRVisgPDRhJKznVK8TSQRvRCfNRVad+PNp3tIVvAxMEtEZ8CGk4T/nx1npZNYGCBaQYfPtQ1LYqlXglFuuc87GRCk4rJevi2sUVV3f6NEs=
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: ace2e5a9-dbc3-4ec0-5442-08d6b932113e
X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2019 19:16:40.7474 (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: BYAPR11MB3016
X-OriginatorOrg: microchip.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/KTVSzwa12urNYKBCj5zGJIf_Mmg>
Subject: Re: [Ntp] Roughtime and Delay Attacks
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, 04 Apr 2019 19:16:49 -0000

Actually, T ~ Ts - RTT.  Asymmetry could be up to 99+% in malicious or brok=
en environment.


Greg Dowd
Principal Engineering Technologist, FTD
Microsemi=20
3870 N. First St. | San Jose | CA 95134 | USA
Office: 408.964.7643
Email: greg.dowd@microchip.com
Company Website:=A0 www.microsemi.com



-----Original Message-----
From: ntp [mailto:ntp-bounces@ietf.org] On Behalf Of Watson Ladd
Sent: Thursday, April 4, 2019 9:55 AM
To: Stewart Bryant <stewart.bryant@gmail.com>
Cc: ntp@ietf.org
Subject: Re: [Ntp] Roughtime and Delay Attacks

External E-Mail


On Thu, Apr 4, 2019 at 2:00 AM Stewart Bryant <stewart.bryant@gmail.com> wr=
ote:
>
> Sorry I am struggling to understand how the protection works.
>
> If C (who has just woken) sends a request to S, then all C knows is=20
> that T ~ Ts - 1/2 RTT. C can know that it was S that replied, but C=20
> cannot possibly know if S was lying or if an on-path router delayed the p=
acket.

Correct.

>
> C can keep asking S, and within the limits of the server delay and the=20
> variation in the routing path and queuing delays RTT stay sort of=20
> constant, so C can be suspicious if it changes after it has been=20
> running or if Ts - 1/2 RTT changes by more than the known drift in its=20
> local clock. However routing paths do change and there are traffic=20
> congestion delays in networks.
>
> C can ask S', S'' etc and build up a picture of various servers time,=20
> but it has to be careful that the paths are disjoint and that S, S'=20
> and S'' have truly independent and authoritative master clocks.
>
> On the other hand, if the routers are compromised, then there are much=20
> worse things that can do, so we normally assume that they are truthful.
>
> So how does this design do better than "T ~ Ts - 1/2 RTT assuming S=20
> did not lie and also was not simply wrong"?

It doesn't. But this is fine. RTTs can be seconds, not hours.

>
> - Stewart
>
>
>
> _______________________________________________
> 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


From nobody Thu Apr  4 14:16:04 2019
Return-Path: <Joachim.Fabini@tuwien.ac.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 454F1120188 for <ntp@ietfa.amsl.com>; Thu,  4 Apr 2019 14:16:02 -0700 (PDT)
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 qNR8xo6vGKJI for <ntp@ietfa.amsl.com>; Thu,  4 Apr 2019 14:15:58 -0700 (PDT)
Received: from mail.nt.tuwien.ac.at (mail.nt.tuwien.ac.at [128.131.67.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 795311204C3 for <ntp@ietf.org>; Thu,  4 Apr 2019 14:15:54 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mail.nt.tuwien.ac.at (Postfix) with ESMTP id 52E0F630E9E3; Thu,  4 Apr 2019 23:15:52 +0200 (CEST)
Received: from mail.nt.tuwien.ac.at ([127.0.0.1]) by localhost (mail.nt.tuwien.ac.at [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zoHqoYGivMCQ; Thu,  4 Apr 2019 23:15:50 +0200 (CEST)
Received: from [10.0.0.27] (193-154-91-189.adsl.highway.telekom.at [193.154.91.189]) by mail.nt.tuwien.ac.at (Postfix) with ESMTPSA id 38DCE630E9D7; Thu,  4 Apr 2019 23:15:50 +0200 (CEST)
To: ntp@ietf.org
References: <20190403072255.EA16E40605C@ip-64-139-1-69.sjc.megapath.net> <OF1EB096AA.8F10FC47-ONC12583D1.002B338D-C12583D1.002C46D5@ptb.de> <47b2705b-e29b-320b-c832-3d6c4e7feeb9@gmail.com> <CAN2QdAFgamnmehCodorszjM-=kt7QCd0ThFcACUu5CjpqP-stg@mail.gmail.com> <BYAPR11MB32395EE9ABA1A9F283F1A3FAFC500@BYAPR11MB3239.namprd11.prod.outlook.com>
From: Joachim Fabini <Joachim.Fabini@tuwien.ac.at>
Openpgp: preference=signencrypt
Autocrypt: addr=Joachim.Fabini@tuwien.ac.at; prefer-encrypt=mutual; keydata= mQENBFN/ZBIBCADMmi08FdbN6Gcq8fr/HFOT0Rhlfez5bpWc0vppC2NF186TDM07H9r85MSy 3JKk2ghUimSB4nRj2FZgA9KdKCgr4nVLdRpMGAvfEp5q9CNpC3Oc3KEs0tknbOZjPrzK9aI1 G1gLvyFxxluCvbxtp0b8oG9HC5gNLeTXTH4KvdVXGu9fjsw+PP2/Sx0Fvk8BR3vGZ/56J/EL qer55TK436pc6br1VW/KzwFgWFDGBIUXEGY8n2Iic+ASp5CVyYdsHi8XLB00fizttWE224Ch mAMolFw0kr4ykT3bzKVoFp4V6noqL1L1E6W+yY8YgkjU7YL0WSKAm0hoyGwxDYSVr0wdABEB AAG0LEpvYWNoaW0gRmFiaW5pIDxKb2FjaGltLkZhYmluaUB0dXdpZW4uYWMuYXQ+iQE/BBMB AgApBQJTf2QSAhsjBQkJZgGABwsJCAcDAgEGFQgCCQoLBBYCAwECHgECF4AACgkQoI/cE+9G p9KsmwgAxyTqWyYcpErMFZUmMc4fZmZJGbCOXInfpdhGgB1qCjlcuamzM1Q9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8-bdfc-784d9159ae98@tuwien.ac.at>
Date: Thu, 4 Apr 2019 23:15:52 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <BYAPR11MB32395EE9ABA1A9F283F1A3FAFC500@BYAPR11MB3239.namprd11.prod.outlook.com>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/8_RrrH6qqlh-YtMLpMmzAA--RLE>
Subject: Re: [Ntp] Roughtime and Delay Attacks
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, 04 Apr 2019 21:16:02 -0000

As a side note: the paper on delay attacks and possible constraints that
triggered this discussion is currently under review for a journal. Its
pre-print can be downloaded from arxiv.org
(https://arxiv.org/abs/1811.08569 ) and may support in identifying
challenges and solutions in guaranteed clock synchronization accuracy.

Joachim

On 04.04.2019 21:16, Greg.Dowd@microchip.com wrote:
> Actually, T ~ Ts - RTT.  Asymmetry could be up to 99+% in malicious or broken environment.
> 
> 
> Greg Dowd
> Principal Engineering Technologist, FTD
> Microsemi 
> 3870 N. First St. | San Jose | CA 95134 | USA
> Office: 408.964.7643
> Email: greg.dowd@microchip.com
> Company Website:  www.microsemi.com
> 
> 
> 
> -----Original Message-----
> From: ntp [mailto:ntp-bounces@ietf.org] On Behalf Of Watson Ladd
> Sent: Thursday, April 4, 2019 9:55 AM
> To: Stewart Bryant <stewart.bryant@gmail.com>
> Cc: ntp@ietf.org
> Subject: Re: [Ntp] Roughtime and Delay Attacks
> 
> External E-Mail
> 
> 
> On Thu, Apr 4, 2019 at 2:00 AM Stewart Bryant <stewart.bryant@gmail.com> wrote:
>>
>> Sorry I am struggling to understand how the protection works.
>>
>> If C (who has just woken) sends a request to S, then all C knows is 
>> that T ~ Ts - 1/2 RTT. C can know that it was S that replied, but C 
>> cannot possibly know if S was lying or if an on-path router delayed the packet.
> 
> Correct.
> 
>>
>> C can keep asking S, and within the limits of the server delay and the 
>> variation in the routing path and queuing delays RTT stay sort of 
>> constant, so C can be suspicious if it changes after it has been 
>> running or if Ts - 1/2 RTT changes by more than the known drift in its 
>> local clock. However routing paths do change and there are traffic 
>> congestion delays in networks.
>>
>> C can ask S', S'' etc and build up a picture of various servers time, 
>> but it has to be careful that the paths are disjoint and that S, S' 
>> and S'' have truly independent and authoritative master clocks.
>>
>> On the other hand, if the routers are compromised, then there are much 
>> worse things that can do, so we normally assume that they are truthful.
>>
>> So how does this design do better than "T ~ Ts - 1/2 RTT assuming S 
>> did not lie and also was not simply wrong"?
> 
> It doesn't. But this is fine. RTTs can be seconds, not hours.
> 
>>
>> - Stewart
>>
>>
>>
>> _______________________________________________
>> 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
> 
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
> 


From nobody Sat Apr  6 09:07:28 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 C341F12033B for <ntp@ietfa.amsl.com>; Sat,  6 Apr 2019 09:07:26 -0700 (PDT)
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 2yoYt83BFkDN for <ntp@ietfa.amsl.com>; Sat,  6 Apr 2019 09:07:25 -0700 (PDT)
Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (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 AFF8E1201E6 for <ntp@ietf.org>; Sat,  6 Apr 2019 09:07:24 -0700 (PDT)
Received: by mail-lj1-x233.google.com with SMTP id q66so7717085ljq.7 for <ntp@ietf.org>; Sat, 06 Apr 2019 09:07:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:from:date:message-id:subject:to; bh=HHSSNFGG1d0vNB0sh2MQDa0kb74nKXWdANWjVrK9UK8=; b=RKh09R9l2vODFCLmHWsGEaPPoSmuStFdxAucgNvW4yCmrOxR6Lnmm4QP6hd0wd6Agi ivbOweAkIYZeCjLkcIVBFGAeP+Ms89817hRTpInSndBQHsvTgsTCcKfTLD2+e0Ow/R0E mO2h4h7C4rbKgh1Y4vSmRTP4tVCM9XZFNUbp9m/jRkX+Gnmrrhee0myGiVs1AZY7vSd8 YyVuy5st1Z0iDGLNkK593Xfq5Kbxmvy1dgXE/lOIAWF2NtsZ19dDyOLQGomVkeur+p8V WLja9KhTDHQ1qAIRLrd2R1Dx/KVbcAp+4LTwnVbh0f4u6qHi5M5s50PMD6KG0M/CcBoB wz6Q==
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=HHSSNFGG1d0vNB0sh2MQDa0kb74nKXWdANWjVrK9UK8=; b=WWSvjWM8dZuulpHtx1AxrlWMpgMupfZpTKyYLO94kQBG1QQ57UCsI1BTP4xCV/xRyF amCkAEpdc7JB5g8rmzyRKnTNp26bdRy7ejjAUftVPyrRcNWY/1Z2QJ5NG6368ymQ//n9 lUmcesqLh45vc0E7dq7Yet6ZBNgOFAt/sUNpJJpmBk6Ilo5oRKGeau2Ai9RjYYv3rFwY t7fiHv+os6XAHwzife66cimn9t4p4JOZAou2NSgZneXOWN6KGNGOtEcNyNlcmTC1rYDE gIcQR/1dYqRz7EE13iReoSG4aTUj/yM5qLbQqiZCYTBYNmDjw1reeS+IKDwW5QcZ2qSm 81ng==
X-Gm-Message-State: APjAAAV6uF222CMqdD7BmrPhNjC18tsFQM8YB7kzblq/9pFJJ8rUmg7A u1oSTB5htbDgzcUnbO+7UgvpqiJS52V5fHxi3aP2MQ==
X-Google-Smtp-Source: APXvYqxgBeMjhSsPdx9BKElVJRCmYnUp0jzyKsk49exUnSkU3CFgl1JaZuvgtZgL/DydzqC1yrAV+4dabYmWVEgbfE4=
X-Received: by 2002:a2e:b016:: with SMTP id y22mr10943254ljk.133.1554566842404;  Sat, 06 Apr 2019 09:07:22 -0700 (PDT)
MIME-Version: 1.0
From: Watson Ladd <watsonbladd@gmail.com>
Date: Sat, 6 Apr 2019 09:07:11 -0700
Message-ID: <CACsn0c=rWPFu5Y-EkJCyqZG56nrniYM+kGmxrgTDkyaR3TBQ_g@mail.gmail.com>
To: NTP WG <ntp@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000006bd53b0585decc08"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/C3u09ry6Qk-O3ztyTvtn_fzjHJc>
Subject: [Ntp] No more options for NTP
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, 06 Apr 2019 16:07:27 -0000

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

Dear all,

This might be a terrible idea, but now that we have NTS-KE with protocol
negotiation I propose we use that for all capability negotiation to
encourage adoption of NTS and to avoid the issues with NTP extensions. Also
kill the MAC.

If we want a v5 I think that should be negotiated via NTS for flexibility.

Sincerely,
Watson

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

<div dir=3D"ltr"><div dir=3D"auto">Dear all,<div dir=3D"auto"><br></div><di=
v dir=3D"auto">This might be a terrible idea, but now that we have NTS-KE w=
ith protocol negotiation I propose we use that for all capability negotiati=
on to encourage adoption of NTS and to avoid the issues with NTP extensions=
. Also kill the MAC.=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"aut=
o">If we want a v5 I think that should be negotiated via NTS for flexibilit=
y.</div><div dir=3D"auto"><br></div><div>Sincerely,<br>Watson</div></div>
</div>

--0000000000006bd53b0585decc08--


From nobody Tue Apr  9 11:09:00 2019
Return-Path: <stewart.bryant@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 3AD3E1200FA for <ntp@ietfa.amsl.com>; Tue,  9 Apr 2019 11:08:58 -0700 (PDT)
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=unavailable 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 RE5F1ISUZkQO for <ntp@ietfa.amsl.com>; Tue,  9 Apr 2019 11:08:55 -0700 (PDT)
Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 4368A1200EF for <ntp@ietf.org>; Tue,  9 Apr 2019 11:08:55 -0700 (PDT)
Received: by mail-wm1-x32b.google.com with SMTP id y197so4440286wmd.0 for <ntp@ietf.org>; Tue, 09 Apr 2019 11:08:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=C15W//Du8xt9lk9/ZwNyx/ms2/lok3ntqTb8L4q/Mno=; b=tW5cTzm7xzKugv7YNJo8A+seLnOP0qnFl/EDxsPAjFS+aoMX3DHLTH0IMhC9cc5Vzy PYi6BS9uqmnLHcnizx2+F1p8YYglRXnJdpcd/6NNwTJ5B4yi2GvWdjfBWqXxH+lUpw/R jkvcj+alQRbQ2KgJHaJ8qLYLO7WtzRcJlD9yNOu+Y1JOE5cf+dO5XvDXYU8sCd6yzSFz kb5b1eVXwSe4anKES05kpdGMdVySOUecotglkIIdUHUBbFER+Jwy3GppPBZoShsxDEO+ f3NEz9FnQTqIbiy5FoLDPCaOYfsBt2nhC3d/BuJdG4mgtt6hUQHWdWVxbSIOLiM8gVuM SbQA==
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=C15W//Du8xt9lk9/ZwNyx/ms2/lok3ntqTb8L4q/Mno=; b=SzP1O/yZaGMuwpMeli95oje5iwEweH+cCQd/hPhZNho+4Y4WCCP05HNLEHfOEPvZDp RDsv/Y06t641k74vmfivmnehwhS3MR/s/d5/+YmPFBcAz3lEMZysM1+uZ7LM/BX1UdYD zpqsml86D7z5FfsL7yr4z1Tq6vj/LCX15fNRB0jileWSk52Zz2g517TZkLkPJ9o+x3fZ WmlPcMXBBh7RJquxZSWfSQuO0IAESBN3wwCj4aPWk3z6iVgumyn8e+h67MPfMB6Re9Ds Rqf/CBcDWy9kizzfFe6FzJBVFfOVLbc9uVb7dRrMupDwksqMd2XBMKTlTiRogO6PfdWj g44Q==
X-Gm-Message-State: APjAAAWRrFB7Xg/bML6bpr30bULj8TdAeL8FaAZuiEnyz9pMAYB1TqsU RUZioFl5lBefl5PRhkalX5dw93/jQ6U=
X-Google-Smtp-Source: APXvYqzns8ZVhOyLNEh+OQE4fz1JkrwySGZCqeWSg2tvSHsuUVZ/I6x1gT8cETly3zvHw9fxB2Xhbg==
X-Received: by 2002:a1c:7611:: with SMTP id r17mr22137531wmc.98.1554833333368;  Tue, 09 Apr 2019 11:08:53 -0700 (PDT)
Received: from [172.20.1.148] ([46.218.58.220]) by smtp.gmail.com with ESMTPSA id k9sm44494217wru.55.2019.04.09.11.08.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2019 11:08:52 -0700 (PDT)
To: Greg.Dowd@microchip.com, watson=40cloudflare.com@dmarc.ietf.org
Cc: ntp@ietf.org
References: <20190403072255.EA16E40605C@ip-64-139-1-69.sjc.megapath.net> <OF1EB096AA.8F10FC47-ONC12583D1.002B338D-C12583D1.002C46D5@ptb.de> <47b2705b-e29b-320b-c832-3d6c4e7feeb9@gmail.com> <CAN2QdAFgamnmehCodorszjM-=kt7QCd0ThFcACUu5CjpqP-stg@mail.gmail.com> <BYAPR11MB32395EE9ABA1A9F283F1A3FAFC500@BYAPR11MB3239.namprd11.prod.outlook.com>
From: Stewart Bryant <stewart.bryant@gmail.com>
Message-ID: <00d08b76-7ddc-1ee6-5e73-ea8f6f24971b@gmail.com>
Date: Tue, 9 Apr 2019 19:08:54 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <BYAPR11MB32395EE9ABA1A9F283F1A3FAFC500@BYAPR11MB3239.namprd11.prod.outlook.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/KcTMomImA6thJElcdgvL6dvOh4c>
Subject: Re: [Ntp] Roughtime and Delay Attacks
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, 09 Apr 2019 18:08:58 -0000

Right, that is all you know.

Rather than develop a whole new protocol couldn't we just carry SNTP 
over an encrypted channel and get the same benefit?

- Stewart


On 04/04/2019 20:16, Greg.Dowd@microchip.com wrote:
> Actually, T ~ Ts - RTT.  Asymmetry could be up to 99+% in malicious or broken environment.
> 
> 
> Greg Dowd
> Principal Engineering Technologist, FTD
> Microsemi
> 3870 N. First St. | San Jose | CA 95134 | USA
> Office: 408.964.7643
> Email: greg.dowd@microchip.com
> Company Website:  www.microsemi.com
> 
> 
> 
> -----Original Message-----
> From: ntp [mailto:ntp-bounces@ietf.org] On Behalf Of Watson Ladd
> Sent: Thursday, April 4, 2019 9:55 AM
> To: Stewart Bryant <stewart.bryant@gmail.com>
> Cc: ntp@ietf.org
> Subject: Re: [Ntp] Roughtime and Delay Attacks
> 
> External E-Mail
> 
> 
> On Thu, Apr 4, 2019 at 2:00 AM Stewart Bryant <stewart.bryant@gmail.com> wrote:
>>
>> Sorry I am struggling to understand how the protection works.
>>
>> If C (who has just woken) sends a request to S, then all C knows is
>> that T ~ Ts - 1/2 RTT. C can know that it was S that replied, but C
>> cannot possibly know if S was lying or if an on-path router delayed the packet.
> 
> Correct.
> 
>>
>> C can keep asking S, and within the limits of the server delay and the
>> variation in the routing path and queuing delays RTT stay sort of
>> constant, so C can be suspicious if it changes after it has been
>> running or if Ts - 1/2 RTT changes by more than the known drift in its
>> local clock. However routing paths do change and there are traffic
>> congestion delays in networks.
>>
>> C can ask S', S'' etc and build up a picture of various servers time,
>> but it has to be careful that the paths are disjoint and that S, S'
>> and S'' have truly independent and authoritative master clocks.
>>
>> On the other hand, if the routers are compromised, then there are much
>> worse things that can do, so we normally assume that they are truthful.
>>
>> So how does this design do better than "T ~ Ts - 1/2 RTT assuming S
>> did not lie and also was not simply wrong"?
> 
> It doesn't. But this is fine. RTTs can be seconds, not hours.
> 
>>
>> - Stewart
>>
>>
>>
>> _______________________________________________
>> 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
> 


From nobody Tue Apr 16 00:10:41 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 AE0E6120147 for <ntp@ietfa.amsl.com>; Tue, 16 Apr 2019 00:10:38 -0700 (PDT)
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 qlRK3zU6syMh for <ntp@ietfa.amsl.com>; Tue, 16 Apr 2019 00:10:35 -0700 (PDT)
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 DA64F120134 for <ntp@ietf.org>; Tue, 16 Apr 2019 00:10:34 -0700 (PDT)
Received: from smtp-hub.bs.ptb.de (smtpint01.bs.ptb.de [141.25.87.32]) by mx1.bs.ptb.de  with ESMTP id x3G7AV1P012745-x3G7AV1R012745 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=CAFAIL); Tue, 16 Apr 2019 09:10:31 +0200
Received: from lotus.bs.ptb.de (lotus.bs.ptb.de [141.25.85.200]) by smtp-hub.bs.ptb.de (Postfix) with ESMTPS id 176017B2647; Tue, 16 Apr 2019 09:10:31 +0200 (CEST)
In-Reply-To: <CACsn0c=rWPFu5Y-EkJCyqZG56nrniYM+kGmxrgTDkyaR3TBQ_g@mail.gmail.com>
References: <CACsn0c=rWPFu5Y-EkJCyqZG56nrniYM+kGmxrgTDkyaR3TBQ_g@mail.gmail.com>
To: "Watson Ladd" <watsonbladd@gmail.com>
Cc: "NTP WG" <ntp@ietf.org>
MIME-Version: 1.0
Message-ID: <OFCEF6F67F.7D13AC6D-ONC12583DE.0025CC54-C12583DE.00276987@ptb.de>
From: kristof.teichel@ptb.de
Date: Tue, 16 Apr 2019 09:10:53 +0200
Content-Type: multipart/alternative; boundary="=_alternative 00276987C12583DE_="
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/LDuh7z-8FHG38heipX_GJHXvKYc>
Subject: [Ntp] [NTP] Using NTS for other negotiations (WAS: No more options for NTP)
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, 16 Apr 2019 07:10:39 -0000

Dies ist eine mehrteilige Nachricht im MIME-Format.
--=_alternative 00276987C12583DE_=
Content-Type: text/plain; charset="US-ASCII"

Hey all, hey Watson,

I can't speak for everyone of course, but personally, I felt that I 
couldn't comment on the suggestion because I didn't feel I understood 
enough of what it entailed.
Would you care to elaborate a bit on how you propose this would  work?

On the issues I think I understood enough to comment:
- End the use of all non-EF MACs: I agree that use of EF-MACs is 
preferable, but I don't know that just forbidding use of the non-EF MAC 
fixes everything (and I'm unsure what document to even place such a 
regulation in)
- Using NTS (-KE) for any and all capability negotiation: I agree insofar 
that it is preferable over using potentially unsecured fields for this 
(because unsecured negotiation seems like a bad idea generally), but am 
not convinced that this is a good issue for normative language. For one, 
it would seem to kill the option to use anything other than NTS forever 
(at least without first using NTS to communicate that one wishes to use an 
alternative to NTS)

One concrete question: In your comment about a v5, what exactly is the 
"that" that you propose to negotiate via NTS?

Overall though, I wish there was more discussion on this proposal (I have 
seen zero, have I missed anything?). 
If people disagree, stated disagreement seems more useful that silence.
But as I hinted at, perhaps the lack of discussion is related to the 
open-endedness of the suggestion?


Best regards,
Kristof





Von:    "Watson Ladd" <watsonbladd@gmail.com>
An:     "NTP WG" <ntp@ietf.org>
Datum:  06.04.2019 18:08
Betreff:        [Ntp] No more options for NTP
Gesendet von:   "ntp" <ntp-bounces@ietf.org>



Dear all,

This might be a terrible idea, but now that we have NTS-KE with protocol 
negotiation I propose we use that for all capability negotiation to 
encourage adoption of NTS and to avoid the issues with NTP extensions.. 
Also kill the MAC. 

If we want a v5 I think that should be negotiated via NTS for flexibility.

Sincerely,
Watson_______________________________________________
ntp mailing list
ntp@ietf.org
https://www.ietf.org/mailman/listinfo/ntp



--=_alternative 00276987C12583DE_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">Hey all, hey Watson,</font>
<br>
<br><font size=2 face="sans-serif">I can't speak for everyone of course,
but personally, I felt that I couldn't comment on the suggestion because
I didn't feel I understood enough of what it entailed.</font>
<br><font size=2 face="sans-serif">Would you care to elaborate a bit on
how you propose this would &nbsp;work?</font>
<br>
<br><font size=2 face="sans-serif">On the issues I think I understood enough
to comment:</font>
<br><font size=2 face="sans-serif">- End the use of all non-EF MACs: I
agree that use of EF-MACs is preferable, but I don't know that just forbidding
use of the non-EF MAC fixes everything (and I'm unsure what document to
even place such a regulation in)</font>
<br><font size=2 face="sans-serif">- Using NTS (-KE) for any and all capability
negotiation: I agree insofar that it is preferable over using potentially
unsecured fields for this (because unsecured negotiation seems like a bad
idea generally), but am not convinced that this is a good issue for normative
language. For one, it would seem to kill the option to use anything other
than NTS forever (at least without first using NTS to communicate that
one wishes to use an alternative to NTS)</font>
<br>
<br><font size=2 face="sans-serif">One concrete question: In your comment
about a v5, what exactly is the &quot;that&quot; that you propose to negotiate
via NTS?</font>
<br>
<br><font size=2 face="sans-serif">Overall though, I wish there was more
discussion on this proposal (I have seen zero, have I missed anything?).
</font>
<br><font size=2 face="sans-serif">If people disagree, stated disagreement
seems more useful that silence.</font>
<br><font size=2 face="sans-serif">But as I hinted at, perhaps the lack
of discussion is related to the open-endedness of the suggestion?</font>
<br>
<br>
<br><font size=2 face="sans-serif">Best regards,</font>
<br><font size=2 face="sans-serif">Kristof</font>
<br>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;Watson Ladd&quot;
&lt;watsonbladd@gmail.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">An: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;NTP WG&quot;
&lt;ntp@ietf.org&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">06.04.2019 18:08</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">[Ntp] No more
options for NTP</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Gesendet von: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">&quot;ntp&quot;
&lt;ntp-bounces@ietf.org&gt;</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Dear all,</font>
<br>
<br><font size=3>This might be a terrible idea, but now that we have NTS-KE
with protocol negotiation I propose we use that for all capability negotiation
to encourage adoption of NTS and to avoid the issues with NTP extensions..
Also kill the MAC.&nbsp;</font>
<br>
<br><font size=3>If we want a v5 I think that should be negotiated via
NTS for flexibility.</font>
<br>
<br><font size=3>Sincerely,<br>
Watson</font><tt><font size=2>_______________________________________________<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>
<br>
<br>
--=_alternative 00276987C12583DE_=--


From nobody Tue Apr 16 01:21:34 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 59FF6120356 for <ntp@ietfa.amsl.com>; Tue, 16 Apr 2019 01:21:32 -0700 (PDT)
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 pywTJasvnKZa for <ntp@ietfa.amsl.com>; Tue, 16 Apr 2019 01:21:31 -0700 (PDT)
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 2992E120354 for <ntp@ietf.org>; Tue, 16 Apr 2019 01:21:31 -0700 (PDT)
Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A43FD308793A; Tue, 16 Apr 2019 08:21:30 +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 CD0DD6013B; Tue, 16 Apr 2019 08:21:29 +0000 (UTC)
Date: Tue, 16 Apr 2019 10:21:28 +0200
From: Miroslav Lichvar <mlichvar@redhat.com>
To: kristof.teichel@ptb.de
Cc: Watson Ladd <watsonbladd@gmail.com>, NTP WG <ntp@ietf.org>
Message-ID: <20190416082128.GJ28203@localhost>
References: <CACsn0c=rWPFu5Y-EkJCyqZG56nrniYM+kGmxrgTDkyaR3TBQ_g@mail.gmail.com> <OFCEF6F67F.7D13AC6D-ONC12583DE.0025CC54-C12583DE.00276987@ptb.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <OFCEF6F67F.7D13AC6D-ONC12583DE.0025CC54-C12583DE.00276987@ptb.de>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Tue, 16 Apr 2019 08:21:30 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/tUg2FFBgWYnmxKjGlItb2y_Pfv4>
Subject: Re: [Ntp] [NTP] Using NTS for other negotiations (WAS: No more options for NTP)
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, 16 Apr 2019 08:21:32 -0000

On Tue, Apr 16, 2019 at 09:10:53AM +0200, kristof.teichel@ptb.de wrote:
> Overall though, I wish there was more discussion on this proposal (I have 
> seen zero, have I missed anything?). 
> If people disagree, stated disagreement seems more useful that silence.
> But as I hinted at, perhaps the lack of discussion is related to the 
> open-endedness of the suggestion?

It's not very clear to me what would be the advantage of not using NTS
after the KE. If the client is complex enough to support TLS, why not
just authenticate the packets? Is an NTS server (e.g. returned in the
server negotiation record) actually required to respond to requests
not authenticated by NTS?

I suspect we would need to distinguish between NTP and NTP+NTS as next
protocols. The plain NTP protocol could be specified in a separate
draft, but in the NTS-for-NTP draft the next protocol #0 would need to
be renamed to something more specific.

-- 
Miroslav Lichvar


From nobody Tue Apr 16 02:44:04 2019
Return-Path: <fgont@si6networks.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 CE3A5120163 for <ntp@ietfa.amsl.com>; Tue, 16 Apr 2019 02:44:02 -0700 (PDT)
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 0MvwZckIzzHq for <ntp@ietfa.amsl.com>; Tue, 16 Apr 2019 02:44:00 -0700 (PDT)
Received: from fgont.go6lab.si (fgont.go6lab.si [IPv6:2001:67c:27e4::14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 05A3A120159 for <ntp@ietf.org>; Tue, 16 Apr 2019 02:44:00 -0700 (PDT)
Received: from [192.168.3.138] (unknown [186.138.212.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by fgont.go6lab.si (Postfix) with ESMTPSA id AFA688493E; Tue, 16 Apr 2019 11:43:54 +0200 (CEST)
To: stenn@nwtime.org
Cc: draft-ietf-ntp-refid-updates@tools.ietf.org, goldbe@cs.bu.edu, ntp@ietf.org
From: Fernando Gont <fgont@si6networks.com>
Openpgp: preference=signencrypt
Autocrypt: addr=fgont@si6networks.com; prefer-encrypt=mutual; keydata= mQINBE5so2gBEACzBQBLUy8nzgAzSZn6ViXT6TmZBFNYNqTpPRvTVtUqF6+tkI+IEd9N2E8p pXUXCd0W4dkxz6o7pagnK63m4QSueggvp881RVVHOF8oTSHOdnGxLfLeLNJFKE1FOutU3vod GK/wG/Fwzkv9MebdXpMlLV8nnJuAt66XGl/lU1JrNfrKO4SoYQi4TsB/waUQcygh7OR/PEO0 EttiU8kZUbZNv58WH+PAj/rdZCrgUSiGXiWUQQKShqKnJxLuAcTcg5YRwL8se/V6ciW0QR9i /sr52gSmLLbW5N3hAoO+nv1V/9SjJAUvzXu43k8sua/XlCXkqU7uLj41CRR72JeUZ4DQsYfP LfNPC98ZGTVxbWbFtLXxpzzDDT8i3uo7w1LJ2Ij/d5ezcARqw01HGljWWxnidUrjbTpxkJ9X EllcsH94mer728j/HKzC9OcTuz6WUBP3Crgl6Q47gY5ZIiF0lsmd9/wxbaq5NiJ+lGuBRZrD v0dQx9KmyI0/pH2AF8cW897/6ypvcyD/1/11CJcN+uAGIrklwJlVpRSbKbFtGC6In592lhu7 wnK8cgyP5cTU+vva9+g6P1wehi4bylXdlKc6mMphbtSA+T3WBNP557+mh3L62l4pGaEGidcZ DLYT2Ud18eAJmxU3HnM8P3iZZgeoK7oqgb53/eg96vkONXNIOwARAQABtCVGZXJuYW5kbyBH b250IDxmZ29udEBzaTZuZXR3b3Jrcy5jb20+iQJBBBMBAgArAhsjBQkSzAMABgsJCAcDAgYV CAIJCgsEFgIDAQIeAQIXgAUCTmylpQIZAQAKCRCuJQ1VHU50kv7wD/9fuNtTfxSLk3B3Hs3p ixTy8YXVjdkVwWlnJjFd7BOWmg7sI+LDhpjGfT6+ddOiwkumnvUZpObodj4ysH0i8c7P4C5t F9yu7WjklSlrB5Rth2CGChg5bKt541z2WHkFFxys9qBLmCSYDeKQkzLqhCjIUJizY2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 29NlQLnVPjCRCKbaz9k6RJ2oIti55YUI6zSsL3lmlOXsRbXN5bRswFczkNSCJxJMlDiyAUIC WOay7ymzvgzPa+BY/mYn94vRaurDQ4/ljOfj6oqgfjts+dJev4Jj89vp8MQI3KJpZPEAEQEA AYkCJQQYAQIADwUCTmyjaAIbDAUJEswDAAAKCRCuJQ1VHU50km4xEACho45PZrUjY4Zl2opR DFNo5a6roTOPpgwO9PcBb3I5F8yX2Dnew+9OhgWXbBhAFq4DCx+9Gjs43Bn60qbZTDbLGJ/m 8N4PwEiq0e5MKceYcbetEdEUWhm5L6psU9ZZ82GR3UGxPXYe+oifEoJjOXQ39avf9S8p3yKP Diil0E79rn7LbJjMcgMLyjFg9SDoJ6pHLtniJoDhEAaSSgeV7Y745+gyMIdtQmrFHfqrFdjq D6G0HE+Z68ywc5KN67YxhvhBmSycs1ZSKAXv1zLDlXdmjHDHkU3xMcB+RkuiTba8yRFYwb/n j62CC4NhFTuIKOc4ta3dJsyXTGh/hO9UjWUnmAGfd0fnzTBZF8Qlnw/8ftx5lt4/O+eqY1EN RITScnPzXE/wMOlTtdkddQ+QN6xt6jyR2XtAIi7aAFHypIqA3lLI9hF9x+lj4UQ2yA9LqpoX 6URpPOd13JhAyDe47cwsP1u9Y+OBvQTVLSvw7Liu2b4KjqL4lx++VdBi7dXsjJ6kjIRjI6Lb WVpxe8LumMCuVDepTafBZ49gr7Fgc4F9ZSCo6ChgQNLn6WDzIkqFX+42KuHz90AHWhuW+KZR 1aJylERWeTcMCGUSBptd48KniWmD6kPKpzwoMkJtEXTuO2lVuborxzwuqOTNuYg9lWDl7zKt wPI9brGzquUHy4qRrA==
Message-ID: <d871d66d-4043-d8d0-f924-2191ebb2e2ce@si6networks.com>
Date: Tue, 16 Apr 2019 11:43:45 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/NkfTHxUUOdp14Agh3h1IPqfcRRg>
Subject: [Ntp] Comments on draft-ietf-ntp-refid-updates-05
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, 16 Apr 2019 09:44:03 -0000

Folks,

I've missed the WGLC for this document, but anyway have some comments on it:

I've read the document, and it would seem to me that the proposed
workaround is, at least, sub-optimal.

First of all, based on our work in draft-gont-predictable-numeric-ids
(and most specifically, draft-gont-numeric-ids-sec-considerations), one
should think about the interoperability requirements.

If the goal is to avoid degree-one timing loops, then, in reality, the
REFID need not specify the time source, but the host itself. -- it only
makes sense to specify the time source if you expect to avoid timing
loops of any degree (such that you can trace the whole hierarchy up to
the root).

Now, in the hopes of keeping the same semantics for the REFID (an
identifier of the time reference), and assuming that it is to be
employed to avoid degree-one timing loops (as opposed to any-degree
loops), then the interoperability requirements for the REFID are:

* It must uniquely identify the source on a (local NTP peer, remote NTP
peer) basis. -- i.e., as long as the remote NTP peer can detect whether
it is the time source of this peer, we have complied with the requirement.

* There is a hard failure if the REFID is generated inappropriately
(e.g., if there is a collision of IDs, the NTP peer will mistakenly
assume there is a timing loop).


Based on the above, I propose that the REFID be generated as:
Hash(IP address of the time source, IP address of the query).

A node that means to check if it is talking to an NTP peer that is using
itself as a time reference should check the received REFID as follows:

foreach $address (@myaddresses){
   if(hash($address, $srcaddress) == REFID){
     die "there is a timing loop";
   }
}

 -- where $srcaddress is the address employed for the query.


Of course, if the NTP peer checking the REFID only employs a single
address, only one iteration is required. Also, you can precompute the
hashes (since you are always checking for hashes of the combinations of
your own ip addresses.

Since the REFID is unique on a (NTP peer, NTP peer), then there is no
information leak at all.

Thoughts?

Thanks,
-- 
Fernando Gont
SI6 Networks
e-mail: fgont@si6networks.com
PGP Fingerprint: 6666 31C6 D484 63B2 8FB1 E3C4 AE25 0D55 1D4E 7492





From nobody Tue Apr 16 14:19:51 2019
Return-Path: <fgont@si6networks.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 052D012043B for <ntp@ietfa.amsl.com>; Tue, 16 Apr 2019 14:19:50 -0700 (PDT)
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, 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 I5BWZ8FOidtG for <ntp@ietfa.amsl.com>; Tue, 16 Apr 2019 14:19:47 -0700 (PDT)
Received: from fgont.go6lab.si (fgont.go6lab.si [91.239.96.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A03901204AF for <ntp@ietf.org>; Tue, 16 Apr 2019 14:19:45 -0700 (PDT)
Received: from [192.168.3.138] (unknown [186.138.212.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by fgont.go6lab.si (Postfix) with ESMTPSA id A83B884A28; Tue, 16 Apr 2019 23:19:41 +0200 (CEST)
References: <155544937440.24990.5297599214551671091.idtracker@ietfa.amsl.com>
To: ntp@ietf.org
From: Fernando Gont <fgont@si6networks.com>
Openpgp: preference=signencrypt
Autocrypt: addr=fgont@si6networks.com; prefer-encrypt=mutual; keydata= mQINBE5so2gBEACzBQBLUy8nzgAzSZn6ViXT6TmZBFNYNqTpPRvTVtUqF6+tkI+IEd9N2E8p pXUXCd0W4dkxz6o7pagnK63m4QSueggvp881RVVHOF8oTSHOdnGxLfLeLNJFKE1FOutU3vod GK/wG/Fwzkv9MebdXpMlLV8nnJuAt66XGl/lU1JrNfrKO4SoYQi4TsB/waUQcygh7OR/PEO0 EttiU8kZUbZNv58WH+PAj/rdZCrgUSiGXiWUQQKShqKnJxLuAcTcg5YRwL8se/V6ciW0QR9i /sr52gSmLLbW5N3hAoO+nv1V/9SjJAUvzXu43k8sua/XlCXkqU7uLj41CRR72JeUZ4DQsYfP LfNPC98ZGTVxbWbFtLXxpzzDDT8i3uo7w1LJ2Ij/d5ezcARqw01HGljWWxnidUrjbTpxkJ9X EllcsH94mer728j/HKzC9OcTuz6WUBP3Crgl6Q47gY5ZIiF0lsmd9/wxbaq5NiJ+lGuBRZrD v0dQx9KmyI0/pH2AF8cW897/6ypvcyD/1/11CJcN+uAGIrklwJlVpRSbKbFtGC6In592lhu7 wnK8cgyP5cTU+vva9+g6P1wehi4bylXdlKc6mMphbtSA+T3WBNP557+mh3L62l4pGaEGidcZ DLYT2Ud18eAJmxU3HnM8P3iZZgeoK7oqgb53/eg96vkONXNIOwARAQABtCVGZXJuYW5kbyBH b250IDxmZ29udEBzaTZuZXR3b3Jrcy5jb20+iQJBBBMBAgArAhsjBQkSzAMABgsJCAcDAgYV CAIJCgsEFgIDAQIeAQIXgAUCTmylpQIZAQAKCRCuJQ1VHU50kv7wD/9fuNtTfxSLk3B3Hs3p ixTy8YXVjdkVwWlnJjFd7BOWmg7sI+LDhpjGfT6+ddOiwkumnvUZpObodj4ysH0i8c7P4C5t F9yu7WjklSlrB5Rth2CGChg5bKt541z2WHkFFxys9qBLmCSYDeKQkzLqhCjIUJiz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+ 29NlQLnVPjCRCKbaz9k6RJ2oIti55YUI6zSsL3lmlOXsRbXN5bRswFczkNSCJxJMlDiyAUIC WOay7ymzvgzPa+BY/mYn94vRaurDQ4/ljOfj6oqgfjts+dJev4Jj89vp8MQI3KJpZPEAEQEA AYkCJQQYAQIADwUCTmyjaAIbDAUJEswDAAAKCRCuJQ1VHU50km4xEACho45PZrUjY4Zl2opR DFNo5a6roTOPpgwO9PcBb3I5F8yX2Dnew+9OhgWXbBhAFq4DCx+9Gjs43Bn60qbZTDbLGJ/m 8N4PwEiq0e5MKceYcbetEdEUWhm5L6psU9ZZ82GR3UGxPXYe+oifEoJjOXQ39avf9S8p3yKP Diil0E79rn7LbJjMcgMLyjFg9SDoJ6pHLtniJoDhEAaSSgeV7Y745+gyMIdtQmrFHfqrFdjq D6G0HE+Z68ywc5KN67YxhvhBmSycs1ZSKAXv1zLDlXdmjHDHkU3xMcB+RkuiTba8yRFYwb/n j62CC4NhFTuIKOc4ta3dJsyXTGh/hO9UjWUnmAGfd0fnzTBZF8Qlnw/8ftx5lt4/O+eqY1EN RITScnPzXE/wMOlTtdkddQ+QN6xt6jyR2XtAIi7aAFHypIqA3lLI9hF9x+lj4UQ2yA9LqpoX 6URpPOd13JhAyDe47cwsP1u9Y+OBvQTVLSvw7Liu2b4KjqL4lx++VdBi7dXsjJ6kjIRjI6Lb WVpxe8LumMCuVDepTafBZ49gr7Fgc4F9ZSCo6ChgQNLn6WDzIkqFX+42KuHz90AHWhuW+KZR 1aJylERWeTcMCGUSBptd48KniWmD6kPKpzwoMkJtEXTuO2lVuborxzwuqOTNuYg9lWDl7zKt wPI9brGzquUHy4qRrA==
X-Forwarded-Message-Id: <155544937440.24990.5297599214551671091.idtracker@ietfa.amsl.com>
Message-ID: <d0be2bea-0e57-022f-16f1-4e682dcc66ad@si6networks.com>
Date: Tue, 16 Apr 2019 23:19:27 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <155544937440.24990.5297599214551671091.idtracker@ietfa.amsl.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/vmXP7Aokwuj-0cA9s4l_kdqCFeY>
Subject: [Ntp] New I-D: NTP Port Randomization (draft-gont-ntp-port-randomization-00.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, 16 Apr 2019 21:19:50 -0000

Folks,

We have published a new I-D (draft-gont-ntp-port-randomization),
entitled "Port Randomization in the Network Time Protocol Version 4".

The I-D is available at:
https://www.ietf.org/internet-drafts/draft-gont-ntp-port-randomization-00.txt

Your comments will be very appreciated.

Thanks,
Fernando




-------- Forwarded Message --------
Subject: New Version Notification for
draft-gont-ntp-port-randomization-00.txt
Date: Tue, 16 Apr 2019 14:16:14 -0700
From: internet-drafts@ietf.org
To: Fernando Gont <fgont@si6networks.com>, Guillermo Gont
<ggont@si6networks.com>


A new version of I-D, draft-gont-ntp-port-randomization-00.txt
has been successfully submitted by Fernando Gont and posted to the
IETF repository.

Name:		draft-gont-ntp-port-randomization
Revision:	00
Title:		Port Randomization in the Network Time Protocol Version 4
Document date:	2019-04-16
Group:		Individual Submission
Pages:		5
URL:
https://www.ietf.org/internet-drafts/draft-gont-ntp-port-randomization-00.txt
Status:
https://datatracker.ietf.org/doc/draft-gont-ntp-port-randomization/
Htmlized:
https://tools.ietf.org/html/draft-gont-ntp-port-randomization-00
Htmlized:
https://datatracker.ietf.org/doc/html/draft-gont-ntp-port-randomization


Abstract:
   The Network Time Protocol can operate in several modes.  Some of
   these modes are based on the receipt of unsolicited packets, and
   therefore require the use of a service/well-known port as the local
   port number.  However, in the case of NTP modes where the use of a
   service/well-known port is not required, employing such well-known/
   service port unnecessarily increases the ability of attackers to
   perform blind/off-path attacks, since knowledge of such port number
   is typically required for such attacks.  This document formally
   updates RFC5905, recommending the use of port randomization for those
   modes where use of the NTP service port is not required.




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.

The IETF Secretariat



From nobody Wed Apr 17 01:14:40 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 B2287120125; Wed, 17 Apr 2019 01:14:38 -0700 (PDT)
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.95.0
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: ntp@ietf.org
Message-ID: <155548887861.29104.9877701109792066850@ietfa.amsl.com>
Date: Wed, 17 Apr 2019 01:14:38 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/GZfqkvl1DQ6jatjnih-1r1QZYL8>
Subject: [Ntp] I-D Action: draft-ietf-ntp-using-nts-for-ntp-18.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, 17 Apr 2019 08:14:39 -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-18.txt
	Pages           : 43
	Date            : 2019-04-17

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-18
https://datatracker.ietf.org/doc/html/draft-ietf-ntp-using-nts-for-ntp-18

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


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 Thu Apr 18 05:37:09 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 C4982120315 for <ntp@ietfa.amsl.com>; Thu, 18 Apr 2019 05:37:06 -0700 (PDT)
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 yU5po6L09uNu for <ntp@ietfa.amsl.com>; Thu, 18 Apr 2019 05:37:04 -0700 (PDT)
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 542FE12032F for <ntp@ietf.org>; Thu, 18 Apr 2019 05:37:04 -0700 (PDT)
Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C0F8BDD9F4; Thu, 18 Apr 2019 12:37:03 +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 16E65608C9; Thu, 18 Apr 2019 12:37:02 +0000 (UTC)
Date: Thu, 18 Apr 2019 14:36:48 +0200
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Fernando Gont <fgont@si6networks.com>
Cc: ntp@ietf.org
Message-ID: <20190418123648.GF5984@localhost>
References: <155544937440.24990.5297599214551671091.idtracker@ietfa.amsl.com> <d0be2bea-0e57-022f-16f1-4e682dcc66ad@si6networks.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <d0be2bea-0e57-022f-16f1-4e682dcc66ad@si6networks.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 18 Apr 2019 12:37:03 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/YzO0YaXy_8oUDYuUzsbeQw2RUcw>
Subject: Re: [Ntp] New I-D: NTP Port Randomization (draft-gont-ntp-port-randomization-00.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: Thu, 18 Apr 2019 12:37:07 -0000

On Tue, Apr 16, 2019 at 11:19:27PM +0200, Fernando Gont wrote:
> The I-D is available at:
> https://www.ietf.org/internet-drafts/draft-gont-ntp-port-randomization-00.txt

Thanks for writing the draft. Just a few quick comments.

The source port in client mode packets can be random and it can also
change with each request, which might be recommended in the document.
Most NTP clients do that.

The source port in active mode packets doesn't necessarily have to be
123. It can be random if the other peer is not expected to have a
permanent association with the peer, but it must not change between
requests as that would create new assocations.

In the NTS draft there is a port negotiation record, so proper NTP
servers will be able to run on other ports than 123.

-- 
Miroslav Lichvar


From nobody Thu Apr 18 15:56:33 2019
Return-Path: <fgont@si6networks.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 11350120197 for <ntp@ietfa.amsl.com>; Thu, 18 Apr 2019 15:56:31 -0700 (PDT)
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 pSv_OCUnieDz for <ntp@ietfa.amsl.com>; Thu, 18 Apr 2019 15:56:28 -0700 (PDT)
Received: from fgont.go6lab.si (fgont.go6lab.si [IPv6:2001:67c:27e4::14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5AD3B120143 for <ntp@ietf.org>; Thu, 18 Apr 2019 15:56:28 -0700 (PDT)
Received: from [192.168.1.103] (unknown [46.1.219.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by fgont.go6lab.si (Postfix) with ESMTPSA id 1F688847CE; Fri, 19 Apr 2019 00:56:12 +0200 (CEST)
To: Miroslav Lichvar <mlichvar@redhat.com>
Cc: ntp@ietf.org
References: <155544937440.24990.5297599214551671091.idtracker@ietfa.amsl.com> <d0be2bea-0e57-022f-16f1-4e682dcc66ad@si6networks.com> <20190418123648.GF5984@localhost>
From: Fernando Gont <fgont@si6networks.com>
Openpgp: preference=signencrypt
Autocrypt: addr=fgont@si6networks.com; prefer-encrypt=mutual; keydata= mQINBE5so2gBEACzBQBLUy8nzgAzSZn6ViXT6TmZBFNYNqTpPRvTVtUqF6+tkI+IEd9N2E8p pXUXCd0W4dkxz6o7pagnK63m4QSueggvp881RVVHOF8oTSHOdnGxLfLeLNJFKE1FOutU3vod GK/wG/Fwzkv9MebdXpMlLV8nnJuAt66XGl/lU1JrNfrKO4SoYQi4TsB/waUQcygh7OR/PEO0 EttiU8kZUbZNv58WH+PAj/rdZCrgUSiGXiWUQQKShqKnJxLuAcTcg5YRwL8se/V6ciW0QR9i /sr52gSmLLbW5N3hAoO+nv1V/9SjJAUvzXu43k8sua/XlCXkqU7uLj41CRR72JeUZ4DQsYfP LfNPC98ZGTVxbWbFtLXxpzzDDT8i3uo7w1LJ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mjHDHkU3xMcB+RkuiTba8yRFYwb/n j62CC4NhFTuIKOc4ta3dJsyXTGh/hO9UjWUnmAGfd0fnzTBZF8Qlnw/8ftx5lt4/O+eqY1EN RITScnPzXE/wMOlTtdkddQ+QN6xt6jyR2XtAIi7aAFHypIqA3lLI9hF9x+lj4UQ2yA9LqpoX 6URpPOd13JhAyDe47cwsP1u9Y+OBvQTVLSvw7Liu2b4KjqL4lx++VdBi7dXsjJ6kjIRjI6Lb WVpxe8LumMCuVDepTafBZ49gr7Fgc4F9ZSCo6ChgQNLn6WDzIkqFX+42KuHz90AHWhuW+KZR 1aJylERWeTcMCGUSBptd48KniWmD6kPKpzwoMkJtEXTuO2lVuborxzwuqOTNuYg9lWDl7zKt wPI9brGzquUHy4qRrA==
Message-ID: <ceea9343-496f-2842-8255-158b515106b6@si6networks.com>
Date: Fri, 19 Apr 2019 00:56:04 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <20190418123648.GF5984@localhost>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/jsUxgJZIXFK8RGXJ-px6WSnIPRA>
Subject: Re: [Ntp] New I-D: NTP Port Randomization (draft-gont-ntp-port-randomization-00.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: Thu, 18 Apr 2019 22:56:31 -0000

Hello, Miroslav,

Thanks so much for your feedback! In-line...

On 18/4/19 14:36, Miroslav Lichvar wrote:
> On Tue, Apr 16, 2019 at 11:19:27PM +0200, Fernando Gont wrote:
>> The I-D is available at:
>> https://www.ietf.org/internet-drafts/draft-gont-ntp-port-randomization-00.txt
> 
> Thanks for writing the draft. Just a few quick comments.
> 
> The source port in client mode packets can be random and it can also
> change with each request, which might be recommended in the document.
> Most NTP clients do that.

FWIW, I'm running ntpd 4.2.8p11@1.3728-o on Ubuntu, and all packets use
src port 123.



> The source port in active mode packets doesn't necessarily have to be
> 123. It can be random if the other peer is not expected to have a
> permanent association with the peer, but it must not change between
> requests as that would create new assocations.

Are you referring to to symmetric mode? My understanding is that if one
of the peers employs a port other than 123, then symmetric mode would
result in two different associations, rather than a single one. Am I
missing something?



> In the NTS draft there is a port negotiation record, so proper NTP
> servers will be able to run on other ports than 123.

Thanks for the note!

Cheers,
-- 
Fernando Gont
SI6 Networks
e-mail: fgont@si6networks.com
PGP Fingerprint: 6666 31C6 D484 63B2 8FB1 E3C4 AE25 0D55 1D4E 7492





From nobody Mon Apr 22 01:06:23 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 295CE1200DB for <ntp@ietfa.amsl.com>; Mon, 22 Apr 2019 01:06:22 -0700 (PDT)
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 GeDX-mA6V5U8 for <ntp@ietfa.amsl.com>; Mon, 22 Apr 2019 01:06:21 -0700 (PDT)
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 368F1120114 for <ntp@ietf.org>; Mon, 22 Apr 2019 01:06:21 -0700 (PDT)
Received: from shuksan (localhost [127.0.0.1]) by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 6323340605C; Mon, 22 Apr 2019 01:06:20 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: ntp@ietf.org
cc: hmurray@megapathdsl.net
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from internet-drafts@ietf.org of "Wed, 17 Apr 2019 01:14:38 PDT." <155548887861.29104.9877701109792066850@ietfa.amsl.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 22 Apr 2019 01:06:20 -0700
Message-Id: <20190422080620.6323340605C@ip-64-139-1-69.sjc.megapath.net>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/_YTkU-81lLjnB2_4viiQqotjDJc>
Subject: Re: [Ntp] I-D Action: draft-ietf-ntp-using-nts-for-ntp-18.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: Mon, 22 Apr 2019 08:06:22 -0000

Typo, page 20:
  Duplicate "Nonetheless, "

Page 6, single round trip
  That's after the TLS setup.  Right?  How many round trips does that take?

Page 13: cookies
  Do all cookies have to have the same length?

Page 17, Nonce length and Nonce in general.
  I don't understand this area.  (My version of "understand" is that I could 
explain it to somebody.)

  It seems really really ugly to have an Additional Padding field that 
requires a layer of magic to compute the length.  Am I missing something 
simple?

  If I poke around in AEAD RFCs, I find text about having a counter to make 
sure the nonce is unique.  Is that appropriate or necessary?  It's really 
really hard to keep from reusing a counter if you consider disks getting 
restored from backup and such.

  Are random number generators good enough?  How do I figure out how many bits 
I need?

  How nonce-reuse resistant are the algorithms we are using?

Why not require the client to use the same length as the server?  Maybe pad 
the client nonce with 0s if generating randomness is expensive and it doesn't 
need as long a nonce as the server.

Did anybody test this?  (I doubt if our code will do the right thing.)

Should we include a table of AEAD algorithms and the Nonce size?

Page 19:
  Why MUST the Unique Identifier be in the clear?

Page 21:
  What is  an AEAD tag?  I couldn't find any other references.

Page 23:  KoD/NTSN
  They can be forged.  What's the current policy on processing KoDs?

Page 23, last paragraph, save AEAD alg, S2C, C2S, and cookie to avoid NTS-KE 
on NTP restart.
  I think that paragraph would be better in an appendix.
  In addition to avoiding the load on the NTS-KE server, it also avoids the 
time delay that would add to the startup sequence.

Page 24:  "AEAD key"
  AEAD is used in two contexts - one for the wire and another for cookies.  It 
would be nice if that word wasn't reused here.  I don't have any good 
wordsmith suggestions.


Page 36, checking certificates before you know the time.

  Does the NTP_PHASE_MAX test work with systems that have been sleeping in low 
power mode?

  "by picking a random time in the week preceding"...
  At a quick read, it's not obvious if that's an example of what to do or what 
not to do.  Is the idea that the certificate will get updated at least a week 
in advance, so asking a week in advance will get the new certificate?

Page 37/42, [Shpiner]
  The reference on page 42 says "Mizraha, T" - no mention of Shpiner.


-- 
These are my opinions.  I hate spam.




From nobody Mon Apr 22 13:10: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 220D3120380 for <ntp@ietfa.amsl.com>; Mon, 22 Apr 2019 13:10:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level: 
X-Spam-Status: No, score=-2.002 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] 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 nqCyS0rt-Pfw for <ntp@ietfa.amsl.com>; Mon, 22 Apr 2019 13:10:34 -0700 (PDT)
Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) (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 169A0120073 for <ntp@ietf.org>; Mon, 22 Apr 2019 13:10:34 -0700 (PDT)
Received: by mail-qk1-x72c.google.com with SMTP id g1so7202724qki.5 for <ntp@ietf.org>; Mon, 22 Apr 2019 13:10:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=VCr4Ecb3OjtJBKaspwopeqoFMIAO3UvTi+S//twOi/c=; b=ysPvEkkN/+1oO2vz8wkasixcu1zOEucCp5uu4tuib5zR4NO18Gprbpco+UFR1/I8bK 0l1Rm89Jq0OD8mG5CdAcF5sgXNqG7CXkpVDVV7kdwZvY9DIhJfaxIC5Hr4oOZq+iv7IP FDKkQONzwpSbaoOJOXSoOxUBj9i1m2adFOTQQ=
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=VCr4Ecb3OjtJBKaspwopeqoFMIAO3UvTi+S//twOi/c=; b=NXAp4wJ7miedAaQnegaNx4fEZMxch+28pKC8sp85irloHIfQB0XEqHNdFJXhDleVgx JCgSx9U7zBN5IRWHzLZiaa/dodt/ZoHYrLKb5L1uSU8ndfUcp8pEQM2VkeQi8n/sssI2 QBkbtvzJQTmdhk5gNyDNmixxpvIwlbSv4FL3H3uNYBUlH/k1Mvnz+wK6MxUiuu9aZwSw pyW14TQxUchei5e5vHlkC2KNF1GJnWhOol/Vz998soOm8ELMx55IQZC8nSnAR/hfqL51 DUFle1GYMZ7kYhHHR1rbt0gckGMVSwqLHj264FcAwb5wtUm6/24nkfWr1e09WJr73jZC XTIw==
X-Gm-Message-State: APjAAAUglmDuOIBR3mAk/gMPtwSf8/gHR5ABFmq6iz7+x3jrhzKtwTu+ Ojjj7rqMJp0F50iTFejWsTjpfCGmQ15H7e7rvuiO8o3sVF7yww==
X-Google-Smtp-Source: APXvYqwIGzCmFYibMlh/VbnwizOfx6OfsJ6I62HtvNw7UHp/BA9jbK8qS9NSUXHhhHXblK1YL28X+D1BSYKKAqOJH8Y=
X-Received: by 2002:a05:620a:1113:: with SMTP id o19mr15551404qkk.129.1555963832903;  Mon, 22 Apr 2019 13:10:32 -0700 (PDT)
MIME-Version: 1.0
From: Watson Ladd <watson@cloudflare.com>
Date: Mon, 22 Apr 2019 13:10:22 -0700
Message-ID: <CAN2QdAEj4=gVXQrVXdU69x8QRzR3tFyLqadfFJZhDyPJNKL6WQ@mail.gmail.com>
To: ntp@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/8bCodve5g2zNEa7LoF0_bm7C__g>
Subject: [Ntp] Draft minimzation: did we get the modes wrong?
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, 22 Apr 2019 20:10:36 -0000

Dear list,
Do clients send mode 3 packets or mode 4 packets? It seems this draft
( https://tools.ietf.org/html/draft-ietf-ntp-data-minimization-04)
the NTP RFC disagree on this detail.
Sincerely,
Watson Ladd


From nobody Mon Apr 22 13:37:54 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 DAD1812039E for <ntp@ietfa.amsl.com>; Mon, 22 Apr 2019 13:37:53 -0700 (PDT)
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,  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] 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 atU9N6zVSrmw for <ntp@ietfa.amsl.com>; Mon, 22 Apr 2019 13:37:51 -0700 (PDT)
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 C1AD8120395 for <ntp@ietf.org>; Mon, 22 Apr 2019 13:37:51 -0700 (PDT)
Received: by mail-qt1-x82a.google.com with SMTP id g7so6200970qtc.0 for <ntp@ietf.org>; Mon, 22 Apr 2019 13:37:51 -0700 (PDT)
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=WMH010oD1aUTPOuHLqoe5PzrmO4VtnuyYBesjQd1FP8=; b=QElS4FqGbmHYBauwdS+Ei+H8mIYgTztC4jDq+SZ2ZrbM40OoPkAIPgEnUllZgClWyS thRu5rCf/fgM6LzsdqCMpuSxaB0uhVJYNKlnLMrdTS4Z9pYfA4FR1U7/C9hEdT68PSG0 CaeDVrOit88HTiezaezMMIx96GaJUqkTa/ZDnmOm/QSmH8oJ7jRD+Fqbkwky/21iDByt TtCYF95hyq6Ws3+eEeU8GGN/7im+8PROjIMi8+4/4/tNYTVnj2Dfm9ueKHc9OR+JzG96 LgJmgiKSGJ7FnGoG1UQ+fJuWqXKoUYUTyKMGHXAYZIJXi94lA+xrWOBV11quQKugilk2 nuJg==
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=WMH010oD1aUTPOuHLqoe5PzrmO4VtnuyYBesjQd1FP8=; b=HdmXuzceUlO2asYrt7homPuaxdXq/2O07fhvjvo8YGd4zvm7antP4mRPYlsDmyYAqk B+F92VBto4EMBe0jYrn6B2DUFkTK9/xS211o0Pq3KeI5mcNRNv1QJGn7coEISuLeB8sz djA8SJ93inJNemptOgJXFUkWZHMtzL+4ED2iTZmPkQFUn1srU3x2erJeeKUJ7XWgB4lQ 6dq1PcNtE8Tj5iVQDY7yJVoQ4Ar9t1p8yTepMlTTrYN6wIrIGw/TIDFHwrITsB10AKlI 1SqEE/UwL7x+JJyvfhF3r6p8qovgo1Qm4+7GGDZi/NZod822arpagaCTC7dqYqOoign+ NkPA==
X-Gm-Message-State: APjAAAX/bdwfn8QEXk6gscyhdmrMUyxiWzrOCdLj5J6UykBAZIpzPlS/ CNm1uZV/odeGBhzdXiinFYgZHnmpOuqVXD0CGvqCf3f+
X-Google-Smtp-Source: APXvYqwNXohGSI6t1n7fdeJgyllCSgvNXB47yOoKr60HyCTK+wJJ31UTH03akAYQT+E6/N2i27w6slwWKX74yGn0v7w=
X-Received: by 2002:a0c:86f5:: with SMTP id 50mr16690114qvg.70.1555965470676;  Mon, 22 Apr 2019 13:37:50 -0700 (PDT)
MIME-Version: 1.0
References: <CAN2QdAEj4=gVXQrVXdU69x8QRzR3tFyLqadfFJZhDyPJNKL6WQ@mail.gmail.com>
In-Reply-To: <CAN2QdAEj4=gVXQrVXdU69x8QRzR3tFyLqadfFJZhDyPJNKL6WQ@mail.gmail.com>
From: Daniel Franke <dfoxfranke@gmail.com>
Date: Mon, 22 Apr 2019 16:37:39 -0400
Message-ID: <CAJm83bC_NKAYLqVA+FBRKcyx26O0t-e1fur_ON9ab4KaF7aNug@mail.gmail.com>
To: Watson Ladd <watson=40cloudflare.com@dmarc.ietf.org>
Cc: NTP WG <ntp@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/q6mV8GIAjcL3o38kyTIOHTV_20g>
Subject: Re: [Ntp] Draft minimzation: did we get the modes wrong?
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, 22 Apr 2019 20:37:54 -0000

Clients send mode 3, servers send mode 4. I see the sentence in RFC
5905 you're referring to and it seems to be an error. It correctly
refers to client packets as mode 3 and server packets as mode 4 in
several other places, as do previous RFCs such as 4330.

I'm a bit amazed that it's taken this long for anyone to spot this.

On Mon, Apr 22, 2019 at 4:10 PM Watson Ladd
<watson=40cloudflare.com@dmarc.ietf.org> wrote:
>
> Dear list,
> Do clients send mode 3 packets or mode 4 packets? It seems this draft
> ( https://tools.ietf.org/html/draft-ietf-ntp-data-minimization-04)
> the NTP RFC disagree on this detail.
> Sincerely,
> Watson Ladd
>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp


From nobody Mon Apr 22 13:45:27 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 5B8E01203A9 for <ntp@ietfa.amsl.com>; Mon, 22 Apr 2019 13:45:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level: 
X-Spam-Status: No, score=-2.002 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] 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 bw13mB0c7cRD for <ntp@ietfa.amsl.com>; Mon, 22 Apr 2019 13:44:59 -0700 (PDT)
Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) (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 38C5E120128 for <ntp@ietf.org>; Mon, 22 Apr 2019 13:44:59 -0700 (PDT)
Received: by mail-qk1-x733.google.com with SMTP id p19so4914274qkm.10 for <ntp@ietf.org>; Mon, 22 Apr 2019 13:44:59 -0700 (PDT)
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=kCeGwZRKI0IwJyF4PM9y1WKYOiVS+rVqIsmNF/U9b5c=; b=McwENZK/XmtmMbV8q7lHIgFogLIVuVfANAw8NyHG7EQrj3WX76qefhVUjS0oVbMCz8 Uv9H4qON4VY7kRpVumCzdR0WS4h0z5YGYN25O2zs7FO8CgeCPPvk7488eYBCJ/nrv+db KBYa0DuL5i72hhPrag83rVDypu7o7kmggT7LY=
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=kCeGwZRKI0IwJyF4PM9y1WKYOiVS+rVqIsmNF/U9b5c=; b=ZJTLV5qKySpAFZnFsRcuaJugEfmk3fSittnpByboO34ASoA+3lO3iEKFmdN2Awaj37 edmbSW3zX9y133AsQaCcLqj8mmvgANQhoToqHYQm6emImzfr6zWJlktTjddl9u2eEW0N HIxuZw89jnAD1HOo/WmBxsA89xhl/v0mUzXWWcOG1VNlkvVr8AR1gtgLyMIXHC6CLpIJ bZV0IV9CE+/pjebB4yFPH7BSP7zTxign18nOR2kM0Fd6/dMK+BKMtB0LeEeuJOIfttiN v+jO9kDAE7rHabmcDA6U4SK7c3ijyKxi6Vv172fkYPKwprHvpuu4JlstXmAuuWxrOvxR /vzg==
X-Gm-Message-State: APjAAAX3vxSBCQ5LHIRZlmFErT8plVu01QIlAx8eEx3h0RYg3Q6TP/k/ SkA7l4nJQC1ZqbNt86hOItIzyddceVzvwcjpu3eACg==
X-Google-Smtp-Source: APXvYqwEcFN9ic/w9bES9krPllhR2cToQqL2KIt5EFj9vTonzUMEBFWuqGH194w68TSELMMPh10ADvI/QqIA57HvO9Y=
X-Received: by 2002:ae9:e8c3:: with SMTP id a186mr7091118qkg.346.1555965898331;  Mon, 22 Apr 2019 13:44:58 -0700 (PDT)
MIME-Version: 1.0
References: <CAN2QdAEj4=gVXQrVXdU69x8QRzR3tFyLqadfFJZhDyPJNKL6WQ@mail.gmail.com> <CAJm83bC_NKAYLqVA+FBRKcyx26O0t-e1fur_ON9ab4KaF7aNug@mail.gmail.com>
In-Reply-To: <CAJm83bC_NKAYLqVA+FBRKcyx26O0t-e1fur_ON9ab4KaF7aNug@mail.gmail.com>
From: Watson Ladd <watson@cloudflare.com>
Date: Mon, 22 Apr 2019 13:44:47 -0700
Message-ID: <CAN2QdAE1CvazkE6=Oc44c3HiN-O31VUi8Vn+QozUd1TZcek8FA@mail.gmail.com>
To: Daniel Franke <dfoxfranke@gmail.com>
Cc: NTP WG <ntp@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/faH-M6p-1-U_9oFixg3bd_LH8cc>
Subject: Re: [Ntp] Draft minimzation: did we get the modes wrong?
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, 22 Apr 2019 20:45:01 -0000

Errata 3126 did spot this.

On Mon, Apr 22, 2019 at 1:37 PM Daniel Franke <dfoxfranke@gmail.com> wrote:
>
> Clients send mode 3, servers send mode 4. I see the sentence in RFC
> 5905 you're referring to and it seems to be an error. It correctly
> refers to client packets as mode 3 and server packets as mode 4 in
> several other places, as do previous RFCs such as 4330.
>
> I'm a bit amazed that it's taken this long for anyone to spot this.
>
> On Mon, Apr 22, 2019 at 4:10 PM Watson Ladd
> <watson=40cloudflare.com@dmarc.ietf.org> wrote:
> >
> > Dear list,
> > Do clients send mode 3 packets or mode 4 packets? It seems this draft
> > ( https://tools.ietf.org/html/draft-ietf-ntp-data-minimization-04)
> > the NTP RFC disagree on this detail.
> > Sincerely,
> > Watson Ladd
> >
> > _______________________________________________
> > ntp mailing list
> > ntp@ietf.org
> > https://www.ietf.org/mailman/listinfo/ntp


From nobody Tue Apr 23 01:49:13 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 7CE9C1200FA for <ntp@ietfa.amsl.com>; Tue, 23 Apr 2019 01:49:11 -0700 (PDT)
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 hWyJipYrxuGa for <ntp@ietfa.amsl.com>; Tue, 23 Apr 2019 01:49:09 -0700 (PDT)
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 AF7431200A2 for <ntp@ietf.org>; Tue, 23 Apr 2019 01:49:09 -0700 (PDT)
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 55A4130BC670; Tue, 23 Apr 2019 08:49:09 +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 A80875D9C8; Tue, 23 Apr 2019 08:49:08 +0000 (UTC)
Date: Tue, 23 Apr 2019 10:48:53 +0200
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Fernando Gont <fgont@si6networks.com>
Cc: ntp@ietf.org
Message-ID: <20190423084853.GB5188@localhost>
References: <155544937440.24990.5297599214551671091.idtracker@ietfa.amsl.com> <d0be2bea-0e57-022f-16f1-4e682dcc66ad@si6networks.com> <20190418123648.GF5984@localhost> <ceea9343-496f-2842-8255-158b515106b6@si6networks.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <ceea9343-496f-2842-8255-158b515106b6@si6networks.com>
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.46]); Tue, 23 Apr 2019 08:49:09 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/vnfGFTpfF8tC_ex3DH-KYEyWA6Y>
Subject: Re: [Ntp] New I-D: NTP Port Randomization (draft-gont-ntp-port-randomization-00.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, 23 Apr 2019 08:49:12 -0000

On Fri, Apr 19, 2019 at 12:56:04AM +0200, Fernando Gont wrote:
> On 18/4/19 14:36, Miroslav Lichvar wrote:
> > The source port in client mode packets can be random and it can also
> > change with each request, which might be recommended in the document.
> > Most NTP clients do that.
> 
> FWIW, I'm running ntpd 4.2.8p11@1.3728-o on Ubuntu, and all packets use
> src port 123.

Yes, ntpd and ntpdate (without -q or -d) seem to be in the minority of
clients using source port 123.

> > The source port in active mode packets doesn't necessarily have to be
> > 123. It can be random if the other peer is not expected to have a
> > permanent association with the peer, but it must not change between
> > requests as that would create new assocations.
> 
> Are you referring to to symmetric mode? My understanding is that if one
> of the peers employs a port other than 123, then symmetric mode would
> result in two different associations, rather than a single one. Am I
> missing something?

Yes, symmetric mode.

If both peers are using the active mode (i.e. permanent association),
they need to use the same port numbers in order to avoid creating more
associations. If one of them is expected to be using passive mode
(i.e. ephemeral association or stateless), I think the active peer can
use any source port as long as it doesn't change (frequently).

-- 
Miroslav Lichvar


From nobody Tue Apr 23 08:46:36 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 6AAE3120454 for <ntp@ietfa.amsl.com>; Tue, 23 Apr 2019 08:46:34 -0700 (PDT)
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 EfGhI8LcbJOj for <ntp@ietfa.amsl.com>; Tue, 23 Apr 2019 08:46:32 -0700 (PDT)
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 8FC58120453 for <ntp@ietf.org>; Tue, 23 Apr 2019 08:46:32 -0700 (PDT)
Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 182645A59 for <ntp@ietf.org>; Tue, 23 Apr 2019 15:46:32 +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 8C9EB5D719 for <ntp@ietf.org>; Tue, 23 Apr 2019 15:46:31 +0000 (UTC)
Date: Tue, 23 Apr 2019 17:46:16 +0200
From: Miroslav Lichvar <mlichvar@redhat.com>
To: ntp@ietf.org
Message-ID: <20190423154616.GB11966@localhost>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 23 Apr 2019 15:46:32 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/J6w0XrkzH7CWdPMb5OzYgOgaKtA>
Subject: [Ntp] Switching NTS to AES-GCM-SIV?
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, 23 Apr 2019 15:46:34 -0000

Hi,

there is a new standard for AES-GCM-SIV

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

In the list archive I found some comments that this algorithm was
rejected for being only a draft at the time. That has changed and we
may want to reconsider it as the mandatory algorithm required by NTS.
At the very least, the performance should be better, which I'd very
like to see improved, and there may be other advantages.

Is it too late for NTS to switch?

-- 
Miroslav Lichvar


From nobody Tue Apr 23 09:02:01 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 9DD4212010F for <ntp@ietfa.amsl.com>; Tue, 23 Apr 2019 09:02:00 -0700 (PDT)
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,  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] 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 LHvl-y-22sIH for <ntp@ietfa.amsl.com>; Tue, 23 Apr 2019 09:01:59 -0700 (PDT)
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 3DFB112017D for <ntp@ietf.org>; Tue, 23 Apr 2019 09:01:50 -0700 (PDT)
Received: by mail-qt1-x836.google.com with SMTP id v7so3547256qti.7 for <ntp@ietf.org>; Tue, 23 Apr 2019 09:01:50 -0700 (PDT)
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=IPxCkEI44WVVpypJ0QztMp1Xr+oUjaz6NLxiU9H9nSA=; b=gzUgBI8haYE9iRQqEYN6YLfpH2qn9xsynL8QmvP2+QsI+2MHVpK1NXhkAmo94eYNZH hEW7vEb1WISOI3SlP/NLV1TwODaKcnDj931VX7SPHii4+rAjcf/YwSHgWWAsAYepG08c NmJpC9mbRdawRWzWUwOXRyJz+LJtLswklrddvchnQQtgn/mLPIYmmJzq1ugUG2P2Dsek bDVFMPnsadm1kfJlZ9PaIC//RMzLmtarDrxbyyifPtw0EjzVG+L25H+8Kv+XOhhr9JmS AfEseP//dDSsEBrKUfr+kfQQnMWpDPvRlCAsGmQUktZCIlgbOtTOmpPUOJRwbttIHGir fh+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=IPxCkEI44WVVpypJ0QztMp1Xr+oUjaz6NLxiU9H9nSA=; b=R8+4aWn/znVyPvBm9doWtPhfoOLnDegAzd96N/pvIuhiCbkhpovkCchggZ/4EGuT6+ uuoqKrbeEY2NFIHo9qWWMr79gKPaaQrvSyIL/vw8T9iKVxxDqPj5dzmZfptiU9JZjtyi 5QH4ncdjcUs9tg64VTZw0GvU8FPIu5t3TpI7gaR1ZikJslwQy2OcErKabryeFznlhO70 86JMxs1nbMRVHWWPDsBGYdEQuQcYzSTMYAAa1TMoeQfMVXRSoL4HbmmYlYaXGJoTKh5o NGlUJ7jkoAUU9xGNLR8MuhZAKR8Ifc/0+TJhgm6KbmoXuACGnIT8D83FpB3ORSf64WkN dqIw==
X-Gm-Message-State: APjAAAUH7Ix9CuZk12ifwxBq2CXCOBKjowyR3IwSYETYXS2jw9kroFkA WXo/BqJ4ekevcKmaBhX9xdlAr6/kx5fdKUEOf94=
X-Google-Smtp-Source: APXvYqyRz8sLq4yt+/pIW7DJTxX/q7XPDK6VykHwH0ojNa9BG2F63nnZm9+W6/TpCju3gJoOkHR5NlbaCFmEtxX0C4s=
X-Received: by 2002:ac8:2dae:: with SMTP id p43mr11710498qta.14.1556035309242;  Tue, 23 Apr 2019 09:01:49 -0700 (PDT)
MIME-Version: 1.0
References: <20190423154616.GB11966@localhost>
In-Reply-To: <20190423154616.GB11966@localhost>
From: Daniel Franke <dfoxfranke@gmail.com>
Date: Tue, 23 Apr 2019 12:01:38 -0400
Message-ID: <CAJm83bA+UZEGBM0WtN1S0AnUrjvpgud2BQJLQ7NF0bTNG2uP9A@mail.gmail.com>
To: Miroslav Lichvar <mlichvar@redhat.com>
Cc: NTP WG <ntp@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/0Pb6UVzxgQ9xHcGz2ujGAVRP1eY>
Subject: Re: [Ntp] Switching NTS to AES-GCM-SIV?
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, 23 Apr 2019 16:02:01 -0000

On Tue, Apr 23, 2019 at 11:46 AM Miroslav Lichvar <mlichvar@redhat.com> wrote:
> there is a new standard for AES-GCM-SIV
> [...]
> Is it too late for NTS to switch?

Whether it's too late is debatable, but I don't think we should.
AES-GCM-SIV's misuse-resistance properties are weaker than AES-SIV's:
its security bounds gradually degrade if you reuse the same nonce too
many times. In mainstream use cases this isn't any cause for concern
because nonce reuse should be rare, but I don't want to encumber our
choice of MTI algorithm with the assumption that it will *never* be a
concern.

With that said, in all but weird exceptional cases that may or may not
exist, I definitely encourage implementers to support AES-GCM-SIV in
addition to AES-SIV, and to put AES-GCM-SIV ahead of AES-SIV in their
preference ordering when negotiating what to use.


From nobody Tue Apr 23 12:32:05 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 D9B0512014A for <ntp@ietfa.amsl.com>; Tue, 23 Apr 2019 12:32:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.648
X-Spam-Level: 
X-Spam-Status: No, score=-1.648 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no 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 lFMx7cAGkbIF for <ntp@ietfa.amsl.com>; Tue, 23 Apr 2019 12:32:02 -0700 (PDT)
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 33331120041 for <ntp@ietf.org>; Tue, 23 Apr 2019 12:32:02 -0700 (PDT)
Received: by mail-lf1-x12c.google.com with SMTP id h5so12639441lfm.1 for <ntp@ietf.org>; Tue, 23 Apr 2019 12:32:02 -0700 (PDT)
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=GcNugy0kKjdXQDqMOi0NQTIbmyJn9d7dUSWZCxPyxgU=; b=Bw0lE6lGQXqDePDaeZWsvhCFl6LdfmoG0ApuTbBAzPnwbdTWOtHuCUfCf2148mtZxd iE9pxaRkA9FsE4PDdBRg2Rmbjwi/Sp4lWwCUsoP0B9yOHb+cZNktn2rUoamCoF4NPjPw OaQx9JzcT27FUY2rvofoWwuQoEN8cr/Qo0MmVs8jlFfFLoCvscK+Yp0wjhrU4ENucWJO /p3jZ7pRTA1wFv+H+9gYPWe3u7Rm0lXzAwfrRq2VGViblSm3dHa2obv0+O1WZhHUtPFJ kWogwh8S/a5n7YAvPQpZ5o9Ka+08Q7D5U0vekzTeNMplGRSnbpdWj/eGBxd/S3oBhmnH wvdQ==
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=GcNugy0kKjdXQDqMOi0NQTIbmyJn9d7dUSWZCxPyxgU=; b=JhgCmPuT5sdFduX48Xlx4HiATri0g9a0Bqh8r/PP5NIO2eH2kUcGtAqOO8q32LaZJa OCaeTUVXGluv1o2JDsBKOkQF4tZ8YOXeWaXpD3ymW7gzaCYkJEtsXaJ281uZDkc3LW6q n0zbLO1KHyBIrhpkqYVtj4N3EudZDeUTQGiSm+05XIQ6pFg1tBfwF8oWdTfF1oNGnWrE S3MrXi4q9kJ+pD3c3Q9/CD/FUEOYZp8gJ4CRMhsO6s/4/GrSLilfmztfETZTTSS3T+Er NVIRdnAV68gkf5WY1Kspr0fdmNw5t38PZ+xYgZ1AN+RqttYqHZ7mr2dqOCMg86whc3ky WuDg==
X-Gm-Message-State: APjAAAXKqjJhAPmCBxxqF/naGdP2EWNzuUFRrVuGndcpKwFjS8odnnlF fkCP9Ty/du5PGl2chgSuTMXjyn6z
X-Google-Smtp-Source: APXvYqw2xTVHXXWw9g9gVgkaQJS29NKQr26HJ6GYF5HiDEGlzddgavAw6aVUo8CqYCrZcjOW4psGBA==
X-Received: by 2002:a19:f705:: with SMTP id z5mr14863464lfe.93.1556047919969;  Tue, 23 Apr 2019 12:31:59 -0700 (PDT)
Received: from [10.0.0.126] ([185.40.184.26]) by smtp.gmail.com with ESMTPSA id f18sm3882489lfh.39.2019.04.23.12.31.58 for <ntp@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Apr 2019 12:31:58 -0700 (PDT)
Sender: Marcus Dansarie <marcus.dansarie.nilsson@gmail.com>
To: "ntp@ietf.org" <ntp@ietf.org>
References: <20190422080620.6323340605C@ip-64-139-1-69.sjc.megapath.net>
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/YsIIShk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hgoZF/KU3JSq0Xs0Ni ioljOHDgOddGzO7Dd2KbCW2vtzo7m50yrLHI77hsocnkqrIcIn6TeYtH7K1aksEI0KC2Sg0b ome7eO8jCziXZO73iwq9hflXAiZp9CM2HWlb7e2zXe8vChJorEf+9w3t/jyvQzCtOf12jUM1 xr99DODBAEtJ0/tUfSsGvfETmAhYD2tjRmVwzB7jRq6U4bc5jtcYEL5YKEWBIvJDVvzE3iu/ HHjc83bIIyqxeYyT3uClTWPVP5OEWBxGUas7u3hlxxmSzGjpXUDBZyoeC+Q6Q3WUp6zOSg+/ yVwD/KBQQ/Sy6vOfvgh6PmsP1D5xCZSl6UWnxSi8lTtAcjUjHyG1qCudR/pmDv0OL5Ul8PeF 87DBMz4Y0our+MslzlvhrmI90XcKAyHrukdnanS+gle61a44uFwtUGPTvCtSW4AQLR1uixc8 qaHsQNmXpQQOIt6nudcOCisXa1c6P/WU8I94u9BmCjTWRQ==
Message-ID: <9ae82731-6c9c-6c66-6088-2e2a760e6fdd@dansarie.se>
Date: Tue, 23 Apr 2019 21:31:57 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <20190422080620.6323340605C@ip-64-139-1-69.sjc.megapath.net>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/DuXun_Q73L82jf2eeRkeDW44Njs>
Subject: Re: [Ntp] I-D Action: draft-ietf-ntp-using-nts-for-ntp-18.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, 23 Apr 2019 19:32:05 -0000

Thanks for your comments! See my comments inline.

Kind regards,
Marcus


On 2019-04-22 10:06, Hal Murray wrote:
> 
> Typo, page 20:
>   Duplicate "Nonetheless, "

Thanks! (I submitted a pull request for this last Wednesday.)

> 
> Page 6, single round trip
>   That's after the TLS setup.  Right?  How many round trips does that take?

Correct, that's one round trip excluding the TLS setup. The setup is
expected to take two or three round trips depending on version.
(Theoretically, PSK could bring this down to one round trip, but I do
not envisage it being used in this application.)

> Page 13: cookies
>   Do all cookies have to have the same length?

It is not explicitly required by the draft. I can't see any "sane"
reason for a server to send cookies of different length in the same reply.

A practical reason for changing cookie length is if a server updates its
(implementation dependent) cookie format. It could then start replying
with cookies of different length than before. This could possibly create
problems if the new cookies are longer than the old ones. To avoid
sending replies that are longer than the requests, the server would have
to send zero new cookies as reply to requests containing only one cookie
placeholder in the hope that the client's next request contains two
cookie placeholders, thus enabling it to send one cookie back.
Hopefully, as the old cookies are depleted the client then starts
sending larger cookie placeholder records.

> Page 17, Nonce length and Nonce in general.
>   I don't understand this area.  (My version of "understand" is that I could 
> explain it to somebody.)
> 
>   It seems really really ugly to have an Additional Padding field that 
> requires a layer of magic to compute the length.  Am I missing something 
> simple?

The additional padding field ensures that the server always can select
the nonce length it wishes without having to send a reply larger than
the request. The somewhat complicated algorithm is due to the
specifications in RFC 5116 and the requirement that the field length be
divisible by four.

> 
>   If I poke around in AEAD RFCs, I find text about having a counter to make 
> sure the nonce is unique.  Is that appropriate or necessary?  It's really 
> really hard to keep from reusing a counter if you consider disks getting 
> restored from backup and such.
> 
>   Are random number generators good enough?  How do I figure out how many bits 
> I need?

Correctly implemented CPRNGs are good enough and is probably best
practice in this case. Still, implementors have to be careful that the
PRNG is initialized with random data and that initialization data is not
accidentaly restored from backups or similar. 128 bits is a good rule of
thumb for lowest acceptable nonce length. We would then expect a
collision (i.e. same nonce generated twice) with 50% probability after
about 2^64 generated nonces.


>   How nonce-reuse resistant are the algorithms we are using?

This is discussed in RFC 5297 section 1.3.2.

> Why not require the client to use the same length as the server?  Maybe pad 
> the client nonce with 0s if generating randomness is expensive and it doesn't 
> need as long a nonce as the server.

When the client first sends a reply, it doesn't know what length the
server wishes to use in its reply. Padding a short nonce with zeros
would not increase security. A client that wishes to do so in order to
avoid adding an additional padding field is free to do so. It is not
against the language in the draft.


> Did anybody test this?  (I doubt if our code will do the right thing.)

Test what?

> Should we include a table of AEAD algorithms and the Nonce size?

This is in the RFCs specifying the algorithms. See
https://www.iana.org/assignments/aead-parameters/aead-parameters.xhtml


> Page 19:
>   Why MUST the Unique Identifier be in the clear?

In case a server receives a request containing a cookie it cannot parse,
for example because it is encrypted with a key the server does not have,
it will reply with a NTSN KoD. Requiring inclusion of the unique
identifier stops off-path attackers from faking such replies.

> Page 21:
>   What is  an AEAD tag?  I couldn't find any other references.

It is data generated by the AEAD algorithm that cryptographically
authenticates the message.

> Page 23:  KoD/NTSN
>   They can be forged.  What's the current policy on processing KoDs?

This is discussed beginning on paragraph 4 on page 23  ("If the NTP
server has previously...").

> Page 23, last paragraph, save AEAD alg, S2C, C2S, and cookie to avoid NTS-KE 
> on NTP restart.
>   I think that paragraph would be better in an appendix.
>   In addition to avoiding the load on the NTS-KE server, it also avoids the 
> time delay that would add to the startup sequence.

The primary motivation for including the recommendation/requirement is
that the NTS system should be dependent on the KE servers as little as
possible. Ideally, an NTS client should only perform a KE once in its
existence.

> Page 24:  "AEAD key"
>   AEAD is used in two contexts - one for the wire and another for cookies.  It 
> would be nice if that word wasn't reused here.  I don't have any good 
> wordsmith suggestions.
> 

Ah, I think I see what you mean: should we be more clear that the
server's key for encrypting/decrypting cookies is different from the S2C
and C2S keys?

> Page 36, checking certificates before you know the time.
> 
>   Does the NTP_PHASE_MAX test work with systems that have been sleeping in low 
> power mode?
> 
>   "by picking a random time in the week preceding"...
>   At a quick read, it's not obvious if that's an example of what to do or what 
> not to do.  Is the idea that the certificate will get updated at least a week 
> in advance, so asking a week in advance will get the new certificate?

Yes, that's the idea. I just realized that we made that assumption
without explicitly stating it.

> Page 37/42, [Shpiner]
>   The reference on page 42 says "Mizraha, T" - no mention of Shpiner.

This is due to an error in the XML source. I submitted a pull request
fixing it last Wednesday.


From nobody Tue Apr 23 16:25:38 2019
Return-Path: <fgont@si6networks.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 EE369120099 for <ntp@ietfa.amsl.com>; Tue, 23 Apr 2019 16:25:35 -0700 (PDT)
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, 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 UaCzKObkIQQW for <ntp@ietfa.amsl.com>; Tue, 23 Apr 2019 16:25:33 -0700 (PDT)
Received: from fgont.go6lab.si (fgont.go6lab.si [91.239.96.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E7F92120006 for <ntp@ietf.org>; Tue, 23 Apr 2019 16:25:32 -0700 (PDT)
Received: from [192.168.2.32] (unknown [85.106.4.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by fgont.go6lab.si (Postfix) with ESMTPSA id D5815849D0; Wed, 24 Apr 2019 01:25:26 +0200 (CEST)
To: Miroslav Lichvar <mlichvar@redhat.com>
Cc: ntp@ietf.org
References: <155544937440.24990.5297599214551671091.idtracker@ietfa.amsl.com> <d0be2bea-0e57-022f-16f1-4e682dcc66ad@si6networks.com> <20190418123648.GF5984@localhost> <ceea9343-496f-2842-8255-158b515106b6@si6networks.com> <20190423084853.GB5188@localhost>
From: Fernando Gont <fgont@si6networks.com>
Openpgp: preference=signencrypt
Autocrypt: addr=fgont@si6networks.com; prefer-encrypt=mutual; keydata= mQINBE5so2gBEACzBQBLUy8nzgAzSZn6ViXT6TmZBFNYNqTpPRvTVtUqF6+tkI+IEd9N2E8p pXUXCd0W4dkxz6o7pagnK63m4QSueggvp881RVVHOF8oTSHOdnGxLfLeLNJFKE1FOutU3vod GK/wG/Fwzkv9MebdXpMlLV8nnJuAt66XGl/lU1JrNfrKO4SoYQi4TsB/waUQcygh7OR/PEO0 EttiU8kZUbZNv58WH+PAj/rdZCrgUSiGXiWUQQKShqKnJxLuAcTcg5YRwL8se/V6ciW0QR9i /sr52gSmLLbW5N3hAoO+nv1V/9SjJAUvzXu43k8sua/XlCXkqU7uLj41CRR72JeUZ4DQsYfP LfNPC98ZGTVxbWbFtLXxpzzDDT8i3uo7w1LJ2Ij/d5ezcARqw01HGljWWxnidUrjbTpxkJ9X EllcsH94mer728j/HKzC9OcTuz6WUBP3Crgl6Q47gY5ZIiF0lsmd9/wxbaq5NiJ+lGuBRZrD v0dQx9KmyI0/pH2AF8cW897/6ypvcyD/1/11CJcN+uAGIrklwJlVpRSbKbFtGC6In592lhu7 wnK8cgyP5cTU+vva9+g6P1wehi4bylXdlKc6mMphbtSA+T3WBNP557+mh3L62l4pGaEGidcZ DLYT2Ud18eAJmxU3HnM8P3iZZgeoK7oqgb53/eg96vkONXNIOwARAQABtCVGZXJuYW5kbyBH b250IDxmZ29udEBzaTZuZXR3b3Jrcy5jb20+iQJBBBMBAgArAhsjBQkSzAMABgsJCAcDAgYV CAIJCgsEFgIDAQIeAQIXgAUCTmylpQIZAQAKCRCuJQ1VHU50kv7wD/9fuNtTfxSLk3B3Hs3p ixTy8YXVjdkVwWlnJjFd7BOWmg7sI+L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/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <20190423084853.GB5188@localhost>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/zWjOyi46z_vFD5dEKdU2yCEsrzU>
Subject: Re: [Ntp] New I-D: NTP Port Randomization (draft-gont-ntp-port-randomization-00.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, 23 Apr 2019 23:25:36 -0000

On 23/4/19 10:48, Miroslav Lichvar wrote:
> On Fri, Apr 19, 2019 at 12:56:04AM +0200, Fernando Gont wrote:
>> On 18/4/19 14:36, Miroslav Lichvar wrote:
>>> The source port in client mode packets can be random and it can also
>>> change with each request, which might be recommended in the document.
>>> Most NTP clients do that.
>>
>> FWIW, I'm running ntpd 4.2.8p11@1.3728-o on Ubuntu, and all packets use
>> src port 123.
> 
> Yes, ntpd and ntpdate (without -q or -d) seem to be in the minority of
> clients using source port 123.

Any clues whether in other cases they explicitly randomize the source
port, or rely on the kernel doing port randomization?



>>> The source port in active mode packets doesn't necessarily have to be
>>> 123. It can be random if the other peer is not expected to have a
>>> permanent association with the peer, but it must not change between
>>> requests as that would create new assocations.
>>
>> Are you referring to to symmetric mode? My understanding is that if one
>> of the peers employs a port other than 123, then symmetric mode would
>> result in two different associations, rather than a single one. Am I
>> missing something?
> 
> Yes, symmetric mode.
> 
> If both peers are using the active mode (i.e. permanent association),
> they need to use the same port numbers in order to avoid creating more
> associations. If one of them is expected to be using passive mode
> (i.e. ephemeral association or stateless), I think the active peer can
> use any source port as long as it doesn't change (frequently). 

Stupid question: Can the peer doing active mode assume that the other
peer will be using passive mode? I don't recall of the top of my head:
is symmetric mode where both peers employ active mode supported? (as in
e.g. TCP simultaneous open)

If use of symmetric mode always means that one peer does passive mode,
and the other does active mode, then it would be safe to randomize the
port on the peer doing active mode.

OTOH, if symmetric mode where both endpoints do active mode is
supported, then it would seem to me it wouldn't be possible to randomize
the port on symmetric mode -- since otherwise you wouldn't know which
port to connect to.

Thanks!

Cheers,
-- 
Fernando Gont
SI6 Networks
e-mail: fgont@si6networks.com
PGP Fingerprint: 6666 31C6 D484 63B2 8FB1 E3C4 AE25 0D55 1D4E 7492





From nobody Tue Apr 23 23:12: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 3A0D5120111 for <ntp@ietfa.amsl.com>; Tue, 23 Apr 2019 23:12:49 -0700 (PDT)
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 LtAffILil9Jr for <ntp@ietfa.amsl.com>; Tue, 23 Apr 2019 23:12:47 -0700 (PDT)
Received: from mx0.uni-regensburg.de (mx0.uni-regensburg.de [194.94.157.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DB30B12002E for <ntp@ietf.org>; Tue, 23 Apr 2019 23:12:46 -0700 (PDT)
Received: from mx0.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 04015600073B for <ntp@ietf.org>; Wed, 24 Apr 2019 08:12:43 +0200 (CEST)
Received: from mx1.uni-regensburg.de (mx1.uni-regensburg.de [IPv6:2001:638:a05:137:165:0:3:bdf7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx.uni-regensburg.de", Issuer "Uni Regensburg CA - G01" (not verified)) by mx0.uni-regensburg.de (Postfix) with ESMTPS id 0224E6000732 for <ntp@ietf.org>; Wed, 24 Apr 2019 08:12:43 +0200 (CEST)
Received: from mx1.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id EB0B66000067 for <ntp@ietf.org>; Wed, 24 Apr 2019 08:12:42 +0200 (CEST)
Received: from gwsmtp.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by mx1.uni-regensburg.de (Postfix) with ESMTP id D70826000065 for <ntp@ietf.org>; Wed, 24 Apr 2019 08:12:41 +0200 (CEST)
Received: from uni-regensburg-smtp1-MTA by gwsmtp.uni-regensburg.de with Novell_GroupWise; Wed, 24 Apr 2019 08:12:41 +0200
Message-Id: <5CBFFE58020000A100030E70@gwsmtp.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.1.1 
Date: Wed, 24 Apr 2019 08:12:40 +0200
From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
To: <mlichvar@redhat.com>,"Fernando Gont" <fgont@si6networks.com>
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <155544937440.24990.5297599214551671091.idtracker@ietfa.amsl.com> <d0be2bea-0e57-022f-16f1-4e682dcc66ad@si6networks.com> <20190418123648.GF5984@localhost> <ceea9343-496f-2842-8255-158b515106b6@si6networks.com> <20190423084853.GB5188@localhost> <890da574-a283-9ccc-28fc-19d500920d36@si6networks.com>
In-Reply-To: <890da574-a283-9ccc-28fc-19d500920d36@si6networks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
X-PMX-local: 5CBFFE5B_29249_116_1
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/PTzPkn6aoI6yaMn86UKOMhoJO88>
Subject: [Ntp] Antw: Re: New I-D: NTP Port Randomization (draft-gont-ntp-port-randomization-00.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: Wed, 24 Apr 2019 06:12:49 -0000

>>> Fernando Gont <fgont@si6networks.com> schrieb am 24.04.2019 um 01:17 in
Nachricht <890da574-a283-9ccc-28fc-19d500920d36@si6networks.com>:
> On 23/4/19 10:48, Miroslav Lichvar wrote:
>> On Fri, Apr 19, 2019 at 12:56:04AM +0200, Fernando Gont wrote:
>>> On 18/4/19 14:36, Miroslav Lichvar wrote:
>>>> The source port in client mode packets can be random and it can also
>>>> change with each request, which might be recommended in the document.
>>>> Most NTP clients do that.
>>>
>>> FWIW, I'm running ntpd 4.2.8p11@1.3728‑o on Ubuntu, and all packets use
>>> src port 123.
>> 
>> Yes, ntpd and ntpdate (without ‑q or ‑d) seem to be in the minority of
>> clients using source port 123.
> 
> Any clues whether in other cases they explicitly randomize the source
> port, or rely on the kernel doing port randomization?

Basically I think there are only two cases:
1) You care and pick a port number like 123
2) You don't care and use 0 as port number, causing the OS to pick one for
you

I see no point of explicitly selecting a random post, specifically when you
can't be sure whether another process has picked that already, too.

[...]

Regards,
Ulrich Windl


From nobody Wed Apr 24 00:07:03 2019
Return-Path: <fgont@si6networks.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 9E1691202E9 for <ntp@ietfa.amsl.com>; Wed, 24 Apr 2019 00:07:01 -0700 (PDT)
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 lB6JxMAR4RO4 for <ntp@ietfa.amsl.com>; Wed, 24 Apr 2019 00:06:58 -0700 (PDT)
Received: from fgont.go6lab.si (fgont.go6lab.si [IPv6:2001:67c:27e4::14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5ADF61201EC for <ntp@ietf.org>; Wed, 24 Apr 2019 00:06:57 -0700 (PDT)
Received: from [192.168.2.32] (unknown [85.106.4.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by fgont.go6lab.si (Postfix) with ESMTPSA id C980D84920; Wed, 24 Apr 2019 09:06:53 +0200 (CEST)
To: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>, mlichvar@redhat.com
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <155544937440.24990.5297599214551671091.idtracker@ietfa.amsl.com> <d0be2bea-0e57-022f-16f1-4e682dcc66ad@si6networks.com> <20190418123648.GF5984@localhost> <ceea9343-496f-2842-8255-158b515106b6@si6networks.com> <20190423084853.GB5188@localhost> <890da574-a283-9ccc-28fc-19d500920d36@si6networks.com> <5CBFFE58020000A100030E70@gwsmtp.uni-regensburg.de>
From: Fernando Gont <fgont@si6networks.com>
Openpgp: preference=signencrypt
Autocrypt: addr=fgont@si6networks.com; prefer-encrypt=mutual; keydata= mQINBE5so2gBEACzBQBLUy8nzgAzSZn6ViXT6TmZBFNYNqTpPRvTVtUqF6+tkI+IEd9N2E8p pXUXCd0W4dkxz6o7pagnK63m4QSueggvp881RVVHOF8oTSHOdnGxLfLeLNJFKE1FOutU3vod GK/wG/Fwzkv9MebdXpMlLV8nnJuAt66XGl/lU1JrNfrKO4SoYQi4TsB/waUQcygh7OR/PEO0 EttiU8kZUbZNv58WH+PAj/rdZCrgUSiGXiWUQQKShqKnJxLuAcTcg5YRwL8se/V6ciW0QR9i /sr52gSmLLbW5N3hAoO+nv1V/9SjJAUvzXu43k8sua/XlCXkqU7uLj41CRR72JeUZ4DQsYfP LfNPC98ZGTVxbWbFtLXxpzzDDT8i3uo7w1LJ2Ij/d5ezcARqw01HGljWWxnidUrjbTpxkJ9X EllcsH94mer728j/HKzC9OcTuz6WUBP3Crgl6Q47gY5ZIiF0lsmd9/wxbaq5NiJ+lGuBRZrD v0dQx9KmyI0/pH2AF8cW897/6ypvcyD/1/11CJcN+uAGIrklwJlVpRSbKbFtGC6In592lhu7 wnK8cgyP5cTU+vva9+g6P1wehi4bylXdlKc6mMphbtSA+T3WBNP557+mh3L62l4pGaEGidcZ DLYT2Ud18eAJmxU3HnM8P3iZZgeoK7oqgb53/eg96vkONXNIOwARAQABtCVGZXJuYW5kbyBH b250IDxmZ29udEBzaTZuZXR3b3Jrcy5jb20+iQJBBBMBAgArAhsjBQkSzAMABgsJCAcDAgYV CAIJCgsEFgIDAQIeAQIXgAUCTmylpQIZAQAKCRCuJQ1VHU50kv7wD/9fuNtTfxSLk3B3Hs3p ixTy8YXVjdkVwWlnJjFd7BOWmg7sI+LDhpjGfT6+ddOiwkumnvUZpObodj4ysH0i8c7P4C5t F9yu7WjklSlrB5Rth2CGChg5bKt541z2WHkFFxys9qB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8QoOwi1N+iZNdewV5Zfq+ 29NlQLnVPjCRCKbaz9k6RJ2oIti55YUI6zSsL3lmlOXsRbXN5bRswFczkNSCJxJMlDiyAUIC WOay7ymzvgzPa+BY/mYn94vRaurDQ4/ljOfj6oqgfjts+dJev4Jj89vp8MQI3KJpZPEAEQEA AYkCJQQYAQIADwUCTmyjaAIbDAUJEswDAAAKCRCuJQ1VHU50km4xEACho45PZrUjY4Zl2opR DFNo5a6roTOPpgwO9PcBb3I5F8yX2Dnew+9OhgWXbBhAFq4DCx+9Gjs43Bn60qbZTDbLGJ/m 8N4PwEiq0e5MKceYcbetEdEUWhm5L6psU9ZZ82GR3UGxPXYe+oifEoJjOXQ39avf9S8p3yKP Diil0E79rn7LbJjMcgMLyjFg9SDoJ6pHLtniJoDhEAaSSgeV7Y745+gyMIdtQmrFHfqrFdjq D6G0HE+Z68ywc5KN67YxhvhBmSycs1ZSKAXv1zLDlXdmjHDHkU3xMcB+RkuiTba8yRFYwb/n j62CC4NhFTuIKOc4ta3dJsyXTGh/hO9UjWUnmAGfd0fnzTBZF8Qlnw/8ftx5lt4/O+eqY1EN RITScnPzXE/wMOlTtdkddQ+QN6xt6jyR2XtAIi7aAFHypIqA3lLI9hF9x+lj4UQ2yA9LqpoX 6URpPOd13JhAyDe47cwsP1u9Y+OBvQTVLSvw7Liu2b4KjqL4lx++VdBi7dXsjJ6kjIRjI6Lb WVpxe8LumMCuVDepTafBZ49gr7Fgc4F9ZSCo6ChgQNLn6WDzIkqFX+42KuHz90AHWhuW+KZR 1aJylERWeTcMCGUSBptd48KniWmD6kPKpzwoMkJtEXTuO2lVuborxzwuqOTNuYg9lWDl7zKt wPI9brGzquUHy4qRrA==
Message-ID: <16e4d2cc-36ff-4c54-6b33-79bd650d6795@si6networks.com>
Date: Wed, 24 Apr 2019 08:36:58 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <5CBFFE58020000A100030E70@gwsmtp.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/zlI2wgM72pUm8KuQLmWfHDBA0wU>
Subject: Re: [Ntp] Antw: Re: New I-D: NTP Port Randomization (draft-gont-ntp-port-randomization-00.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: Wed, 24 Apr 2019 07:07:02 -0000

On 24/4/19 08:12, Ulrich Windl wrote:
>>>> Fernando Gont <fgont@si6networks.com> schrieb am 24.04.2019 um 01:17 in
> Nachricht <890da574-a283-9ccc-28fc-19d500920d36@si6networks.com>:
>> On 23/4/19 10:48, Miroslav Lichvar wrote:
>>> On Fri, Apr 19, 2019 at 12:56:04AM +0200, Fernando Gont wrote:
>>>> On 18/4/19 14:36, Miroslav Lichvar wrote:
>>>>> The source port in client mode packets can be random and it can also
>>>>> change with each request, which might be recommended in the document.
>>>>> Most NTP clients do that.
>>>>
>>>> FWIW, I'm running ntpd 4.2.8p11@1.3728‑o on Ubuntu, and all packets use
>>>> src port 123.
>>>
>>> Yes, ntpd and ntpdate (without ‑q or ‑d) seem to be in the minority of
>>> clients using source port 123.
>>
>> Any clues whether in other cases they explicitly randomize the source
>> port, or rely on the kernel doing port randomization?
> 
> Basically I think there are only two cases:
> 1) You care and pick a port number like 123
> 2) You don't care and use 0 as port number, causing the OS to pick one for
> you
> 
> I see no point of explicitly selecting a random post, specifically when you
> can't be sure whether another process has picked that already, too.

Well, if you care about doing port randomization, but the OS does not
implement it, maybe that's your only option?

-- yes, you don't know if the port has been picked already, so you'd
have to consider the case where bind() fails, and you need to pick a
different random port and try again...


-- 
Fernando Gont
SI6 Networks
e-mail: fgont@si6networks.com
PGP Fingerprint: 6666 31C6 D484 63B2 8FB1 E3C4 AE25 0D55 1D4E 7492





From nobody Wed Apr 24 01:17:14 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 1B9521200F6 for <ntp@ietfa.amsl.com>; Wed, 24 Apr 2019 01:17:12 -0700 (PDT)
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 zTUWBrpTKJzp for <ntp@ietfa.amsl.com>; Wed, 24 Apr 2019 01:17:10 -0700 (PDT)
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 6F3F71200A4 for <ntp@ietf.org>; Wed, 24 Apr 2019 01:17:10 -0700 (PDT)
Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C534F85545; Wed, 24 Apr 2019 08:17:09 +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 1A72A646D4; Wed, 24 Apr 2019 08:17:08 +0000 (UTC)
Date: Wed, 24 Apr 2019 10:16:53 +0200
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Daniel Franke <dfoxfranke@gmail.com>
Cc: NTP WG <ntp@ietf.org>
Message-ID: <20190424081653.GA26137@localhost>
References: <20190423154616.GB11966@localhost> <CAJm83bA+UZEGBM0WtN1S0AnUrjvpgud2BQJLQ7NF0bTNG2uP9A@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAJm83bA+UZEGBM0WtN1S0AnUrjvpgud2BQJLQ7NF0bTNG2uP9A@mail.gmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 24 Apr 2019 08:17:09 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/Fnep0jkWYMz5iHL3j2GB8s57KIY>
Subject: Re: [Ntp] Switching NTS to AES-GCM-SIV?
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, 24 Apr 2019 08:17:12 -0000

On Tue, Apr 23, 2019 at 12:01:38PM -0400, Daniel Franke wrote:
> AES-GCM-SIV's misuse-resistance properties are weaker than AES-SIV's:
> its security bounds gradually degrade if you reuse the same nonce too
> many times. In mainstream use cases this isn't any cause for concern
> because nonce reuse should be rare, but I don't want to encumber our
> choice of MTI algorithm with the assumption that it will *never* be a
> concern.

In what way is NTS different from the mainstream in expected nonce reuse?

> With that said, in all but weird exceptional cases that may or may not
> exist, I definitely encourage implementers to support AES-GCM-SIV in
> addition to AES-SIV, and to put AES-GCM-SIV ahead of AES-SIV in their
> preference ordering when negotiating what to use.

I'm not sure I follow here. If you recommend implementations to
support and prefer AES-GCM-SIV, and it is found to be problematic in
the NTS use case later, what difference will it make that they already
support AES-SIV-CMAC? They will still need to be updated/reconfigured
to actually use it.

NTS implementations supporting both will just be more complex and have
a larger attack surface.

-- 
Miroslav Lichvar


From nobody Wed Apr 24 01:34:59 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 37C8C120180 for <ntp@ietfa.amsl.com>; Wed, 24 Apr 2019 01:34:58 -0700 (PDT)
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 jBM0n9Jf9V2x for <ntp@ietfa.amsl.com>; Wed, 24 Apr 2019 01:34:57 -0700 (PDT)
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 F28451200A4 for <ntp@ietf.org>; Wed, 24 Apr 2019 01:34:56 -0700 (PDT)
Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A0409308404C; Wed, 24 Apr 2019 08:34:56 +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 E8B8D5D705; Wed, 24 Apr 2019 08:34:55 +0000 (UTC)
Date: Wed, 24 Apr 2019 10:34:40 +0200
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Fernando Gont <fgont@si6networks.com>
Cc: ntp@ietf.org
Message-ID: <20190424083440.GB26137@localhost>
References: <155544937440.24990.5297599214551671091.idtracker@ietfa.amsl.com> <d0be2bea-0e57-022f-16f1-4e682dcc66ad@si6networks.com> <20190418123648.GF5984@localhost> <ceea9343-496f-2842-8255-158b515106b6@si6networks.com> <20190423084853.GB5188@localhost> <890da574-a283-9ccc-28fc-19d500920d36@si6networks.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <890da574-a283-9ccc-28fc-19d500920d36@si6networks.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 24 Apr 2019 08:34:56 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/hITXrVftKuvu9hmbP_R_dMO0xx0>
Subject: Re: [Ntp] New I-D: NTP Port Randomization (draft-gont-ntp-port-randomization-00.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: Wed, 24 Apr 2019 08:34:58 -0000

On Wed, Apr 24, 2019 at 01:17:43AM +0200, Fernando Gont wrote:
> On 23/4/19 10:48, Miroslav Lichvar wrote:
> > Yes, ntpd and ntpdate (without -q or -d) seem to be in the minority of
> > clients using source port 123.
> 
> Any clues whether in other cases they explicitly randomize the source
> port, or rely on the kernel doing port randomization?

I think most, if not all, rely on the OS to do that. When there is no
OS, it seems it's common to use a fixed port, but different from 123.
There are many peaks in the port distribution observed on servers.

> Stupid question: Can the peer doing active mode assume that the other
> peer will be using passive mode? I don't recall of the top of my head:
> is symmetric mode where both peers employ active mode supported? (as in
> e.g. TCP simultaneous open)

It depends on the configuration. If a peer has the other peer
specified in the config, it's using the active mode. There could be an
option to enable random source port for the case when I know the other
peer doesn't have this one specified in the config (e.g. because it's
behind NAT).

> OTOH, if symmetric mode where both endpoints do active mode is
> supported, then it would seem to me it wouldn't be possible to randomize
> the port on symmetric mode -- since otherwise you wouldn't know which
> port to connect to.

In the general case yes, but it could be enabled in the configuration file.

-- 
Miroslav Lichvar


From nobody Wed Apr 24 07:58:25 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 11D151203CC for <ntp@ietfa.amsl.com>; Wed, 24 Apr 2019 07:58:03 -0700 (PDT)
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 7EdmDBSERGne for <ntp@ietfa.amsl.com>; Wed, 24 Apr 2019 07:58:01 -0700 (PDT)
Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (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 8F32B1203C5 for <ntp@ietf.org>; Wed, 24 Apr 2019 07:58:00 -0700 (PDT)
Received: by mail-lj1-x22a.google.com with SMTP id p14so17183641ljg.5 for <ntp@ietf.org>; Wed, 24 Apr 2019 07:58:00 -0700 (PDT)
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=BEDceHy44PkrvFcOIXWex5BtLS7G1BgwlVg128ypwUk=; b=GiytCX4xFu13asnwza2OzJF6dSTbrRA8HMKdIDc2N0SfYOHf0abfj1fLOWkycuQ75X 8qVW5kTK4/7Y5Wp77SvqjSo552ww+2FR9ricDwcwx6tr6rZ8xzIeD/oThdLu6m0DAxvS JdHaoe8Fqcpim25m8bAE0UpqRWBMcnMqVxDmRfAmO1t0X95paG7bZ3ND17M3HHXA1sKv yu5QBgrKvIV7r4EZKNvVzvCQXbgVicD647736wk/GI75QQjbj4GcjYG1HqNGccryZiRt XpYMbWe0lwJrs4CFgOZhHdFqtxGP02CE5fiFk0irtvHnf0FqL/RzkjrAv43fN6riC6h1 VvZw==
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=BEDceHy44PkrvFcOIXWex5BtLS7G1BgwlVg128ypwUk=; b=epCTmTkakVUhNvQaujYhU+ffGXOrMi96ycXHio2lpQtBY6ickbLKYZ/BStDhMwNpEH ov6bHcXAFrDm1D49F6DXmvWsmVelJV7ZxJBOqk9+T4Gql7PoNqj20qQ6vsWyDkN6M4Xe a8U4Fv6KHWBwD1YXJupicNcwbMWfHCsdwaXZCmnlAv7fEoOw09Ce7mcX7biHlj4QFDQF c/J2LdlHza2wUnEJcWDN8PMRM9FbFl5J0hEcwdUa3HGXXKAg04k+TPFs3alTIIcR6jkb ykGrbyj2aSPmUWdc7npktdd7K7OVTLHz1wJdwKA/UNHZzACqjUM1AD8zrohgCyMZ8QlY r56A==
X-Gm-Message-State: APjAAAVATcoI8OD2qgMx+CYILjkd0Dl7D5+/doUYJGmKIkzdTwb0RrNc VNdReTD69lxv9ZF5JJ2URuSJ6hqICXEXmwry4/E=
X-Google-Smtp-Source: APXvYqxt2U2R9bQZvsHooFKVudnUnsY80sYtBjs1cnhFMchELekpF3fWYeOF7s41RCXOMqYDXEtp+JLu/fnmXznJqaE=
X-Received: by 2002:a2e:5d94:: with SMTP id v20mr16316516lje.138.1556117878654;  Wed, 24 Apr 2019 07:57:58 -0700 (PDT)
MIME-Version: 1.0
References: <CACsn0c=rWPFu5Y-EkJCyqZG56nrniYM+kGmxrgTDkyaR3TBQ_g@mail.gmail.com> <OFCEF6F67F.7D13AC6D-ONC12583DE.0025CC54-C12583DE.00276987@ptb.de>
In-Reply-To: <OFCEF6F67F.7D13AC6D-ONC12583DE.0025CC54-C12583DE.00276987@ptb.de>
From: Watson Ladd <watsonbladd@gmail.com>
Date: Wed, 24 Apr 2019 07:57:47 -0700
Message-ID: <CACsn0cmue5AtFKtdgtWVaXVG=OwjSjcsVfCMgCX=xPJ=UoE5tw@mail.gmail.com>
To: kristof.teichel@ptb.de, NTP WG <ntp@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000062cf04058747ed02"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/IzRdjHDZqmOA6ZbKxnwucocKOKE>
Subject: Re: [Ntp] [NTP] Using NTS for other negotiations (WAS: No more options for NTP)
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, 24 Apr 2019 14:58:10 -0000

--00000000000062cf04058747ed02
Content-Type: text/plain; charset="UTF-8"

On Tue, Apr 16, 2019, 12:10 AM <kristof.teichel@ptb.de> wrote:

> Hey all, hey Watson,
>
> I can't speak for everyone of course, but personally, I felt that I
> couldn't comment on the suggestion because I didn't feel I understood
> enough of what it entailed.
> Would you care to elaborate a bit on how you propose this would  work?
>
Certainly.

The goal I have is to sunset NTP without security as well as provide
solution to the problems of NTP v4

When I look at proposals like I-Do or the smearing proposal, or interleaved
mode, these have to be very painfully arranged because extensions in NTP
are broken. But NTS provides a similar client advertises capability and
server selects capability flow, and is not constrained by the need to
maintain close similarity to NTP or eschew extensions. Something like an
I-Do inquiry sent in the client NTS-KE request and then responded to in the
server's response in a new packet type would provide a feature discovery
mechanism. I think this will be a much more flexible approach then
proposals that try to cram everything into a packet.

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

<div dir=3D"ltr"><div dir=3D"auto"><div><br><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Tue, Apr 16, 2019, 12:10 AM  &lt;<=
a href=3D"mailto:kristof.teichel@ptb.de" target=3D"_blank">kristof.teichel@=
ptb.de</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font size=3D=
"2" face=3D"sans-serif">Hey all, hey Watson,</font>
<br>
<br><font size=3D"2" face=3D"sans-serif">I can&#39;t speak for everyone of =
course,
but personally, I felt that I couldn&#39;t comment on the suggestion becaus=
e
I didn&#39;t feel I understood enough of what it entailed.</font>
<br><font size=3D"2" face=3D"sans-serif">Would you care to elaborate a bit =
on
how you propose this would =C2=A0work?</font>
<br></blockquote></div></div><div dir=3D"auto">Certainly.</div><div dir=3D"=
auto"><br></div><div dir=3D"auto">The goal I have is to sunset NTP without =
security as well as provide solution to the problems of NTP v4</div><div di=
r=3D"auto"><br></div><div dir=3D"auto">When I look at proposals like I-Do o=
r the smearing proposal, or interleaved mode, these have to be very painful=
ly arranged because extensions in NTP are broken. But NTS provides a simila=
r client advertises capability and server selects capability flow, and is n=
ot constrained by the need to maintain close similarity to NTP or eschew ex=
tensions. Something like an I-Do inquiry sent in the client NTS-KE request =
and then responded to in the server&#39;s response in a new packet type wou=
ld provide a feature discovery mechanism. I think this will be a much more =
flexible approach then proposals that try to cram everything into a packet.=
</div></div>
</div>

--00000000000062cf04058747ed02--


From nobody Thu Apr 25 02:55:33 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 E9588120091; Thu, 25 Apr 2019 02:55:24 -0700 (PDT)
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.95.0
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: ntp@ietf.org
Message-ID: <155618612487.23454.14234531863066140959@ietfa.amsl.com>
Date: Thu, 25 Apr 2019 02:55:24 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/eMGwc4SsuznCn4K1OeW2jJs275k>
Subject: [Ntp] I-D Action: draft-mlichvar-ntp-correction-field-04.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: Thu, 25 Apr 2019 09:55:25 -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           : NTP Correction Field
        Author          : Miroslav Lichvar
	Filename        : draft-mlichvar-ntp-correction-field-04.txt
	Pages           : 7
	Date            : 2019-04-25

Abstract:
   This document specifies an extension field for the Network Time
   Protocol (NTP) which improves resolution of specific fields in the
   NTP header and allows network devices such as switches and routers to
   modify NTP packets with corrections to improve accuracy of the
   synchronization in the network.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-mlichvar-ntp-correction-field/

There are also htmlized versions available at:
https://tools.ietf.org/html/draft-mlichvar-ntp-correction-field-04
https://datatracker.ietf.org/doc/html/draft-mlichvar-ntp-correction-field-04

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-mlichvar-ntp-correction-field-04


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 Thu Apr 25 05:17:35 2019
Return-Path: <fgont@si6networks.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 25D8F120194 for <ntp@ietfa.amsl.com>; Thu, 25 Apr 2019 05:17:33 -0700 (PDT)
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, RCVD_IN_DNSWL_NONE=-0.0001, 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 dePddhDTCfzm for <ntp@ietfa.amsl.com>; Thu, 25 Apr 2019 05:17:30 -0700 (PDT)
Received: from fgont.go6lab.si (fgont.go6lab.si [91.239.96.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7EAB0120047 for <ntp@ietf.org>; Thu, 25 Apr 2019 05:17:29 -0700 (PDT)
Received: from [192.168.2.32] (unknown [85.106.4.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by fgont.go6lab.si (Postfix) with ESMTPSA id B62A787F7A; Thu, 25 Apr 2019 14:17:25 +0200 (CEST)
To: Miroslav Lichvar <mlichvar@redhat.com>
Cc: ntp@ietf.org
References: <155544937440.24990.5297599214551671091.idtracker@ietfa.amsl.com> <d0be2bea-0e57-022f-16f1-4e682dcc66ad@si6networks.com> <20190418123648.GF5984@localhost> <ceea9343-496f-2842-8255-158b515106b6@si6networks.com> <20190423084853.GB5188@localhost> <890da574-a283-9ccc-28fc-19d500920d36@si6networks.com> <20190424083440.GB26137@localhost>
From: Fernando Gont <fgont@si6networks.com>
Openpgp: preference=signencrypt
Autocrypt: addr=fgont@si6networks.com; prefer-encrypt=mutual; keydata= mQINBE5so2gBEACzBQBLUy8nzgAzSZn6ViXT6TmZBFNYNqTpPRvTVtUqF6+tkI+IEd9N2E8p pXUXCd0W4dkxz6o7pagnK63m4QSueggvp881RVVHOF8oTSHOdnGxLfLeLNJFKE1FOutU3vod GK/wG/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PcBb3I5F8yX2Dnew+9OhgWXbBhAFq4DCx+9Gjs43Bn60qbZTDbLGJ/m 8N4PwEiq0e5MKceYcbetEdEUWhm5L6psU9ZZ82GR3UGxPXYe+oifEoJjOXQ39avf9S8p3yKP Diil0E79rn7LbJjMcgMLyjFg9SDoJ6pHLtniJoDhEAaSSgeV7Y745+gyMIdtQmrFHfqrFdjq D6G0HE+Z68ywc5KN67YxhvhBmSycs1ZSKAXv1zLDlXdmjHDHkU3xMcB+RkuiTba8yRFYwb/n j62CC4NhFTuIKOc4ta3dJsyXTGh/hO9UjWUnmAGfd0fnzTBZF8Qlnw/8ftx5lt4/O+eqY1EN RITScnPzXE/wMOlTtdkddQ+QN6xt6jyR2XtAIi7aAFHypIqA3lLI9hF9x+lj4UQ2yA9LqpoX 6URpPOd13JhAyDe47cwsP1u9Y+OBvQTVLSvw7Liu2b4KjqL4lx++VdBi7dXsjJ6kjIRjI6Lb WVpxe8LumMCuVDepTafBZ49gr7Fgc4F9ZSCo6ChgQNLn6WDzIkqFX+42KuHz90AHWhuW+KZR 1aJylERWeTcMCGUSBptd48KniWmD6kPKpzwoMkJtEXTuO2lVuborxzwuqOTNuYg9lWDl7zKt wPI9brGzquUHy4qRrA==
Message-ID: <ff57c10e-4e59-29b2-c255-dea7392a51f5@si6networks.com>
Date: Thu, 25 Apr 2019 14:17:18 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <20190424083440.GB26137@localhost>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/iVixL9T7xZYaeF9jU6LkEPUciGM>
Subject: Re: [Ntp] New I-D: NTP Port Randomization (draft-gont-ntp-port-randomization-00.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: Thu, 25 Apr 2019 12:17:33 -0000

On 24/4/19 10:34, Miroslav Lichvar wrote:
> On Wed, Apr 24, 2019 at 01:17:43AM +0200, Fernando Gont wrote:
>> On 23/4/19 10:48, Miroslav Lichvar wrote:
>>> Yes, ntpd and ntpdate (without -q or -d) seem to be in the minority of
>>> clients using source port 123.
>>
>> Any clues whether in other cases they explicitly randomize the source
>> port, or rely on the kernel doing port randomization?
> 
> I think most, if not all, rely on the OS to do that. When there is no
> OS, it seems it's common to use a fixed port, but different from 123.

Maybe we could make an explicit note that in order to comply with this
spec, you can normally rely on the underlying OS for doing the
randomization part? -- and then learn the selected port to store it in
the NTP data structure.


> There are many peaks in the port distribution observed on servers.

That's interesting. -- any clues if that's an artifact of NATs rewriting
the local port or something else?

(We worked on RFC6056 years ago, and I would have expected that the port
distribution was mostly normal...)


> 
>> Stupid question: Can the peer doing active mode assume that the other
>> peer will be using passive mode? I don't recall of the top of my head:
>> is symmetric mode where both peers employ active mode supported? (as in
>> e.g. TCP simultaneous open)
> 
> It depends on the configuration. If a peer has the other peer
> specified in the config, it's using the active mode.

So it would be active-mode on both sides, leading to a single association?


> There could be an
> option to enable random source port for the case when I know the other
> peer doesn't have this one specified in the config (e.g. because it's
> behind NAT).

I may be confused: how do you connect to the other endpoint if it has
randomized the local port?




>> OTOH, if symmetric mode where both endpoints do active mode is
>> supported, then it would seem to me it wouldn't be possible to randomize
>> the port on symmetric mode -- since otherwise you wouldn't know which
>> port to connect to.
> 
> In the general case yes, but it could be enabled in the configuration file.

Are you assuming symmetric-passive on one side, and symmetric-active on
the other, with the later employing port randomization? -- that's the
only case of symmetric mode where it'd seem to me one can randomize the
port.

Side question: any clues regarding what's the normal deployed model for
symmetric mode? -- i,.e., is the usual thing to configure one peer with
passive mode, and the other in active mode? Or is the usual thing to
configure both peers in active mode? (i.e., have both peers try to
actively mobilize an association), instead of waiting for the other end
to do it).

Thanks!

Cheers,
-- 
Fernando Gont
SI6 Networks
e-mail: fgont@si6networks.com
PGP Fingerprint: 6666 31C6 D484 63B2 8FB1 E3C4 AE25 0D55 1D4E 7492





From nobody Thu Apr 25 06:03:10 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 01797120192; Thu, 25 Apr 2019 06:02:57 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
From: The IESG <iesg-secretary@ietf.org>
To: "IETF-Announce" <ietf-announce@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 6.95.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>, draft-ietf-ntp-bcp@ietf.org, ntp-chairs@ietf.org, suresh@kaloom.com, rfc-editor@rfc-editor.org
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Message-ID: <155619737700.23410.16535462945691247595.idtracker@ietfa.amsl.com>
Date: Thu, 25 Apr 2019 06:02:57 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/g0UINAT6djvnxaeBDlGeD6eNbKM>
Subject: [Ntp] Protocol Action: 'Network Time Protocol Best Current Practices' to Best Current Practice (draft-ietf-ntp-bcp-13.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: Thu, 25 Apr 2019 13:02:57 -0000

The IESG has approved the following document:
- 'Network Time Protocol Best Current Practices'
  (draft-ietf-ntp-bcp-13.txt) as Best Current Practice

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

The IESG contact persons are Éric Vyncke and Suresh Krishnan.

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





Technical Summary

NTP Version 4 (NTPv4) has been widely used since its publication as RFC 5905 [RFC5905].  This documentation is a collection of Best Practices from across the NTP community.

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. The IETF Last Call also resulted in very useful comments and these have been addressed. 

Personnel

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


From nobody Thu Apr 25 07:25:45 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 8AA991200F4 for <ntp@ietfa.amsl.com>; Thu, 25 Apr 2019 07:25:43 -0700 (PDT)
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 54QSdfFqcso4 for <ntp@ietfa.amsl.com>; Thu, 25 Apr 2019 07:25:41 -0700 (PDT)
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 7E2FD1200DE for <ntp@ietf.org>; Thu, 25 Apr 2019 07:25:41 -0700 (PDT)
Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AA4F0314FC00; Thu, 25 Apr 2019 14:25:40 +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 07DF560856; Thu, 25 Apr 2019 14:25:39 +0000 (UTC)
Date: Thu, 25 Apr 2019 16:25:37 +0200
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Fernando Gont <fgont@si6networks.com>
Cc: ntp@ietf.org
Message-ID: <20190425142537.GG26137@localhost>
References: <155544937440.24990.5297599214551671091.idtracker@ietfa.amsl.com> <d0be2bea-0e57-022f-16f1-4e682dcc66ad@si6networks.com> <20190418123648.GF5984@localhost> <ceea9343-496f-2842-8255-158b515106b6@si6networks.com> <20190423084853.GB5188@localhost> <890da574-a283-9ccc-28fc-19d500920d36@si6networks.com> <20190424083440.GB26137@localhost> <ff57c10e-4e59-29b2-c255-dea7392a51f5@si6networks.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <ff57c10e-4e59-29b2-c255-dea7392a51f5@si6networks.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Thu, 25 Apr 2019 14:25:40 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/p-U7vNji6mLeAemkor6k08p5agw>
Subject: Re: [Ntp] New I-D: NTP Port Randomization (draft-gont-ntp-port-randomization-00.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: Thu, 25 Apr 2019 14:25:44 -0000

On Thu, Apr 25, 2019 at 02:17:18PM +0200, Fernando Gont wrote:
> On 24/4/19 10:34, Miroslav Lichvar wrote:
> > I think most, if not all, rely on the OS to do that. When there is no
> > OS, it seems it's common to use a fixed port, but different from 123.
> 
> Maybe we could make an explicit note that in order to comply with this
> spec, you can normally rely on the underlying OS for doing the
> randomization part?

That's a good idea.

> -- and then learn the selected port to store it in
> the NTP data structure.

NTP clients don't need to know their source port. They should just
use an unbound socket, like with most TCP/UDP-based protocols.

Another thing that might be good to include in the document is a
recommendation for minimum time that the socket should be open.
(Some?) public NTP servers receive large amounts of ICMP packets that
seem to be from implementations not waiting long enough for a
response, so when the response actually gets there, the port is
already closed, which triggers an ICMP response.

> > There are many peaks in the port distribution observed on servers.
> 
> That's interesting. -- any clues if that's an artifact of NATs rewriting
> the local port or something else?

I'm not sure. I think at least some part of it are extremely simple
clients using a fixed source port. There are implementations broken in
unique ways and they have a consistent use of the source port. Some
don't even use a random transmit timestamp, i.e. it's trivial to spoof
a response they will accept.

An NTP usage analysis by NIST has a nice graph showing the
distribution of the source port on page 7:
https://nvlpubs.nist.gov/nistpubs/jres/121/jres.121.003.pdf

> > It depends on the configuration. If a peer has the other peer
> > specified in the config, it's using the active mode.
> 
> So it would be active-mode on both sides, leading to a single association?

Yes.

> > In the general case yes, but it could be enabled in the configuration file.
> 
> Are you assuming symmetric-passive on one side, and symmetric-active on
> the other, with the later employing port randomization? -- that's the
> only case of symmetric mode where it'd seem to me one can randomize the
> port.

Yes.

> Side question: any clues regarding what's the normal deployed model for
> symmetric mode? -- i,.e., is the usual thing to configure one peer with
> passive mode, and the other in active mode? Or is the usual thing to
> configure both peers in active mode? (i.e., have both peers try to
> actively mobilize an association), instead of waiting for the other end
> to do it).

My guess is that it's more common for both peers to be configured in
the active mode. They could be configured as clients and it would work
almost exactly the same. I have not seen the passive mode used very
often. But it can be very useful when the server is behind NAT.

-- 
Miroslav Lichvar


From nobody Tue Apr 30 13:46:34 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 C7DBA120373; Tue, 30 Apr 2019 13:46:32 -0700 (PDT)
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.95.1
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: ntp@ietf.org
Message-ID: <155665719277.7656.11662494851158088592@ietfa.amsl.com>
Date: Tue, 30 Apr 2019 13:46:32 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/5tyjt-MASKF8D-6BsIneUN_DMYs>
Subject: [Ntp] I-D Action: draft-ietf-ntp-using-nts-for-ntp-19.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, 30 Apr 2019 20:46:33 -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-19.txt
	Pages           : 43
	Date            : 2019-04-30

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-19
https://datatracker.ietf.org/doc/html/draft-ietf-ntp-using-nts-for-ntp-19

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


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 Tue Apr 30 17:02:54 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 BAEB51203ED for <ntp@ietfa.amsl.com>; Tue, 30 Apr 2019 17:02:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level: 
X-Spam-Status: No, score=-2.002 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] 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 arNUCZwDRyck for <ntp@ietfa.amsl.com>; Tue, 30 Apr 2019 17:02:50 -0700 (PDT)
Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (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 A605C120155 for <ntp@ietf.org>; Tue, 30 Apr 2019 17:02:50 -0700 (PDT)
Received: by mail-qt1-x82c.google.com with SMTP id g4so18461499qtq.10 for <ntp@ietf.org>; Tue, 30 Apr 2019 17:02:50 -0700 (PDT)
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=WTuNWgdEskgPOYJyNkyfvAuCzNMseNbmuCbHRq9tpvk=; b=kq7AlNEYKr5K3IJXFKehG98Pm+MtAguJ9J+LOLaf1PRP++OYsbuSvLdQ9UxC668cRx tQr/xlATjB9SYTpvKxJZgF2wuTzgm/syvlWkxEp5UVdHJKUR/yymg9oPUY7cr/ixXIZ0 qNXQQqnKNfZpODgrKYklZtPSQLgDwSeL1ysVs=
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=WTuNWgdEskgPOYJyNkyfvAuCzNMseNbmuCbHRq9tpvk=; b=IwkbJUPL8us2av461WgsQP82G4nniTIO/6x4dLX0oUS2XaBSoF+1GZCpcVCcR+u5Ao c1acOsDPLMa440/EESfwDJXb9TvP5kIV2B/YQrSdToV2J/dPi/Ow71dOdpnVrEu5WHsI yu1bEbKAYklMvghtc4j414pU6dKdjnl3vUznMlq8exWo34KDRz3MO4dob5ltIdJk/ooS dSv/T5rpvOt/es5lft78x8LpOuQEsruGPlkEEXXb4rWKKcBYaXOFCRqlJV1CUQV2LMMF R9iYcEyYi9Tbddku85WD26bbj8iVxj23wWqWvJtOv53sRqKPBxhR2DcmBoCGSaA4aJHX qwvw==
X-Gm-Message-State: APjAAAXfmE87b4+LsLwTHEXAqTYN3bHPwGbM+jzHMOOfrs3Z7YfwnGqf mzcHFTsXTeWZ0mNmUE4Vk6n0Rld+0ALpLa8Pr3Un0k8PudQ=
X-Google-Smtp-Source: APXvYqyk9t0AHPjf9yXdeON8fsVIN6ZKNBT/s76mldftAQ2/Ib90jfGdMjhAZMW0xhfZF8rEheIdKgrGS1bbpmutaFs=
X-Received: by 2002:a0c:afc8:: with SMTP id t8mr54123791qvc.123.1556668969722;  Tue, 30 Apr 2019 17:02:49 -0700 (PDT)
MIME-Version: 1.0
References: <20190422080620.6323340605C@ip-64-139-1-69.sjc.megapath.net> <9ae82731-6c9c-6c66-6088-2e2a760e6fdd@dansarie.se>
In-Reply-To: <9ae82731-6c9c-6c66-6088-2e2a760e6fdd@dansarie.se>
From: Watson Ladd <watson@cloudflare.com>
Date: Tue, 30 Apr 2019 17:02:38 -0700
Message-ID: <CAN2QdAHAoM01-typ5m+EP03c3dx5O1AEbda1t-t3iY5bvMLrgQ@mail.gmail.com>
To: Marcus Dansarie <marcus@dansarie.se>
Cc: "ntp@ietf.org" <ntp@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/IJtGW9Jc-eq6CjbO1cfKgWTqXD0>
Subject: Re: [Ntp] I-D Action: draft-ietf-ntp-using-nts-for-ntp-18.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: Wed, 01 May 2019 00:02:53 -0000

On Tue, Apr 23, 2019 at 12:32 PM Marcus Dansarie <marcus@dansarie.se> wrote:
>
>
> Thanks for your comments! See my comments inline.
>
> Kind regards,
> Marcus
>
>
> On 2019-04-22 10:06, Hal Murray wrote:
> >
> > Typo, page 20:
> >   Duplicate "Nonetheless, "
>
> Thanks! (I submitted a pull request for this last Wednesday.)
>
> >
> > Page 6, single round trip
> >   That's after the TLS setup.  Right?  How many round trips does that take?
>
> Correct, that's one round trip excluding the TLS setup. The setup is
> expected to take two or three round trips depending on version.
> (Theoretically, PSK could bring this down to one round trip, but I do
> not envisage it being used in this application.)
>
> > Page 13: cookies
> >   Do all cookies have to have the same length?
>
> It is not explicitly required by the draft. I can't see any "sane"
> reason for a server to send cookies of different length in the same reply.
>
> A practical reason for changing cookie length is if a server updates its
> (implementation dependent) cookie format. It could then start replying
> with cookies of different length than before. This could possibly create
> problems if the new cookies are longer than the old ones. To avoid
> sending replies that are longer than the requests, the server would have
> to send zero new cookies as reply to requests containing only one cookie
> placeholder in the hope that the client's next request contains two
> cookie placeholders, thus enabling it to send one cookie back.
> Hopefully, as the old cookies are depleted the client then starts
> sending larger cookie placeholder records.
>
I do not read 5.7 as encouraging using multiple cookie placeholder
fields to send a single cookie back. I actually misread the
specification and thought it required the cookie extension to be
longer then the cookie sent in response. Perhaps this should be
rewarded to encourage the server to send the minimum of {1+cookies
requested, 1+number of cookies that fit in total length of cookie
placeholder fields}.

