Re: [Ntp] Drafts on interleaved modes and correction field

Tal Mizrahi <tal.mizrahi.phd@gmail.com> Tue, 31 October 2017 11:53 UTC

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 4FCCA138FA0 for <ntp@ietfa.amsl.com>; Tue, 31 Oct 2017 04:53:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 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_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=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 1IfvwKbsOrLx for <ntp@ietfa.amsl.com>; Tue, 31 Oct 2017 04:53:54 -0700 (PDT)
Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B507C13F6BC for <ntp@ietf.org>; Tue, 31 Oct 2017 04:53:53 -0700 (PDT)
Received: by mail-oi0-x231.google.com with SMTP id c202so26240218oih.9 for <ntp@ietf.org>; Tue, 31 Oct 2017 04:53:53 -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=wdNZYdPbnplgTnqydoJwqKffy9yvH+WRPG9bsfNxfzY=; b=YVD6q40kumxoZgtLx9AGIKmezFk+YZIGE/0zCFyUHwJo/5RR/HsPmuO6utxbnWFfVt F2zxNsSxh/rJiWy0hwlYETc2uy5xVqleD7jfiEBnxl+1UrOyCLMyelZi9xt0jgfDb/Iu uBedHnTXkDBEOezOzuJQ6TPJo6b9eo1Z3pAtzBRUkmR//TSIDHeuBpJE0/jdWNin8O90 b3gsR6ccuaDSXjm49XJ2hBuyDVD2Y9SCCX7ZhFz6cWF0qvNXo/nI33S83oBuzGV+/DZy Swh+F+XxDTYN98WfZdoQ4fjuLYpMk1TGPPTzp9j628Wc1lfKrc7hq3cmSmd1rJp7zGX1 w9aw==
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=wdNZYdPbnplgTnqydoJwqKffy9yvH+WRPG9bsfNxfzY=; b=lYnN0LF82DTvA6hd1uUOOWYmb1XhQkuy3zb6L4QMllGcc9in08loxWncGTaUwvwTfx LvdV8aIvkYeuhI7fcWTUBjr8UgXy3+RClZMADgrgH2VUxBksUMDzUDs0y77mEOBX5XpT NBvhoUicozReIf8G309zmzOTetMarITGP45Z5FjozHlYgYAVQ2BebF+0o662Yx0Knlzt LYmCUfpYFFhQr+EWbx52PIQUEBGIDgPVLQD53lJB6+bQoUxF4PbJXf0PcGZqEgWPL0nP r5bG5e2bo5C/PzgOL6XBcu64By+tGXyqcbbNV+iuvRVeYe6u27EOWLN8iOS5Wh2Lyybv mAcA==
X-Gm-Message-State: AMCzsaUxJc+8Q09akp1GUWxqi+Ls/aREv8NQlK7+3STX94oLvtttMVHt f9URADxUMXh3QehgHl+auetjj7O2UAyiGv5Ng4k=
X-Google-Smtp-Source: ABhQp+T7x5eQns5Rz0FfdPodwzNqFvTnjUfAf+CqbksguVEzEGMHh9az/uPzFUF+O7/y8K7+ZdYL6JxNilfJUzPx4ro=
X-Received: by 10.157.89.163 with SMTP id u35mr946980oth.416.1509450833024; Tue, 31 Oct 2017 04:53:53 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.168.25.194 with HTTP; Tue, 31 Oct 2017 04:53:52 -0700 (PDT)
In-Reply-To: <20171031090139.GD15597@localhost>
References: <20171031090139.GD15597@localhost>
From: Tal Mizrahi <tal.mizrahi.phd@gmail.com>
Date: Tue, 31 Oct 2017 13:53:52 +0200
Message-ID: <CABUE3XmV1sUvq0KAJVrQv1sZ8vK6R8GwR+qeO1huTUgnOdujfQ@mail.gmail.com>
To: Miroslav Lichvar <mlichvar@redhat.com>
Cc: ntp@ietf.org, Aanchal Malhotra <aanchal4@bu.edu>
Content-Type: multipart/alternative; boundary="f4030435babcb55c21055cd6684a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/KmrCTjTbJlloskPpYwMc6NTnngw>
Subject: Re: [Ntp] Drafts on interleaved modes and correction field
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.22
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, 31 Oct 2017 11:53:56 -0000

Hi Miroslav, Aanchal,

Regarding the correction field draft: very interesting draft.

A few comments:

1. Section 3 says that the delay is the time difference between the end of
reception until the beginning of transmission.

  It seems to make more sense to measure the delay as the beginning of
reception until the beginning of transmission, because that is the actual
delay of the packet in practice. BTW, this is also the way IEEE 1588
measures the correctionField.

2. "TBD: Requirements on frequency accuracy of the clock."

   NTP does not define accuracy requirements, and I would suggest to
refrain from defining these here as well.

3. "Delay Correction" - please consider using a format that is identical to
the one defined in IEEE 1588.

4. Section 2 - it would be great if you could clarify the fields "Receive
Correction", "Transmit Correction", and "Origin Correction". Having read
this section a couple of times, I could not figure out the units of these
fields, how they are used, and the rationale of why these fields are
required.

5. "The device MAY update the checksum complement field in order to keep
the UDP checksum valid."
   Since this is a "MAY", please clarify the alternatives: either clear the
UDP Checksum field (in IPv4 only), or recompute the UDP Checksum.

6. Security considerations - I would point out that an attacker that
tampers with the correction extension is (roughly) equivalent to a delay
attacker in terms of the potential damage. Therefore, arguably there is no
point in securing the correction extension. I would recommend to leave the
correction extension out of the integrity protection. This possibility is
mentioned on the second par of Section 7, but I would suggest to rephrase
it to "this is what we recommend".

7. Finally, one may consider a slightly different approach, where each hop
along the path adds a separate extension field, representing the residence
time of the current hop. Obviously this approach has some disadvantages,
but the advantage is that it provides detailed information about the delay
and delay variation in each hop. There is also potential to secure each
extension field separately using its own HMAC. Something to consider...


Regards,
Tal.



On Tue, Oct 31, 2017 at 11:01 AM, Miroslav Lichvar <mlichvar@redhat.com>
wrote:

> Hi,
>
> there are two new drafts intended for the NTP working group.
>
> Aanchal and I have been working on a draft that would specify the
> interleaved modes which are supported in some NTP implementations.
>
> https://tools.ietf.org/html/draft-mlichvar-ntp-interleaved-modes-00
>
> The second draft describes the PTP-like correction field that I
> proposed on this list a couple times, but it never had a more detailed
> specification.
>
> https://tools.ietf.org/html/draft-mlichvar-ntp-correction-field-00
>
> Comments and suggestions are welcome.
>
> --
> Miroslav Lichvar
>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
>