Re: [tsvwg] A review of draft-ietf-tsvwg-udp-options-12

"C. M. Heard" <heard@pobox.com> Mon, 14 June 2021 18:15 UTC

Return-Path: <heard@pobox.com>
X-Original-To: tsvwg@ietfa.amsl.com
Delivered-To: tsvwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 222283A2D12 for <tsvwg@ietfa.amsl.com>; Mon, 14 Jun 2021 11:15:19 -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, HTML_MESSAGE=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 (1024-bit key) header.d=pobox.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 SRMXNqZSAIPI for <tsvwg@ietfa.amsl.com>; Mon, 14 Jun 2021 11:15:14 -0700 (PDT)
Received: from pb-smtp21.pobox.com (pb-smtp21.pobox.com [173.228.157.53]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 38A693A2D11 for <tsvwg@ietf.org>; Mon, 14 Jun 2021 11:15:13 -0700 (PDT)
Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 4B84C138A5D for <tsvwg@ietf.org>; Mon, 14 Jun 2021 14:15:13 -0400 (EDT) (envelope-from heard@pobox.com)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:cc:content-type; s=sasl; bh=E2x8SHyv34FhFP4BgVW0JZp6N8nGXeqW IXEB3661KKw=; b=N0GtmVGzvd+vKlKc4WOOb9WbqyzTciXD6wTN4AOWzyiWWdrr tSiDz68cEym4BiU8cZVdpCTa17YwFvOIR/77q1Ksp094LLkwci7bBFZ5yvk14J0J JKEkc02vrA5oX/yM6wXOPFPq/3sP94r9t8lxJEvFZYfDaW5096T9rUDE/6Y=
Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 44788138A5B for <tsvwg@ietf.org>; Mon, 14 Jun 2021 14:15:13 -0400 (EDT) (envelope-from heard@pobox.com)
Received: from mail-io1-f52.google.com (unknown [209.85.166.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id DC1BB138A59 for <tsvwg@ietf.org>; Mon, 14 Jun 2021 14:15:10 -0400 (EDT) (envelope-from heard@pobox.com)
Received: by mail-io1-f52.google.com with SMTP id b14so25576765iow.13 for <tsvwg@ietf.org>; Mon, 14 Jun 2021 11:15:10 -0700 (PDT)
X-Gm-Message-State: AOAM530WD3XOA6RAMifTslSD7C46rWT9bU03bGaBd4uUETnBjIZK84zk 49dl0V+MkPQucpEX+F8MppiEIqzBQWaEDzQXUpM=
X-Google-Smtp-Source: ABdhPJza8Qf7dS9fIDdR8Rn3V4+njJPvoa9wwsB3oEjudXAayxXJF5GUTk4zS/SN7CmefxW5ygDysyRqziBH4PTtFUE=
X-Received: by 2002:a6b:3119:: with SMTP id j25mr14869448ioa.64.1623694509582; Mon, 14 Jun 2021 11:15:09 -0700 (PDT)
MIME-Version: 1.0
References: <CACL_3VG9w3xsoOFqit_YHB5gTztWMQrcYo6km2cRtWmwGjHAjg@mail.gmail.com> <60AAD6ED-4506-4C06-BA2D-A918C8197CFB@strayalpha.com>
In-Reply-To: <60AAD6ED-4506-4C06-BA2D-A918C8197CFB@strayalpha.com>
From: "C. M. Heard" <heard@pobox.com>
Date: Mon, 14 Jun 2021 11:14:58 -0700
X-Gmail-Original-Message-ID: <CACL_3VHCdvkCf-zqbLvsmBZ+964ecUhBuJEiJZi7MFS2dxDMww@mail.gmail.com>
Message-ID: <CACL_3VHCdvkCf-zqbLvsmBZ+964ecUhBuJEiJZi7MFS2dxDMww@mail.gmail.com>
To: Joe Touch <touch@strayalpha.com>
Cc: Gorry Fairhurst <gorry@erg.abdn.ac.uk>, Tom Herbert <tom@herbertland.com>, TSVWG <tsvwg@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000077ac3805c4bdd6fd"
X-Pobox-Relay-ID: 74F93E0C-CD3C-11EB-BFCF-FA9E2DDBB1FC-06080547!pb-smtp21.pobox.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/vJqp11ui67QR6BMuzgkAmwEnma8>
Subject: Re: [tsvwg] A review of draft-ietf-tsvwg-udp-options-12
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tsvwg/>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 14 Jun 2021 18:15:19 -0000

On Mon, Jun 14, 2021 at 10:17 AM Joe Touch <touch@strayalpha.com> wrote:

> Yes, but we still need the fraglen field in the last frag too.
>

No, it is not necessary, if every option precedes the FRAG header.

See the format I posted this am.
>

I did read it. If I correctly understand what you wrote, there is an
underlying ASSUMPTION that options that apply per-fragment need to precede
the FRAG header and those that apply to the reassembled datagram have to
appear afterward. To be clear, I do not dispute that such a design will
work; it will. What I dispute is that it is necessary.

In the design that I presented earlier, I also made an implicit assumption
that whether an option applies to an individual fragment or to the
reassembled datagram can be determined from the Option Kind (or UKind or
ExID). Going down the list:

EOL - not applicable (FRAG consumes all trailing data)
NOP - per fragment
OCS - per fragment
ACS - per datagram
FRAG  - per fragment (obviously)
UNSAFE - depends on Ukind
TIME - per datagram
AE - per fragment (see below)
REQ, RES - per datagram
EXP - depends on UDP ExID

I will grant that defining AE as per-fragment or per-datagram is a design
choice. Either can be made to work, but if it's designed to be per-fragment
then the description in the draft of how it works needs no modifications --
in particular, this:

   >> Only the OCS and AE options depend on the contents of the option
   area. AE is always computed as if the AE hash and OCS checksum are
   zero; OCS is always computed as if the OCS checksum is zero and
   after the AE hash has been computed.


I'm still struggling to wrap my head around how zero copy interacts with
all this, but I hope to post a response to that within the next 12 hours.

Thanks and regards,

Mike Heard