Skip to main content

Stand-in Tags for YANG-CBOR
draft-bormann-cbor-yang-standin-02

Document Type Active Internet-Draft (individual)
Authors Carsten Bormann , Maria Matějka
Last updated 2025-08-30
RFC stream (None)
Intended RFC status (None)
Formats
Additional resources GitHub Repository
Stream Stream state (No stream defined)
Consensus boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date (None)
Responsible AD (None)
Send notices to (None)
draft-bormann-cbor-yang-standin-02
CBOR (Concise Binary Object Representation) Maint. and Ext.   C. Bormann
Internet-Draft                                    Universität Bremen TZI
Intended status: Standards Track                              M. Matejka
Expires: 4 March 2026                                             CZ.NIC
                                                          31 August 2025

                      Stand-in Tags for YANG-CBOR
                   draft-bormann-cbor-yang-standin-02

Abstract

   YANG (RFC 7950) is a data modeling language used to model
   configuration data, state data, parameters and results of Remote
   Procedure Call (RPC) operations or actions, and notifications.

   YANG-CBOR (RFC 9254) defines encoding rules for YANG in the Concise
   Binary Object Representation (CBOR) (RFC 8949).  While the overall
   structure of YANG-CBOR is encoded in an efficient, binary format,
   YANG itself has its roots in XML and therefore traditionally encodes
   some information such as date/times and IP addresses/prefixes in a
   verbose text form.

   This document defines how to use existing CBOR tags for this kind of
   information in YANG-CBOR as a "stand-in" for the text-based
   information that would be found in the original form of YANG-CBOR.

About This Document

   This note is to be removed before publishing as an RFC.

   Status information for this document may be found at
   https://datatracker.ietf.org/doc/draft-bormann-cbor-yang-standin/.

   Discussion of this document takes place on the CBOR (Concise Binary
   Object Representation) Maintenance and Extensions Working Group
   mailing list (mailto:cbor@ietf.org), which is archived at
   https://mailarchive.ietf.org/arch/browse/cbor/.  Subscribe at
   https://www.ietf.org/mailman/listinfo/cbor/.

   Source for this draft and an issue tracker can be found at
   https://github.com/cabo/yang-standin.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

Bormann & Matejka         Expires 4 March 2026                  [Page 1]
Internet-Draft         Stand-in Tags for YANG-CBOR           August 2025

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on 4 March 2026.

Copyright Notice

   Copyright (c) 2025 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents (https://trustee.ietf.org/
   license-info) in effect on the date of publication of this document.
   Please review these documents carefully, as they describe your rights
   and restrictions with respect to this document.  Code Components
   extracted from this document must include Revised BSD License text as
   described in Section 4.e of the Trust Legal Provisions and are
   provided without warranty as described in the Revised BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Conventions and Definitions . . . . . . . . . . . . . . . . .   3
   3.  Stand-In Tags . . . . . . . . . . . . . . . . . . . . . . . .   4
     3.1.  ietf-yang-types: Tag 1 (Date/Time) and Tag 100 (Date) . .   4
     3.2.  ietf-yang-types: Tags 37 (UUID) and CPA113
           (hex-string)  . . . . . . . . . . . . . . . . . . . . . .   5
     3.3.  ietf-inet-types: Tags 54 and 52 (IP addresses and
           prefixes) . . . . . . . . . . . . . . . . . . . . . . . .   7
     3.4.  Union handling  . . . . . . . . . . . . . . . . . . . . .  10
   4.  Using Stand-In Tags . . . . . . . . . . . . . . . . . . . . .  10
     4.1.  Defining Stand-In Usage in Schema . . . . . . . . . . . .  10
     4.2.  Original stand-ins  . . . . . . . . . . . . . . . . . . .  11
     4.3.  Legacy Round Trip . . . . . . . . . . . . . . . . . . . .  11
   5.  Negotiation . . . . . . . . . . . . . . . . . . . . . . . . .  12
   6.  Security Considerations . . . . . . . . . . . . . . . . . . .  12
   7.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  12
     7.1.  New CBOR Tags . . . . . . . . . . . . . . . . . . . . . .  12
     7.2.  stand-in tags?  . . . . . . . . . . . . . . . . . . . . .  13
     7.3.  media-type parameters . . . . . . . . . . . . . . . . . .  13
   8.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  13

