[tsvwg] Re: [EXTERNAL] Re: Re: UDP options [was IP Parcels and Advanced Jumbos (AJs)]

Tom Herbert <tom@herbertland.com> Sat, 16 November 2024 08:06 UTC

Return-Path: <tom@herbertland.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 725CEC14F6EE for <tsvwg@ietfa.amsl.com>; Sat, 16 Nov 2024 00:06:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 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_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=herbertland.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1a3eVZxw21dK for <tsvwg@ietfa.amsl.com>; Sat, 16 Nov 2024 00:06:05 -0800 (PST)
Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A9273C15109F for <tsvwg@ietf.org>; Sat, 16 Nov 2024 00:06:05 -0800 (PST)
Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a9ec267b879so254319666b.2 for <tsvwg@ietf.org>; Sat, 16 Nov 2024 00:06:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=herbertland.com; s=google; t=1731744364; x=1732349164; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=I5bmmSMrEbgXUcKzng6hQctmXJzeszZ0I7xIlGAwfQs=; b=dPWx1wzxCDw3zOJCOvmY9G7DoWLs423+Z3EepOFlKK3beA15Ny95i5lgiZwHmIQYn+ 9q4U9RX0eKqRaBb+6slUGEdWwbfOqv4wvB0VCI2x1FbOUzO8YG5WdsLyjWnODwJma0UA exDSR8XAfze3ji6WBv1o0XlCoCzXYLzrlxQloajCdOcMkoMtvs+iMrZ9T24uZB2OaOKi rGh33rjsLo6IgGVuuuMcgdRr80EuruAsplapBqxXQWA7yqp28yr5O6Fb3xFk9ABPAYye jF0jYxN0StHoL8S3Db+5BY8+Irpvcvxvq4XrGpLmZYeoJhYmeXtqzfrWTC6rfj7g4Hcv MFyA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731744364; x=1732349164; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I5bmmSMrEbgXUcKzng6hQctmXJzeszZ0I7xIlGAwfQs=; b=oz4wW10sYg/yrfSMq5uFz9+9EP3UFkNe73iRSsW1RCLwNmmcJceIjzpsJiOZsmSTB1 VL3Q8kpdtOyEKWxONlINWjswwIgX633lIESKSRFpGm5ClPs8h0VnfGGbWATWpDYhNL2E BDnBjhqa6gFv9Ee4Gy8wnZbEWalFFdE5QWN8GWDHQQ4WKv1e4j6g60/FR6dcqa9XJpw5 qvnoZiN1xh8gLKAKObseMS5KPfY3aWNVfsA6YIt3pWE/TeCqYpotoHN6vrql4sJcXDQt ntqQ7M06ZZs6iA4GNS+JpgFuu/4UJmdOtWjMPLp4XTrOKF52vwHhlGe6sys1oHXA5ena /jAw==
X-Forwarded-Encrypted: i=1; AJvYcCU8wXUvsT5qvhYKLba6fVizZOVq42Czx01HczUgHi5mSCoX0OgL6OyJVuvoeiH1VTjiVngw9w==@ietf.org
X-Gm-Message-State: AOJu0YxtEEgb5k800HpNk92z4gjbe4ImIIMqQzRmZ9x/yOYDdtUwjVBx azzxEYicqpzAh3kzSLzkTOZ3nwYHtW4M6hN7FqJeMJfL74i9NmroweFCeZs/yO4mhh+7BjJFhgJ kuC8MkFuGT+EwndYNVXYhpupVrfo2998KWwAO
X-Google-Smtp-Source: AGHT+IE/+MhMbBLAEGbfkGmRHVM1NBzgPqTdPnbYqt5D/bzCF4WDhsGt5PsnDZM3EvToVz++B+xJTujJiyMJYx2nedo=
X-Received: by 2002:a17:907:70b:b0:a99:499f:4cb7 with SMTP id a640c23a62f3a-aa48341481dmr498279966b.23.1731744363477; Sat, 16 Nov 2024 00:06:03 -0800 (PST)
MIME-Version: 1.0
References: <BN0P110MB142081D12453483C6717FD4EA324A@BN0P110MB1420.NAMP110.PROD.OUTLOOK.COM>
In-Reply-To: <BN0P110MB142081D12453483C6717FD4EA324A@BN0P110MB1420.NAMP110.PROD.OUTLOOK.COM>
From: Tom Herbert <tom@herbertland.com>
Date: Sat, 16 Nov 2024 08:05:50 +0000
Message-ID: <CALx6S35ef03k8xMB7y3rEVU1p9_4bUc2eVmbF=Ej_zDK2vhVUw@mail.gmail.com>
To: "Templin (US), Fred L" <Fred.L.Templin=40boeing.com@dmarc.ietf.org>
Content-Type: multipart/alternative; boundary="000000000000a0992906270327d3"
Message-ID-Hash: QYXDAEKZUNZG5VVYFT55WDDRBIYY4L4Q
X-Message-ID-Hash: QYXDAEKZUNZG5VVYFT55WDDRBIYY4L4Q
X-MailFrom: tom@herbertland.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tsvwg.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Gorry Fairhurst <gorry@erg.abdn.ac.uk>, Joe Touch <touch@strayalpha.com>, int-area <int-area@ietf.org>, 6man <ipv6@ietf.org>, TSVWG <tsvwg@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [tsvwg] Re: [EXTERNAL] Re: Re: UDP options [was IP Parcels and Advanced Jumbos (AJs)]
List-Id: Transport Area Working Group <tsvwg.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/Nbe7DsyeacIL4BSWkABYoL9w8GU>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tsvwg>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Owner: <mailto:tsvwg-owner@ietf.org>
List-Post: <mailto:tsvwg@ietf.org>
List-Subscribe: <mailto:tsvwg-join@ietf.org>
List-Unsubscribe: <mailto:tsvwg-leave@ietf.org>

