Re: [tsvwg] UDP options and header-data split (zero copy)

Joseph Touch <touch@strayalpha.com> Sun, 01 August 2021 22:56 UTC

Return-Path: <touch@strayalpha.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 824CE3A16F6 for <tsvwg@ietfa.amsl.com>; Sun, 1 Aug 2021 15:56:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.319
X-Spam-Level:
X-Spam-Status: No, score=-1.319 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, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=strayalpha.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 X3WOfmce0dVw for <tsvwg@ietfa.amsl.com>; Sun, 1 Aug 2021 15:56:35 -0700 (PDT)
Received: from server217-4.web-hosting.com (server217-4.web-hosting.com [198.54.116.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C62763A16C0 for <tsvwg@ietf.org>; Sun, 1 Aug 2021 15:56:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=strayalpha.com; s=default; h=To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QeLmkQeNHZ4tVbvgTE3LlLcewkltv3ArAFEyqvwKxfQ=; b=fdS0ngAV9TRBHNpwGSTixeMzA+ Wjwv/8rVrgWxWi+CfVVur60GmumlBwRGIe4CIQyrCyuw9xgZm14wV/TVi27Fe/I/SfPXpYadWDIAv 3+qxBbvKhxUt/nKjP0A0NX4iyCbmX5onVOW+lV6aZTYymmV9GIghl0ZdRSZNeBP6vpxDWxYHJJ5Gf bqVGvhkcCmkFP83ySFg6gsadaKGSZt2DI2c35B8BHh5dv6AASKcpAUti6J6L5pzyXpEJePwX6T/aQ eANCfSFrWfneoEWIwcbSpIkkQ8I3s2CKs+ABGHH0vw2Fuf6ZBgCXrOFwUoV5lUtmXIyakIIBbPhY3 PCA5BZnQ==;
Received: from cpe-172-114-237-88.socal.res.rr.com ([172.114.237.88]:50197 helo=smtpclient.apple) by server217.web-hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <touch@strayalpha.com>) id 1mAKNh-002kkq-P8; Sun, 01 Aug 2021 18:56:34 -0400
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
From: Joseph Touch <touch@strayalpha.com>
In-Reply-To: <CACL_3VEo75pKTOhizO1AhvqW7vCkOnaerDi6UNRA6e5K5mKYfQ@mail.gmail.com>
Date: Sun, 01 Aug 2021 15:56:28 -0700
Cc: TSVWG <tsvwg@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <F35E0828-1F8F-4D7C-A570-32A2F47F773F@strayalpha.com>
References: <A0932E7C-183B-41EF-B2AA-838FC45A087E@strayalpha.com> <28339CB5-2C9D-4870-9F25-07D6BBF43BDD@strayalpha.com> <CACL_3VEo75pKTOhizO1AhvqW7vCkOnaerDi6UNRA6e5K5mKYfQ@mail.gmail.com>
To: "C. M. Heard" <heard@pobox.com>
X-Mailer: Apple Mail (2.3654.120.0.1.13)
X-OutGoing-Spam-Status: No, score=-1.0
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server217.web-hosting.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - strayalpha.com
X-Get-Message-Sender-Via: server217.web-hosting.com: authenticated_id: touch@strayalpha.com
X-Authenticated-Sender: server217.web-hosting.com: touch@strayalpha.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-From-Rewrite: unmodified, already matched
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/TuJig1UUlrA0Ep1yNMsTR8w15Ac>
Subject: Re: [tsvwg] UDP options and header-data split (zero copy)
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: Sun, 01 Aug 2021 22:56:46 -0000


> On Aug 1, 2021, at 3:48 PM, C. M. Heard <heard@pobox.com> wrote:
> 
> On Sun, Aug 1, 2021 at 2:56 PM Joe Touch wrote:
> > > On Aug 1, 2021, at 2:33 PM, Joseph Touch wrote:
> > > > > On Sun, Aug 1, 2021 at 10:48 AM Joseph Touch wrote:
> > > > > Also, the trailing variant allows per-reassembled options
> > > > > to be arbitrarily long (limited by the reassembled length),
> > > > > rather than requiring them to fit inside a single fragment.
> > > >
> > > >
> > > > If that is the intent, then
> > > > draft-ietf-tsvwg-udp-options-13#section-5.5 needs significant clarification.
> > >
> > > Yes; this is pending.
> >
> > Fwiw I was assuming that field pointed to the start of the trailer
> > options measured from the start of the UDP data (I might have [forgotten]
> > that nuance in the -13 text) If that field points inside this
> > fragment, it can help the split. If not, then the per reassembled
> > options could be split out only after reassembly. But they don’t need
> > to fit in a single fragment.
> 
> I have to say that I was not altogether pleased with what I thought the draft said, but I find this level of complexity to be downright alarming, and I don't see a need for it.

The value in the terminal fragment is just the value that would have been in the original IP length before fragmentation, less the IP and UDP headers.

That’s very simple. 

Whether it can be used to split off the trailing options requires a simple comparison - if FRAG_END > FRAG_OFFSET, then the trailing options are entirely in this fragment. If not, then not.

The fact that per-reassembled datagram options look exactly like legacy options it similar in its simplicity, as is using TLVs for everything. It’s all about fewer different ways to do the same thing.

Joe