Re: [Cbor] [Anima] GRASP packet header extensions (CBOR question)
Brian E Carpenter <brian.e.carpenter@gmail.com> Mon, 22 August 2022 23:28 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 21156C157B33; Mon, 22 Aug 2022 16:28:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.109
X-Spam-Level:
X-Spam-Status: No, score=-2.109 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, 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 x2hPBXa8dbsP; Mon, 22 Aug 2022 16:28:09 -0700 (PDT)
Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) (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 CB637C14CF0C; Mon, 22 Aug 2022 16:27:36 -0700 (PDT)
Received: by mail-pj1-x102f.google.com with SMTP id t2-20020a17090a4e4200b001f21572f3a4so12949769pjl.0; Mon, 22 Aug 2022 16:27:36 -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=+TW2JxBhD4F6BU4GfxLyColMLCoWh3LRVMWL55pQW/I=; b=CKoshjeRiIIEcc4bQ11JbHqcrca4Y0TD7MqmTZuuE9LBtv87zob0K0Q9XkMNjBAUpL Sb1RwcjcK0NVpum5TlZyM+9DDr+iDA2se/pyC/14djGHxKQ+89+bgetdV4cNLS8a21Vh v1MqpfA5V5MxXaHY6pqGG9kyYkHOE8ZqCEB5XP1NylA+Lb/scUGac3Rj3YLdzHAQGJtq yU65d9JPpjeLXFJLlCB+5NrX2ReHoFnS8FmJkV8qgSeB4x7FsbNNKKqWZx+6380/qwHI ZJcg64Hl0Ex1Lud4i6eiLf53wJyMoC2MIXLA5rmDf3q1eWzwPNTAobhmOhoThaInKD28 rwbg==
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=+TW2JxBhD4F6BU4GfxLyColMLCoWh3LRVMWL55pQW/I=; b=0vEjumWyQqPCzWs8omZAhR23htFHrpQpyg1X1R0p+2XBJCits+SJ0PYu+h9UTKOuDw Khi6sYf7WPW4rX1U3Ox6LRaUkEiivLPe232ggd+KdoLLethT3rCf9+a7Z50LJDqAd1W9 ve5VWpEVbMK8mByoUC8N1vC9C6rkQ+ukKCZzrA26j0mtDIIcQfX2wDHADqwWQreXPvdV luSqi8wxxq9mMGlw504zSZEJ2zVxk/ZvzLU3f04oGK3Iv4Rc9iRn+6PYuwV8cSv4lMQu gce/VPzwl/zyj3GI67+f/QnI8FppKSJbqymhXNfhkUxoauCTLelVkVKQoeKAKn3rDvDX Ey4w==
X-Gm-Message-State: ACgBeo1yvEZZhKLnzuM1MzqQt9CR5ujos2Sepx86OxJgvBGZBp5V0oxw LzVcZtVIlNZWe+9sCv9PEviaBBkAmCg=
X-Google-Smtp-Source: AA6agR40UKCKPLVlcWZDt0X87quZvTAm8Frv5VJQnAWG8ojIrMiX4b+14hiokEpDW2yeZeOu3yWK1w==
X-Received: by 2002:a17:903:110c:b0:172:6a39:436b with SMTP id n12-20020a170903110c00b001726a39436bmr21808803plh.131.1661210855857; Mon, 22 Aug 2022 16:27:35 -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 y3-20020aa79e03000000b0052e78582aa2sm6489088pfq.181.2022.08.22.16.27.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Aug 2022 16:27:35 -0700 (PDT)
Message-ID: <2cc3cc94-e139-a758-90da-cfef9b7358d0@gmail.com>
Date: Tue, 23 Aug 2022 11:27:30 +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>, Toerless Eckert <tte@cs.fau.de>
Cc: 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> <fa2a8d32-929d-46ec-97b3-b67ad33c23b7@gmail.com> <YwNHvF1wzS0yaZGe@faui48e.informatik.uni-erlangen.de> <899DC56C-C1B5-4DC2-99DA-694B3FEF7C56@tzi.org>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
In-Reply-To: <899DC56C-C1B5-4DC2-99DA-694B3FEF7C56@tzi.org>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/c1qhsdmXYVhrYDUlRxKi3PxxjR4>
Subject: Re: [Cbor] [Anima] 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: Mon, 22 Aug 2022 23:28:10 -0000
On 23-Aug-22 06:43, Carsten Bormann wrote: >> >> Aka: grasp-option can not represent the purely numeric ttl anymore. That's actually a bug in the changes I was proposing. It will be fixed but I doubt that the cbor list cares. >> >> We could do a one-off fix for ttl by channging message-structure, but >> i really don't see why we would want to constrain grasp-option to be >> less than any, see below. > > Correct. > > Grasp-option really is the lower layer of extensibility, which allows you to create new messages that then conform to message-structure. These should provide maximum flexibility. > > (Message should be/employ a socket, to make this extension point more visible.) > > The production that is called grasp-option should not be called grasp-option, because it is not just about options, it’s all elements in a message after the common header. Correct. Will fix. > >> 2) Still want to understand .within correctly i think it does not doe >> not work as you hope above. >> >> Carsten claimed offlist, that in your above syntax, grasp-option would >> match some option that is not yet defined, as long as it matches >> option-structure. From reading rfc8610, i think this is wrong, because >> numeric-option is an AND between option and option-structure, so only >> any currently defined options will be matched. No extensibility to >> include any future options, even if they match option-structure. > > I’m not sure I understand the context of this, but yes, .within is a .and. So you have to have both message-structure accept the message and the message choice as well. > > Obviously, we need a second layer of extensibility beyond adding new messages: adding new options to a message. > > So each message production should have a *grasp-really-option at the end, where that stands for an actual (registered) option. I don't really see that. But let's have that argument about a complete updated CDDL spec, and not waste cbor@'s time. Brian > >> >> Of course, i can be wrong, but then rfc8610 text is really misleading. >> >> 3) Here is what i propose: >> >> >> grasp-option = valid-option / objective / any >> valid-option = option .within option-structure > > (Valid-option is your grasp-really-option.) > >> option-structure = [*any] > > No, an option starts with an option-type, so this should be > > option-structure = [option-type, *any] > >> option-type = uint > > Yep. > > >> >> >> flood-message = [M_FLOOD, session-id, initiator, ttl, >> +[objective, (locator-option / [])], *grasp-option] > > Yes. > >> "All other"-message = [ ... existing definitions ..., *grasp-option] > > Yes, that would be the whole-sale introduction of the second layer. > (Grasp-really-option, actually.) > > The [~message, *grasp-really-option] approach might be able to do this with fewer changes. > >> […] > >> We may also want to carve out ranges to indicate that an option received >> with such a numbe,if not known to the receiver must not be ignored but >> needs to result in an error condition. > > (Negative numbers would lend themselves to this…) > >> 5) M_FLOOD >> >> M_FLOOD still has the added issue, that it can have multiple objectives, >> and we do not have a way to express per-objective options. Which bugs me. > > … a fourth layer of extensibility… > > Grüße, Carsten > >
- [Cbor] GRASP packet header extensions (CBOR quest… Toerless Eckert
- Re: [Cbor] GRASP packet header extensions (CBOR q… Carsten Bormann
- Re: [Cbor] GRASP packet header extensions (CBOR q… Toerless Eckert
- Re: [Cbor] GRASP packet header extensions (CBOR q… Brian E Carpenter
- Re: [Cbor] GRASP packet header extensions (CBOR q… Carsten Bormann
- Re: [Cbor] GRASP packet header extensions (CBOR q… Brian E Carpenter
- Re: [Cbor] GRASP packet header extensions (CBOR q… Toerless Eckert
- Re: [Cbor] [Anima] GRASP packet header extensions… Carsten Bormann
- Re: [Cbor] GRASP packet header extensions (CBOR q… Brian E Carpenter
- Re: [Cbor] [Anima] GRASP packet header extensions… Brian E Carpenter
- [Cbor] CDDL sockets (was: Re: [Anima] GRASP packe… Toerless Eckert
- Re: [Cbor] [Anima] GRASP packet header extensions… Toerless Eckert
- Re: [Cbor] CDDL sockets (was: Re: [Anima] GRASP p… Derek Atkins
- Re: [Cbor] [Anima] CDDL sockets (was: Re: GRASP p… Toerless Eckert
- Re: [Cbor] CDDL sockets (was: Re: [Anima] GRASP p… Carsten Bormann
- Re: [Cbor] [Anima] CDDL sockets (was: Re: GRASP p… Toerless Eckert
- Re: [Cbor] [Anima] CDDL sockets (was: Re: GRASP p… Carsten Bormann
- Re: [Cbor] [Anima] GRASP packet header extensions… Brian E Carpenter