Bormann & Matejka         Expires 4 March 2026                  [Page 2]
Internet-Draft         Stand-in Tags for YANG-CBOR           August 2025

     8.1.  Normative References  . . . . . . . . . . . . . . . . . .  13
     8.2.  Informative References  . . . . . . . . . . . . . . . . .  15
   Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . .  15
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  15

1.  Introduction

   (see abstract)

2.  Conventions and Definitions

   The terminology of [RFC9254] applies.

   Legacy representation:  The (often text-based) representation for a
      YANG data item as used in YANG-XML, YANG-JSON, and (unchanged)
      YANG-CBOR.

   Stand-in tag:  A CBOR tag that can supply the information that is
      equivalent to a legacy representation in a more efficient format
      (e.g., using binary data).

   Encoder:  The party which generates (sends) CBOR data described by
      YANG.

   Intermediate Encoder:  An encoder which isn't the original author of
      the data, converting it from legacy representation.

   Aggressive Intermediate Encoder:  An intermediate encoder that might
      choose to discard some information of a legacy representation in
      order to be able to use a stand-in tag.  Such a choice may be
      based on knowledge of the Decoder's handling of such information
      (e.g, to accommodate intolerant decoders), or it may be a general
      characteristic of the service provided by the intermediate encoder
      (e.g., in order to serve as a legacy-eschewing encoder).

   Legacy-Eschewing Encoder:  An encoder that does not generate legacy
      representations in places where a stand-in tag might instead be
      used.  An intermediate encoder may need to be aggressive to
      achieve this.

   Decoder:  The party which receives and parses CBOR data described by
      YANG.

   Intolerant Decoder:  A decoder that does not accept legacy
      representations in places where a stand-in tag might instead be
      used.  Such a decoder is designed to interoperate only with an
      legacy-eschewing encoder.

Bormann & Matejka         Expires 4 March 2026                  [Page 3]
Internet-Draft         Stand-in Tags for YANG-CBOR           August 2025

   Intermediate Decoder:  A decoder which isn't the final recipient of
      the data, converting it to legacy representation.

   Data Transfer:  A series of actions, generally beginning by data
      origination, encoding, continuing by optional intermediate
      transcoding, sending and receiving, and finally decoding and
      consuming.

   Round Trip:  Part of a data transfer between an encoder generating
      CBOR data with stand-in tags and a decoder parsing the data.

   Legacy Round Trip:  A Round Trip where the encoder is an intermediate
      encoder or the decoder is an intermediate decoder and any of these
      converts from or to the legacy representation.

   Unambiguous Round Trip:  A Legacy Round Trip that provides exactly
      the same legacy representation (not just semantically equivalent).
      The stand-in tag is also said to "unambiguously stand in" for the
      legacy representation.

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
   "OPTIONAL" in this document are to be interpreted as described in
   [BCP14] (RFC2119) (RFC8174) when, and only when, they appear in all
   capitals, as shown here.

3.  Stand-In Tags

   This document defines two sets of stand-in tags.  Where information
   starts out in a legacy representation, these tags are only used when
   an Unambiguous Round Trip can be achieved.

3.1.  ietf-yang-types: Tag 1 (Date/Time) and Tag 100 (Date)

   Section 3 of [I-D.ietf-netmod-rfc6991-bis] defines the following
   types in ietf-yang-types:

Bormann & Matejka         Expires 4 March 2026                  [Page 4]
Internet-Draft         Stand-in Tags for YANG-CBOR           August 2025

    +===============+======+===============================+==========+
    | YANG type     |base  | specification                 | stand-in |
    |               |type  |                               |          |
    +===============+======+===============================+==========+
    | date-and-time |string| [RFC6021]                     | tag 1    |
    +---------------+------+-------------------------------+----------+
    | date          |string| [I-D.ietf-netmod-rfc6991-bis] | (none)   |
    +---------------+------+-------------------------------+----------+
    | date-no-zone  |string| [I-D.ietf-netmod-rfc6991-bis] | tag 100  |
    +---------------+------+-------------------------------+----------+

        Table 1: Legacy date and date/time representations in ietf-
                                 yang-types

   Tag 1 (Section 3.4.2 of RFC 8949 [STD94]) can unambiguously stand in
   for all date-and-time values that:

   *  do not specify a time zone (note that
      [I-D.ietf-netmod-rfc6991-bis] uses the legacy "-00:00" format for
      time-zone-free date-times)

   *  are not an inserted leap second (23:59:60 or 23:59:61)

   *  do not have trailing zeroes in the fractional part of the seconds.

   *  do not have fractional parts of the seconds with a precision that
      cannot be represented in floating-point tag content in a tag 1.

   All other date-and-time values stay in legacy representation.

   Tag 1 uses an integer tag content for all date-and-time values
   without fractional seconds and a floating-point tag content for
   values that have fractional seconds given.

   Tag 100 [RFC8943] can unambiguously stand in for all date-no-zone
   values.

