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

Martin Burnicki <martin.burnicki@meinberg.de> Mon, 07 September 2015 08:48 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 406291B35FC for <ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com>; Mon, 7 Sep 2015 01:48:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.1
X-Spam-Level:
X-Spam-Status: No, score=-4.1 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_HI=-5, T_DKIM_INVALID=0.01, 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 mlYo8EkNuj-J for <ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com>; Mon, 7 Sep 2015 01:48:09 -0700 (PDT)
Received: from lists.ntp.org (lists.ntp.org [149.20.68.7]) by ietfa.amsl.com (Postfix) with ESMTP id 54F0E1B3E81 for <ntp-archives-ahFae6za@lists.ietf.org>; Mon, 7 Sep 2015 01:48:09 -0700 (PDT)
Received: from lists.ntp.org (lists.ntp.org [149.20.68.7]) by lists.ntp.org (Postfix) with ESMTP id 4E07D86DBBC for <ntp-archives-ahFae6za@lists.ietf.org>; Mon, 7 Sep 2015 08:48:09 +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 B615886DAA7 for <ntpwg@lists.ntp.org>; Mon, 7 Sep 2015 08:28:29 +0000 (UTC)
Received: from server1a.meinberg.de ([176.9.44.212]) by mail1.ntp.org with esmtps (TLSv1:AES256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from <martin.burnicki@meinberg.de>) id 1ZYrmn-000B0Z-0Y for ntpwg@lists.ntp.org; Mon, 07 Sep 2015 08:28:29 +0000
X-DKIM: Sendmail DKIM Filter v2.8.2 server1a.meinberg.de EC8E071C0318
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meinberg.de; s=mail201101; t=1441614499; bh=mn2TLJh6A1KHAqH0WXdmX/CuJCBiwM+ZeZ4y3d6tRBI=; h=To:References:From:Message-ID:Date:MIME-Version:In-Reply-To: Content-Type:Content-Transfer-Encoding; b=Mg6UYeJ0GgBfsUW7YnDyFUvJQzKRYwsm1TUSh4iDFm9sDLIzRWtipwTRLI9XyphI1 1nhbB4EnixAV3YYx+w9Shhtdv1zIKwmXZ57TCQHQyqO0zeXUcnid97H5mBeJ61kz6J WsPstHwbvx6NgPFxVCm5Y/xitgPqLiLHT/dZK1gA=
To: Miroslav Lichvar <mlichvar@redhat.com>, ntpwg@lists.ntp.org
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>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Message-ID: <55ED4A9C.5000004@meinberg.de>
Date: Mon, 07 Sep 2015 10:28:12 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 SeaMonkey/2.35
MIME-Version: 1.0
In-Reply-To: <20150901130325.GG11596@localhost>
X-Virus-Scanned: clamav-milter 0.98.7 at server1a
X-Virus-Status: Clean
X-SA-Exim-Connect-IP: 176.9.44.212
X-SA-Exim-Rcpt-To: ntpwg@lists.ntp.org
X-SA-Exim-Mail-From: martin.burnicki@meinberg.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>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
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>

Miroslav Lichvar wrote:
> 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.

I fully agree.

> 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.

On the other hand, if the delays in bot directions can be measured 
separately and this is done properly on the involved nodes then it 
shouldn't matter if the request and reply packets go over different routes.

Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 (0)5281 9309-14
Fax: +49 (0)5281 9309-30

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg, 
Andre Hartmann, Heiko Gerstung
Web: http://www.meinberg.de
_______________________________________________
ntpwg mailing list
ntpwg@lists.ntp.org
http://lists.ntp.org/listinfo/ntpwg