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

"C. M. Heard" <heard@pobox.com> Mon, 14 June 2021 16:41 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 4DC393A2A44 for <tsvwg@ietfa.amsl.com>; Mon, 14 Jun 2021 09:41:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.798
X-Spam-Level:
X-Spam-Status: No, score=-2.798 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, RCVD_IN_DNSWL_LOW=-0.7, 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 xCNqwOOixdIK for <tsvwg@ietfa.amsl.com>; Mon, 14 Jun 2021 09:41:54 -0700 (PDT)
Received: from pb-smtp20.pobox.com (pb-smtp20.pobox.com [173.228.157.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 779573A2A4D for <tsvwg@ietf.org>; Mon, 14 Jun 2021 09:41:54 -0700 (PDT)
Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 2772E120A83 for <tsvwg@ietf.org>; Mon, 14 Jun 2021 12:41:50 -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=i46T/IzpdN03vXYU2MZE7XUIkWuDJnkt HXVwXvQf/P0=; b=XfddArznRlQl7AynJoluUxxEUDmq1KGHgLlVT70nDhCTFTH+ UuB3BbBAPomZmQ0W7RRMa0mXr8v1K49/JThwugKcN+5TcKiwx+aSv/CPzj3SJ2sq QJpoU5DU6K696DdZYlEEbSbPSmEjL95eDWXETgrwEH6dCRAMLNTix1xWRVs=
Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 207EC120A82 for <tsvwg@ietf.org>; Mon, 14 Jun 2021 12:41:50 -0400 (EDT) (envelope-from heard@pobox.com)
Received: from mail-io1-f53.google.com (unknown [209.85.166.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id C0E3F120A81 for <tsvwg@ietf.org>; Mon, 14 Jun 2021 12:41:47 -0400 (EDT) (envelope-from heard@pobox.com)
Received: by mail-io1-f53.google.com with SMTP id f10so25776061iok.6 for <tsvwg@ietf.org>; Mon, 14 Jun 2021 09:41:47 -0700 (PDT)
X-Gm-Message-State: AOAM532BDgwxPjbWEEMHlDFssD4Tla0xO2aiA/9RPOKYJ8c9tXDyyeD4 46Rwc89ZoWJiEkhAsGy6ueJWJAyrgcZ7vNT1sCg=
X-Google-Smtp-Source: ABdhPJzhChRp7czp2/jLDPaNo+oSI0s0kbQ+sw9mhR0/nzlfJ/ufr1c0NZ14+w0AZbaDU8CBqywg/E7poZ7XI1uYZ4w=
X-Received: by 2002:a6b:f717:: with SMTP id k23mr7744747iog.17.1623688906523; Mon, 14 Jun 2021 09:41:46 -0700 (PDT)
MIME-Version: 1.0
References: <CACL_3VGb_9P5SfPGRJtf1ZBvEhgywc2ZEGr-qbgNOMXV20rFeA@mail.gmail.com> <CACL_3VHyoRr5ju8203DiLTUo-658DCj7ud+1dQE2o0hUPVhF0A@mail.gmail.com> <7D766992-AEEB-434F-BB1D-3817EE07DE61@strayalpha.com> <1BBDBD80-3A53-4700-A79F-9A3AE4876F2B@strayalpha.com> <CACL_3VEXCT-sSNhtncVK26DPQefDLJhqEijgDke4Q7DmhRrpTQ@mail.gmail.com> <67E79ED1-14DE-4127-83AF-D17E8C72F362@strayalpha.com> <CALx6S37faGXPaC-4qZ0e_3CM5hSFQhrDOQydVvdjxzY5zKf5SA@mail.gmail.com> <4564201c-a3ca-7e17-a03f-ee9626852169@erg.abdn.ac.uk>
In-Reply-To: <4564201c-a3ca-7e17-a03f-ee9626852169@erg.abdn.ac.uk>
From: "C. M. Heard" <heard@pobox.com>
Date: Mon, 14 Jun 2021 09:41:35 -0700
X-Gmail-Original-Message-ID: <CACL_3VG9w3xsoOFqit_YHB5gTztWMQrcYo6km2cRtWmwGjHAjg@mail.gmail.com>
Message-ID: <CACL_3VG9w3xsoOFqit_YHB5gTztWMQrcYo6km2cRtWmwGjHAjg@mail.gmail.com>
To: Gorry Fairhurst <gorry@erg.abdn.ac.uk>
Cc: Tom Herbert <tom@herbertland.com>, Joseph Touch <touch@strayalpha.com>, TSVWG <tsvwg@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000007fc9b005c4bc88cb"
X-Pobox-Relay-ID: 694266D6-CD2F-11EB-BCCC-D5C30F5B5667-06080547!pb-smtp20.pobox.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/LRACAqnJcuvpSz70a_nUkZEBgDQ>
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 16:41:59 -0000

On Mon, Jun 14, 2021 at 9:32 AM Gorry Fairhurst <gorry@erg.abdn.ac.uk>
wrote:

> > An obvious feature we'd want is NIC hardware to do UDP options
> > fragementation and reassembly, analogous to existing UDP Fragmentation
> > Offload (UFO) which performs IP fragmentation of UDP packets. The
> > impediment with supporting this is that hardware devices would need to
> > perform protocol processing on trailers as opposed to headers. Nearly
> > all hardware devices, including switches and NICs, are optimized to
> > process protocol headers and in modern devices they are quite
> > programmable in that regard. However, they typically rely on a parsing
> > buffer that holds the first N bytes of the packet and assume that all
> > the protocol headers lie within that. They wouldn't process data after
> > that header in the fast path at least, and almost certainly would have
> > capability to process protocol headers at that end of a large packet.
> > I am doubtful we'll ever see hardware support for trailer protocols,
> > and hence it's unlikely we'd see accelerations for UDP options like we
> > have for TCP.
> >
> > Tom
>
> OK.... Is there any way that we could design to enable this?


> I'm "fishing" for ideas because I know you've talked about the various
> offload methods.
>
> So for options in the trailer, this is clearly an impediment.
>
> For UDP-Opt fragmentation, I understand there is no standard UDP payload,
>
> .... only an option containing a fragment, so the Fragment information
> would actually be in the" first N bytes of the packet".
>
> So, what do you think  could be most likely helpful to enable fastpath
> accelleration for the fragments?


The proposal that I floated a few days ago in
https://mailarchive.ietf.org/arch/msg/tsvwg/N1fmoBxQ5iOL5X7o34oVSA8Ayvw/
would move all of the fragment data to the end of the packet, with UDP
header and UDP options preceding. The very last option would be FRAG
itself, and it would consume all trailing data.

Joe was displeased by replacing the length byte by a More Fragments flag
and suggested instead using two Option Kind codepoints to distinguish
terminal and non-terminal fragments. That would be fine with me and would
not change the proposal in any fundamental way.

Mike Heard