Re: [tsvwg] Options larger than 255 (was RE: draft-ietf-udp-options issues from IETF 104)

Tom Herbert <tom@herbertland.com> Thu, 18 July 2019 16:34 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 949AB1208E4 for <tsvwg@ietfa.amsl.com>; Thu, 18 Jul 2019 09:34:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] 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 l2FH-AehxfPo for <tsvwg@ietfa.amsl.com>; Thu, 18 Jul 2019 09:34:41 -0700 (PDT)
Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) (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 74EEC1208E2 for <tsvwg@ietf.org>; Thu, 18 Jul 2019 09:34:41 -0700 (PDT)
Received: by mail-ed1-x544.google.com with SMTP id r12so30939620edo.5 for <tsvwg@ietf.org>; Thu, 18 Jul 2019 09:34:41 -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:content-transfer-encoding; bh=Dlhefh3YK6Rwexd5s0juZYGArRs3hxxF7PXBEH3funE=; b=EkydMqSb/vGjv9Z0bJ4ed+ajb9zcDuu05SG685BqThs1yqdvKfoFRNDlj+jiBSMReP 1X6Q8BmTBUVEqiwKpFEwGH6JAejTiN+gJ5jNe43PIbRXAEvjVr2HiVb/ZJA0aLdOAVh7 LTqpc1DwZaaseMo8lq9hqQ2qbvnrUIdEidO1wmrerKcO5LeR8nIsAdUe9hATCuMoPTUD HprRZVorx+rK4e5O71QWs3w4HiJIR9uYRmiy2+tGC3CrE3RW+o8utLkdFXANbZJIXlml zCZdwl8OWxtimHwqgt7ejb+laBBOWoXrzGCKNuFtoExnmJ2mU9O+TY8mnafCNN8erdZm pVUA==
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:content-transfer-encoding; bh=Dlhefh3YK6Rwexd5s0juZYGArRs3hxxF7PXBEH3funE=; b=GNmfkVLkOdYA90ov6IY0sZg6cLLscrN9NlnjT7DfSXM5acvVQhH4MkP2B0Dplu0MMs AoU5D+KB5khYbxQzYa9uBerLzM70S4hlV72OuDfHNH+XGmXHZgnOL6AiV9Ru/JxS05d+ kn6vPmdivo7y2uepjh+4gJavhkvZs8sG9pftDs4LrWVawbYpC3bS3h58aOdnBLfDMoEk YwTTc/kWlR4dh6653wC54sXkeER67r8Zc2kXqrhD6JWYTiWToxOO9R6XQCkeAjmUGo4J 5SbNwZqe8X2DuoVE6+xOni0dLjyYADUSrVSQTqyzVrz0JIftr9QcyUGBarv9TmQd1dc+ z1tQ==
X-Gm-Message-State: APjAAAV0gZCKEjy46EBMyfeGGXbw0soAjwEE6uS+/PHNN0Mr4X66rz93 QNy4iBmzyukERDSfh2Ta1dL5/xOTAW0i4P7qDS15vA==
X-Google-Smtp-Source: APXvYqzH6eennnndqx2Rc9UJ9T3y16SJb0xR2tYTP2ZInFViJY4S4QHlAxJo/yPShzaJztk7tdYQScMiQKIFiFeg8cI=
X-Received: by 2002:a50:b561:: with SMTP id z30mr41610611edd.87.1563467679857; Thu, 18 Jul 2019 09:34:39 -0700 (PDT)
MIME-Version: 1.0
References: <787AE7BB302AE849A7480A190F8B93302FA71098@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <5D306564.1000101@erg.abdn.ac.uk> <787AE7BB302AE849A7480A190F8B93302FA773C1@OPEXCNORMAE.corporate.adroot.infra.ftgroup> <5D3069CF.7000109@erg.abdn.ac.uk> <CALx6S34d9FsfFahjy4SWMBr2_knFKzHjML5-3+JvrBUBx-uOBQ@mail.gmail.com> <5D309C74.5050407@erg.abdn.ac.uk>
In-Reply-To: <5D309C74.5050407@erg.abdn.ac.uk>
From: Tom Herbert <tom@herbertland.com>
Date: Thu, 18 Jul 2019 09:34:28 -0700
Message-ID: <CALx6S35pw36+7RvKm8JGnrat63pOHaXko5HXs3BnrzExtg02cA@mail.gmail.com>
To: Gorry Fairhurst <gorry@erg.abdn.ac.uk>
Cc: mohamed.boucadair@orange.com, "tsvwg@ietf.org" <tsvwg@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/pCHqXH8cEbm9g9Tf1dwdRMwL5AM>
Subject: Re: [tsvwg] Options larger than 255 (was RE: draft-ietf-udp-options issues from IETF 104)
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: Thu, 18 Jul 2019 16:34:44 -0000

On Thu, Jul 18, 2019 at 9:21 AM Gorry Fairhurst <gorry@erg.abdn.ac.uk> wrote:
>
> On 18/07/2019, 17:13, Tom Herbert wrote:
> > On Thu, Jul 18, 2019 at 5:45 AM Gorry Fairhurst<gorry@erg.abdn.ac.uk>  wrote:
> >> Ah so, I guess the document editors canm work out what is best to do.
> >>
> >> My wish was to systematically allow larger options to be possible.
> >>
> > Gorry,
> >
> > This is a good example of how a variant/type field in the surplus
> > header allows the format to be extensible. If a large option length is
> > needed then a variant could be created for that. Since the format is
> > extensible we don't have to specify all possibilities for the protocol
> > up front.
> >
> > Tom
> Yes, I see that as an option. In relaity though for this case we have a
> 1 byte len or a 2 byte len. Personally, I would not be in favour of a
> longer length... that another story (see,
> draft-jones-6man-historic-rfc2675-00) ;-)
>