3.2.  ietf-yang-types: Tags 37 (UUID) and CPA113 (hex-string)

   Section 3 of [I-D.ietf-netmod-rfc6991-bis] defines the following
   types in ietf-yang-types:

Bormann & Matejka         Expires 4 March 2026                  [Page 5]
Internet-Draft         Stand-in Tags for YANG-CBOR           August 2025

   +==============+========+===============================+==========+
   | YANG type    | base   | specification                 | stand-in |
   |              | type   |                               |          |
   +==============+========+===============================+==========+
   | uuid         | string | [I-D.ietf-netmod-rfc6991-bis] | tag 37   |
   +--------------+--------+-------------------------------+----------+
   | hex-string   | string | [I-D.ietf-netmod-rfc6991-bis] | tag      |
   |              |        |                               | CPA113   |
   +--------------+--------+-------------------------------+----------+
   | mac-address  | string | [RFC6021]                     | tag      |
   |              |        |                               | CPA113   |
   +--------------+--------+-------------------------------+----------+
   | phys-address | string | [RFC6021]                     | tag      |
   |              |        |                               | CPA113   |
   +--------------+--------+-------------------------------+----------+

           Table 2: Legacy UUID and colon-separated hexadecimal
                   representations in ietf- yang-types

   These types are hexadecimal representations of byte strings, adorned
   in various ways.

   uuid stands for a 16-byte byte string (Section 4 of [RFC9562]),
   represented in hexadecimal with ASCII minus/hyphen characters added
   in specific positions.  Tag 37 (see also Section 7 of
   [I-D.bormann-cbor-notable-tags]) can be used as a binary stand-in for
   this adorned hexadecimal representation.  According to the
   description of uuid in Section 3 of [I-D.ietf-netmod-rfc6991-bis],
   "the canonical representation uses lowercase characters".  For
   consistency with this specification, an intermediate decoder of a tag
   37 stand-in MUST use lowercase characters in the uuid hex string
   generated.

   hex-string, and the similar, but more specific types mac-address and
   phys-address, stand for byte strings in various lengths (exactly 6
   bytes for mac-address, variable-length for the others), represented
   in hexadecimal with ASCII colon characters added between the
   representations of each of the bytes.  This specification defines tag
   number CPA113 Section 7.1 to be an additional "Expected Later
   Encoding" tag (similar to tag 23, see Section 3.4.5.2 of RFC 8949
   [STD94]), except that the expected encoding of CPA113 includes colons
   and uses lowercase hex digits.

   The following example implementation of the transformation in a
   decoder shows the use of lowercase hex characters (%02x as opposed to
   %02X) and the insertion of colon characters between the hex-
   represented bytes:

Bormann & Matejka         Expires 4 March 2026                  [Page 6]
Internet-Draft         Stand-in Tags for YANG-CBOR           August 2025

   def tag_cpa113_to_legacy(s)
     s.bytes.map{|x| "%02x" % x}.join(":")
   end

   Note: Section 2.4 of [RFC9542] defines tag number 48 for MAC
   addresses.  This could be used in place of tag CPA113, but only for
   MAC addresses, not for other byte strings of a similar form.  This
   specification therefore requests IANA to assign a new CBOR tag that
   can be used as a stand-in for all instances of colon-separated text
   strings of hexadecimally represented bytes, as shown in Table 2.

   Note Related tags have not been defined so far for tag 21 or 22
   defined alongside tag 23, as YANG has a base type "binary" that is
   encoded in base64 classic in YANG-XML and YANG-JSON, but already
   encoded in a binary byte string in YANG-CBOR; use cases that might
   actually use base type "string" for base64-encoded data in YANG have
   not been considered.  However, tag 21 or 22 could be used as stand-in
   tags if that is useful for some specific YANG model not considered
   here.

   // RFC-Editor: This document uses the CPA (code point allocation)
   // convention described in [I-D.bormann-cbor-draft-numbers].  For
   // each usage of the term "CPA", please remove the prefix "CPA" from
   // the indicated value and replace the residue with the value
   // assigned by IANA; perform an analogous substitution for all other
   // occurrences of the prefix "CPA" in the document.  Finally, please
   // remove this note.

