CBOR Encoding of Data Modeled with YANGTrilliant Networks Inc.610 Rue du LuxembourgGranbyQuebecJ2J 2V2Canadamichel.veillette@trilliantinc.comAcklio1137A avenue des Champs BlancsCesson-SevigneBretagne35510Franceivaylo@ackl.ioAcklio1137A avenue des Champs BlancsCesson-SevigneBretagne35510Francea@ackl.io
Applications and Real-Time Area (art)
Internet Engineering Task ForceCBORThis document defines encoding rules for serializing configuration data, state data, RPC input and RPC output, Action input, Action output and notifications defined within YANG modules using the Concise Binary Object Representation (CBOR) .The specification of the YANG 1.1 data modelling language defines an XML encoding for data instances, i.e. contents of configuration datastores, state data, RPC inputs and outputs, action inputs and outputs, and event notifications.A new set of encoding rules has been defined to allow the use of the same data models in environments based on the JavaScript Object Notation (JSON) Data Interchange Format . This is accomplished in the JSON Encoding of Data Modeled with YANG specification .The aim of this document is to define a set of encoding rules for the Concise Binary Object Representation (CBOR) . The resulting encoding is more compact compared to XML and JSON and more suitable for Constrained Nodes and/or Constrained Networks as defined by .The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”,
“SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to
be interpreted as described in .The following terms are defined in :actionanydataanyxmldata nodedata treedatastorefeatureidentitymodulenotificationRPCschema nodeschema treesubmoduleThe following terms are defined in :yang-data (YANG extension)YANG data templateThis specification also makes use of the following terminology:child: A schema node defined within a collection such as a container, a list, a case, a notification, an RPC input, an RPC output, an action input, an action output.delta: Difference between the current SID and a reference SID. A reference SID is defined for each context for which deltas are used.item: A schema node, an identity, a module, a submodule or a feature defined using the YANG modeling language.parent: The collection in which a schema node is defined.YANG Schema Item iDentifier (SID): Unsigned integer used to identify different YANG items.This document defines CBOR encoding rules for YANG schema trees and their subtrees.A collection such as container, list instance, notification, RPC input, RPC output, action input and action output is serialized using a CBOR map in which each child schema node is encoded using a key and a value. This specification supports two type of CBOR keys; YANG Schema Item iDentifier (SID) as defined in and names as defined in . Each of these key types is encoded using a specific CBOR type which allows their interpretation during the deserialization process. Protocols or mechanisms implementing this specification can mandate the use of a specific key type.In order to minimize the size of the encoded data, the proposed mapping avoids any unnecessary meta-information beyond those natively supported by CBOR. For instance, CBOR tags are used solely in the case of anyxml schema nodes and the union datatype to distinguish explicitly the use of different YANG datatypes encoded using the same CBOR major type.Unless specified otherwise by the protocol or mechanism implementing this specification, the infinite lengths encoding as defined in section 2.2 SHALL be supported by CBOR decoders.Data nodes implemented using a CBOR array, map, byte string, and text string can be instantiated but empty. In this case, they are encoded with a length of zero.Application payloads carrying a value serialized using the rules defined by this specification (e.g. CoAP Content-Format) SHOULD include the identifier (e.g. SID, namespace qualified name, instance-identifier) of this value. When SIDs are used as identifiers, the reference SID SHALL be included in the payload to allow stateless conversion of delta values to SIDs. Formats of these application payloads are not defined by the current specification.Within this document, CBOR binary contents are represented using an equivalent textual form called CBOR diagnostic notation as defined in section 6. This notation is used strictly for documentation purposes and is never used in the data serialization. below provides a summary of this notation.CBOR contentCBOR typeDiagnostic notationExampleCBOR encodingUnsigned integer0Decimal digits12318 7BNegative integer1Decimal digits prefixed by a minus sign-12338 7AByte string2Hexadecimal value enclosed between single quotes and prefixed by an ‘h’h’F15C’42 f15CText string3String of Unicode characters enclosed between double quotes“txt”63 747874Array4Comma-separated list of values within square brackets[ 1, 2 ]82 01 02Map5Comma-separated list of key : value pairs within curly braces{ 1: 123, 2: 456 }a2 01187B 021901C8Boolean7/20falsefalseF47/21truetrueF5Null7/22nullnullF6Not assigned7/23undefinedundefinedF7The following extensions to the CBOR diagnostic notation are supported:Any text within and including a pair of slashes is considered a comment.Deltas are visualized as numbers preceded by a ‘+’ or ‘–’ sign. The use of the ‘+’ sign for positive deltas represents an extension to the CBOR diagnostic notation as defined by section 6.Some of the items defined in YANG require the use of a unique identifier. In both NETCONF and RESTCONF , these identifiers are implemented using strings. To allow the implementation of data models defined in YANG in constrained devices and constrained networks, a more compact method to identify YANG items is required. This compact identifier, called YANG Schema Item iDentifier (SID), is an unsigned integer. The following items are identified using SIDs:identitiesdata nodesRPCs and associated input(s) and output(s)actions and associated input(s) and output(s)notifications and associated informationYANG modules, submodules and featuresTo minimize its size, in certain positions, SIDs are represented using a (signed) delta from a reference SID and the current SID. Conversion from SIDs to deltas and back to SIDs are stateless processes solely based on the data serialized or deserialized.Mechanisms and processes used to assign SIDs to YANG items and to guarantee their uniqueness is outside the scope of the present specification. If SIDs are to be used, the present specification is used in conjunction with a specification defining this management. One example for such a specification is under development as .This specification also supports the encoding of YANG item identifiers as string, similar as those used by the JSON Encoding of Data Modeled with YANG . This approach can be used to avoid the management overhead associated to SIDs allocation. The main drawback is the significant increase is size of the encoded data.YANG items identifiers implemented using names MUST be in one of the following forms:simple - the identifier of the YANG item (i.e. schema node or identity).namespace qualified - the identifier of the YANG item is prefixed with the name of the module in which this item is defined, separated by the colon character (“:”).The name of a module determines the namespace of all YANG items defined in that module. If an item is defined in a submodule, then the namespace qualified name uses the name of the main module to which the submodule belongs.ABNF syntax [RFC5234] of a name is shown in , where the production for “identifier” is defined in Section 14 of .A namespace qualified name MUST be used for all members of a top-level CBOR map and then also whenever the namespaces of the data node and its parent node are different. In all other cases, the simple form of the name SHOULD be used.Definition example:A valid CBOR encoding of the ‘top’ container is as follow.CBOR diagnostic notation:Both the ‘top’ container and the ‘bar’ leaf defined in a different YANG module as its parent container are encoded as namespace qualified names. The ‘foo’ leaf defined in the same YANG module as its parent container is encoded as simple name.Schema node instances defined using the YANG modeling language are encoded using CBOR based on the rules defined in this section. We assume that the reader is
already familiar with both YANG and CBOR .A ‘leaf’ MUST be encoded accordingly to its datatype using one of the encoding rules specified in .Collections such as containers, list instances, notification contents, rpc inputs, rpc outputs, action inputs and action outputs MUST be encoded using a CBOR map data item (major type 5). A map is comprised of pairs of data items, with each data item consisting of a key and a value. Each key within the CBOR map is set to a schema node identifier, each value is set to the value of this schema node instance according to the instance datatype.This specification supports two type of CBOR keys; SID as defined in and names as defined in .The following examples shows the encoding of a ‘system-state’ container instance using SIDs or names.Definition example from :CBOR map keys implemented using SIDs MUST be encoded using a CBOR unsigned integer (major type 0) or CBOR negative integer (major type 1), depending on the actual delta or to a SID preceded by the CBOR tag 99.// RFC Ed.: replace 99 by the allocated CBOR tag.Delta values are computed as follows:In the case of a ‘container’, deltas are equal to the SID of the current schema node minus the SID of the parent ‘container’.In the case of a ‘list’, deltas are equal to the SID of the current schema node minus the SID of the parent ‘list’.In the case of an ‘rpc input’ or ‘rcp output’, deltas are equal to the SID of the current schema node minus the SID of the ‘rpc’.In the case of an ‘action input’ or ‘action output’, deltas are equal to the SID of the current schema node minus the SID of the ‘action’.In the case of an ‘notification content’, deltas are equal to the SID of the current schema node minus the SID of the ‘notification’.This example assumes that the Media Type used to carry this container consists of a CBOR map composed of the data node SID and data node encoding. This root CBOR map is not part of the present encoding rules and is not compulsory.CBOR diagnostic notation:CBOR encoding:CBOR map keys implemented using names MUST be encoded using a CBOR text string data item (major type 3). A namespace-qualified name MUST be used each time the namespace of a schema node and its parent differ. In all other cases, the simple form of the name MUST be used. Names and namespaces are defined in section 4.The following example shows the encoding of a ‘system’ container instance using names.Definition example from :This example assumes that the Media Type used to carry this container consists of a CBOR map composed of the data node namespace qualified name and data node encoding. This root CBOR map is not part of the present encoding rules and is not compulsory.CBOR diagnostic notation:CBOR encoding:A leaf-list MUST be encoded using a CBOR array data item (major type 4). Each entry of this array MUST be encoded accordingly to its datatype using one of the encoding rules specified in .The following example shows the encoding of the ‘search’ leaf-list instance containing two entries, “ietf.org” and “ieee.org”.Definition example :CBOR diagnostic notation: [ “ietf.org”, “ieee.org” ]CBOR encoding: 82 68 696574662E6F7267 68 696565652E6F7267A list or a subset of a list MUST be encoded using a CBOR array data item (major type 4). Each list instance within this CBOR array is encoded using a CBOR map data item (major type 5) based on the encoding rules of a collection as defined in .It is important to note that this encoding rule also apply to a single ‘list’ instance.The following examples show the encoding of a ‘server’ list using SIDs or names.Definition example from :The encoding rules of each ‘list’ instance are defined in . Deltas of list members are equal to the SID of the current schema node minus the SID of the ‘list’.This example assumes that the Media Type used to carry this list consists of a CBOR map composed of the data node SID and data node encoding. This root CBOR map is not part of the present encoding rules and is not compulsory.CBOR diagnostic notation:CBOR encoding:The encoding rules of each ‘list’ instance are defined in .This example assumes that the Media Type used to carry this container consists of a CBOR map composed of the data node namespace qualified name and data node encoding. This root CBOR map is not part of the present encoding rules and is not compulsory.CBOR diagnostic notation:CBOR encoding:An anydata serves as a container for an arbitrary set of schema nodes that otherwise appear as normal YANG-modeled data. An anydata instance is encoded using the same rules as a container, i.e., CBOR map. The requirement that anydata content can be modeled by YANG implies the following:CBOR map keys of any inner schema nodes MUST be set to valid deltas or names.The CBOR array MUST contain either unique scalar values (as a leaf-list, see ), or maps (as a list, see ).CBOR map values MUST follow the encoding rules of one of the datatypes listed in .The following example shows a possible use of an anydata. In this example, an anydata is used to define a schema node containing a notification event, this schema node can be part of a YANG list to create an event logger.Definition example:This example also assumes the assistance of the following notification.This example assumes that the Media Type used to carry this anydata consists of a CBOR map composed of the data node SID and data node encoding. This root CBOR map is not part of the present encoding rules and is not compulsory.CBOR diagnostic notation:CBOR encoding:In some implementations, it might be simpler to use the absolute SID tag encoding for the anydata root element. The resulting encoding is as follow:// RFC Ed.: replace 99 by the allocated CBOR tag.An anyxml schema node is used to serialize an arbitrary CBOR content, i.e., its value can be any CBOR binary object. anyxml value MAY contain CBOR data items tagged with one of the tag listed in , these tags shall be supported.The following example shows a valid CBOR encoded instance consisting of a CBOR array containing the CBOR simple values ‘true’, ‘null’ and ‘true’.Definition example from :Note: This example assumes that the Media Type used to carry this anyxml consists of a CBOR map composed of the data node SID and data node encoding. This root CBOR map is not part of the present encoding rules and is not compulsory.CBOR diagnostic notation:CBOR encoding:YANG data templates are data structures defined in YANG but not intended to be implemented as part of a datastore. YANG data templates are defined using the ‘yang-data’ extension as described by RFC 8040.YANG data templates SHOULD be encoded using the encoding rules of a collection as defined in .Just like YANG containers, YANG data templates can be encoded using either SIDs or names.Definition example from :YANG template encoded using SIDs are carried in a CBOR map containing a single item pair. The key of this item is set to the SID assigned to the YANG template container, the value is set the CBOR encoding of this container as defined in .This example shows a serialization example of the yang-errors template as defined in using SIDs as defined in .CBOR diagnostic notation:CBOR encoding:YANG template encoded using names are carried in a CBOR map containing a single item pair. The key of this item is set to the namespace qualified name of the YANG template container, the value is set the CBOR encoding of this container as defined in .This example shows a serialization example of the yang-errors template as defined in using names as defined .CBOR diagnostic notation:CBOR encoding:The CBOR encoding of an instance of a leaf or leaf-list schema node depends on the built-in type of that schema node. The following sub-section defined the CBOR encoding of each built-in type supported by YANG as listed in section 4.2.4. Each subsection shows an example value assigned to a schema node instance of the discussed built-in type.Leafs of type uint8, uint16, uint32 and uint64 MUST be encoded using a CBOR
unsigned integer data item (major type 0).The following example shows the encoding of a ‘mtu’ leaf instance set to 1280 bytes.Definition example from :CBOR diagnostic notation: 1280CBOR encoding: 19 0500Leafs of type int8, int16, int32 and int64 MUST be encoded using either CBOR
unsigned integer (major type 0) or CBOR negative integer (major type 1), depending
on the actual value.The following example shows the encoding of a ‘timezone-utc-offset’ leaf instance set to -300 minutes.Definition example from :CBOR diagnostic notation: -300CBOR encoding: 39 012BLeafs of type decimal64 MUST be encoded using a decimal fraction as defined in section 2.4.3.The following example shows the encoding of a ‘my-decimal’ leaf instance set to 2.57.Definition example from :CBOR diagnostic notation: 4([-2, 257])CBOR encoding: C4 82 21 19 0101Leafs of type string MUST be encoded using a CBOR text string data item (major
type 3).The following example shows the encoding of a ‘name’ leaf instance set to “eth0”.Definition example from :CBOR diagnostic notation: “eth0”CBOR encoding: 64 65746830Leafs of type boolean MUST be encoded using a CBOR simple value ‘true’ (major type 7, additional information 21) or ‘false’ (major type 7, additional information 20).The following example shows the encoding of an ‘enabled’ leaf instance set to ‘true’.Definition example from :CBOR diagnostic notation: trueCBOR encoding: F5Leafs of type enumeration MUST be encoded using a CBOR unsigned integer (major type 0) or CBOR negative integer (major type 1), depending on the actual value. Enumeration values are either explicitly assigned using the YANG statement ‘value’ or automatically assigned based on the algorithm defined in section 9.6.4.2.The following example shows the encoding of an ‘oper-status’ leaf instance set to ‘testing’.Definition example from :CBOR diagnostic notation: 3CBOR encoding: 03To avoid overlap of ‘value’ defined in different ‘enumeration’ statements, ‘enumeration’ defined in a Leafs of type ‘union’ MUST be encoded using a CBOR text string data item (major type 3) and MUST contain one of the names assigned by ‘enum’ statements in YANG. The encoding MUST be prefixed with the enumeration CBOR tag as specified in .Definition example from :CBOR diagnostic notation: 99(“unbounded”)CBOR encoding: D8 63 69 756E626F756E646564// RFC Ed.: update 99 and D8 63 with the enumerator CBOR tag allocated.Leafs of type bits MUST be encoded using a CBOR byte string data item (major
type 2). Bits position are either explicitly assigned using the YANG statement
‘position’ or automatically assigned based on the algorithm defined in section 9.7.4.2.Bits position 0 to 7 are assigned to the first byte within the byte
string, bits 8 to 15 to the second byte, and subsequent bytes are assigned
similarly. Within each byte, bits are assigned from least to most significant.The following example shows the encoding of an ‘alarm-state’ leaf instance with the ‘under-repair’ and ‘critical’ flags set.Definition example from :CBOR diagnostic notation: h’06’CBOR encoding: 41 06To avoid overlap of ‘bit’ defined in different ‘bits’ statements, ‘bits’ defined in a Leafs of type ‘union’ MUST be encoded using a CBOR text string data item (major type 3) and MUST contain a space-separated sequence of names of ‘bit’ that are set. The encoding MUST be prefixed with the bits CBOR tag as specified in .The following example shows the encoding of an ‘alarm-state’ leaf instance defined using a union type with the ‘under-repair’ and ‘critical’ flags set.Definition example:CBOR diagnostic notation: 99(“under-repair critical”)CBOR encoding: D8 63 75 756E6465722D72657061697220637269746963616C// RFC Ed.: update 99 and D8 63 with the bits CBOR tag allocated.Leafs of type binary MUST be encoded using a CBOR byte string data item (major
type 2).The following example shows the encoding of an ‘aes128-key’ leaf instance set to 0x1f1ce6a3f42660d888d92a4d8030476e.Definition example:CBOR diagnostic notation: h’1F1CE6A3F42660D888D92A4D8030476E’CBOR encoding: 50 1F1CE6A3F42660D888D92A4D8030476ELeafs of type leafref MUST be encoded using the rules of the schema node referenced
by the ‘path’ YANG statement.The following example shows the encoding of an ‘interface-state-ref’ leaf instance set to “eth1”.Definition example from :CBOR diagnostic notation: “eth1”CBOR encoding: 64 65746831This specification supports two approaches for encoding identityref, a YANG Schema Item iDentifier (SID) as defined in or a name as defined in section 6.8.When schema nodes of type identityref are implemented using SIDs, they MUST be encoded using a CBOR unsigned integer data item (major type 0). (Note that no delta mechanism is employed for SIDs as identityref.)The following example shows the encoding of a ‘type’ leaf instance set to the value ‘iana-if-type:ethernetCsmacd’ (SID 1880).Definition example from :CBOR diagnostic notation: 1880CBOR encoding: 19 0758Alternatively, an identityref MAY be encoded using a name as defined in . When names are used, identityref MUST be encoded using a CBOR text string data item (major type 3). If the identity is defined in different module than the leaf node containing the identityref data node, the namespace qualified form MUST be used. Otherwise, both the simple and namespace qualified forms are permitted. Names and namespaces are defined in .The following example shows the encoding of the identity ‘iana-if-type:ethernetCsmacd’ using its namespace qualified name. This example is described in .CBOR diagnostic notation: “iana-if-type:ethernetCsmacd”CBOR encoding: 78 1b 69616E612D69662D747970653A65746865726E657443736D616364Leafs of type empty MUST be encoded using the CBOR null value (major type
7, additional information 22).The following example shows the encoding of a ‘is-router’ leaf instance when present.Definition example from :CBOR diagnostic notation: nullCBOR encoding: F6Leafs of type union MUST be encoded using the rules associated with one of the types listed.
When used in a union, the following YANG datatypes are prefixed by CBOR tag to avoid confusion
between different YANG datatypes encoded using the same CBOR major type.bitsenumerationidentityrefinstance-identifierSee for the assigned value of these CBOR tags.As mentioned in and in , ‘enumeration’ and ‘bits’ are encoded as CBOR text string data item (major type 3) when defined within a ‘union’ type.The following example shows the encoding of an ‘ip-address’ leaf instance when set to “2001:db8:a0b:12f0::1”.Definition example from :CBOR diagnostic notation: “2001:db8:a0b:12f0::1”CBOR encoding: 74 323030313A6462383A6130623A313266303A3A31This specification supports two approaches for encoding an instance-identifier, one based on YANG Schema Item iDentifier (SID) as defined in and one based on names as defined in .SIDs uniquely identify a schema node. In the case of a single instance schema node, i.e. a schema node defined at the root of a YANG module or submodule or schema nodes defined within a container, the SID is sufficient to identify this instance.In the case of a schema node member of a YANG list, a SID is combined with the list key(s) to identify each instance within the YANG list(s).Single instance schema nodes MUST be encoded using a CBOR unsigned integer data item (major type 0) and set to the targeted schema node SID.Schema nodes member of a YANG list MUST be encoded using a CBOR array data item (major type 4) containing the following entries:The first entry MUST be encoded as a CBOR unsigned integer data item (major type 0) and set to the targeted schema node SID.The following entries MUST contain the value of each key required to identify the instance of the targeted schema node. These keys MUST be ordered as defined in the ‘key’ YANG statement, starting from top level list, and follow by each of the subordinate list(s).Examples within this section assume the definition of a schema node of type ‘instance-identifier’:Definition example from :leaf contact {
type string;
}leaf hostname {
type inet:domain-name;
}
}
~~~~First example:The following example shows the encoding of the ‘reporting-entity’ value referencing data node instance “/system/contact” (SID 1741).Definition example from :CBOR diagnostic notation: 1741CBOR encoding: 19 06CDSecond example:The following example shows the encoding of the ‘reporting-entity’ value referencing list instance “/system/authentication/user/authorized-key/key-data” (SID 1734) for user name “bob” and authorized-key “admin”.Definition example from :CBOR diagnostic notation: [1734, “bob”, “admin”]CBOR encoding:Third example:The following example shows the encoding of the ‘reporting-entity’ value referencing the list instance “/system/authentication/user” (SID 1730) corresponding to user name “jack”.CBOR diagnostic notation: [1730, “jack”]CBOR encoding:An “instance-identifier” value is encoded as a string that is analogical to the lexical representation in XML encoding; see Section 9.13.2 in . However, the encoding of namespaces in instance-identifier values follows the rules stated in , namely:The leftmost (top-level) data node name is always in the namespace qualified form.Any subsequent data node name is in the namespace qualified form if the node is defined in a module other than its parent node, and the simple form is used otherwise. This rule also holds for node names appearing in predicates.For example,/ietf-interfaces:interfaces/interface[name=’eth0’]/ietf-ip:ipv4/ipis a valid instance-identifier value because the data nodes “interfaces”, “interface”, and “name” are defined in the module “ietf-interfaces”, whereas “ipv4” and “ip” are defined in “ietf-ip”.The resulting xpath MUST be encoded using a CBOR text string data item (major type 3).First example:This example is described in .CBOR diagnostic notation: “/ietf-system:system/contact”CBOR encoding:Second example:This example is described in .CBOR diagnostic notation:CBOR encoding:Third example:This example is described in .CBOR diagnostic notation:CBOR encoding:The security considerations of and apply.This document defines an alternative encoding for data modeled in the YANG data modeling language. As such, this encoding does not contribute any new security issues in addition of those identified for the specific protocol or context for which it is used.To minimize security risks, software on the receiving side SHOULD reject all messages that do not comply to the rules of this document and reply with an appropriate error message to the sender.This specification requires the assignment of CBOR tags for the following YANG datatypes.
These tags are added to the Tags Registry as defined in section 7.2 of .TagData ItemSemanticsReferencexxSIDYANG Schema Item iDentifierRFC XXXXxxbitsYANG bits datatypeRFC XXXXxxenumerationYANG enumeration datatypeRFC XXXXxxidentityrefYANG identityref datatypeRFC XXXXxxinstance-identifierYANG instance-identifier datatypeRFC XXXX// RFC Ed.: update Tag values using allocated tags and remove this note
// RFC Ed.: replace XXXX with RFC number and remove this noteThis document has been largely inspired by the extensive works done by Andy Bierman and Peter van der Stok on . has also been a critical input to this work. The authors would like to thank the authors and contributors to these two drafts.The authors would also like to acknowledge the review, feedback, and comments from Ladislav Lhotka and Juergen Schoenwaelder.The YANG 1.1 Data Modeling LanguageYANG is a data modeling language used to model configuration data, state data, Remote Procedure Calls, and notifications for network management protocols. This document describes the syntax and semantics of version 1.1 of the YANG language. YANG version 1.1 is a maintenance release of the YANG language, addressing ambiguities and defects in the original specification. There are a small number of backward incompatibilities from YANG version 1. This document also specifies the YANG mappings to the Network Configuration Protocol (NETCONF).Key words for use in RFCs to Indicate Requirement LevelsIn many standards track documents several words are used to signify the requirements in the specification. These words are often capitalized. This document defines these words as they should be interpreted in IETF documents. This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.Network Configuration Protocol (NETCONF)The Network Configuration Protocol (NETCONF) defined in this document provides mechanisms to install, manipulate, and delete the configuration of network devices. It uses an Extensible Markup Language (XML)-based data encoding for the configuration data as well as the protocol messages. The NETCONF protocol operations are realized as remote procedure calls (RPCs). This document obsoletes RFC 4741. [STANDARDS-TRACK]Concise Binary Object Representation (CBOR)The Concise Binary Object Representation (CBOR) is a data format whose design goals include the possibility of extremely small code size, fairly small message size, and extensibility without the need for version negotiation. These design goals make it different from earlier binary serializations such as ASN.1 and MessagePack.CoAP Management InterfaceThis document describes a network management interface for constrained devices and networks, called CoAP Management Interface (CoMI). The Constrained Application Protocol (CoAP) is used to access datastore and data node resources specified in YANG, or SMIv2 converted to YANG. CoMI uses the YANG to CBOR mapping and converts YANG identifier strings to numeric identifiers for payload size reduction. CoMI extends the set of YANG based protocols, NETCONF and RESTCONF, with the capability to manage constrained devices and networks.YANG Schema Item iDentifier (SID)YANG Schema Item iDentifiers (SID) are globally unique 64-bit unsigned numbers used to identify YANG items. This document defines the semantics, the registration, and assignment processes of SIDs. To enable the implementation of these processes, this document also defines a file format used to persist and publish assigned SIDs.JSON Encoding of Data Modeled with YANGThis document defines encoding rules for representing configuration data, state data, parameters of Remote Procedure Call (RPC) operations or actions, and notifications defined using YANG as JavaScript Object Notation (JSON) text.The JavaScript Object Notation (JSON) Data Interchange FormatJavaScript Object Notation (JSON) is a lightweight, text-based, language-independent data interchange format. It was derived from the ECMAScript Programming Language Standard. JSON defines a small set of formatting rules for the portable representation of structured data.This document removes inconsistencies with other specifications of JSON, repairs specification errors, and offers experience-based interoperability guidance.A YANG Data Model for Interface ManagementThis document defines a YANG data model for the management of network interfaces. It is expected that interface-type-specific data models augment the generic interfaces data model defined in this document. The data model includes configuration data and state data (status information and counters for the collection of statistics).Terminology for Constrained-Node NetworksThe Internet Protocol Suite is increasingly used on small devices with severe constraints on power, memory, and processing resources, creating constrained-node networks. This document provides a number of basic terms that have been useful in the standardization work for constrained-node networks.A YANG Data Model for IP ManagementThis document defines a YANG data model for management of IP implementations. The data model includes configuration data and state data.A YANG Data Model for System ManagementThis document defines a YANG data model for the configuration and identification of some common system properties within a device containing a Network Configuration Protocol (NETCONF) server. This document also includes data node definitions for system identification, time-of-day management, user management, DNS resolver configuration, and some protocol operations for system management.RESTCONF ProtocolThis document describes an HTTP-based protocol that provides a programmatic interface for accessing data defined in YANG, using the datastore concepts defined in the Network Configuration Protocol (NETCONF).A YANG Data Model for Hardware ManagementThis document defines a YANG data model for the management of hardware on a single server.