Re: [Ntp] draft-ietf-ntp-roughtime-05: tag change makes implementation more complex

Watson Ladd <watsonbladd@gmail.com> Tue, 21 September 2021 02:56 UTC

Return-Path: <watsonbladd@gmail.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 55B963A1D37 for <ntp@ietfa.amsl.com>; Mon, 20 Sep 2021 19:56:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 u9yvoPCLikEZ for <ntp@ietfa.amsl.com>; Mon, 20 Sep 2021 19:56:15 -0700 (PDT)
Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7D84E3A1D35 for <ntp@ietf.org>; Mon, 20 Sep 2021 19:56:15 -0700 (PDT)
Received: by mail-ed1-x52d.google.com with SMTP id v5so67586605edc.2 for <ntp@ietf.org>; Mon, 20 Sep 2021 19:56:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=IRq+ozswX8PWiPCBdxBS0ODWGbN/PJ2XDxt3YP42d8E=; b=gwpENwJgSjwc7d5wlq4ygKXZZWoazYMGW9k/1nsyJ7Lr9a4RrnfEHsFBpIT2IcU3EF q/wU4YDXaG5EXSVZhkLz2fatQvW0wfAwlBzQZXFbUFbVuki4WU2Wv3bROtVxdfHks+pu gFMhQ0BV2a9dRyyntKqQQBYhN54oP4nOL87lG3kBOn20k2WToWSyTVHvjKDQ/qctE6YI aQSsS1aTngqafBrJM2p8rnEayhHLy48bEdqoGzFwLYDX7fdHT2yOfVYEqm8FsmSjq2VK mUeKmvcyTnYAt58/W2oOsi6XeQrEko6xFgI3iLMiHgmcUb7hX/3/xkf/icUsA7ncCiu8 hQ9A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=IRq+ozswX8PWiPCBdxBS0ODWGbN/PJ2XDxt3YP42d8E=; b=JZXnzBjAmKz1+S/XH8j3oo5kzKzpPhup+bq/TjKBObzZugJ6te10Ssi5zkQztR3lI6 TB/3rZqZz/seu9vp01s4YQ7b+/TOTRQoZ1Tr0trkYoH4TJo1rLvXxu2NDl4UIA3RdiFJ CGkZxm5Zcu9Z+2ROsdJXhv1K+2fcLzSGLyaDDscZFmWzkwo3RhTAic6if51vdBMENlU6 MlDyPmujlysBWCNZSl9WANolz7WCaROn4Z2fR4FPLmrkyfSujI3iQNreqeO6nXe+L/5M I8Xvt4BA4u6BQKBFgBuXxr3mUelm5LPBnRiUuw4J5IVkjwECMgKRI4mNQIFkdhL/tami HK2A==
X-Gm-Message-State: AOAM532gMbeyujTVdt3425uUVsHJlP7oKYqqQiFU/WWb1sLUdUHk2P8F QxcH2sC3Ph0NywDmsA9jGA8Y6u010YpByCu6H1w=
X-Google-Smtp-Source: ABdhPJzXAxAXsBC87TjAE/yyFAjOhKqgacH5CT7i+6e5K68e0b/Zi4OVPa1xD3KvmCz/QS4a+40Lu5gYeRDbEBWWF60=
X-Received: by 2002:aa7:c998:: with SMTP id c24mr32044455edt.158.1632192973526; Mon, 20 Sep 2021 19:56:13 -0700 (PDT)
MIME-Version: 1.0
References: <CAGZkp1-ZCuSvMyQyWCnE511O8-WL=OXfsTdraKsByMmWC3spVA@mail.gmail.com>
In-Reply-To: <CAGZkp1-ZCuSvMyQyWCnE511O8-WL=OXfsTdraKsByMmWC3spVA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
Date: Mon, 20 Sep 2021 19:56:02 -0700
Message-ID: <CACsn0ckZmR=k2NAmdyhVOA=V_XQ18AnBUBSTOu+bDXS1YsPpUg@mail.gmail.com>
To: JP Sugarbroad <taralx@gmail.com>
Cc: NTP WG <ntp@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/GN7iKCGa0NqslC0Q6JtQjGjRpvc>
Subject: Re: [Ntp] draft-ietf-ntp-roughtime-05: tag change makes implementation more complex
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Network Time Protocol <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: Tue, 21 Sep 2021 02:56:20 -0000

On Sun, Sep 19, 2021 at 12:22 PM JP Sugarbroad <taralx@gmail.com> wrote:
>
> In the pre-ietf draft, short tags were padded with FF, putting them at the end of the tag sequence. Now they're padded with 00, which puts them at the start. So packets start with PAD rather than ending with it, noticeably complicating packet construction.

Dear JP,

I don't think this complicates packet construction much. If you know
the length of all elements ahead of time, and then compute the PAD,
nothing changes. If you are accumulating elements and putting PAD at
the end after knowing the length, it's a little bit of buffer
manipulation.

Sincerely,
Watson Ladd

>
> --
> JP Sugarbroad <taralx@gmail.com>
> "Please let me know if there's any further trouble I can give you."
>     -- Unknown
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp



--
Astra mortemque praestare gradatim