3.3.  ietf-inet-types: Tags 54 and 52 (IP addresses and prefixes)

   Section 4 of [I-D.ietf-netmod-rfc6991-bis] defines in ietf-inet-
   types:

   +=============+==============+===============================+======+
   |YANG type    | base type    | specification                 |stand-|
   |             |              |                               |in    |
   +=============+==============+===============================+======+
   |ip-address   | union        | [RFC6021]                     |(see  |
   |             |              |                               |union)|
   +-------------+--------------+-------------------------------+------+
   |ipv6-address | string       | [RFC6021]                     |tag 54|
   +-------------+--------------+-------------------------------+------+
   |ipv4-address | string       | [RFC6021]                     |tag 52|
   +-------------+--------------+-------------------------------+------+
   |ip-address-  | union        | RFC 6991                      |(see  |
   |no-zone      |              |                               |union)|
   +-------------+--------------+-------------------------------+------+

Bormann & Matejka         Expires 4 March 2026                  [Page 7]
Internet-Draft         Stand-in Tags for YANG-CBOR           August 2025

   |ipv6-        | ipv6-address | RFC 6991                      |tag 54|
   |address-no-  |              |                               |      |
   |zone         |              |                               |      |
   +-------------+--------------+-------------------------------+------+
   |ipv4-        | ipv4-address | RFC 6991                      |tag 52|
   |address-no-  |              |                               |      |
   |zone         |              |                               |      |
   +-------------+--------------+-------------------------------+------+
   |ip-address-  | union        | [I-D.ietf-netmod-rfc6991-bis] |(see  |
   |link-local   |              |                               |union)|
   +-------------+--------------+-------------------------------+------+
   |ipv6-        | ipv6-address | [I-D.ietf-netmod-rfc6991-bis] |tag 54|
   |address-     |              |                               |      |
   |link-local   |              |                               |      |
   +-------------+--------------+-------------------------------+------+
   |ipv4-        | ipv4-address | [I-D.ietf-netmod-rfc6991-bis] |tag 52|
   |address-     |              |                               |      |
   |link-local   |              |                               |      |
   +-------------+--------------+-------------------------------+------+
   |ip-prefix    | union        | [RFC6021]                     |(see  |
   |             |              |                               |union)|
   +-------------+--------------+-------------------------------+------+
   |ipv6-prefix  | string       | [RFC6021]                     |tag 54|
   +-------------+--------------+-------------------------------+------+
   |ipv4-prefix  | string       | [RFC6021]                     |tag 52|
   +-------------+--------------+-------------------------------+------+
   |ip-address-  | union        | [I-D.ietf-netmod-rfc6991-bis] |(see  |
   |and-prefix   |              |                               |union)|
   +-------------+--------------+-------------------------------+------+
   |ipv6-        | string       | [I-D.ietf-netmod-rfc6991-bis] |tag 54|
   |address-and- |              |                               |      |
   |prefix       |              |                               |      |
   +-------------+--------------+-------------------------------+------+
   |ipv4-        | string       | [I-D.ietf-netmod-rfc6991-bis] |tag 52|
   |address-and- |              |                               |      |
   |prefix       |              |                               |      |
   +-------------+--------------+-------------------------------+------+

             Table 3: Legacy representations in ietf-yang-types

   An intermediate encoder MAY normalize IPv6 addresses and prefixes
   that do not comply with [RFC5952] but can be converted into the
   stand-in representation.  For example, IPv6 address written as
   2001:db8:: is the same as 2001:0db8::0:0 and both would be converted
   to 54(h'20010db8000000000000000000000000'), anyway only the first one
   complies with [RFC5952].  The encoder MAY refuse to convert the
   latter one.

