Re: [Cbor] Private tag numbers
Vadim Goncharov <vadimnuclight@gmail.com> Sat, 22 July 2023 22:05 UTC
Return-Path: <vadimnuclight@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 B1BCEC151985 for <cbor@ietfa.amsl.com>; Sat, 22 Jul 2023 15:05:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.095
X-Spam-Level:
X-Spam-Status: No, score=-2.095 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] 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 PSnn_pmwQ9RJ for <cbor@ietfa.amsl.com>; Sat, 22 Jul 2023 15:05:56 -0700 (PDT)
Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) (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 6C6C9C151AE0 for <cbor@ietf.org>; Sat, 22 Jul 2023 15:05:56 -0700 (PDT)
Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4fb761efa7aso4851359e87.0 for <cbor@ietf.org>; Sat, 22 Jul 2023 15:05:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690063554; x=1690668354; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=BLYAmkOyOJINCT69NaxsjOofzEZLBUS/xgNcKlCMXO0=; b=WmQ/5l8V7gWYdCZ9NQHyJifwJwdEA7MW3QSqyVngiVbkKe8LwJFxbX+OMdh24z3FlR qBkuKCbZ9Jiv3NOoMlWOlprWJ/6fqq45KpnXLmt56EEWr3WXvofduXeCY0jsaEXyZ0aK aude9nmhmHozTeIlCNL95ycuNcyi6Elu+KBtaZTtqM1Xa0h4NwdNDGwLD4oXyPfOQxUQ FEIx8ftggt5noilymzc3HoU5AVgjwVEU47pCGVl7GyDEDT37NECcppOxPo+ppgEE8Wba nZo6P1UrXix9Q7hGdnXCWNsHIeQsGuK4GVlIAdjKheDtGFaZN1R6EoI5ILfiMfetzTre 9WbQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690063554; x=1690668354; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BLYAmkOyOJINCT69NaxsjOofzEZLBUS/xgNcKlCMXO0=; b=TNQZgKFPBeuBr9OgknJTvZUPKSwk4XFLRXwCjN2mlWKatNOMOMFuLWWobWfldyBkFr dj37ITZ0Awk4+YgXydwVIDiu22EneFLTTWHp+5vHNERRR/6CZTGh+djA+t6b2kJu8JpL PiJXDoZahR4/WH6pfc2rE3CPsing7VHuKeU6wbXqluhPwznmWeVICRiKItOMKxp213ax mdcv0ppD9NowGbWP9XfHNFqA2MLvLN0jxq9f6ITJ6vcPaDZeXR+pePkFJKplHiOsWnSq Wm1NE+VWHrmeqh+GXwT6bO0GnV0EsPUEXMaB5TombNP9Y20UqaJnj+7vJuAwvtxgw56k EMag==
X-Gm-Message-State: ABy/qLYNR0iJVmsp/0SnTW0xKKrc3JJ68u9Iqrx1XiD5RYxVXO1+xdny iMDeKERdE8z9jnroVby0YPOirPfEN27FS0/U
X-Google-Smtp-Source: APBJJlEJAPLXQ5spXP2vS3UwEWomxiIcM7QoPVcGHLFzVF98mO9bEmwRjyFkvUzDdueaNpxST0vE6w==
X-Received: by 2002:a05:6512:3a8a:b0:4fc:3755:37de with SMTP id q10-20020a0565123a8a00b004fc375537demr4042166lfu.3.1690063554148; Sat, 22 Jul 2023 15:05:54 -0700 (PDT)
Received: from nuclight (broadband-77-37-180-193.ip.moscow.rt.ru. [77.37.180.193]) by smtp.gmail.com with ESMTPSA id f20-20020a2e6a14000000b002b6c9927a3csm1793849ljc.37.2023.07.22.15.05.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jul 2023 15:05:54 -0700 (PDT)
Date: Sun, 23 Jul 2023 01:05:52 +0300
From: Vadim Goncharov <vadimnuclight@gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: Tony Putman <Anthony.Putman@dyson.com>, "cbor@ietf.org" <cbor@ietf.org>
Message-ID: <20230723010552.01d80062@nuclight>
In-Reply-To: <8AD1E3E6-A474-4D4D-B404-66172DF8C481@tzi.org>
References: <AS2PR09MB6342AB1E5DFF19EDFB65F25F8C609@AS2PR09MB6342.eurprd09.prod.outlook.com> <8AD1E3E6-A474-4D4D-B404-66172DF8C481@tzi.org>
X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd12.3)
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/gCYqu-ULFr1LPelX5wo8YnjXQO0>
Subject: Re: [Cbor] Private tag numbers
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: Sat, 22 Jul 2023 22:05:58 -0000
Hi Carsten and Tony, I'd still argue it's better bring up the older idea of "per-enterpise tag spaces" - that is, where IANA register just one "container" tag per organization, and there is a range of tag space of actual "private" tags shared between all that enterprises. E.g. tag 1234560 for Microsoft and 1234561 for FreeBSD, and 234567 for some data, which will have different meanings depending on which container it's inside: 1234560(["name", 234567({ "hi": "there" })]) and 1234561(["name", 234567({ "hello": [-122.5, 37.43] })]) And enterprise tag number contatiner will be close to top-level of CBOR document. This is in spirit of RFC 5424 which has enterprise numbers (iso.org.dod.internet.private.enterprise registered per RFC 2578) for interpreting keys within it's sections: [exampleSDID@32473 iut="3" eventSource="Application" eventID="1011"][FreebsdField@2238 priority="high"] (32473 registered as example enterprise for RFC/documentation) This way, if ever private tags need to be exposed to public (as in your analogy with 10.0.0/8), then organization may publish a spec for the tag pair - e.g. for 1234561's 234567. It's still to be thought about from which range to allocate blocks (may be several, for each byte-length range), and other questions, but I hope you get the main idea. On Sat, 22 Apr 2023 10:34:05 +0200 Carsten Bormann <cabo@tzi.org> wrote: > Hi Tony, > > thank you for asking this question. > CBOR has a somewhat evolved view of the tag namespace (number space), > and it may not be obvious. > > On 21. Apr 2023, at 18:53, Tony Putman <Anthony.Putman@dyson.com> > wrote: > > > > Hi all, > > I'm defining a data schema for purely internal use (no > > interoperability needed) > > This is known as “famous last words” :-) > A lot of organizations have learned that they do need to connect > their “private” net 10 IP addresses once they purchase or merge with > other organizations. I think the same applies to tag numbers, even > more so because sharing data is more loosely coupled than sharing > networks, and you may find a need to integrate your data with data > from other sources that have tags “for purely internal use". > > > and encoding it in CBOR. There are points where we may want to > > vary/extend the contents with new data, and I thought the natural > > way to do this would be to define different tags to hold the data. > > I expected to find a set of tag numbers defined in IANA for private > > use, but there don't appear to be any. > > Indeed, because “private use” may be an illusion for the above reason. > > (Note that we have a different kind of tags, for contextual use [1]. > I’m not talking about those.) > > [1]: > https://www.ietf.org/archive/id/draft-bormann-cbor-notable-tags-07.html#name-enumerated-alternative-data > > > - Is this a misuse of tags? And if so, what would be the more > > natural way to specify this? > > You didn’t say much, but what you said leads me to believe that tags > are a good way to address your requirement. > > > - Is this a general problem that people face and would it be worth > > defining a set of private tags which are known to be > > context-sensitive and not interoperable? > > Why share a set of (then not so) “private” tags when you can have > your own, *actually* private ones? > > My recommendation would be: > > Make a good guess at how many tags you’ll need, and get a block of > tags registered from the FCFS space for your needs. (You don’t need > to be overly large with that number because you can always go back > for more.) Call them Dyson-0 to Dyson-4711 if you want. > > Run your own internal tag registry assigning your private meanings to > your IANA-assigned private tags. And, of course, once you are > surprised by noticing that your “private” use is no longer really so > private, update the IANA registry with some information about some of > the tags (e.g., specifications) at your leisure. > > We would like you to use the space from 65536 up (1+4 space) unless > you need a humungous number (for which we have the 1+8 space). There > also is a limited FCFS space from 32768 to 65535 (in 1+2 space), but > you don’t want to take an out-of-proportion chunk of those (and only > if the size of the tag representation matters a lot for your > application). > > Today’s tag usage report: > range used % free total > 0 1+0 13 54.17 11 24 > 1 1+1 70 30.17 162 232 > 2 1+2 438 0.67 64842 65280 > 3 1+4 65284 0.00 4294836476 4294901760 > 4 1+8 2 0.00 18446744069414584318 18446744069414584320 > > (Remember that this reflects the first ~ 10 years of allocation, > which also might ramp up a bit over time — this space needs to hold > for many more decades.) > > Grüße, Carsten > > _______________________________________________ > CBOR mailing list > CBOR@ietf.org > https://www.ietf.org/mailman/listinfo/cbor -- WBR, @nuclight
- Re: [Cbor] [EXTERNAL EMAIL] Re: Private tag numbe… Tony Putman
- [Cbor] Private tag numbers Tony Putman
- Re: [Cbor] Private tag numbers Carsten Bormann
- Re: [Cbor] Private tag numbers Vadim Goncharov
- Re: [Cbor] Private tag numbers Anders Rundgren
- Re: [Cbor] Private tag numbers Carsten Bormann
- [Cbor] Re: Private tag numbers / 1010 Vadim Goncharov
- Re: [Cbor] [EXTERNAL EMAIL] Re: Private tag numbe… Tony Putman
- [Cbor] Re: Private tag numbers / 1010 Anders Rundgren
- [Cbor] Re: Private tag numbers / 1010 Carsten Bormann
- [Cbor] Re: Private tag numbers / 1010 Anders Rundgren
- [Cbor] Re: Private tag numbers / 1010 Carsten Bormann
- [Cbor] Re: Private tag numbers / 1010 Anders Rundgren
- Re: [Cbor] [EXTERNAL EMAIL] Re: Private tag numbe… Carsten Bormann
- [Cbor] Re: Private tag numbers / 1010 Vadim Goncharov
- [Cbor] Re: Private tag numbers / 1010 Carsten Bormann
- Re: [Cbor] Private tag numbers Anders Rundgren
- [Cbor] Re: Private tag numbers / 1010 Vadim Goncharov
- Re: [Cbor] Private tag numbers Anders Rundgren