Probably not just length field that will be a target :-). For
instance, I could imagine the Geneve proponets might want longer type
fields (e.g. maybe they want to move some Geneve options into UDP
options for some reason).

I am curious though, how would options bigger than 255 bytes help? It
doesn't seem like this was ever an issue with other dataplane
protocols that have options.

Tom

> Gorry
> >> Gorry
> >>
> >> On 18/07/2019, 13:41, mohamed.boucadair@orange.com wrote:
> >>> Re-,
> >>>
> >>> 0/1 are illegal values. These values MUST NOT be used. A receiver will discard them systematically.
> >>>
> >>> With the proposed approach: 254/255 are legal values... but with a special meaning.
> >>>
> >>> Cheers,
> >>> Med
> >>>
> >>>> -----Message d'origine-----
> >>>> De : Gorry Fairhurst [mailto:gorry@erg.abdn.ac.uk]
> >>>> Envoyé : jeudi 18 juillet 2019 14:26
> >>>> À : BOUCADAIR Mohamed TGI/OLN
> >>>> Objet : Re: Options larger than 255 (was RE: [tsvwg] draft-ietf-udp-
> >>>> options issues from IETF 104)
> >>>>
> >>>> I don't mind the choice of codepoint, my understaning was zero was an
> >>>> invalid length, and an easy thing to test in code. Choosing 254 or 255
> >>>> seems less obvious to me, but if there are good reasons, just say...
> >>>>
> >>>> Gorry
> >>>>
> >>>> On 18/07/2019, 12:48, mohamed.boucadair@orange.com wrote:
> >>>>> Re-,
> >>>>>
> >>>>> Associating a meaning with Len=0 as proposed by Joe may not be
> >>>> intuitive. An alternate approach would be:
> >>>>> * 'Len' only covers the option data field (that is, 'kind' and 'Len'
> >>>> fields are not covered. The overall option length can be easily inferred).
> >>>>> * Associate a meaning with one of the two values we grabbed:
> >>>>>     - 254 or 255: a 16-bit extended length field follows
> >>>>>
> >>>>> Cheers,
> >>>>> Med
> >>>>>
> >>>>>> -----Message d'origine-----
> >>>>>> De : tsvwg [mailto:tsvwg-bounces@ietf.org] De la part de Gorry
> >>>> Fairhurst
> >>>>>> Envoyé : jeudi 18 juillet 2019 12:22
> >>>>>> À : gorry@erg.abdn.ac.uk
> >>>>>> Cc : tsvwg
> >>>>>> Objet : Re: [tsvwg] draft-ietf-udp-options issues from IETF 104
> >>>>>>
> >>>>>>> Gorry
> >>>>>> P.S. I like the idea to explicitly allow options longer than 255 bytes?
> >>>>>> - This seems useful for fragmentation and would be an easy addition,
> >>>>>> someone suggested using 0 option length to indicate a 16b length field,
> >>>>>> which could make total sense. As in:
> >>>>>>
> >>>>>> https://mailarchive.ietf.org/arch/msg/tsvwg/B4oeZkpagdl4gkAMDCFW7F1A7_8
> >>>>>>
> >>>>>> Gorry
>