Bormann & Matejka         Expires 4 March 2026                  [Page 8]
Internet-Draft         Stand-in Tags for YANG-CBOR           August 2025

   If the schema specifies ip-prefix, an intermediate encoder MAY
   normalize prefixes with non-zero bits after the prefix end.  For
   example, if the legacy representation of ipv6-prefix is
   2001:db8:1::/40, the encoder may either refuse it as malformed or
   convert it to 2001:db8::/40 and represent as 54([40, h'20010db8']).

   The encoder implementation should be clear about which normalizations
   are employed and how.

   Adapted examples from [RFC9164]:

   Stand-in representation of IPv6 address
   2001:db8:1234:deed:beef:cafe:face:feed is
   54(h'20010db81234deedbeefcafefacefeed').

   CBOR encoding of stand-in (19 bytes):

   D8 36                                  # tag(54)
      50                                  # bytes(16)
         20010DB81234DEEDBEEFCAFEFACEFEED

   CBOR encoding of legacy representation (40 bytes):

   78 26                                   # text(38)
      323030313A6462383A313233343A646565643A626565663A636166653A666163653A66656564

   Stand-in representation of IPv6 prefix 2001:db8:1234::/48 is 54([48,
   h'20010db81234']).

   CBOR encoding of stand-in (12 bytes):

   D8 36                 # tag(54)
      82                 # array(2)
         18 30           # unsigned(48)
         46              # bytes(6)
            20010DB81234 # " \u0001\r\xB8\u00124"

   CBOR encoding of legacy representation (19 bytes):

   72                                      # text(18)
      323030313A6462383A313233343A3A2F3438 # "2001:db8:1234::/48"

   Stand-in representation of IPv6 link-local address
   fe80::0202:02ff:ffff:fe03:0303/64%eth0 is
   54([h'fe8000000000020202fffffffe030303', 64, 'eth0']).

   CBOR encoding of stand-in (27 bytes):

Bormann & Matejka         Expires 4 March 2026                  [Page 9]
Internet-Draft         Stand-in Tags for YANG-CBOR           August 2025

   D8 36                                   # tag(54)
      83                                   # array(3)
         50                                # bytes(16)
            FE8000000000020202FFFFFFFE030303
         18 40                             # unsigned(64)
         44                                # bytes(4)
            65746830                       # "eth0"

   CBOR encoding of legacy representation (40 bytes):

   78 26                                   # text(38)
      666538303A3A303230323A303266663A666666663A666530333A303330332F36342565746830

   TO DO: adapt more examples from [RFC9164]

   TO DO: Check how the unions in [RFC6021] and
   [I-D.ietf-netmod-rfc6991-bis] interact with this.  E.g., the union
   ip-address needs to be parsed to decide between tag 54 and tag 52.

3.4.  Union handling

   When the schema specifies a union data type for a node, there are
   additional requirements on the encoder and decoder.

   An encoder which is fully aware of data semantics MUST use the
   appropriate data type, even though it isn't formally specified by the
   schema.

   If an intermediate encoder doesn't fully understand the data
   semantics, it needs to find out which type the data actually is to
   choose the right stand-in.  If more types are possible, it MAY choose
   any of these which allow for an Unambiguous Round Trip, otherwise it
   SHOULD keep the legacy representation.

   If a decoder receives data for a union-typed node, it MUST accept any
   data type of the union, even though it may violate additional
   constraints outside the schema.

4.  Using Stand-In Tags

4.1.  Defining Stand-In Usage in Schema

   Requiring modifications to a YANG model in order to use it with
   stand-in tags would pose significant deployment hurdles to using
   stand-in tags.

Bormann & Matejka         Expires 4 March 2026                 [Page 10]
Internet-Draft         Stand-in Tags for YANG-CBOR           August 2025

   A YANG model may want to restrict the information content in such a
   way that stand-in tags can always be used, e.g., by using date-no-
   zone in place of date where that is applicable, or by excluding
   features of a YANG data type that cannot be represented in a stand-
   in-tag.

   ISSUE: Should this document define such restricted types, e.g.:

     typedef efficient-date-and-time {
       type date-and-time {
         pattern '.*-00:00'
       }
       description
         "The efficient-date-and-time type is a profile of the
          date-and-time that is intended to always enable using a
          stand-in tag as per ((this document)), e.g., by not expressing
          a time-zone-offset.
          Not all restrictions that make this possible are expressed in
          the above YANG string pattern.";
     }

   (This particular example is additionally problematic since the usual
   way to indicate the absence of time zone information in ISO 8601
   date-times is using Z as the time zone indicated, not -00:00 as is
   required by Section 3 of [I-D.ietf-netmod-rfc6991-bis] but not
   allowed by ISO 8601; see [RFC9557] for additional discussion of
   this.)
   // Note that this paragraph does not reference ISO 8601 because that
   // is complicated and best done by consulting [RFC9557].

