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

Joe Touch <touch@strayalpha.com> Thu, 18 July 2019 14:04 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 491FB12027C for <tsvwg@ietfa.amsl.com>; Thu, 18 Jul 2019 07:04:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.219
X-Spam-Level:
X-Spam-Status: No, score=-1.219 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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 lTD1hKOU0w95 for <tsvwg@ietfa.amsl.com>; Thu, 18 Jul 2019 07:04:01 -0700 (PDT)
Received: from server217-3.web-hosting.com (server217-3.web-hosting.com [198.54.115.226]) (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 8627C12004D for <tsvwg@ietf.org>; Thu, 18 Jul 2019 07:04:01 -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=wRHwccQLTU9+pqg1ZqWoR2moO1jdcSNkNPwz/D1GZX4=; b=E4zCuj41YCIoX54w7w7GSrVyk s3vwEAjkaeMzxl4UXfHO4Dhw7SirqpqOMhrpwGubUOJuxGo1rMJmwOeI3pGWezqW5dYJ+HJj1D4TT 8M88S4aS9QKjwnzil7DG/Rg3EOFMitx2YNszAskxxGyp1IJfDP8tj1WeKPuLlV6L4G4+v4QhyYD+G yOi/ojPCbjF1QaYPXkNshXxDCYVHg7c6BmqDhnNo1Pb9uZ3NNd4HHaah81VGTn7RMrDhgnhFSARW9 XNaRtDtH4G98gTTMBm5Y1VWaV6IdV4PJy5PrVBT+bNav3xvewqfVerksTuoyhshLlf7PMkLD3htKT +sVX3veTQ==;
Received: from cpe-172-250-225-198.socal.res.rr.com ([172.250.225.198]:58617 helo=[192.168.1.10]) by server217.web-hosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from <touch@strayalpha.com>) id 1ho70l-002CG7-Mp; Thu, 18 Jul 2019 10:04:00 -0400
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
From: Joe Touch <touch@strayalpha.com>
In-Reply-To: <5D3069CF.7000109@erg.abdn.ac.uk>
Date: Thu, 18 Jul 2019 07:03:54 -0700
Cc: mohamed.boucadair@orange.com, "tsvwg@ietf.org" <tsvwg@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <F519BAF5-7435-4CF9-BBD5-103A48E32F88@strayalpha.com>
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>
To: "Gorry (erg)" <gorry@erg.abdn.ac.uk>
X-Mailer: Apple Mail (2.3445.9.1)
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/PjESNM9ZSturDFf2IGYE6wwjFAY>
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 14:04:03 -0000

We can - there are a few ways to do this:
- pick one KIND and let it say that the next 3 bytes indicate the next KIND and 2-byte length
- use a subset of the range of KINDs, reserved in advance, for this purpose

Note that code points are already assigned to mimic TCP:
0 is already in use
254 is already reserved for experiments
255 is already reserved, likely to extend the KIND space itself

It might be reasonable to use 255 for this purpose because it inherently extends the KIND space anyway.

Joe

> On 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
> 
> 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
>