Re: [Cbor] GRASP packet header extensions (CBOR question)

Brian E Carpenter <brian.e.carpenter@gmail.com> Fri, 19 August 2022 22:01 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 571C2C14CE46; Fri, 19 Aug 2022 15:01:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.108
X-Spam-Level:
X-Spam-Status: No, score=-2.108 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, FREEMAIL_FROM=0.001, NICE_REPLY_A=-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] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 TIhRheEQsFaH; Fri, 19 Aug 2022 15:01:44 -0700 (PDT)
Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0EF09C14CE20; Fri, 19 Aug 2022 15:01:44 -0700 (PDT)
Received: by mail-pf1-x42b.google.com with SMTP id y127so2458729pfy.5; Fri, 19 Aug 2022 15:01:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=NY1ttQm4RwhLT5SIWc0lNyFBfznWgLJIKY8R3xh8Nvk=; b=TGDN5CBtcIZjUcKwiOrinXkV0bxJgB9lqODeIu93+u0EynDAhoBxovfKBSpDmuIANZ glVgKKcMf36OsOvS/kw+r/Tls1OwELqHPf9SzVe/+hJuuLkmW4x5raml/WaZgoM/CfT5 Lt5qcDvM2QxyqCIbGknrFTyK3KPTq490Q616Op8rx37xeXl3lPUqaDnlVe1xvKHazFDL +Hl1+HIs6LbZuxSIRlPeZvyJlFH4XGrC16I0alzbUFEdkfDBxjKPa7E4IKJHrVKuxgSs lmJzfo8zQuaRX2mr1p0U0JNHeBU3KRLkml3zfvWkl8HbGpvK+SH2P0/8alzTLqyqVtOM cbRw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=NY1ttQm4RwhLT5SIWc0lNyFBfznWgLJIKY8R3xh8Nvk=; b=hwQaKMlhKcUeeJO17F4NsUfypR0WcS96w/2zaFiqDBsOPP0KQPofpa/mudg8Uew2M1 3Hsab2BnZ9KQ5OZOMhT70bN26O55AvCmTg27bQxOhg+LW7GQFxRrOXtXTT3jd0WsMI4T b3pF764uET6o9aS9dPRz4dbowauawUvVmYE6puz9s+CeEcEoSvn6SqTGCEUpFTDii51e KGK/Dn6zYC+uCzm5GD0hoAcXbiEaiJA9v8jWzEz9HZcBlmb9c1V8p8/JNddH8dHqa4oQ b/Fq3u/CChmmSGSicMM+029KRahagsmI896cajNGWqSaLaYybMm1+zO47WMPwFEi+sS+ BHUw==
X-Gm-Message-State: ACgBeo0dBFOWRXnYTMwD5Q+NWXCPkyj9LATdJW8qOQ8p5sXmcI7LR+/O P1rWkYUtUZQAD7pLQK+8kgQ=
X-Google-Smtp-Source: AA6agR6qxIvzYDmkuWr9cc7gPIL0t2p0W8GJFQR2nNCTnN/bQ5Czejyy34mNTelNoVFlkExaxHop4Q==
X-Received: by 2002:a63:2b81:0:b0:41d:8ca6:4f8f with SMTP id r123-20020a632b81000000b0041d8ca64f8fmr8012255pgr.398.1660946503188; Fri, 19 Aug 2022 15:01:43 -0700 (PDT)
Received: from ?IPV6:2406:e003:1124:9301:80b2:5c79:2266:e431? ([2406:e003:1124:9301:80b2:5c79:2266:e431]) by smtp.gmail.com with ESMTPSA id i1-20020aa796e1000000b00528669a770esm4003224pfq.90.2022.08.19.15.01.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Aug 2022 15:01:42 -0700 (PDT)
Message-ID: <fa2a8d32-929d-46ec-97b3-b67ad33c23b7@gmail.com>
Date: Sat, 20 Aug 2022 10:01:37 +1200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0
Content-Language: en-US
To: Carsten Bormann <cabo@tzi.org>
Cc: Toerless Eckert <tte@cs.fau.de>, anima@ietf.org, cbor@ietf.org
References: <Yv+miC76QMc887cJ@faui48e.informatik.uni-erlangen.de> <A303E7B3-A83F-4B04-9C6F-5143E4A0B54D@tzi.org> <5fa4a9c7-bc0a-cba0-04fb-4cf5e7777c9e@gmail.com> <4E167B3F-9C68-4333-BB76-36119B8F39DF@tzi.org>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
In-Reply-To: <4E167B3F-9C68-4333-BB76-36119B8F39DF@tzi.org>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/RuvTGBp5Iow6Goamu-xXwdYWyks>
Subject: Re: [Cbor] GRASP packet header extensions (CBOR question)
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Aug 2022 22:01:46 -0000

On 20-Aug-22 09:15, Carsten Bormann wrote:
> On 2022-08-19, at 23:05, Brian E Carpenter <brian.e.carpenter@gmail.com> wrote:
>>
>>>> EXTENSION_TYPE = 0..255
>>> There is no reason to limit this to 255.
>>> ➔ EXTENSION_TYPE = uint
>>> (Do you plan to creat a registry for these?
>>
>> The 'extension_type' terminology is confusing, because these would
>> be new GRASP options, and they already have a registry.
>>
>>>> grasp-extension = [ EXTENSION_TYPE, *any ]
> 
> Ah, OK, Section 2.9.1 of RFC 8990 (why didn’t we provide CDDL for the general concept of a GRASP option?).
> So this really should have been called grasp-option, and the grasp-option in message-structure should have been called something else?  (It seems to include both 2.9.1 grasp options and 2.10.1 objective options, as well as ttl and waiting-time in the message types defined in RFC 8990).
> 
> Apologies for taking a while to swap in the GRASP details again...

Ditto, but referring to CDDL details. Off list, I suggested:

    grasp-option = numeric-option / objective
    numeric-option = option .within option-structure
    option-structure = [0..255, any]

and then

    option /= divert-option

etc.

and then we can use *numeric-option or ?*numeric-option as needed.

     Brian