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

Greg Dowd <Greg.Dowd@microsemi.com> Thu, 09 November 2017 16:19 UTC

Return-Path: <Greg.Dowd@microsemi.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 6065D126557 for <ntp@ietfa.amsl.com>; Thu, 9 Nov 2017 08:19:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.699
X-Spam-Level:
X-Spam-Status: No, score=-4.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=mscc365.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 4mbtEzssOQ2P for <ntp@ietfa.amsl.com>; Thu, 9 Nov 2017 08:19:26 -0800 (PST)
Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0047.outbound.protection.outlook.com [104.47.36.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3CD35124D85 for <ntp@ietf.org>; Thu, 9 Nov 2017 08:19:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mscc365.onmicrosoft.com; s=selector1-microsemi-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=7Gu4pnEveVRo31anRfV0Wgy3+nqKDOJiaW8IcvxVaXg=; b=kc/OfhZs6Z8sUfAsJcLHvhxGyT+x3CgUtOgb1O9xASxJKbpWTdngdjwCZ4ZoDCkDDy5XlT9eoUySFp3phLEiGE1K4Kv/f1lILxtkbQAW5xCQqeAVEVhevdRosG8erCDUJg/56pGdHhBz74/qO6PIYy4FkdRFiZjVUKljYyckZyI=
Received: from MWHPR0201CA0103.namprd02.prod.outlook.com (10.167.161.44) by BY2PR0201MB0741.namprd02.prod.outlook.com (10.160.124.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Thu, 9 Nov 2017 16:19:22 +0000
Received: from BY2FFO11OLC005.protection.gbl (2a01:111:f400:7c0c::143) by MWHPR0201CA0103.outlook.office365.com (2603:10b6:301:75::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.218.12 via Frontend Transport; Thu, 9 Nov 2017 16:19:22 +0000
Authentication-Results: spf=pass (sender IP is 208.19.100.20) smtp.mailfrom=microsemi.com; bu.edu; dkim=none (message not signed) header.d=none;bu.edu; dmarc=bestguesspass action=none header.from=microsemi.com;
Received-SPF: Pass (protection.outlook.com: domain of microsemi.com designates 208.19.100.20 as permitted sender) receiver=protection.outlook.com; client-ip=208.19.100.20; helo=avsrvexchhts2.microsemi.net;
Received: from avsrvexchhts2.microsemi.net (208.19.100.20) by BY2FFO11OLC005.mail.protection.outlook.com (10.1.14.145) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.178.5 via Frontend Transport; Thu, 9 Nov 2017 16:19:20 +0000
Received: from AVMBX1.microsemi.net (10.100.34.31) by avsrvexchhts2.microsemi.net (10.100.34.106) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 9 Nov 2017 08:18:15 -0800
Received: from AVMBX1.microsemi.net (10.100.34.31) by AVMBX1.microsemi.net (10.100.34.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Thu, 9 Nov 2017 08:18:14 -0800
Received: from SJSRVEXCHHTS1.microsemi.net (10.241.34.105) by avmbx1.microsemi.net (10.100.34.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 9 Nov 2017 08:18:14 -0800
Received: from SJSRVEXCHMBX2.microsemi.net ([fe80::6da0:6f9d:d5d1:3d5d]) by sjsrvexchhts1.microsemi.net ([::1]) with mapi id 14.03.0361.001; Thu, 9 Nov 2017 08:18:12 -0800
From: Greg Dowd <Greg.Dowd@microsemi.com>
To: Tal Mizrahi <tal.mizrahi.phd@gmail.com>, Miroslav Lichvar <mlichvar@redhat.com>
CC: Aanchal Malhotra <aanchal4@bu.edu>, "ntp@ietf.org" <ntp@ietf.org>
Thread-Topic: [Ntp] Drafts on interleaved modes and correction field
Thread-Index: AQHTUibko2qH9HHhdE6MN2nq8y+qG6L+TuIAgAAhOYCAABK/AIAAEAqAgAD5FwCAADA7AIAIHWYAgAN3MoCAAQ4agIAAO30A//+pxuA=
Date: Thu, 09 Nov 2017 16:18:12 +0000
Message-ID: <8D2BF679AAC7C346848A489074F9F8BFF353D0C4@sjsrvexchmbx2.microsemi.net>
References: <20171031090139.GD15597@localhost> <CABUE3XmV1sUvq0KAJVrQv1sZ8vK6R8GwR+qeO1huTUgnOdujfQ@mail.gmail.com> <20171031135247.GB7648@localhost> <CABUE3X=pDEL9mcfoTGJw3PbwzHKnDTddr7Aqk71PyEBY77kzSw@mail.gmail.com> <20171031155717.GC7648@localhost> <CABUE3Xmz0YQ4OoDtE2SB-zimsA5yY32M1j3qotv_si4_OiqyHw@mail.gmail.com> <CABUE3XmHAgdowNV7ibfCMA0QGc6L6H=zA4=DZjgXaY8f04Cz5w@mail.gmail.com> <20171106123644.GA16738@localhost> <CABUE3XkCkWoDyJ8cWHJCCjbpoEnt5bJ1JnmuQKseg++oz0BkhQ@mail.gmail.com> <20171109093851.GA17365@localhost> <CABUE3X=rPPHeSS7EG9S8Ls26X1RkdOmPwTnmrO9YA+57uVkzKA@mail.gmail.com>
In-Reply-To: <CABUE3X=rPPHeSS7EG9S8Ls26X1RkdOmPwTnmrO9YA+57uVkzKA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.241.128.48]
Content-Type: multipart/alternative; boundary="_000_8D2BF679AAC7C346848A489074F9F8BFF353D0C4sjsrvexchmbx2mi_"
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-MS-Office365-Filtering-HT: Tenant
X-Forefront-Antispam-Report: CIP:208.19.100.20; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(376002)(346002)(2980300002)(438002)(76104003)(199003)(24454002)(189002)(106466001)(86362001)(39060400002)(54906003)(7736002)(6246003)(2900100001)(106002)(2920100001)(316002)(6306002)(9686003)(54896002)(356003)(72206003)(236005)(33656002)(16586007)(53546010)(53416004)(53936002)(93886005)(110136005)(7696004)(97736004)(229853002)(5250100002)(2950100002)(54356999)(6116002)(50986999)(55846006)(3846002)(49446005)(790700001)(69596002)(76176999)(102836003)(2906002)(512874002)(84326002)(8936002)(5660300001)(81156014)(68736007)(478600001)(81166006)(189998001)(4326008)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0201MB0741; H:avsrvexchhts2.microsemi.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en;
X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC005; 1:z3ldhEJE5hBYHkd8ldvzJxlC2eE83awP0AK0O78kD/JM/mAYzYrWYwYGY4ytMyHkXXJ7T+sQAxUmMGhTBXZEehcmVQylkImx5utgz7UaPi4UUypu/4zWKgkX3KSP/oYv
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 6799c1b9-1c40-40de-7319-08d5278da2be
X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199); SRVR:BY2PR0201MB0741;
X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB0741; 3:QHwEqbF4HZ9sCr8Frv6WNKzmzUFHtcL6sGd484/29m2rYtZ4k20KM2aiI7QpNhEIVevaZouiJxQ5ZW3yH1VdOgxI7JEBFV9rWX2ooVeI4tB2HnB8TMdonbtU6Oc3BH3DmpmYG8/zoGrvJaR9P+nATjIdIxqwpNULSEZV5yhBi6B0PQV/KQJwL35vlxgqX+eUO5G/ROzyfjhCnyNEjrwEfW+1SAeogQC/PI9udt+V02l02Nwz0H/otUx1LiHVALYZ+OiWm+NrygL53ANQeEp8noxY7YqH0ehImVHVDhTD14RLpgJmJV6uvua9MMzfD6uFz5eOM1PBhTuAMwcmqgk93jwryDZ1DQOxC1HRclTwK5s=; 25:zPGhxLPcp71Ye+8vn7ILJIcQ6h2AWbZ9mF7lV+xgSGvezk0f0CyBJMzx+HxnU1UWoBuQA1KnK/PhpKynlg2RVAle5zrFYe8aBmtyr2cS6YHY9AFx1cf/SVbbH3PsCWqizlTGyXKXK8sbYpU9n6ehDv8Ew7QniuyWrxySozNfhYpZsg9KXWk7K/CI7vaJ4ZjB2WFQ48mjKGiodV4ro86kI74hDlgqrEtYgp2SRUM28QaHVwWvDuSIHXiAfbDN9uV9VNc1zA1SHqjoxl+VjbNoI55bpnDg5BJipomhepOH2NuTyjHrS7OO5kwBMNUC/N9kZ4dyKe1emFJRT5lIcxcAyw==
X-MS-TrafficTypeDiagnostic: BY2PR0201MB0741:
X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB0741; 31:9DbA/WbZXulqAdljH6K6Nj96MkU7fHleOJbHb/tG/yOAEPACaqHg/x0iwqhGuzUNJo32MhmgrPOtuaF64PQiFXGD4JuvgswaUTA/ae0dJgxLlUDdpeh5IsWGT+sIWI52/JGueIY2I+oTlRk/7OYUj13OG7dyhxTLDZC89tGgaDM2/vqpCqy9s5EDl36CCiits3w+oZ0rdG3gm1oqCi2yuDuud/A1iPg7u5NyMgbjTBA=; 20:5CSXa2lcwgNFIy+qo4ZjLhEHqSPrmTPDkkyEP/L/7j/CL454zvsjzE+S4pPJ1rCV7ysomAPBpxmuW8Rof1EDcCVTtOu12AYe7Dq6e81rI5ZpM35PcahFN4l5gCxcMIEis/My/mswyv1OWaL4BZRTXH/UMXGgXbgN4Yjvxv+Rb5xnd/XuenEH7pspjkK7ECbQN+zheF8e1F3rzASGA174jN62E2aGiIPH2rAsMoY8vwQuQjW7yZkLEUlvnedC5lqnJgofRARNqVyNu6cBufn/817RLGhB6lVD59Yw9xYD6TzwbkF7egRIzErxgZLR40I42DDMXRWo8HHSET/OCUACImMlLQomhOkTRlD1oXOV1u3z3vl27QJhus7yHIpyGgXQm2qGxfc7zwoGe3yDKuQiB3BXJiKMBTRv8m7Wi6xvDKJ5cH3HKaGOGOHV2NKUkqSiDkpI+EKV5Gsyv1qO0iaLfHFPDttJpRCSN6ylDWhjQBO+31EnCF+UNUkNLokwqTNL
X-Exchange-Antispam-Report-Test: UriScan:(158342451672863)(238701278423138)(21748063052155);
X-Microsoft-Antispam-PRVS: <BY2PR0201MB0741AE00904DF638AA16B406FC570@BY2PR0201MB0741.namprd02.prod.outlook.com>
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3231021)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR0201MB0741; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR0201MB0741;
X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB0741; 4:BzsHG2wlCpEz5FGM5dzYVMZxI0ykSit6JtZ9JMAeIx9F3vo0W8L0Et+kvfrLqz4qV8ataW26XsE1o8jeZNYt85ze/CPUf5GUGD6oGkjfkxyungmlGHgP9Yk00BfFngAN3Ie3ghAYd1qh1bGNPeVR4auXKNyyMT15ZV4wS5QEAeeBUeIcegF4qLl2e3JTdb4rGAmjjRuG7CCwH8QkhfeeFgIjATBsR36lCLkVvrC2fk6bI3DsqraOsb1VeJoPU7HVYOrcg5LrdnpvrLoSjQk7qCDMPvhzNXPRLrADYDRfOXixKmnvr9F7ZsPLP8jqTZjcVHOmwvSqxRocVdpWAHZNXqcNTpj+VkjuIYqQO9jS4a5gf17hjnSGnbSkqOVqD0Rh
X-Forefront-PRVS: 0486A0CB86
X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB0741; 23:KsREg6Mwxt7sBOfRtz6ZamDJ255QAsExECbbRDDsv2CN0LUjw8E4CC0iPIxtC41w2raYuE5ASlNqEhZMzi9zsRWQV+BGyNhJPhFU7F3hUCxCHrB/QDtrOvOKi7Wukz3O03/U08FfVGSFKp7IE4OOC4zlE2e6cen8emqukJo6/+9SFeX4pfBXoTTMw42l8ByvE4PydP5K7547horZvuvt9wAX6n6NHlhQBLEbdXtewNuYxbvevupa6iYNA9BJfMvs0yBB5ndMGxuT94g30ZUUZIMH6GqeCoctV+NCybwpXLFtzqQ9/jukH9FcLR12fPznPbN6xK8ChU9k2MUDgb1sZXBY3p8qizZgvZcUMuMf814/fCIhSa+v2YKhIrik1uWDCb/5NvsF8Nl/0sQyFDLjQRT13OwNpTuZodnxoMnBMF0nSwoESiQGn9r17fgfdBUgJkotYPSZqTCptDr99BnibtNPoG2ZnX1F32V7AKbdoEm9tcqASOk2CyiR3CC95aK21TMqb7Ho9Wwo0a1AZkbSuKDRiKKk8qNI6y902scKjtDWn4LRPsKT5SZe+yWh4fm6O4v5IB3+y9HtxwrR7FIED0VOirR/KtaeiHNbsFTM1RNFX5xLLb1z/YunWbfdKbRhxAm76VgWdRnZROOpNgJXdyC/PQs+GIW1Htn0JEqVuhjloZTBxHqwNG2Ws5ptlITG2w818Vg+Q2qv0g38Nche99IbJFYrpvyVOdBj/FSRxTfgnnc0Rd+xBDzknntswkdGWMYTVJrL/PMvBth3uIYJeKvvmZwWCq0ThD4r4NnGLHu04bYJAdQ3WVv4iBTZ05MjgIEI0909yWhkhB3DQlanLnG/ohSy/PH8Zf4bamrUBiLz0Xa8OQZutTqy8huZiOL8KxKN5K8eM0omsERTRe51+xHeABY+EgkEwH2pl/5Irv7RmXoP+CA5c0ORZ+a5P0F1eGAFVQevCd/qX33gSbwc0dVVZ0z1/nZmizqimlLLB9RoLp76uPKby2pCU92ncPBdfEfCIeF7o8hkI20klBXxvKSvgz9dVaQLfqCfNt2boru9p6EdW1+TaicXzKnfLBsfZ2ngD1vCIkwNDI1kSQhODU9fqowMzLaZlYjFXlB+Ew0Weh8SLfBN3vz9qFTJzeHfc1BfGw3+BuCVKN0DGrI+yfl7+/jZuU3pkhdDQYA8KuW0llIPZb0ALkoRyZGnnGLfsShiGsmy1v9BIBjQgpe58MMnJgkxCk8kWTJmfFL9dov2HoHXjP3nUk5r0fo/DXPu4Zct+4s0qn9LOk6+6ImyjYmaA+MrbuX0VOpSNnxjgQE9q2mSTB+16reMyk7GdT8gJBiPya+OqtXgjLa2BgqlIqV/h1lVgHbanlkX3JlVSrk=
X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB0741; 6:muSNSgrBICnQ1QC1YC1I3UGgoiqknwe3rQYraA34s3gvil9Z3R6PE84orUfWIlVMhyxbk3gGw6RSW3wTsVO91q2k4OlsGOMiE/KPSVzHjWWVnKpUbLIOrpIDhWdGeeY/FtbkbrVIVwnhH1wCEiUSt6QK8kDWp5DjTjbquKC5P+8gHPTLwwpH64MazR2GwelW6ZIVtgM1wEiUNmjMpO1kUreqBDnN1HJ+WXi1Zfe/T+HKZibLpjyLxqYKjqxzqRDSdkHzXWjNnPQaeoNtbsFZ7j9lATrjAqlqUvY7KGLK/6KR5UzOz4fHUzS3zZxwDQyEbZawYjSJ0C446IeN97yC9+PbAyOVD19FvQA3vmlvxik=; 5:aJBSv+IWPhUMpii8BuTSbvuPmkFe3rML2T98ipWHXbFnqx83y/uAu3rkK4da5myJCcKoNa+wgl2fK0qTcyQBN+Uq68JjufxgLg4niUaZOcOJ6opeCT2Lfc7HpeqIM0UPi7QhoHA5NYJPgmshalO6JZ+jb2+nTXvtwAWZcSsKDOk=; 24:DKEvtx7/jmYP/T6+Y9bQXY81eOXddM6yGzOwU4cxR/vPJmn1Q/fvXq+12XU5N/vV1yx0Ysj68tu6wdx438UHfiTGkLd+H4JP9GO2PyyLl08=; 7:cKOyEoAKwsyjVn6rnt9ydtsryEB2Yd0QbBh3UAw+mPqFA1OsaYtI1O2Yp/ExfQftKBHWYPy9ik7aM19d/v6Jz5IqLSsHjDbYkg7ZSP0cmall1rQaJV4bvsx0ApLwSyqs0xuRhM3WkilMRblvOrUuGJDBFT2pcEvUPhLywfIjyP0vc9zmUHNfoNoXqeqkvrzb9BqYN1WkK+kWrmCWUQPZo+UTwDI8cv7x1SNjkxRve2shUcYhnzW7qJUhxTk4OrL9
SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
X-OriginatorOrg: microsemi.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2017 16:19:20.2547 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 6799c1b9-1c40-40de-7319-08d5278da2be
X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad; Ip=[208.19.100.20]; Helo=[avsrvexchhts2.microsemi.net]
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB0741
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/uxtP_OrOsnCkOLlsUUYcJttHAOI>
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: Thu, 09 Nov 2017 16:19:29 -0000

As I recall, this all works if every device in the network are timestamp correction aware.  Tal, I think you have probably been involved in many discussions of this type, .  I tend to believe that OSI model implies that we should not be too focused on specifying which bit of which symbol is selected.

My recommendation is that we call out something like 802.3bf (?) and provide examples of the asymmetry/implementation issues associated with selections.  The reality is that timestamps are struck and are “fixed up” to be SOH or ETB in hardware anyway.  The current NTP protocol has already defined the “default” as beginning of tx/end of rx historically.

What do you think?

Thanks…Greg





From: ntp [mailto:ntp-bounces@ietf.org] On Behalf Of Tal Mizrahi
Sent: Thursday, November 9, 2017 5:12 AM
To: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Aanchal Malhotra <aanchal4@bu.edu>; ntp@ietf.org
Subject: Re: [Ntp] Drafts on interleaved modes and correction field

EXTERNAL EMAIL
Hi Miroslav,

Very nice example.
It clarifies your point.

I believe the inconsistency you raised here could be resolved if both the client and server would measure all timestamps as the time-of-the-first-bit (both reception and transmission).
If that would be the case, then (using your example):

Client TX timestamp = X
Switch (client->server) correction field = 1500
Server RX timestamp = X+1700

Server TX timestamp = Y
Switch (server->client) correction field = 11000
Client RX timestamp = Y+11200

In this case the client would compute the delay on both directions to be 200 nanoseconds, as desired.
Again this all works only if the client / server use the first bit as the reference for both TX and RX timestamps.

Cheers,
Tal.


On Thu, Nov 9, 2017 at 11:38 AM, Miroslav Lichvar <mlichvar@redhat.com<mailto:mlichvar@redhat.com>> wrote:
On Wed, Nov 08, 2017 at 07:32:07PM +0200, Tal Mizrahi wrote:
> >If a switch cut through from a faster link to a slower link, it would
> >know the length of the packet and could calculate the (negative)
> >correction before the correction field was transmitted, right?
>
> Hmmm... So the switch would have to evaluate the packet length based on the
> Length field in the UDP header, and use that in the correction field
> computation.

Good point. Using the UDP length field should be simpler and give the
switch more time to calculate the correction than waiting for the
end of the received frame.

> It would be significantly easier to implement a correction field
> computation based on first-bit-in-to-first-bit-out.

I understand that. The question is if it's worth the incompatibility
that it would create.

> I may be missing something here, but I would argue that if we consistently
> compute the correction based on first-bit-in-to-first-bit-out, the packet
> transmission times on both directions would cancel out, and would not
> affect the symmetry of the computation.

Yes, but only if the client, server and all switches with different
link speeds between them used the beginning of the reception too.

The clients and servers would have to switch between two modes of
timestamping. One for networks where the correction fields is not
supported and one for networks where all switches (with different link
speeds) support it. It's all or nothing.

On the other hand, a correction field based on the end of the
reception is compatible with timestamping used by existing clients and
servers, and a gradual replacement of switches in the network does not
create an asymmetry.

> Can you provide an example in which this hypothesis is wrong?

Ok, let's say there is a server on 100 Mbit link, a client on a 1000
Mbit link, and a single switch (store-and-forward) between them. The
propagation delay is 100 nanoseconds on both links and the switch has
a constant asymmetric delay of 500/1000 nanoseconds. The client sends
a 1000 bit frame at time X and the server responds with a frame of the
same length at Y. All timestamping is perfectly accurate.

The intervals of the receptions and transmissions are:

client TX: [X, X+1000]
switch RX: [X+100, X+1100]
switch TX: [X+1600, X+11600]
server RX: [X+1700, X+11700]
server TX: [Y, Y+10000]
switch RX: [Y+100, Y+10100]
switch TX: [Y+11100, Y+12100]
client RX: [Y+11200, Y+12200]

If the correction field was ignored, the delays of the request and
response would be 11700 and 12200 nanoseconds respectively. The
calculated offset would have an error of 250 nanoseconds.

If the switch calculated the corrections from the beginning of the
receptions, the delays would be 10200 and 1200 nanoseconds. The error
in the offset would be 4500 nanoseconds.

If the switch calculated the corrections from the end of the
reception, the delays would be 11200 and 11200 nanoseconds. The offset
would have no error.

This shows that the switch has to timestamp the same point of the
frame as the server and client. Otherwise, the correction field may
actually increase the error in the measured offset.

--
Miroslav Lichvar