Re: [ntpwg] I-D Action: draft-ietf-ntp-checksum-trailer-02.txt

Miroslav Lichvar <mlichvar@redhat.com> Tue, 01 September 2015 13:26 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 80E271B68C6 for <ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com>; Tue, 1 Sep 2015 06:26:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 dNfEBljLuKdX for <ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com>; Tue, 1 Sep 2015 06:26:01 -0700 (PDT)
Received: from lists.ntp.org (lists.ntp.org [IPv6:2001:4f8:fff7:1::7]) by ietfa.amsl.com (Postfix) with ESMTP id CE4451B596B for <ntp-archives-ahFae6za@lists.ietf.org>; Tue, 1 Sep 2015 06:26:01 -0700 (PDT)
Received: from lists.ntp.org (lists.ntp.org [149.20.68.7]) by lists.ntp.org (Postfix) with ESMTP id A6A3286DBCB for <ntp-archives-ahFae6za@lists.ietf.org>; Tue, 1 Sep 2015 13:26:01 +0000 (UTC)
X-Original-To: ntpwg@lists.ntp.org
Delivered-To: ntpwg@lists.ntp.org
Received: from mail1.ntp.org (mail1.ntp.org [IPv6:2001:4f8:fff7:1::5]) by lists.ntp.org (Postfix) with ESMTP id C59D086D4A6 for <ntpwg@lists.ntp.org>; Tue, 1 Sep 2015 13:03:40 +0000 (UTC)
Received: from mx1.redhat.com ([209.132.183.28]) by mail1.ntp.org with esmtps (TLSv1:AES256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from <mlichvar@redhat.com>) id 1ZWlDk-000BKH-E0 for ntpwg@lists.ntp.org; Tue, 01 Sep 2015 13:03:40 +0000
Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 6F5348E3E6 for <ntpwg@lists.ntp.org>; Tue, 1 Sep 2015 13:03:27 +0000 (UTC)
Received: from localhost (dhcp-24-154.brq.redhat.com [10.34.24.154]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t81D3QjQ021084 for <ntpwg@lists.ntp.org>; Tue, 1 Sep 2015 09:03:26 -0400
Date: Tue, 01 Sep 2015 15:03:25 +0200
From: Miroslav Lichvar <mlichvar@redhat.com>
To: ntpwg@lists.ntp.org
Message-ID: <20150901130325.GG11596@localhost>
References: <20150721092341.17016.69271.idtracker@ietfa.amsl.com> <20150827143339.GS24378@localhost> <700776e0c93c416f84a1f763c6644df8@IL-EXCH02.marvell.com> <20150831135058.GA11596@localhost> <e8248ac647254c909b48736aa7a6b799@IL-EXCH02.marvell.com> <20150831151545.GC11596@localhost> <8D2BF679AAC7C346848A489074F9F8BF79EA9C43@sjsrvexchmbx2.microsemi.net>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <8D2BF679AAC7C346848A489074F9F8BF79EA9C43@sjsrvexchmbx2.microsemi.net>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24
X-SA-Exim-Connect-IP: 209.132.183.28
X-SA-Exim-Rcpt-To: ntpwg@lists.ntp.org
X-SA-Exim-Mail-From: mlichvar@redhat.com
X-SA-Exim-Version: 4.2
X-SA-Exim-Scanned: Yes (on mail1.ntp.org)
Subject: Re: [ntpwg] I-D Action: draft-ietf-ntp-checksum-trailer-02.txt
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>
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 Mon, Aug 31, 2015 at 03:43:55PM +0000, Greg Dowd wrote:
> Probably moving further offtopic but why would you need 2?  And why the counters?  The correction field in PTP was originally designed because the hardware couldn't update the timestamps on the fly.  It would post-process and then send a follow-up with the precise timestamp.   NTP supports that  with the interleave mode.  With today's technology, it's at least possible to simply update the actual timestamp in a MAC/PHY.
> 
> However, if we used an extension with a correction field, the receiver would sum the components of the timestamp to calculate the actual receive time.  That could then be stuffed into t2 and no D1 would be in the reply.  

Yes, if the server applied the correction immediately, there would
be no need for a second field. But I don't think that's what we want
to do. The client may want to check the sanity of the corrections
(if they are smaller than the measured delay) or check if they actually
improve the jitter. The support could be horribly broken on some
device on the path and we wouldn't know until the field was turned off.
It would also prevented mixing of authenticated data with
unauthenticated corrections if it was possible to not cover the field
by the MAC.

In PTP the correction field is applied only by the slave too. There is
no need for two correction fields, because there is either only one
measurement per request/response or there are two measurements but only
one correction is needed as in the case of peer delay request/response
(which is also the reason why the pdelay timestamps shouldn't be used
to calculate the offset with a nonzero correction).

> With the counters, it might be interesting to know how many nodes updated the correction field, but I'm not sure what quantitative assessment you could make.  Would you anticipate a dispersion compensation (similar to old stratum calculation) where a fixed error was added per hop?

I was thinking about detecting network asymmetries on the path between
client and server. If C1 and C2 are not equal, the paths were
different and the source could be rejected in the source selection or
have a smaller weight when combining with others.

However, this would only work if there was a different number of
updates in the two directions. I guess it could be improved by using a
checksum instead of counter which all NTP-aware devices would update
with their own (random) ID.

-- 
Miroslav Lichvar
_______________________________________________
ntpwg mailing list
ntpwg@lists.ntp.org
http://lists.ntp.org/listinfo/ntpwg