Re: [tsvwg] Alternative version of the UDP FRAG option

Tom Herbert <tom@herbertland.com> Sat, 16 March 2019 16: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 49A6D129B88 for <tsvwg@ietfa.amsl.com>; Sat, 16 Mar 2019 09:06:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=herbertland-com.20150623.gappssmtp.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 AdYSTAF842jd for <tsvwg@ietfa.amsl.com>; Sat, 16 Mar 2019 09:06:35 -0700 (PDT)
Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) (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 9318D1274D0 for <tsvwg@ietf.org>; Sat, 16 Mar 2019 09:06:35 -0700 (PDT)
Received: by mail-qt1-x82b.google.com with SMTP id w30so8180491qta.8 for <tsvwg@ietf.org>; Sat, 16 Mar 2019 09:06:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=herbertland-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B+rGaZ7PgwW11wImyQRG/czA+FfQflteLAsybrfpMZ0=; b=kTlqxxu29dmfC7TwFw0CLjFhYysXHF+QE9AHrhUQl0IUmarYZivSn/743a1XJKX1qH /53GqEMIOn+qqhbjbLfFI2XNXLJXocaLYQm2bS1VwBxwv/rp/yJsBXYE0uPAUfflOR5+ CZKL8SUae7HMmEVQVmQ9BL6f0JXhJPGzwDH3U32XpC6IWSNcrp89zON6FcreRUcYHION rKugLrg/UrkEDdRzxePFBSJRdYzmD+aGeOKFarIFz7KFwxfx9vo2q+lII1WrsXXnnuox rVLemJRVQMgQsIRZJeeJIk/DLfs1D54HPeVWRrdSmST8f2OxROyIan7D8CnTdnKIMZhX z3bQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B+rGaZ7PgwW11wImyQRG/czA+FfQflteLAsybrfpMZ0=; b=V2U3wldKmNkE46JBnWiZXqmWDMMbv/V4+MNo47nIYuSRN2ioBgeVAYbq5Jdbd0GtpK WJU8nDaqnbmLUTfXQm/qqiYmyNUr5seIU4DFyFNUqznvezledn7ZdsvN8bXbeM+PTfZx rA+Cyv/oWKn6YOh1LuKaev5/4uRdDgQoD3w60UpkcCIXmeuK6TDUH+BopZaPpEkh+Gbi EjGWhwUQ5CB1LHFsOusKXXn47hT72zIExMHJhksf2BbxWt1bQdahtz6M4DydmcQngQdJ sr+rUoLnBYtNXooBlTX0olWpfQjXXS4xVnDmM/RUJtHvDCfL6mBx3va5CT4vFguoVTMN ltHg==
X-Gm-Message-State: APjAAAXT9LzyiKeo8FRdGSNGvNSZTDnSKQaADFYD4OB8gmbEJc7qrhwE mRfVNUO1Tyq6iwsmkYRJDqURONoY+yllbaTDZvuhMQ==
X-Google-Smtp-Source: APXvYqwpx/UAx8ZRcUa7DMpOTUQylOkh2VrAtX3D+D5BXQhKoJJtjOKl7/0sYjb3GEN7pZG3UFyc5rKk9whdYesH0+8=
X-Received: by 2002:a0c:86f5:: with SMTP id 50mr6558269qvg.70.1552752394622; Sat, 16 Mar 2019 09:06:34 -0700 (PDT)
MIME-Version: 1.0
References: <CACL_3VE1=0OORUuOKg9GjcdVuhBNTkWhymE7PAs5WYO0ZR0DWQ@mail.gmail.com>
In-Reply-To: <CACL_3VE1=0OORUuOKg9GjcdVuhBNTkWhymE7PAs5WYO0ZR0DWQ@mail.gmail.com>
From: Tom Herbert <tom@herbertland.com>
Date: Sat, 16 Mar 2019 09:06:23 -0700
Message-ID: <CALx6S37y_AbESyX5PcCSu7NEr-uPVrPXksEeAx5aSNAyqshL6Q@mail.gmail.com>
To: "C. M. Heard" <heard@pobox.com>
Cc: tsvwg <tsvwg@ietf.org>, Joe Touch <touch@strayalpha.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/pdiz5qmfNzhjP0jBgjCh9SyUn3w>
Subject: Re: [tsvwg] Alternative version of the UDP FRAG option
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: Sat, 16 Mar 2019 16:06:38 -0000

On Mon, Mar 11, 2019 at 9:11 PM C. M. Heard <heard@pobox.com> wrote:
>
> On Mon, Mar 11, 2019 at 9:26 AM C. M. Heard <heard@pobox.com> wrote:
> > I'd like to float a different idea, namely, putting the UDP user data
> > inside the FRAG option itself.
>
> Well, that proposal was rather obviously flawed by limiting fragment
> sizes to ~240 bytes. My apologies. I withdraw the FRAG proposal in
>
> https://mailarchive.ietf.org/arch/msg/tsvwg/JZ8ohgwMs9eRPRQ6KJDqUZTJxSk
>
> However, I think that the following simpler version will actually work:
> maintain the format of the FRAG option as currently defined, but instead
> of having the option capture preceding conventional or LITE user data as
> fragment data, insist that it appear ***last*** in the option list and
> have it capture all remaining octets in the packet as fragment data. By
> convention, if this option appears, OCS would cover all UDP options as
> well as all octets in the UDP trailer that follow the FRAG option.
>
> The following requirements would apply:
>
>    >> When the FRAG option appears, it MUST come last in the UDP options
>    list.  All remaining options in the packet are interpreted as fragment
>    data.
>
Hi Mike,

Thinking about this, it occurs to me be that the LITE option isn't
needed. The assumption in the UDP options draft is that a receiver
needs the UDP payload to immediately follow the UDP header, but the
UDP payload can be anywhere in the surplus area as long as it's
aligned to four bytes. A receiver will know how to handle it and
deliver the UDP data to the application (e.g. by maintaining a pointer
to the data).

So that allows a format like:

UDP header (Length=8) | Surplus area header | Options | Payload

The surplus area header contains the header length and a checksum
covering the surplus space (four bytes altogether). The three headers
can thought of as an extended UDP header, so the format becomes:

Extended UDP header | Payload

Which looks a whole lot like any other protocol format with a variable
length header such as TCP or IPv4.

Tom

>
>    >> OCS, if present, covers both the FRAG option and the trailing
>    fragment data.
>
>
>    >> A host that wishes to signal that it is able to accept and process
>    the FRAG option MAY do so by transmitting an unfragmented datagram
>    with an empty terminal FRAG option whose Offset and Checksum fields
>    are set to zero.
>
>
>    >> Non-empty FRAG options MUST NOT be present in packets with ordinary
>    UDP user data or LITE data. Any such options MUST be silently dropped.
>
>
>    >> UDP options other than OCS and padding MUST NOT accompany the FRAG
>    option in non-terminal fragments.  Any such options MUST be silently
>    dropped.  All other options that apply to a reassembled packet must
>    accompany the FRAG header in the terminal fragment.
>
>
> This proposal does not suffer from the disadvantage that a legacy receiver
> could misinterpret a UDP fragment as a complete datagram, as does the
> currently-defined version of FRAG without LITE.  And it avoids the problem
> that OCS does not cover the currently defined version of FRAG+LITE.
>
> Note that because of their unusual property of capturing following or
> preceding data, FRAG and LITE would have to be mandatory to
> recognize, but I do not believe that they should be mandatory to
> generate or process. An implementation that cannot process these
> options should silently drop packets that contain them.
>
> There's probably something wrong; if so, please tell me what it is.
>
> Mike Heard