4.2.  Original stand-ins

   The simplest situation is when no intermediate encoders and decoders
   are involved in the data transfer, therefore the round trip is not
   legacy.  In this case, no conversions are involved and data is
   validated using the schema extension from the previous section.

4.3.  Legacy Round Trip

   Producing a stand-in MUST be triggered by schema usage.  Intermediate
   encoders MUST NOT encode stand-ins when no schema is available.

   It's generally not recommended to do a legacy round trip where both
   the encoder and decoder are converting from and to the legacy
   representation.

Bormann & Matejka         Expires 4 March 2026                 [Page 11]
Internet-Draft         Stand-in Tags for YANG-CBOR           August 2025

5.  Negotiation

   Introducing stand-in tags in YANG-CBOR requires some form of consent
   between the producer and the consumer of YANG-CBOR information:

   *  A producer that creates YANG-CBOR containing stand-in tags needs
      to know whether the consumer supports stand-in tags, and,
      possibly, which specific stand-in tags it supports.  We speak
      about the _capability_ of a consumer to consume stand-in tags.  A
      producer MUST NOT employ stand-in tags unless it knows about the
      capabilities of the consumer.  A consumer SHOULD indicate its
      capabilities for consuming stand-in tags.

   *  A consumer may not want to implement certain legacy text-based
      representations where more efficient (and easy to implement)
      stand-in tags are available, i.e., it may use an intolerant
      decoder.  This places a _requirement_ on the producer to use a
      legacy-eschewing encoder (which therefore needs to have the
      _capability_ to produce YANG-CBOR where those stand-in tags are
      used, in place of legacy representations).  Where the consumer
      employs an intolerant decoder, stand-in tags are _required_ by the
      consumer: for interoperating with a producer's encoder, this MUST
      be legacy-eschewing, i.e. it MUST NOT employ legacy
      representations.  A consumer that has requirements for only
      receiving stand-in tags in place of legacy representations, MUST
      indicate this to the producer.

   ISSUE: Where do we put those two aspects of negotiation?

   *  NETCONF negotiation

   *  yang-library

   *  media-type parameters

   *  ?

6.  Security Considerations

   TODO Security

7.  IANA Considerations

7.1.  New CBOR Tags

   In the registry "CBOR Tags" [IANA.cbor-tags], IANA is requested to
   assign the tag in Table 4.

Bormann & Matejka         Expires 4 March 2026                 [Page 12]
Internet-Draft         Stand-in Tags for YANG-CBOR           August 2025

   +========+========+==================+=============================+
   | Tag    | Data   | Semantics        | Reference                   |
   |        | Item   |                  |                             |
   +========+========+==================+=============================+
   | CPA113 | byte   | Expected Later   | draft-bormann-yang-standin, |
   |        | string | Encoding: colon- | Section 3.2                 |
   |        |        | separated        |                             |
   |        |        | hexadecimal      |                             |
   |        |        | representation   |                             |
   |        |        | of a byte string |                             |
   +--------+--------+------------------+-----------------------------+

           Table 4: New CBOR Tag Defined by this Specification

7.2.  stand-in tags?

   ISSUE: Do we want to have a separate registry for stand-in tags?

   They already are CBOR tags and thus in the registry, but might get
   lost in the bulk of that (and are only identified as YANG-CBOR stand-
   in Tags in the specification).

7.3.  media-type parameters

   ISSUE: Should the use of stand-in tags be mentioned in the various
   YANG-CBOR-based media types (as a media type parameter)?

   Compare how application/yang-data+cbor can use id=name/id=sid to
   indicate another encoding decision.

8.  References

8.1.  Normative References

   [BCP14]    Best Current Practice 14,
              <https://www.rfc-editor.org/info/bcp14>.
              At the time of writing, this BCP comprises the following:

              Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119,
              DOI 10.17487/RFC2119, March 1997,
              <https://www.rfc-editor.org/info/rfc2119>.

              Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
              2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
              May 2017, <https://www.rfc-editor.org/info/rfc8174>.

