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

dieter.sibold@ptb.de Tue, 01 September 2015 14:55 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 408221B2FB4 for <ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com>; Tue, 1 Sep 2015 07:55:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.909
X-Spam-Level:
X-Spam-Status: No, score=-6.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, 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 NEM3yd6zgV9n for <ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com>; Tue, 1 Sep 2015 07:55:48 -0700 (PDT)
Received: from lists.ntp.org (lists.ntp.org [149.20.68.7]) by ietfa.amsl.com (Postfix) with ESMTP id DF1681B4795 for <ntp-archives-ahFae6za@lists.ietf.org>; Tue, 1 Sep 2015 07:55:48 -0700 (PDT)
Received: from lists.ntp.org (lists.ntp.org [149.20.68.7]) by lists.ntp.org (Postfix) with ESMTP id D1FAE86DBA9 for <ntp-archives-ahFae6za@lists.ietf.org>; Tue, 1 Sep 2015 14:55:48 +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 0F72B86D76A for <ntpwg@lists.ntp.org>; Tue, 1 Sep 2015 14:36:39 +0000 (UTC)
Received: from mx1.bs.ptb.de ([192.53.103.106]) by mail1.ntp.org with esmtps (TLSv1:AES256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from <dieter.sibold@ptb.de>) id 1ZWmfk-000Cl1-HF for ntpwg@lists.ntp.org; Tue, 01 Sep 2015 14:36:39 +0000
Received: from mx1.bs.ptb.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 81BD2D8BF50; Tue, 1 Sep 2015 16:36:26 +0200 (CEST)
Received: from s85206.bs.ptb.de (s85207.bs.ptb.de [141.25.85.207]) by mx1.bs.ptb.de (Postfix) with ESMTP id 8AD99D9E4B2; Tue, 1 Sep 2015 16:36:25 +0200 (CEST)
Received: from rose.bs.ptb.de (rose.bs.ptb.de [141.25.85.201]) by s85206.bs.ptb.de (Postfix) with ESMTP id 6840D4B62; Tue, 1 Sep 2015 16:36:25 +0200 (CEST)
In-Reply-To: <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> <20150901130325.GG11596@localhost>
To: QMiroslav Lichvar <mlichvar@redhat.com>
MIME-Version: 1.0
X-KeepSent: AD5A4C22:B80A1C4B-C1257EB3:004F5A11; type=4; name=$KeepSent
X-Mailer: IBM Notes Release 9.0.1FP4 June 07, 2015
Message-ID: <OFAD5A4C22.B80A1C4B-ONC1257EB3.004F5A11-C1257EB3.00503BD7@ptb.de>
From: dieter.sibold@ptb.de
Date: Tue, 01 Sep 2015 16:36:22 +0200
X-MIMETrack: S/MIME Sign by eclipse on Dieter Sibold/PTB(Release 9.0.1FP4|June 07, 2015) at 01.09.2015 16:36:21, Serialize by eclipse on Dieter Sibold/PTB(Release 9.0.1FP4|June 07, 2015) at 01.09.2015 16:36:22, Serialize complete at 01.09.2015 16:36:22, Itemize by eclipse on Dieter Sibold/PTB(Release 9.0.1FP4|June 07, 2015) at 01.09.2015 16:36:23, S/MIME Sign complete at 01.09.2015 16:36:23, Serialize by Router on ROSE/PTB(Release 9.0.1FP4|June 07, 2015) at 09/01/2015 16:36:25, Serialize complete at 09/01/2015 16:36:25
X-PMX-Version: 6.2.0.2453472, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2015.9.1.142716
X-PMX-Spam: Probability=8%, Report=' BODYTEXTH_SIZE_10000_LESS 0, BODY_SIZE_10000_PLUS 0, CTYPE_MULTIPART_NO_QUOTE 0, NO_REAL_NAME 0, NO_URI_HTTPS 0, REFERENCES 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __FORWARDED_MSG 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HTML_AHREF_TAG 0, __IN_REP_TO 0, __MIME_HTML 0, __MIME_VERSION 0, __MULTIPLE_URI_TEXT 0, __REFERENCES 0, __SANE_MSGID 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __URI_IN_BODY 0, __URI_NO_WWW 0, __URI_NS '
X-SA-Exim-Connect-IP: 192.53.103.106
X-SA-Exim-Rcpt-To: ntpwg@lists.ntp.org
X-SA-Exim-Mail-From: dieter.sibold@ptb.de
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>
Cc: ntpwg@lists.ntp.org
Content-Type: multipart/mixed; boundary="===============8249830896313429724=="
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>

See below


"ntpwg" <ntpwg-bounces+dieter.sibold=ptb.de@lists.ntp.org> wrote on 
01.09.2015 15:03:25:

> Von: Miroslav Lichvar <mlichvar@redhat.com>
> An: ntpwg@lists.ntp.org
> Datum: 01.09.2015 15:25
> Betreff: Re: [ntpwg] I-D Action: draft-ietf-ntp-checksum-trailer-02.txt
> Gesendet von: "ntpwg" <ntpwg-bounces+dieter.sibold=ptb.de@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.

I understand the intention of these counters. But from my point of view 
they are not sufficient to detect different paths. The problem is that 
that even if C1 equals C2 the paths might be different. So, even with 
equal counters you cannot be sure to only use sources with even paths.

> 
> 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
_______________________________________________
ntpwg mailing list
ntpwg@lists.ntp.org
http://lists.ntp.org/listinfo/ntpwg