Re: [ntpwg] call for adoption (draft-dfranke-ntp-data-minimization)

Daniel Franke <dfoxfranke@gmail.com> Wed, 29 March 2017 13:25 UTC

Return-Path: <ntpwg-bounces+ntp-archives-ahfae6za=lists.ietf.org@lists.ntp.org>
X-Original-To: ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com
Delivered-To: ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7F5A11294EC for <ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com>; Wed, 29 Mar 2017 06:25:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.092
X-Spam-Level:
X-Spam-Status: No, score=-1.092 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, FREEMAIL_FORGED_FROMDOMAIN=0.197, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_DKIM_INVALID=0.01, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" 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 i74OJFL9lh7u for <ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com>; Wed, 29 Mar 2017 06:25:57 -0700 (PDT)
Received: from lists.ntp.org (psp3.ntp.org [185.140.48.241]) by ietfa.amsl.com (Postfix) with ESMTP id A955A126DD9 for <ntp-archives-ahFae6za@lists.ietf.org>; Wed, 29 Mar 2017 06:25:57 -0700 (PDT)
Received: from psp3.ntp.org (localhost.ntp.org [127.0.0.1]) by lists.ntp.org (Postfix) with ESMTP id 6757686DC1B for <ntp-archives-ahFae6za@lists.ietf.org>; Wed, 29 Mar 2017 13:25:57 +0000 (UTC)
X-Original-To: ntpwg@lists.ntp.org
Delivered-To: ntpwg@lists.ntp.org
Received: from mail1.ntp.org (fortinet.ntp.org [10.224.90.254]) by lists.ntp.org (Postfix) with ESMTP id 596F086DAB3 for <ntpwg@lists.ntp.org>; Wed, 29 Mar 2017 13:25:54 +0000 (UTC)
Received: from mail-qk0-f173.google.com ([209.85.220.173]) by mail1.ntp.org with esmtps (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from <dfoxfranke@gmail.com>) id 1ctDbd-0007i7-2k for ntpwg@lists.ntp.org; Wed, 29 Mar 2017 13:25:54 +0000
Received: by mail-qk0-f173.google.com with SMTP id f11so12412476qkb.0 for <ntpwg@lists.ntp.org>; Wed, 29 Mar 2017 06:25:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zzSYCqEqSu4HZoP6z59HEFj7lzt0N3x/tM/1ngdt2kU=; b=CAGRuoSGHdaOrlMMvvy8zMfgiBC3QMLKETQXVEy4ZLCTJQriW/h+0X/31ldadZqAuU lRQmPErAWoQujonj692FqjJjVhcM4X7vQvkWNZI+UkiAgX3LWu5Qg6nxpT+1slYyWrYB NHlBfoZA/WYwyPZDLtW9zN1mt3+0o3C67hkHcaHjXVDFRNmm51JYzZdbtphAn3RyH86B eqdVgk6SiculeVFlmXdWvSw1kD104IuJeXXazRSk12ugn3Gj+fRVMvN7Y9fU/e3zAyUe ij2+K+NrR/uKA3wIbyIexOxo71icQuNY7xVgD9bOsrjSBF92a1+0FYSvj1cpK4HWBz7M jiQQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zzSYCqEqSu4HZoP6z59HEFj7lzt0N3x/tM/1ngdt2kU=; b=LwwLfBsoq6QDleOv/NA1o6WvYOoHvQvTbELjAPM1reTKaraj3lq9WdXzjPnUvV4bIN a24HQPVmsLtYJMu/58w3AfDncmWE1WpA7ve0OQME/UUMI9yE3/9Jf4hVgnormAd40iE9 DjvU/2jXEN4OWRkPcm6Zp7h46jJXrGAsgG3c9zr4BETD1gA1pRBYpq46lC+z2QhJTB8b DOqZpU+uT2+IMzT3fU4nrWyZSwRWbd8aEzNXfourf5wc4N3XXSX7FN44OruXeRlh3Iel ZjyYaCbL1t8Ezu9osZ1m/ada9AnnooRvyfTxbJrJdvwadl+mCoeBosDf8dodAvlHOBVr wiGQ==
X-Gm-Message-State: AFeK/H1vWsxn4qVZAlopWi2nmX+1O1mB7H4+UZP4TvLqP9tLzF7UTAL/ZKusxPp29ML3t/3XOB2t9DAysDVRig==
X-Received: by 10.55.26.160 with SMTP id l32mr501667qkh.10.1490793944348; Wed, 29 Mar 2017 06:25:44 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.12.136.119 with HTTP; Wed, 29 Mar 2017 06:25:43 -0700 (PDT)
In-Reply-To: <20170329094115.GC23511@localhost>
References: <CA564C5C-6CED-4810-BA2F-5433F2525249@isoc.org> <20170327133842.GK8192@localhost> <CAJHGrrTvY0gdPdrWDDJiEbD3hnA6vKWhva4cFzNgt=e6zGY5tA@mail.gmail.com> <20170327153535.GA16225@localhost> <CAMbs7ks+zcZV+d0sRxq=0LD-UbLjOhhpaK=GxvPEX0KJ7rz0=g@mail.gmail.com> <CAJm83bCT5PeSWq6kG8gfOz6Yfw7i8+3ix1yQazNuM9d0-OL3AQ@mail.gmail.com> <346830ae-cffd-0470-ae20-16fee166aa36@nwtime.org> <CAJm83bCvGR4rcRYHKFO57GOy5ZQDYfp0M4fkY7sq=1nsT0Lrfg@mail.gmail.com> <20170329094115.GC23511@localhost>
From: Daniel Franke <dfoxfranke@gmail.com>
Date: Wed, 29 Mar 2017 09:25:43 -0400
Message-ID: <CAJm83bAL0NVHDKAWCrKeTYQ6EUogtPAGh-UQL7S+BjX_yqanQQ@mail.gmail.com>
To: Miroslav Lichvar <mlichvar@redhat.com>
X-SA-Exim-Connect-IP: 209.85.220.173
X-SA-Exim-Rcpt-To: ntpwg@lists.ntp.org
X-SA-Exim-Mail-From: dfoxfranke@gmail.com
X-SA-Exim-Version: 4.2
X-SA-Exim-Scanned: Yes (on mail1.ntp.org)
Subject: Re: [ntpwg] call for adoption (draft-dfranke-ntp-data-minimization)
X-BeenThere: ntpwg@lists.ntp.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: IETF Working Group for Network Time Protocol <ntpwg.lists.ntp.org>
List-Unsubscribe: <http://lists.ntp.org/options/ntpwg>, <mailto:ntpwg-request@lists.ntp.org?subject=unsubscribe>
List-Archive: <http://lists.ntp.org/pipermail/ntpwg/>
List-Post: <mailto:ntpwg@lists.ntp.org>
List-Help: <mailto:ntpwg-request@lists.ntp.org?subject=help>
List-Subscribe: <http://lists.ntp.org/listinfo/ntpwg>, <mailto:ntpwg-request@lists.ntp.org?subject=subscribe>
Cc: ntpwg@lists.ntp.org
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: ntpwg-bounces+ntp-archives-ahfae6za=lists.ietf.org@lists.ntp.org
Sender: ntpwg <ntpwg-bounces+ntp-archives-ahfae6za=lists.ietf.org@lists.ntp.org>