On Fri, Nov 15, 2024, 7:22 PM Templin (US), Fred L <Fred.L.Templin=
40boeing.com@dmarc.ietf.org> wrote:

> Tom,
>
>
>
> > Let me rephrase. Does the GRO/GSO implementation need to change because
> of IP parcels?
>
>
>
> You are more qualified to answer this question than I am.
>

Fred,

I have some understanding of how GRO/GSO works today, but no idea what the
interaction would be with IP parcels. IMO, it's a matter of design and
implementation.

A key design point of GRO/GSO is that there is no change to  protocols and
in fact they're transparent on the wire. For UDP we can do GRO/GSO in two
modes: generic model collects UDP payloads into a single packet where the
application can deduce the individual datagrams (this is critical for QUIC
performance); we can also do TCP GRO/GSO when TCP is encapsulated in UDP
like VXLAN.

IP parcels seems to be a significant change to the protocol, so I imagine
proper support for GRO/GSO needs to be implemented. Even before that,
understanding the interaction with checksum offload might be more pertinent.

I'd also point out that the interaction with GRO/GSO and checksum offload
are also open questions for UDP Options, so it seems to me that trying to
define how IP parcels and UDP Options work together is a bit premature. I
think we need running code for each of them first.

Tom


>
> *From:* Tom Herbert <tom=40herbertland.com@dmarc.ietf.org>
> *Sent:* Friday, November 15, 2024 10:43 AM
> *To:* Templin (US), Fred L <Fred.L.Templin@boeing.com>
> *Cc:* C. M. Heard <heard@pobox.com>; Gorry Fairhurst <gorry@erg.abdn.ac.uk>;
> Joe Touch <touch@strayalpha.com>; int-area <int-area@ietf.org>; 6man <
> ipv6@ietf.org>; TSVWG <tsvwg@ietf.org>
> *Subject:* Re: [tsvwg] Re: UDP options [was IP Parcels and Advanced
> Jumbos (AJs)]
>
>
>
> On Fri, Nov 15, 2024, 6:30 PM Templin (US), Fred L <Fred.L.Templin=
> 40boeing.com@dmarc.ietf.org> wrote:
>
> Tom,
>
>
>
> >Is there any interaction between GRO/GSO and IP parcels then?
>
>
>
> An IP parcel is exactly a multi-segment GSO buffer packaged for
> transmission over an Internetwork.
>
>
>
> Hi Fred,
>
>
>
> Let me rephrase. Does the GRO/GSO implementation need to change because of
> IP parcels?
>
>
>
> Tom
>
>
>
> Fred
>
>
>
> *From:* Tom Herbert <tom=40herbertland.com@dmarc.ietf.org>
> *Sent:* Friday, November 15, 2024 10:09 AM
> *To:* Templin (US), Fred L <Fred.L.Templin@boeing.com>
> *Cc:* C. M. Heard <heard@pobox.com>; Gorry Fairhurst <gorry@erg.abdn.ac.uk>;
> Joe Touch <touch@strayalpha.com>; int-area <int-area@ietf.org>; 6man <
> ipv6@ietf.org>; TSVWG <tsvwg@ietf.org>
> *Subject:* Re: [IPv6]Re: [EXTERNAL] Re: [tsvwg] Re: UDP options [was IP
> Parcels and Advanced Jumbos (AJs)]
>
>
>
> On Fri, Nov 15, 2024, 6:01 PM Templin (US), Fred L <Fred.L.Templin=
> 40boeing.com@dmarc.ietf.org> wrote:
>
> Hi Mike,
>
>
>
> This is exactly what happens with Generic Segment Offload (GSO) and
> Generic Receive Offload (GRO) in real networks today. After a multi-segment
> GSO buffer is broken into individual IP packets during packetization, the
> receiver applies GRO to restore the multi-segment buffer if possible;
> otherwise, it delivers the individual IP packets to the upper layer. Each
> individual IP packet is an atomic unit that will be understood by upper
> layers even if it is not restored into the original multi-segment buffer
> originally prepared by GSO. This is the way GSO/GRO work today, and IP
> parcels does not change that.
>
>
>
> Hi Fred,
>
>
>
> Is there any interaction between GRO/GSO and IP parcels then?
>
>
>
> Tom
>
>
>
>
>
> Fred
>
>
>
> *From:* C. M. Heard <heard@pobox.com>
> *Sent:* Friday, November 15, 2024 9:36 AM
> *To:* Templin (US), Fred L <Fred.L.Templin@boeing.com>
> *Cc:* Gorry Fairhurst <gorry@erg.abdn.ac.uk>; Joe Touch <
> touch@strayalpha.com>; int-area <int-area@ietf.org>; 6man <ipv6@ietf.org>;
> TSVWG <tsvwg@ietf.org>
> *Subject:* [EXTERNAL] Re: [tsvwg] Re: UDP options [was IP Parcels and
> Advanced Jumbos (AJs)]
>
>
>
> EXT email: be mindful of links/attachments.
>
>
>
>
> Fred,
>
>
>
> I very strongly disagree  with your statement that it is not an error to
> "it will instead deliver each of the individual IP packets to upper layers
> without restoring the parce."
>
>
>
> That amounts to delivering PIECES of the UDP packet sent by the originator
> to the upper layer. This would be exactly equivalent to allowing a receiver
> that does not understand the UDP FRAG option to deliver the payload of each
> individual fragment to the upper layer. The UDP options draft  goes to
> considerable effort to ensure that this does not happen.
>
>
>
> There is long-standing precedent that the boundaries of UDP datagrams are
> preserved during transmission across the Internet. Many if not all
> UDP-based protocols depend on that, explicitly or implicitly. I do not
> understand why this point is even considered open for discussion.
>
>
>
> Mike
>
>
>
> On Fri, Nov 15, 2024 at 8:26 AM Templin (US), Fred L <
> Fred.L.Templin@boeing.com> wrote:
>
> Hi Mike,
>
>
>
> Thank you for looking and commenting. A UDP/IP parcel containing N
> segments that undergoes packetization somewhere along the path will arrive
> at the final destination as N individual IP packets, each containing a
> Parcel Parameters UDP option. If the destination recognizes the option, it
> will restore the N segment parcel within the kernel before delivering the
> entire parcel as a single unit to upper layers. If the destination does not
> recognize the option, it will instead deliver each of the individual IP
> packets to upper layers without restoring the parcel which is not an error.
> Very significantly, each of the individual IP packets can be dealt with as
> standalone units once packetization has been applied; it is just that if
> the receive-side does not apply restoration (i.e., GRO) the performance
> optimization will be lost at that end. So, I don’t think there is any
> problem to worry about.
>
>
>
> Fred Templin
>
>
>
> *From:* C. M. Heard <heard@pobox.com>
> *Sent:* Thursday, November 14, 2024 4:55 PM
> *To:* Templin (US), Fred L <Fred.L.Templin@boeing.com>
> *Cc:* Gorry Fairhurst <gorry@erg.abdn.ac.uk>; Joe Touch <
> touch@strayalpha.com>; int-area <int-area@ietf.org>; 6man <ipv6@ietf.org>;
> TSVWG <tsvwg@ietf.org>
> *Subject:* Re: [tsvwg] Re: UDP options [was IP Parcels and Advanced
> Jumbos (AJs)]
>
>
>
> Fred and WG participants,
>
>
>
> I have finally freed up some cycles to read draft-templin-6man-parcels2-14
> <https://datatracker.ietf.org/doc/html/draft-templin-6man-parcels2-14>,
> and I have found some issues with it that need to be addressed with respect
> to its handling of UDP.
>
>
>
> The big one -- if I have correctly understood what I have read -- is that
> it's possible for a single parcel of a parcellated UDP packet to be turned
> into a stand-alone UDP packet (see Section 7.1
> <https://datatracker.ietf.org/doc/html/draft-templin-6man-parcels2#name-packetization-over-non-parc>)
> and delivered to an end system as such (see Section 7.4
> <https://datatracker.ietf.org/doc/html/draft-templin-6man-parcels2#name-final-destination-restorati>).
> That packet would contain a Parcel Parameters UDP Option to tell the
> endpoint host that the packet is a parcel and not a complete UDP datagram,
> but the option kind is taken from the SAFE option space (KIND = 127; see
> draft-ietf-tsvwg-udp-options#section-10
> <https://datatracker.ietf.org/doc/html/draft-ietf-tsvwg-udp-options#section-10>).
> Legacy endpoints that do not understand UDP options will ignore that SAFE
> option and will deliver the parcel as if it were a complete UDP datagram.
> That, to my mind, is completely unacceptable. Unlike TCP, which is a
> byte-stream protocol in which segment boundaries have no meaning for the
> upper layer, UDP is a datagram protocol in which message boundaries are
> meaningful to the upper layer. The protocol has a contract with the upper
> layer to deliver a message as it was submitted or not at all. Delivering a
> parcel in a manner that can be misinterpreted as a complete datagram
> violates that contract.
>
>
>
> It is possible to repair this defect by making the Parcel Parameters
> Option, or something with equivalent functionality, into an UNSAFE option.
> My suggestion would be to define an UNSAFE version of the existing FRAG
> option (see draft-ietf-tsvwg-udp-options#section-11.4
> <https://datatracker.ietf.org/doc/html/draft-ietf-tsvwg-udp-options#section-11.4>)
> -- let's call it UFRAG -- that would allow for packet sizes greater than
> 65,535 bytes. The same option could be used to send singleton advanced
> jumbo packets as atomic fragments. This would avoid any need to modify the
> base UDP and UDP Options specifications.
>
>
>
> Additionally: during the review of draft-ietf-tsvwg-udp-options
> <https://datatracker.ietf.org/doc/html/draft-ietf-tsvwg-udp-options>, Joe
> Touch correctly pointed out that RFC 2675
> <https://datatracker.ietf.org/doc/html/rfc2675> (and its predecessor RFC
> 2147 <https://datatracker.ietf.org/doc/html/rfc2147>) failed to note that
> it updated RFC 768 <https://datatracker.ietf.org/doc/html/rfc768>.
> Similar concerns apply to TCP. If this draft foes forward, it should note
> that it updates the UDP and TCP specifications, and it should get buy-in
> from TSVWG and TCPM.
>
>
>
> Thanks and regards,
>
>
>
> Mike Heard
>
>
>
>
>
>
>
>
>
>
>
> On Sun, Sep 29, 2024 at 3:51 PM C. M. Heard <heard@pobox.com> wrote:
>
> Fred,
>
>
>
> I currently hold the editing pen for the changes to the UDP Options draft
> that have been requested prior to the shepherd report, and my intention is
> to remain silent about how, if at all, IP Parcels and Advanced Jumbos (AJs)
> will support UDP Options.
>
>
>
> I'll provide comments on the IP Parcels and Advanced Jumbos work at a
> later date, when I have spare intellectual cycles to fully comprehend the
> contents of draft-templin-6man-parcels2. At this point I must confess that,
> like Brian, I do not understand how a receiver will locate the options
> trailer in the case of an IP Payload Length exceeding 65535. Like Joe, I
> think it would be better to put the options just after the UDP header and
> make a new UNSAFE option to delimit the position where the options end and
> the user data begins.. But that discussion (and the corresponding update to
> the UDP options draft) can occur when it is ripe; IMO that is not the case
> at this time.
>
>
>
> Respectfully,
>
>
>
> Mike Heard
>
>
>
> On Sun, Sep 29, 2024 at 3:07 PM Templin (US), Fred L <Fred.L.Templin=
> 40boeing.com@dmarc.ietf.org> wrote:
>
> IP parcels and Advanced Jumbos (AJs) of all sizes ranging from 1 to 2^32
> are now eligible
>
> for using UDP options. This is just one way in which they offer a better
> service than RFC2675
>
> Jumbograms, but there are also many others.
>
>
>
> Joe, you can either note this in your draft or just leave it be and let my
> draft do an
>
> “updates UDP options”.
>
>
>
> Thank you - Fred
>
>
>
> *From:* Brian Carpenter <brian.e.carpenter@gmail.com>
> *Sent:* Saturday, September 28, 2024 2:20 AM
> *To:* Gorry (erg) <gorry@erg.abdn.ac.uk>
> *Cc:* Joe Touch <touch@strayalpha.com>; Templin (US), Fred L <
> Fred.L.Templin@boeing.com>; Tim Chown <Tim.Chown@jisc.ac.uk>; Internet
> Area <Int-area@ietf.org>; IPv6 List <ipv6@ietf.org>; tsvwg IETF list <
> tsvwg@ietf.org>
> *Subject:* [EXTERNAL] Re: [tsvwg] Re: UDP options [was IP Parcels and
> Advanced Jumbos (AJs)]
>
>
>
> EXT email: be mindful of links/attachments.
>
>
>
>
> That works for me..
>
>
>
> (via tiny screen & keyboard)
> Regards,
>         Brian Carpenter
>
>
>
> On Sat, 28 Sept 2024, 19:08 Gorry (erg), <gorry@erg.abdn.ac.uk> wrote:
>
> See below
>
> > On 28 Sep 2024, at 04:05, Brian E Carpenter <brian.e.carpenter@gmail.com>
> wrote:
> >
> > Joe,
> > On 28-Sep-24 03:13, touch@strayalpha.com wrote:
> >>>> On Sep 27, 2024, at 7:58 AM, Templin (US), Fred L <Fred.L.Templin=
> 40boeing.com@dmarc.ietf.org> wrote:
> >>>
> >>>> Indeed. But if sendmsg() and recvmsg() can and do generate RFC2675
> packets, it means that any discussion of obsoleting RFC2675 should be
> >>>> off the table.
> >>>
> >>> No one that I know of has suggested obsoleting RFC2675 - my documents
> do not say "obsoletes" (nor even "updates”).
> >> That approach to UDP jumbo grams is incompatible with UDP options.
> >> And yes, there was a proposal to move that RFC to historic:
> >> Jones, T., G. Fairhurst, "Change Status of RFC 2675 to Historic,"
> draft-jones-6man-historic-rfc2675, May 2019.
> >> We COULD have a new option with a longer length, but that’s not in our
> baseline draft.
> >
> > Wouldn't that be tricky, because the options follow the whole payload as
> I understand it? So a JumboUDPgram has to be received in full, however big
> it is, before the option saying that it's a jumbo can be received and
> interpreted.
> >
> > Where the udp-options draft says:
> >
> >>> The technique has been proposed for deprecation [Jo19].
> >
> > I think you'd better change it to something like:
> >
> > The technique is known to be in active use in special situations, so
> cannot reasonably be deprecated. However, users of this technique cannot
> simultaneously use UDP options.
> >
> >    Brian
> >
> I do not think the I-D needs to say anything about the deployment status
> of jumbograms, that another topic.
>
> I suggest if people wish, we just say that  users of this technique can or
> cannot simultaneously use UDP options.
>
> Gorry
> >
> >
>
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> List Info: https://mailman3.ietf.org/mailman3/lists/ipv6@ietf.org/
> --------------------------------------------------------------------
>
>