[TICTOC] Guidelines for Defining Packet Timestamps

Yaakov Stein <yaakov_s@rad.com> Tue, 18 July 2017 09:45 UTC

Return-Path: <yaakov_s@rad.com>
X-Original-To: tictoc@ietfa.amsl.com
Delivered-To: tictoc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 58B5E131DD5 for <tictoc@ietfa.amsl.com>; Tue, 18 Jul 2017 02:45:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.702
X-Spam-Level:
X-Spam-Status: No, score=-4.702 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rad365.onmicrosoft.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 imh2a5HwtGqC for <tictoc@ietfa.amsl.com>; Tue, 18 Jul 2017 02:45:52 -0700 (PDT)
Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00064.outbound.protection.outlook.com [40.107.0.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8B305131DCE for <tictoc@ietf.org>; Tue, 18 Jul 2017 02:45:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rad365.onmicrosoft.com; s=selector1-rad-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Cajxw+/lFIrbiKDJ6CbTWXOdujuuEOusaFBayg7LCaY=; b=a0256ut1eC5zgZh/SzhRJ1Xc6O0nUU2jaev3B4sn0oTkDTTPyXGWSPyOVxsQ86x7kcW9ALFd2JxhhnSdz6u0jQ/42f2h9TkgC4px0pt7X3mO8ZTI5X/5GkxFPs8ECPLqghGBdxLS2q3/qtzfUhLRj02P7VyB/u6ExE5Al30BzHE=
Received: from VI1PR03MB1470.eurprd03.prod.outlook.com (10.164.84.16) by VI1PR03MB1472.eurprd03.prod.outlook.com (10.164.84.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Tue, 18 Jul 2017 09:45:48 +0000
Received: from VI1PR03MB1470.eurprd03.prod.outlook.com ([fe80::3181:ab38:bd59:5064]) by VI1PR03MB1470.eurprd03.prod.outlook.com ([fe80::3181:ab38:bd59:5064%14]) with mapi id 15.01.1261.022; Tue, 18 Jul 2017 09:45:48 +0000
From: Yaakov Stein <yaakov_s@rad.com>
To: "ntpwg@lists.ntp.org" <ntpwg@lists.ntp.org>, "tictoc@ietf.org" <tictoc@ietf.org>
Thread-Topic: Guidelines for Defining Packet Timestamps
Thread-Index: AdL/pFLyqt3AYOQnS52pEShJCXzb4A==
Date: Tue, 18 Jul 2017 09:45:48 +0000
Message-ID: <VI1PR03MB1470D26972685B88E9907C6AE5A10@VI1PR03MB1470.eurprd03.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: lists.ntp.org; dkim=none (message not signed) header.d=none;lists.ntp.org; dmarc=none action=none header.from=rad.com;
x-originating-ip: [37.142.23.150]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; VI1PR03MB1472; 7:kdCLpMjXeayYNuvohRXBtMJcJizTpXfXihurhKeBeZO1BRfAupgZqrDy2ESIQAB+FO1udHJi4m5e7qi0hwM/NHA3uzO4OeDj6YHfrRllnnBZdGr/SIkYnrH+LspABvAStjY+7RoLCI9N6G2+tnVIliFx++Za7B1uK9aIvO8Fd5dColcXaH3SBlzmj3IKxm98CoLNtftusukF/ILWbg0yOIet/HhZCcu/4Vcrc4lXkRu/S2RWuKUhAFPXZLUuTkfrtADfCGIcg7OhgCVBkThU/P6gbB22KIjw8iokvvk2t1EmjnVLtIU37WsC7YxwqWKRs7SIzPYreg6ARWm/FY6j0OGh8mWVXQio3/cl4JwWf8zFbojWI8ClhjfO4LbRjgo/YDHEW98s2uN20ocuEdoZGugZuwHMc6liLXor5w+rxycImGW/8FwnV26LRmGGRaJZEzvfs5RgfQz1XoS/w2be2uj+q8cALR7ZvvsqM2BO1DbD/C3mHQIJDihQkiFFCrElRTl8O48IGNDDTc39GgEOArr7Y31zg/fE+0qeJY+r1muSVABIwC2nHGgfW61Esx3K0rLHsSmGr8FZsn4t9rnjteEYL7UOiPmQyc7QXyJ5IbUwJxyGi/R7EygX2fne00XQa5orJEXrAvD6Au1J6doU70wfIWD7y5nyf7J7gWLnOZDDufl4CWMbcYwsMvSyfBKa1ip/uAffrpg8/O13OlT93geGf8yEmIlkZbjiTzR4c+c2gujiz9M5iUhXsHwvPiIzoQhCGjoGzqB1BPnDTOksj9KHt3JWAHrIEoQTxsJgBdo=
x-ms-office365-filtering-correlation-id: b3a4b45d-421d-472f-015a-08d4cdc1c4db
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:VI1PR03MB1472;
x-ms-traffictypediagnostic: VI1PR03MB1472:
x-exchange-antispam-report-test: UriScan:(236129657087228)(189930954265078)(45079756050767)(247924648384137)(164587983369549);
x-microsoft-antispam-prvs: <VI1PR03MB147235B3B65D4E87B63B676CE5A10@VI1PR03MB1472.eurprd03.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123558100)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR03MB1472; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR03MB1472;
x-forefront-prvs: 037291602B
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39400400002)(39410400002)(39850400002)(39840400002)(39450400003)(13464003)(57704003)(497574002)(377454003)(53936002)(6116002)(74316002)(86362001)(102836003)(3660700001)(38730400002)(3280700002)(3846002)(5660300001)(7696004)(347745004)(14454004)(6506006)(478600001)(5250100002)(2501003)(53546010)(66066001)(966005)(81166006)(8676002)(45080400002)(7736002)(2900100001)(8936002)(50986999)(33656002)(54356999)(305945005)(25786009)(189998001)(2906002)(9686003)(6306002)(6436002)(99286003)(55016002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR03MB1472; H:VI1PR03MB1470.eurprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rad.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jul 2017 09:45:48.0214 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: f9047108-cc2c-4e48-97a3-43fad1b3bf9d
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR03MB1472
Archived-At: <https://mailarchive.ietf.org/arch/msg/tictoc/FlXu7HpHNQ8TC6V3U2Mb-4mQSHI>
Subject: [TICTOC] Guidelines for Defining Packet Timestamps
X-BeenThere: tictoc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Timing over IP Connection and Transfer of Clock BOF <tictoc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tictoc>, <mailto:tictoc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tictoc/>
List-Post: <mailto:tictoc@ietf.org>
List-Help: <mailto:tictoc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tictoc>, <mailto:tictoc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 18 Jul 2017 09:45:55 -0000

Tal and everyone else, 

For some reason Meetecho didn't let me raise my hand or enter the queue today, 
so I couldn't efficiently make my comments on this draft (which I hadn't seen, and still haven't read).

Yes, the technicalities of the number of bits and when time zero was are important, 
but there are other issues that should be considered, and will help deciding on a time format.

1. How precise do we need the time ? (based on the expected accuracy, but also on the requirement)
2. For what time duration do you need non-ambiguity?

Note that the answers to 1 and 2 dictate the minimal number of bits required, but you may want to round up to multiples of bytes/16b words/doublewords/etc
and you might decide on a kludge where the most significant bits are placed somewhere else.

3. Does this time need to be locked to some global time, 
     or is it only going to be used to compare two timestamps using this same timebase?
    For example, to avoid transmission collisions you only need agreement, not global time.
    A related question is 
4. How much degradation is allowable from that source to the users? 
    The SMC and ESMC protocols do a nice job in telling us whether we are locked in frequency to a PRC, which PRC, if we are in holdover, etc.
5. If the answer to 3 was "global time", then atomic based (TAI) or earth rotation based (UTC).
     If earth based, then how do we get the information on leap seconds? 
     If you can do without the headache of leap seconds, it is really nice, but ...
6. If the answer to 5 was earth-based, then is someone going to want to convert this time to a local timezone? 
     If so, how? Of course, if you are connected to the Internet then the TZ database is available, but in many cases it isn't.

Before getting into the number of bits, we need to further ask:
7. Assuming that the precision required in 1 above is tighter than a second, how do we represent the < 1 second part - 
     by fractional seconds (NTP) or integer xsec (where x is milli, micro, nano, pico, depending on the answer to 1)
    The answer to this question may be a matter of taste, or may affect calculations.

Finally, based on the answers to the above you can specify
8. How many bits are used and how are they fielded?

Of course, if one of the well-known time formats (NTP-128b, NTP-64b, NTP-32b, PTPv1 format, PTPv2 format, UNIX, etc) fits, 
then there could be a preference to (re)use it.

Y(J)S



-----Original Message-----
From: TICTOC [mailto:tictoc-bounces@ietf.org] On Behalf Of Karen O'Donoghue
Sent: 17/07/2017 19:27
To: ntpwg@lists.ntp.org; tictoc@ietf.org
Subject: [TICTOC] Reminder: NTP / TICTOC working group meeting (18 July, 07:30 UTC)

Folks,

Just a quick reminder that the ntp and tictoc joint working group meeting will be tomorrow at 9:30 am CEST (7:30 am UTC). I know this is a bad time for our regular US based remote participants, but perhaps those of you on the west coast could join. 

Link to agenda: 
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf.org%2Fproceedings%2F99%2Fagenda%2Fagenda-99-ntp-00.txt&data=01%7C01%7Cyaakov_s%40rad.com%7Cb18503ca9b714dfbd76f08d4cd30a7e2%7Cf9047108cc2c4e4897a343fad1b3bf9d%7C1&sdata=HQpKhtgmDOMqaebwEZ2VZiMfNtmGrtULyAMyiYoRof0%3D&reserved=0

Remote participation details are available on the meeting website… 
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf.org%2Fmeeting%2F99%2Findex.html&data=01%7C01%7Cyaakov_s%40rad.com%7Cb18503ca9b714dfbd76f08d4cd30a7e2%7Cf9047108cc2c4e4897a343fad1b3bf9d%7C1&sdata=1QIysN8j7ye2BY6DdCqaBAF1fJ9HfcekpKXPBEc3XHE%3D&reserved=0

Karen