On 3/29/17, Miroslav Lichvar <mlichvar@redhat.com> wrote:
> I'm not sure how much that really helps. Even if other implementations
> sent packets looking exactly like those from openntpd, the timing of
> the packets would still be different. An observer can easily tell if
> it's openntpd, busybox (which is based on openntpd), ntpd, chrony, or
> something else, without actually looking at the values in the packets.
>
> The fixed one-second timer in ntpd not only helps with fingerprinting
> the implementation, it can be also very useful for fingerprinting
> individual ntpd instances as they send requests at the same sub-second
> fraction.
>
> A specification on how exactly should the timing for a given poll
> interval look like (e.g. its distribution and granularity) might help.
> However, adjustments of the polling interval that clients normally do
> to adapt to the stability of the clock and network could still be
> useful for fingerprinting. Suggesting a constant polling interval for
> all NTP clients on the Internet would probably not be a good idea.

So, you've raised two separate issues here.

1. Fingerprinting of individual clients based on the second-fraction
they choose on startup.
2. Fingerprinting of implementations based on their scheduling algorithm.

The first one is a serious but easy problem (just randomize the
second-fraction each time). The second is minor but very difficult,
because it's open-ended and any trivial change to implementation might
lead to some tiny change in timing which could leak something.

I think both of these issues should be out of scope for this document.
This document is addressing interoperability issues by saying that
certain field values in client packets which are contrary to what's
specified by RFC 5905 are okay. But RFC 5905 is silent on nitty-gritty
details of packet scheduling; there's nothing there to update.

Is it worth it at all for the IETF to specify NTP packet scheduling?
I'm inclined toward "no", but if somebody wants to change my mind on
that then please start a new thread for it so that we don't derail
this one any further.

Anyway, you've at least convinced me that matching OpenNTPD isn't much
of a reason to choose 0, since it's pretty unlikely that everybody
else is also going to adopt currently whatever OpenNTPD uses for its
scheduling algorithm. If there's some future cooperation to make
scheduling algorithms match, then at that time the OpenNTPD guys can
just switch their precision field to whatever we decide on.

>> 2. Existing widespread use of this value means we can be confident it
>> won't break anything.
>
> 32 is not as common as 0, but it is used too. Another large precision
> that I often see is 118. I've no idea where that comes from.

Okay, if 32 is already in the wild then I guess I really don't care
either way. So at last count we had two people -- Harlan and Miroslav
-- who want 32. Does anybody still have an opinion in favor of 0, or
can we switch to 32 and move on?
_______________________________________________
ntpwg mailing list
ntpwg@lists.ntp.org
http://lists.ntp.org/listinfo/ntpwg