Re: [Ntp] The bump, or why NTP v5 must specify impulse response

Daniel Franke <dfoxfranke@gmail.com> Mon, 13 April 2020 20:10 UTC

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 3F1D53A1D5E for <ntp@ietfa.amsl.com>; Mon, 13 Apr 2020 13:10:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=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 f7awvs-EC3Oh for <ntp@ietfa.amsl.com>; Mon, 13 Apr 2020 13:10:00 -0700 (PDT)
Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (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 DD5473A1D5D for <ntp@ietf.org>; Mon, 13 Apr 2020 13:09:59 -0700 (PDT)
Received: by mail-io1-xd30.google.com with SMTP id y17so10725027iow.9 for <ntp@ietf.org>; Mon, 13 Apr 2020 13:09:59 -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=3DnfMUcBSRWgEwX18mamjvf2lgOBww+vwQlBiVZxNxQ=; b=pTDiEKdUu1DU83G7eJI3l42+yifILjlMkIpyprH4DS9ZQfvqfTjJhjihCQPcPiV1TV yZeoA11Kn7kroSpW4k5MgFDzEy730UxNUtEa0867VnCmdbWDmpCJ34PeJeL3uGKWptrC 5KnzS6anN7dDszY1kDQeMKbNJYTkG+KDpRIAlr1oZccf8ZPlDLFMAB5hu6Ug1nmGcF92 3ij6vRv3hC96K0NWAvMlvUV805NpJNHUwgcHWranYbwIli9dWc2hns8lCwkzVBZ09aG3 NHTjwTV4VA6xOkfY0tM5PjGERwMXRwVml+TTBLOJXw+u3mCJccA2vSG9zClMCuTyjkmQ mohQ==
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=3DnfMUcBSRWgEwX18mamjvf2lgOBww+vwQlBiVZxNxQ=; b=r5DCZ2U17ude6TpWrO/6Mj6N523UhzvZIMRWK/PLiMWszy1303VG2Jt8YJT9kirD78 YjHIxNZvzqHR7pr6c4XGy/S0+uecmcJ4juq0B1mDodlbbVOUTlbLEvPJi+rvAi47icOY IprjNFxOZEWcZz4JKUtXKuMsAbJ4n7Jn52d+CenJpENUqmuA1QMWWbKgfNGNfRGANmSh 5qmqFnMZljIgZop6YSDd5xI6j1w4lfPkPx6J9I6CNGgOYHnzewA3Zqc71LheL6LDlEam 1U5aY+rtisWXPQQffcpvPhxk4OtAGJqyvhQ54cVKt4uTX6cCXVfPNw39OEuurEmCLTcQ qa9A==
X-Gm-Message-State: AGi0PuZAHgBcclXzudIA3KvwtjsvX1wVoh1wUNMAwSTzciejFjxglD8G BzrlXeRlZMmu+rGR/jW8Yc4xojQXlgUG6iiQSQoSCg2/uEg=
X-Google-Smtp-Source: APiQypK2gFwhA7W7BckD1n4DURrWKKdCe4s6phgDxW1Kg8Ywzre7Sj7LmF1HrZF4GE+H85D/VZQ20nq0P9zKV1oLVoc=
X-Received: by 2002:a02:cc91:: with SMTP id s17mr16614169jap.41.1586808598857; Mon, 13 Apr 2020 13:09:58 -0700 (PDT)
MIME-Version: 1.0
References: <CACsn0c=zzDKP6iBjPJWGF0rkqSaY3AY738ynGwDZO14sdBJ-Bg@mail.gmail.com> <CAJm83bB2A3VUxXX47Y0ubmS9Xne7PRSyV_xHY_D9YvHjqE-vFA@mail.gmail.com> <CACsn0cm3jpKZTUQ=novTgVaFhc1xCJgmUF3oOgdrzQa-HgOCUQ@mail.gmail.com> <CAJm83bAqbMMs2W3SyH+3c17wcC85paY4-_jk2SxczgsxBLyYyA@mail.gmail.com>
In-Reply-To: <CAJm83bAqbMMs2W3SyH+3c17wcC85paY4-_jk2SxczgsxBLyYyA@mail.gmail.com>
From: Daniel Franke <dfoxfranke@gmail.com>
Date: Mon, 13 Apr 2020 16:09:47 -0400
Message-ID: <CAJm83bAQeR_6U3jgmbWzdus3pu+OO2_KP+M9RtbCFYOfDQy4dw@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Cc: NTP WG <ntp@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/c65psB872C-ajr4T7JCMpvbXOYA>
Subject: Re: [Ntp] The bump, or why NTP v5 must specify impulse response
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, 13 Apr 2020 20:10:03 -0000

What motivates my skepticism here, by the way, is a belief that it's
possible to get much, much better performance with better
synchronization algorithms. A number of academic researchers have
experimented with Kalman filters [1][2][3] and gotten phenomenal
results, in the case of [1], two orders of magnitude better than stock
ntpd 4.2.0. I suspect that this could be even further improved with
more accurate network models (Kalman filters would be provably optimal
if network jitter were Gaussian, but we all know it isn't). I want to
avoid specifying any requirements that would discourage or obstruct
this sort of research from being developed into production
implementations.

[1] https://ieeexplore.ieee.org/abstract/document/4268082
[2] http://alumni.media.mit.edu/~aggelos/papers/tuffc_nov04.pdf
[3] https://www.sciencedirect.com/science/article/pii/S1474667015361358

On Mon, Apr 13, 2020 at 3:24 PM Daniel Franke <dfoxfranke@gmail.com> wrote:
>
> I don't think I follow. In what sense does it limit the length of the
> chain, other than that stratum is capped at 16? And what
> characteristic of RFC 5905's recommended input response address the
> problem? (I need to read the book you've referenced before I fully
> understand the problem in the first place; I've ordered it but it'll
> take some time to arrive).
>
> On Mon, Apr 13, 2020 at 3:15 PM Watson Ladd <watsonbladd@gmail.com> wrote:
> >
> >
> >
> > On Mon, Apr 13, 2020, 7:21 AM Daniel Franke <dfoxfranke@gmail.com> wrote:
> >>
> >> On Sun, Apr 12, 2020 at 6:11 PM Watson Ladd <watsonbladd@gmail.com> wrote:
> >> > Section 14.5 of Phase Lock Techniques by Floyd Gardner describes
> >> > difficult problems caused by the accumulation of errors in a chain of
> >> > PLLs under benign conditions, and section 2.2.4 describes the root
> >> > cause, namely an inevitable peak in the transfer function of a second
> >> > order filter. I don't think these are insolvable in NTP v5, but they
> >> > should give pause to the idea that we can avoid needing to specify the
> >> > the synchronization algorithm. The peaking of the PLL needs to be
> >> > controlled, or some thing more complex needs to be specified.
> >>
> >> Are the algorithms in RFC 5905 vulnerable to this? If so, I think that
> >> shoots down any implication that it's a practical necessity to solve
> >> this in the NTPv5 spec, since we've obviously been getting by okay so
> >> far.
> >
> >
> > v4 limits the length of the chain and specifies the input response to have, which solves the problem.
> >
> >>
> >> Just to be clear, though, I'm not proposing that the WG should be
> >> *silent* on synchronization algorithms in v5. Just that whatever we
> >> have to say about it should be in a separate, Informational document,
> >> and can discuss the design space and suggest multiple possibilities
> >> rather than require one particular thing.