Bormann & Matejka         Expires 4 March 2026                 [Page 13]
Internet-Draft         Stand-in Tags for YANG-CBOR           August 2025

   [I-D.ietf-netmod-rfc6991-bis]
              Schönwälder, J., "Common YANG Data Types", Work in
              Progress, Internet-Draft, draft-ietf-netmod-rfc6991-bis-
              18, 23 June 2025, <https://datatracker.ietf.org/doc/html/
              draft-ietf-netmod-rfc6991-bis-18>.

   [IANA.cbor-tags]
              IANA, "Concise Binary Object Representation (CBOR) Tags",
              <https://www.iana.org/assignments/cbor-tags>.

   [RFC5952]  Kawamura, S. and M. Kawashima, "A Recommendation for IPv6
              Address Text Representation", RFC 5952,
              DOI 10.17487/RFC5952, August 2010,
              <https://www.rfc-editor.org/rfc/rfc5952>.

   [RFC6021]  Schoenwaelder, J., Ed., "Common YANG Data Types",
              RFC 6021, DOI 10.17487/RFC6021, October 2010,
              <https://www.rfc-editor.org/rfc/rfc6021>.

   [RFC8943]  Jones, M., Nadalin, A., and J. Richter, "Concise Binary
              Object Representation (CBOR) Tags for Date", RFC 8943,
              DOI 10.17487/RFC8943, November 2020,
              <https://www.rfc-editor.org/rfc/rfc8943>.

   [RFC9164]  Richardson, M. and C. Bormann, "Concise Binary Object
              Representation (CBOR) Tags for IPv4 and IPv6 Addresses and
              Prefixes", RFC 9164, DOI 10.17487/RFC9164, December 2021,
              <https://www.rfc-editor.org/rfc/rfc9164>.

   [RFC9254]  Veillette, M., Ed., Petrov, I., Ed., Pelov, A., Bormann,
              C., and M. Richardson, "Encoding of Data Modeled with YANG
              in the Concise Binary Object Representation (CBOR)",
              RFC 9254, DOI 10.17487/RFC9254, July 2022,
              <https://www.rfc-editor.org/rfc/rfc9254>.

   [RFC9562]  Davis, K., Peabody, B., and P. Leach, "Universally Unique
              IDentifiers (UUIDs)", RFC 9562, DOI 10.17487/RFC9562, May
              2024, <https://www.rfc-editor.org/rfc/rfc9562>.

   [STD94]    Internet Standard 94,
              <https://www.rfc-editor.org/info/std94>.
              At the time of writing, this STD comprises the following:

              Bormann, C. and P. Hoffman, "Concise Binary Object
              Representation (CBOR)", STD 94, RFC 8949,
              DOI 10.17487/RFC8949, December 2020,
              <https://www.rfc-editor.org/info/rfc8949>.

Bormann & Matejka         Expires 4 March 2026                 [Page 14]
Internet-Draft         Stand-in Tags for YANG-CBOR           August 2025

8.2.  Informative References

   [I-D.bormann-cbor-notable-tags]
              Bormann, C., "Notable CBOR Tags", Work in Progress,
              Internet-Draft, draft-bormann-cbor-notable-tags-13, 20
              July 2025, <https://datatracker.ietf.org/doc/html/draft-
              bormann-cbor-notable-tags-13>.

   [RFC9542]  Eastlake 3rd, D., Abley, J., and Y. Li, "IANA
              Considerations and IETF Protocol and Documentation Usage
              for IEEE 802 Parameters", BCP 141, RFC 9542,
              DOI 10.17487/RFC9542, April 2024,
              <https://www.rfc-editor.org/rfc/rfc9542>.

   [RFC9557]  Sharma, U. and C. Bormann, "Date and Time on the Internet:
              Timestamps with Additional Information", RFC 9557,
              DOI 10.17487/RFC9557, April 2024,
              <https://www.rfc-editor.org/rfc/rfc9557>.

Acknowledgments

   TODO acknowledge.

Authors' Addresses

   Carsten Bormann
   Universität Bremen TZI
   Postfach 330440
   D-28359 Bremen
   Germany
   Phone: +49-421-218-63921
   Email: cabo@tzi.org

   Maria Matejka
   CZ.NIC
   Milesovska 1136/5
   13000 Praha
   Czechia
   Email: maria.matejka@nic.cz, mq@jmq.cz

Bormann & Matejka         Expires 4 March 2026                 [Page 15]