Matter 1.0 Core Specification76
Matter 1.0 Core Specification76
Version 1.0
Document: 22-22349-001_Matter-1.0-Core-Specification.pdf
Accepted by: This document has been accepted for release by the Connectivity
Standards Alliance Board of Directors on September 28, 2022
Elements of this document may be subject to third party intellectual property rights, including
without limitation, patent, copyright or trademark rights, and any such third party may or may not
be a member of the Connectivity Standards Alliance. Connectivity Standards Alliance members
grant other Connectivity Standards Alliance members certain intellectual property rights as set
forth in the Connectivity Standards Alliance IPR Policy. Connectivity Standards Alliance members
do not grant you any rights under this license. The Connectivity Standards Alliance is not responsi
ble for, and shall not be held responsible in any manner for, identifying or failing to identify any or
all such third party intellectual property rights. Please visit www.csa-iot.org for more information
on how to become a member of the Connectivity Standards Alliance.
This document and the information contained herein are provided on an “AS IS” basis and the Con
nectivity Standards Alliance DISCLAIMS ALL WARRANTIES EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO (A) ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT
INFRINGE ANY RIGHTS OF THIRD PARTIES (INCLUDING WITHOUT LIMITATION ANY INTELLEC
TUAL PROPERTY RIGHTS INCLUDING PATENT, COPYRIGHT OR TRADEMARK RIGHTS); OR (B) ANY
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR
NONINFRINGEMENT. IN NO EVENT WILL THE CONNECTIVITY STANDARDS ALLIANCE BE LIABLE
FOR ANY LOSS OF PROFITS, LOSS OF BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF BUSI
NESS, OR FOR ANY OTHER DIRECT, INDIRECT, SPECIAL OR EXEMPLARY, INCIDENTIAL, PUNITIVE
OR CONSEQUENTIAL DAMAGES OF ANY KIND, IN CONTRACT OR IN TORT, IN CONNECTION WITH
THIS DOCUMENT OR THE INFORMATION CONTAINED HEREIN, EVEN IF ADVISED OF THE POSSI
BILITY OF SUCH LOSS OR DAMAGE.
All company, brand and product names in this document may be trademarks that are the sole prop
erty of their respective owners.
This notice and disclaimer must be included on all copies of this document.
Participants
Agrawal, Amit Alexander, Rob Ananthakrishnan, Axelsson, Ulf
Krithika
Document Control
The Matter specification is made of individual chapters such as this one. See Chapter 1 for the list of
all chapters. References between chapters are made using a X.Y notation where X is the chapter and
Y is the sub-section within that chapter. References to external documents are contained in Chapter
1 and are made using [Rn] notation. An update to any of these chapters will be reflected in an
update to the source document list below.
Revision History
Revision Date Details Editor
Table of Contents
Copyright Notice, License and Disclaimer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Participants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Document Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1. Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
1.3. Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
1.6. References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
2. Architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
2.1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
2.5. Identifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
2.7. Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
3. Cryptographic Primitives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
3.5.1. Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
3.5.4. ECDH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
3.10.1. Computation of pA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
3.10.2. Computation of pB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
4.1.1. Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4.3. Discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
4.7.1. Data confidentiality and integrity with data origin authentication parameters . . . . . . . 122
5. Commissioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
Chapter 1. Introduction
The Matter specification defines fundamental requirements to enable an interoperable application
layer solution for smart home devices over the Internet Protocol.
AP Access Point
CD Certification Declaration
Acronym Definition
ID Identifier
IP Internet Protocol
IPK Identity Protection Key (a Universal Group key shared across a Fab
ric)
MIC Message Integrity Code (used as synonym for MAC (Message Authen
tication Code) to avoid confusion with MAC (Medium Access Control)
as used in network addressing contexts)
Acronym Definition
1.3. Definitions
Term Definition
Access Control List A list of entries in the Access Control Cluster expressing individual rules which
grant privileges to access cluster elements.
Term Definition
Administrator A Node having Administer privilege over at least the Access Control Cluster of
another Node.
Advertising Data A data container used in BLE Advertisements to convey a logical grouping of
information.
Attribute A data entity which represents a physical quantity or state. This data is com
municated to other Nodes using commands.
Border Router A router, also known as Edge Router, that provides routing services between
two IP subnets (typically, between a hub network and a peripheral network).
Bridge A Node that represents one or more non-Matter devices on the Fabric.
Bridged Device A non-Matter device that is represented on the Fabric by a Bridge so it can be
used by Nodes on the Fabric.
Certificate Author An entity that issues digital certificates such as a DAC or NOC
ity (CA)
Certification Dec A digitally signed token that conveys Matter certification status of a vendor’s
laration certified Device.
Client A Cluster interface that typically sends commands that manipulate the
attributes on the corresponding server cluster. A client cluster communicates
with a corresponding remote server cluster with the same cluster identifier.
Command Requests for action on a value with an expected response which may have
parameters and a response with a status and parameters.
Commissionable A Node that is able to be commissioned. Specific actions such as a button press
Node may be required to put a Commissionable Node into Commissioning Mode in
order for it to allow Commissioning.
Term Definition
Controller A Role of a Node that has permissions to enable it to control one or more
Nodes.
Discriminator A 12-bit value used to discern between multiple commissionable Matter device
advertisements. See Discriminator value.
Information Ele A Wi-Fi (IEEE 802.11-2020) data container used to convey various information
ment regarding a particular Wi-Fi network’s capabilities and operation.
Key Center A system component which takes the NOCSR from a Commissioner and allo
cates an Operational Node ID that is unique to the Fabric, inserts this Opera
tional Node ID as the DN into the NOC, and signs the NOC.
Manual Pairing An 11-digit or 21-digit numeric code that can be manually entered/spoken
Code instead of scanning a QR code, which contains the information needed to com
mission a Matter device.
Network A set of nodes that have addressability, connectivity, and reachability to one
another via Internet Protocol.
Node An addressable entity which supports the Matter protocol stack and (once
Commissioned) has its own Operational Node ID and Node Operational cre
dentials. A Device MAY host multiple Nodes.
Operational Dis Discovery of a previously commissioned Node for the purpose of performing
covery operations with that Node.
Onboarding Pay The information needed to start the process of commissioning a Device.
load
Term Definition
OTA Provider A Node implementing the OTA Software Update Provider role (see OTA Soft
ware Update Provider Cluster Definition).
OTA Requestor A Node implementing the OTA Software Update Requestor role (see OTA Soft
ware Update Requestor Cluster Definition).
Product Attesta An entity which operates a root level Certificate Authority for the purpose of
tion Authority Device Attestation.
Product Attesta An entity which operates an intermediate level Certificate Authority for the
tion Intermediate purpose of Device Attestation.
Product ID (PID) A 16-bit number that identifies the type of a Device, uniquely among the prod
uct types made by a given vendor. See Product ID.
QR Code A machine-readable optical label that contains information about the item to
which it is attached (see QR Code).
Role Some set of (related) behaviors of a Node. Each Node can have multiple roles.
Router A device that provides routing services in its network in cooperation with
other Routers.
Secure Channel A channel in which messages are encrypted and authenticated. Unicast secure
channels also provide authentication of each peer.
Server A Cluster interface that typically supports all or most of the attributes of the
Cluster. A Server Cluster communicates with a corresponding remote Client
Cluster with the same Cluster identifier.
Software Image A data blob, equivalent to a file, utilized by a Node to update its software. For
the purposes of OTA Software Update, this further refers to files conforming to
the OTA Software Image File Format.
Vendor ID (VID) A 16-bit number that uniquely identifies the Vendor of the Device. See Vendor
ID.
MAY A key word that indicates flexibility of choice with no implied preference.
NOT A key word that used to describe that the requirement is the inverse of the behav
ior specified (i.e. SHALL NOT, MAY NOT, etc)
SHALL A key word indicating a mandatory requirement. Designers are required to imple
ment all such mandatory requirements.
SHOULD A key word indicating flexibility of choice with a strongly preferred alternative.
Equivalent to the phrase is recommended.
1.6. References
The following standards and specifications contain provisions, which through reference in this doc
ument constitute provisions of this specification. All the standards and specifications listed are nor
mative references. At the time of publication, the editions indicated were valid. All standards and
specifications are subject to revision, and parties to agreements based on this specification are
encouraged to investigate the possibility of applying the most recent editions of the standards and
specifications indicated below.
[FIPS 180-4] https://csrc.nist.gov/publica NIST FIPS 180-4 Secure Hash Standard (SHS), August
tions/detail/fips/180/4/final 2015
[FIPS 186-4] https://csrc.nist.gov/publica NIST FIPS 186-4 Digital Signature Standard (DSS), July
tions/detail/fips/186/4/final 2013
[RFC 2119] https://www.rfc-editor.org/ Bradner, S., "Key words for use in RFCs to Indicate
rfc/rfc2119 Requirement Levels", BCP 14, RFC 2119, DOI
10.17487/RFC2119, March 1997
1.8. Conventions
The following conventions are used in this document.
A value or range of an enumeration, field, or identifier that is available for non-standard imple
mentation SHALL be described as “manufacturer specific”, “ms”, or “MS”.
A value or range of an enumeration, field, or identifier that is available for other parts of this stan
dard SHALL be described as such.
A value or range of an enumeration, field, or identifier that is deprecated, and not available for
implementation, SHALL be described as “Deprecated” or “D”.
Each full or partial data field (e.g., message data field), of any bit length, that is undefined, SHALL
be considered reserved for future revisions of this standard and SHALL not be available for imple
mentation.
An implementation of a revision where a bit is reserved SHALL indicate that bit as zero when con
veying that bit in a message, and ignore that bit when conveyed from another implementation.
In this specification, hexadecimal numbers are prefixed with the designation “0x” and binary num
bers are prefixed with the designation “0b”. All other numbers are assumed to be decimal unless
indicated otherwise within the associated text.
Binary numbers are specified as successive groups of 4 bits, separated by a space (“ “) character
from the most significant bit (next to the 0b prefix and leftmost on the page) to the least significant
bit (rightmost on the page), e.g. the binary number 0b0000 1111 represents the decimal number 15.
Where individual bits are indicated (e.g. "bit 3") the bit numbers are relative to the least significant
bit which is bit 0.
When a bit is specified as having a value of either 0 or 1 it is specified with an “x”, e.g. “0b0000
0xxx” indicates that the lower 3 bits can take any value but the upper 5 bits must each be set to 0.
1.8.4. Provisional
Per [CSA-PNP], when a specification is completed there may be sections of specification text (or
smaller pieces of a section) that are not certifiable at this stage. These sections (or smaller pieces of
a section) are marked as provisional prior to publishing the specification. This specification uses
well-defined notation to mark Provisional Conformance or notes a section of text with the term
"provisional".
Chapter 2. Architecture
2.1. Overview
Matter aims to build a universal IPv6-based communication protocol for smart home devices. The
protocol defines the application layer that will be deployed on devices as well as the different link
layers to help maintain interoperability. The following diagram illustrates the normal operational
mode of the stack:
The Application layer corresponds to the high order business logic of a device. For example, an
application that is focused on lighting might contain logic to handle turning on/off a light bulb, as
well as its color characteristics.
The Data Model layer corresponds to the data and verb elements that help support the functionality
of the application. The Application operates on these data structures when there is intent to interact
with the device.
The Interaction Model layer defines a set of interactions that can be performed between a client and
server device. For example, reading or writing attributes on a server device would correspond to
application behavior on the device. These interactions operate on the elements defined at the data
model layer.
Once an action is constructed using the Interaction Model, it is serialized into a prescribed packed
binary format to encode for network transmission. This process is handled in the Action Framing
layer.
An encoded action frame is then processed by the Security Layer: the message is encrypted and
appended with a message authentication code. These actions ensure the data remain confidential
and authentic between sender and receiver of the message.
With an interaction now serialized, encrypted, and signed, the Message Layer constructs the pay
load format with required and optional header fields, which specify properties of the message as
well logical routing information.
After the final payload has been constructed by the Message Layer, it is sent to the underlying trans
port protocol (TCP or Matter’s Message Reliability Protocol) for IP management of the data.
Once the data is received on the peer device, it travels up the protocol stack, where the various lay
ers reverse the operations on the data performed by the sender, to finally deliver the message to
the Application for consumption.
In addition to the data flows captured above, this specification defines secure session establishment
protocols based on operational certificates (see Section 4.13.2, “Certificate Authenticated Session
Establishment (CASE)”), or passcodes (see Section 4.13.1, “Passcode-Authenticated Session Establish
ment (PASE)”), group communication (see Section 4.14, “Group Communication”), a bulk data trans
fer protocol (BDX) suitable for sending bulk data between Nodes, and provisions for defining manu
facturer-specific protocols.
Matter treats networks as shared resources: it makes no stipulation of exclusive network owner
ship or access. As a result, it is possible to overlay multiple Matter networks over the same set of
constituent IP networks.
This protocol may operate in the absence of globally routable IPv6 infrastructure. This requirement
enables operation in a network disconnected or firewalled from the global Internet. It also enables
deployment in situations where the Internet Service Provider either does not support IPv6 on con
sumer premises or where the support proves otherwise limiting, for example, if the delegated pre
fix cannot accommodate all the networks and devices on premises.
This protocol supports local communications spanning one or more IPv6 subnets. Canonical net
works supporting a fabric may include a Wi-Fi/Ethernet subnet, or one or more low power and
lossy networks (LLN) subnets. In this version of the specification, Thread is the supported LLN stan
dard.
In the single network topology, all Matter devices are connected to a single logical network. This
could be a Thread/802.15.4 network, a Wi-Fi network or an Ethernet network. In the case of Wi-
Fi/Ethernet, the network could in fact span multiple Wi-Fi and/or Ethernet segments provided that
all the segments are bridged at the link layer. A Node is a single instance of a Matter device within a
fabric, operationally available on an IP network.
Each Node in the single-network topology communicates with every other Node in the Fabric via a
single network interface.
The star network topology consists of multiple peripheral networks joined together by a central
hub network. The hub network will typically be the customer’s home network (Wi-Fi/Ethernet net
work), while the peripheral networks can be of any supported network type. A peripheral network
MUST always be joined directly to the hub network via one or more Border Routers.
Architecturally, any number of peripheral networks may be present in a single Fabric, including
multiple networks of the same type. Nodes MAY have interfaces onto any network (hub or periph
eral), and MAY communicate directly to other Nodes on the same network. However, any communi
cation that must cross a network boundary to reach its destination MUST flow through a Border
Router.
This protocol places a set of requirements on the Border Router. These requirements pertain to
address assignment, route assignment and advertisement, multicast support, and discovery proxy
ing.
Note that in this version of the specification, Thread is the primary supported LLN. In many cases,
customer installations will attempt to maintain a simple network topology, with a single Wi-Fi/Eth
ernet subnet, and a single Thread network. However, more than one Thread network is possible
and supported.
To support home automation interoperability, this protocol supports the concept of bridging which
makes available, through a data model node, devices implementing other home automation tech
nologies, transports and link layers.
A Fabric is a collection of Matter devices sharing a trusted root. The root of trust in Matter is the
Root CA that issues the NOCs which underpin node identities. Within the fabric, each node is
uniquely identified by a stable Node ID. The scoped selection and allocation of these constructs
within Matter ensures the uniqueness of identifiers and gives clear guidance on ownership and
management of namespaces.
The operational root of trust — the root certificate authority (CA) as identified by its public key
(Root PK) — is responsible for the allocation of correctly scoped fabric identifiers. The security of all
public key infrastructures (PKI) depends on the private key of the CA being protected and neither
guessable nor obtainable; that property, in turn, implies that the public key is globally unique.
Within any root CA, the fabrics — identified by a 64-bit number — are unique. The uniqueness
mechanism emerges from the collaboration of the commissioner and the root CA associated with
that particular commissioner. Matter wraps the collaboration between the commissioner and its
associated root CA and other possible data stores into a concept called the "administrative domain
manager" (ADM). The algorithmic details and policies within the administrative domain manager
are out of the scope of the specification as long as the allocation of all identifiers obeys the unique
ness and scoping criteria. Fabrics are uniquely identified by the tuple of their root CA’s public key
and a Fabric ID. Similarly, within each fabric, the administrative domain manager is responsible for
assigning a unique and stable Operational Node ID to every node.
The scoping strategy as outlined here ensures that each scoped identifier can be allocated solely by
the entities responsible for the scoping, without consideration for collisions or forgeries. For exam
ple, two different CAs may allocate the same fabric identifiers and this would not create any prob
lems for the devices within the network. Scoped delegation of responsibility also provides for clear
guidelines for the removal of specific identifiers.
A Matter device may be a member of multiple fabrics and thus have multiple associated node IDs.
The scoping strategy also naturally lends itself towards unambiguous resolution of names and cre
dentials and places a clearly defined responsibility for managing the namespaces on each fabric’s
associated administrative domain manager service.
Prior to the first commissioning, such as in factory-reset state, a typical device contains no pre-allo
cated operational roots of trust, and no operational identities in the form of fabric IDs and node
IDs. Yet, various interactions expect the fabric ID, or a node ID. These identifiers emerge in a num
ber of internal constructs — from address discovery, through identifying secure sessions, to evaluat
ing access control privileges. In order to regularize all interactions with the device and solve the
bootstrapping problem, a special primordial fabric ID is reserved, and associates a set of initial
access control privileges with any communication that would be associated with the initial commis
sioning sessions.
2.5. Identifiers
2.5.1. Fabric References and Fabric Identifier
As described above, a Fabric ID is a 64-bit number that uniquely identifies the Fabric within the
scope of a particular root CA. Conceptually, the fully qualified fabric reference consists of the tuple
containing the public key of the root certificate authority, and the Fabric ID. Because the fully quali
fied fabric reference is cumbersome to use, a number of mechanisms for compression of the refer
ence are defined. The Fabric reference, in compressed form, is used during operational discovery to
provide operational naming separation, a form of namespacing, between unrelated collections of
devices.
Fabric ID 0 is reserved across all fabric root public key scopes. This fabric ID SHALL NOT be used as
the identifier of a fabric.
A fabric is defined in the Data Model as a set of nodes that interact by accessing Data Model ele
ments as defined in the Interaction Model (see Section 7.5, “Fabric”).
The layers below the data model, that convey data model interactions as messages, SHALL always
indicate either the fabric associated with the message, or that there is no fabric associated with the
message.
For example: A Data Model message that is conveyed over a message channel that uses the reserved
fabric ID '0' does not have a fabric associated with it.
A Vendor Identifier (Vendor ID or VID) is a 16-bit number that uniquely identifies a particular prod
uct manufacturer, vendor, or group thereof. Each Vendor ID is statically allocated by the Connectiv
ity Standards Alliance (see [CSA Manufacturer Code Database]).
Range Type
All other allocations of Vendor ID are specified in CSA Manufacturer Code Database.
The Test Vendor IDs are reserved for test and development by device manufacturers
or hobbyists. Commissioners SHOULD NOT commission devices using one of these
NOTE VIDs onto an operational Fabric under normal operation unless the user is made
fully aware of the security risks of providing an uncertified device with operational
and networking credentials.
A Product Identifier (Product ID or PID) is a 16-bit number that uniquely identifies a product of a
vendor. The Product ID is assigned by the vendor and SHALL be unique for each product within a
Vendor ID. Once a Product ID has been used, it SHALL NOT be reused by a different product type
under the same Vendor ID. These Product IDs SHOULD NOT be specific to a unique physical device;
rather they describe the product type, which might have many manufactured instances (e.g. multi
ple colors of the same product type).
A value of 0x0000 SHALL NOT be assigned to a product since Product ID = 0x0000 is used for these
specific cases:
• To indicate an OTA software update file applies to multiple Product IDs equally.
• To avoid confusion when presenting the Onboarding Payload for ECM with multiple nodes.
A Group Identifier (Group ID or GID) is a 16-bit number that identifies a set of Nodes across a Fabric
at the message layer (see Section 4.15, “Group Key Management”). A Group ID can further be bound
to one or more Endpoints within each Node in the group at the interaction layer.
Range Type
A Universal Group ID (UGID) is one that resides in the 16-bit subrange of Group ID that is reserved
for groups that are common across this standard. These special multicast, groupcast, or anycast des
tinations are constant and known to all Nodes on any Fabric. The Universal Group ID space is allo
cated as described in Table 3, “Universal Group ID Allocations”:
Range Type
The Commissioner SHALL configure one or more shared keys for these groups on all Nodes within
the Fabric. Because the keys and IPv6 multicast prefixes are different across Fabrics, Universal
Groups only enable communication within a specific Fabric.
This group is used to message all power-capable Nodes in a Fabric. Sleepy Nodes SHALL NOT sub
scribe to this group.
This group is used to discover Proxy Nodes during Section 9.15.4, “Proxy Subscriptions”.
A Node Identifier (Node ID) is a 64-bit number that uniquely identifies an individual Node or a
group of Nodes on a Fabric. The Node Identifier space is allocated as described in Table 4, “Node
Identifier Allocations”:
Range Type
Node IDs are used for core messaging, within the internal APIs, within the data model, and to
resolve the operational IPv6 addresses of Nodes (see Section 4.3.2, “Operational Discovery”).
An Operational Node ID is a 64-bit number that uniquely identifies an individual Node on a Fabric.
All messages must have an Operational Node ID as the source address. All unicast messages must
have an Operational Node ID as the destination address.
While source or destination address MAY be elided from a message, it MUST remain unambigu
ously derivable from the Session ID.
A Group Node ID is a 64-bit Node ID that contains a particular Group ID in the lower half of the
Node ID.
This subrange of Node ID is used to assign an access control subject to a particular PAKE key as
specified in Section 6.6.2.1.1, “PASE and Group Subjects”. An example usage would be to create an
ACL entry to provide administrative access to any commissioner communicating via a PASE session
established with a particular pincode.
This subrange of Node ID is used to assign an access control subject to a group of peer nodes that
share a single CASE session as specified in Section 6.6.2.1.2, “Subjects identified by CASE Authenti
cated Tag”.
The Unspecified Node ID (0x0000_0000_0000_0000) is a reserved value that never appears in mes
sages or protocol usage. It exists to mark or detect the presence of uninitialized, missing, or invalid
Node IDs.
This protocol uses IPv6 addressing for its operational communication. Node IDs and Fabric IDs are
resolved to various types of IPv6 addresses [RFC 4291].
An IPv6 Unicast Address is one that uniquely identifies and addresses a single Node on an IPv6 net
work. A primary design goal for this standard is to allow Nodes to leverage native IPv6 technolo
gies. As such, an operational IPv6 Unicast address that provides connectivity and routability
between Nodes SHALL be used. This includes a global unicast address (GUA), a link-local address
(LLA), or a unique local address (ULA).
• The next 4 bits are "scop" (scope) and set based on [RFC 7346] Section 2 to:
◦ Site-Local (0x5) - spans all networks in the Fabric, including Thread, Ethernet, and Wi-Fi.
• The next 8 bits are "plen", and set to 0x40 to indicate a 64-bit long network prefix field.
The network prefix portion of the Multicast Address is the 64-bit bitstring formed by concatenating:
• 0xFD to designate a locally assigned ULA prefix per [RFC 4193] Section 3.1
• The upper 56-bits of the Fabric ID for the network in big-endian order
The 32-bit group identifier portion of the Multicast Address is the 32-bits formed by:
• 0x00
• The next 16-bits are the Group Identifier for the group, as specified in Group Identifier in big-
endian order
An example of the site local scoped multicast address for a given <Fabric ID> and <Group ID>:
though Site-Local scope is always used, the effective scope MAY be limited by setting
NOTE
the IPv6 hop count.
The Multicast Address formation ensures a low probability of a node receiving a multicast message
it is not interested in. If a collision does occur on the multicast address (which requires two identi
cal 64-bit Fabric IDs and two identical 16-bit Group IDs), processing of the message disambiguates
which fabric and group is relevant by checking which operational group key leads to the message’s
64-bit MIC.
Matter devices SHALL be tolerant of IPv4 addresses and MAY ignore those addresses for the pur
poses of Matter operations.
A Device Attestation Certificate (DAC) proves the authenticity of the manufacturer and a certifica
tion status of the device’s hardware and software. The Device Attestation Certificate is used during
the commissioning process by the Commissioner to ensure that only trustworthy devices are admit
ted into a Fabric. The details of the device attestation process are captured in Section 6.2, “Device
Attestation”.
Each Matter device is issued an Operational Node ID and a Node Operational Certificate (NOC) for
that Operational Node ID. The NOC enables a Node to identify itself within a Fabric by cryptographi
cally binding a unique Node Operational Key Pair to the operational identity of its subject,
attestable through the signature of a trusted Certificate Authority (CA). Operational Node IDs are
removed on factory reset or removal of Fabrics. A NOC is issued during the commissioning process
of a device into a Fabric. These steps help to protect the privacy of the end-user and to adapt to dif
ferent trust models.
The format of the Node Operational credentials and protocols for generating those credentials are
detailed in Section 6.4, “Node Operational Credentials Specification” and Section 6.5, “Operational
Certificate Encoding” sections.
2.7. Security
Matter deploys modern security practices to protect the Fabric. Matter designates a core set of secu
rity primitives detailed in Chapter 3, Cryptographic Primitives to provide comprehensive protection.
Elliptic curve cryptography, based on the NIST P-256 curve (secp256r1) serves as the foundation for
public key cryptography and digital signatures. Commonly available AES modes of operation have
been selected to provide shared key cryptographic operations. In scenarios involving an out-of-
band passcode-based authentication, Matter uses SPAKE2+, an efficient augmented PAKE algorithm.
The core cryptographic primitives form the basis of a number of complementary secure protocols
used within Matter. All unicast Node-to-Node messages are secured, authenticated, and provide
replay protection. Building on top of IPv6 multicast, Matter also provides group messaging facilities,
useful for efficiently addressing on an LLN. The group messaging features prioritize low latency of
packet processing.
1. Device discovery (see Section 5.4, “Device Discovery” and see Section 5.1, “Onboarding Pay
load”): The Commissioner discovers commissionable devices on network interfaces such as
Bluetooth Low Energy, Wi-Fi, or other connected IP network. The Commissioner obtains the out-
of-band secret (Passcode) from the commissionable device’s QR Code, Manual Pairing Code, NFC
Tag or other means. This secret is used by Passcode-Authenticated Session Establishment (PASE)
to establish a secure commissioning session. The order of discovering commissionable devices
and obtaining the out-of-band secret from commissionable device is not critical.
2. Security setup with PASE (see Section 4.13.1, “Passcode-Authenticated Session Establishment
(PASE)”): Establish encryption keys between the Commissioner and Commissionee using PASE.
All messages exchanged between the Commissioner and Commissionee are encrypted using
these PASE-derived keys. The process also establishes an attestation challenge used during the
device attestation procedure.
3. Device attestation verification (see Section 6.2, “Device Attestation”): Commissioner establishes
the authenticity of the Commissionee as a certified device, notifying the user if the device is not
certified.
4. Information configuration (see Section 6.4, “Node Operational Credentials Specification”, Sec
tion 11.9, “General Commissioning Cluster” and Section 11.17, “Node Operational Credentials
Cluster”): The Commissioner provides Commissionee with information such as regulatory
domain, UTC time, Operational Certificate and network interfaces configuration.
5. Join network (see Section 11.8, “Network Commissioning Cluster” and Section 4.3.2, “Opera
tional Discovery”): The Commissioner triggers the Commissionee to connect to the operational
network unless the Commissionee is already on the operational network. The Node’s/Commis
sionee’s IPv6 address is then either used (if already known) or discovered (if not known) by the
Commissioner or Administrator.
6. Security setup with CASE (see Section 4.13.2, “Certificate Authenticated Session Establishment
(CASE)”): Derive encryption keys used to establish secure communication between the Commis
sioner or Administrator and Node with CASE. All unicast messages between a Commissioner or
Administrator and a Node are encrypted using these CASE-derived keys.
7. Commissioning complete message exchange (see Section 11.9, “General Commissioning Clus
ter”): A message exchange encrypted using CASE-derived encryption keys on the operational
network that indicates successful completion of commissioning process.
A commissioner can reconfigure the Commissionee multiple times over the operational network
after the commissioning is complete or over the commissioning channel after PASE-derived encryp
tion keys are established during commissioning. The commissioning flows are described in Section
5.5, “Commissioning Flows”.
• Idle mode, or slow-polling, sets the maximum time a SED will sleep before polling. This parame
ter affects both the minimum power consumption and maximum latency. The SLEEPY_IDLE_IN
TERVAL parameter communicates the maximum sleep interval of a node in idle mode.
• Active mode sets the SED into a fast-polling interval for maximum responsiveness when the
Node is engaged in ongoing communication, such as an active Exchange. The SLEEPY_AC
TIVE_INTERVAL parameter communicates the maximum sleep interval of a node in active
mode.
A SED SHALL indicate it is a sleepy device to peer nodes by setting its SLEEPY_IDLE_INTERVAL to a
value greater than the default and advertising that value per [Discovery_SII].
Because parent infrastructure devices have limited buffering space to cache mes
NOTE sages on behalf of sleepy devices, SED communication patterns SHOULD be
designed such that the SED is predominantly the initiator.
A Node determines whether it is in Active or Idle mode based on whether it has any outstanding
Exchanges in the Message Layer. While there are Exchanges active, a node will remain in Active
mode and poll at the fast-polling interval if it is a SED. Once all Exchanges are closed, a node
SHOULD transition into Idle mode and poll at the slow-polling interval if it is a SED and the node
has no other outstanding reasons for staying awake.
• A node SHALL guarantee that there are at least three Access Control Entries available for every
fabric supported by the node.
For example: A node that supports 6 fabrics must support at least 18 ACL entries, and if it sup
ports N entries must enforce that any K fabrics together do not use more than N - 3*(6-K)
entries.
• Device types MAY impose additional constraints on the number of ACL entries that need to be
supported.
• A node SHALL support at least one group key per fabric for managing the IPK.
• If the node implements one or more device types with support for the Groups cluster, the node
SHALL additionally support the maximum number of the required groups as specified by all of
these implemented device types.
• A node SHALL support one IPv6 multicast group membership for every operational group it
supports.
• A server SHALL ensure that every fabric the node is commissioned into can handle a single
Read Interaction from a client on that fabric containing up to 9 paths.
• A server MAY permit Read Interactions even when there is no accessing fabric, subject to avail
able resources (e.g over PASE).
• A publisher SHALL ensure that every fabric the node is commissioned into can support at least
three Subscribe Interactions to the publisher and that each subscription SHALL support at least
3 attribute/event paths.
• A server MAY permit Subscribe Interactions even when there is no accessing fabric, subject to
available resources (e.g over PASE).
• Device type specifications MAY require a larger number of supported subscriptions or paths.
• The minimal supported capabilities, subject to the minimal constraints above, are reported in
the CapabilityMinima attribute of the Basic Information cluster.
• Support for an Invoke Interaction with multiple paths or wildcard paths is provisional.
The Proxy Architecture, the Proxy Config and Proxy Discovery clusters are provisional.
Table 5, “Glossary of parameters” is a glossary of parameters used in this chapter with a brief
description for each parameter. A Node SHALL use the provided default value for each parameter
unless the message recipient Node advertises an alternate value for the parameter via Operational
Discovery.
These parameters are encoded in the following TLV format when included in CASE / PASE session
establishment:
Given a version of the Message Format, the cryptographic primitives are mapped to specific
instances. There is no cryptosuite negotiation in this protocol: one version of the Message Format
has one cryptosuite as defined in this chapter.
Each section defines cryptographic primitives generically, together with concrete mappings to spe
cific instances of these cryptographic primitives for version 1.0 of the Message Format. This chapter
can also be used as guidance about which cryptographic primitives need to be supported by a
device, but it must be noted that not all devices will have to support all of them. For example, a
device may not require the Crypto_PBKDF() primitive, as values based on this operation could in
some instances be precomputed and stored during the manufacturing process of the device. The
proposed functional mapping in this chapter is normative with respect to the values computed by
the functions but informative with respect to the way the functions are interfaced within imple
mentations. For example, a function returning both a boolean to indicate success and a value if the
operation is successful could also be implemented using exception mechanisms instead of return
ing a boolean.
It must also be noted that not all cryptographic primitives are exposed to the other parts of the
specification. For example, the Crypto_TRNG() primitive SHALL NOT be called outside of the Crypto_
DRBG() implementation.
The cryptographic primitives discussed below operate on data local to the host. Where more com
plex data types are present and their external representation is applicable, the chapter notes the
details of the encoding. Simple multi-byte data types without any additional context are assumed to
be in host byte order when they are used internally to a procedure, unless otherwise stated.
All octet strings are presented with first octet having index 0, and presented from left to right for
indices 0 through N-1 for an octet string of length N.
bit[len]
Crypto_DRBG(int len)
Crypto_DRBG() SHALL be implemented with one of the following DRBG algorithms as defined in
NIST 800-90A (the choice of which one is left to the manufacturer because the choice has no
impact on the interoperability):
Crypto_DRBG() SHALL be seeded using Crypto_TRNG() with at least 256 bits of entropy (see among
others Chapter 4 and Section 8.4 of NIST 800-90A).
bit[len]
Crypto_TRNG(int len)
In accordance with good security practices, the Crypto_TRNG() SHALL never be called directly but
rather SHALL be used in the implementation of Crypto_DRBG().
byte[CRYPTO_HASH_LEN_IN_BYTES]
Crypto_Hash(byte[] message)
Crypto_Hash(message) :=
byte[CRYPTO_HASH_LEN_BYTES] SHA-256(M := message)
byte[CRYPTO_HASH_LEN_BYTES]
Crypto_HMAC(byte[] key, byte[] message)
Returns the cryptographic keyed-hash message authentication code of a message using the given
key.
Crypto_HMAC(key, message) :=
byte[CRYPTO_HASH_LEN_BYTES] HMAC(K := key, text := message)
HMAC() SHALL be computed as defined in FIPS 198-1 using Crypto_Hash() as the underlying hash
function H (this is also referred to as HMAC-SHA256()) and CRYPTO_HASH_LEN_BYTES is defined in Section
3.3, “Hash function (Hash)”.
3.5.1. Group
The public key cryptography of Matter relies on the group defined in the following mapping table.
Matter public key cryptography SHALL be based on Elliptic Curve Cryptography (ECC) with the
elliptic curve: secp256r1 defined in Section 2.4.2 of SEC 2. (Informative: Note that this curve is also
referred to as NIST P-256 or prime256v1 in FIPS 186-4 and NIST 800-186.)
PrivateKey is an opaque data type to hold either the private key or any handle or reference that
allows other primitives to access the corresponding private key.
PublicKey is an opaque data type to hold the public key or any handle or reference that allows
other primitives to access the corresponding public key. A public key is a point on the elliptic
curve. (Note: at places in the specification where public keys are to be explicitly transmitted, the
format in which they are transmitted is specified.)
int CRYPTO_GROUP_SIZE_BITS := 256
int CRYPTO_GROUP_SIZE_BYTES := 32
int CRYPTO_PUBLIC_KEY_SIZE_BYTES : = (2 * CRYPTO_GROUP_SIZE_BYTES) + 1 = 65 is the size in bytes
of the public key representation when encoded using the uncompressed public key format as spec
ified in section 2.3 of SEC 1.
struct {
PublicKey publicKey;
PrivateKey privateKey;
} KeyPair;
KeyPair
Crypto_GenerateKeyPair()
Crypto_GenerateKeypair() :=
KeyPair ECCGenerateKeypair()
Crypto_Sign() is used to sign a message, and Crypto_Verify() is used to verify a signature on a mes
sage.
These functions either generate or verify a signature of type Signature defined by the following
mapping.
struct {
byte[CRYPTO_GROUP_SIZE_BYTES] r,
byte[CRYPTO_GROUP_SIZE_BYTES] s
} Signature
3.5.3.1. Signature
Signature
Crypto_Sign(
PrivateKey privateKey,
byte[] message)
Crypto_Sign(privateKey, message) :=
Signature ECDSASign(dU := privateKey, M := message)
ECDSASign() SHALL be the ECDSA signature function as defined in Section 4.1 of SEC 1 using Cryp
to_Hash() as the underlying hash Hash() function.
boolean
Crypto_Verify(
PublicKey publicKey,
byte[] message,
Signature signature)
Verifies the signature of the message using the publicKey, returns TRUE if the verification succeeds,
FALSE otherwise.
ECDSAVerify() SHALL be the ECDSA signature verification function as defined in Section 4.1.4 of
SEC 1 using Crypto_Hash() as the underlying hash function Hash(); returns TRUE if the verification
succeeds and FALSE otherwise.
3.5.4. ECDH
Crypto_ECDH() is used to compute a shared secret from the Elliptic Curve Diffie-Hellman (ECDH) pro
tocol.
byte[CRYPTO_GROUP_SIZE_BYTES]
Crypto_ECDH(
PrivateKey myPrivateKey,
PublicKey theirPublicKey)
Crypto_ECDH(myPrivateKey, theirPublicKey) :=
byte[CRYPTO_GROUP_SIZE_BYTES] ECDH(dU := myPrivateKey, QV := theirPublicKey)
The output of ECDH() SHALL be the serialization of the x-coordinate of the resultant point as
defined in Section 3.3.1 of SEC 1.
Crypto_VerifyChainDER() is used to verify public key X.509 v3 certificates in X.509 v3 DER format.
boolean
Crypto_VerifyChain(MatterCertificate[] certificates)
Given Matter certificates, Crypto_VerifyChain() performs all the necessary validity checks on cer
tificates, taking in account that the notion of "current time" for the purposes of validation SHALL
abide by the rules in Section 3.5.6, “Time and date considerations for certificate path validation”.
boolean
Crypto_VerifyChainDER(DERCertificate[] certificates)
Given a list of DER-encoded certificates in RFC 5280 format, starting at the end-entity (leaf) certifi
cate, and following the chain of trust towards the root, Crypto_VerifyChainDER() performs all the
necessary validity checks on certificates.
The Validity period validation for the root and optional intermediate certificates is performed
against the notBefore timestamp of the end-entity (leaf certificate) used as value for the current
time.
Crypto_VerifyChain(certificates) :=
boolean verified
Crypto_VerifyChainDER(certificates) :=
boolean verified
The primitives as described above verify cryptographic integrity of the certificate chains. This spec
ification imposes a number of additional constraints on certificates discussed below in sections on
Device Attestation Certificates, Node Operational Certificates and Certificate Common Conventions.
The Basic Path Validation algorithm in RFC 5280 mandates the consideration of the "current time"
against the validity period (notBefore, notAfter fields) when validating paths. The usage of "current
time" assumes that such a time is available and correct, which is a strong assumption when consid
ering some constrained devices or devices only locally reachable on a network in the absence of
infrastructure to synchronize time against a global real-time reference.
When the Crypto_VerifyChain primitive is used, rather than overriding the Basic Path Validation
algorithm of RFC 5280, Nodes SHALL consider the following definition of "current time" that
accounts for the possible lack of a real time reference:
• If a Node has a current real-time clock value which is trusted according to implementation-
defined means to be accurate with regard to global real-time, whether using Time Synchroniza
tion features of this specification or other means, then it SHALL use that time;
• Otherwise, the current time SHALL be set to the last-known-good UTC time.
Upon failure to validate a certificate path, where the only reason for failure is an invalid validity
period of a path element, a Node MAY apply a policy of its choice to determine whether to ignore
Nodes SHALL maintain a stored Last Known Good UTC Time. This time is used as a fallback for
cryptographic credentials expiry enforcement, if all other available time synchronization mecha
nisms fail.
The last known good UTC time SHALL be updated at commissioning and MAY be updated after a
successful time synchronization, or by an embedded time in an OTA. Nodes SHOULD store a Last
Known Good UTC Time value to persistent storage at least once a month. A Node’s initial out-of-box
Last Known Good UTC time SHALL be the compile-time of the firmware.
A Node MAY adjust the Last Known Good UTC Time backwards if it believes the current Last Known
Good UTC Time is incorrect and it has a good time value from a trusted source. The Node SHOULD
NOT adjust the Last Known Good UTC to a time before the later of:
• The not-before timestamp of any of its operational certificates (see Section 6.4.5, “Node Opera
tional Credentials Certificates”).
If a Node has used the Last Known Good UTC Time, it SHOULD recheck its security materials and
existing connections if it later achieves time synchronization.
All unicast and multicast messages between Nodes requiring protection for confidentiality and
integrity with data origin authentication SHALL use Authenticated Encryption with Associated Data
(AEAD) as primitive to protect those messages.
Data confidentiality and integrity SHALL use the AES-CCM mode as defined in NIST 800-38C with
the following parameters:
• int CRYPTO_SYMMETRIC_KEY_LENGTH_BITS := 128 (this is the key length of the underlying block
cipher in bits)
• int CRYPTO_AEAD_NONCE_LENGTH_BYTES := 13
SymmetricKey is an opaque data type to hold a symmetric block cipher key or any handle or refer
ence that allows other primitives to access the corresponding key.
byte[lengthInBytes(P) + CRYPTO_AEAD_MIC_LENGTH_BYTES]
Crypto_AEAD_GenerateEncrypt(
SymmetricKey K,
byte[lengthInBytes(P)] P,
byte[] A,
byte[CRYPTO_AEAD_NONCE_LENGTH_BYTES] N)
Performs the generate and encrypt computation on payload P and the associated data A using the
key K and a nonce N; the output contains the ciphertext and the tag truncated to Tlen bits (the
encoding of the output depends on the mapping to the specific instance of the cryptographic prim
itive).
Crypto_AEAD_GenerateEncrypt(K, P, A, N) :=
byte[lengthInBytes(P) + CRYPTO_AEAD_MIC_LENGTH_BYTES] AES-CCM-GenerateEncrypt(K
:= K, P := P, A := A, N := N, Tlen := CRYPTO_AEAD_MIC_LENGTH_BITS)
AES-CCM-GenerateEncrypt() SHALL be the function described in Section 6.1 of NIST 800-38C with the
counter generation function of Appendix A.3 of NIST 800-38C and the formatting function as
defined in Appendix A.2 of NIST 800-38C; returns the encoding of the ciphertext and the tag of
length Tlen bits, as specified in Section 6.1 of NIST 800-38C as a byte array.
Performs the decrypt and verify computation on the combined ciphertext and tag C and the associ
ated data A using the key K and a nonce N. Note that the encoding of C depends on the mapping of
the specific instance of the cryptography primitive.
• If tag verification succeeds, the success output is TRUE and the payload array contains the
decrypted payload P.
• If tag verification fails, the success output is FALSE and the contents of the payload array is
undefined.
Crypto_AEAD_DecryptVerify(K, C, A, N) :=
{boolean, byte[lengthInBytes(P)]} AES-CCM-DecryptVerify(K := K, C := C, A := A,
N := N, Tlen := CRYPTO_AEAD_MIC_LENGTH_BITS)
AES-CCM-DecryptVerify() SHALL be the function described in Section 6.2 of NIST 800-38C with the
counter generation function of Appendix A.3 of NIST 800-38C and the formatting function as
defined in Appendix A.2 of NIST 800-38C and C SHALL be a byte array containing the ciphertext as
specified in Section 6.2 of NIST 800-38C.
• If tag verification succeeds, the success output is TRUE and the payload array contains the
decrypted payload P.
• If tag verification fails, the success output is FALSE and the contents of the payload array is
undefined.
Message privacy SHALL use the AES-CTR mode as defined in NIST 800-38A with the following
parameters:
• int CRYPTO_PRIVACY_NONCE_LENGTH_BYTES := 13
byte[lengthInBytes(M)]
Crypto_Privacy_Encrypt(
SymmetricKey K,
byte[lengthInBytes(M)] M,
byte[CRYPTO_PRIVACY_NONCE_LENGTH_BYTES] N)
Performs the encryption of the message M using the key K and a nonce N; the output contains the
data M encrypted.
Crypto_Privacy_Encrypt(K, M, N) :=
byte[lengthInBytes(M)]
AES-CTR-Encrypt(K := K, P := M, N := N)
AES-CTR-Encrypt() SHALL be the encryption function described in Section 6.5 of NIST 800-38A with
the sequence of counters T being generated according to the counter generation function of
Appendix A.3 of NIST 800-38C using N and the value of q = 2; returns the encrypted message as a
byte array.
byte[lengthInBytes(C)]
Crypto_Privacy_Decrypt(
SymmetricKey K,
byte[lengthInBytes(C)] C,
byte[CRYPTO_PRIVACY_NONCE_LENGTH_BYTES] N)
Performs the decryption of C using the key K and a nonce N; the output M is the decryption of C
Crypto_Privacy_Decrypt(K, C, N) :=
byte[lengthInBytes(C)]
AES-CTR-Decrypt(K := K, C := C, N := N)
AES-CTR-Decrypt() SHALL be the decryption function described in Section 6.5 of NIST 800-38A with
the sequence of counters T being generated according to the counter generation function of
Appendix A.3 of NIST 800-38C using N and the value of q = 2; returns the decrypted message as a
byte array.
bit[len]
Crypto_KDF(
byte[] inputKey,
byte[] salt,
byte[] info,
int len)
Returns the key of len bits derived from inputKey using the salt and the info; len SHALL be a mul
tiple of 8.
KDM() SHALL be the HMAC-based KDF function with Crypto_HMAC(key := salt, message := x) as the
auxiliary function H as defined in Section 4.1 Option 2 of NIST 800-56C; it returns a bit array of len
bits.
When multiple keys of the same length are generated by a single KDF call, the following shorthand
notation can be used:
Keys = Crypto_KDF
(
inputKey = inputKeyMaterial,
salt = [],
info = [],
len = 3 * CRYPTO_SYMMETRIC_KEY_LENGTH_BITS
)
bit[len]
Crypto_PBKDF(
byte[] input,
byte[] salt,
int iterations,
int len)
Returns a value of len bits derived from the input using the salt and iterations iterations.
STRUCTURE Crypto_PBKDFParameterSet
Maintains the set of parameters exchanged between a Commissioner and a Commissionee during
their pairing.
PBKDF2() SHALL be the HMAC-based PBKDF function with Crypto_HMAC(key := P, message := U[j-
1]) as the auxiliary function HMAC as defined in Section 5.3 of NIST 800-132; it returns a bit array of
len bits.
• salt: A random value per device of at least 16 bytes and at most 32 bytes used as the PBKDF2
salt.
• The SPAKE2+ verifier is the Commissionee/Responder and the SPAKE2+ prover is the Commis
sioner/Initiator
• Crypto_PBKDF() as underlying PBKDF (see Section 3.9, “Password-Based Key Derivation Func
tion (PBKDF)”), with arguments as described in the definition of Crypto_PAKEValues_Initiator
• NIST P-256 elliptic curve as underlying group (see Section 3.5.1, “Group”).
◦ SPAKE2+ requires two additional points on the curve: M and N. The values of M and N are
taken from the draft version 2 of the SPAKE2+ specification (SPAKE2+) and are listed below
in compressed format (format defined in section 2.3 of SEC 1):
▪ M = 02886e2f97ace46e55ba9dd7242579f2993b64e16ef3dcab95afd497333d8fa12f
▪ N = 03d8bbd6c639c62937b04d997f38c3770719c629d7014d49a24b4f98baa1292b49
• Crypto_Hash() as underlying hash function (see Section 3.3, “Hash function (Hash)”).
• Crypto_HMAC() as underlying HMAC function (see Section 3.4, “Keyed-Hash Message Authentica
tion Code (HMAC)”).
CRYPTO_W_SIZE_BYTES := CRYPTO_GROUP_SIZE_BYTES + 8
CRYPTO_W_SIZE_BITS := CRYPTO_W_SIZE_BYTES * 8
where:
• mod is the mathematical modulo operation and || is the string concatenation or split operator.
• passcode, is the Passcode defined in Section 5.1.1.6, “Passcode”, serialized as little-endian over 4
octets. For example, passcode 18924017 would be encoded as the octet string f1:c1:20:01 and
the passcode 00000005 would be encoded as the octet string 05:00:00:00.
• Both w0s and w1s SHALL have a length equal to (CRYPTO_GROUP_SIZE_BYTES + 8).
where:
• Both w0s and w1s SHALL have a length equal to (CRYPTO_GROUP_SIZE_BYTES + 8).
• The pair (w0,L) is also referred to as Commissionee PAKE input or verification value
3.10.1. Computation of pA
Crypto_pA(Crypto_PAKEValues_Initiator) :=
byte pA[CRYPTO_PUBLIC_KEY_SIZE_BYTES]
pA is in uncompressed public key format as specified in section 2.3 of SEC 1. pA SHALL be com
puted as specified in SPAKE2+.
3.10.2. Computation of pB
Crypto_pB(Crypto_PAKEValues_Responder) :=
byte pB[CRYPTO_PUBLIC_KEY_SIZE_BYTES]
pB is in uncompressed public key format as specified in section 2.3 of SEC 1. pB SHALL be com
puted as specified in SPAKE2+.
TT :=
lengthInBytes(Context) || Context ||
0x0000000000000000 || 0x0000000000000000 ||
lengthInBytes(M) || M ||
lengthInBytes(N) || N ||
lengthInBytes(pA) || pA ||
lengthInBytes(pB) || pB ||
lengthInBytes(Z) || Z ||
lengthInBytes(V) || V ||
lengthInBytes(w0) || w0
Note the two 0x0000000000000000 null-lengths indicate that no identities are present and each null-
lengths is 8 bytes wide since it is specified by the SPAKE2+ specification that lengths are eight-byte
little-endian numbers. The SPAKE2+ specification indicates that we must include these length
fields.
Note in case PBKDFParamRequest and PBKDFParamResponse messages are not exchanged, they SHALL
be replaced by empty strings in the Context computation.
4.1.1. Messages
Each message has a Session Type and Session ID in order to identify whether it is secured and how
it is to be decrypted and authenticated if it is. Each message has a Message Counter field in order to
uniquely identify the message for the purposes of security and duplicate detection.
Operational communication is defined as traffic that uses the secured Matter message format
between commissioned nodes over an IP transport. All operational communication has message
security enabled. Operational communication between Nodes can be either unicast or multicast.
• User Directed Commissioning (UDC), which uses unsecured messages to initiate the commission
ing process.
• Session establishment, which uses unsecured messages to establish a CASE or PASE session.
Messages are defined as either a control message or data message. Most messages are data mes
sages. Control messages are reserved for internal protocols such as MCSP to initialize security. Both
message types are identical in format, but use separate message counter domains so they can oper
ate securely over the same security key.
Messages are of finite size and are sent as individual packets over the supported transports:
• UDP transports each message as a separate datagram. Messages support a basic reliability pro
tocol called MRP for use when the underlying transport (in this case UDP) doesn’t provide such
features.
• TCP transports each message with a length prepended, performing segmentation and reassem
bly as needed.
• BTP transports each message over BLE as a separate SDU, performing segmentation and
reassembly as needed.
BTP is provided as a transport protocol for commissioning. TCP and MRP (UDP with added reliabil
ity) are provided as transport protocols for operational messaging.
Messages provide an Exchange Layer to track related messages that make up small, discrete trans
actions. The Exchange Layer provides this transaction tracking facility to the Interaction Model
Layer above, providing a means to multiplex multiple such concurrent transactions over a given
underlying session. The Exchange Layer also integrates the Message Reliability Protocol (MRP) as a
service for use over UDP transports. This Message Layer architecture is shown below in Figure 6,
“Message Layer Stack”:
In a single network configuration, all Matter Nodes are attached to the same IPv6 link. A single net
work configuration may consist of a single bridged Wi-Fi / Ethernet network where all nodes
attached to that network are part of the same broadcast domain. When all Matter Nodes are
attached to the same Wi-Fi / Ethernet network, link-local IPv6 addressing is sufficient - no addi
tional IPv6 network infrastructure is required.
Stub routers SHALL advertise reachability to all routable prefixes on the adjacent network. A stub
router connecting a Thread network SHALL advertise reachability to all of the Thread network’s
routable prefixes to the adjacent infrastructure network using Route Information Options
[RFC 4191] contained in Router Advertisements [RFC 4861]. That same stub router SHALL also
advertise reachability to all of the infrastructure network’s routable prefixes to the adjacent Thread
network in the Thread Network Data [Thread specification].
Matter Nodes SHALL configure a link-local IPv6 address. In addition, Nodes SHALL support configu
ration of at least three routable IPv6 addresses (in addition to the link-local and, in the case of
Thread, mesh-local addresses). On a Wi-Fi / Ethernet interface, ICMPv6 Router Advertisement (RA)
messages advertise prefixes for use on the link [RFC 4861]. On a Thread interface, the Thread Net
work Data contains prefixes for use on the link [Thread specification]. If a Node receives an on-link
prefix that allows autonomous configuration on a given interface and the Node has fewer than
three routable IPv6 addresses configured, the Node SHALL autonomously configure an IPv6
address out of that prefix.
Matter Nodes SHALL also configure routes to adjacent networks. On Wi-Fi / Ethernet networks,
Nodes SHALL process Route Information Options [RFC 4191] and configure routes to IPv6 prefixes
assigned to stub networks via stub routers. Wi-Fi / Ethernet interfaces SHALL support maintaining
at least 16 different routes configured using Route Information Options. On Thread networks,
Nodes SHALL route according to routing information provided in the Thread Network Data [Thread
specification]. Thread devices SHALL support as many routes as can be encoded in the Thread Net
work Data.
Matter Nodes SHALL support a number of IPv6 neighbor cache entries at least as large as the num
ber of supported CASE sessions plus the number of supported routes.
4.3. Discovery
This section describes Service Advertising and Discovery for Matter.
Service Advertising and Discovery is used within Matter in the following contexts:
• Operational Discovery
• Commissioner Discovery
Service Advertising and Discovery for Matter uses IETF Standard DNS-Based Service Discovery
(DNS‑SD) [RFC 6763]. Matter requires no modifications to IETF Standard DNS‑SD.
Using DNS‑SD means that both the unicast IPv6 address and port of the offered service are discov
ered, freeing Matter from requiring a single preallocated fixed port. This also makes it possible to
run multiple instances of Matter software on a single device, because each instance has its own
dynamically allocated port, instead of conflicting over attempting to use the same preallocated
fixed port.
On Wi‑Fi and Ethernet networks today, DNS‑SD [RFC 6763] uses Multicast DNS [RFC 6762] for zero-
configuration operation.
Since Matter protocols must support IPv6 at a minimum, Matter software discovering other Matter
instances SHALL process DNS AAAA (IPv6 address) records, but also MAY process DNS A (IPv4
address) records.
Because of this, where feasible in the underlying service discovery API, Matter software advertising
the availability of a service SHOULD indicate that announcements and answers for this service
need include only IPv6 address records, not IPv4 address records. On a general-purpose dual-stack
host that supports both IPv4 and IPv6, this can be achieved by having Matter-related SRV records
reference a Matter-specific target hostname that has only IPv6 address records attached. This
allows a general-purpose dual-stack host to offer discoverable IPv4 addresses for legacy client soft
ware that still requires IPv4, while offering optimized IPv6-only address discovery for Matter pur
poses.
Similarly, since Matter does not use IPv4, Matter software discovering other Matter instances
SHOULD NOT expect any IPv4 addresses included in responses.
These two items address the content of service discovery messages. When using Multicast DNS simi
lar efficiency questions arise related to the delivery of those service discovery messages, sent over
IPv4, IPv6, or both.
Where supported in the underlying service discovery API, Matter software using Multicast DNS to
advertise the availability of a service SHOULD indicate that announcements and answers for this
service need only be performed over IPv6.
Similarly, where supported in the underlying service discovery API, Matter application software
using Multicast DNS to issue service discovery queries SHOULD indicate that these queries need
only be performed over IPv6.
These optimizations reduce both the size and the number of multicast packets, which is particularly
beneficial on Wi‑Fi networks. A Matter device that only supports IPv6 gets these optimizations auto
matically, simply by virtue of not supporting IPv4 at all.
For Thread mesh networks, where excessive use of multicast would be detrimental [RFC 7558],
DNS‑SD uses Unicast DNS instead, leveraging capabilities of the Thread Service Registry on the
Thread Border Router [draft-lemon-stub-networks].
Conceptually, the DNS‑SD [RFC 6763] information being communicated is identical to when Multi
cast DNS [RFC 6762] is being used, except that the information is communicated in unicast packets
to and from a designated Service Registry, rather than being communicated in multicast packets to
and from every other node in the same broadcast domain.
Using Service Registration Protocol [SRP] and an Advertising Proxy [AdProx] running on the Thread
Border Router, Matter Nodes on a Thread mesh can be discovered by other Matter Nodes on an
adjacent Ethernet or Wi‑Fi link, without the cost of using multicast on the Thread mesh. All Thread-
connected Matter Nodes SHALL implement Service Registration Protocol.
Thread Border Routers advertise available SRP servers in the Thread Network Data [Thread specifi
cation]. Thread devices SHALL register their services using an available SRP server [Thread specifi
cation].
When Matter Nodes issue short-lived requests to other Matter Nodes, the response is sent back to
the source IPv6 address and port of the request. When Matter Nodes issue long-lived requests to
other Matter Nodes, by the time the response is generated the requester may have changed IPv6
address or port, so the responder may have to discover the current IPv6 address and port of the ini
tiator in order to send the response.
A Thread Border Router SHALL implement DNS‑SD Discovery Proxy [RFC 8766] to enable clients on
the Thread mesh (e.g., other Nodes) to discover services (e.g., Matter Nodes) advertised using Multi
cast DNS on an adjacent Ethernet or Wi‑Fi link, also without the cost of using multicast on the
Thread mesh [draft-lemon-stub-networks]. For short-lived instantaneous queries, these queries can
be performed using unicast DNS over UDP to the DNS‑SD Discovery Proxy. For long-lived queries
with ongoing change notification, DNS Push Notifications [RFC 8765] with DNS Stateful Operations
[RFC 8490] allows clients on the Thread mesh to be notified of changes to the set of discovered ser
vices without expensive polling.
In principle, the Thread mesh Service Registry can be run on any capable Node(s) within (or even
outside) the Thread mesh, though in practice the Thread Border Router is an attractive candidate to
offer the Service Registry. Thread Border Router devices are typically AC-powered, and typically
have more capable CPUs with greater flash storage and RAM than more constrained battery-pow
ered Thread Nodes. Matter devices on Thread are dependent on Thread providing reliable service
for those Thread devices on the Thread mesh. This is similar to how Matter devices on Wi‑Fi are
dependent on the Wi‑Fi access point (AP) providing reliable service for those Wi‑Fi devices using
that Wi‑Fi access point.
The Matter protocol family supports UDP and TCP for Matter commissioning of Commissionees
already on the customer’s IP network (such as Ethernet-connected Nodes, or Wi‑Fi Nodes already
associated to the Wi‑Fi network via other means), and for the commissioning of Commissionees in
conjunction with Wi‑Fi Soft-AP (for Wi‑Fi Nodes not already on the customer’s IP network, when
the Node does not support Matter commissioning using BLE).
For these Commissionees, Matter Commissionable Node Discovery is performed using IETF Stan
dard DNS-Based Service Discovery (DNS‑SD) [RFC 6763] as described below.
For Matter Commissionable Node Discovery in the already-on-network and Soft-AP cases, the
DNS‑SD instance name SHALL be a dynamic, pseudo-randomly selected, 64-bit temporary unique
The Matter Commissionable Node Discovery DNS‑SD instance name SHALL be unique within the
namespace of the local network (the .local link-local namespace of the Ethernet and Wi‑Fi links
[RFC 6762], or the unicast domain selected by the Thread Border Router for devices on the Thread
mesh).
In the rare event of a collision in the selection of the 64-bit temporary unique identifier, the existing
DNS‑SD name conflict detection mechanism will detect this collision, and a new pseudo-randomly
selected 64-bit temporary unique identifier SHALL be generated by the Matter Commissionee that
is preparing for commissioning. Name conflict detection is described in Section 9 ("Conflict Resolu
tion") of the Multicast DNS specification [RFC 6762] and Section 2.4.3.1 ("Validation of Adds") of the
Service Registration Protocol specification [SRP].
The DNS‑SD service type [RFC 6335] for Matter Commissionable Node Discovery is _matterc._udp.
For link-local Multicast DNS the service domain SHALL be local. For Unicast DNS such as used on
Thread the service domain SHALL be as configured automatically by the Thread Border Router.
For DNS‑SD a target host name is required, in addition to the instance name. The target host name
SHALL be constructed using one of the available link-layer addresses, such as a 48-bit device MAC
address (for Ethernet and Wi‑Fi) or a 64-bit MAC Extended Address (for Thread) expressed as a
fixed-length twelve-character (or sixteen-character) hexadecimal string, encoded as ASCII (UTF-8)
text using capital letters, e.g., B75AFB458ECD.<domain>. In the event that a device performs MAC
address randomization for privacy, then the target host name SHALL use the privacy-preserving
randomized version and the hostname SHALL be updated in the record every time the underlying
link-layer address rotates. Note that it is legal to reuse the same hostname on more than one inter
face, even if the underlying link-layer address does not match the hostname on that interface, since
the goal of using a link-layer address is to ensure local uniqueness of the generated hostname. If
future link layers are supported by Matter that do not use 48-bit MAC addresses or 64-bit MAC
Extended Address identifiers, then a similar rule will be defined for those technologies.
A Matter Commissionee that advertises Commissionable Node Discovery service records is not nec
essarily in a state that will allow Commissioning (this state is referred to below as "in Commission
ing Mode"). While Section 5.4.2.3, “Announcement Duration” is limited for some forms of device
advertisement, a Matter device MAY advertise Matter Commissionable Node Discovery service
records for longer periods, possibly permanently. Advertising Commissionable Node Discovery
when not in Commissioning Mode is referred to here as Extended Discovery. Extended Discovery is
allowed only for DNS-SD advertisements and not for the other forms of Device Discovery such as
BLE Commissioning Discovery and Wi-Fi Temporary Access Point Commissioning Discovery.
To protect customer privacy on public networks, a Matter Commissionee SHALL provide a way for
the customer to set a timeout on Extended Discovery, or otherwise disable Extended Discovery. The
default behavior for Commissionable Node Discovery SHOULD default to limiting announcement as
defined in Section 5.4.2.3, “Announcement Duration” unless the Manufacturer wishes to enable
longer periods for specific use cases.
The following subtypes for Matter Commissionable Node Discovery are defined:
1. _L<dddd>, where <dddd> provides the full 12-bit discriminator, encoded as a variable-length deci
mal number in ASCII text, omitting any leading zeroes.
2. _S<dd>, where <dd> provides the upper 4 bits of the discriminator, encoded as a variable-length
decimal number in ASCII text, omitting any leading zeroes.
3. _V<ddddd>, where <ddddd> provides the 16-bit Vendor ID, encoded as a variable-length decimal
number in ASCII text, omitting any leading zeroes.
4. _T<ddd>, where <ddd> provides the device type identifier for the device, encoded as a variable-
length decimal number in ASCII (UTF-8) text, omitting any leading zeroes. In case the device
combines multiple device types, the manufacturer SHOULD choose the device type identifier of
the primary function of the device for which the device wishes to be discoverable.
5. _CM, which represents "currently in Commissioning Mode" (due to any method, for example, a
factory new device that has just been put into commissioning mode by the user, or an already-
commissioned device which has just received the Open Commissioning Window command).
The long discriminator subtype (e.g., _L840) enables filtering of results to find only Commissionees
that match the full discriminator code, as provided in the onboarding payload.
The short discriminator subtype (e.g., _S3) enables filtering of results to find only Commissionees
that match the upper 4 bits of the discriminator code, as provided in the manual pairing code.
The optional Vendor ID subtype (e.g., _V123) enables a vendor-specific app to achieve filtering of
results to find only Nodes that match that Vendor ID.
The Commissioning Mode subtype (e.g., _CM) enables filtering of results to find only Nodes that are
currently in Commissioning Mode. Note that the subtype is _CM regardless of whether the TXT
record for commissioning mode is set to 1 (CM=1) or 2 (CM=2). A Commissionee that is not in commis
sioning mode (CM=0) SHALL NOT publish this subtype.
The optional device type subtype (e.g., _T10) enables filtering of results to find only Nodes that match
the device type, generally used for the User-Initiated Beacon Detection, Not Yet Commissioned
Device and the User-Initiated Beacon Detection, Already Commissioned Device use cases.
In the event that a vendor-specific app wishes to show the user only some of that vendor’s Commis
sionees awaiting commissioning but not all of them, any desired filtering logic (based upon arbi
trary criteria, not only Product ID) MAY be implemented within that vendor’s proprietary commis
sioning app.
After discovery, IPv6 addresses are returned in the AAAA records and key/value pairs are returned
in the DNS‑SD TXT record.
Nodes SHALL publish AAAA records for all available IPv6 addresses upon which they are willing to
accept Matter commissioning messages.
TXT records available for Commissionable Node Discovery include the common TXT record
key/value pairs defined in Section 4.3.4, “Common TXT Key/Value Pairs”.
Commissioners SHALL silently ignore TXT record keys that they do not recognize. This is to facili
tate future evolution of this specification without breaking backwards compatibility with existing
Commissioners that do not implement the new functionality.
The following subsections describe key/value pairs that are defined specifically for Commissionable
Node discovery.
The key D SHALL provide the full 12-bit discriminator for the Commissionable Node and SHALL be
present in the DNS-SD TXT record.
The discriminator value SHALL be encoded as a variable-length decimal number in ASCII text, with
up to four digits, omitting any leading zeroes.
Any key D with a value mismatching the aforementioned format SHALL be silently ignored.
As an example, value D=840 would indicate that this Commissionable Node has decimal long dis
criminator 840. When needed, the upper 4 bits of the discriminator provided by the manual pairing
code can be algorithmically derived from the full discriminator.
The optional key VP, if present, MAY provide Vendor ID and Product ID information of the device.
The Vendor ID and Product ID SHALL both be expressed as variable-length decimal numbers,
encoded as ASCII text, omitting any leading zeroes, and of maximum length of 5 characters each to
fit their 16-bit numerical range.
If the Product ID is present, it SHALL be separated from the Vendor ID using a ‘+’ character.
If the VP key is present without a Product ID, the value SHALL contain only the Vendor ID alone,
with no ‘+’ character.
If the VP key is present, the value SHALL contain at least the Vendor ID.
The key CM (Commissioning Mode) SHALL indicate whether or not the publisher of the record is cur
rently in Commissioning Mode and available for immediate commissioning. When in commission
ing mode, the value associated with the CM key indicates the source of the passcode.
2. The key/value pair CM=0 SHALL indicate that the publisher is not currently in Commissioning
Mode.
3. The key/value pair CM=1 SHALL indicate that the publisher is currently in Commissioning Mode
and requires use of a passcode for commissioning provided by the Commissionee (e.g., printed
on a label or displayed on screen), such as when the device is in a factory-new state or when the
Open Basic Commissioning Window command has been used to enter commissioning mode.
4. The key/value pair CM=2 SHALL indicate that the publisher is currently in Commissioning Mode
and requires use of a dynamically generated passcode for commissioning corresponding to the
verifier that was passed to the device using the Open Commissioning Window command.
Since Extended Discovery can be disabled by the customer, a key value of 0 may not ever be
returned by a publisher. When Extended Discovery is disabled and the publisher is not in commis
sioning mode, then the publisher will not respond to Commissionable Node Discovery.
The optional key DT MAY provide the publisher’s primary device type (see Section 11.22.5.3, “Device
TypeID”). In case the device combines multiple device types, the manufacturer SHOULD choose the
device type identifier of the primary function of the device for which the device wishes to be dis
coverable. If present, it SHALL be encoded as a variable-length decimal number in ASCII text, omit
ting any leading zeroes.
For example, the DT=10 key/value pair would indicate that the primary device type is 10 (0x000a),
which is the device type identifier for a Door Lock.
The optional key DN MAY provide a device advertisement name. If present, it SHALL be encoded as a
valid UTF-8 string with a maximum length of 32 bytes (matching the maximum length of the Node
Label string in the Basic Information Cluster).
When provided, the source of this value SHALL be editable by the user with use clearly designated
as being for on-network advertising and MAY be the value stored in the NodeLabel attribute of the
Basic Information Cluster) of the Node.
To protect customer privacy on public networks, if a Commissionee supports this key/value pair,
then the Commissionee SHALL provide a way for the customer to disable its inclusion.
A Commissionee SHOULD NOT include this field unless doing so for specific use cases which call for
it.
For example, the DN=Living Room key/value pair indicates that the advertisement name specified by
the user is 'Living Room'.
If present, the value associated with the RI key SHALL contain the octets of the Rotating Device
Identifier octet string encoded as the concatenation of each octet’s value as a 2-digit uppercase
hexadecimal number.
The resulting ASCII string SHALL NOT be longer than 100 characters, which implies a Rotating
Device Identifier of at most 50 octets.
If present, it SHALL be encoded as a variable-length decimal number in ASCII text, omitting any
leading zeroes.
The pairing hint represents a base-10 numeric value for a bitmap of methods supported by the
Commissionee in its current state for putting it in Commissioning Mode.
For example, the PH=5 key/value pair represents a hint value with bits 0 and 2 are set.
For example, a device may have a value with bit 0 (Power Cycle) set and bit 2 (Administrator app)
unset when in a factory reset state, and then have a value with bit 0 unset and bit 2 set after it has
been Commissioned.
If the Commissionee has enabled Extended Discovery, then it SHALL include the key/value pair for
PH in the DNS‑SD TXT record when not in Commissioning Mode (CM=0).
If the Commissioner does not recognize this value, for example, if the value indicates bit indices
defined in a newer version of this specification than the version which the Commissioner imple
ments, then the Commissioner MAY utilize the bits that it does understand and MAY utilize addi
tional data sets available for assisting the user. For example, when a Vendor ID and Product ID are
available to the Commissioner, the Section 11.22, “Distributed Compliance Ledger” may also pro
vide a URL for the Device User Guide which can contain additional information to help in Commis
sioning this Commissionee.
Some of the pairing hints MAY require additional information to be encoded for proper expression
of their meaning. This is accomplished with the PI TXT key, described in a following section. Depen
dency on usage of the PI key is expressed by the PI Dependency column in the table below.
The following fields in the bitmap are currently defined for values of the PH key:
Note 1: When the PH key indicates a light to blink (one or more of bits 9, 11, 16 or 18 is set), informa
tion on color of light MAY be made available via PI key. When using such color indication in PI key,
only basic primary and secondary colors that could unambiguously be decoded by a commissioner
and understood by an end-user, but without worry of localization, SHOULD be used, e.g. white, red,
green, blue, orange, yellow, purple.
Note 3: A Commissionee can indicate multiple ways of being put into Commissioning Mode by set
ting multiple bits in the bitmap at the same time. However, only one method can be specified which
has a dependency on the PI key (PI Dependency=True) at a time.
For example:
• A PH value of 33 (bits 0 and 5 are set) indicates that the user can cause the Commissionee to
enter Commissioning Mode by either power cycling it or by following special instructions pro
vided in the Device Manual.
• A PH value of 9 (bits 0 and 3 are set) indicates that the user can cause the Commissionee to enter
Commissioning Mode by either power cycling it or going to the settings menu and following
instructions there.
• A PH value of 1 (bit 0 is set) indicates that the user can cause the Commissionee to enter Commis
sioning Mode only by power cycling it.
• A PH value of 16 (bit 4 is set) indicates that the user can cause the Commissionee to enter Com
missioning Mode following a custom procedure described by the value of the PI key.
• A PH value of 256 (bits 8 is set) indicates that the user can cause the Commissionee to enter Com
missioning Mode by pressing the reset button for a duration of time in seconds specified via by
the value of the PI key.
When the PH key is provided, at least one bit in the above bitmap SHALL be set. That is, a PH value of
0 is undefined and illegal.
When the PH key is provided, the Commissioner SHOULD take its value into account when provid
ing guidance to the user regarding steps required to put the Commissionee into Commissioning
Mode.
If present, the value SHALL be encoded as a valid UTF-8 string with a maximum length of 128 bytes.
The meaning of this key is dependent upon the PH key value, see Table 6, “Pairing Hint Values”.
For example, given PH=256, bit 8 is set which indicates "Press Reset Button for N seconds". Therefore,
a value of PI=10 would indicate that N is 10 in that context.
When bit 4 of the value expressed by the PH key is set, indicating presence of a custom string, the
Commissionee SHALL be responsible for localization (translation to user’s preferred language) as
required using the Device’s currently configured locale. The Custom Instruction option is NOT rec
ommended for use by a Commissionee that does not have knowledge of the user’s language prefer
ence.
It is RECOMMENDED to keep the length of PI field small and adhere to the guidance given in section
6.2 of [RFC 6763].
This key/value pair SHALL only be returned in the DNS‑SD TXT record if the PH bitmap value has a
bit set which has PI Dependency = True, see Table 6, “Pairing Hint Values”. The PH key SHALL NOT
not have more than one bit set which has a dependency on the PI key (PI Dependency = True) to
avoid ambiguity in PI key usage.
4.3.1.13. Examples
The examples below simulate a Node in commissioning mode advertising its availability for com
missioning.
Examples are shown using both the dns-sd command-line test tool and the avahi command-line test
tool. The dns-sd command-line test tool is included in all versions of macOS. It is installed as a DOS
command with Bonjour for Windows, and is available on Linux by installing the mDNSResponder
package [https://github.com/balaji-reddy/mDNSResponder]. The Avahi package of command line tools is
available from the Avahi project [https://github.com/lathiat/avahi)] for most Linux distributions.
These examples are given for illustrative purposes only. Real Matter Commissionees and Commis
sioners would not use a command-line test tool for advertising and discovery. Real Matter Commis
sionees and Commissioners would use the appropriate DNS‑SD APIs in their respective chosen pro
gramming languages.
Consider a device on Wi-Fi using the 48-bit device MAC address of B75AFB458ECD as its host name and
a value of DD200C20D25AE5F7 as its commissionable service instance name. DNS-SD records for it can
be set up as follows:
or
avahi-publish-service --subtype=_S3._sub._matterc._udp
--subtype=_L840._sub._matterc._udp DD200C20D25AE5F7 --subtype=_CM._sub._matterc._udp
_matterc._udp 11111 D=840 CM=2
• Short discriminator is filterable through _S3 subtype and algorithmically through D=840 TXT key.
• Long discriminator is filterable through _L840 subtype and directly through D=840 TXT key.
◦ Had the Commissionee been discoverable for initial commissioning rather than subsequent
additional commissioning, a CM=1 TXT key would have been published instead.
Avahi only sends a single AAAA record. To force the link-local address to be used, use avahi-pub
lish-address. For example:
The DNS‑SD service registration commands shown above results in the creation of the following
Multicast DNS records:
Consider a device on Wi-Fi using the 48-bit device MAC address of B75AFB458ECD as its host name.
DNS-SD records for it can be set up as follows, when it is in Commissionable Node Discovery.
or
avahi-publish-service --subtype=_S3._sub._matterc._udp
--subtype=_L840._sub._matterc._udp --subtype=_V123._sub._matterc._udp
--subtype=_CM._sub._matterc._udp --subtype=_T81._sub._matterc._udp DD200C20D25AE5F7
_matterc._udp 11111 D=840 VP=123+456 CM=2 DT=81 DN="Kitchen Plug" PH=256 PI=5
• Pairing hint is 256 which indicates that the Commissionee’s reset button must be held down for
5 seconds to enter Commissioning Mode where the value 5 is obtained by reading the value of
the PI key.
• Pairing instruction is 5.
Avahi only sends a single AAAA record. To force the link-local address to be used, use avahi-pub
lish-address. For example:
The DNS‑SD service registration commands shown above results in the creation of the following
Multicast DNS records:
The port number 11111 is given here purely as an example. One of the benefits of using DNS‑SD is
that services are not constrained to use a single predetermined well-known port. The port, along
with the IPv6 address, is discovered by Commissioners at run time.
dns-sd -B _matterc._udp
or
avahi-browse _matterc._udp -r
dns-sd -B _matterc._udp,_S3
or
avahi-browse _S3._sub._matterc._udp -r
A Commissioner can discover Commissionees awaiting commissioning with long discriminator 840:
dns-sd -B _matterc._udp,_L840
or
avahi-browse _L840._sub._matterc._udp -r
dns-sd -B _matterc._udp,_V123
or
avahi-browse _V123._sub._matterc._udp -r
dns-sd -B _matterc._udp,_CM
or
avahi-browse _CM._sub._matterc._udp -r
dns-sd -B _matterc._udp,_T81
or
avahi-browse _T81._sub._matterc._udp -r
A Commissioner can discover Nodes that are currently in Commissioning Mode as a result of a com
missioning window opened by a current Administrator as a result of invoking either the Open Com
missioning Window command or the Open Basic Commissioning Window command, using the
presence of the _CM subtype as a browsing filter:
dns-sd -B _matterc._udp,_CM
or
avahi-browse _CM._sub._matterc._udp -r
Discovering and using an offered service on the network typically involves several steps:
2. Lookup of a selected instance’s port number, host name, and other additional information, com
municated in DNS‑SD using SRV and TXT records ("resolving")
3. Lookup of the IPv6 address(es) associated with the desired target host.
4. Use of IPv6 Neighbor Discovery and/or IPv6 routing to translate from destination IPv6 address
to the next-hop link-layer address for that communication.
Although the first three steps are exposed in some APIs as separate steps, at a protocol level they
usually require only a single network round-trip. When a PTR query is issued to discover service
instances, the usual DNS Additional Record mechanism, where packet space permits, automatically
places the related SRV, TXT, and address records into the Additional Record section of the reply.
These additional records are stored by the client, to enable subsequent steps in the sequence to be
performed without additional redundant network operations to learn the same information a sec
ond time.
DNS‑SD over Multicast DNS works by receiving replies from other Nodes attached to the same local
link, Nodes that may have been previously completely unknown to the requester. Because of this,
Multicast DNS, like IPv6 Neighbor Discovery, does not have any easy way to distinguish genuine
replies from malicious or fraudulent replies. Consequently, application-layer end-to-end security is
essential. Should a malicious device on the same local link give deliberately malicious or fraudulent
replies, the misbehavior will be detected when the device is unable to establish a cryptographically
secure application-layer communication channel. This reduces the threat to a Denial-of-Service
attack, which can be remedied by physically removing the offending device.
For Matter Nodes that have already been commissioned onto a Matter Fabric, run-time dynamic
discovery of operational Matter Nodes is used, rather than assuming a fixed unchanging IPv6
address and port for the lifetime of the product. This is done to allow for greater flexibility, so that
the underlying IPv6 network can grow and evolve over time as needed without breaking Matter
functionality. This is the same reason that other networked consumer electronics products do not
assume a single fixed unchanging IP address for the lifetime of the product [RFC 5505].
For Matter operational discovery the DNS‑SD instance name is constructed from a 64-bit com
pressed Fabric identifier, and a 64-bit Node identifier, as assigned by the commissioner, each
expressed as a fixed-length sixteen-character hexadecimal string, encoded as ASCII (UTF-8) text
using capital letters, separated by a hyphen. For example, a Matter Node with Matter compressed
fabric identifier 2906-C908-D115-D362 and Matter Node identifier 8FC7-7724-01CD-0696 has Matter
operational discovery DNS‑SD instance name 2906C908D115D362-8FC7772401CD0696.
The Matter operational discovery DNS‑SD instance name needs to be unique within the namespace
of the local network (the .local link-local namespace of the Ethernet and Wi‑Fi links [RFC 6762], or
the unicast domain selected by the Thread Border Router for devices on the Thread mesh). This
uniqueness is assumed to be guaranteed by appropriate selection of a unique Matter fabric identi
fier and unique Node identifier within that Matter fabric.
In order to reduce the very large size of a full Fabric Reference which would need to be used as the
scoping construct in the instance name, a 64-bit compressed version of the full Fabric Reference
SHALL be used. The computation of the Compressed Fabric Identifier SHALL be as follows:
CompressedFabricIdentifier =
Crypto_KDF(
inputKey := TargetOperationalRootPublicKey,
salt:= TargetOperationalFabricID,
info := CompressedFabricInfo,
len := 64)
Where:
• TargetOperationalRootPublicKey is the raw uncompressed elliptical curve public key of the root
certificate for the advertised Node’s Operational Certificate chain, without any format marker
prefix byte (i.e. after removing the first byte of the ec-pub-key field in the Operational Certifi
cate’s root).
• TargetOperationalFabricID is the octet string for the Fabric ID as it appears in the advertised
Node’s Operational Certificate's subject field, under the 1.3.6.1.4.1.37244.1.5 RDN, that is, a 64-bit
unsigned integer scalar in big-endian byte order.
For example, if the root public key for a given Operational Certificate chain containing the identity
to be advertised were the following:
pub:
04:4a:9f:42:b1:ca:48:40:d3:72:92:bb:c7:f6:a7:e1:
1e:22:20:0c:97:6f:c9:00:db:c9:8a:7a:38:3a:64:1c:
b8:25:4a:2e:56:d4:e2:95:a8:47:94:3b:4e:38:97:c4:
a7:73:e9:30:27:7b:4d:9f:be:de:8a:05:26:86:bf:ac:
fa
Then the value for TargetOperationalRootPublicKey to use in the derivation of the compressed Fab
ric Identifier would be without the leading 04:
4a:9f:42:b1:ca:48:40:d3:72:92:bb:c7:f6:a7:e1:1e:
22:20:0c:97:6f:c9:00:db:c9:8a:7a:38:3a:64:1c:b8:
25:4a:2e:56:d4:e2:95:a8:47:94:3b:4e:38:97:c4:a7:
73:e9:30:27:7b:4d:9f:be:de:8a:05:26:86:bf:ac:fa
The DNS‑SD service type [RFC 6335] for Matter Operational Discovery is _matter._tcp. Note that the
string _tcp is boilerplate text inherited from the original DNS SRV specification [RFC 2782], and
doesn’t necessarily mean that the advertised application-layer protocol runs only over TCP. It is
merely mnemonic text which is there to help human readers, and in no way affects software adver
tising or using the application-layer protocol identified by that unique IANA-recorded service type
string.
1. Compressed Fabric Identifier _I<hhhh>, where <hhhh> is the Compressed Fabric Identifier
encoded as exactly 16 uppercase hexadecimal characters, for example _I87E1B004E235A130 for
the Compressed Fabric Identifier example of the previous section. This subtype enables filtering
of devices per Fabric if service enumeration (browsing) is attempted, to reduce the set of results
to Nodes of interest with operational membership in a given Fabric..
For link-local Multicast DNS the service domain SHALL be local. For Unicast DNS such as used on
Thread the service domain SHALL be as configured automatically by the Thread Border Router.
Page 100 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
For DNS‑SD a target host name is required, in addition to the instance name. The target host name
SHALL be constructed using one of the available link-layer addresses, such as a 48-bit device MAC
address (for Ethernet and Wi‑Fi) or a 64-bit MAC Extended Address (for Thread) expressed as a
fixed-length twelve-character (or sixteen-character) hexadecimal string, encoded as ASCII (UTF-8)
text using capital letters, e.g., B75AFB458ECD.<domain>. In the event that a device performs MAC
address randomization for privacy, then the target host name SHALL use the privacy-preserving
randomized version and the hostname SHALL be updated in the record every time the underlying
link-layer address rotates. Note that it is legal to reuse the same hostname on more than one inter
face, even if the underlying link-layer address does not match the hostname on that interface, since
the goal of using a link-layer address is to ensure local uniqueness of the generated hostname. If
future link layers are supported by Matter that do not use 48-bit MAC addresses or 64-bit MAC
Extended Address identifiers, then a similar rule will be defined for those technologies.
After discovery, IPv6 addresses are returned in the AAAA records and key/value pairs are returned
in the DNS‑SD TXT record. The TXT record MAY be omitted if no keys are defined.
Nodes SHALL publish AAAA records for all available IPv6 addresses upon which they are willing to
accept operational messages.
Only the common TXT record key/value pairs defined in Section 4.3.4, “Common TXT Key/Value
Pairs” are defined for use in Operational Discovery.
Nodes SHALL silently ignore TXT record keys that they do not recognize.
To improve overall performance of operational discovery, especially in large installations, the fol
lowing recommendations SHOULD be taken in account:
1. Nodes SHOULD cache the last-known IPv6 address and port for each peer Node with which they
interact from their SRV record resolved using DNS-SD, to save the cost of a run-time network
lookup operation when not needed. When the IPv6 address and port for a peer Node is not
known, or an attempt to communicate with a peer Node at its last-known IPv6 address and port
does not appear to be succeeding within the expected network round-trip time (i.e., the retrans
mission timeout value for the first message packet) a Node SHOULD then perform a run-time
discovery in parallel, to determine whether the desired Node has acquired a new IPv6 address
and/or port [RFC 8305].
2. Nodes SHOULD respond to nonspecific service enumeration queries for the generic Matter
Operational Discovery service type (_matter._tcp), but these queries SHOULD NOT be used in
routine operation, and instead it is RECOMMENDED that they only be used for diagnostics pur
poses or to determine new membership within a fabric. When used, it is RECOMMENDED that
service enumeration employ the _I<HHHH> Fabric-specific subtype to only enumerate the desired
Nodes on the Fabric of interest in the local network. Moreover, Known Answer Suppression
[RFC 6762] SHOULD be employed in such cases to further minimize the number of unnecessary
responses to such a query.
3. When resolving the operational service record of another Node, a Node SHOULD use an SRV
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 101
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
query for the desired operational service instance rather than doing general enumeration of all
nodes (e.g. PTR query) followed by filtering for the desired service instance. This recommenda
tion reduces the amount of multicast traffic generated on-link when Multicast DNS is used, and
reduces latency to successful service resolution.
4. Since proxied DNS-SD service discovery MAY be in use within a given network, and service
record caching is expected of DNS-SD clients, Nodes SHOULD NOT use DNS-SD as an operational
liveness determination method. This is because there may be stale records not yet expired after
a Node becomes unreachable which may still be available.
The example below simulates a commissioned Matter Node advertising its availability for control
via the Matter protocol.
Examples are shown using both the dns-sd command-line test tool and the avahi command-line test
tool. The dns-sd command-line test tool is included in all versions of macOS. It is installed as a DOS
command with Bonjour for Windows, and is available on Linux by installing the mDNSResponder
package [https://github.com/balaji-reddy/mDNSResponder]. The avahi command line-test tool is available
from the Avahi project [https://github.com/lathiat/avahi)] for most Linux distributions.
This example is given for illustrative purposes only. Real Matter Nodes and controllers would not
use a command-line test tool for advertising and discovery. Real Matter Nodes and controllers
would use the appropriate DNS‑SD APIs in their respective chosen programming languages.
Consider a device on Wi-Fi using the 48-bit device MAC address of B75AFB458ECD as its host name.
DNS-SD records for can be set up as follows:
or
The port number 22222 is given here purely as an example. One of the benefits of using DNS‑SD is
that services are not constrained to use a single predetermined well-known port. This means that
multiple instances of the Matter Node control service can run on the same device at the same time,
listening on different ports [RFC 6760]. The port, along with the IPv6 address, is discovered by the
Matter controller at run time.
Avahi only sends a single AAAA record. To force the link-local address to be used, use avahi-pub
lish-address. For example:
A Matter controller can discover the current IPv6 address and port for a known commissioned Mat
ter Node:
Page 102 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
or
avahi-browse _matter._tcp -r
hostname = [B75AFB458ECD.local]
address = [fe80::f515:576f:9783:3f30]
port = [22222]
A Commissionee MAY initiate the commissioning process by discovering Commissioners on the net
work (see Initiating Commissioning from an Existing Device). This MAY be done using Commis
sioner Discovery described in this section.
With Commissioner Discovery, a Commissionee, upon user interaction, MAY discover Commission
ers on the network and obtain a list of information for each which may include Vendor ID, Product
ID and friendly name. A Commissionee with a user interface, such as a Television, Thermostat or
Video Player device, MAY display the list of discovered commissioners to the user for selection.
Once selected, the Commissionee MAY use the User Directed Commissioning protocol with the Com
missioner to indicate that the user has selected it for commissioning of the Commissionee. The
Commissioner Discovery service records thus enable a form of "door bell" protocol to allow a Com
missionee to request Commissioning.
The Commissioner Discovery feature is optional for both the Commissionee and the Commissioner.
Any mandatory requirements described in this section SHALL apply only if the Node or the Com
missioner supports this feature. To protect customer privacy on public networks, a Matter Commis
sioner SHALL provide a way for the customer to set a timeout on Commissioner Discovery, or other
wise disable Commissioner Discovery.
For Commissioner Discovery, the DNS-SD instance name is generated the same way it is done for
Commissionable Node Discovery and has the same requirements (uniqueness on local network,
and collision detection and recovery) as those in Commissionable Node Discovery, but the require
ments for when a new instance name is selected from Commissionable Node Discovery do not
apply to Commissioner Discovery. The instance name for Commissioner Discovery MAY be selected
whenever the Commissioner deems necessary.
The port advertised by a _matterd._udp service record SHALL be different than any port associated
with other advertised _matterc._udp, _matter._tcp or _matterd._udp services, in order to ensure that
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 103
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
the session-less messaging employed by the User Directed Commissioning protocol does not cause
invalid message handling from fully operational Matter nodes at the same address. In other words,
each _matterd._udp service instance needs to be independent from other services to ensure unam
biguous processing of the incoming User Directed Commissioning messages.
• \_T<ddd> where <ddd> is the device type identifier (see Data Model Device Types), encoded as a
variable-length decimal number in ASCII (UTF-8) text, without leading zeroes. This optional
Device Type subtype enables filtering of results to find only Commissioners that match a device
type, for example, to discover Commissioners of type Video Player (35 is decimal representation
for Video Player device type identifier 0x0023). For such a Video Player filter, subtype _T35
would be used.
For link-local Multicast DNS the service domain SHALL be local. For Unicast DNS such as used on
Thread the service domain SHALL be as configured automatically by the Thread Border Router.
The target host name is generated the same way it is done for Commissionable Node Discovery (see
Host Name Construction).
After discovery, IPv6 addresses are returned in the AAAA records and key/value pairs are returned
in the DNS‑SD TXT record. The TXT record MAY be omitted if no keys are defined.
Nodes SHALL publish AAAA records for all their available IPv6 addresses.
In addition to the common TXT record key/value pairs defined in Section 4.3.4, “Common TXT
Key/Value Pairs”, the following key/value pairs are defined specifically for Commissioner discovery:
• The optional key VP gives vendor and product information. This key is optional for a vendor to
provide, and optional for a commissioner to use. This value takes the same format described for
the VP key in Commissionable Node Discovery (see Section 4.3.1.6, “TXT key for Vendor ID and
Product ID (VP)”). This key/value pair MAY be returned in the DNS‑SD TXT record.
• The optional key DT gives the device type identifier for the Commissioner (see Data Model
Device Types). This value takes the same format described for the DT key in Commissionable
Node Discovery (see Commissioning Device Type). This key/value pair MAY be returned in the
DNS‑SD TXT record.
• The optional key DN gives the device name. This value takes the same format described for the DN
key in Commissionable Node Discovery (see Commissioning Device Name). This key/value pair
MAY be returned in the DNS‑SD TXT record. To protect customer privacy on public networks, a
Matter Commissioner SHALL provide a way for the customer to disable inclusion of this key.
Commissionees SHALL silently ignore TXT record keys that they do not recognize. This is to facili
tate future evolution of the Matter Commissioner Discovery protocol specification without breaking
backwards compatibility with existing Commissionees that do not implement the new functionality.
4.3.3.1. Examples
The examples below simulate a Matter Commissioner advertising that it is present on the network.
Examples are shown using both the dns-sd command-line test tool and the avahi command-line test
Page 104 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
tool. The dns-sd command-line test tool is included in all versions of macOS. It is installed as a DOS
command with Bonjour for Windows, and is available on Linux by installing the mDNSResponder
package [https://github.com/balaji-reddy/mDNSResponder]. The avahi command line-test tool is available
from the Avahi project [https://github.com/lathiat/avahi)] for most Linux distributions.
Consider a device on Wi-Fi using the 48-bit device MAC address of B75AFB458ECD as its host name.
DNS-SD records for can be set up as follows:
or
Avahi only sends a single AAAA record. To force the link-local address to be used, use avahi-pub
lish-address. For example:
The DNS‑SD service registration command shown above results in the creation of the following
Multicast DNS records:
dns-sd -B _matterd._udp
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 105
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
or
avahi-browse _matterd._udp -r
dns-sd -B _matterd._udp,_T35
or
avahi-browse _T35._sub._matterd._udp -r
dns-sd -B _matterd._udp,_V123
or
avahi-browse _V123._sub._matterd._udp -r
The TXT records provided during Commissionable, Operational and Commissioner discovery MAY
contain the following optional key/value pairs which are common to every discovery method:
• The optional key SII indicates the SLEEPY_IDLE_INTERVAL of the Node. This key MAY option
ally be provided by a Node to override sleepy defaults. If the key is not included or invalid, the
Node querying the service record SHALL use the default SED parameter value. The SII value is
an unsigned integer with units of milliseconds and SHALL be encoded as a variable-length deci
mal number in ASCII encoding, omitting any leading zeros. The SII value SHALL NOT exceed
3600000 (1 hour in milliseconds).
◦ Example: SII=5300 to override the initial retry interval value to 5.3 seconds.
• The optional key SAI indicates the SLEEPY_ACTIVE_INTERVAL of the Node. This key MAY option
ally be provided by a Node to override SED defaults. If the key is not included or invalid, the
Node querying the service record SHALL use the default MRP parameter value. The SAI value is
an unsigned integer with units of milliseconds and SHALL be encoded as a variable-length deci
mal number in ASCII encoding, omitting any leading zeros. The SAI value SHALL NOT exceed
3600000 (1 hour in milliseconds).
◦ Example: SAI=1250 to override the active retry interval value to 1.25 seconds.
• The optional key T indicates whether the Node supports TCP. This key MAY optionally be pro
vided by a Node that does not support TCP. If the key is not included or invalid, the Node query
Page 106 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ing the service record SHALL assume the default value of T=0 indicating TCP is not supported.
The T key, if included, SHALL have one of two valid values: '0' to indicate "TCP not supported",
or '1' to indicate "TCP supported".
Matter messages are used by Matter applications, as well as the Matter protocol stack itself, to con
vey application-specific data and/or commands. The Protocol portion of a Matter message contains
a Protocol ID and Protocol Opcode which identify both the semantic meaning of the message as well
as the structure of any associated application payload data. Matter messages also convey an
Exchange ID, which relates the message to a particular exchange (i.e. conversation) taking place
between two nodes. Finally, certain types of Matter messages can convey information that acknowl
edges the reception of an earlier message. This is used as part of the Message Reliability Protocol to
provide guaranteed delivery of messages over unreliable transports.
All multi-byte integer fields are transmitted in little-endian byte order unless otherwise noted in the
field description.
Length Field
Message Header
2 bytes Session ID
Message Payload
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 107
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Length Field
Message Footer
The Message Payload of a Matter message SHALL contain a Protocol Message with format as fol
lows:
Length Field
Protocol Header
2 bytes Exchange ID
2 bytes Protocol ID
Application Payload
An optional, unsigned integer value specifying the overall length of the message in bytes, not
including the size of the Message Length field itself. This field SHALL only be present when the
message is being transmitted over a stream-oriented channel such as TCP. When transmitted over a
message-oriented channel, the message length is conveyed by the underlying channel. For example,
when transmitted over UDP, the message length is equal to the payload length of the UDP packet.
Version - S DSIZ
All unused bits in the Message Flags field are reserved and SHALL be set to zero on
NOTE
transmission and SHALL be silently ignored on reception.
Page 108 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
An unsigned integer specifying the version of the Matter Message format used to encode the mes
sage. Currently only one version is defined:
Messages with version field set to reserved values SHALL be dropped without sending a message-
layer acknowledgement.
The Version field conveys information solely about the structure of the Matter mes
sage itself, not about the structure of the application payload or the interpretation
NOTE
of the message’s type. Thus, changes to how an application handles or interprets a
message do not result in the creation of a new message format version number.
A single bit field which SHALL be set if and only if the Source Node ID field is present.
This field SHALL indicate the size and meaning of the Destination Node ID field.
Messages with DSIZ field set to reserved values SHALL be dropped without sending a message-layer
acknowledgement.
An unsigned integer value identifying the session associated with this message. The session identi
fies the particular key used to encrypt a message out of the set of available keys (either session or
group), and the particular encryption/message integrity algorithm to use for the message. The Ses
sion ID field is always present. For details on derivation of this field, see respective sections on uni
cast and group session ID derivation.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 109
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
All unused bits in the Security Flags field are reserved and SHALL be set to zero on
NOTE
transmission and SHALL be silently ignored on reception.
The Privacy (P) flag is a single bit field which, when set, SHALL identify that the message is encoded
with privacy enhancements as specified in Section 4.8.3, “Privacy Processing of Outgoing Mes
sages”.
The Control message (C) flag is a single bit field which, when set, SHALL identify that the message is
a control message, such as for the Message Counter Synchronization Protocol, and uses the control
message counter for the nonce field as specified in Section 4.7.1.1, “Nonce”.
The Message Extensions (MX) flag is a single bit field which, when set, SHALL indicate that the Mes
sage Extensions portion of the message is present and has non-zero length. Version 1.0 Nodes
SHALL set this flag to zero.
An unsigned integer specifying the type of session associated with the message. The following val
ues are defined:
• 0 — Unicast Session
• 1 — Group Session
Messages with Session Type set to reserved values are not valid and SHALL be dropped without
sending a message-layer acknowledgement.
The Unsecured Session SHALL be indicated when both Session Type and Session ID are set to 0. The
Unsecured Session SHALL have no encryption, privacy, or message integrity checking.
A Secure Unicast Session SHALL be indicated when Session Type is Unicast Session and Session ID is
NOT 0.
An unsigned integer value uniquely identifying the message from the perspective of the sending
node. The message counter is generated based on the Session Type and increases monotonically for
each unique message generated. When messages are retransmitted, using the reliable messaging
capabilities, the counter remains the same, as logical retransmission is of a given message as identi
fied by its message counter. Similarly, acknowledgements refer to values of the message counter
being acknowledged.
Page 110 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Message Counter field is scoped to a given Encryption Key. Also, the Message
Counter values are independent for control messages and data messages, as indi
NOTE cated by the C Flag. So it is possible to have the same Message Counter for two mes
sages encrypted with different keys, as well as two messages encrypted with the
same key but different values of the C Flag.
An optional sequence of 8 bytes containing the unique identifier of the source node. The Source
Node ID field SHALL only be present in a message when the S Flag in the Message Flags field is set
to 1.
The optional Destination Node ID field contains the unique Node Identifier of the destination Node
or group to which the message is being sent. The size and encoding of the Destination Node ID field
depends on the value of the DSIZ field.
The Message Extensions field is a variable length block of data for providing backwards compatible
extensibility. The format of the Message Extensions block is shown in Table 11, “Message Extensions
block format definition”. The Message Extensions block SHALL be present only if the MX Flag is set
to 1 in the Security Flags field.
Version 1.0 Nodes SHALL ignore the contents of the Message Extensions payload.
The Message Extensions block SHALL be authenticated and privacy obfuscated based on the Secu
rity Flags settings.
Length Field
A sequence of bytes containing the message integrity check value (a.k.a. tag or MIC) for the mes
sage. The length and byte order of the field depend on the integrity check algorithm in use as speci
fied in Section 3.6, “Data Confidentiality and Integrity”.
The Message Integrity Check field SHALL be present for all messages except those of Unsecured Ses
sion Type.
The MIC is calculated as described in Section 4.7.2, “Security Processing of Outgoing Messages”.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 111
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
- - - V SX R A I
All unused bits in the Exchange Flags field are reserved and SHALL be set to zero on
NOTE
transmission and SHALL be silently ignored on reception.
The Initiator (I) flag is a single bit field which, when set, SHALL indicate that the message was sent
by the initiator of the exchange.
The Acknowledgement (A) flag is a single bit field which, when set, SHALL indicate that the mes
sage serves as an acknowledgement of a previous message received by the current message sender.
The Reliability (R) flag is a single bit field which, when set, SHALL indicate that the message sender
wishes to receive an acknowledgement for the message.
The Secured Extensions (SX) flag is a single bit field which, when set, SHALL indicate that the
Secured Extensions portion of the message is present and has non-zero length. Version 1.0 Nodes
SHALL set this flag to zero.
The Vendor (V) protocol flag is a single bit field which, when set, SHALL indicate whether the Proto
col Vendor ID is present.
An unsigned integer value identifying the type of the message. The Protocol Opcode is interpreted
relative to the Matter protocol specified in the Protocol ID field.
Opcodes are defined by the corresponding Protocol specification, for example Secure Channel Pro
tocol.
An unsigned integer value identifying the exchange to which the message belongs. An Exchange ID
Page 112 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
is allocated by the initiator of the exchange, and is unique within the initiator exchange number
space as specified in Section 4.9.2, “Exchange ID”.
An unsigned integer value identifying the protocol in which the Protocol Opcode of the message is
defined.
When the Protocol Vendor ID is the Matter Standard Vendor ID, the Protocol ID SHALL have one of
the values specified by Table 13, “Protocol IDs for the Matter Standard Vendor ID”.
An optional, unsigned integer value that contains the Vendor ID namespacing for the Protocol ID
field. This field SHALL only be present when the V Flag is set; otherwise the default is 0, corre
sponding to the Matter Standard Vendor ID.
An optional, unsigned integer value containing the message counter of a previous message that is
being acknowledged by the current message. The Acknowledged Message Counter field is SHALL
only be present when the A Flag in the Exchange Flags field is 1.
The Secured Extensions field is a variable length block of data for providing backwards compatible
extensibility. The format of the Secured Extensions block is shown in Table 14, “Secured Extensions
block format definition”. The Secured Extensions block SHALL be present only if the SX Flag is set
to 1 in the Exchange Flags field.
Version 1.0 Nodes SHALL ignore the contents of the Secured Extensions payload.
The Secured Extensions block SHALL be encrypted and authenticated based on the Security Flags
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 113
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
settings.
Length Field
A sequence of zero or more bytes containing the application data conveyed by the message.
Support for IPv6 fragmentation is not mandatory in Matter, and the expected supported MTU is
1280 bytes, the minimum required by IPv6. Therefore, all messages, including transport headers,
SHALL fit within that minimal IPv6 MTU. This message size limit SHALL apply to the UDP transport.
A message received over UDP that exceeds this message size limit SHALL NOT be processed. Mes
sages sent over TCP or BTP over BLE transports MAY exceed the message size limit if both nodes are
capable of supporting larger message sizes.
• Duplicate Message Detection – Receiving systems use message counters to detect messages
that have been retransmitted by the sender, e.g. in response to packet loss in the network.
• Message Acknowledgement – In the Message Reliability Protocol (MRP), message counters pro
vide a way for receivers to identify messages for the purpose of acknowledging their receipt.
• Encryption Nonces – When encrypted messages are sent, message counters provide an encryp
tion nonce that ensures each message is encrypted in a unique manner.
• Replay Prevention – Related to encryption, message counters also provide a means for detect
ing and preventing the replay of encrypted messages.
All Nodes implement three global 32-bit counters to vend message counters for certain types of
messages:
Additionally, Nodes implement a separate 32-bit counter for each session as part of secure session
state:
Page 114 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Technical details for how each counter type works are described in the following sections. Table 15,
“Message Counter Type Overview” is provided to summarize higher-level differences between Mes
sage Counter Types:
All message counters SHALL be initialized with a random value using the Crypto_DRBG(len = 28) +
1 primitive. Message counters are initialized to a random number to increase the difficulty of traffic
analysis attacks by making it harder to determine how long a particular session has been open. The
28
random initializer ranges from 1 to 2 in order to maximize initial entropy while still reserving the
32 28
vast majority of the range to actual counter values (roughly 2 - 2 ).
All Nodes SHALL implement an unencrypted message counter, which is used to generate counters
for unencrypted messages.
Typically, Nodes store the Global Unencrypted Message Counter in RAM. This makes the counter sub
ject to loss whenever the system reboots or otherwise loses its state. This is permissible because
retaining the Global Unencrypted Message Counter is not essential to the confidentiality or integrity
of the message. In the event that the Global Unencrypted Message Counter for a Node is lost, Nodes
SHALL randomize the initial value of this counter on startup per Section 4.5.1.1, “Message Counter
Initialization”.
The Global Group Encrypted Message Counters are used to generate the counter for messages
encrypted using group keys. There are two such counters:
• The Global Group Encrypted Data Message Counter is used to encode regular data messages
encrypted with a group key.
• The Global Group Encrypted Control Message Counter is used to encode control messages
encrypted with a group key.
Some Nodes might not be required to implement communication using group keys, in which case
they MAY omit the Global Group Encrypted Message Counters. In contrast to the Global Unencrypted
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 115
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Message Counter, Nodes are required to persist the Global Group Encrypted Message Counters in
durable storage. In particular, Nodes are required to ensure that the value of the Global Group
Encrypted Message Counters never rolls back and that it is monotonic within the bounds of its range
for its use for a given group key. A Node SHALL randomize the initial value of this counter on fac
tory reset per Section 4.5.1.1, “Message Counter Initialization”.
While Global Group Encrypted Message Counters are shared by many group keys to generate
nonces, rollover is not an issue as long as the Epoch Key that generates each operational group key
rotates frequently enough.
If a nonce is duplicated for a given key, the security consequences are isolated only
NOTE to the specific key with which the duplicate nonce occurred — a key that has not
been updated prior to rollover and has been presumably abandoned or aged out.
A Secure Session Message Counter is a per-session, 32-bit, ephemeral counter that is used by the
encoding of any encrypted messages using an associated session key. Each peer in a Secure Unicast
Session SHALL maintain its own message counters, with independent counters being used for each
unique session used. Session Message Counters SHALL exist for as long as the associated security
session is in effect. A Node SHALL randomize the initial value of this counter on session establish
ment per Section 4.5.1.1, “Message Counter Initialization”.
The Secure Session Message Counter history window SHALL be maintained for the lifetime of the
session, and SHALL be deleted at the same time as the session keys, when the session ends.
Sessions SHALL be discarded and re-established before any Secure Session Message Counter over
flow or repetition occurs.
In the context of encrypted messages, message counters serve as nonces for the encryption algo
rithm, ensuring that every message is encrypted in a unique manner. The uniqueness of an
encrypted message’s counter is vital to the confidentiality of the message, as the encryption algo
rithm makes it trivial for an eavesdropper to decrypt messages if the attacker can find two different
messages with the same message counter that were encrypted using the same key. Specifically, an
attacker can XOR the two different messages that share the same key and nonce to obtain a "block
key" which can be used to decrypt any message that uses that key and nonce.
Nodes SHOULD rotate their encryption keys on a regular basis, to ensure that old encryption keys
are retired before a Global Group Encrypted Message Counter has a chance to wrap to a value previ
ously used with the encryption key. In practice, the frequency of message transmission is such that
encryption keys generally rotate at a rate that is much faster than the rate at which a Global Group
Encrypted Message Counter wraps. In the event that a Global Group Encrypted Message Counter
wraps before the associated keys are rotated, all keys associated with that Global Group Encrypted
Message Counter are considered exhausted and are no longer valid to use. In such cases, a new uni
cast session SHALL be established to the Matter Node to rotate such retired keys before secure com
munication can resume. Given the importance of confidentiality and message integrity, every effort
SHOULD be made to ensure that keys are rotated on a regular basis.
Page 116 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Beyond their role as encryption nonces, message counters also serve as a means to detect repeated
reception of the same message. Message duplication may occur for a number of reasons: out-of-
order arrival, network latency, malicious attack, or network error. For example, a duplicate can be
caused when a sender retransmits a message after failing to receive an acknowledgement, or
because a malicious third party attempted to replay an old message to gain some advantage. To
detect duplicate messages, Nodes maintain a history window of the message counters they have
received from a particular sender (see Message Reception State). Whenever a message is received,
its message counter is checked against the history window of message counters from that sender to
determine whether it is a duplicate. The Message Layer SHALL discard duplicate messages before
they reach the application layer.
The state maintained by a Node about the messages it has received from a particular peer is
referred to as message reception state. Nodes use this state information to determine whether a
newly arrived message is a duplicate of a previous message. Message reception state is maintained
on a per-peer or per-session basis, depending on the type of message encryption being used.
At a conceptual level, message reception state consists of a set of integers corresponding to the
counters of all the messages that have been received from a particular peer. To limit the amount of
memory required to store this state, Nodes employ a lossy compression scheme that takes advan
tage of the fact that message counters are generated sequentially by the sender. The scheme allows
for a limited amount of out-of-order message arrivals due to network effects without inducing false
detection of duplicates.
In the compressed form, message reception state is structured as a pair of values: a integer repre
senting the largest valid, or maximum message counter received from the peer (max_message_
counter), and a bitmap of size MSG_COUNTER_WINDOW_SIZE indicating which messages immedi
ately prior to the max message have been received. The offset into the bitmap equates to the differ
ence between the corresponding message counter and the max message counter, i.e. the first bit in
the bitmap indicates whether the message with the counter of max_message_counter - 1 has been
received, the second indicates whether message max_message_counter - 2 has been received, and so
on. A message counter is within the range of the bitmap, also known as the message counter win
dow, when the counter value is between [(max_message_counter - MSG_COUNTER_WINDOW_SIZE) to
(max_message_counter - 1) mod 232]. As messages arrive, the message reception state is queried to
determine if an arriving message is new or duplicate. If a message is new, the state is then updated
to reflect the arrival of the message. When a message arrives with a message counter that is logi
cally greater than the current maximum message counter for that peer, the maximum message
counter value for the peer is updated and the bitmap shifted accordingly.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 117
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The algorithm for querying and updating message reception state varies slightly depending on
whether the system is tracking reception of encrypted messages or unencrypted messages.
For encrypted messages of Secure Unicast Session Type, any arriving message with a counter in the
range [(max_message_counter + 1) to (232 - 1)] SHALL be considered new, and cause the max_mes
sage_counter value to be updated. Message counters within the range of the bitmap SHALL be con
sidered duplicate if the corresponding bit offset is set to true. All other message counters SHALL be
considered duplicate.
A message counter with rollover is a free running message counter that monotonically increases,
but rolls over to zero when it exceeds the maximum value of the counter (32-bits). Group keys are
secured by a shared, global message counter with rollover as described in Section 4.5.1.3, “Global
Group Encrypted Message Counters”.
For encrypted messages of Group Session Type, any arriving message with a counter in the range
[(max_message_counter + 1) to (max_message_counter + 231 - 1)] (modulo 232) SHALL be considered
new, and cause the max_message_counter value to be updated. Messages with counters from
[(max_message_counter - 231) to (max_message_counter - MSG_COUNTER_WINDOW_SIZE - 1)] (modulo 2
32
) SHALL be considered duplicate. A message counter equal to max_message_counter SHALL be con
sidered duplicate. Message counters within the range of the bitmap SHALL be considered duplicate
Page 118 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This scheme for encrypted messages effectively divides the message counter space in half: those
counters that are forward of the max message counter, which are considered new, and those coun
ters that are behind the max message counter, which are considered duplicates unless indicated
otherwise by the values in the bitmap.
For unencrypted messages, the algorithms for tracking messages and detecting duplicates are simi
lar to, but more permissive than for encrypted messages using Section 4.5.4.2.2, “Message Counters
with rollover”. This reflects the fact that duplicate detection of unencrypted messages is not done
for security reasons, but rather to catch duplicates caused by network errors (e.g. loss of an ack),
which are generally more bounded in time. The more relaxed algorithm for unencrypted duplicate
detection also relaxes the durability requirement on the sender’s message counter, allowing
senders to store the counter in RAM.
For unencrypted messages, any message counter equal to max_message_counter or within the mes
sage counter window, where the corresponding bit is set to true SHALL be considered duplicate. All
other message counters, whether behind the window or ahead of max_message_counter, are consid
ered new and shall update max_message_counter and shift the window accordingly. Messages with a
counter behind the window are likely caused by a node rebooting and are thus processed as rolling
back the window to the current location. Note that when max_message_counter is close to the mini
mum of the range, the window shall roll back to cover message counters near the maximum of the
range.
To initialize Message Reception State for a given Peer Node ID, initial max_message_counter, Message
Type (control or data), Encryption Level (encrypted or unencrypted), and Encryption Key (for any
Encryption Level except unencrypted):
◦ The Peer Node ID SHALL reference the given Peer Node ID.
◦ If the Encryption Level is NOT unencrypted, the Encryption Key SHALL reference the given
key.
◦ The Message Counter bitmap SHALL be set to all 1, indicating that only new messages with
counter greater than max_message_counter SHALL be accepted.
1. Obtain the outgoing message counter of the sending Node for the given Security Flags, Session
Id, and Encryption Key:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 119
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
a. A message of Unsecured Session Type SHALL use the current Global Unencrypted Message
Counter.
b. A message of Secure Unicast Session Type SHALL use the current Secure Session Message
Counter for the session associated with the Session ID.
i. The Global Group Encrypted Data Message Counter if the Security Flags C Flag = 0.
ii. The Global Group Encrypted Control Message Counter if the Security Flags C Flag = 1.
3. Store the incremented outgoing message counter in the OutgoingMessageCounter element asso
ciated with the Session Context for the message.
a. If the message counter wraps around from 0xFFFF_FFFF to 0x0000_0000 and the message is
of Secure Unicast Session Type:
i. The Encryption Key SHALL be expired in the Session Context. The session will need to be
renegotiated to resume communication after transmission of this final message.
1. Determine the Message Reception State for the sending peer and get the current max_message_
counter.
i. Get the session-specific Message Reception State from the Secure Unicast Session Con
text.
ii. Get the Message Reception State for the Source Node ID of the given message:
A. If the Security Flags C Flag = 0, get the Data Message Reception State for the peer
node.
B. If the Security Flags C Flag = 1, get the Control Message Reception State for the peer
node.
iii. If there is no Message Reception State for the groupcast message, initiate Section 4.16.4,
“Unsynchronized Message Processing”.
i. Get the Message Reception State associated with the Unsecured Session Context.
ii. If there is no Message Reception State for the unencrypted message, create it with the
information from the given message.
2. If the Message Counter is outside the valid message counter window, the message SHALL be
marked as a duplicate. Note that while messages may be outside of the window for reasons
other than being a duplicate, and we always mark them as such.
Page 120 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
a. If the message is marked as encrypted, follow Section 4.5.4.2, “Use of Message Reception
State for Encrypted Messages”.
b. If the message is marked as unencrypted, follow Section 4.5.4.3, “Use of Message Reception
State for Unencrypted Messages”.
c. If the message is encrypted and marked as a duplicate, i.e. Message Counter is outside the
valid message counter window or marked as previously received in the Message Reception
State:
d. Otherwise, update the Message Reception State as detailed in Section 4.5.4.1, “Message
Reception State”, and accept the message for further processing.
To prepare a message for transmission with a given Session ID, Destination Node ID (which may be
a group node id or an operational node id) and Security Flags, the following steps SHALL be per
formed, in order:
1. Process the message as described in Section 4.5.5, “Counter Processing of Outgoing Messages”.
a. Set SessionTimestamp to a timestamp from a clock which would allow for the eventual deter
mination of the last session use relative to other sessions.
b. Process the message as described in Section 4.7.2, “Security Processing of Outgoing Mes
sages”.
c. Process the message as described in Section 4.8.3, “Privacy Processing of Outgoing Mes
sages”.
1. Perform validity checks on the message; if any fail, processing of the message SHALL stop, and a
'message invalid' error SHOULD be indicated to the next higher layer:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 121
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
a. Obtain the Privacy and Encryption Keys associated with the given Session ID:
i. If no keys are found, security processing SHALL indicate a failure to the next higher
layer with a status of 'message security failed' and no further security processing SHALL
be done on this message.
b. For each Privacy and Encryption Key, of which there may be more than one in the case of
group messages:
i. If the P Flag is set, follow Section 4.8.4, “Privacy Processing of Incoming Messages” to
deobfuscate the message.
ii. Follow Section 4.7.3, “Security Processing of Incoming Messages” to decrypt and authen
ticate the message.
3. Follow Section 4.5.6, “Counter Processing of Incoming Messages” to enforce replay protection
and duplicate detection.
4. If the message transport is UDP, follow Section 4.11.5.2, “Reliable Message Processing of Incom
ing Messages” to process message reliability.
a. Set SessionTimestamp and ActiveTimestamp to a timestamp from a clock which would allow for
the eventual determination of the last session use relative to other sessions.
6. The received message is then delivered to Section 4.9.5, “Exchange Message Processing”.
This section specifies the parameters to use the data confidentiality and integrity cryptographic
primitive as defined in Section 3.6, “Data Confidentiality and Integrity”.
The parameters in this section SHALL apply for all encrypted messages, i.e. all messages except
those of Unsecured Session Type.
4.7.1.1. Nonce
Page 122 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Octets: 1 4 8
The nonce used for the Authenticated Encryption with Additional Data (AEAD) algorithm (see Sec
tion 3.6, “Data Confidentiality and Integrity”) for a given message SHALL be defined as the concate
nation of the Security Flags, the Message Counter, and the Source Node ID of that message. The
scalar fields in the nonce, namely the Message Counter and the Source Node ID SHALL be encoded
in little-endian byte order for the purposes of serialization within the nonce, that is, in the same
byte ordering as the segment of the message from which its data originates.
The Source Node ID field used in the nonce SHALL be set to the Operational Node ID of the node
originating security protection of the message:
◦ For a CASE session, the Nonce Source Node ID SHALL be determined via the Secure Session
Context associated with the Session Identifier.
◦ For a PASE session, the Nonce Source Node ID SHALL be Unspecified Node ID.
◦ The S Flag of the message SHALL be 1 and the Nonce Source Node ID SHALL be the Source
Node ID of the message.
Because PASE negotiates strong one-time keys per session and the I2RKey and R2IKey
NOTE are distinct for each direction of communication, the use of the Unspecified Node ID
as the Nonce Source Node ID remains semantically secure.
The process for encrypting Matter messages is depicted graphically in Figure 8, “Matter Message
Encryption” with color code conventions described in Figure 9, “Matter Message Encryption Leg
end”.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 123
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
To prepare a secure message for transmission with a given Session ID, Destination Node ID (which
may be a group node id or an operational node id) and Security Flags, the Node SHALL perform the
following steps:
1. Obtain the Encryption Key associated with the Session ID and Destination Node ID and the Ses
sion Type associated with the Destination Node ID:
a. If no key is found for the given Session ID, security processing SHALL fail and no further
security processing SHALL be done on this message.
2. Obtain the outgoing message counter of the sending Node as per Section 4.5.5, “Counter Process
Page 124 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
b. The Security Flags field SHALL be set to the value provided to step 1 with the following sub
fields updated:
i. The Session Type field SHALL be set to the value obtained from step 1.
4. Set the Message Flags, Destination Node ID, and Source Node ID fields as follows:
i. Set S Flag to 0.
iii. Omit both Destination Node ID, and Source Node ID.
i. Set S Flag to 1.
iii. Set Source Node ID field to the operational node id of the sending node.
iv. Set Destination Node ID field to the 16-bit Group ID derived from the Destination Node
ID.
5. Set the Message Counter field to the outgoing message counter from step 2.
6. Execute the AEAD generate and encrypt operation, as specified in Section 3.6.1, “Generate and
encrypt”, with the following instantiations:
a. The bit string key K SHALL be the Encryption Key obtained from step 1;
d. The additional data octet string A SHALL be the Message Header contents, using little-endian
byte order for all scalars, exactly as they appear in the message segments from which they
originate:
e. C = Crypto_AEAD_GenerateEncrypt(K, P, A, N)
7. If the AEAD operation invoked in step 6 results in an error, then security processing SHALL fail
and no further security processing SHALL be done on this message.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 125
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
8. Let C be the output from step 6. C contains the tag of CRYPTO_AEAD_MIC_LENGTH_BITS bits (Message
Integrity Check (MIC)) as specified by Section 3.6.1, “Generate and encrypt”. The secured outgo
ing message SHALL be:
A || C
If the transport layer receives a secured message as indicated by the Session ID, it SHALL perform
the following steps:
1. Determine the Session Type, Session ID, and Message Counter from the message header of the
received message.
2. Obtain the Encryption Key associated with the Session Context of the given Session ID and Ses
sion Type:
a. If no key is found for the given Session ID, security processing SHALL indicate a failure to
the next higher layer with a status of 'message security failed' and no further security
processing SHALL be done on this message.
3. Execute the AEAD decryption and verification operation as specified in Section 3.6.2, “Decrypt
and verify” with the following instantiations:
a. The bit string key K SHALL be the Encryption Key obtained from step 2;
d. The additional data octet string A SHALL be the authenticated Message Header:
e. {success, P} = Crypto_AEAD_DecryptVerify(K, C, A, N)
a. If the success is FALSE, security processing SHALL fail and further processing SHALL NOT be
performed on this message. An appropriate error SHOULD be raised to the upper layer to
indicate the error.
A || P
a. NOTE: The message has not yet undergone counter processing nor replay detection.
Page 126 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The detailed steps involved in privacy processing of outgoing and incoming Matter messages are
described in Section 4.8.3, “Privacy Processing of Outgoing Messages” and Section 4.8.4, “Privacy
Processing of Incoming Messages” respectively. They rely on the cryptographic primitives in Section
3.7, “Message privacy”.
The Privacy Key is a symmetric key specifically used for Privacy Processing that is derived from the
EncryptionKey used for Security Processing of a given message. Given a Session ID reference to a
specific Encryption Key, the Privacy Key is derived as follows:
PrivacyKey =
Crypto_KDF
(
InputKey = EncryptionKey,
Salt = [],
Info = "PrivacyKey",
Length = CRYPTO_SYMMETRIC_KEY_LENGTH_BITS
)
The Privacy Nonce is a nonce specifically used for Privacy Processing that is derived from the Ses
sionId and MIC of the message. The Privacy Nonce SHALL be the CRYPTO_AEAD_NONCE_LENGTH_BYTES
-octet string constructed as the 16-bit Session ID (in big-endian format) concatenated with the lower
11 (i.e. CRYPTO_AEAD_MIC_LENGTH_BYTES-5) bytes of the MIC:
Session ID = 00:2a
MIC = c5:a0:06:3a:d5:d2:51:81:91:40:0d:d6:8c:5c:16:3b
MIC[5..15] = d2:51:81:91:40:0d:d6:8c:5c:16:3b
PrivacyNonce = SessionID || MIC[5..15] = 00:2a || d2:51:81:91:40:0d:d6:8c:5c:16:3b
PrivacyNonce = 00:2a:d2:51:81:91:40:0d:d6:8c:5c:16:3b
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 127
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The process for privacy encoding Matter message headers is depicted graphically in Figure 10,
“Matter Message Privacy”.
To apply privacy obfuscation to an encrypted message prepared for transmission by Section 4.6.1,
“Message Transmission”, apply obfuscation steps as follows:
2. Obtain the Privacy Key for the Encryption Key used to secure the message.
3. Execute the encryption operation as specified in Section 3.7.1, “Privacy encryption” with the fol
lowing instantiations:
a. The bit string key K SHALL be the Privacy Key obtained from step 1;
b. The MIC SHALL be the last CRYPTO_AEAD_MIC_LENGTH_BYTES bytes of the C outcome of the mes
sage security protection as specified in Section 4.7.2, “Security Processing of Outgoing Mes
sages” (MIC = C[(CRYPTO_AEAD_MIC_LENGTH_BYTES-1)..0])
d. The parameter M SHALL be the message header fields where optional fields are only
present in M if they are present in the message:
e. CP = Crypto_Privacy_Encrypt(K, M, N)
4. Let CP be the obfuscated output from step 2. CP SHALL be used in the final private message in
place of the message header fields.
Page 128 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
To deobfuscate a private message received by Section 4.6.2, “Message Reception” with a given Pri
vacy Key, perform security processing as follows:
2. With the given Privacy Key, execute the decryption as specified in Section 3.7.2, “Privacy decryp
tion” with the following instantiations:
a. The bit string key K SHALL be the Privacy Key obtained from step 1;
b. The MIC SHALL be the last CRYPTO_AEAD_MIC_LENGTH_BYTES bytes of the C outcome of the mes
sage security protection as specified in Section 4.7.3, “Security Processing of Incoming Mes
sages” (MIC = C[(CRYPTO_AEAD_MIC_LENGTH_BYTES-1)..0])
d. The parameter CP SHALL be the message header fields where optional fields are only
present in CP if they are present in the message:
e. M = Crypto_Privacy_Decrypt(K, CP, N)
a. M SHALL be used in the final private message in place of the message header fields.
b. The first successfully validated message, M, by Section 4.7.3, “Security Processing of Incom
ing Messages” SHALL terminate iteration through Privacy Keys in step 2.
An Exchange SHALL be bound to exactly one underlying session that will transport all associated
Exchange messages for the life of that Exchange. The underlying session SHALL be one of the fol
lowing session types: secure unicast (as established by PASE or CASE), unsecured (as is used for the
initial session establishment phase of a PASE/CASE session), secure group, or MCSP.
When used with reliability, Exchanges assume basic flow control by the upper layer. The Exchange
Layer SHALL not accept a message from the upper layer when there is an outbound reliable mes
sage pending on the same Exchange.
The first Node to send a message in an Exchange is said to be in the Initiator role, and all the other
Nodes that subsequently participate in the Exchange are said to be in a Responder role. An
Exchange is always between one Initiator and one or more peer Responder Nodes. An Exchange
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 129
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
does not survive a reboot of one of the participants. Adjacent layers MAY close an Exchange at any
time.
4.9.2. Exchange ID
An Exchange context is the metadata tracked for an Exchange by all exchange participants. An
Exchange context tracks the following data:
3. Session Context: The underlying Unsecured, Secured, Groupcast or MCSP session context
◦ Together, Session Context, Exchange ID and Role comprise a unique key allowing partici
pants to identify any exchange.
The Interaction Model layer indicates to the Exchange Layer which Protocols it will accept. Any
message for a Protocol ID that is not registered with the Exchange Layer SHALL be dropped.
When sending a message to the Exchange Layer, the next higher layer SHALL specify whether the
message is part of an existing Exchange, or the first of a new Exchange. For the case of a first mes
sage, the Initiator creates a new Exchange. The Node in the Initiator role SHALL always set the I
Flag in the Exchange Flags of every message it sends in that Exchange.
Each Node in a Responder role for an Exchange SHALL use the Exchange ID received in previous
messages for the Exchange. Each Node in the Responder role SHALL NOT set the I Flag in the
Exchange Flags of every message it sends in that Exchange. Each Node in a Responder role SHALL
NOT set the Destination Node ID field to a value that identifies any Node other than the Node in the
Initiator role for the Exchange.
Processing SHALL then proceed to Section 4.11.5.1, “Reliable Message Processing of Outgoing Mes
sages”.
Page 130 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
After completion of Section 4.6.2, “Message Reception”, if the message matches an existing
Exchange, it is dispatched to the appropriate protocol handler in the next higher layer. Messages
for an existing Exchange are dispatched to the handler for that Exchange. Otherwise, the unso
licited message that created the Exchange is dispatched to the unsolicited message handler.
Upon receipt of a message, the Exchange Layer attempts to match the message to an existing
Exchange. A given message is part of an Exchange if it satisfies all the following criteria:
1. The message was received over the session associated with the Exchange.
3. The message has the I Flag set and the Exchange Role of the Exchange is Responder,
OR the message does not have the I Flag set and the Exchange Role of the Exchange is Initiator.
If the message does not match an existing Exchange, the message is considered an unsolicited mes
sage.
1. If the unsolicited message is not marked as having a duplicate message counter, has a registered
Protocol ID, and the I Flag is set:
b. The new exchange will be used by the upper layer for generating responses and subsequent
processing of the message.
a. Create an ephemeral exchange from the incoming message and send an immediate stand
alone acknowledgement.
b. The message SHALL NOT be forwarded to the upper layer, and excluding the sending of an
immediate standalone acknowledgment, SHALL be ignored.
c. The ephemeral exchange created for such duplicate or unknown messages with R Flag set is
automatically closed in Section 4.11.5.2.2, “Standalone acknowledgement processing”.
The steps to create a new Exchange based on an incoming message are as follows:
1. A new Exchange and Exchange Context SHALL be created with the following settings:
b. The Exchange Role SHALL be set to the inverse of the incoming message I Flag, for example
set the Exchange Role to Responder if the message is from an Initiator.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 131
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
c. The Session Context SHALL be set to the Session on which the message was received.
A node SHOULD limit itself to a maximum of 5 concurrent exchanges over a unicast session. This is
to prevent a node from exhausting the message counter window of the peer node.
An Exchange MAY be closed by the application layer or a fatal connection error from the lower
message layer. The process of closing an Exchange follows:
1. Any pending acknowledgements associated with the Exchange SHALL be flushed. If there is a
pending acknowledgment in the acknowledgement table for the Exchange and it has Stand
aloneAckSent set to false:
2. Wait for all pending retransmissions associated with the Exchange to complete.
a. If the retransmission list for the Exchange is empty, remove the Exchange.
b. Otherwise, leave the Exchange open and only close it once the retransmission list is empty.
Page 132 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The protocol opcodes for messages within the Secure Channel Protocol are grouped based on the
underlying sub-protocol that uses the message type. Table 17, “Secure Channel Protocol Opcodes”
lists the messages defined by Secure Channel Protocol.
Protocol ID = PROTOCOL_ID_SECURE_CHANNEL
0x10 MRP Standalone Acknowl This message is dedicated for the purpose of sending a
edgement stand-alone acknowledgement when there is no other data
message available to piggyback an acknowledgement on
top of.
0x22 PASE Pake1 The first PAKE message of the PASE protocol.
0x23 PASE Pake2 The second PAKE message of the PASE protocol.
0x24 PASE Pake3 The third PAKE message of the PASE protocol.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 133
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
0x33 CASE Sigma2_Resume The second resumption message of the CASE protocol.
0x40 StatusReport The Status Report message encodes the result of an opera
tion in the Secure Channel as well as other protocols.
After a successful session establishment using CASE or PASE, a responder may not have enough
resources to save all of the session context information. To free resources, a responder SHALL evict
an existing session using the following procedure:
b. Remove all state associated with the session (see Section 4.12.2.1, “Secure Session Context”).
The Node MAY save state necessary to perform Session Resumption, see Section 4.13.2.2.1,
“Session Resumption State” for more details.
The Status Report message is sent from protocol handlers to convey the status of an operation using
a common format as defined in Appendix D, Status Report Messages. The StatusReport message is a
part of the Secure Channel protocol, but embeds an additional context-specific ProtocolID field in
its message-specific payload. In this way, the StatusReport can convey status for any protocol han
dler.
Status Reports specific to the Secure Channel are designated by embedding the PROTOCOL_ID_SE
CURE_CHANNEL in the ProtocolId field of the StatusReport body. All Secure Channel Status Report Mes
sages SHALL use the PROTOCOL_ID_SECURE_CHANNEL protocol id. For example, a failure to find a com
mon root of trust may be written in the specification as follows: StatusReport(GeneralCode: FAILURE,
ProtocolId: SECURE_CHANNEL, ProtocolCode: NO_SHARED_TRUST_ROOTS).
There are several cases for which the secure channel layer may emit a status report:
For each of these cases, a Secure Channel Status Report message SHALL be sent with an appropriate
ProtocolCode as detailed below.
Page 134 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The following table describes the Secure Channel Status Report Protocol Specific codes. Each entry
in the list details the appropriate General Code to be utilized with the message and whether it may
be sent unencrypted. Secure Channel Status Report messages which are marked as encrypted below
SHALL only be sent encrypted in a session established with CASE or PASE.
4.10.1.4. CloseSession
A node may choose to close a session for a variety of reasons including, but not limited to, the fol
lowing:
3. Fabric configuration associated with the CASE session was removed with the RemoveFabric
command invoked by an Administrator while the session was open
The CloseSession StatusReport SHALL only be sent encrypted within an exchange associated with a
PASE or CASE session. The CloseSession StatusReport SHALL be sent within a new exchange and
SHALL NOT set the R Flag.
If a Node has either sent or received a CloseSession StatusReport, that Node SHALL remove all state
associated with the session (see Section 4.12.2.1, “Secure Session Context”). The Node MAY save
state necessary to perform Session Resumption, see Section 4.13.2.2.1, “Session Resumption State”
for more details.
4.10.1.5. Busy
When a receiver receives a request to start a new secure session via a Sigma1 or PBKDFParamRe
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 135
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
quest message, the receiver MAY respond with the BUSY StatusReport when it is unable to fulfill the
request. The BUSY StatusReport SHALL:
3. Set the StatusReport ProtocolData to a 16-bit (two byte) little-endian value indicating the mini
mum time in milliseconds to wait before retrying the original request.
4. Set the Exchange ID to the Exchange ID present in the Sigma1 or PBKDFParamRequest message
which triggered this response.
For example, a responder wishing to indicate they are unable to fulfill the request and that the ini
tiator should wait 500 milliseconds before trying again would send StatusReport(GeneralCode:
BUSY, ProtocolId: SECURE_CHANNEL, ProtocolCode: BUSY, ProtocolData: [0xF4, 0x01]).
The BUSY StatusReport SHALL NOT be sent in response to any message except for Sigma1 or
PBKDFParamRequest.
An initiator receiving a BUSY StatusReport from a responder SHALL wait for at least a period of t
milliseconds before retrying the request where t is the value obtained from the Busy StatusReport
ProtocolData field.
If the initiator sends a new session establishment request after receiving a BUSY StatusReport, the
request SHALL contain new values for all randomized parameters.
Table 19, “Glossary of constants” is a glossary of constants used in the secure channel protocol,
along with a brief description and the default for each constant.
Page 136 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
sage at the point it is due to be delivered to them. Reliable messaging MAY be enabled on an indi
vidual message basis as required by the protocol design of the higher layer application. Reliability
is achieved through time-bounded delivery confirmation, ensuring best effort delivery of critical
messages over what may be an inherently lossy and unreliable communication medium.
Flow control mechanisms are not incorporated in MRP because it is intended to be used for short
interactions with small numbers of messages in them.
The following fields are defined in the Exchange Flags for use exclusively by MRP:
• R Flag
Indicates a reliable message. This flag SHALL be set by the sender when a message being sent
requires the receiver to send back an acknowledgment. To support unreliable messages, this
flag bit MAY be clear, so that no acknowledgements are requested from the receiver.
• A Flag
Indicates the message is acting as an acknowledgement. This flag MAY be set on any message.
When set, the Acknowledged Message Counter field SHALL be present and valid. This flag SHALL
always be set for MRP Standalone Acknowledgement messages.
This field SHALL be set to the Message Counter of the message that is being acknowledged.
When the reliability bit is set, the reliable message is transmitted at most MRP_MAX_TRANSMIS
SIONS times until an acknowledgement of receipt is received from the peer or a timeout.
4.11.2.1. Retransmissions
Senders provide an automatic retransmission mechanism for reliable messages. In order for the
receiver to receive a message reliably, the sender SHALL trigger the automatic retry mechanism
after a period of mrpBackoffTime milliseconds without receiving an acknowledgement, where mrp
BackoffTime is calculated according to the formula below. The sender SHALL retry up to a config
ured maximum number of times (MRP_MAX_TRANSMISSIONS - 1) before giving up and notifying
the application.
Messages sent to a Node can be lost for various reasons such as lossy network or insufficient buffer
space at the receiver. In the case of sleepy end devices, which wake up infrequently to receive mes
sages destined for them, a sender must be aware of the characteristics of the recipient to ensure it
does not attempt to send at a rate beyond the recipient’s capability. Therefore, the sender SHALL
choose retransmission timeouts based on the sleepy characteristics of the destination Node using
Section 4.3.2, “Operational Discovery”.
At each sender, a retransmission timer is started each time a reliable message is transmitted. The
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 137
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Where:
For each unique Exchange, the sender SHALL wait for the acknowledgement message until the
retransmission timer, mrpBackoffTime, expires. A sleepy sender SHOULD increase t to also account
for its own sleepy interval required to receive the acknowledgment.
The base interval, i, SHALL be set according to the active state of the peer node as stored in the Ses
sion Context of the session (either the Secure Session Context or the Unsecured Session Context
depending on the Session Type). The backoff base interval SHALL be set to a value at least 10%
greater than the sleep interval of the destination:
• i = MRP_BACKOFF_MARGIN * i
The MRP_BACKOFF_THRESHOLD parameter creates a two-phase scheme which begins with linear
backoff to improve initial latency when congestion is not the cause of packet drops, and then transi
tions to exponential backoff to provide convergence when the network is congested. If a positive
acknowledgment is received before the retransmission timer expires, the retransmission timer is
stopped. Otherwise, if the retransmission timer expires, the message is retransmitted and the timer
started again.
The following table illustrates minimum, maximum, and cumulative retransmission times using
default parameters.
Page 138 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Transmission # 0 1 2 3 4
The sender SHOULD initiate Section 4.3.2, “Operational Discovery” in parallel with the first retry to
re-resolve the address of the destination Node if the initial transmission fails after one expected
round trip. The sender SHOULD use the latest MRP parameters for the destination that result from
subsequent Operational Discovery.
4.11.2.2. Acknowledgements
The acknowledgement message SHALL set the Acknowledged Message Counter field to the value of
the Message Counter of the reliable message to be acknowledged.
Acknowledgements MAY be conveyed at the same time (i.e. piggybacked) as data in a response mes
sage. The receiver tries to optimize message transmission by deferring acknowledgments when a
reliable message is received (see Section 4.11.5.2.2, “Standalone acknowledgement processing”) and
piggybacking outstanding acknowledgments on messages that it needs to send back (see Section
4.11.5.1.1, “Piggyback acknowledgment processing” for more details).
Since the reliable messaging protocol has a provision for the sender to retransmit messages, there
is a significant chance that a duplicate message may arrive at the receiver. The receiver SHALL
detect and mark duplicate messages that it receives using the standard authentication and replay
protection mechanisms of the secure message layer (see Section 4.5.4, “Replay Prevention and
Duplicate Message Detection”). The receiver SHALL send an acknowledgment message to the
sender for each instance of an authenticated, reliable message, including duplicates. The reliability
layer SHALL only propagate the first instance of a message to the next higher layer. Any message
marked as a duplicate SHALL be dropped by the reliability layer.
The Reliable Messaging Protocol operates within the scope of an Exchange between two Nodes.
MRP SHALL support one pending acknowledgement and one pending retransmission per
Exchange.
MRP control parameters, detailed in Table 21, “Glossary of parameters”, are computed outside of
the Exchange communication itself; instead, they are valid for the duration of a secure session. The
SLEEPY_ACTIVE_INTERVAL and SLEEPY_IDLE_INTERVAL, used in computation of MRP control parameters,
are determined during Operational Discovery or Section 4.3.1, “Commissionable Node Discovery”.
Additionally, the initiator of a secure session MAY provide these parameters in the initial CASE Sig
ma1 or PASE PBKDFParamRequest messages, and the responder MAY provide its parameters in the
corresponding protocol messages <ref_Sigma2, CASE Sigma2>> or PBKDFParamResponse.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 139
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
When the upper layer requests a reliable message over a UDP transport, the R Flag SHALL be set on
that message indicating that MRP SHALL be used. Reliable messages sent over TCP or BTP SHALL
utilize the underlying reliability mechanisms of those transports and SHOULD NOT set the R Flag.
To prepare a given Protocol Message for transmission, the message SHALL be processed as follows:
a. If the Destination Node Id and Exchange Id of the given message and pending acknowledge
ment are the same
b. AND either
i. the Session Id and underlying Session Credentials of the given message and pending
acknowledgement are the same
ii. OR both the given message and pending acknowledgement are of Unsecured Session
Type.
2. If there is a matching pending acknowledgement, the A Flag SHALL be set on the outbound mes
sage so it will serve as a piggybacked acknowledgement.
b. If the message being prepared is not a standalone acknowledgement, remove the matching
entry from the acknowledgement table.
1. If the outbound message is marked to be delivered reliably over a UDP transport, the R Flag
SHALL be set on the given message to request an acknowledgement from the peer upon receipt.
a. Any message flagged for reliable delivery (R Flag set) SHALL be stored in the retransmission
table to track the message until it has been successfully acknowledged by the peer.
2. Perform Section 4.6.1, “Message Transmission” processing step on the message to send the mes
sage to the peer:
a. The same Session ID, Destination Node ID, Security Flags, and transport as were used for the
initial message transmission SHALL be used.
Page 140 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
3. If the transport interface returns an error on the send attempt, the error is assessed to deter
mine whether the message can be retried.
a. If the error is fatal, the application is notified and the message removed from the retrans
mission table.
ii. Start a retransmission timer to track the maximum time to wait before attempting
another retransmission.
iii. For each retry, the retransmission table is updated to track the number of retries until
the maximum number is attempted, at which point the message is evicted from the
retransmission table.
The MRP send flow described above is depicted in the control flow diagram Figure 12, “MRP send
flow”.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 141
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 142 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A message received from Section 4.6.2, “Message Reception” for reliability processing SHALL be
processed as follows:
a. Query the retransmission table for the Acknowledgement Message Counter contained in the
received message.
i. If there is a match:
ii. If there is no match, it indicates that this is either a duplicate acknowledgment or the
Exchange context does not exist.
1. If the R Flag is set, the received message is requesting an acknowledgement be sent back:
ii. If the Exchange is marked as an ephemeral exchange the Exchange SHALL be closed.
i. Add the message counter of the received message to the acknowledgement table to signal
that an outbound acknowledgement is pending. There can be only one outstanding
acknowledgement at a time on a single Exchange. If a pending acknowledgement
already exists for the Exchange, and it has StandaloneAckSent set to false, a standalone
acknowledgment SHALL be sent immediately for that pending message counter, and the
acknowledgement table entry SHALL be replaced for the new message.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 143
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
2. The received message is then delivered to the next processing step of Section 4.6.2, “Message
Reception”.
The MRP receive flow described above is depicted in Figure Figure 13, “MRP receive flow”.
Page 144 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
For retransmissions, the sender maintains a retransmission table of context records containing
information on all reliable messages sent that have acknowledgments still pending. Each such reli
able message context record includes the following fields:
• Message Counter
• Send count
Each time a message that requires acknowledgment is sent, a new retransmission context record is
inserted into the retransmission table or an existing record is updated to increment its send count.
The message is sent a configurable maximum number of times (MRP_MAX_TRANSMISSIONS) and,
if still undelivered, the application is notified of the failure.
• Message Counter
An entry SHALL remain in the table until one of the following things happens:
1. The exchange associated with the entry is closed. See Section 4.9.5.3, “Closing an Exchange”.
2. The exchange associated with the entry has switched to track a pending acknowledgement for a
new message counter value. See Section 4.11.5.2.2, “Standalone acknowledgement processing”.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 145
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The rules for when to send this message are detailed in Section 4.11.5.2.2, “Standalone acknowl
edgement processing”.
Table 21, “Glossary of parameters” is a glossary of parameters used in this chapter with a brief
description for each parameter. A Node SHALL use the provided default value for each parameter
unless the message recipient Node advertises an alternate value for the parameter via Operational
Discovery.
1. Session Establishment Phase: A series of well-defined unencrypted messages that aim to estab
lish a shared key.
2. Application Data Phase: A series of ad-hoc encrypted messages exchanging interaction model
protocol actions, application data, etc.
Page 146 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
CASE SHALL be used as a session establishment mechanism for all sessions except:
1. Communication for the purpose of commissioning when NOC has not yet been installed
PASE SHALL only be used for session establishment mechanism during device commissioning.
PASE SHALL NOT be used as a session establishment mechanism for any other session. BTP MAY be
used as the transport for device commissioning. BTP SHALL NOT be used as a transport for opera
tional purposes.
Unless otherwise specified, the CASE, PASE, User-Directed Commissioning protocol, and Secure
Channel Status Report messages SHALL be the only allowed unencrypted messages.
The following session context data SHALL be utilized to associate messages to a particular peer and
recover context during unencrypted sessions:
1. Session Role: Records whether the node is the session initiator or responder.
2. Ephemeral Initiator Node ID: Randomly selected for each session by the initiator from the Oper
ational Node ID range and enclosed by initiator as Source Node ID and responder as Destination
Node ID.
◦ Initiators SHALL select a new random ephemeral node ID for each unsecured session, and
SHALL select an ID that does not conflict with any ephemeral node IDs for any other ongo
ing unsecured sessions opened by the initiator.
3. Message Reception State: Provides tracking for the Unencrypted Message Counter of the remote
peer.
a. Locate any Unsecured Session Context with matching Ephemeral Initiator Node ID
i. If any is located, the incoming message SHALL be assumed to be associated with this
Unsecured Session Context
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 147
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
iii. Record the incoming message’s Source Node ID as Ephemeral Initiator Node ID
c. Randomly select a node ID from the Operational Node ID range that does not collide with
any ephemeral node IDs for any other ongoing unsecured sessions opened by the initiator
and record this as Ephemeral Initiator Node ID
When establishing a session over IP, the initiator SHALL use TCP when both of the following are
true:
If one or both nodes do not support TCP, the initiator SHALL use MRP to establish the session.
The choice of transport used during session establishment SHALL be used for the transport of mes
sages of the established session.
Both CASE and PASE produce two shared keys: I2RKey and R2IKey. These keys will be saved to the
session’s context and used to encrypt and decrypt messages during the Session Data Phase.
Nodes that support the CASE session resumption SHALL also save to the session’s context the
SharedSecret computed during the CASE protocol execution.
Both CASE and PASE allow each participant the ability to choose a unicast session identifier for the
subsequent encrypted session. The session identifier SHALL be used to look up the relevant encryp
tion keys and any other metadata for a particular session.
Messages using a unicast session identifier SHALL set the Session Type field to 0. Each peer SHALL
specify a Session Identifier unique in reference to their own active sessions. There SHALL NOT be
overlap between the Session ID values allocated for PASE and CASE sessions, as the Session Identi
fier space is shared across both session establishment methods.
For example, if the initiator has two active sessions with session identifiers 0x0001 and 0x0002, it
could choose any non-zero session identifier besides 0x0001 and 0x0002.
If there are no available session identifiers (i.e. the participant has 65,535 open sessions), the Node
SHALL terminate an existing session to free a session identifier.
Page 148 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
When the last CASE or PASE protocol message is sent or received and successfully processed, ses
sion establishment has completed.
During the Application Data Phase, the following conceptual session context data SHALL be utilized
to securely process subsequent messages:
1. Session Type: Records whether the session was established using CASE or PASE.
2. Session Role: Records whether the node is the session initiator or responder.
3. Local Session Identifier: Individually selected by each participant in secure unicast communi
cation during session establishment and used as a unique identifier to recover encryption keys,
authenticate incoming messages and associate them to existing sessions.
◦ On a given Node, this is the identifier that SHALL be used to map from an incoming mes
sage’s Session ID field to the session context data.
◦ On a given Node, this is the identifier that SHALL be used in the Session ID field of every out
going message associated with the session, so that it can be interpreted as the Local Session
Identifier by the remote peer.
5. I2RKey: Encrypts data in messages sent from the initiator of session establishment to the respon
der.
6. R2IKey: Encrypts data in messages sent from the session establishment responder to the initia
tor.
7. SharedSecret: Computed during the CASE protocol execution and re-used when CASE session
resumption is implemented.
8. Local Message Counter: Secure Session Message Counter for outbound messages.
◦ At successful session establishment, the Local Message Counter SHALL be initialized per Sec
tion 4.5.1.1, “Message Counter Initialization”.
9. Message Reception State: Provides tracking for the Secure Session Message Counter of the
remote peer.
10. Local Fabric Index: Records the local Index for the session’s Fabric, which MAY be used to look
up Fabric metadata related to the Fabric for which this session context applies.
◦ This field SHALL contain the "no Fabric" value of 0 when the SessionType is PASE and success
ful invocation of the AddNOC command has not yet occurred during commissioning.
11. Peer Node ID: Records the authenticated node ID of the remote peer, when available.
◦ This field SHALL contain the "Unspecified Node ID" value of 0 when the SessionType is PASE.
12. Resumption ID: The ID used when resuming a session between the local and remote peer.
13. SessionTimestamp: A timestamp indicating the time at which the last message was sent or
received. This timestamp SHALL be initialized with the time the session was created. See Sec
tion 4.10.1.1, “Session Establishment - Out of Resources” for more information.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 149
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
14. ActiveTimestamp: A timestamp indicating the time at which the last message was received. This
timestamp SHALL be initialized with the time the session was created.
a. SLEEPY_IDLE_INTERVAL
b. SLEEPY_ACTIVE_INTERVAL
c. PeerActiveMode: A boolean that tracks whether the peer node is in Active or Idle mode as
defined in Section 2.9, “Sleepy End Device (SED)”. PeerActiveMode is set as follows:
Note that the Local Fabric Index and Peer Fabric Index reported in the NOC Response MAY differ in
value, while still referring to the same Fabric, since for a given complete Fabric Reference, the short
Fabric Index allocated during commissioning of the respective Nodes on the same Fabric MAY be
different. This possible difference is due to the order in which the Fabric in question was joined in
the lifecycle of the respective Nodes. See the section on AddNOC command behavior for details on
Fabric Index allocation behavior over time.
There SHALL also be reservation of storage to support CASE Authenticated Tag (CAT) fields. The CAT
fields are 32-bit values that MAY have been present in RDN case-authenticated-tag of the remote
peer’s operational certificate, during CASE.
The CAT fields are used to cache Operational Certificate data so that it can be used by the ACL
processing logic to support CASE Authenticated Tags.
Since these fields MAY be omitted from NOCs, they MAY be marked as absent in the context, such
that they are not taken into account when missing. When present, they SHALL be stored. Maximum
up to 3 CAT fields SHALL be supported.
This section describes session establishment using a shared passcode together with an augmented
Password-Authenticated Key Exchange (PAKE), in which only one party knows the passcode before
hand, to generate shared keys. This protocol is only used when commissioning a Node (i.e. the Com
missionee).
The Passcode-Authenticated Session Establishment (PASE) protocol aims to establish the first ses
sion between a Commissioner and a Commissionee using a known passcode provided out-of-band.
The pairing is performed using Section 3.10, “Password-Authenticated Key Exchange (PAKE)” and
relies on a Password-Based Key Derivation Function (PBKDF) where the passcode is used as pass
word.
Page 150 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
It is assumed that the initiator has somehow obtained the passcode and that the responder has the
relevant Crypto_PAKEValues_Responder corresponding to the passcode before starting a PASE session
establishment protocol.
Message format
All PASE messages SHALL be structured as specified in Section 4.4, “Message Frame Format”.
• The S Flag and DSIZ fields of the Message Flags SHALL be set to 0.
For each PASE message, the application payload is the TLV encoding of the message structure as
defined below:
PBKDFParamRequest pbkdfparamreq-struct
PBKDFParamResponse pbkdfparamresp-struct
Pake1 pake-1-struct
Pake2 pake-2-struct
Pake3 pake-3-struct
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 151
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The other fields of the Message format are not specific to the PASE messages.
For all TLV-encoded PASE messages, any context-specific tags not listed in the associated TLV
schemas SHALL be reserved for future use, and SHALL be silently ignored if seen by a recipient
which cannot understand them.
Message Exchange
The PBKDFParamRequest, PBKDFParamResponse, Pake1, Pake2, Pake3, and PakeFinished of a distinct session
establishment are part of the same message exchange. The initiator and responder SHALL NOT
send encrypted application data in the newly established session until PakeFinished is received by
the initiator within the unencrypted session used for establishment.
Each message SHALL use PROTOCOL_ID_SECURE_CHANNEL as Protocol ID and the corresponding Protocol
Opcode as defined in Table 17, “Secure Channel Protocol Opcodes”.
The flags of the Exchange Flags of the Protocol Header are defined as follows per PASE message:
Message I Flag
PBKDFParamRequest 1
PBKDFParamResponse 0
Pake1 1
Pake2 0
Pake3 1
All PASE messages SHALL be sent reliably. This may be implicit (e.g. TCP) or explicit (e.g. MRP reli
able messaging) in the underlying transport.
The other fields of the Protocol Header are not specific to the PASE messages.
PBKDFParamRequest
This message serves to request the PBKDF parameters, with a payload that follows this TLV schema:
Page 152 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
2. The initiator SHALL generate a session identifier (InitiatorSessionId) for subsequent identifica
tion of this session. The InitiatorSessionId field SHALL NOT overlap with any other existing
PASE or CASE session identifier in use by the responder. See Section 4.12.1.4, “Choosing Secure
Unicast Session Identifiers” for more details. The initiator SHALL set the Local Session Identi
fier in the Session Context to the value InitiatorSessionId.
4. The initiator SHALL indicate whether the PBKDF parameters (salt and iterations) are known for
the particular passcodeId (for example from the QR code) by setting HasPBKDFParameters. If HasP
BKDFParameters is set to True, the responder SHALL NOT return the PBKDF parameters. If HasP
BKDFParameters is set to False, the responder SHALL return the PBKDF parameters.
5. The initiator SHALL send a message with the appropriate Protocol Id and Protocol Opcode from
Table 17, “Secure Channel Protocol Opcodes” whose payload is the TLV-encoded pbkdf
paramreq-struct PBKDFParamRequest with an anonymous tag for the outermost struct.
PBKDFParamRequest =
{
initiatorRandom (1) = InitiatorRandom,
initiatorSessionId (2) = InitiatorSessionId,
passcodeID (3) = PasscodeId,
hasPBKDFParameters (4) = HasPBKDFParameters,
}
PBKDFParamResponse
1. Verify passcodeID is set to 0. If verification fails, the responder SHALL send a status report: Sta
tusReport(GeneralCode: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAME
TER) and perform no further processing.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 153
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
4. Set the Peer Session Identifier in the Session Context to the value PBKDFParamRequest.initia
torSessionId.
6. Send a message with the appropriate Protocol Id and Protocol Opcode from Table 17, “Secure
Channel Protocol Opcodes” whose payload is the TLV-encoded pbkdfparamresp-struct PBKDF
ParamResponse with an anonymous tag for the outermost struct.
PBKDFParamResponse =
{
initiatorRandom (1) = PBKDFParamRequest.initiatorRandom,
responderRandom (2) = ResponderRandom,
responderSessionId (3) = ResponderSessionId,
pbkdf_parameters (4) = PBKDFParameters
}
Pake1
1. Set the Peer Session Identifier in the Session Context to the value PBKDFParamResponse.respon
derSessionId.
4. Send a message with the appropriate Protocol Id and Protocol Opcode from Table 17, “Secure
Channel Protocol Opcodes” whose payload is the TLV-encoded pake-1-struct Pake1 with an
anonymous tag for the outermost struct.
Pake1 =
{
Page 154 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
pA (1) = pA,
}
Pake2
4. Send a message with the appropriate Protocol Id and Protocol Opcode from Table 17, “Secure
Channel Protocol Opcodes” whose payload is the TLV-encoded pake-2-struct Pake2 with an
anonymous tag for the outermost struct.
Pake2 =
{
pB (1) = pB,
cB (2) = cB,
}
Pake3
3. Verify Pake2.cB against cB. If verification fails, the initiator SHALL send a status report: Status
Report(GeneralCode: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)
and perform no further processing.
4. Send a message with the appropriate Protocol Id and Protocol Opcode from Table 17, “Secure
Channel Protocol Opcodes” whose payload is the TLV-encoded pake-3-struct Pake3 with an
anonymous tag for the outermost struct.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 155
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Pake3 =
{
cA (1) = cA,
}
5. The initiator SHALL NOT send any encrypted application data until it receives PakeFinished
from the responder.
1. Verify Pake3.cA against cA. If verification fails, the responder SHALL send a status report: Sta
tusReport(GeneralCode: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAME
TER) and perform no further processing.
2. The responder SHALL set SessionTimestamp to a timestamp from a clock which would allow for
the eventual determination of the last session use relative to other sessions.
PakeFinished
To indicate the successful completion of the protocol, the responder SHALL send a status report:
StatusReport(GeneralCode: SUCCESS, ProtocolId: SECURE_CHANNEL, ProtocolCode: SESSION_ESTABLISH
MENT_SUCCESS).
The initiator SHALL set SessionTimestamp to a timestamp from a clock which would allow for the
eventual determination of the last session use relative to other sessions.
After verification of Pake3, each party can compute their sending and receiving session keys as
described below:
2. The initiator SHALL use I2RKey to encrypt and integrity protect messages and the `R2IKey' to
Page 156 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
3. The responder SHALL use R2IKey to encrypt and integrity protect messages and the `I2RKey' to
decrypt and verify messages.
4. The AttestationChallenge SHALL only be used as a challenge during device attestation. See Sec
tion 6.2.3, “Device Attestation Procedure” for more details.
1. The Node SHALL initialize its Local Message Counter in the Session Context per Section 4.5.1.1,
“Message Counter Initialization”.
2. The Node SHALL initialize the Message Reception State in the Session Context` and set the syn
chronized max_message_counter of the peer to 0.
This section describes a certificate-authenticated session establishment (CASE) protocol using Node
Operational credentials. This session establishment mechanism provides an authenticated key
exchange between exactly two peers while maintaining privacy of each peer. A resumption mecha
nism allows bootstrapping a new session from a previous one, dramatically reducing the computa
tion required as well as reducing the number of messages exchanged.
3. Exchange operational parameters for the session, such as Session Identifier and MRP parame
ters
The cryptographic protocol mirrors the [SIGMA] protocol and uses the Identity Protection Key (IPK)
to provide better identity protection. Briefly, the protocol will:
3. Prove possession of the NOC private key by signing the ephemeral keys and NOC (sigma-2-tbs
data and sigma-3-tbsdata)
The basic protocol can be achieved within 2 round trips as shown below:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 157
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The protocol also provides a means to quickly resume a session using a previously established ses
sion. Resumption does not require expensive signature creation and verification which signifi
cantly reduces the computation time. Because of this, resumption is favoured for low-powered
devices when applicable. Session resumption SHOULD be used by initiators when the necessary
state is known to the initiator.
The nomenclature Sigma1 with Resumption in the following subsections implies a Sigma1 message
with both the optional resumptionID and initiatorResumeMIC fields populated in sigma-1-struct.
In the case where a Responder is not able to resume a session as requested by a Sigma1 with Resump
tion, the information included in the Sigma1 with Resumption message SHALL be processed as a Sig
ma1 message without any resumption fields to construct a Sigma2 message and continue the stan
dard session establishment protocol without resumption.
To make the resumption succeed, both the Initiator and the Responder SHALL have remembered
the SharedSecret they have computed during the previous execution of the CASE session establish
ment. It SHALL be that SharedSecret that is used to compute the resumption ID.
To perform session resumption, the following state from the previous session context must be
known to the initiator and responder:
1. SharedSecret
Page 158 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
3. Peer Node ID
5. ResumptionID
Message format
All CASE messages SHALL be structured as specified in Section 4.4, “Message Frame Format”.
• The S Flag and DSIZ fields of the Message Flags SHALL be set to 0.
For each CASE message, the application payload is the TLV encoding of the message structure as
defined below:
Sigma1 sigma-1-struct
Sigma2 sigma-2-struct,
Sigma3 sigma-3-struct,
Sigma2_Resume sigma-2-resume-struct,
The other fields of the Message format are not specific to the CASE messages.
Message Exchange
The Sigma1, Sigma2, Sigma3, and SigmaFinished of a distinct session establishment are part of the same
message exchange. The Sigma1 with resumption, Sigma2_Resume and SigmaFinished of a distinct ses
sion resumption are part of the same message exchange. The Sigma1 with resumption, Sigma2, Sigma3
and SigmaFinished of a distinct session resumption that failed to perform the resumption are part of
the same message exchange.
Each message SHALL use PROTOCOL_ID_SECURE_CHANNEL as Protocol ID and the corresponding Protocol
Opcode as defined in Table 17, “Secure Channel Protocol Opcodes”.
The Exchange Flags of the Protocol Header are defined as follows per CASE message:
Message I Flag
CASE Sigma1 1
CASE Sigma2 0
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 159
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Message I Flag
CASE Sigma3 1
CASE Sigma2_Resume 0
For the SigmaFinished message the value of the I Flag is set depending on whether the status mes
sage is sent by the Initiator or the Responder.
All CASE messages SHALL be sent reliably. This may be implicit (e.g. TCP) or explicit (e.g. MRP reli
able messaging) in the underlying transport.
The other fields of the Exchange format are not specific to the CASE messages.
The initiator encodes and sends a Sigma1 message, with a payload that follows this TLV schema:
2. The initiator SHALL generate a session identifier (InitiatorSessionId) for subsequent identifica
tion of this session. The InitiatorSessionId field SHALL NOT overlap with any other existing
PASE or CASE session identifier in use by the initiator. See Section 4.12.1.4, “Choosing Secure
Unicast Session Identifiers” for more details.
6. Any context-specific tags not listed in the above TLV schemas SHALL be reserved for future use,
and SHALL be silently ignored if seen by a responder which cannot understand them.
7. If the initiator is resuming a session from a previous execution of the CASE with the same peer,
the initiator SHALL:
Page 160 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
c. Generate the initiatorResumeMIC using the SharedSecret from the previous session:
byte Resume1MIC_P[] = {}
byte Resume1MIC_A[] = {}
byte Resume1MIC_Nonce[13] = /* "NCASE_SigmaR1" */
{0x4e, 0x43, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x69,
0x67, 0x6d, 0x61, 0x53, 0x31}
InitiatorResume1MIC = Crypto_AEAD_GenerateEncrypt(
K = S1RK,
P = Resume1MIC_P,
A = Resume1MIC_A,
N = Resume1MIC_Nonce
)
8. The initiator SHALL send a message with Secure Channel Protocol ID and Sigma1 Protocol Opcode
from Table 17, “Secure Channel Protocol Opcodes” whose payload is the TLV-encoded Sigma1
Msg1 with an anonymous tag for the outermost struct.
Msg1 =
{
initiatorRandom (1) = InitiatorRandom,
initiatorSessionId (2) = InitiatorSessionId,
destinationId (3) = DestinationId,
initiatorEphPubKey (4) = InitiatorEphKeyPair.publicKey
initiatorSEDParams (5) = sed-parameter-struct (optional),
resumptionID (6) = ResumptionID (optional, only present if performing
resumption),
initiatorResumeMIC (7) = InitiatorResume1MIC (optional, only present if
performing resumption)
}
Validate Sigma1
1. If Msg1 contains either a resumptionID or an initiatorResumeMIC field but not both, the responder
SHALL send a status report: StatusReport(GeneralCode: FAILURE, ProtocolId: SECURE_CHANNEL,
ProtocolCode: INVALID_PARAMETER) and perform no further processing.
2. Set the Peer Session Identifier in the Session Context to the value Msg1.initiatorSessionId.
3. If Msg1 contains both the resumptionID and initiatorResumeMIC fields, the responder SHALL
search for an existing session that has a Resumption ID equal to the incoming resumptionID. If a
single such session exists, the responder SHALL follow the steps in Section 4.13.2.3.10, “Validate
Sigma1 with Resumption” rather than continue the steps outlined in Section 4.13.2.3.5, “Validate
Sigma1 Destination ID”.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 161
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
4. If Msg1 does not contain a resumptionID and initiatorResumeMIC field, the responder SHALL con
tinue the steps in Section 4.13.2.3.5, “Validate Sigma1 Destination ID”.
a. The responder SHALL traverse all its installed Node Operational Certificates (NOC), gather
ing the associated trusted roots' public keys from the associated chains and SHALL generate
a candidateDestinationId based on the procedure in Section 4.13.2.4.1, “Destination Identi
fier” for that tuple of <Root Public Key, Fabric ID, Node ID>.
b. The responder SHALL verify that the incoming destinationId matches one of the candidat
eDestinationId generated above. Upon such a match, the associated trusted root, Fabric ID,
Node ID and IPK SHALL be recorded for subsequent use.
c. Note that at the initiator, only the current Epoch Key for the IPK will have been used. At the
receiver, several IPK Epoch Keys may be installed, requiring several candidateDestinationId
to be computed, one per available IPK Operational Key, per NOC.
3. Otherwise, if a match was found for the destinationId, the matched NOC, ICAC (if present), and
associated trusted root SHALL be used for selection of the responderNOC and responderICAC in the
steps for Sigma2.
Page 162 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
a. The responder SHALL set the Resumption ID in the Session Context to the value ResumptionID.
2. The responder SHALL use the Node Operational Key Pair ResponderNOKeyPair, responderNOC, and
responderICAC (if present) corresponding to the NOC obtained in Section 4.13.2.3.4, “Validate Sig
ma1”.
SharedSecret = Crypto_ECDH(
privateKey = ResponderEphKeyPair.privateKey,
publicKey = Msg1.initiatorEphPubKey,
)
5. The responder SHALL encode the following items as a sigma-2-tbsdata with an anonymous tag:
a. responderNOC as a matter-certificate
c. ResponderEphKeyPair.publicKey
d. Msg1.initiatorEphPubKey
e. ResumptionID
TBSData2Signature = Crypto_Sign(
message = sigma-2-tbsdata,
privateKey = ResponderNOKeyPair.privateKey
)
7. The responder SHALL encode the following items as a sigma-2-tbedata, where the encoding of
responderNOC and responderICAC items SHALL be byte-for-byte identical to the encoding in sigma-
2-tbsdata:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 163
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
c. TBSData2Signature
9. The responder SHALL generate the encrypted and integrity protected data:
byte TBEData2_A[] = {}
byte TBEData2_Nonce[13] = /* "NCASE_Sigma2N" */
{0x4e, 0x43, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x69,
0x67, 0x6d, 0x61, 0x32, 0x4e}
TBEData2Encrypted = Crypto_AEAD_GenerateEncrypt(
K = S2K,
P = TBEData2,
A = TBEData2_A,
N = TBEData2_Nonce
)
10. The responder SHALL generate a random number Random = Crypto_DRBG(len = 32 * 8).
11. The responder SHALL generate a session identifier (ResponderSessionId) for subsequent identifi
cation of this secured session. The ResponderSessionId field SHALL NOT overlap with any other
existing PASE or CASE session identifier in use by the responder. See Section 4.12.1.4, “Choosing
Secure Unicast Session Identifiers” for more details. The responder SHALL set the Local Session
Identifier in the Session Context to the value ResponderSessionId.
12. The responder SHALL use the Fabric IPK configured as described in Section 4.13.2.6.1, “Identity
Protection Key (IPK)”.
13. Any context-specific tags not listed in the above TLV schemas SHALL be reserved for future use,
and SHALL be silently ignored if seen by an initiator which cannot understand them.
14. The responder SHALL send a message with Secure Channel Protocol ID and Sigma2 Protocol
Opcode from Table 17, “Secure Channel Protocol Opcodes” whose payload is the TLV-encoded
Sigma2 Msg2 with an anonymous tag for the outermost struct.
Msg2 =
{
responderRandom (1) = Random,
responderSessionId (2) = ResponderSessionId,
responderEphPubKey (3) = ResponderEphKeyPair.publicKey,
encrypted2 (4) = TBEData2Encrypted,
responderSEDParams (5) = sed-parameter-struct (optional)
}
Validate Sigma2
Page 164 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
SharedSecret = Crypto_ECDH(
privateKey = InitiatorEphKeyPair.privateKey,
publicKey = Msg2.responderEphPubKey,
)
byte TBEData2_A[] = {}
byte TBEData2_Nonce[13] = /* "NCASE_Sigma2N" */
{0x4e, 0x43, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x69,
0x67, 0x6d, 0x61, 0x32, 0x4e}
4. If the value of Success is FALSE, the initiator SHALL send a status report: StatusReport(General
Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER) and perform no
further processing.
5. The initiator SHALL verify that the NOC in TBEData2.responderNOC and ICAC in TBEData2.respon
derICAC (if present) fulfills the following constraints:
a. The Fabric ID and Node ID SHALL match the intended identity of the receiver Node, as
included in the computation of the Destination Identifier when generating Sigma1.
b. If an ICAC is present, and it contains a Fabric ID in its subject, then it SHALL match the Fab
ricID in the NOC leaf certificate.
c. The certificate chain SHALL chain back to the Trusted Root CA Certificate TrustedRCAC whose
public key was used in the computation of the Destination Identifier when generating Sig
ma1.
d. All the elements in the certificate chain SHALL respect the Matter Certificate DN Encoding
Rules, including range checks for identifiers such as Fabric ID and Node ID.
6. If any of the validations from the previous step fail, the initiator SHALL send a status report:
StatusReport(GeneralCode: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARA
METER) and perform no further processing.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 165
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
8. If the value of Success is FALSE, the initiator SHALL send a status report: StatusReport(General
Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER) and perform no
further processing.
9. The initiator SHALL encode the following items as a sigma-2-tbsdata with an anonymous tag:
c. Msg2.responderEphPubKey
d. InitiatorEphKeyPair.publicKey
Success = Crypto_Verify(
publicKey = Public key obtained from responderNOC,
message = sigma-2-tbsdata,
signature = TBEData2.signature
)
11. If the value of Success is FALSE, the initiator SHALL send a status report: StatusReport(General
Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER) and perform no
further processing.
12. Set the Resumption ID in the Session Context to the value TBEData2.resumptionID.
13. Set the Peer Session Identifier in the Session Context to the value Msg2.responderSessionId.
Page 166 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
1. The initiator SHALL select its Node Operational Key Pair InitiatorNOKeyPair, Node Operational
Certificates initiatorNOC and initiatorICAC (if present), and Trusted Root CA Certificate Truste
dRCAC corresponding to the chosen Fabric as determined by the Destination Identifier from Sig
ma1.
2. The initiator SHALL encode the following items as a sigma-3-tbsdata with an anonymous tag:
a. initiatorNOC as a matter-certificate
c. InitiatorEphKeyPair.publicKey
d. Msg2.responderEphPubKey
TBSData3Signature = Crypto_Sign(
message = sigma-3-tbsdata,
privateKey = InitiatorNOKeyPair.privateKey
)
c. TBSData3Signature
6. The initiator SHALL generate the encrypted and integrity protected data:
byte TBEData3_A[] = {}
byte TBEData3_Nonce[13] = /* "NCASE_Sigma3N" */
{0x4e, 0x43, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x69,
0x67, 0x6d, 0x61, 0x33, 0x4e}
TBEData3Encrypted = Crypto_AEAD_GenerateEncrypt(
K = S3K,
P = TBEData3,
A = TBEData3_A,
N = TBEData3_Nonce
)
7. Any context-specific tags not listed in the above TLV schemas SHALL be reserved for future use,
and SHALL be silently ignored if seen by a responder which cannot understand them.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 167
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
8. The initiator SHALL send a message with Secure Channel Protocol ID and Sigma3 Protocol Opcode
from Table 17, “Secure Channel Protocol Opcodes” whose payload is the TLV-encoded Sigma3
Msg3 = { encrypted3 (1) = TBEData3Encrypted } with an anonymous tag for the outermost
struct.
9. The initiator SHALL generate the session encryption keys using the method described in Section
4.13.2.6.6, “Session Encryption Keys”.
Validate Sigma3
byte TBEData3_A[] = {}
byte TBEData3_Nonce[13] = /* "NCASE_Sigma3N" */
{0x4e, 0x43, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x69,
0x67, 0x6d, 0x61, 0x33, 0x4e}
3. If the value of Success is FALSE, the responder SHALL send a status report: StatusReport(Gener
alCode: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER) and perform
no further processing.
4. The responder SHALL verify that the NOC in TBEData3.responderNOC and the ICAC in TBE
Data3.responderICAC fulfill the following constraints:
a. The Fabric ID SHALL match the Fabric ID matched during processing of the Destination
Identifier after receiving Sigma1.
b. If an ICAC is present, and it contains a Fabric ID in its subject, then it SHALL match the Fab
ricID in the NOC leaf certificate.
c. The certificate chain SHALL chain back to the Trusted Root CA Certificate TrustedRCAC whose
public key was matched during processing of the Destination Identifier after receiving Sig
ma1.
d. All the elements in the certificate chain SHALL respect the Matter Certificate DN Encoding
Rules, including range checks for identifiers such as Fabric ID and Node ID.
5. If any of the validations from the previous step fail, the responder SHALL send a status report:
StatusReport(GeneralCode: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARA
METER) and perform no further processing.
Page 168 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
7. If the value of Success is FALSE, the responder SHALL send a status report: StatusReport(General
Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER_) and perform
no further processing.
8. The responder SHALL encode the following items as a sigma-3-tbsdata with an anonymous tag:
c. Msg1.initiatorEphPubKey
d. ResponderEphKeyPair.publicKey
Success = Crypto_Verify(
publicKey= public key obtained from initiatorNOC,
message = sigma-3-tbsdata,
signature = TBEData3.signature
)
10. If the value of Success is FALSE, the responder SHALL send a status report: StatusReport(General
Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER) and perform no
further processing.
11. The responder SHALL generate the session keys as described in Section 4.13.2.6.6, “Session
Encryption Keys”.
12. The responder SHALL initialize its Local Message Counter in the Session Context per Section
4.5.1.1, “Message Counter Initialization”.
13. The responder SHALL initialize the Message Reception State in the Session Context` and set the
synchronized max_message_counter of the peer to 0.
14. The responder SHALL set SessionTimestamp to a timestamp from a clock which would allow for
the eventual determination of the last session use relative to other sessions.
The responder SHALL continue validating the Sigma1 message Msg1 as follows:
1. Obtain the SharedSecret from the Section 4.12.2.1, “Secure Session Context” of the resumed ses
sion.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 169
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
byte Resume1MIC_A[] = {}
byte Resume1MIC_Nonce[13] = /* "NCASE_SigmaR1" */
{0x4e, 0x43, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x69,
0x67, 0x6d, 0x61, 0x53, 0x31}
4. If the value of Success is FALSE, the responder SHALL continue processing Sigma1 as if it didn’t
include any resumption information by continuing the steps in Section 4.13.2.3.5, “Validate Sig
ma1 Destination ID”.
a. Set the Peer Session Identifier in the in the Session Context to the value Msg1.initiatorSes
sionId.
The responder SHALL encode and send a Sigma2_Resume message in response to a valid Sigma1 with
response.
2. The responder SHALL generate a session identifier (ResponderSessionId) for subsequent identifi
cation of this session. The ResponderSessionId field SHALL NOT overlap with any other existing
PASE or CASE session identifier in use by the responder. See Section 4.12.1.4, “Choosing Secure
Unicast Session Identifiers” for more details. The responder SHALL set the Local Session Iden
tifier in the Session Context to the value ResponderSessionId.
byte Resume2MIC_P[] = {}
byte Resume2MIC_A[] = {}
byte Resume2MIC_Nonce[13] = /* "NCASE_SigmaR2" */
Page 170 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Resume2MIC = Crypto_AEAD_GenerateEncrypt(
K = S2RK,
P = Resume2MIC_P,
A = Resume2MIC_A,
N = Resume2MIC_Nonce
)
5. Any context-specific tags not listed in the above TLV schemas SHALL be reserved for future use,
and SHALL be silently ignored if seen by an initiator which cannot understand them.
6. The responder SHALL send a message with the Secure Channel Protocol ID and Sigma2Resume Pro
tocol Opcode from Table 17, “Secure Channel Protocol Opcodes” whose payload is the TLV-
encoded Sigma2_Resume ResumeMsg2 with an anonymous tag for the outermost struct.
ResumeMsg2 =
{
resumptionID (1) = ResumptionID,
sigma2ResumeMIC (2) = ResumeMIC2,
responderSessionID (3) = ResponderSessionId,
responderSEDParams (4) = sed-parameter-struct (optional)
}
7. The responder SHALL generate the session keys as described in Section 4.13.2.6.7, “Resumption
Session Encryption Keys”.
Validate Sigma2_Resume
2. The initiator SHALL verify the Resume2MIC by decrypting the following values:
byte Resume2MIC_A[] = {}
byte Resume2MIC_Nonce[13] = /* "NCASE_SigmaR2" */
{0x4e, 0x43, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x69,
0x67, 0x6d, 0x61, 0x53, 0x32}
3. If Success is FALSE, the initiator SHALL send a status report: StatusReport(GeneralCode: FAILURE,
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 171
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
4. The initiator SHALL set the Resumption ID in the Session Context to the value Resume2Msg.resump
tionID.
5. The initiator SHALL generate the session keys as described in Section 4.13.2.6.7, “Resumption
Session Encryption Keys”.
6. The initiator SHALL reset its Local Message Counter in the Session Context per Section 4.5.1.1,
“Message Counter Initialization”.
7. The initiator SHALL reset the Message Reception State of the Session Context` and set the syn
chronized max_message_counter of the peer to 0.
8. The initiator SHALL set SessionTimestamp to a timestamp from a clock which would allow for the
eventual determination of the last session use relative to other sessions.
9. The initiator SHALL set the Peer Session Identifier in the in the Session Context to the value
ResumeMsg2.responderSessionId.
SigmaFinished
To indicate the successful completion of the protocol, the Node receiving Sigma3 (if a new session is
being established) or Sigma2_Resume (if a session is being resumed) SHALL send a status report:
StatusReport(GeneralCode: SUCCESS, ProtocolId: SECURE_CHANNEL, ProtocolCode: SESSION_ESTABLISH
MENT_SUCCESS).
1. The receiving node SHALL initialize the Local Message Counter according to Section 4.5.1.1,
“Message Counter Initialization” for the newly established secure session whose success is
acknowledged by this message.
2. The receiving node SHALL set SessionTimestamp to a timestamp from a clock which would allow
for the eventual determination of the last session usage relative to other sessions.
Destination Identifier
The Destination Identifier field enables the initiator of the Sigma1 message to unambiguously
express the following, in a privacy-preserving manner:
• Which Fabric ID to use for validation of initiator and responder operational certificates
Page 172 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
1. It requires an initiator to have knowledge of both the IPK and one of the full identities of the
responder Node before it forces the responder node to generate a costly Sigma2 message
a. Note that the replay of previously recorded initiator messages is possible, and therefore a
Node MAY choose to keep memory of some prior destination identifiers which it would later
reject if seen again, for additional replay protection
2. It ensures that there is no ambiguity on the responder as to which Fabric was selected for com
munication
◦ initiatorRandom: The value of initiatorRandom that will be used in the same message as the
Destination Identifier
◦ rootPublicKey: The public key of the root of trust of the desired fabric, from the ec-pub-key
field of the Matter Certificate of that root, as an uncompressed elliptic curve point as defined
in section 2.3.3 of SEC1
◦ fabricId: The Fabric ID of the destination, matching the matter-fabric-id field of the Matter
Certificate of the desired destination’s NOC, and encoding the 64-bit scalar as a little-endian
byte order octet string
◦ nodeId: The Node ID of the destination, matching the matter-node-id field of the Matter Cer
tificate of the desired destination’s NOC, and encoding the 64-bit scalar as a little-endian byte
order octet string
2. Obtaining the appropriate Identity Protection Key (IPK) Operational Group Key for the associ
ated Fabric under Group Key Set index 0 within the Group Key Management Cluster.
• Root public key for the common Fabric, in uncompressed elliptical curve point form:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 173
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
fa
IPKEpochKey := 4a:71:cd:d7:b2:a3:ca:90:24:f9:6f:3c:96:a1:9d:ee
◦ Note that this is the octet string of a group Epoch Key as would be provided in the IpkValue
field of the AddNOC command in the Node Operational Credentials Cluster, or in one of the
EpochKey fields of the KeySetWrite command in the Group Key Management Cluster.
◦ The derived Operational Group Key to be used for computation of a destination identifier,
given the above values of root public key, Fabric ID and Identity Protection Key Epoch Key,
would be:
IPK := 9b:c6:1c:d9:c6:2a:2d:f6:d6:4d:fc:aa:9d:c4:72:d4
7e:17:12:31:56:8d:fa:17:20:6b:3a:cc:f8:fa:ec:2f:
4d:21:b5:80:11:31:96:f4:7c:7c:4d:eb:81:0a:73:dc
• DestinationMessage octets:
7e:17:12:31:56:8d:fa:17:20:6b:3a:cc:f8:fa:ec:2f:
4d:21:b5:80:11:31:96:f4:7c:7c:4d:eb:81:0a:73:dc:
04:4a:9f:42:b1:ca:48:40:d3:72:92:bb:c7:f6:a7:e1:
1e:22:20:0c:97:6f:c9:00:db:c9:8a:7a:38:3a:64:1c:
b8:25:4a:2e:56:d4:e2:95:a8:47:94:3b:4e:38:97:c4:
a7:73:e9:30:27:7b:4d:9f:be:de:8a:05:26:86:bf:ac:
fa:62:d3:15:d1:08:c9:06:29:14:ef:13:7b:aa:44:55:
cd
• DestinationIdentifier octets:
dc:35:dd:5f:c9:13:4c:c5:54:45:38:c9:c3:fc:42:97:
c1:ec:33:70:c8:39:13:6a:80:e1:07:96:45:1d:4c:53
Page 174 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Public Key
A public key ec-pub-key is the byte string representation of an uncompressed elliptic curve point as
defined in section 2.3.3 of SEC1.
4.13.2.5. Signature
An ec-signature is the encoding of the signature as defined in Section 3.5.3, “Signature and verifica
tion”.
The Identity Protection Key (IPK) SHALL be the operational group key under GroupKeySetID of 0
for the fabric associated with the originator’s chosen destination.
The IPK SHALL be exclusively used for Certificate Authenticated Session Establishment. The IPK
SHALL NOT be used for operational group communication.
For the generation of the Destination Identifier, the originator SHALL use the operational group key
with the second newest EpochStartTime, if one exists, otherwise it SHALL use the single operational
group key available.
The operational group key index to use to follow the "second newest EpochStartTime" rule is illus
trated below:
1 0 EpochKey0
2 0 EpochKey0
3 1 EpochKey1
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 175
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
S2K = Crypto_KDF(
inputKey = SharedSecret,
salt = IPK || Responder Random || Responder Ephemeral Public Key ||
TranscriptHash,
info = S2K_Info,
len = CRYPTO_SYMMETRIC_KEY_LENGTH_BITS
)
where || indicates message concatenation and IPK is generated according to Section 4.13.2.6.1,
“Identity Protection Key (IPK)”.
S3K = Crypto_KDF(
inputKey = SharedSecret,
salt = IPK || TranscriptHash,
info = S3K_Info,
len = CRYPTO_SYMMETRIC_KEY_LENGTH_BITS
)
where || indicates message concatenation and IPK is generated according to Section 4.13.2.6.1,
“Identity Protection Key (IPK)”.
S3K_Info
S1RK = Crypto_KDF(
inputKey = SharedSecret,
salt = Sigma1.initiatorRandom || ResumptionID,
info = S1RK_Info,
len = CRYPTO_SYMMETRIC_KEY_LENGTH_BITS
Page 176 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
where || indicates message concatenation and ResumptionID is the identifier for the previous ses
sion.
S2RK = Crypto_KDF(
inputKey = SharedSecret,
salt = Sigma1.initiatorRandom || ResumptionID,
info = S2RK_Info,
len = CRYPTO_SYMMETRIC_KEY_LENGTH_BITS
)
where || indicates message concatenation and ResumptionID is the new identifier for the this ses
sion.
4. The initiator SHALL use I2RKey to encrypt and integrity protect messages and the `R2IKey' to
decrypt and verify messages.
5. The responder SHALL use R2IKey to encrypt and integrity protect messages and the `I2RKey' to
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 177
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
6. The AttestationChallenge SHALL only be used as a challenge during device attestation. See Sec
tion 6.2.3, “Device Attestation Procedure” for more details.
3. The initiator SHALL use I2RKey to encrypt and integrity protect messages and the `R2IKey' to
decrypt and verify messages.
4. The responder SHALL use R2IKey to encrypt and integrity protect messages and the `I2RKey' to
decrypt and verify messages.
5. The AttestationChallenge SHALL only be used as a challenge during device attestation. See Sec
tion 6.2.3, “Device Attestation Procedure” for more details.
where || indicates message concatenation and ResumptionID is the new identifier for the this ses
sion.
After the session is established successfully at both peers, some fields SHALL be recorded in the
secure session context for later use (see Section 4.12.2, “Application Data Phase”), in addition to the
Session Encryption Keys:
• The Section 2.5.1, “Fabric References and Fabric Identifier” for the Fabric within which this
secure session is being established
• All peer NOC's case-authenticated-tag (1.3.6.1.4.1.37244.1.6) from the subject field, if present
These fields MAY be recorded at any opportune point during the protocol, but SHALL only be com
mitted to the secure session context once the session is established successfully at both peers.
Page 178 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A node SHALL support at least 3 CASE session contexts per fabric. Device type specifications MAY
require a larger minimum. Unless the device type specification says otherwise, a minimum number
it defines is a per-fabric minimum.
The minimal supported capabilities, subject to the minimal constraints above, are reported in the
CapabilityMinima of the Basic Information cluster.
• Example: If a device type requires at least 4 CASE session contexts, and a node supports 7 fab
rics, the node would support at least 28 CASE session contexts, and ensure that each fabric could
use at least 4 of them.
Groupcast sessions are conceptually long-running, lasting the duration of a node’s membership in a
group. Group membership is tracked in the Group Key Management Cluster. However, on ingress of
each groupcast message, the following ephemeral context SHALL be constructed to inform upper
layers of groupcast message provenance:
1. Fabric Index: Records the local Fabric Index for the Fabric to which an incoming message’s
group is scoped.
2. Group ID: Captures the Group ID to which a groupcast message was sent.
3. Source Node ID: The Source Node ID enclosed by the sender of a groupcast message.
◦ Together, Fabric Index, Group ID and Source Node ID comprise a unique identifier that
upper layers may use to understand the source and destination of groupcast messages.
4. Source IP Address: The unicast source IP address for the originator of the message.
5. Source Port: The source port for the originator of the message.
◦ The source IP address and port MAY be used for unicast responses to group communication
peers, as are required for the Message Counter Synchronization Protocol.
6. Operational Group Key: The Operational Group Key that was used to encrypt the incoming group
message.
7. Group Session ID: Records the Group Session ID derived from the Operational Group Key used to
encrypt the message.
Once a Groupcast Session Context with trust-first policy is created to track authenticated messages
from a given Source Node ID, that record SHALL NOT be deleted or recycled until the node reboots.
This is to prevent replay attacks that first exhaust the memory allocated to group session counter
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 179
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
tracking and then inject older messages as valid, and enforces that trust-first authentication works
as intended within the full duration of a boot cycle. Any message from a source that cannot be
tracked SHALL be dropped.
To prepare a multicast message to a Group ID with a given GroupKeySetID and IPv6 hop count
parameter, the Node SHALL:
1. Obtain, for the given GroupKeySetID, the current Operational Group Key as the Encryption Key,
and the associated Group Session ID.
a. If no key is found for the given GroupKeySetID, security processing SHALL fail and no fur
ther security processing SHALL be done on this message.
2. Perform Section 4.6.1, “Message Transmission” processing steps on the message with the follow
ing arguments:
a. The Destination Node Id argument SHALL be the Group Node Id corresponding to the given
Group ID.
1. Set the private, secured message from step 2 above as the IPv6 payload.
3. Set the IPv6 destination to the Section 2.5.6.2, “IPv6 Multicast Address” based on the provided
destination Group ID, Fabric ID, and Section 11.2.6.2.9, “GroupKeyMulticastPolicy” of the group
key.
4. Set the IPv6 source to an operational IPv6 Unicast Address of the sending Node.
5. Set the IPv6 UDP port number to the Matter IPv6 multicast port.
All Nodes supporting groups SHALL register to receive on the associated IPv6 multicast address, at
the Matter IPv6 multicast port, for each group of which they are a member.
Upon receiving an IPv6 message addressed to one of these Multicast Addresses the Node is regis
tered for, the Node SHALL:
Page 180 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Prove to each other that they are members of the associated group
• Encrypt data in such a way that it can only be decrypted by other members of the group
A central feature of operational group keys is the ability to limit access to keys to a trusted set of
Nodes. In particular, credentials required to generate operational group keys SHALL only be acces
sible to Nodes with a certain level of privilege — those deemed a member of the group. Barring soft
ware error or compromise of a privileged Node, access to shared keys SHALL be computationally
infeasible for non-trusted parties.
Operational group keys are shareable across all types and combinations of Nodes as determined by
the Administrator managing the group. Given all Nodes in possession of the current epoch keys for
the group can communicate with other Nodes in the group, it is the responsibility of the Adminis
trator managing the group to only compose groups of Nodes where communication is appropriate
for the given application and security requirements.
An operational group is a logical collection of Nodes that are running one or more common applica
tion clusters and share a common security domain in the form of a shared, symmetric group key.
For example, a set of Nodes running a lighting application can form an operational group by shar
ing a common operational group key derived from the mechanisms described here. Subgroups can
be formed within the operational group by defining distinct Group Identifiers for each set of Nodes,
while sharing a common operational group key.
Multiple operational groups MAY share the same operational group key, and thus be used to create
logical subgroups over a shared security domain. Operational groups which do not share related
functionality, such as a lighting group and a sprinkler group, SHOULD NOT share the same opera
tional key. As an example policy, a lighting application could have all lighting Nodes share a single
group key, while organizing lighting subgroups for various rooms or spaces within the structure by
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 181
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
An operational group key is a symmetric key used as the Encryption Key during Message Processing
for group communication. An operational group key is produced by applying a key derivation func
tion with an epoch key and salt value as inputs as follows:
OperationalGroupKey =
Crypto_KDF
(
InputKey = Epoch Key,
Salt = CompressedFabricIdentifier,
Info = "GroupKey v1.0",
Length = CRYPTO_SYMMETRIC_KEY_LENGTH_BITS
)
The Info portion of the key derivation is specified in Section 4.15.2.1, “Group Security Info”. The
Salt portion of the key derivation is specified in Section 4.3.2.2, “Compressed Fabric Identifier”.
After the above derivation following the definition of Crypto_KDF in Section 3.8, “Key Derivation
Function (KDF)”, the resulting operational group key would be:
a6:f5:30:6b:af:6d:05:0a:f2:3b:a4:bd:6b:9d:d9:60.
Group membership is enforced by limiting access to the epoch keys. Only Nodes that possess the
input epoch key can derive a given operational key. Lack of possession of a particular epoch key
restricts access, based on the distribution policy of the epoch keys.
The following diagram shows the process by which operational keys are derived from the epoch
key material:
Page 182 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A hard-coded group security info is used to diversify the set of operational group keys. This value is
hard-coded into the standard’s implementation, and thus is distributed with the associated code.
Should the standard’s security mechanisms need to evolve (e.g. to upgrade encryption from AES-
128 to AES-256), the group security info can be changed to ensure that new keys will be derived for
use in the new algorithm. The group security info SHALL be the byte stream "GroupKey v1.0", i.e.
0x47 0x72 0x6f 0x75 0x70 0x4b 0x65 0x79 0x20 0x76 0x31 0x2e 0x30.
With the exception of the group security info, all input key material SHALL be maintained on a per-
Fabric basis.
A group key set limits the key derivation process to Nodes within the respective operational groups.
Access to a group key set is limited based on the functionality provided by a Node and/or the privi
lege afforded to it. For example, certain home security devices, such as a security system or door
lock, may have access to a "Physical Access" group key set, while devices such as light bulbs or win
dow coverings would not.
Operational group key lifetime is limited by assigning an expiration time to each epoch key in a
given group key set. By constraining the validity of a given epoch key to an epoch, the ability for
members to derive and operate with an operational group key can be constrained to particular
periods of time. Epoch keys may be rotated on a periodic basis, and denying access to updated ver
sions of these keys serves as a means to eject group members.
Epoch keys provide a means for limiting the lifetime of derived operational group keys. They also
provide a way for an Administrator to revoke access to Nodes that have been explicitly excluded
from an operational group (albeit after a period of time).
Epoch keys are generated, managed, and stored by an Administrator on a per-Fabric basis. Each key
SHALL be a random value of length CRYPTO_SYMMETRIC_KEY_LENGTH_BITS bits.
Each epoch key has associated with it a start time that denotes the time at which the key becomes
active for use by transmitting Nodes. Epoch key start times are absolute UTC time in microseconds
encoded using the epoch-us representation.
Nodes sending group messages SHALL use operational group keys that are derived from the current
epoch key (specifically, the epoch key with the latest start time that is not in the future). Nodes that
cannot reliably keep track of time calculate the current epoch key as described in Section 4.15.3.4,
“Epoch Key Rotation without Time Synchronization”.
Nodes receiving group messages SHALL accept the use of any key derived from one of the currently
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 183
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
installed epoch keys. This requirement holds regardless of whether the start time for the key is in
the future or the past. This means Nodes continue to accept communication secured under an
epoch key until that key is withdrawn by explicitly deleting the key from a Node’s group state by
the key distribution Administrator.
Note that there is no end time associated with an epoch key. An epoch key marked with the maxi
mum start time SHALL be disabled and render the corresponding epoch key slot unused.
The epoch keys are managed using the Group Key Management Cluster. For every group key set
published by the key distribution Administrator, there SHALL be at least 1 and at most 3 epoch keys
in rotation. Key additions or updates are done using the KeySetWrite command.
Key updates are idempotent operations to ensure the Administrator is always the source of truth.
An epoch key update SHALL order the keys from oldest to newest.
Any epoch key update MAY deliver a partial key set but SHALL include EpochKey0 and MAY include
EpochKey1 and EpochKey2. Any update of the key set, including a partial update, SHALL remove all
previous keys in the set, however many were defined.
An Administrator MAY completely remove a group key set from a Node using the KeySetRemove
command.
The key distribution Administrator generates new epoch keys on a regular basis, giving each a
unique id and adding them to the list of existing epoch keys within a group. The start time for each
new epoch key is scheduled to occur after a configurable key propagation interval. The propagation
interval is set sufficiently large such that the Administrator can synchronize all Nodes in the opera
tional group with the new epoch key list within that time.
The rotation rate for epoch keys is expected to be on the order of days to weeks for typical applica
tions, but the rate is configurable as required by the key distribution Administrator. Because of the
relatively long rotation interval, and the overlap of active epoch keys, local clock drift within Nodes
is generally not a concern.
Although epoch keys are distributed with an associated start time, it is nonetheless possible for
Nodes that do not maintain a synchronized clock to participate in key rotation. Specifically, upon
receiving a new epoch key list from the key distribution Administrator, such a Node can note which
of the keys is the current epoch key by comparing their relative start times and using the current
epoch key which has the second newest time. It can then use the current key for all locally initiated
security interactions until such time as it makes contact with the distribution Administrator again.
This scheme requires the Node to receive epoch keys from the key distribution Administrator at a
rate that is at least as fast as the configured key propagation interval. The Administrator SHOULD
provide a sufficient set of epoch keys to Nodes that do not maintain synchronized time so that they
can maintain communication with other group members while a key update is in progress. The key
Page 184 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
distribution Administrator SHOULD update all Nodes without time, such as SEDs, before the new
epoch key is activated, and then let Nodes with time all roll to the new epoch key at the synchronized
start time.
The full life-cycle of Epoch Key rotation is shown in Figure 18, “Epoch Key Rotation”. For each epoch
key slot, the start time of the key is shown as one of the following values:
• Previous - the active key with the second newest start time.
1. Admin - an update of an old key by the Administrator. Changes made during this state transi
tion are indicated in green.
2. Epoch Activate - activation of an epoch key due to system time becoming greater than the start
time. Changes during this state transition are indicated in yellow.
The Admin Refresh state begins when an entire group key set is freshly written to a Node during
commissioning or administration, such as when a new group is added. The Epoch Activate state is
entered when time progresses to activate a fresh current epoch key, aging out the other epoch key
slots. The Admin Update state is entered when an Administrator updates an old epoch key with a new
epoch key. When in steady state, the Admin Refresh state MAY be entered in place of an Admin Update
state transition to update additional keys to the required ones or to completely reset the group secu
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 185
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
rity.
Note that in the above diagram, only an example key distribution scheme is illustrated. It is also
possible to devise key distribution algorithms that to not rely on time synchronization, or group
configurations that never rotate keys in favor or configuring new groups and removing groups and
group key sets with expired keys.
The Group Key Set ID is a 16-bit field that uniquely identifies the set of epoch keys used for deriva
tion of an operational group key. Each Group Key Set ID is scoped to a particular Fabric and
assigned by an Administrator so as to be unique within a Fabric.
The Group Key Set ID of 0 SHALL be reserved for managing the Identity Protection Key (IPK) on a
given Fabric. It SHALL NOT be possible to remove the IPK Key Set if it exists.
A Group Session ID is a special case of a 16-bit Session ID that is specifically used for group commu
nication. When Session Type is 1, denoting a group session, the Session ID SHALL be a Group Ses
sion ID as defined here. The Group Session ID identifies probable operational group keys across a
Fabric. The Group Session ID for a given operational group key is derived by treating the output of a
Crypto_KDF against the associated Operational Group Key as a big-endian representation of a 16-bit
integer, as follows:
GroupKeyHash =
Crypto_KDF
(
InputKey = OperationalGroupKey,
Salt = [],
Info = "GroupKeyHash",
Length = 16 // Bits
)
After the above derivation following the definition of Crypto_KDF in Section 3.8, “Key Derivation
Function (KDF)”, the resulting Group Session ID data would be:
Page 186 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Group Session ID scalar value to be used for further processing: 0xB9F7 (47607 decimal)
The Group Session ID MAY help receiving nodes efficiently locate the Operational Group Key used to
encrypt an incoming groupcast message. It SHALL NOT be used as the sole means to locate the asso
ciated Operational Group Key, since it MAY collide within the fabric. Instead, the Group Session ID
provides receiving nodes a means to identify Operational Group Key candidates without the need to
first attempt to decrypt groupcast messages using all available keys.
On receipt of a message of Group Session Type, all valid, installed, operational group key candidates
referenced by the given Group Session ID SHALL be attempted until authentication is passed or
there are no more operational group keys to try. This is done because the same Group Session ID
-16
might arise from different keys. The chance of a Group Session ID collision is 2 but the chance of
both a Group Session ID collision and the message MIC matching two different operational group
-80
keys is 2 .
Group Session Ids are sized to fit within the context of the Session Identifier field of a message.
When used in this context, the Group Session ID value allows a receiving Node to identify the
appropriate message encryption key to use from the set of active operational keys it has currently
installed.
The operational group keys mechanism relies on a key distribution Administrator to reliably dis
tribute select epoch key material to appropriate participants. It is assumed the key distribution
Administrator is in possession of all epoch keys, has knowledge of the set of group security domain
members which require access to those keys, and is responsible for pushing updates of these cre
dentials to all authorized Nodes in those groups it manages.
Key material is distributed to key holders using the Group Key Management Cluster. In general, the
key material of a Node is exposed via Attributes with ACL entries that only allow access by the key
distribution Administrator. The information exposed in the Section 11.2, “Group Key Management
Cluster” includes the group epoch keys and associated group session identifiers.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 187
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This section provides an example of the operations required to install a group onto a newly com
missioned node.
Page 188 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Sequence:
• Admin:
◦ Generate fabric-unique group ID GID and random key key0 for group key set ID K.
◦ Write the group key set K to the remote node, GroupMember, using KeySetWrite command.
◦ Associate group ID GID with key set K by writing an entry to the GroupKeyMap list attribute.
• GroupMember:
◦ Node subscribes to the IPv6 multicast address generated from the fabric ID and group ID.
• Admin:
◦ Associate endpoint with group ID GID by sending the Groups cluster’s AddGroup command to
endpoint.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 189
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Message counter synchronization is an essential part of enabling secure messaging between mem
bers of an operational group. Specifically, it protects against replay attacks, where an attacker
replays older messages, which may result in unexpected behaviour if accepted and processed by
the receiver.
The recipient of a message encrypted with a group key can trust and process that message only if it
has kept the last message counter received from a given sender using that key.
Underlying MCSP is a simple request / response protocol. When a multicast message with unknown
counter is received, synchronization via MCSP begins by sending a synchronization request via uni
cast UDP to the multicast message originator’s unicast IPv6 address. That originator then sends a
synchronization response to the unsynchronized node via unicast UDP. After cryptographic verifi
cation, the formerly unsynchronized node is now synchronized with the originator’s message
counter and can trust the original and subsequent messages from the originator node.
There are two methods for synchronizing the message counter of a peer node, which are config
urable per-group-key based on the GroupKeySecurityPolicy field of a given group key set (see
GroupKeySetStruct).
The first authenticated message counter from an unsynchronized peer is trusted, and its message
counter is used to configure message-counter-based replay protection on future messages from that
node. All control messages (any message with C Flag set) use the control message counter and
SHALL use Trust-first for synchronization. Note that MCSP is not used for Trust-first synchroniza
tion.
This policy provides lower latency for less security-sensitive applications such as lighting.
The message that triggers message counter synchronization is stored, a message counter synchro
nization exchange is initiated, and only when the synchronization is completed is the original mes
sage processed. Cache-and-sync provides replay protection even in the case where a Node has been
rebooted, at the expense of higher latency.
Support for the cache-and-sync policy and MCSP is optional. A node indicates its ability to support
this feature via the Group Key Management cluster FeatureMap.
The Group Peer State Table stores information about every peer with which the node had a group
Page 190 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
message exchange. For every peer node id the following information is available in the table:
◦ Synchronized Data Message Counter - the largest encrypted data message counter received
from the peer, if available.
◦ The message reception state bitmap tracking the recent window of data message counters
received from the peer.
◦ Synchronized Control Message Counter - the largest encrypted control message counter
received from the peer, if available.
◦ The message reception state bitmap tracking the recent window of control message counters
received from the peer.
There are three scenarios where the receiver of an encrypted message does not know the sender’s
last message counter:
• The device rebooted without persisting the Group Peer State Table content. Note: it is not
required to persist the Peer State Table.
• The entry for the Peer in the Group Peer State Table was expunged due to the table being full.
The next sections describe the functional protocol used to request message counter synchronization
with a peer and form responses to such message counter synchronization requests.
The Message Counter Synchronization Request (MsgCounterSyncReq) message is sent when a mes
sage was received from a peer whose current message counter is unknown.
A MsgCounterSyncReq message SHALL set the C Flag in the message header. The control message
counter SHALL be used for message protection.
A MsgCounterSyncReq message SHALL be secured with the group key for which counter synchro
nization is requested and SHALL set the Session Type to 1, indicating a group session as per the
rules outline in Section 4.16.5, “Message Counter Synchronization Exchange”.
The payload of the MsgCounterSyncReq message takes the format defined in Table 24, “Message
Counter Sync Request”:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 191
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A MsgCounterSyncRsp message SHALL set the C Flag in the message header. The control message
counter SHALL be used for message protection.
The MsgCounterSyncRsp message has the format defined in Table 25, “Message Counter Sync
Response”:
4 bytes Synchronized Counter The current data message counter for the node sending
the MsgCounterSyncRsp message.
8 bytes Response The Response SHALL be the same as the 64-bit value sent
in the Challenge field of the corresponding MsgCounter
SyncReq.
An unsynchronized message is one that is cryptographically verified from a node whose message
counter is unknown. Upon receipt of an unsynchronized message process the message as follows:
1. The message SHALL be of Group Session Type, otherwise discard the message.
2. If C Flag is set to 1:
a. Create a Message Reception State and set its max_message_counter to the message counter of
the given message, i.e. trust-first.
3. If C Flag is set to 0:
a. Determine the Section 11.2.6.2.2, “GroupKeySecurityPolicy” (as set by the Section 11.2,
“Group Key Management Cluster”) of the operational group key used to authenticate the
message.
i. Set the peer’s group key data message counter to Message Counter of the message.
A. Clear the Message Reception State bitmap for the group session from the peer.
Page 192 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
B. Mark the peer 's group key data message counter as synchronized.
i. If MCSP is not in progress for the given peer Node ID and group key:
A. An implementation MAY queue the message for later processing after MCSP com
pletes if resources allow.
For each peer Node ID and group key pair there SHALL be at most one synchronization exchange
outstanding at a time.
f. The Session ID field SHALL be set to the Group Session Id for the operational group key
being synchronized.
g. The Source Node ID field SHALL be set to the Node ID of the sender Node.
h. The Destination Node ID field SHALL be set to the Source Node ID of the message that trig
gered the synchronization attempt.
a. The Exchange ID of the message SHALL be set to match the new Exchange.
3. Set the Challenge field to the value returned by Crypto_DRBG(len = 8 * 8) and store that value to
resolve synchronization responses from the destination peer.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 193
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ii. Any message waiting on synchronization associated with the exchange SHALL be dis
carded.
i. The Source Node ID field matches the Destination Node ID field of the most recent Msg
CounterSyncReq message generated for that Node.
ii. The Response field corresponds to the Challenge field of the MsgCounterSyncReq mes
sage.
5. Invoke Section 4.6.1, “Message Transmission” using parameters from step 1 to encrypt and then
send the request message over UDP to the IPv6 unicast address of the destination.
a. The request message SHALL use the same operational group key as the message which trig
gered synchronization.
b. The group key SHALL be known/derivable by both parties (sender and receiver).
1. Verify the Destination Node ID field SHALL match the Node ID of the receiver, otherwise discard
the message.
f. The Session ID field SHALL be set to the Group Session Id for the operational group key
being synchronized.
g. The Source Node ID field SHALL be set to the Node ID of the sender Node.
h. The Destination Node ID field SHALL be set to the Source Node ID of the MsgCounterSyn
cReq.
a. The Response field SHALL be set to the value of the Challenge field from the MsgCounterSyn
cReq.
b. The Synchronized Counter field SHALL be set to the current Global Group Encrypted Data
Page 194 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
3. Use the same exchange context as the MsgCounterSyncReq being responded to.
a. The Exchange ID of the message SHALL be set to the Exchange ID of the MsgCounterSyncReq.
4. Invoke Section 4.6.1, “Message Transmission” using parameters from step 1 to encrypt and then
send the response message over UDP to the IPv6 unicast address of the destination.
b. The Exchange ID field SHALL match the Exchange ID used for the original MsgCounterSyn
cReq message.
c. The Response field SHALL match the Challenge field used for the original MsgCounterSyn
cReq message.
d. The Destination Node ID field SHALL match the Source Node ID of the original MsgCounter
SyncReq message.
e. The Source Node ID field SHALL match the Destination Node ID of the original MsgCounter
SyncReq message.
2. On verification failure:
3. On verification success:
a. Set the peer’s group key data message counter to Synchronized Counter.
b. Clear the Section 4.5.4.1, “Message Reception State” bitmap for the peer.
c. Mark the peer 's group key data message counter as synchronized.
d. Resume processing of any queued message that triggered synchronization according to Sec
tion 4.5.6, “Counter Processing of Incoming Messages”.
i. If more than one message is queued from the synchronized peer, using the same opera
tional group key, the messages SHALL be processed in the order received.
e. Close the synchronization exchange created for the original MsgCounterSyncReq message.
While conducting Message Counter Synchronization with a peer, nodes SHALL maintain the follow
ing session context. For nodes initiating message counter synchronization, this context SHALL be
maintained throughout the full exchange of MsgCounterSyncReq and MsgCounterSyncRsp messages.
For nodes responding to MsgCounterSyncReq messages, the context SHALL only be maintained long
enough to generate and successfully transmit the MsgCounterSyncRsp message.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 195
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
1. Fabric Index: Records the Index for the Fabric within which nodes are conducting message
counter synchronization.
◦ Fabric Index is derived by identification of an Operational Group Key associated with the
fabric through successful decryption with that key and verification of the Message Integrity
Check. For nodes initiating counter synchronization, this occurs at decryption of an inbound
groupcast message. For nodes in the responder role, this occurs at decryption of an inbound
MsgCounterSyncReq message.
2. Peer Node ID: Records the node ID of the peer with which message counter synchronization is
being conducted.
◦ For nodes initiating message counter synchronization, this is the node ID of the responder.
For nodes responding to message counter synchronization, this is the node ID of the initia
tor.
3. Role: Records whether the node is the initiator of or responder to message counter synchroniza
tion.
◦ Together, Fabric Index, Peer Node ID and Role comprise a unique key that can be used to
match incoming messages to ongoing MCSP exchanges.
4. Message Reception State: Provides tracking for the Control Message Counter of the remote peer.
7. Operational Group Key: The Operational Group Key that is being used to encrypt messages
within the counter synchronization exchange.
8. Group Session ID: Records the Group Session ID derived from the Operational Group Key that is
being used to encrypt messages within the counter synchronization exchange.
The following sequence diagram shows an example of how message counter synchronization
behaves in the most common scenario.
Assumptions:
Page 196 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Sequence:
• Sender:
◦ Generates, encrypts and sends Msg1 as a multicast message. Msg1 could be:
▪ Regular message that starts encrypted group communication with receivers Receiver1
and Receiver2.
◦ Receive, decrypt, authenticate, and cache Msg1 message for later processing.
• Sender:
• R1 and R2 each:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 197
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
◦ On verification success: marks Sender 's group key message counter as synchronized.
While BTP is a generic protocol, Matter specifically uses BTP to define a Matter-over-Bluetooth Low
Energy (MATTERoBLE) Interface. A MATTERoBLE Interface MUST implement BTP as a universally
compatible transport mode. A MATTERoBLE Interface SHALL only be used to transport Matter mes
sages as the BTP SDU.
The BTP session handshake allows devices to check BTP protocol version compatibility and
exchange other data before a BTP session is established. Once established, this session is used to
send and receive BTP SDUs (such as Matter messages) as BTP Message Segments. A BTP session MAY
open and close with no effect on the state of the underlying Bluetooth LE connection, except in the
case where a BTP session is closed by the Peripheral Device. Either the Peripheral or the Central
MAY signal the end of a BTP session by closing the underlying BLE connection.
Due chiefly to constraints put on design by resource-limited BLE chipsets, BTP defines a receive
window for each side of a session in units of GATT PDUs. Each GATT Write Characteristic Value
(ATT_WRITE_REQ) PDU or Indication (ATT_HANDLE_VALUE_IND) PDU is sent with a sequence num
ber which the receiver uses to acknowledge receipt of each packet at the BTP layer and open its
receive window from the sender’s perspective.
Conceptually, an open BTP session is exposed to the next-higher session layer as a full-duplex mes
sage stream.
Page 198 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A BTP Frame consists of an 8-bit header followed by one or more optional fields, as detailed below.
BTP uses little endian encoding for any header fields larger than one byte in length.
Table 26, “BTP Packet PDU format” defines the BTP Packet PDU format.
- H M - A E - B [Management Opcode]
[Message Length]
[Segment Payload]…
H (Handshake) bit
Set to '0' for normal BTP packets. When set, this bit indicates a BTP handshake packet for session
establishment and has a different packet format described below.
Indicates the presence ('1') or absence ('0') of the Management Opcode field. All segments of a mes
sage MUST set this bit to the same value.
A (Acknowledgement) bit
Set to '1' on the first segment of a BTP SDU and set to '0' for all remaining segments of the same BTP
SDU. It indicates the presence of the Message Length field.
Set to '1' on the last segment of a BTP SDU and set to '0' for all other segments of the same BTP SDU.
A segment MAY have both the Beginning and Ending bits set indicating that a full BTP SDU is
included in the message. When set, the segment payload length is equal to the total remaining unre
ceived message data. When not set, the segment payload length is equal to the maximum allowable
BTP session packet size minus header overhead.
Ack Number
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 199
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Sequence Number
Mandatory field for regular data messages specified in Section 4.17.3.6, “Sequence Numbers”.
Message Length
Optional field present in Beginning Segment only. Value indicates the length in bytes of the full mes
sage buffer to be transmitted. None of the BTP Packet PDU fields is included in the Message Length.
Segment Payload
Optional field containing a segment of the Service Data Unit (SDU) message in transmission to the
receiver.
BTP defines different control frame formats depending on the Management Opcode that is in the
BTP Packet PDU header. Valid Management Opcodes for BTP Control Frames are defined in Table
27, “BTP Control codes”.
Requested ATT_MTU
H (Handshake) bit
M (Management) bit
Used to negotiate the highest version capability between a Device pair. Supported versions are
listed once each, newest first, in descending order. Unused version fields are filled with ‘0’.
Page 200 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• 0 — Unused field
Requested ATT_MTU
Requested ATT_MTU is a 16-bit unsigned integer field containing the size of the GATT PDU
(ATT_MTU) that can be received by the sender minus the size of the GATT header (3). This value is
obtained via the standard ATT MTU exchange procedure (see Bluetooth® Core Specification 4.2 Vol
3, Part F, Section 3.4.2 "MTU Exchange") and is used to validate that both sides of the BLE connec
tion are using the common minimum value. If BTP is not aware of the negotiated GATT MTU, the
value shall be set to '23', indicating the minimum ATT_MTU defined by GATT. If the client has no
preference, the value may be set to '0'.
Each GATT PDU used by the BTP protocol introduces 3 byte header overhead mak
NOTE
ing the maximum BTP Segment Size for the session equal to negotiated ATT_MTU-3.
Value of the maximum receive window size supported by the server, specified in units of BTP pack
ets where each packet may be up to 244 bytes in length. This maximum was chosen so a single BTP
segment can fit into a single 255 byte BLE link layer PDU, including all headers from the link layer,
L2CAP, GATT, and BTP.
H (Handshake) bit
M (Management) bit
Reserved
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 201
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Selected ATT_MTU
Value of the maximum ATT_MTU for the connection selected by the server as a 16-bit unsigned inte
ger.
Value of the maximum receive window size supported by the server, specified in units of BTP pack
ets where each packet may be up to the selected segment size in length.
Bluetooth Transport Protocol provides a packetized stream interface over GATT but says nothing
about the actual contents of the data packets it transports. The BTP Service UUID is used to specify
the actual contents of the packets (see Table 30, “BTP Service UUID”).
While a single BTP connection may exist between a BTP Client and BTP Server, multiple BTP ses
sions may be established between various peers.
The BTP GATT service is composed of a service with three characteristics—C1, C2 and C3 (see Table
31, “BTP GATT service”). The client SHALL exclusively use C1 to initiate BTP sessions by sending BTP
handshake requests and send data to the server via GATT ATT_WRITE_CMD PDUs. While a client is
subscribed to allow indications over C2, the server SHALL exclusively use C2 to respond to BTP
handshake requests and send data to the client via GATT ATT_HANDLE_VALUE_IND PDUs.
Attribute Description
Page 202 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
For all messages sent from the BTP Client to BTP Server, BTP SHALL use the GATT Write Character
istic Value sub-procedure. For all messages sent from the BTP Server to BTP Client, BTP SHALL use
the GATT Indications sub-procedure.
The values of C1 and C2 SHALL both be limited to a maximum length of 247 bytes. This constraint is
imposed to align with maximum PDU size when LE Data Packet Length Extensions (DPLE) is
enabled on Bluetooth 4.2 hardware. Per Bluetooth® Core Specification 4.2 Vol 3, Part F, Section 3.2.9
"Long Attribute Values", the maximum characteristic value length is 512 bytes. The maximum
lengths of C1 and C2 may increase in a future version of the BTP specification to allow higher
throughput on BLE connections whose ATT_MTU exceeds 247 bytes.
C3 is an optional characteristic that the server MAY use to include additional data required during
the provisioning as defined in Section 5.4.2.5.7, “GATT-based Additional Data”.
BTP Clients SHALL perform certain GATT operations synchronously, including GATT discovery, sub
scribe, and unsubscribe operations. GATT discovery, subscribe, or unsubscribe SHALL NOT be initi
ated while the result of a previous operation remains outstanding. This requirement is imposed by
GATT protocol.
Before a BTP session can be initiated, a central SHALL first establish a BLE connection to a periph
eral. Once a BLE connection has been formed, centrals SHALL assume the GATT client role for BTP
session establishment and data transfer, and peripherals SHALL assume the GATT server role. If
peripheral supports LE Data Packet Length Extension (DPLE) feature it SHOULD perform data
length update procedure before establishing a GATT connection.
Before establishing a BTP session, the GATT client SHOULD perform a GATT Exchange MTU proce
dure.
After that the BTP Client SHALL execute the GATT discovery procedure. The GATT discovery proce
dure starts with primary service discovery using either the GATT Discover All Primary Services sub-
procedure or the GATT Discover Primary Services by Service UUID sub-procedure.
The BTP Client SHALL perform either the GATT Discover All Characteristics of a Service sub-proce
dure or the GATT Discover Characteristics by UUID sub-procedure in order to discover the C1 and
C2 characteristics.
The BTP Client SHALL perform the GATT Discover All Characteristic Descriptors sub-procedure in
order to discover the Client Characteristic Configuration descriptor (CCCD) of C2 characteristic.
To initiate a BTP session, a BTP Client SHALL send a BTP handshake request packet to the BTP
Server via a ATT_WRITE_CMD PDU on characteristic C1 of the BTP Service. The handshake request
packet SHALL include, a list of BTP protocol versions supported by the client, the client’s GATT
ATT_MTU, and the client’s maximum receive window size. The list of supported protocol versions
SHALL be sorted in descending numerical order. If the client cannot determine the BLE connec
tion’s ATT_MTU, it SHALL specify a value of '23' (the minimum ATT_MTU supported by GATT) for
this field in the handshake request. For a detailed specification of the handshake request binary
data format, see Section 4.17.2.3, “BTP Handshake Request”.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 203
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
After the BTP Client acknowledges delivery of the handshake request packet, upon receipt of a
GATT Write Response, the BTP Client SHALL enable indications over C2 characteristics by writing
value 0x01 to C2’s Client Characteristic Configuration descriptor as described in Bluetooth® Core
Specification 4.2 Vol 3, Part C, Section 10.3.1.1 "Handling GATT Indications and Notifications".
Once the GATT server has received a client’s BTP handshake request and confirmed the client’s sub
scription to C2, it SHALL send a BTP handshake response to the client via a ATT_HANDLE_VAL
UE_IND PDU on C2. This response SHALL contain the window size, maximum BTP packet size, and
BTP protocol version selected by the server. For a detailed specification of the handshake response
binary data format, see Section 4.17.2.4, “BTP Handshake Response”.
The server SHALL select a window size equal to the minimum of its and the client’s maximum win
dow sizes. Likewise, the server SHALL select a maximum BTP Segment Size for the BLE connection
by taking the minimum of 244 bytes (the maximum characteristic value length of C1 and C2),
server’s ATT_MTU-3 and ATT_MTU-3 as declared by the client.
The server SHALL select a BTP protocol version that is the newest which it and the client both sup
port, where newer protocol version numbers are strictly larger than those of older versions. The
version number returned in the handshake response SHALL determine the version of the BTP pro
tocol used by client and server for the duration of the session.
If the server determines that it and the client do not share a supported BTP protocol version, the
server SHALL close its BLE connection to the client. When a client sends a handshake request, it
SHALL start a timer with a globally-defined duration of BTP_CONN_RSP_TIMEOUT seconds. If this
timer expires before the client receives a handshake response from the server, the client SHALL
close the BTP session and report an error to the application. Likewise, a server SHALL start a timer
with the same duration when it receives a handshake request from a client. If this timer expires
before the server receives a subscription request on C2, the server SHALL close the BTP session and
report an error to the application. The state machine in Figure 23, “BTP session handshake” illus
trates the function of these timers as part of the BTP session establishment procedure.
Page 204 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Once a BTP session has been established, the next-higher-layer application on both peers may use
this BLE connection to send and receive data via GATT writes or indications, according to a peer’s
GATT role. Clients SHALL exclusively use GATT Write Characteristic Value sub-procedure to send
data to servers and servers SHALL exclusively use GATT Indication sub-procedure to send data to
clients.
All BTP packets sent on an open BLE connection SHALL adhere to the BTP Packet PDU binary data
format specified in BTP Frame Formats. All BTP packets SHALL include a header flags byte and an
8-bit unsigned sequence number. All other packet fields are optional. These optional fields include
an 8-bit unsigned received packet acknowledgement number, 16-bit unsigned buffer length indica
tion, and variable-length buffer segment payload.
This section is defined entirely within the scope of a single BTP session. Concurrent BTP sessions
between the same peer and multiple remote hosts SHALL maintain separate and independent
acknowledgement timers, sequence numbers, and receive windows.
When the session layer (that is, MATTERoBLE) sends a Matter Message as a BTP SDU over a BTP ses
sion, that BTP SDU SHALL be split into ordered, non-overlapping BTP segments so the set of all BTP
segments may be reassembled into the original BTP SDU (see Figure 22, “MATTERoBLE: Matter Mes
sage / BTP layering”). Each BTP segment SHALL be prepended with a BTP packet header and sent as
the payload of a single GATT PDU. If a BTP SDU is split into more than one BTP segment, the BTP
segments SHALL be sent in order of their position in the original BTP SDU, starting with the BTP
segment at the buffer’s head.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 205
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
At any point in time, only one BTP SDU may be transmitted in each direction over a BTP session.
The transmission of BTP segments of any two BTP SDUs SHALL not overlap. If the application
attempts to send one BTP SDU while transmission of another BTP SDU is in progress, the new BTP
SDU SHALL be appended to a first-in, first-out queue. The next BTP SDU SHALL be dequeued from
this queue and transmitted once transmission of the current BTP SDU completes, that is, once all
BTP segments of the current BDP SDU have been transmitted and received by the peer via GATT.
The first BTP segment of a BTP SDU sent over a BTP session SHALL have its Beginning Segment
header flag set to indicate the beginning of a new BTP SDU (see Table 26, “BTP Packet PDU format”).
The presence of this flag SHALL indicate the further presence of a 16-bit unsigned integer field, the
Message Length, that provides the receiver with the total length of the BTP SDU. The last BTP seg
ment for a given BTP SDU SHALL have its Ending Segment flag set to indicate the end of the trans
mitted BTP SDU. A BTP packet that bears an unsegmented BTP SDU—that is, a BTP SDU small
enough to fit into a single BTP segment—SHALL have both its Beginning Segment and Ending Seg
ment flags set.
The size of a single BTP SDU sent via BTP is limited to 64KB, that is, the maximum size of the Mes
sage Length field in the BTP packet header. The number of segments used to send a buffer is unlim
ited and delimited by the Beginning Segment and Ending Segment bits in the BTP packet header.
The upper layer imposes more stringent requirements over the maximum SDU size, such as Section
4.4.4, “Message Size Requirements”.
The length of the data payload in each BTP segment whose Ending Segment bit is not set SHALL be
equal to the session’s maximum BTP packet size minus the size of that packet’s header. If a packet’s
Ending Segment bit is set, the length of its BTP segment data payload SHALL equal the size of the
original BTP SDU minus the total size of all previously transmitted BTP segments of that BTP SDU. In
this way, the length of a SDU’s last BTP segment is implied by its size.
Once a peer receives a complete set of BTP segments, it SHALL reassemble them in the order
received, and verify that the reassembled BTP SDU’s total length matches that specified by the
Beginning Segment’s Message Length value. If they match, the receiver SHALL pass the reassem
bled BTP SDU up to the next-higher-layer. If the reassembled buffer’s length does not match that
specified by the sender, or if received BTP segment payload size would exceed the maximum BTP
packet size, or receiver receives an Ending Segment without the presence of a previous Beginning
Segment, or a Beginning Segment when another BTP SDU’s transmission is already in progress, the
receiver BTP SHALL close the BTP session and report an error to the application.
All BTP packets SHALL be sent with sequence numbers, regardless of whether they contain SDU
segments (for example, a packet acknowledgement with no attached segment payload). The pur
pose of sequence numbers is to facilitate the BTP receive window. A BTP sequence number SHALL
be defined as an unsigned 8-bit integer value that monotonically increments by 1 with each packet
sent by a given peer. A sequence number incremented past 255 SHALL wrap to zero.
Sequence numbers SHALL be separately defined for either direction of a BTP session. The sequence
number of the first packet sent by the client after completion of the BTP session handshake SHALL
be zero. The server’s BTP handshake response bears an implied sequence number of zero because
it occupies a slot in the client’s receive window. The client acknowledges the server’s BTP hand
Page 206 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
shake response with an acknowledgement sequence of zero. For this reason, the sequence number
of the first data packet sent by the server after completion of the BTP session handshake SHALL be
1.
Peers SHALL check to ensure that all received BTP packets properly increment the sender’s previ
ous sequence number by 1. If this check fails, the peer SHALL close the BTP session and report an
error to the application.
The purpose of the receive window is to enable flow control at the GATT session layer between BTP
peers.
Flow control is required at the GATT transport layer for embedded platforms that use "minimal"
BLE chipsets. These platforms may have limited space on the host processor to receive packets from
their BLE chipsets. In the case of some dual-chip architectures, writes and indications are received
and confirmed by the BLE chip with no input from the host processor. When the BLE chip sends the
result of a received GATT PDU to the host processor, that payload and the corresponding BTP packet
will be permanently lost if the host does not have enough space to receive it. For this reason, knowl
edge of a remote host’s ability to reliably receive GATT PDUs is presented at the transport layer in
the form of the BTP receive window.
Both peers in a BTP session SHALL define a receive window, where the window’s size indicates the
number of GATT PDUs (that is, BTP segments) a peer can reliably receive and store without session-
layer acknowledgment. A maximum window size SHALL be established for both peers as part of
the BTP session handshake. To prevent sequence number wrap-around, the largest maximum win
dow size any peer may support is 255.
Both peers SHALL maintain a counter to reflect the current size of the remote peer’s receive win
dow. Each peer SHALL decrement this counter when it sends a packet via GATT write or indication
and increment this counter when a sent packet is acknowledged.
If a local peer’s counter for a remote peer’s receive window is zero, the window SHALL be consid
ered closed, and the local peer SHALL NOT send packets until the window reopens (is incremented
above zero). When a closed window reopens, a local peer SHALL immediately resume any pending
BTP packet transmission.
A local peer SHALL also not send packets if the remote peer’s receive window has one slot open and
the local peer does not have a pending packet acknowledgement. This is to avoid the situation
where the receive windows of both peers are full and neither can send an acknowledgement to
reopen its window for the other. Because the server’s handshake response bears an implicit BTP
sequence number of zero, a server SHALL initialize its counter for the client’s receive window size
at (negotiated maximum window size - 1). A client SHALL initialize its counter for the server’s
receive window at the negotiated maximum window size.
Both peers SHALL also keep a counter of their own receive window size based on the sequence
number difference between the last packet they received and the last packet they acknowledged.
This counter is used to proactively send early packet acknowledgements when a peer’s own receive
window is about to close. See Section 4.17.3.8, “Packet Acknowledgements” for details.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 207
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
An example scenario involving BTP receive windows is depicted in Figure 24, “Example receive
window scenario”, complete with packet acknowledgements as specified in Section 4.17.3.8, “Packet
Acknowledgements”. In this scenario, the client transmits a three-segment buffer to the server once
it receives the server’s handshake request. The handshake request occupies one slot in the client’s
initial receive window. The server’s initial receive window is empty. Both client and server have a
maximum window size of 4.
The purpose of sequence numbers and packet receipt acknowledgements is to support the BTP
receive window and provide a keep-alive signal when a session is idle to affirm the health and con
tinued operation of a remote BTP stack.
Per BTP Frame Formats, BTP packet receipt acknowledgements SHALL be received as unsigned 8-
bit integer values in the header of a BTP packet. The value of this field SHALL indicate the sequence
number of the acknowledged packet.
Page 208 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
value but no buffer segment payload—consumes a slot in a remote peer’s window just like any
other packet. Stand-alone acknowledgement packets SHALL be acknowledged by a remote peer.
The implications of this are examined in Section 4.17.3.9, “Idle Connection State”.
Each peer SHALL maintain an acknowledgement-received timer. When a peer sends any BTP
packet, it SHALL start this timer if it is not already running. The timer’s duration SHALL be globally
defined as BTP_ACK_TIMEOUT seconds, referred to as the acknowledgement timeout interval.
Because the server’s handshake response bears an implicit BTP sequence number of zero, a server
SHALL start its acknowledgement-received timer when it sends a handshake response.
Each peer SHALL also maintain a send-acknowledgement timer. When it receives any BTP packet, a
peer SHALL record the packet’s sequence number as the corresponding BTP session’s pending
acknowledgement value and start the send-acknowledgement timer if it is not already running. The
timer’s duration timer SHALL be defined as any value less than one-half the acknowledgement
timeout interval. This ensures that on a healthy BLE connection, a peer will always receive
acknowledgements for sent packets before its acknowledgement-received timer expires.
A peer SHALL stop its send-acknowledgement timer when any pending acknowledgement is sent,
either as a stand-alone BTP packet or piggybacked onto an outgoing buffer segment. If this timer
expires and the peer has a pending acknowledgement, the peer SHALL immediately send that
acknowledgement. If the peer sends any packet before this timer expires, it SHALL piggyback any
pending acknowledgement on the transmitted packet and stop the send-acknowledgement timer.
Because the server’s handshake response bears an implicit BTP sequence number of zero, a client
SHALL set its pending acknowledgement value to zero and start its send-acknowledgement timer
when it receives the server’s a handshake response. Operation of the send-acknowledgement and
acknowledgement-received timers is illustrated in Figure 26, “BTP session lifecycle for Central act
ing as GATT Client” in Section 4.17.3.11, “Protocol State Diagrams”.
If a peer detects that its receive window has shrunk to two or fewer free slots, it SHALL immedi
ately send any pending acknowledgement as a stand-alone BTP packet. This prevents the session
from stalling in the interval between when a peer’s receive window becomes empty and when its
send-acknowledgement timer would normally fire.
When neither side of a BTP session has data to send, BTP packets will still be exchanged every send-
acknowledgement interval due to acknowledgements generated by the receipt of previous data or
stand-alone acknowledgement packets, as discussed in Section 4.17.3.8, “Packet Acknowledge
ments”. The behavior of the acknowledgement-received timer in this scenario doubles as a keep-
alive mechanism, as it will cause a peer to close a BLE connection automatically if the remote BTP
stack crashes or becomes unresponsive. This scenario is illustrated in Figure 25, “Idle connection
scenario”.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 209
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
To close a BTP session, a GATT client SHALL unsubscribe from characteristic C2. The GATT server
SHALL take this action to indicate closure of any BTP session open to the client.
If a BTP Server needs to close the BTP session, it SHALL terminate its BLE connection to the client.
Figure 26, “BTP session lifecycle for Central acting as GATT Client” shows the state machine for BTP
session management of a BTP Client Device.
Page 210 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Figure 26. BTP session lifecycle for Central acting as GATT Client
Figure 27, “BTP session lifecycle for Peripheral acting as GATT Server” shows the state machine for
BTP session management of a BTP Server Device.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 211
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Figure 27. BTP session lifecycle for Peripheral acting as GATT Server
Note that in Figure 27, “BTP session lifecycle for Peripheral acting as GATT Server”, the state
machine is identical for GATT clients and servers with the distinction that clients send data to
servers via confirmed writes, and servers send data to clients via indications.
Figure 28, “State diagram for BTP session post-establishment” shows the state machine for BTP ses
sion maintenance at the protocol level, including liveliness enforcement through keep alive mes
sages and automatic teardown if acknowledgements are received before the timeout.
Page 212 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Table 32, “Glossary of constants” is a glossary of constants used in this chapter, along with a brief
description and the default for each constant.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 213
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The UUID is provided by Bluetooth SIG, Inc. and may only be used by its members in compliance
with all terms and conditions of use issued by the Bluetooth SIG, Inc. For more information, visit
https://www.bluetooth.com/specifications/assigned-numbers/16-bit-uuids-for-sdos.
Use of the Bluetooth extensions feature of this specification and specifically the MATTER_BLE_SER
VICE_UUID is strictly prohibited unless the product is certified by both the Bluetooth SIG and the
Connectivity Standards Alliance by a member of good standing of both organizations.
Page 214 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Chapter 5. Commissioning
5.1. Onboarding Payload
The purpose of this section is to define the contents of the Onboarding Payload needed to allow
onboarding a device into a Matter network. It also specifies the representation and encoding of said
payload as a QR Code, as a manually entered code, and as content in an NFC tag.
The Onboarding Payload is composed of required and optional information which will be used by
the Commissioner to ensure interoperability between commissioners and devices and provide a
consistent user experience. Some or all of this content will be encoded into different formats, some
human-readable (such as numeric string) and machine-readable (such as QR code and NFC) for
mats for printing or display on or integration into the device. The following are the elements that
may be used in an Onboarding Payload for a Matter device.
5.1.1.1. Version
A version indication provides versioning of the payload and SHALL be included. Version for
machine-readable formats is 3 bits with an initial version of 0b000. Version for Manual Pairing Code
is 1 bit with an initial version of 0b0.
Rationale: This allows a way to introduce changes to the payload as needed going into the future.
Vendor ID and Product ID, each a 16-bit value, SHALL be included in machine-readable formats and
MAY be included in the Manual Pairing Code.
Rationale: This allows a way to identify the make and model of the device, which is used further
during the commissioning flow, such as during the Device Attestation procedure. These unique
identifiers also help to retrieve device model metadata like product name, product description, and
firmware update URL from the Distributed Compliance Ledger, as well as information relevant to
the commissioning flow (see Section 5.7, “Device Commissioning Flows”).
A 2-bit unsigned enumeration specifying the Device Commissioning Flow SHALL be included in
machine-readable formats. For the encoding of Custom Flow in the Manual Pairing Code, see Sec
tion 5.1.4.1.2, “Custom Flow for Manual Pairing Code”.
Rationale: This guides the Commissioner as to whether steps are needed before commissioning can
take place.
• A value of 0 indicates that no steps are needed (apart from powering the device).
• A value of 1 indicates that user interaction with the device (pressing a button, for example) is
required before commissioning can take place. The specific steps required can be found in the
CommissioningModeInitialStepsHint field of the Distributed Compliance Ledger for the given
Vendor ID and Product ID.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 215
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A Discriminator SHALL be included as a 12-bit unsigned integer, which SHALL match the value
which a device advertises during commissioning. To easily distinguish between advertising devices,
this value SHOULD be different for each individual device.
For machine-readable formats, the full 12-bit Discriminator is used. For the Manual Pairing Code,
only the upper 4 bits out of the 12-bit Discriminator are used.
Rationale: The Discriminator value helps to further identify potential devices during the setup
process and helps to improve the speed and robustness of the setup experience for the user.
5.1.1.6. Passcode
A Passcode SHALL be included as a 27-bit unsigned integer, which serves as proof of possession dur
ing commissioning. The 27-bit unsigned integer encodes an 8-digit decimal numeric value, and
therefore shall be restricted to the values 0x0000001 to 0x5F5E0FE (00000001 to 99999998 in decimal),
excluding the invalid Passcode values.
Rationale: The Passcode establishes proof of possession and is also used as the shared secret in set
ting up the initial secure channel over which further onboarding steps take place.
Variable-length TLV data using the TLV format MAY be included in machine-readable formats pro
viding optional information. More details about the TLV can be found in Section 5.1.5, “TLV Con
tent”.
In order for the users of Matter products to recognize the onboarding material, and be able to use it
easily, it is important to keep the representations of the onboarding material unified and of certain
minimum size. To support this the Matter Brand Guidelines specify the characteristics like composi
tion, colors, font, font size, QR Code size and digit-grouping of the Manual Pairing code.
When the onboarding material is printed on product or packaging material it SHALL follow the
Matter Brand Guidelines.
Other representations (product display, app, etc) of the onboarding material SHOULD follow the
Matter Brand Guidelines.
Page 216 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
5.1.3. QR Code
The Onboarding Payload MAY be included on (or with) a device in the form of a QR code. The fol
lowing sections detail the content, encoding, and formatting of the QR code.
5.1.3.1. Payload
The content of the QR code consists of the concatenation of a prefix string and a Base-38-encoded
string containing the required and optional TLV content:
Prefix String
MT:
Base-38 Content
The required content of the QR code is composed of a Packed Binary Data Structure containing ele
ments of the Onboarding Payload as detailed below. The resulting data is Base-38 encoded (with a
specific alphabet) to form a string compatible with alphanumeric QR encoding.
Individual data elements SHALL be placed into the structure in the order detailed in the table
below. Elements being packed are not necessarily byte- or word-aligned. The resulting packed struc
ture is presented to the encoder as a multi-byte array (see Encoding section below), which SHALL
be padded with '0' bits at the end of the structure to the nearest byte boundary.
The bits of each fixed-size value are placed in the packed binary data structure in order from least
significant to most significant. If TLV Data is included, it is appended to the end of the packed
binary data.
For example, the first elements in the table below SHALL be packed into the first bytes of the data
array as pictured:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 217
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Vendor ID 16 Yes
Product ID 16 Yes
Padding 4 Yes Bit-padding of '0’s to expand to the nearest byte boundary, thus
byte-aligning any TLV Data that follows.
TLV Data Variable No Variable length TLV data. Zero length if TLV is not included.
This data is byte-aligned.
See TLV Data sections below for detail.
0 1 Soft-AP:
(lsb 0: Device does not support hosting a Soft-AP or is currently commissioned into one
) or more fabrics.
1: Device supports hosting a Soft-AP when not commissioned.
1 1 BLE:
0: Device does not support BLE for discovery or is currently commissioned into one
or more fabrics.
1: Device supports BLE for discovery when not commissioned.
2 1 On IP network:
1: Device is already on the IP network
Page 218 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
TLV Data
The TLV data is an optional, variable-length payload. The payload is composed of one or more TLV-
encoded elements as defined in detail below in the TLV Content section.
Encoding
The Packed Binary Data Structure is Base-38 encoded (with a specific alphabet) to produce an
alphanumeric string suitable for use as a QR code payload.
Alphabet
The Base-38 alphabet to be employed is composed of a subset of the 45 available characters (A-Z0-
9$%*+./ :-) in the QR code for alphanumeric encoding as defined by ISO/IEC 18004:2015, with char
acters $, %, *, +, /, <space>, and : removed.
Code Charac Code Charac Code Charac Code Charac Code Charac
ter ter ter ter ter
00 0 09 9 18 I 27 R 36 -
01 1 10 A 19 J 28 S 37 .
02 2 11 B 20 K 29 T
03 3 12 C 21 L 30 U
04 4 13 D 22 M 31 V
05 5 14 E 23 N 32 W
06 6 15 F 24 O 33 X
07 7 16 G 25 P 34 Y
08 8 17 H 26 Q 35 Z
Method
Base-38 encoding is achieved by employing a simplified strategy where every 3 bytes (24 bits) of
binary source data are encoded to 5 characters of the Base-38 alphabet.
Data from the Packed Binary Data Structure are encoded starting with the first byte of the struc
ture. Three-byte chunks are formed into a 24-bit unsigned integer for encoding as follows:
The 24-bit value is subsequently converted to Base-38 radix using the alphabet above to produce a
5-character substring, with the least-significant character appearing first (little-endian).
If a single byte of binary source data remains, it shall be converted to Base-38 radix using the alpha
bet above to produce a 2-character substring, with the least-significant character appearing first.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 219
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
If two bytes of binary source data remains, they shall be formed into a 16-bit unsigned integer for
encoding as follows:
This 16-bit value is subsequently converted to Base-38 radix using the alphabet above to produce a
4-character substring, with the least-significant character appearing first.
The final encoded string is a result of concatenation of all substrings, with the first-encoded sub
string appearing at the beginning of the concatenated string.
The format selection, which includes the QR code Version and ECC levels as well as size and color,
MAY be tailored to the requirements of the manufacturer and their respective product, provided it
meets the following requirements:
1 21x21 L 25 104 16
M 38 168 80
Q 29 120 32
M 61 272 184
Q 47 208 120
H 35 152 64
Page 220 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
M 90 416 328
Q 67 304 216
H 50 224 136
Q 87 400 312
H 64 288 200
Version 1 codes with ECC levels M, Q, and H and version 2 codes with ECC level H
NOTE
have insufficient capacity
ECC Level
A higher level ECC does not help against typical 'reading' issues like shiny surfaces,
bad contrast or issues with camera resolution/focus, and lack of camera-app
NOTE
processing dedicated for QR codes. Therefore, in certain situations ECC=L MAY be
used as well (e.g. to prevent having to move to a higher Version to fit the payload).
This section describes the content and format of the Manual Pairing Code, which can be used in cer
tain situations next to or instead of the QR code described above.
5.1.4.1. Content
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 221
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Payload
The payload of the Manual Pairing Code consists of the following required and optional data ele
ments.
PRODUCT_ID 16 No* * This element SHALL be included if and only if the VEN
DOR_ID element is present.
The Vendor ID and Product ID elements are optional. Including these may provide additional infor
mation for the setup flow at the expense of a substantially longer Manual Pairing Code.
The encoding for Manual Pairing Code does not have a dedicated field for Custom Flow, as exists in
the Packed Binary Data Structure. Instead, this information is encoded in the following way:
• For Standard commissioning flow, the variant of Manual Pairing Code without Vendor ID and
Product ID SHALL be used. A commissioner encountering such Manual Pairing Code SHALL
assume it is a "standard flow" device.
• For User-intent commissioning flow and Custom Commissioning flow, the variant of Manual
Pairing Code with Vendor ID and Product ID SHALL be used. For this case, a commissioner
SHOULD use Vendor ID and Product ID to lookup the CommissioningCustomFlow field in the
Distributed Compliance Ledger to determine which of these values applies for this Vendor ID
and Product ID combination.
Page 222 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Encoding
The required and optional elements, along with a check digit, are encoded into either an 11-digit or
21-digit decimal numeric string, depending on whether the optional Vendor and Product ID infor
mation is included.
Method
Each group of digits in the Pairing Code SHALL be encoded as described in the table below. The left-
most digit of the entire string SHALL be represented by DIGIT[1]. Groups of multiple digits SHALL
be encoded such that the most-significant digit appears first (left-most).
Table 39. Encoding Method without Vendor and Product ID’s (VID_PID_Present == 0)
2..6 - 3rd and 4th ms-bits of DIGIT[2..6] := Yields a 5-digit decimal num
Discriminator ((DISCRIMINATOR & 0x300) ber from 00000 to 65535
- 14 ls-bits of PASSCODE << 6) | (0xFFFF/16 bits)
(PASSCODE & 0x3FFF)
Table 40. Encoding Method with Vendor and Product ID’s included (VID_PID_Present == 1)
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 223
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
2..6 - 3rd and 4th ms-bits of DIGIT[2..6] := Yields a 5-digit decimal num
Discriminator ((DISCRIMINATOR & 0x300) ber from 00000 to 65535
- 14 ls-bits of PASSCODE << 6) | (0xFFFF/16 bits)
(PASSCODE & 0x3FFF)
Check Digit
The CHECK_DIGIT element is a single decimal digit computed across all of the preceding digits of
the Pairing Code using the Verhoeff algorithm.
When the Manual Pairing Code is presented in an application within a multi-function device, such
as an application on a smartphone, it SHOULD provide a mechanism such as a copy button to allow
easy conveyance of the information to other commissioners on the same device. When a Commis
sioner is implemented as an application within a multi-function device, such as an application on a
smartphone, it SHOULD provide a mechanism such as a paste button to allow easy conveyance of
the information from an administrator on the same device.
A variable-length TLV Data section MAY be encoded into the Packed Binary Data Structure. The TLV
section MAY consist of manufacturer-specific information elements and/or elements common to
Matter, encoded using TLV. All elements SHALL be housed within an anonymous top-level structure
container.
Manufacturer-specific elements SHALL be tagged with context-specific tags that have semantics
which are defined by the vendor for use in the products using their Vendor ID, and SHALL use tag
numbers 0x80 to 0xFF.
Tag numbers 0x00 to 0x7F are reserved to indicate Matter-common elements.
Manufacturer-specific elements inherit the context of the Vendor ID and Product ID provided in the
Packed Binary Data Structure described above. All elements SHALL follow the constraints outlined
Page 224 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
All elements common to Matter SHALL use tag numbers in the range 0x00 to 0x7F, as defined in the
following section.
kTag_Num 0x03 Number of devices that are Unsigned Integer, range 1 to 255
berOfDevices expected to be onboarded
using this payload when using
the Enhanced Commissioning
Method
kTag_Commis 0x04 Time, in seconds, during which Unsigned Integer, see Announcement Dura
sioningTime the device(s) are expected to tion
out be commissionable using the
Enhanced Commissioning
Method
*
If the PBKDF parameters are to be included in the TLV section, both the PBKDFSalt and PBKDFItera
tions SHALL be encoded.
{
vendorTag01 (0x81) = "Vendor",
kTag_SerialNumber(0) = "1234567890"
}
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 225
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
0x15 0x2C 0x81 0x06 0x56 0x65 0x6E 0x64 0x6F 0x72 0x2C 0x00 0x0A 0x31 0x32 0x33
0x34 0x35 0x36 0x37 0x38 0x39 0x30 0x18
Data Comments
=========== ===================================================
0x15 Control Byte for outermost container (structure)
- Tag control 000xxxxxb: Anonymous tag
- Elem type xxx10101b: Structure
{
kTag_SerialNumber (0) = "1234567890"
}
Page 226 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
0x15 0x2C 0x00 0x0A 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x30 0x18
Data Comments
=========== ===================================================
0x15 Control Byte for outermost container (structure)
- Tag control 000xxxxxb: Anonymous tag
- Elem type xxx10101b: Structure
5.1.6. Concatenation
The Onboarding Payload MAY be concatenated with additional Onboarding Payloads to be placed in
a single QR Code:
Concatenation of multiple Matter Onboarding Payloads allows a single QR code to provide the
onboarding payload for a number of devices. Example use case for this concatenation:
• Easy onboarding for multi-device packaging, e.g. for a package of light bulbs containing four
separate bulbs. Each bulb will have its own Onboarding Payload code(s) printed on the bulb
itself. The Manufacturer MAY include a leaflet in the box with a larger QR code containing the
concatenation of the four individual Onboarding Payloads. The user can then scan this com
bined QR code (one step for the user) which would give the Commissioner the Onboarding Pay
load for all four bulbs in one operation, and it can proceed to commission the four bulbs.
All Commissioners SHALL recognize the * separator from the QR code as indication concatenation
is used.
A Commissioner which does not support such concatenated Matter Onboarding Payloads SHOULD
indicate to the user the need to commission devices one by one by scanning their individual QR
codes.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 227
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Commissioner SHOULD commission the devices in the order as they are provided in the con
catenated code. (This ordering is particularly relevant in case of combi-packs where one of the
devices needs to be commissioned first, e.g. a Thread Router first, then one or more Thread-con
nected bulbs).
MT:<onboarding-base-38-content_bulb1>*<onboarding-base-38-content_bulb2>*<onboarding-
base-38-content_bulb3>*<onboarding-base-38-content_bulb4>
A device can support either dynamic or static passcodes for purposes of establishing the shared
secret for the initial secure channel over which further onboarding steps take place.
• Passcodes SHALL NOT be derived from public information, such as a serial number, manufac
turer date, MAC address, region of origin, etc.
• The Passcode generation process SHALL use a cryptographically secure random number gener
ator.
If a device generates a dynamic Passcode, then it SHALL conform to the following additional rule:
If a device cannot generate a dynamic Passcode, then the static Passcode SHALL conform to the fol
lowing additional rules:
• A random passcode SHALL be generated and used for each individual device.
• The device SHALL be supplied with the PAKE verifier in its internal storage.
• If the static passcode is also supplied to the device, the static passcode SHALL NOT be accessible
during operational mode using any data model attributes or commands.
• If the static passcode is supplied to the device, its storage location SHALL be physically isolated
from the location where the PAKE verifier is stored and SHALL only be accessible through local
interfaces and SHALL NOT be accessible to the executing unit handling the PAKE verifier. For
example, a device equipped with a NFC connected tag may contain the QR code containing the
static passcode in the NFC connected tag private memory and the NDEF record containing the
NFC tag onboarding payload is only presented to the commissioner during the commissioning
window through the NFC interface.
The following Passcodes SHALL NOT be used for the PASE protocol due to their trivial, insecure
nature:
• 00000000
Page 228 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• 11111111
• 22222222
• 33333333
• 44444444
• 55555555
• 66666666
• 77777777
• 88888888
• 99999999
• 12345678
• 87654321
A Commissioner MAY use, in addition to the QR Code Format and Manual Pairing Code as described
above, an NFC tag associated with a Commissionee to retrieve the Onboarding Payload. When an
NFC tag is used the following requirements are applicable.
• The data contained in the NFC tag SHALL be the same as specified in QR Code Format.
• The NFC tag SHALL be one of the types as defined by NFC Forum.
• The NFC tag SHALL use the NFC Data Exchange Format (NDEF) as defined by NFC NDEF 1.0.
• The Onboarding Payload for the NFC tag SHALL use NDEF URI Record Type Definition as
defined by NFC RTD URI 1.0 and as specified in the following table.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 229
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The process of Matter commissioning can be initiated by the User in a number of ways. This section
describes different user journeys supported by Matter. For each, a rationale is provided along with
a high-level flow description, up until the point where a commissioning secure session is estab
lished. References to sections describing dependent functionality in more detail are provided.
The purpose of this section is to connect features provided in other sections to the user journeys for
which they are designed.
The list of user journeys provided here is not meant to be exhaustive; there
WARNING
may be other journeys not listed here which can be realized using Matter.
This section provides rationales for Matter functionality and does NOT contain normative require
ments for Matter.
• Section 5.2.2.1, “Commissioner Setup Code Entry, Not Yet Commissioned Device”. "Launch Com
missioner, Enter Code"
• Section 5.2.2.2, “User-Initiated Beacon Detection, Not Yet Commissioned Device”. "Launch Com
missioner, Discover New Devices"
• Section 5.2.2.3, “User-Initiated Beacon Detection, Already Commissioned Device”. "Launch Com
missioner, Discover My devices"
• Section 5.2.2.4, “Commissioner Discovery, from an On-Network Device”. "Launch Device User
Interface, Discover Commissioners"
In the Setup Code Entry for a Not Yet Commissioned Device use case, the User first initiates an inter
action with a Commissioner, and then provides the necessary setup code from the Commissionee,
by scanning an Onboarding Payload (e.g. QR Code) or otherwise inputting the manual setup code
through an input method supported by the commissioner.
5.2.2.1.1. Rationale
In this use case, the user will often have the device in-hand, have immediate access to the onboard
ing payload, and have immediate access to the desired Commissioner.
3. Commissioner determines which technologies to use for Device Discovery. When attempting to
Page 230 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
locate the device on IP-bearing networks, the Commissionable Node Discovery method is used
and typically the DNS-SD service subtypes for long or short discriminator, and commissioning
mode (see Commissioning Subtypes) are specified to filter the results to Commissionees that
match the discriminator in the onboarding payload and that are in Commissioning Mode. When
attempting to locate the device via BLE or Soft-AP advertisements, the discriminator will typi
cally be used to filter the results.
4. Commissioner begins the Commissioning process (see Section 5.5, “Commissioning Flows”). If
more than one Commissionee is discovered, the Commissioner may further refine the results
using any additional information such as a Vendor ID or Product ID that may be available in the
onboarding payload. If there is still more than one discovered Commissionee, the Commissioner
will typically attempt to establish a PASE secure commissioning session with each.
When a device has a static onboarding payload, and the value is physically affixed to the product, it
is possible for an attacker with one-time physical access to the device to obtain the onboarding pay
load and use it to compromise the security of the device in the future. For example, if the device is
commissioned again using the same onboarding payload (for example, after a reset), then the
attacker may be able to perform a person-in-the-middle attack which could result in a compromise
of sensitive user data such as network credentials if passed to the device.
When a device includes device-specific information such as Vendor ID and Product ID in advertise
ments, then a malicious actor within advertisement range can detect this information and poten
tially associate it with the location of the device (and potentially, additional information about the
location, such as its residents) in ways that the user did not intend.
In the User-Initiated Beacon Detection for a Not Yet Commissioned Device use case, the User first
initiates an interaction with a Commissioner, and then indicates an intention to commission
devices without providing additional information about them (no onboarding payload, etc).
5.2.2.2.1. Rationale
In this use case, the user has immediate access to a Commissioner. However, the user may not
know how to locate the onboarding payload (it may be hidden behind a panel, pin-protected in a
settings menu, or inaccessible on a device already physically installed).
Example User interactions with the Commissioner include pushing a "Discover New Devices" but
ton, or speaking to a voice agent "Agent, discover new devices".
3. Commissioner determines which technologies to use for Device Discovery. When attempting to
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 231
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
locate the device on IP-bearing networks, the Commissionable Node Discovery method is used
and typically the subtype for commissioning mode (see Commissioning Subtypes) is specified
with value 1 in order to filter the results to Commissionees that are in Commissioning Mode.
6. Commissioner instructs the user to locate and input the onboarding payload.
7. Commissioner begins the Commissioning process (see Section 5.5, “Commissioning Flows”).
The user may indicate the type of device to the Commissioner when initiating this flow. For exam
ple, the user might speak the following to a voice agent: "Agent, Discover TVs".
When discovering TVs or any other specific device type on the IP network, this flow will be the
same except that a subtype which specifies the device type identifier (see Descriptor Cluster on root
node endpoint) is passed to the Commissionable Node Discovery method (see Commissioning Sub
types).
In addition to the Misuse Considerations for the Section 5.2.2.2, “User-Initiated Beacon Detection,
Not Yet Commissioned Device”, a Commissioner which performs Device Discovery without knowl
edge of the Onboarding Payload may discover advertisements from devices that the user did not
intend to onboard with the given Commissioner. This additional information collected by the Com
missioner can be associated with the user in ways that the user did not intend.
In the User-Initiated Beacon Detection for an Already Commissioned Device use case, the User first
initiates an interaction with a Commissioner, and then indicates an intention to commission
devices already on the IP network without providing additional information about them.
5.2.2.3.1. Rationale
A Device may choose to be discoverable by entities on the local IP network, even when not in Com
missioning Mode, in order to satisfy specific user journeys. For example, a TV or Bridge device may
choose to be discoverable in order to facilitate connectivity with other Smart Home systems.
Example User interactions with the Commissioner include pushing a "Discover My Devices" button,
Page 232 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
2. User indicates an intention to commission existing devices on the IP network without providing
additional information about them.
6. The Commissionable Node Discovery DNS-SD TXT record for the selected Commissionee
includes key/value pairs that can help the Commissioner to guide the user through the next
steps of the commissioning process. If the Commissioning Mode value (see Commissioning Com
missioning Mode) is set to 0, then the Commissionee is not yet in Commissioning Mode and the
Commissioner can guide the user through the steps needed to put the Commissionee into Com
missioning Mode. The Pairing Hint (see: Commissioning Pairing Hint) and the Pairing Instruc
tion (see: Commissioning Pairing Instruction) fields would then indicate the steps that can be
followed by the user to put the device into Commissioning Mode.
7. If not already in Commissioning Mode, Commissioner instructs the user to put the Commis
sionee into Commissioning Mode, and verifies the new state using Commissionable Node Dis
covery.
8. Commissioner instructs the user to locate and input the onboarding payload. When a Vendor ID
and Product ID is available to the Commissioner, the Distributed Compliance Ledger may also
provide a URL for the Device User Guide which can contain additional information to help in
locating the onboarding payload. The Commissioner may have additional data sets available for
assisting the user.
9. Commissioner begins the Commissioning process (see Section 5.5, “Commissioning Flows”).
The user may indicate the type of device to the Commissioner when initiating this flow. For exam
ple, the user might speak the following to a voice agent: "Agent, Discover TVs".
When discovering TVs or any other specific device type on the IP network, this flow will be the
same except that a subtype which specifies the device type identifier is passed to the Commission
able Node Discovery method (see Commissioning Subtypes).
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 233
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
When a Device implements Commissionable Node Discovery while not in Commissioning Mode, the
time period during which it may unintentionally provide information to a malicious actor on the
network is longer than it otherwise would be. This additional information could potentially be asso
ciated with the user in ways that the user did not intend. See Commissionable Node Discovery Pri
vacy Considerations for device requirements relating to this risk.
When a device includes device-specific information such as Vendor ID, Product ID and Device Type,
or user-generated data such as Device Name, in the DNS-SD TXT record, then a malicious actor on
the network can detect this information and potentially associate it with the user in ways that the
user did not intend.
A Commissioner which performs Device Discovery without knowledge of the Onboarding Payload
may discover devices on the network that the user did not intend to onboard with the given Com
missioner. This additional information collected by the Commissioner can be associated with the
user in ways that the user did not intend.
In the Commissioner Discovery use case for a Device already on the IP network, the User first initi
ates an interaction with the Device via a display or other user interface, and indicates the intention
to have this device commissioned by a Commissioner on the network. The Device might already
have been commissioned into one or many Fabrics or it might not yet have been commissioned.
Upon this user interaction, the Device discovers candidate Commissioners and allows the user to
select one. The Device then requests from that Commissioner to be commissioned.
5.2.2.4.1. Rationale
In this use case, a Device (Commissionee) with a user interface, such as a TV or Thermostat, initiates
the commissioning process. For example, this might be done from within a settings menu for Smart
Home control. The Device discovers Commissioners on the IP-bearing network, presents the result
ing list to the User for selection. Once selected, the Device indicates to the selected Commissioner
that it has been selected by the User, the Device enters Commissioning Mode and provides the
onboarding payload to the User.
Another example for this use case is a Device or Node (Commissionee) with a user interface, such as
a Content Provider Device or Application, that initiates the commissioning process. This might be
done from a program guide or while watching a video when the user indicates a desire to play the
selected content on a nearby device. The Device discovers Commissioners on the IP-bearing net
work, presents the resulting list to the User for selection. Once selected, the Commissionee indicates
to the selected Commissioner that it has been selected by the User (see User Directed Commission
ing), the Commissionee enters Commissioning Mode and provides the onboarding payload to the
User.
Page 234 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
2. User indicates a desire to connect this Device with a Commissioner on the network.
9. Device initiates a User Directed Commissioning session with the selected Commissioner, which
includes in the DNS-SD service name of the Device.
10. Commissioner prompts user to confirm intention to commission this device and asks for
onboarding payload.
12. Commissioner begins the commissioning process (see Section 5.5, “Commissioning Flows”).
In addition to the Misuse Considerations for the Section 5.2.2.3, “User-Initiated Beacon Detection,
Already Commissioned Device”, a Commissionee which performs Commissioner Discovery may dis
cover Commissioners on the network that the user did not intend to be discovered by the given
Commissionee. This additional information collected by the Commissionee can be associated with
the user in ways that the user did not intend. See Commissioner Discovery Privacy Considerations
for Commissioner requirements relating to this risk.
Since there are no trust mechanisms employed for Commissioners advertising themselves, Commis
sionees may provide Commissioner selection choices to the User that are from malicious entities
masquerading as commissioners.
When a Commissioner includes device-specific information such as Vendor ID, Product ID and
Device Type, or user-generated data such as Device Name, in the DNS-SD TXT record, then a mali
cious actor on the network can detect this information and potentially associate it with the user in
ways that the user did not intend.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 235
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
5.3.1. Overview
In User Directed Commissioning (UDC), the Commissionee sends a message to the Commissioner in
order to initiate the commissioning process (see Section 5.5, “Commissioning Flows”).
The availability of the UDC protocol is advertised through Commissioner Discovery service records
of DNS-SD service type _matterd._udp (see Section 4.3.3, “Commissioner Discovery”).
Overall, the UDC protocol is a lightweight "door bell" message sent by a Commissionee, and consists
of an Identification Declaration which provides the Commissionee’s _matterc._udp DNS‑SD service
instance name.
Upon receiving this message, the Commissioner MAY query the DNS-SD service instance indicated
in the Identification Declaration, including TXT records, in order to obtain additional information
about the Commissionee, MAY obtain the corresponding Onboarding Payload from the user for this
Commissionee, and MAY initiate the commissioning process with it.
One possible user journey for this feature is described in Commissioner Discovery from an Existing
Device.
It is assumed that the user has directed the Initiator to send this message to the Recipient. Upon
receipt and before starting a PASE session with the Initiator, it is assumed that the Recipient will
query the DNS-SD records for the Initiator, including all TXT records, and then prompt the user for
approval and to enter its Onboarding Payload.
Protocol ID = PROTOCOL_ID_USER_DIRECTED_COMMISSIONING
The following defines the Matter User Directed Commissioning TLV protocol:
namespace matter.protocols {
user-directed-commissioning => PROTOCOL [
Matter:PROTOCOL_ID_USER_DIRECTED_COMMISSIONING ]
Page 236 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
{
IdentificationDeclaration => IdentificationDeclaration-struct
}
}
All UDC messages SHALL be structured as specified in Section 4.4, “Message Frame Format”.
• The S Flag and DSIZ fields of the Message Flags SHALL be set to 0.
The R Flag of the Exchange Flags for the UDC messages SHALL be set to 0.
For each UDC message, the application payload is the TLV encoding of the message structure as
defined below:
IdentificationDeclaration IdentificationDeclaration-struct
The other fields of the Message format are not specific to the UDC messages.
The flags of the Exchange Flags of the Protocol Header are defined as follows per UDC message:
Message I Flag
IdentificationDeclaration 1
All UDC messages SHALL be sent unreliably, to an IP address found in a AAAA record associated
with the Commissioner Discovery (_matterd._udp) service, using UDP with a destination port as
found in the _matterd._udp SRV record. The Initiator MAY send up to 4 retries. Each retransmission
SHALL be delayed by at least 100ms from the previous transmission.
The other fields of the Protocol Header are not specific to the UDC messages.
This message serves to identify the commissionee. It is sent by the commissionee to the commis
sioner. The commissionee SHALL:
1. Construct the instanceName based upon the DNS-SD instance name defined in Commissionable
Node Discovery.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 237
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The purpose of this section is to describe the process by which a device is discovered in order to
commission it onto an operational Fabric.
Devices that utilize Thread (IEEE 802.15.4) networking technology must also support BLE for the
purpose of discovery and commissioning. Directly utilizing Thread-based commissioning for device
discovery and commissioning is neither specified nor supported.
BLE commissioning utilizes the Generic Access Profile (GAP) for discovery and for connection
establishment, and the Generic Attribute Profile (GATT) for credential conveyance.
Wi-Fi commissioning utilizes Soft-AP functionality where the device acts as an Access Point (AP)
that doesn’t provide Internet connectivity. Standard Wi-Fi AP advertisement and connection proto
cols are employed for device discovery and credential conveyance, respectively.
If a device already has network connectivity (over Wi-Fi, Ethernet, or otherwise) a Commissioner
may discover such a device using DNS-based Service Discovery (DNS-SD), conveying credentials to
the device over IP.
This section describes how devices announce their commissionable status to allow a Commissioner
to discover the device to be commissioned.
A device SHALL announce in any order of priority on all of the networking technologies it supports
as indicated in the Discovery Capability Bitmask (see Table 36, “Discovery Capabilities Bitmask”). A
Commissioner that is aware of the device’s Discovery Capability Bitmask SHALL initiate Device Dis
covery in any order of priority on all of the networking technologies that are supported by both the
Commissioner and the device. A Commissioner that is unaware of the device’s Discovery Capability
Bitmask SHALL initiate Device Discovery in any order on all of the networking technologies it sup
ports out of Wi-Fi Soft-AP, BLE, and on IP network discovery.
Page 238 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Commissioners SHALL always support discovering a device using DNS-based Service Discovery
(DNS-SD) for commissioning, irrespective of the Discovery Capabilities Bitmask specified in the Sec
tion 5.1.1, “Onboarding Payload Contents”.
A device which is not yet commissioned into a Matter fabric SHALL commence announcing its abil
ity to be commissioned depending on its primary device function and manufacturer-chosen Device
Commissioning Flow, per the following table. Nodes already commissioned into one or more Matter
fabrics and wishing to announce SHALL ONLY do so using DNS-SD over their operational network
(see Section 4.3, “Discovery”). In the interest of privacy, an already-commissioned Node SHALL NOT
commence announcement using Bluetooth LE or Wi-Fi Soft-AP technologies.
Most control originates from a Fabric SHALL start announcing automatically upon application
(excluding Locks and Barrier Access of power when using Standard commissioning flow. When
Devices) using User-intent commissioning flow or Custom Commis
sioning flow, it SHALL NOT start announcing automati
cally upon application of power.
Most control does not originate from a SHALL NOT start announcing automatically upon applica
Fabric (e.g., dishwasher, coffee maker, tion of power. User-intent commissioning flow or Custom
refrigerator) Commissioning flow is required.
Locks and Barrier Access Devices SHALL NOT start announcing automatically upon applica
tion of power. User-intent commissioning flow or Custom
Commissioning flow is required.
Note that the above guidelines are in place to avoid unnecessary pollution of the 2.4 GHz spectrum
and as a mitigation of the privacy threat created due to unnecessary transmissions by a commis
sionable device.
If announcement has ceased (see Section 5.4.2.3, “Announcement Duration”), it may be re-initiated
via a device-specific user interaction such as a button press or other action defined by the manufac
turer and indicated by the methods specified in Section 5.7, “Device Commissioning Flows”.
In order to minimize unnecessary pollution of the crowded 2.4 GHz wireless spectrum, a commis
sionable device SHALL NOT announce for a duration longer than 15 minutes after announcement
commences. This should provide ample time for a user to commission a range of devices, including
time to download, install and launch applications, transit rooms within a home, etc.
Note that devices MAY choose to announce for less time in order to conserve battery life or for
other device-specific reasons. Note that an announcement duration that is too short may result in a
poor setup experience for users. Shorter announcement intervals SHOULD only be employed to
meet otherwise unattainable device functionality/requirements. To help strike a balance between a
good setup experience and conserving battery life, a device SHALL NOT announce for a duration of
less than 3 minutes after announcement commences.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 239
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A failed attempt to commission does not restart or delay the timeout. Moreover, this timeout applies
only to cessation of announcements and not to abortion of connections, i.e., a connection SHOULD
NOT abort prematurely upon expiration of the announcement duration.
Vendor ID 16-bit No
Product ID 16-bit No
5.4.2.4.1. Discriminator
A 12-bit value matching the field of the same name in the Setup Code.
5.4.2.4.2. Vendor ID
A 16-bit value identifying the device manufacturer (see Section 2.5.2, “Vendor Identifier (Vendor ID,
VID)”).
5.4.2.4.3. Product ID
Extended Data MAY be made available by commissionable Nodes. This data SHALL be encoded
using a standard TLV encoding defined in this section. The location of this data varies based on the
Node’s commissioning networking technology.
This extended data SHALL be encoded as a TLV structure tagged with an anonymous tag.
The members of this structure SHALL use context-specific tags with the values and meanings
shown in the table below.
Some device makers need a way to uniquely identify a device before it has been commissioned for
vendor-specific customer support purposes. For example, the device maker may need this to iden
tify factory software version and related features, manufacturing date, or to assist in recovery
when a setup code has been lost or damaged. In order to avoid privacy issues associated with a
fixed unique identifier, devices MAY utilize a Rotating Device Identifier for identification purposes.
A Rotating Device Identifier is similar to a serial number but rotates at pre-defined moments.
Page 240 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Rotating Device Identifier provides a non-trackable identifier which is unique per-device and
that can be used in one or more of the following ways:
• Provided to the vendor’s customer support for help in pairing or establishing Node provenance;
The Rotating Device Identifier is an optional feature for a Node to implement and an optional fea
ture for a Commissioner to utilize. The algorithm used for generating a Rotating Device Identifier
SHALL meet the following security and privacy requirements:
a. It SHALL prevent recovery of a unique identifier for the device by entities that do not
already have access to the set of possible unique identifiers.
b. Leaking of a common key or equivalent could not be used to recover a unique identifier for
all devices sharing the common key.
2. It SHALL protect against long-term tracking by rotating upon each commencement of advertis
ing.
3. It SHALL have a total of at least 64 bits of entropy and SHOULD preferably have more, up to 256
bits.
The Rotating Device Identifier Algorithm below meets these requirements. A Node that implements
the Rotating Device Identifier SHALL use either the Rotating Device Identifier Algorithm or a differ
ent algorithm which has been approved and verified by the Connectivity Standards Alliance for this
purpose and which meets the same set of security and privacy requirements listed above.
The Rotating Device Identifier Algorithm employs a key derivation algorithm that combines a
monotonically increasing lifetime counter with a unique per-device identifier.
The unique identifier SHALL consist of a randomly-generated 128-bit or longer octet string which
SHALL be programmed during factory provisioning or delivered to the device by the vendor using
secure means after a software update.
The unique identifier SHALL be protected against reading or writing over the air after initial intro
duction into the device, and stay fixed during the lifetime of the device.
The lifetime counter SHALL be an integer at least 16 bits in size, incremented upon each com
mencement of advertising, and wrapping when the maximum value is reached.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 241
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The rotation counter is encoded as 2 bytes using little-endian encoding in the above algorithm,
everywhere it appears.
The Rotating Device ID is the concatenation of the current rotation counter and the 16 bytes of the
Crypto_KDF result.
Extended data containing just a Rotating Device Identifier would be encoded as the following bytes:
0x01 0x30 Control byte for octet string with 1-byte length and a context-specific tag
This section provides details of how a device announces its commissionable status using BLE tech
nology. Nodes currently commissioned into one or more fabrics SHALL NOT employ this method.
Commissionable devices SHALL implement the role of a Generic Access Profile (GAP) Peripheral.
5.4.2.5.2. Channels
There are three advertising channels used by BLE. All three channels SHOULD be used by commis
sionable devices for BLE advertising.
5.4.2.5.3. Interval
Commissionable devices SHOULD use an Advertising Interval between 20 ms and 60 ms for the first
30 seconds and a value between 150 ms to 1200 ms for the rest of the Announcement duration.
Shorter intervals typically result in shorter discovery times.
Page 242 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Commissionable devices SHALL use the GAP General Discoverable mode, sending connectable
undirected advertising events.
To ensure privacy, commissionable devices SHALL use LE Random Device Address (see Bluetooth®
Core Specification 4.2 Vol 6, Part B, Section 1.3.2.1 "Static device address") for BLE Advertising and
SHALL change it at least on every boot.
In order to reduce 2.4 GHz spectrum congestion due to active BLE scanning, and to extend battery
life in battery-powered devices, all critical data used for device discovery is contained in the Adver
tising Data rather than the Scan Response Data. This allows a BLE Commissioner to passively scan
(i.e., not issue Scan Requests upon receiving scannable advertisements) and still be able to receive
all information needed to commission a device.
Note that if additional vendor-specific information is to be conveyed and does not fit within the
Advertising Data, it may be included in the Scan Response Data. See Section 5.4.2.8, “Manufacturer-
specific data” for details on including vendor-specific information.
The following table details the contents of the Advertising PDU payload:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 243
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
14 Fixed Bit[0] == Additional Data Flag (see Section 5.4.2.5.7, “GATT-based Additional
Data”)
Bits[7:1] are reserved for future use and SHALL be clear (set to 0)
Devices MAY choose not to advertise either the VID and PID, or only the PID due to privacy or other
considerations. When choosing not to advertise both VID and PID, the device SHALL set both VID
and PID fields to 0. When choosing not to advertise only the PID, the device SHALL set the PID field
to 0. A device SHALL NOT set the VID to 0 when providing a non-zero PID.
When the Additional Data Flag is set in the Matter Service Data in the BLE Advertisement, the com
missioner MAY access additional commissioning-related data via an unencrypted read-only GATT
characteristic C3 (see Table 31, “BTP GATT service”).
The value of the C3 characteristic SHALL be set to the Extended Data payload of the Discovery
Information (see Section 5.4.2.4.4, “Extended Data”).
This section details how a device advertises its commissionable state using Wi-Fi Soft-AP functional
ity, wherein the device acts as a Wi-Fi Access Point (AP) that doesn’t provide Internet access and a
Commissioner acts as a Wi-Fi station client and associates with the device’s AP in order to commis
sion it over IPv6. Nodes currently commissioned into one or more fabrics SHALL NOT employ this
method.
The device operates as an Access Point, transmitting Beacons and responding to Probe Requests by
sending Probe Responses per the rules specified in IEEE 802.11-2020.
The Commissioner associates with the Device’s temporary Wi‑Fi access point. Once Commissioner
and Device have established link-layer connectivity at the Wi‑Fi layer, both Commissioner and
Device configure themselves unique IPv6 link-local addresses, and then Device Discovery proceeds
as for the cases using existing IP-bearing network.
Page 244 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Parameter Value
SSID MATTER-ddd-vvvv-pppp
Note that all above elements are present in the QR code for commissioners that
require an exact SSID for scanning/connection.
Some devices may choose not to advertise the VID and/or PID
NOTE due to privacy or other considerations. These devices SHOULD
advertise the value 0 instead of the VID/PID.
Hidden SSID SSID SHALL NOT be hidden as the device may need to be chosen using a
mobile OS "network picker" on older mobile OS versions.
Channel SHALL be chosen from any valid 2.4 GHz ISM channel based on regulatory
domain at boot. SHOULD choose randomly from 1, 6, or 11. Vendors may need
to choose a specific channel for device-specific reasons.
Security None
This section defines the Information Element (IE) and attributes for Matter devices that support Wi-
Fi Soft-AP for commissioning. The Matter IE SHALL be carried in the Wi-Fi Soft-AP Beacon and
Probe Response frames.
A Vendor Specific IE format as defined in IEEE 802.11-2020 SHALL be used to define the Matter IE in
this specification. The format for the Matter IE is shown in Table 45, “Matter Information Element
format”. Little-endian encoding is used for all fields and subfields in the Matter IE format.
Length 1 Variable Length of the following fields in the IE in octets. The Length
field is variable and set to 4 plus the total length of the Mat
ter Attributes
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 245
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
OUI Type 1 0x00 Identifying the type and version of the Matter IE
Values 0x01 - 0xFF are reserved
The Matter attributes are defined to have a common general format consisting of a one octet Matter
attribute identifier field, a one octet Length field, and a variable-length attribute-specific informa
tion field, as shown in Table 46, “Matter Attribute format”.
The Table 47, “Matter Attribute list” defines the Matter attributes that SHALL be included in the Wi-
Fi Soft-AP Matter IE.
0x00 Reserved
The format of Device OpCode (Operational Code) Matter attribute is shown in Table 48, “Device
State Matter Attribute format”.
Page 246 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The format of Device Information Matter attribute is shown in Table 49, “Device Information Mat
ter Attribute format”.
Device Dis 2 Variable b0 - b11 : 12-bit discriminator (see Section 5.4.2.4.1, “Dis
criminator criminator”)
b12 - b15 : Reserved, set to zero
Devices MAY choose not to advertise either the VID and PID, or only the PID due to privacy or other
considerations. When choosing not to advertise both VID and PID, the device SHALL set both VID
and PID fields to 0. When choosing not to advertise only the PID, the device SHALL set the PID field
to 0. A device SHALL NOT set the VID to 0 when providing a non-zero PID.
The format of Rotating Device Id is shown in Table 50, “Rotating Device Id Attribute format”.
Additional data, using the encoding defined above (see Section 5.4.2.4, “Discovery Information”),
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 247
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
MAY be included in the Matter IE as an additional attribute, for more information about IE
attribute (see Matter Information Element)
5.4.2.6.5. DHCP
A DHCP Server SHALL be implemented on the device if Soft-AP commissioning is used. Though Soft-
AP commissioning relies on link-local IPv6 communication, some mobile OSes generate lack-of-con
nectivity warnings to the user if an IPv4 address is not obtained via a DHCP server. The following
table specifies the DHCP server operational parameters:
Parameter Value
This section details how a device that is already connected to an IP-bearing network advertises its
commissionable state. The discovery protocols leverage IETF Standard DNS-based Service Discov
ery [RFC 6763]. A device SHALL use multicast DNS [RFC 6762] on Wi-Fi and Ethernet networks to
make itself discoverable. On Thread networks, a device SHALL use the Service Registration Protocol
[SRP] and an Advertising Proxy [AdProx] running on a Thread Border Router to make itself discov
erable. Additional details on application of the above protocols in Matter is found in Section 4.3,
“Discovery”. The encoding of the information required for discovery during the commissioning
process is covered in Section 4.3.1, “Commissionable Node Discovery”.
Any manufacturer-specific data may be included as a Manufacturer Specific Data AD type in the
Advertising Data or in the Scan Response data.
Note that to receive Scan Response data information the Commissioner has to perform BLE active
scanning that, in addition to creating additional traffic in the shared 2.4 GHz unlicensed band, can
delay device discovery and connection, increasing the overall time required to commission a
device.
Any manufacturer-specific data SHOULD be conveyed using the Vendor-specific Information Ele
Page 248 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The following sections detail Commissioner behavior for each of these networking technologies.
Though a QR or Manual Pairing code may be scanned or entered prior to discovery, it is not
required to do so. However, after scan/entry of the code, the Discriminator, VID and PID elements
are available to ensure that the intended device is discovered before proceeding to the connection
phase of commissioning.
Commissioners SHALL implement the role of a GAP Central. To discover a commissionable device
advertising over BLE, a Commissioner SHALL perform a BLE scan across all three advertising chan
nels with a sufficient dwell time, interval, and overall duration of scan. In order to promote quick
discovery it is recommended that a Commissioner scan as aggressively as possible within the Com
missioner device functionality/UX constraints. In addition, if manufacturer-specific data is not
needed, a passive scan (i.e., one that only listens for Advertisement PDUs and does not issue Scan
Request PDUs).
If discovery procedure is user initiated the scan interval SHOULD be set between 30 ms and 60 ms,
and the scan window SHOULD be set to 30 ms. If discovery procedure is not user initiated (i.e., the
Commissioner is scanning in the background), the device may use more relaxed scan, for example,
the scan interval set to 1.28 seconds and scan window set to 11.25 ms.
Note: Recommended values are defined in Appendix A: Timers and Constants of Bluetooth® Core
Specification 4.2, Vol 3, Part C.
To discover a commissionable device acting as a Soft-AP and advertising its commissionable status,
a Commissioner SHALL perform a scan of all 2.4 GHz Wi-Fi channels allowed per its operational
regulatory domain. Given that channels 1, 6, and 11 are preferred (see Section 5.4.2.6.2, “AP Operat
ing Parameters”), scanning of those channels SHOULD be prioritized to minimize discovery time.
Where practical and allowed by regulations, active scanning using Probe Requests SHOULD be also
be used to help minimize discovery time. However, Commissioners that are always scanning as a
background activity SHOULD do so passively (i.e., SHOULD NOT send Probe Requests) in order to
reduce unnecessary transmissions in the shared 2.4 GHz spectrum.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 249
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
To discover a commissionable device over an existing IP-bearing network connection, the Commis
sioner shall perform service discovery using DNS-SD as detailed in Section 4.3, “Discovery”, and
more specifically in Section 4.3.1, “Commissionable Node Discovery”.
A Commissioner and Commissionee with concurrent connection have the ability to maintain two
network connections simultaneously. One connection is between the Commissioner (or Commis
sionee) and the operational network (e.g., home Wi-Fi network or Thread network) that the Com
missionee is being programmed to join. The second connection is between the Commissioner and
Commissionee for commissioning as is referred to as commissioning channel. A Commissioner and
Commissionee with non-concurrent connection capability cannot be simultaneously connected to
both the operational network that the Commissionee is being configured to join, and the commis
sioning channel.
The two connections MAY either be on the same or on different networking interfaces. For exam
ple, a Commissioner uses its Wi-Fi interface to connect to the operational network, but use its Blue
tooth Low Energy interface for commissioning.
A Commissionee that is ready to be commissioned SHALL accept the request to establish a PASE ses
sion with the first Commissioner that initiates the request. When a Commissioner is either in the
process of establishing a PASE session with the Commissionee or has successfully established a ses
sion, the Commissionee SHALL NOT accept any more requests for new PASE sessions until session
establishment fails or the successfully established PASE session is terminated on the commissioning
channel (see CloseSession in Secure Channel Status Report Messages). In the event a CloseSession
status message is sent or received:
1. If the fail-safe timer is armed, the fail-safe timer SHALL be considered expired and the cleanup
steps detailed in Section 11.9.7.2, “ArmFailSafe Command” SHALL be executed.
2. If the commissioning window is still open, the Commissionee SHALL continue listening for com
missioning requests.
In order to avoid locking out the Commissionee from accepting new PASE session requests indefi
nitely, a Commissionee SHALL expect a PASE session to be established within 60 seconds of receiv
Page 250 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ing the initial request. This means the Commissionee SHALL expect to receive the PAKE3 message
within 60 seconds after sending a PBKDFParamResponse in response to a PBKDFParamRequest
message from the Commissioner to establish a PASE session. If the PASE session is not established
within the expected time window the Commissionee SHALL terminate the current session estab
lishment using the INVALID_PARAMETER status code as described in Section 4.10.1.3, “Secure Channel
Status Report Messages”.
The commissioning commands and attributes are defined in Clusters (see Section 11.8, “Network
Commissioning Cluster”, Section 11.9, “General Commissioning Cluster”, Section 11.13, “Thread Net
work Diagnostics Cluster”, and Section 11.14, “Wi-Fi Network Diagnostics Cluster”) and are sent,
written, or read using the Interaction Model (see Interaction Model).
Figure 30, “Concurrent connection commissioning flow” and Figure 31, “Non-concurrent connec
tion commissioning flow” depict the commissioning flow between the Commissioner and Commis
sionee with concurrent connection ability and non-concurrent connection ability, respectively. The
specific steps are described below. Unless indicated otherwise, a commissioner SHALL complete a
step, including waiting for any responses to commands it sends in that step, before moving on to
the next step.
1. The Commissioner initiating the commissioning SHALL have regulatory and fabric information
available, and SHOULD have accurate date, time and timezone.
2. Commissioner and Commissionee SHALL find each other over networking interfaces such as
Bluetooth, Wi-Fi, or Ethernet using the process of discovery and establish a commissioning
channel between each other (see Section 5.4, “Device Discovery”).
3. Commissioner and Commissionee SHALL establish encryption keys with PASE (see Section
4.13.1, “Passcode-Authenticated Session Establishment (PASE)”) on the commissioning channel.
All subsequent messages on the commissioning channel are encrypted using PASE-derived
encryption keys. Upon completion of PASE session establishment, the Commissionee SHALL
autonomously arm the Fail-safe timer for a timeout of 60 seconds. This is to guard against the
Commissioner aborting the Commissioning process without arming the fail-safe, which may
leave the device unable to accept additional connections.
4. Commissioner SHALL re-arm the Fail-safe timer on the Commissionee to the desired commis
sioning timeout within 60 seconds of the completion of PASE session establishment, using the
ArmFailSafe command (see Section 11.9.7.2, “ArmFailSafe Command”). A Commissioner MAY
obtain device information including guidance on the fail-safe value from the Commissionee by
reading BasicCommissioningInfo attribute (see Section 11.9.6.2, “BasicCommissioningInfo
Attribute”) prior to invoking the ArmFailSafe command.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 251
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
◦ If the Commissionee fails the Device Attestation Procedure, for any reason, the Commis
sioner MAY choose to either continue to the Commissioning, or terminate it, depending on
implementation-dependent policies.
◦ Upon failure of the procedure, the Commissioner SHOULD warn the user that the Commis
sionee is not a fully trusted device, and MAY give the user the choice to authorize or deny
the commissioning. Such a warning enables user choice in Commissionee trust on their Fab
ric, for development workflows, as well as homebrew device development. Such a warning
SHOULD contain as much information as the commissioner can provide about the Commis
sionee, and SHOULD be adapted to the reason of the failure, for example by being different
between the case of an expired certificate and the case of a failed signature verification.
◦ Reasons for failing the Device Attestation procedure MAY include, but are not limited to, the
following:
▪ The Commissionee being of a device type currently in development or not yet certified
(see certification_type in the Certification Declaration).
▪ The Commissioner having obtained knowledge that a PAA or PAI certificate presented
has been revoked, or that the particular Device Attestation Certificate has been revoked.
▪ The Commissionee failing to prove possession of the Device Attestation private key,
either by programming error, malicious intent or other reasons.
▪ One of the elements of the Commissionee’s Device Attestation Certificate chain not meet
ing the policy validation steps of the Device Attestation Procedure, including errors on
validity period.
◦ If a Commissioner denies commissioning for any reason, it SHOULD notify the user of the
reason with sufficient details for the user to understand the reason, so that they could deter
mine if it would be possible to commission the device using a different Commissioner.
7. Following the Device Attestation Procedure yielding a decision to proceed with commissioning,
the Commissioner SHALL request operational CSR from Commissionee using the CSRRequest
command (see Section 11.17.7.5, “CSRRequest Command”). The CSRRequest command will cause
the generation of a new operational key pair at the Commissionee.
9. Commissioner SHALL install operational credentials (see Figure 38, “Node Operational Creden
tials flow”) on the Commissionee using the AddTrustedRootCertificate and AddNOC commands.
10. Commissioner MAY configure the Access Control List (see Access Control Cluster) on the Com
missionee in any way it sees fit, if the singular entry added by the AddNOC command in the previ
ous step granting Administer privilege over CASE authentication type for the Node ID provided
with the command is not sufficient to express its desired access control policies.
11. If the Commissionee both supports it and requires it, the Commissioner SHALL configure the
operational network at the Commissionee using commands such as AddOrUpdateWiFiNetwork
Page 252 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
12. The Commissioner SHALL trigger the Commissionee to connect to the operational network
using ConnectNetwork command (see Section 11.8.8.10, “ConnectNetwork Command”) unless
the Commissionee is already on the desired operational network.
13. Finalization of the Commissioning process begins. An Administrator configured in the ACL of
the Commissionee by the Commissioner SHALL use Operational Discovery to discover the Com
missionee. This Administrator MAY be the Commissioner itself, or another Node to which the
Commissioner has delegated the task.
14. The Administrator SHALL open a CASE (see Section 4.13.2, “Certificate Authenticated Session
Establishment (CASE)”) session with the Commissionee over the operational network.
15. The Administrator having established a CASE session with the Commissionee over the opera
tional network in the previous steps SHALL invoke the CommissioningComplete command (see
Section 11.9.7.6, “CommissioningComplete Command”). A success response after invocation of
the CommissioningComplete command ends the commissioning process.
While the Administrator of steps 13-15 will, in many situations, be the Commissioner Node itself, it
MAY be a different Node that was configured by the Commissioner to have Administer privilege
against the Commissionee’s General Commissioning Cluster. This is to support flexibility in finaliz
ing the Commissioning. From a Commissionee’s perspective, all Nodes with Administer privilege in
the Commissionee’s ACL are equivalent once the Node has a Node Operational Certificate and asso
ciated Node Operational Identifier on the Fabric into which it was just commissioned.
A Commissioner MAY configure UTC time, Operational ID, and Operational certificates, etc., infor
mation over an arbitrary number of interactions at the Commissionee, over the operational net
work after the commissioning is complete, or over the commissioning channel after PASE-derived
encryption keys are established during commissioning.
In concurrent connection commissioning flow the commissioning channel SHALL terminate after
successful step 15 (CommissioningComplete command invocation). In non-concurrent connection
commissioning flow the commissioning channel SHALL terminate after successful step 12 (trigger
joining of operational network at Commissionee). The PASE-derived encryption keys SHALL be
deleted when commissioning channel terminates. The PASE session SHALL be terminated by both
Commissioner and Commissionee once the CommissioningComplete command is received by the
Commissionee.
Overall, all Commissioning operations employ actions using cluster attributes and commands that
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 253
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
are also, in certain cases, available during normal steady-state operation once commissioned.
Whenever the Fail-Safe timer is armed, Commissioners and Administrators SHALL NOT consider
any cluster operation to have timed-out before waiting at least 30 seconds for a valid response from
the cluster server. Some commands and attributes with complex side-effects MAY require longer
and have specific timing requirements stated in their respective cluster specification.
Some request commands used for Commissioning and administration have a 'Breadcrumb' argu
ment. When set, this argument SHALL be used to update the value of the Breadcrumb Attribute as a
side-effect of successful execution of those commands. On command failures, the Breadcrumb
Attribute SHALL remain unchanged.
In concurrent connection commissioning flow, the failure of any of the steps 2 through 10 SHALL
result in the Commissioner and Commissionee returning to step 2 (device discovery and commis
sioning channel establishment) and repeating each step. The failure of any of the steps 11 through
15 in concurrent connection commissioning flow SHALL result in the Commissioner and Commis
sionee returning to step 11 (configuration of operational network information). In the case of fail
ure of any of the steps 11 through 15 in concurrent connection commissioning flow, the Commis
sioner and Commissionee SHALL reuse the existing PASE-derived encryption keys over the commis
sioning channel and all steps up to and including step 10 are considered to have been successfully
completed.
In non-concurrent connection commissioning flow, the failure of any of the steps 2 through 15
SHALL result in the Commissioner and Commissionee returning to step 2 (device discovery and
commissioning channel establishment) and repeating each step.
Commissioners that need to restart from step 2 MAY immediately expire the fail-safe by invoking
the ArmFailSafe command with an ExpiryLengthSeconds field set to 0. Otherwise, Commissioners
will need to wait until the current fail-safe timer has expired for the Commissionee to begin accept
ing PASE again.
Once a Commissionee has been successfully commissioned by a Commissioner into its fabric, the
commissioned Node SHALL NOT accept any more PASE requests until any one of the following con
ditions is met:
• Device is factory-reset.
Ongoing administration of Nodes by Administrators employs many of the same clusters and con
straints related to Fail-Safe timer and cluster operation time-outs used for initial or subsequent
Commissioning into new Fabrics. The respective cluster specifications for the Node Operational
Credentials Cluster and the Network Commissioning Cluster reflect the necessary usage of the Arm
FailSafe and CommissioningComplete commands of the General Commissioning Cluster to achieve
consistent state during administrative operations.
Page 254 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 255
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
In this method, a current Administrator of a Node first sends the Open Commissioning Window
command to the Node over a CASE session. The new Administrator MUST already have network
connectivity and complete commissioning based on the two flows described below.
The commands for these flows are defined in Section 11.18, “Administrator Commissioning Clus
ter”.
Page 256 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The new Administrator’s Commissioner then completes commissioning with the Node using similar
Commissioning flow as it would do for a factory-new device (although note that IP channel is used
for discovery). It can either scan the QR code format or use the Manual Pairing Code format of the
Section 5.1, “Onboarding Payload” of the Node.
The following steps describe a possible sequence of events for BCM commissioning:
1. Current Administrator puts the Node in Open Basic Commissioning Window for a specified time
window, and receives success response from the Node on the Open Basic Commissioning Win
dow command.
a. When the targeted Node is a SED, the current Administrator can guide the user to perform
some action to 'wake' the device from its sleep cycle.
2. New Administrator completes commissioning within the prescribed window using steps out
lined in Figure 30, “Concurrent connection commissioning flow”.
Presentation of the passcode and other relevant information SHALL be done at least with one or
more of the methods below, depending on the capabilities of the first Administrator opening the
OCW:
1. If a user interface display is supported, the temporary Onboarding Payload SHALL be displayed
using a textual representation of the Manual Pairing Code, using the 11-digit variant: it SHALL
NOT contain the VENDOR_ID or PRODUCT_ID as the onboarding of the node(s) using the ECM cannot
be subject to User-Intent or Custom Flows.
2. If a user interface display is supported, the temporary Onboarding Payload SHOULD also be dis
played using the definitions included in Section 5.1.3, “QR Code” subject to the following con
straints:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 257
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
a. If only a single Node is being subjected to the ECM, the Vendor ID and Product ID in the
onboarding payload SHALL be the same as those of that Node.
b. If multiple Nodes are being subjected to the ECM using the same onboarding payload, the
Vendor ID SHALL be set to 0x0000 (Matter Standard) and the Product ID SHALL be set to
0x0000 (consistent with the value used for not advertising a Product ID in Device Announce
ment) .
d. The Discovery Capabilities Mask SHALL have ONLY bit 2 set to indicate the Node is only dis
coverable on the IP network.
e. The Passcode element SHALL be set by the existing Administrator to the same value as the
passcode chosen for this ECM operation.
f. The Discriminator element SHALL be set by the existing Administrator to the same value as
the Discriminator parameter in Section 11.18.8.1, “OpenCommissioningWindow (OCW) Com
mand”.
g. If multiple Nodes are subjected to ECM, the Section 5.1.5, “TLV Content” SHALL contain an
entry with kTag_NumberofDevices containing the number of devices that are expected to par
ticipate in the onboarding with this ECM operation.
h. When the Commissioning Timeout parameter of the OCW command is set to less than the
allowed maximum (15 minutes), the Section 5.1.5, “TLV Content” SHALL contain an entry
with kTag_CommissioningTimeout containing the value of the Commissioning Timeout parame
ter used for this ECM operation.
3. If only audio output is supported, the temporary Onboarding Payload SHALL be delivered using
a voice prompt of the Manual Pairing Code format. A method SHOULD be available for the user
to have the pairing code repeated.
Remote UIs, both visual and audio — such as a manufacturer-specific mobile app or a web UI — are
expressly permitted in the set of acceptable mechanisms for conveyance of the onboarding infor
mation.
This method allows a current Administrator to set multiple Nodes for commissioning with a new
administrator with an appropriate Commissioning Window, by turning on Open Commissioning Win
dow and sending the PAKE passcode verifier to a series of Nodes. The new Administrator uses the
information in Manual Pairing Code to discover the Nodes that are in Commissioning mode and
commission them using the new passcode.
The following steps describe a possible sequence of events for ECM commissioning:
1. Current Administrator puts the Node(s) in commissioning mode for a specified time window
with a new setup passcode, and receives success responses from the involved Node(s) on the
Open Commissioning Window command.
a. When one or more SED are among the targeted Nodes, the current Administrator can guide
the user to perform some action to 'wake' these devices from their sleep cycle.
3. New Administrator completes commissioning within the prescribed window using steps out
Page 258 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The following sequence diagram shows steps current Administrator takes to enable Open Commis
sioning Window.
Matter device manufacturers SHALL use the Distributed Compliance Ledger to provide commis
sioners with information and instructions for both initial and secondary commissioning, and
SHOULD use this Ledger to provide links to the user guide, a link to a manufacturer app, and other
pre-setup information, to enable an optimal commissioning flow without requiring bilateral
arrangements between each commissioner manufacturer and each device manufacturer.
Some fields in the Ledger SHALL or SHOULD be populated, depending on the type of commission
ing flow, as detailed in the text below and in the Distributed Compliance Ledger section.
• A Standard Commissioning Flow device SHALL be available for initial commissioning by any
Matter commissioner.
• A Standard Commissioning Flow device, when in factory-new state, SHALL start advertising
automatically upon power on (see Commencement).
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 259
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• A Standard Commissioning Flow device SHALL set Custom Flow bits in the Onboarding Payload
to indicate '0 - Standard Flow'.
• A Standard Commissioning Flow device SHALL follow the rules for Manual Pairing Code and QR
Code Inclusion.
• For the case where the device has stopped advertising (e.g. user has powered on the device
longer ago than the advertisement period), the manufacturer SHOULD provide guidance about
how to bring the device back into advertising mode using the CommissioningModeInitial
StepsHint field from the Distributed Compliance Ledger. Commissioners SHOULD use this infor
mation to guide the user for this case.
• When commissioning fails, the commissioner MAY also reference Distributed Compliance
Ledger fields such as UserManualUrl, SupportUrl and ProductUrl to assist the user in further
steps to resolve the issue(s).
• The Distributed Compliance Ledger entries for Standard Commissioning Flow devices SHALL
include the CommissioningCustomFlow field set to '0 - Standard' and the CommissioningMod
eInitialStepsHint field set to a non-zero integer value, with bit 0 (Power Cycle) being set to 1. The
CommissioningModeInitialStepsInstruction field SHALL be set when CommissioningModeIni
tialStepsHint has a Pairing Instruction dependency.
• A User-Intent Commissioning Flow device SHALL be available for initial commissioning by any
Matter commissioner.
• A User-Intent Commissioning Flow device, when in factory-new state, SHALL NOT start adver
tising automatically upon application of power (see Commencement).
• To place a User-Intent Commissioning Flow device into advertising mode, some form of user
interaction with the device beyond application of power is required (see Pairing Hint Table). If a
Page 260 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Device Manufacturer setup artifact is required for this, beyond documentation, then the device
is a Custom Commissioning Flow device and not a User-Intent Commissioning Flow device. The
documentation MAY be printed or in the form of online documentation (e.g. Section 11.22.5.8,
“UserManualUrl”).
• A User-Intent Commissioning Flow device SHALL follow the rules for Manual Pairing Code and
QR Code Inclusion.
• The Distributed Compliance Ledger entries for User-Intent Commissioning Flow devices SHALL
include the CommissioningCustomFlow field set to '1 - User Intent' and the CommissioningMod
eInitialStepsHint field set to a non-zero integer value. Bit 0 (Power Cycle) in the Commissioning
ModeInitialStepsHint field SHALL be set to 0. The CommissioningModeInitialStepsInstruction
field SHALL be set when CommissioningModeInitialStepsHint has a Pairing Instruction depen
dency.
• A User-Intent Commissioning Flow device SHALL set Custom Flow bits in the Onboarding Pay
load to indicate '1 - User Intent'.
• The commissioner SHOULD reference Distributed Compliance Ledger fields such as Commis
sioningModeInitialStepsHint, CommissioningModeInitialStepsInstruction, UserManualUrl, and
SupportUrl to assist the user during commissioning, e.g. to explain how to bring the device into
commissioning mode.
• A Custom Commissioning Flow device SHALL require interaction with custom steps, guided by a
service provided by the manufacturer for initial device setup, before it can be commissioned by
any Matter commissioner.
• A Custom Commissioning Flow device MAY include the Onboarding Payload on-device or in
packaging. If it is not included on the device or in packaging, then it SHALL be provided to the
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 261
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• A Custom Commissioning Flow device SHALL set Custom Flow bits in the Onboarding Payload
to indicate '2 - Custom'.
• The Distributed Compliance Ledger entries for Custom Commissioning Flow devices SHALL
include:
◦ the CommissioningModeInitialStepsHint with bit 0 (Power Cycle) set to 0 and bit 1 (Device
Manufacturer URL) set to 1
• When a Commissioner encounters a device with Custom Flow field (in Onboarding Payload) or
its CommissioningCustomFlow field (in Distributed Compliance Ledger) set to '2 - Custom', it
SHOULD use the CommissioningCustomFlowUrl to guide the user on how to proceed, unless it
has alternative means to guide the user to successful commissioning.
◦ This flow typically requires internet access to access the URL, so initial commissioning of the
device may fail if there is no internet connection at that time/location.
◦ If the flow requires an app, it needs to be made available for popular platforms amongst the
user population; some of their platforms running a commissioner (e.g. a smart speaker not
running a popular mobile OS) may thus not be able to be used for the initial commissioning
of such devices.
Page 262 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The CommissioningCustomFlowUrl MAY contain a query component (see RFC 3986 section 3.4). If a
query is present, it SHALL be composed of one or more key-value pairs:
• The query SHALL use the & delimiter between key/value pairs.
• The key-value pairs shall in the format name=<value> where name is the key name, and <value> is
the contents of the value encoded with proper URL-encoded escaping.
• If key MTcu is present, it SHALL have a value of "_" (i.e. MTcu=_). This is the "callback URL (Call
backUrl) placeholder".
• If key MTop is present, it SHALL have a value of "_" (i.e. MTop=_). This is the "onboarding payload
placeholder".
• Any key whose name begins with MT not mentioned in the previous bullets SHALL be reserved
for future use by this specification. Manufacturers SHALL NOT include query keys starting with
MT in either the CommissioningCustomFlowUrl or CallbackUrl unless they are referenced by a ver
sion of this specification.
When the CommissioningCustomFlowUrl for a Custom Commissioning Flow device includes the MTop
key, the Passcode embedded in any Onboarding Payload placed on-device or in packaging SHALL
NOT be one that can be used for secure channel establishment with the device. This requirement is
intended to ensure a shared secret used for proof of possession will not be transferred to a server
without user consent. A Custom Commissioning Flow device MAY utilize Onboarding Payload fields
such as the Serial Number (see kTag_SerialNumber) to pass device identification to the server speci
fied in CommissioningCustomFlowUrl, as these fields by themselves could not be used to gain access to
the device on their own like the Passcode could.
When the CommissioningCustomFlowUrl for a Custom Commissioning Flow device includes the MTop
key, the Passcode embedded in any Onboarding Payload placed on-device or in packaging MAY be
set to 0 in order to provide a hint to the Commissioner that it is not one that can be used for secure
channel establishment with the device. This would allow the Commissioner to avoid attempting to
commission the device if an advertisement from it is detected.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 263
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Any other element in the CommissioningCustomFlowUrl query field not covered by the above rules, as
well as the fragment field (if present), SHALL remain as obtained from the Distributed Compliance
Ledger's CommissioningCustomFlowUrl field, including the order of query key/value pairs present.
Once the URL is obtained, it SHALL be expanded to form a final URL (ExpandedCommissioningCustom
FlowUrl) by proceeding with the following substitution algorithm on the original CommissioningCus
tomFlowUrl:
1. If key MTcu is present, compute the CallbackUrl desired (see Section 5.7.3.2, “CallbackUrl format
for Custom Commissioning Flow response”), and substitute the placeholder value "_" (i.e. in
MTcu=_) in the CommissioningCustomFlowUrl with the desired contents, encoded with proper URL-
encoded escaping (see RFC 3986 section 2).
2. If key MTop is present, substitute the the placeholder value "_" (i.e. in MTop=_) in the Commission
ingCustomFlowUrl with either numeric manual code, or QR code body including the MT: prefix
and TLV data (if present), encoded with proper URL-encoded escaping (see RFC 3986 section 2).
Note that both methods SHOULD be supported by the Manufacturer’s custom flow.
A Commissioner SHALL NOT append the MTop= query key/value pair unless the key/value pair was
already present as MTop=_ in the CommissioningCustomFlowUrl previously obtained. This constraint
enables the determination of which products make use of the payload in their Custom Commission
ing Flow infrastructure by inspection of the Distributed Compliance Ledger records.
The final URL after expansion (ExpandedCommissioningCustomFlowUrl) SHALL be the one to follow per
Section 5.7.3, “Custom Commissioning Flow”, rather than the original value obtained from the Dis
tributed Compliance Ledger.
If a CallbackUrl field (i.e. MTcu=) query field placeholder is present in the CommissioningCustom
FlowUrl, the Commissioner MAY replace the placeholder value "_" in the ExpandedCommissioningCus
tomFlowUrl with a URL that the manufacturer custom flow can use to make a smooth return to the
Commissioner when the device is in a state that it can be commissioned.
This URL field MAY contain a query component (see RFC 3986 section 3.4).
• The query SHALL use the & delimiter between key/value pairs.
• The key-value pairs SHALL follow the format name=<value> where name is the key name, and
<value> is the contents of the value encoded with proper URL-encoded escaping.
• If key MTrop is present, it SHALL have a value of "_" (i.e. MTrop=_). This is the placeholder for a
"returned onboarding payload" provided by the manufacturer flow to the Commissioner.
• Any key whose name begins with MT not mentioned in the previous bullets SHALL be reserved
for future use by this specification.
Any other element in the CallbackUrl query field not covered by the above rules, as well as the frag
ment field (if present), SHALL remain as provided by the Commissioner through embedding within
Page 264 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Once the CallbackUrl is obtained by the manufacturer flow, it MAY be expanded to form a final
ExpandedCallbackUrl URL to be used by proceeding with the following substitution algorithm on the
provided CallbackUrl:
• If key MTrop is present, the manufacturer custom flow having received the initial query contain
ing the CallbackUrl MAY compute an Onboarding Payload in QR code format including MT: pre
fix, and substitute the placeholder value "_" (i.e. in MTrop=_) in the CallbackUrl with the desired
contents, encoded with proper URL-encoded escaping (see RFC 3986 section 2).
◦ The contents of the MTrop=_ key/value pair in the ExpandedCallbackUrl SHALL only be
expanded if the manufacturer custom flow, having received the initial query containing the
CallbackUrl, supports opening a commissioning window on the target device and supports
conveying the corresponding onboarding payload to the Commissioner.
◦ The return onboarding payload, if provided, SHALL contain an ephemeral Passcode and not
a permanent code that can be used in a subsequent commissioning window. If the manufac
turer wants the Passcode embedded in the Onboarding Payload placed on-device or in pack
aging to be the one used for session establishment with the Commissioner, then the manu
facturer SHALL NOT include the MTop key in its CommissioningCustomFlowUrl and SHALL NOT
populate the MTrop value in the CallbackUrl expansion.
◦ The contents of the return onboarding payload, if provided, SHALL be constructed to match
the state of the device at the moment the ExpandedCallbackUrl is opened. At least one ingredi
ent which needs to be adapted relative to the received Onboarding Payload is the Custom
Flow field which needs to be 0 for the return onboarding payload.
◦ The presence of this field is to assist automatically resuming commissioning without addi
tional data entry (QR code or numeric manual code) by the user at the Commissioner that
initially triggered the custom flow. The manufacturer custom flow SHOULD provide an alter
nate means of conveying the onboarding payload, such as a manual pairing code.
◦ Note that if the information in the initial onboarding payload that caused triggering of a
Custom Commissioning Flow was directly usable, it may be used by the Commissioner,
either upon being triggered through the ExpandedCallbackUrl having been opened, or
autonomously as a fallback.
◦ If the manufacturer custom flow failed to make the device commissionable, it SHALL NOT
replace the placeholder value "_" of an included MTrop=_ key/value pair, to avoid a Commis
sioner attempting to discover or commission a device not made ready by the custom flow.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 265
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Below are some examples of valid ExpandedCommissioningCustomFlowUrl for several valid values of
CommissioningCustomFlowUrl, as well as some examples of invalid values of CommissioningCustom
FlowUrl:
◦ http://company.example.com/matter/custom/flows/vFFF1p1234
• Valid URL with MTop=_ placeholder using QR format onboarding payload embedding:
• Valid URL with MTop=_ placeholder using numeric manual code onboarding payload embedding:
▪ Onboarding numeric manual code 610403146665521046600 was embedded within MTop key
• Valid URL with MTop=_ placeholder using numeric manual code onboarding payload embedding,
using a different order of keys/value pairs than the previous example:
▪ Onboarding numeric manual code 610403146665521046600 was embedded within MTop key
• Valid URL with onboarding payload elided (because commissioner could not provide it):
Page 266 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
◦ Before expansion:
https://company.example.com/matter/custom/flows?vid=FFF1&pid=1234&MTop=_&MTcu=_
◦ After expansion:
https://company.example.com/matter/custom/flows?vid=FFF1&pid=1234&MTop=MT%3A-
MOA57ZU02IT2L2BJ00&MTcu=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fcommissioner.example.com%2Fcb%3Ftoken%3DmA
sJ6_vqbr-vjDiG_w%253D%253D%26MTrop%3D_
▪ After expansion of the CallbackUrl (MTcu key) into an ExpandedCallbackUrl, with an exam
ple return onboarding payload of MT:-MOA5.GB00V68T62O10, the ExpandedCallbackUrl would
be:
https://commissioner.example.com/cb?token=mAsJ6_vqbr-
vjDiG_w%3D%3D&MTrop=MT%3A-MOA5.GB00V68T62O10
Note that the MTcu key/value pair was initially provided URL-encoded within the Expand
edCommissioningCustomFlow URL and the MTrop=_ key/value pair placeholder now contains
a substituted returned onboarding payload.
• Invalid URL, due to MTza=79 key/value pair in reserved MT-prefixed keys reserved for future use:
◦ https://company.example.com/matter/custom/flows?vid=FFF1&pid=1234&MTop=_&MTza=79
An example of this flow is illustrated below. The "DCL info" concept denotes that the Commissioner
SHALL collect the information from the DCL via some mechanism, such as a network resource
accessible to the Commissioner containing a replicated set of the DCL’s content.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 267
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• In the final steps, the User has to perform the trigger to the first Commissioner, so that it can
start or continue the commissioning process.
• If possible, a Commissioner MAY continue to scan for announcements from the device in the
background while any manufacturer-specific app is configuring the device to be available for
commissioning. The Commissioner may need a new OnboardingPayload provided to the User by
the Manufacturer Website or App.
◦ Include the onboarding payload obtained from the user (see MTop key in Section 5.7.3.1,
“CommissioningCustomFlowUrl format”) within the CommissioningCustomFlowUrl.
◦ Include a callback URL (see MTcu key in Section 5.7.3.1, “CommissioningCustomFlowUrl for
mat”) within the ExpandedCommissioningCustomFlowUrl.
• The Manufacturer Website or App MAY utilize the CallbackUrl field, if provided in the query
string, in order to simplify the process for signaling the completion of the manufacturer-specific
part of the flow back to the Commissioner. When doing so, the Manufacturer Website or App
SHOULD put the device into Commissioning mode and SHOULD provide the corresponding
onboarding payload to the Commissioner using the MTrop key/value pair within the Expanded
CallbackUrl.
Manual Pairing Code and QR setup codes enable secure commissioning and provide a consistent
experience that many users are familiar with. However, because they contain a symmetric security
code it is not appropriate in all circumstances to have them be in a readily accessible location on
Page 268 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The following are the requirements and recommendations regarding the QR Code and Manual Pair
ing code for Standard and User Intent Commissioning Flow Devices. Custom Commissioning Flow
Device rules are described in the Custom Commissioning Flow.
The term 'on-device' allows for a physical label affixed to the device or printed directly on the
device, as well as one that can be displayed on demand through some physical interface properties
of the device (e.g. visual or audio).
2. Devices SHALL NOT have the QR nor the manual pairing code in an unprotected format on the
outer packaging.
3. Devices SHOULD include the QR Code, and SHOULD include it alongside the Manual Pairing
Code on-device or in packaging.
4. Manual Pairing Code and QR Code on-device MAY be removable or obscured to allow the owner
to prevent commissioning without their consent.
5. Devices MAY include the QR Code and Manual Pairing Code in multiple forms (see below).
Presentation of the QR Code and Manual Pairing code on-device can occur in many forms to allow
for adherence to device security requirements and manufacturing considerations. For example
security devices could limit the access to the QR code or Manual Pairing Code to avoid an unautho
rized user obtaining the information by simple inspection, or make the QR code and/or Manual
Pairing Code removable.
The following is a list of possible ways that are acceptable to satisfy the requirements of inclusion
of the QR code and Manual Pairing Code. An entry in the list should not be interpreted as being
mutually exclusive with another entry. A device SHOULD include as many of these ways as possible.
• QR and Manual Pairing Code shown via an on-device display (when available)
• QR and Manual Pairing Code printed on-device, with removal/obscuring considerations noted
above.
• Manual Pairing Code presented on-device via audio output (when available)
The following are examples of QR code and Manual Pairing Code inclusion.
• QR Code and Manual Pairing Code printed on a Matter wireless shade inside the battery com
partment cover, and provided in the packaging.
• QR Code and Manual Pairing code on a Matter Smart Thermostat that can be activated via an
on-device User Interface and displayed only on screen.
• QR Code and Manual Pairing code for a security sensor that is provided in the packaging, and
on-device hidden behind a tamper-monitored cover.
• QR code provided on an E12 light bulb, with manual pairing code on a removable label (the
area of QR code likely fits better on small form factor bulb than the area for a 13 character
string).
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 269
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• A wearable device with only a Manual Pairing Code printed on the fabric. No QR code is present
because of the difficulty in scanning a QR code on an irregular surface.
• A Smart speaker, without printed QR or manual pairing code on the device (but possibly in-
packaging), that can be triggered to read out a Manual Pairing Code.
• The initial situation is a device which is connected to the local network, and some manufacturer
specific means (e.g. a manufacturer-provided app) is used to provide new firmware (including
Matter functionality) to the device, along with the associated Certification Declaration. Also, a
unique Device Attestation Certificate is provided into the device using secure, manufacturer-
specific means.
• The device restarts to enable the new firmware, and is now an uncommissioned Matter device.
• The device can be commissioned by any Commissioner; the Onboarding Payload needs to be
provided to that Commissioner (since this information is not provided on or with the device out
of the factory).
▪ presentation of the passcode and other relevant information can be performed using the
mechanisms described in Section 5.6.3.1, “Presentation of Onboarding Payload for ECM”.
◦ For devices with a means to output the Onboarding Payload themselves (e.g. device with a
display or audio output), alternatively, similar mechanisms as discussed as in Section 5.6.2,
“Basic Commissioning Method (BCM)” can be employed:
Page 270 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Device Attestation section provides mechanisms for Commissioners and Administrators to
determine whether a Node is a genuine certified product before sharing sensitive information such
as keys and other credentials. The Device Attestation feature relies on a Device Attestation Certifi
cate (DAC) chain and on a Certification Declaration (CD).
The Node Operational Credentials section describes the credentials used by all Nodes to mutually
authenticate each other during Certificate-Authenticated Session Establishment, including the Node
Operational Certificate (NOC) chain. These credentials form the basis of how Nodes are identified
and take part in securing operational unicast communication.
In order to simplify further exposition, this subsection contains some common normative conven
tions that SHALL apply to all digital certificates described in this specification.
• Compressed Node Operational credentials certificate chain elements in Matter Operational Cer
tificate Encoding or "Matter Certificate" format:
◦ Device Attestation Certificate (DAC): see Section 6.2.2.3, “Device Attestation Certificate (DAC)”
◦ Product Attestation Intermediate (PAI): see Section 6.2.2.4, “Product Attestation Intermediate
(PAI) Certificate”
◦ Product Attestation Authority (PAA): see Section 6.2.2.5, “Product Attestation Authority (PAA)
Certificate”
In addition to the standard DN (Distinguished Names) attribute types that appear in certificate Sub
ject and Issuer fields, there are Matter-specific DN attribute types under the 1.3.6.1.4.1.1.37244 pri
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 271
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
vate arc. These are listed in Table 54, “Matter-specific DN Object Identifiers”. These OID values are
assigned by the Connectivity Standards Alliance for use with Matter. All of these Matter-specific
RDNs encode values normatively defined as scalars.
When used in Matter Operational Certificate (TLV) format (see Section 6.5, “Operational Certificate
Encoding”), Matter-specific DN attribute types SHALL be encoded in Matter TLV as unsigned inte
gers with the specified length.
When used in X.509 ASN.1 DER format certificate encoding, Matter-specific DN attribute types
SHALL have their value encoded as either a UTF8String or PrintableString according to the table
below. The values SHALL be encoded in network byte order as exactly twice their specified maxi
mum octet length, encoded as uppercase hexadecimal number format without any separators or
prefix, and without omitting any leading zeroes.
For example:
TLV Tag Matter name Length String length ASN.1 OID Types Allowed
(octets) in X.509
Page 272 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
TLV Tag Matter name Length String length ASN.1 OID Types Allowed
(octets) in X.509
Whenever an X.509 certificate contains Authority Key Identifier or Subject Key Identifier exten
sions, the associated Key Identifier SHALL be of a length of 20 octets, consistent with the length of
derivation method (1) described in section 4.2.1.2 of [RFC 5280].
Further constraints related to the exact derivation appear in the following subsections:
• Matter Certificates (NOC, ICAC, RCAC) Subject Key Identifier extension: see Section 6.5.11.4,
“Subject Key Identifier Extension”
• Matter Certificates Authority Key Identifier extension: see Section 6.5.11.5, “Authority Key Iden
tifier Extension”
• Device Attestation Certificate (DAC) extensions: see Section 6.2.2.3, “Device Attestation Certifi
cate (DAC)”
• Product Attestation Intermediate (PAI) Certificate extensions: see Section 6.2.2.4, “Product Attes
tation Intermediate (PAI) Certificate”
• Product Attestation Authority (PAA) Certificate extensions: see Section 6.2.2.5, “Product Attesta
tion Authority (PAA) Certificate”
All certificates SHALL NOT be longer than 600 bytes in their uncompressed DER format. This con
straints SHALL apply to the entire DAC chain (DAC, PAI, PAA) and NOC chain (NOC, ICAC, RCAC).
Wherever Matter Operational Certificate Encoding representation is used, all certificates SHALL
NOT be longer than 400 bytes in their TLV form. This constraint only applies to the NOC chain (NOC,
ICAC, RCAC) since the DAC chain (DAC, PAI, PAA) only appears in DER format.
Certificate bodies are presented for exemplary purposes in multiple formats within this chapter.
Since the translation of an X.509 certificate from ASN.1 DER format to human-readable text format
may lose fidelity, especially with regards to equivalent types (e.g., PrintableString versus IA5String
versus UTF8String) or serialization when non-standard OIDs are seen, textual examples SHALL
NOT be considered to be normative. Only direct encoding of DER encoding, such as PEM blocks,
should be used to further study the examples. In case of unforeseen divergence between an exam
ple certificate illustration and the normative rules expressed in prose, the normative prose SHALL
take precedence over an ambiguous interpretation of an example.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 273
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Certification of a Device includes configuring the Device with immutable credentials that can be
cryptographically verified. Device Attestation is the step of the Commissioning process whereby a
Commissioner cryptographically verifies a Commissionee is in fact a certified Device. This chapter
describes the Device Attestation Certificate (DAC) and the systems involved in the verification of a
DAC.
The processes used to convey the DAC from a Commissionee to a Commissioner, how to verify that
a Commissionee holds the private key corresponding to its DAC, and specifically how the DAC is ver
ified are described in Section 6.2.3, “Device Attestation Procedure”.
This chapter refers to the signature algorithm ECDSA with SHA256 and to the elliptic curve secp256r1
(aka prime256v1 and NIST P-256) in compliance with the mapping for version 1.0 of the Matter Mes
sage Format of the cryptographic primitives as specified in Chapter 3, Cryptographic Primitives.
Future versions of this specification might adapt these references accordingly.
All commissionable Matter Nodes SHALL include a Device Attestation Certificate (DAC) and corre
sponding private key, unique to that Device. The DAC is used in the Device Attestation process, as
part of Commissioning a Commissionee into a Fabric. The DAC SHALL be a DER-encoded X.509v3-
compliant certificate as defined in RFC 5280 and SHALL be issued by a Product Attestation Interme
diate (PAI) that chains directly to an approved Product Attestation Authority (PAA), and therefore
SHALL have a certification path length of 2.
The DAC also SHALL contain specific values of Vendor ID and Product ID (see Section 6.2.2.2,
“Encoding of Vendor ID and Product ID in subject and issuer fields”) in its subject field to indicate
the Vendor ID and Product ID provenance of the attestation certificate. See Section 6.2.3.1, “Attesta
tion Information Validation” for how these are used.
The validity period of a DAC is determined by the vendor and MAY be set to the maximum allowed
value of 99991231235959Z GeneralizedTime to indicate that the DAC has no well-defined expiration
date.
The notation used in this section to describe the specifics of the DAC uses the ASN.1 basic notation
as defined in X.680. The notation below also leverages types defined in RFC 5280 such as Algorith
mIdentifier, RelativeDistinguishedName, Validity, Time, UTCTime, GeneralizedTime, or permitted exten
sion types. Additionally, the notation below uses the ASN.1 definitions captured in the figure below:
-- Matter Names
Page 274 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
-- There are two acceptable formats for MatterPA name. The first is identical to
MatterDACName,
-- i.e. the second to last RelativeDistinguishedName object in MatterPAName SEQUENCE
SHALL contain an
-- attribute with type equal to matter-oid-vid and the last RelativeDistinguishedName
object in the
-- SEQUENCE SHALL contain an attribute with type field set to matter-oid-pid. In the
second acceptable
-- format, the last element of the MatterPAName SEQUENCE SHALL be an
RelativeDistinguishedName with
-- an attribute with type field set to matter-oid-vid
-- X962 OIDs
The Device Attestation PKI hierarchy consists of the PAA, PAI and individual DAC. The public key
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 275
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
from the associated PAI certificate is used to cryptographically verify the DAC signature. The PAI
certificate in turn is signed and attested to by the Product Attestation Authority (PAA) CA. The pub
lic key from the associated PAA certificate is used to cryptographically verify the PAI certificate sig
nature. The PAA certificate is an implicitly trusted self-signed root certificate. In this way, the DAC
chains up to the PAI certificate, which in turn chains up to the PAA root certificate. A PAI SHALL be
assigned to a Vendor ID value. A PAI MAY further be scoped to a single ProductID value. If a PAI is
used for multiple products, then it cannot be scoped to a ProductID value, otherwise the Device
Attestation Procedure will fail policy validations.
Commissioners SHALL use PAA and PAI certificates to verify the authenticity of a Commissionee
before proceeding with the rest of the Commissioning flow.
The subject of all DAC and PAI certificates SHALL be unique among all those issued by their issuer,
as intended by RFC 5280 section 4.1.2.6, through the use of RelativeDistinguishedName s that ensure
the uniqueness, such as for example a unique combination of commonName (OID 2.5.4.3), serialNumber
(OID 2.5.4.5), organizationalUnitName (OID 2.5.4.11), etc. The exact additional constraints, including
for the subject field, for PAA, PAI and DAC certificates, are presented in the following subsections.
The values for VendorID and ProductID, where possible or required in issuer or subject fields
Page 276 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
SHALL be encoded by only one of two methods, without mixing the methods within a given field:
2. A "fallback method" to support certificate authorities that only allow customary RFC 5280 OIDs
in the arc {joint-iso-itu-t(2) ds(5) attributeType(4)} for type values in AttributeTypeAndValue
entries of RelativeDistinguishedName elements is to encode them as substrings within the com
monName attribute type ({joint-iso-itu-t(2) ds(5) attributeType(4) commonName(3)}):
a. VendorID value encoded with substring Mvid: followed by exactly 4 uppercase hexadecimal
characters without elision of leading zeroes, anywhere within the commonName, such as for
example:
b. ProductID value encoded with substring Mpid: followed by exactly 4 uppercase hexadecimal
characters without elision of leading zeroes, anywhere within the commonName, such as for
example:
The "preferred method" leaves more space for content in the commonName attribute type if present. It
is also less ambiguous which may allow simpler processing of certificate issuance policy validations
in CAs that support the Matter-specific RelativeDistinguishedName attributes, and simplify the audit
of certificates where Vendor ID and Product ID appear.
The "fallback method" requires exactly 9 characters that are safe to use in both PrintableString and
UTF8String for either VendorID or ProductID encoding. Since these VendorID and ProductID sub
strings have unambiguous format, they MAY be provided anywhere within a commonName value, and
therefore separator selection does not need to be considered. Note that the standard RFC 5280
length limitation for commonName attribute value is 64 characters in total (see ub-common-name in
RFC 5280).
Using the "fallback method" for embedding of VendorID and ProductID in commonName in the subject
field of a Device Attestation Certificate claiming VendorID 0xFFF1 and ProductID 0x00B1 can be
illustrated with the following valid and invalid examples (without the double quotes):
• "ACME Matter Devel DAC 5CDA9899 Mvid:FFF1 Mpid:00B1": valid and recommended since easily
human-readable
• "ACME Matter Devel DAC 5CDA9899 Mpid:00B1 Mvid:FFF1": valid and recommended since easily
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 277
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
human-readable
• "Mpid:00B1,ACME Matter Devel DAC 5CDA9899,Mvid:FFF1": valid example showing that order or
separators are not considered at all for the overall validity of the embedded fields
• "ACME Matter Devel DAC 5CDA9899 Mvid:FFF1Mpid:00B1": valid, but less readable
• "Mvid:FFF1ACME Matter Devel DAC 5CDAMpid:00B19899": valid, but highly discouraged, since
embedding of substrings within other substrings may be confusing to human readers.
• "ACME Matter Devel DAC 5CDA9899 Mvid:FF1 Mpid:00B1": invalid, since substring following Mvid: is
not exactly 4 uppercase hexadecimal digits
• "ACME Matter Devel DAC 5CDA9899 Mvid:fff1 Mpid:00B1": invalid, since substring following Mvid:
is not exactly 4 uppercase hexadecimal digits
• "ACME Matter Devel DAC 5CDA9899 Mvid:FFF1 Mpid:B1": invalid, since substring following Mpid: is
not exactly 4 uppercase hexadecimal digits
• "ACME Matter Devel DAC 5CDA9899 Mpid: Mvid:FFF1": invalid, since substring following Mpid: is
not exactly 4 uppercase hexadecimal digits
For example, if a given Product Attestation Intermediate certificate has a subject field employing a
particular method of encoding the VendorID and ProductID, either using only Matter-specific OIDs
or only the fallback method, then it follows that a Device Attestation Certificates issued by the cer
tificate authority of that Product Attestation Intermediate SHALL have the same Distinguished
Name content in its issuer field, so that the basic path validation algorithm works. That Device
Attestation Certificate MAY however have the "fallback method" used within its subject field, if the
Product Attestation Intermediate certificate authority is unable to encode/reflect the Matter-specific
OIDs in RelativeDistinguishedName attributes within the subject field. The rules for whether to
consider the canonical or "fallback method" for VendorID and ProductID encoding applies field by
field independently for each instance of subject or issuer field found in certificates within the DAC
chain.
Page 278 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
tbsCertificate DACTBSCertificate,
signatureAlgorithm AlgorithmIdentifier,
signatureValue BIT STRING }
The DAC certificate SHALL follow the following constraints layered on top of the encoding specified
by RFC 5280 within the TBSCertificate structure:
2. The signature field SHALL contain the identifier for signatureAlgorithm ecdsa-with-SHA256.
4. The issuer field SHALL have exactly one VendorID value present.
5. The issuer field SHALL have exactly zero or one ProductID value present.
7. The subject field SHALL have exactly one VendorID value present.
a. The VendorID value present in the issuer field SHALL match the VendorID value found in
subject field.
8. The subject field SHALL have exactly one ProductID value present.
a. If a ProductID value was present in the issuer field, the ProductID value found in subject
field SHALL match the value found in the issuer field.
9. The algorithm field in subjectPublicKeyInfo field SHALL be the object identifier for prime256v1.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 279
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
a. Basic Constraint extension SHALL be marked critical and have the cA field set to FALSE.
i. The KeyUsage bitstring SHALL only have the digitalSignature bit set.
11. The certificate MAY also carry the following additional Extensions:
Valid example DAC with associated private key, in X.509 PEM format
-----BEGIN CERTIFICATE-----
MIIB6TCCAY+gAwIBAgIIDgY7dCvPvl0wCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP
TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB
gqJ8AgIMBDgwMDAwIBcNMjEwNjI4MTQyMzQzWhgPOTk5OTEyMzEyMzU5NTlaMEsx
HTAbBgNVBAMMFE1hdHRlciBUZXN0IERBQyAwMDAxMRQwEgYKKwYBBAGConwCAQwE
RkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAwWTATBgcqhkjOPQIBBggqhkjOPQMB
BwNCAATCJYMix9xyc3wzvu1wczeqJIW8Rnk+TVrJp1rXQ1JmyQoCjuyvJlD+cAnv
/K7L6tHyw9EkNd7C6tPZkpW/ztbDo2AwXjAMBgNVHRMBAf8EAjAAMA4GA1UdDwEB
/wQEAwIHgDAdBgNVHQ4EFgQUlsLZJJTql4XA0WcI44jxwJHqD9UwHwYDVR0jBBgw
FoAUr0K3CU3r1RXsbs8zuBEVIl8yUogwCgYIKoZIzj0EAwIDSAAwRQIgX8sppA08
NabozmBlxtCdphc9xbJF7DIEkePTSTK3PhcCIQC0VpkPUgUQBFo4j3VOdxVAoESX
kjGWRV5EDWgl2WEDZA==
-----END CERTIFICATE-----
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 1010560536528535133 (0xe063b742bcfbe5d)
Signature Algorithm: ecdsa-with-SHA256
Issuer: CN = Matter Test PAI, 1.3.6.1.4.1.37244.2.1 = FFF1,
1.3.6.1.4.1.37244.2.2 = 8000
Validity
Not Before: Jun 28 14:23:43 2021 GMT
Not After : Dec 31 23:59:59 9999 GMT
Page 280 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Valid example DAC with associated private key, in X.509 PEM format, using "fallback method" for VendorID
and ProductID in Subject
-----BEGIN CERTIFICATE-----
MIIB0DCCAXegAwIBAgIIbec9lw3wZpAwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP
TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB
gqJ8AgIMBDgwMDAwIBcNMjEwNjI4MTQyMzQzWhgPOTk5OTEyMzEyMzU5NTlaMDMx
MTAvBgNVBAMMKE1hdHRlciBUZXN0IERBQyAwMDAxIE12aWQ6RkZGMSBNcGlkOjgw
MDAwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATCJYMix9xyc3wzvu1wczeqJIW8
Rnk+TVrJp1rXQ1JmyQoCjuyvJlD+cAnv/K7L6tHyw9EkNd7C6tPZkpW/ztbDo2Aw
XjAMBgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUlsLZJJTq
l4XA0WcI44jxwJHqD9UwHwYDVR0jBBgwFoAUr0K3CU3r1RXsbs8zuBEVIl8yUogw
CgYIKoZIzj0EAwIDRwAwRAIgbvYsHaGRTg1JzPTB6TqfVFPABF8LCYkEP1AvV7Ah
yL4CIACKW3A6YixqtqKfkwuvw81mMVymqafU8kx5k1c0zqbe
-----END CERTIFICATE-----
Human-readable contents of example DAC X.509 certificate, using "fallback method" for VendorID and Pro
ductID in Subject
Certificate:
Data:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 281
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Version: 3 (0x2)
Serial Number: 7919366188737521296 (0x6de73d970df06690)
Signature Algorithm: ecdsa-with-SHA256
Issuer: CN = Matter Test PAI, 1.3.6.1.4.1.37244.2.1 = FFF1,
1.3.6.1.4.1.37244.2.2 = 8000
Validity
Not Before: Jun 28 14:23:43 2021 GMT
Not After : Dec 31 23:59:59 9999 GMT
Subject: CN = Matter Test DAC 0001 Mvid:FFF1 Mpid:8000
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (256 bit)
pub:
04:c2:25:83:22:c7:dc:72:73:7c:33:be:ed:70:73:
37:aa:24:85:bc:46:79:3e:4d:5a:c9:a7:5a:d7:43:
52:66:c9:0a:02:8e:ec:af:26:50:fe:70:09:ef:fc:
ae:cb:ea:d1:f2:c3:d1:24:35:de:c2:ea:d3:d9:92:
95:bf:ce:d6:c3
ASN1 OID: prime256v1
NIST CURVE: P-256
X509v3 extensions:
X509v3 Basic Constraints: critical
CA:FALSE
X509v3 Key Usage: critical
Digital Signature
X509v3 Subject Key Identifier:
96:C2:D9:24:94:EA:97:85:C0:D1:67:08:E3:88:F1:C0:91:EA:0F:D5
X509v3 Authority Key Identifier:
keyid:AF:42:B7:09:4D:EB:D5:15:EC:6E:CF:33:B8:11:15:22:5F:32:52:88
Page 282 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
signature MatterSignatureIdentifier,
issuer Name,
validity Validity,
subject MatterPAName,
subjectPublicKeyInfo SEQUENCE {
algorithm OBJECT IDENTIFIER(id-x962-prime256v1),
subjectPublicKey BIT STRING },
extensions PAIExtensions }
The PAI certificate SHALL follow the following constraints layered on top of the encoding specified
by RFC 5280 within the TBSCertificate structure:
2. The signature field SHALL contain the identifier for signatureAlgorithm ecdsa-with-SHA256.
4. The issuer field SHALL have exactly zero or one VendorID value present.
6. The subject field SHALL have exactly one VendorID value present.
a. If a VendorID value was present in the issuer field, the VendorID value found in subject
field SHALL match the value found in the issuer field.
7. The subject field SHALL have exactly zero or one ProductID value present.
8. The algorithm field in subjectPublicKeyInfo field SHALL be the object identifier for prime256v1.
a. Basic Constraint extension SHALL be marked critical and have the cA field set to TRUE and
pathLen field set to 0.
i. Both the keyCertSign and cRLSign bits SHALL be set in the KeyUsage bitstring
10. The certificate MAY also carry the following additional Extensions:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 283
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The PAI certificate presented in the following example is for the issuer of the example DAC certifi
cate from the previous section.
Valid example PAI with associated private key, in X.509 PEM format
-----BEGIN CERTIFICATE-----
MIIB1DCCAXqgAwIBAgIIPmzmUJrYQM0wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP
TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMTA2Mjgx
NDIzNDNaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg
UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw
WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASA3fEbIo8+MfY7z1eY2hRiOuu96C7z
eO6tv7GP4avOMdCO1LIGBLbMxtm1+rZOfeEMt0vgF8nsFRYFbXDyzQsio2YwZDAS
BgNVHRMBAf8ECDAGAQH/AgEAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUr0K3
CU3r1RXsbs8zuBEVIl8yUogwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh
cX4wCgYIKoZIzj0EAwIDSAAwRQIhAJbJyM8uAYhgBdj1vHLAe3X9mldpWsSRETET
i+oDPOUDAiAlVJQ75X1T1sR199I+v8/CA2zSm6Y5PsfvrYcUq3GCGQ==
-----END CERTIFICATE-----
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 4498223361705918669 (0x3e6ce6509ad840cd)
Signature Algorithm: ecdsa-with-SHA256
Issuer: CN = Matter Test PAA, 1.3.6.1.4.1.37244.2.1 = FFF1
Validity
Not Before: Jun 28 14:23:43 2021 GMT
Not After : Dec 31 23:59:59 9999 GMT
Subject: CN = Matter Test PAI, 1.3.6.1.4.1.37244.2.1 = FFF1,
1.3.6.1.4.1.37244.2.2 = 8000
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (256 bit)
pub:
04:80:dd:f1:1b:22:8f:3e:31:f6:3b:cf:57:98:da:
14:62:3a:eb:bd:e8:2e:f3:78:ee:ad:bf:b1:8f:e1:
ab:ce:31:d0:8e:d4:b2:06:04:b6:cc:c6:d9:b5:fa:
b6:4e:7d:e1:0c:b7:4b:e0:17:c9:ec:15:16:05:6d:
70:f2:cd:0b:22
ASN1 OID: prime256v1
NIST CURVE: P-256
X509v3 extensions:
Page 284 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The PAA certificate SHALL follow the following constraints layered on top of the encoding specified
by RFC 5280 within the TBSCertificate structure:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 285
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
2. The signature field SHALL contain the identifier for signatureAlgorithm ecdsa-with-SHA256.
4. The issuer field SHALL have exactly zero or one VendorID value present.
6. The subject field SHALL have exactly zero or one VendorID value present.
8. A ProductID value SHALL NOT be present in either the subject or issuer fields.
9. The algorithm field in subjectPublicKeyInfo field SHALL be the object identifier for prime256v1.
a. Basic Constraint extension SHALL be marked critical and have the cA field set to TRUE. The
'pathLen' field MAY be set and if the 'pathLen' is field is present it SHALL be set to 1.
i. Both the keyCertSign and cRLSign bits SHALL be set in the KeyUsage bitstring
11. The certificate MAY also carry the following additional Extensions:
The PAA certificate presented in the following example is for the issuer of the example PAI certifi
cate from the previous section.
Valid example PAA with associated private key, in X.509 PEM format
-----BEGIN CERTIFICATE-----
MIIBvTCCAWSgAwIBAgIITqjoMYLUHBwwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP
TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMTA2Mjgx
NDIzNDNaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg
UEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH
A0IABLbLY3KIfyko9brIGqnZOuJDHK2p154kL2UXfvnO2TKijs0Duq9qj8oYShpQ
NUKWDUU/MD8fGUIddR6Pjxqam3WjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD
VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAfBgNV
HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiBQ
qoAC9NkyqaAFOPZTaK0P/8jvu8m+t9pWmDXPmqdRDgIgI7rI/g8j51RFtlM5CBpH
mUkpxyqvChVI1A0DTVFLJd4=
-----END CERTIFICATE-----
Page 286 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
yhhKGlA1QpYNRT8wPx8ZQh11Ho+PGpqbdQ==
-----END EC PRIVATE KEY-----
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 5668035430391749660 (0x4ea8e83182d41c1c)
Signature Algorithm: ecdsa-with-SHA256
Issuer: CN = Matter Test PAA, 1.3.6.1.4.1.37244.2.1 = FFF1
Validity
Not Before: Jun 28 14:23:43 2021 GMT
Not After : Dec 31 23:59:59 9999 GMT
Subject: CN = Matter Test PAA, 1.3.6.1.4.1.37244.2.1 = FFF1
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (256 bit)
pub:
04:b6:cb:63:72:88:7f:29:28:f5:ba:c8:1a:a9:d9:
3a:e2:43:1c:ad:a9:d7:9e:24:2f:65:17:7e:f9:ce:
d9:32:a2:8e:cd:03:ba:af:6a:8f:ca:18:4a:1a:50:
35:42:96:0d:45:3f:30:3f:1f:19:42:1d:75:1e:8f:
8f:1a:9a:9b:75
ASN1 OID: prime256v1
NIST CURVE: P-256
X509v3 extensions:
X509v3 Basic Constraints: critical
CA:TRUE, pathlen:1
X509v3 Key Usage: critical
Certificate Sign, CRL Sign
X509v3 Subject Key Identifier:
6A:FD:22:77:1F:51:1F:EC:BF:16:41:97:67:10:DC:DC:31:A1:71:7E
X509v3 Authority Key Identifier:
keyid:6A:FD:22:77:1F:51:1F:EC:BF:16:41:97:67:10:DC:DC:31:A1:71:7E
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 287
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Device Attestation Certificate Chain MAY be read at any time, either prior to or after receipt of
the AttestationResponse. The Commissionee SHALL make the Certificate Chain available whenever
requested using Section 11.17.7.3, “CertificateChainRequest Command”. If the Commissioner does
not already have this information, to proceed with the validation, it SHALL request the Commis
sionee’s Device Attestation Certificate Chain using Section 11.17.7.3, “CertificateChainRequest Com
mand”.
1. The Commissioner SHALL generate a random 32 byte attestation nonce using Crypto_DRBG().
2. The Commissioner SHALL send the AttestationNonce to the Commissionee and request Attesta
tion Information using Section 11.17.7.1, “AttestationRequest Command”.
3. The Commissionee SHALL return the signed Attestation Information to the Commissioner using
Section 11.17.7.2, “AttestationResponse Command”.
After execution of the procedure, the Attestation Information SHOULD be validated using the
checks described in Section 6.2.3.1, “Attestation Information Validation”.
• The PAA SHALL be validated for presence in the Commissioner’s trusted root store, which
SHOULD include at least the set of globally trusted PAA certificates present in the Distributed
Compliance Ledger at the issuing timestamp (notBefore) of the DAC.
• The DAC certificate chain SHALL be validated using the Crypto_VerifyChainDER() function, tak
ing into account the mandatory presence of the PAI and of the PAA. It is especially important to
ensure the entire chain has a length of exactly 3 elements (PAA certificate, PAI certificate,
Device Attestation Certificate) and that the necessary format policies previously exposed are
validated, to avoid unauthorized path chaining (e.g., through multiple PAI certificates).
◦ Chain validation SHALL be performed with respect to the notBefore timestamp of the DAC to
ensure that the DAC was valid when it was issued. This way of validating is abided by the
Crypto_VerifyChainDER() function.
◦ Chain validation SHALL include revocation checks of the DAC, PAI and PAA, based on the
Commissioner’s best understanding of revoked entities.
• The VendorID value found in the subject DN of the DAC SHALL match the VendorID value in the
subject DN of the PAI certificate.
• If the PAA certificate contains a VendorID value in its subject DN, its value SHALL match the
VendorID value in the subject DN of the PAI certificate.
• The Device Attestation Signature (attestation_signature) field from Attestation Response SHALL
Page 288 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
be validated:
Success = Crypto_Verify(
publicKey = Public key from DAC,
message = Attestation Information TBS (attestation_tbs),
signature = Device Attestation Signature (attestation_signature)
)
where the fields are encoded as described in Section 11.17.5.5, “Attestation Information”.
◦ The AttestationChallenge SHALL be obtained from a CASE session, resumed CASE session, or
PASE session depending on the method used to establish the secure session within which
device attestation is conducted.
• The AttestationNonce in Device Attestation elements SHALL match the Commissioner’s pro
vided AttestationNonce.
• The Certification Declaration signature SHALL be validated using the Crypto_Verify() function
and the public key obtained from the CSA’s Certificate Authority Certificate.
◦ The vendor_id field in the Certification Declaration SHALL match the VendorID attribute
found in the Basic Information cluster.
◦ The product_id_array field in the Certification Declaration SHALL contain the value of the
ProductID attribute found in the Basic Information cluster.
◦ The Certification Declaration SHALL be considered valid only if it contains both or neither
of the dac_origin_vendor_id and dac_origin_product_id fields.
◦ If the Certification Declaration has both the dac_origin_vendor_id and the dac_origin_produc
t_id fields, the following validation SHALL be done:
▪ The VendorID value from the subject DN in the DAC SHALL match the dac_origin_ven
dor_id field in the Certification Declaration.
▪ The VendorID value from the subject DN in the PAI SHALL match the dac_origin_ven
dor_id field in the Certification Declaration.
▪ The ProductID value from the subject DN in the DAC SHALL match the dac_origin_pro
duct_id field in the Certification Declaration.
▪ The ProductID value from the subject DN in the PAI, if such a ProductID value appears,
SHALL match the dac_origin_product_id field in the Certification Declaration.
◦ If the Certification Declaration has neither the dac_origin_vendor_id nor the dac_origin_pro
duct_id fields, the following validation SHALL be done:
▪ The VendorID value from the subject DN in the DAC SHALL match the vendor_id field in
the Certification Declaration.
▪ The VendorID value from the subject DN in the PAI SHALL match the vendor_id field in
the Certification Declaration.
▪ The ProductID value from the subject DN in the DAC SHALL be present in the produc
t_id_array field in the Certification Declaration.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 289
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
▪ The ProductID value from the subject DN in the PAI, if such a Product ID is present,
SHALL match one of the values present in the product_id_array field in the Certification
Declaration.
◦ If the Certification Declaration contains the authorized_paa_list field, the following valida
tion SHALL be done:
▪ The Subject Key Identifier (SKI) extension value of the PAA certificate, which is the root
of trust of the DAC, SHALL be present as one of the values in the authorized_paa_list
field.
◦ The certificate_id field SHOULD match the CDCertificateID field found in the entry of the
DeviceSoftwareCompliance schema in the Distributed Compliance Ledger where the entry’s
VendorID, Product ID and SoftwareVersion field match the respective VendorID, ProductID
and SoftwareVersion attributes values found in the Basic Information Cluster.
◦ The firmware_information field in the Attestation Information, if present, SHALL match the
content of an entry in the Distributed Compliance Ledger for the specific device as explained
in Section 6.3.2, “Firmware Information”. If the Commissioner does not support Firmware
Information validation, it MAY skip checking this match.
The order of execution of the above validation steps MAY be optimized by Commissioners. For
example, if some validation steps are deemed by a Commissioner to make the remainder of the
steps unnecessary because they have no chance of succeeding, then the validation steps could be
ordered such that superfluous steps or rounds trips are omitted.
Page 290 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Certification Elements TLV is encoded with data to form a cd_content message to be signed.
cd_content =
{
format_version (0) = 1,
vendor_id (1) = <vendor_id>,
product_id_array (2) = <array of product_id values>,
device_type_id (3) = <primary device type identifier>,
certificate_id (4) = <globally unique certificate ID issued by CSA>,
security_level (5) = 0,
security_information (6) = 0,
version_number (7) = <version_number>,
certification_type (8) = <certification_type>,
dac_origin_vendor_id (9) = <Vendor ID associated with the DAC, optional>,
dac_origin_product_id (10) = <Product ID associated with the DAC, optional>,
authorized_paa_list (11) = <array of PAA SKIs, optional>
}
The vendor_id field SHALL contain the Vendor ID associated with the Certification Declaration.
The product_id_array field SHALL contain an array of a number of Product IDs which are covered
by the same certification (e.g. certification by similarity). All other fields of a Certification Declara
tion apply to all products in this array.
The device_type_id field SHALL contain the device type identifier for the primary function of the
device. For example, if device_type_id is 10 (0x000a), it would indicate that the device has a primary
function of a Door Lock device type. See also the _T subtype in Section 4.3.1.3, “Commissioning Sub
types”.
The device_type_id field in a given Certification Declaration SHOULD match the device_type_id
value in the DCL entries associated with the VendorID and ProductID combinations present in that
Certification Declaration.
The certificate_id field SHALL contain a globally unique serial number allocated by the CSA for
this Certification Declaration.
The security_level and security_information fields are reserved for future use and SHALL be
ignored at read time, and set to zero at issuance time.
The version_number field SHALL contain a version number assigned by the CSA that matches the
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 291
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The certification_type field SHALL contain the type of certification for this CD, interpreted accord
ing to the following table:
certification_type meaning
For details about the usage of the certification_type field in the Device Attestation Procedure, see
failure of Device Attestation Procedure.
The dac_origin_vendor_id field, if present, SHALL contain the Vendor ID value expected to be found
in the Device Attestation Certificate’s subject DN.
The dac_origin_product_id field, if present, SHALL contain the Product ID value expected to be
found in the Device Attestation Certificate’s subject DN.
The use of the dac_origin_vendor_id and dac_origin_product_id fields allows for a target of the
device attestation procedure to have a manufacturing provenance which differs from the entity
that obtains the ultimate certification. If present, they tie a given Certification Declaration to an
original manufacturer’s device attestation chain of trust, so that DACs MAY be issued at manufac
turing time without a priori knowledge of the ultimate vendor.
The optional authorized_paa_list field, if present, SHALL contain a list of one or more Product
Attestation Authority (PAA) which is/are authorized (by the device manufacturer) to sign the Prod
uct Attestation Intermediate (PAI) Certificate which signs the Device Attestation Certificate for a
product carrying this Certification Declaration. Each such PAA is identified by the Subject Key Iden
tifier (SKI) extension value of its certificate.
Any context-specific tags not listed in the above schema for Certification Elements SHALL be
reserved for future use, and SHALL be silently ignored if seen by a Commissioner which cannot
understand them.
See Section 6.2.3, “Device Attestation Procedure” for more details about usage of the Certification
Declaration fields.
Page 292 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
3. The signatureAlgorithm SHALL use the ecdsa-with-SHA256 (ECDSA with SHA256) and secp256r1
curve, as defined in Section 2.4.2 of SEC 2.
5. The subjectKeyIdentifier SHALL contain the subject key identifier (SKI) of a well-known Con
nectivity Standards Alliance certificate, that was used to generate the signature. The format of
the key identifiers supported is available as part of the Certification Policy.
Note that Certification Declarations SHALL NOT be generated by any Node, but rather, they SHALL
be stored and transmitted to a Commissioner by a Commissionee during the conveyance of the
Attestation Information in response to an Attestation Request command.
See Section F.1, “Certification Declaration CMS test vector” for a complete example of generating a
Certification Declaration.
Firmware Information is an optional component of the Device Attestation Information (see Section
6.2.3, “Device Attestation Procedure”).
Firmware Information MAY contain one or more Firmware Digests that correspond to the compo
nents in the firmware that have been measured and recorded during the boot process (e.g., boot
loader, kernel, root filesystem, etc), and MAY contain other metadata. A Firmware Digest SHALL
either represent a hash of the corresponding firmware layer or a hash of the signed manifest that
was used to validate the corresponding firmware layer during secure boot. An implementation
MAY choose to hash the measurements of all components into a single hash and include only that
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 293
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A device MAY report Firmware Information containing its firmware digests only if it implements a
secure subsystem that protects the device attestation private key and is able to securely collect and
report firmware digests as shown in Figure 35, “Illustration of the measured boot process”. This
process is known as "measured boot".
Ideally, the measured boot process SHOULD be rooted in silicon such as a boot ROM, similar to the
secure boot process found in many systems-on-chip (SoCs). Since many SoCs and microcontrollers
are unable to perform measured boot in hardware, the process SHOULD start at the earliest
firmware component possible (for example, at the bootloader shown in the figure below). In this
case, this firmware component is not measured and in fact, it is the root for measurement. There
fore, it SHALL be resistant to attacks compromising subsequent firmware components (e.g., the
ROM must verify its authenticity (secure boot) or it may be placed in a locked partition at the fac
tory that cannot be updated by software in the field).
The device secure subsystem SHALL use the device attestation private key to sign attestation-ele
ments and NOCSR-elements. The device secure subsystem SHALL fill the attestation-elements fields
using information compiled into its image or generated during the measured boot process. The
device secure subsystem SHALL validate all signing requests so that if the device software, but not
its secure subsystem, gets compromised it cannot act as a signing oracle to sign Attestation Informa
tion Responses with fake Firmware Digests.
For devices that support secure boot, it is straightforward to add support for measured boot. Specif
ically, the hashes of the different firmware components that are already generated and verified
sequentially during secure boot SHALL be collected and stored for reporting. Devices that do not
support secure boot MAY implement measured boot by generating the hashes in software during
the boot process implementing the root for measurement in the earliest firmware component.
Page 294 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
If a device that chooses to send Firmware Digests and which supports an industry-standard mea
sured boot architecture and which can generate signed firmware attestation reports, the secure
subsystem in the device MAY validate the firmware attestation reports locally and SHALL report
the raw firmware digests in attestation-elements so that the firmware_information field in attesta
tion-elements has the same values in all devices of the same model that run the specific Software
Image.
Firmware Digests SHALL NOT be reported by devices that implement a single firmware component
in the boot chain, because there is nothing to measure and report subsequently, unless they have
support for measured boot built in the device’s boot ROM.
Commissioners MAY use the reported firmware information to confirm that the firmware version
is authorized to run on the device, that it has not been revoked, or that it does not contain known
vulnerabilities. Commissioners and Administrators that choose to verify this information SHOULD
refer to canonical databases, such as the Distributed Compliance Ledger (see Section 11.22, “Distrib
uted Compliance Ledger”) to validate that the reported firmware information matches what is
expected for an authorized Software Image associated with a given Certification Declaration. The
firmware information, when validated, SHALL be validated as an opaque well-known octet string.
Internal semantic validation MAY be applied for error-reporting, but the exact format is out of the
scope of this specification.
Below is an illustrative example of the Commissioner actions to validate the firmware information.
2. Retrieve all Distributed Compliance Ledger DeviceSoftwareVersionModel entries for the Com
missionee’s Vendor ID and Product ID.
3. Verify that there is a valid, non-revoked, entry where the FirmwareInformation field exactly
matches the firmware_information field in attestation-elements.
Below is an example of the corresponding Device actions. For illustrative purposes, it is assumed
that the device implements a secure subsystem that maintains the private device attestation key
and signs attestation-elements using this key but it does not have direct hardware support for mea
sure boot. This is expected to be the common case for many devices covered by this version of the
specification. Consequently, the measurement process can only start from the bootloader shown in
the figure above.
1. The device bootloader produces a measurement of the OS kernel using a supported hash algo
rithm from RFC 5912 and delivers it to the secure subsystem.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 295
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
2. The secure subsystem receives the measurement and stores in a location inaccessible to the OS.
3. The OS kernel produces a hash of the root filesystem and delivers the measurement to the
secure subsystem.
4. When the secure subsystem is asked to sign an attestation-elements structure using its private
device attestation key, it generates two FirmwareDigests or one combined FirmwareDigest from
these measurements, fills the firmware_information field in attestation-elements using these
measurements, fills the CD blob compiled into the secure environment and signs the attestation-
elements structure.
The Device Vendor is responsible to provide the FirmwareInformation field when a new Software
Image entry is reported in the corresponding Distributed Compliance Ledger entry.
Below is an exemplary ASN.1 schema for an encoding scheme that could be used to encode
firmware information.
-- Example HashAlgorithm id
id-sha256 OBJECT IDENTIFIER ::= {
joint-iso-itu-t(2) country(16) us(840) organization(1) gov(101)
csor(3) nistAlgorithms(4) hashalgs(2) 1
}
Page 296 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
id id-sha256
},
digestHash '101112131415161718191A1B1C1D1E1F101112131415161718191A1B1C1D1E1F'H
}
}
}
The above example would yield the following DER-encoded octet string:
The Node Operational credentials are a collection of credentials to enable a Node to identify itself
within a Fabric. The Node Operational credentials are distinct from the Device Attestation creden
tials. The Node Operational credentials are installed during Commissioning.
Each Node in a Fabric is identified with a Node Operational Identifier. In order to securely identify
the Node, the Node Operational Identifier is bound to the Node Operational Public Key as both are
contained within the signed NOC. The Node Operational Identifier is a constituent part of the sub
ject field of the NOC, according to the rules described in Matter DN Encoding Rules. A connecting
Node can attest to the validity of the Node Operational Public Key and the Node Operational Identi
fier in a received NOC because the NOC is signed by a CA that the connecting Node trusts. Used with
Certificate Authenticated Session Establishment (CASE), these data provide the basis for secure
communications on the Fabric.
Commands from the Node Operational Credentials Cluster are used to install and update Node
Operational credentials.
A Node receives its initial set of Node Operational credentials through the AddNOC command when it
is commissioned onto a Fabric by a Commissioner.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 297
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Once installed, Node Operational credentials MAY be updated by an Administrator with the appro
priate privileges using the UpdateNOC command.
Once installed, Node Operational credentials MAY be removed by an Administrator with the appro
priate privileges using the RemoveFabric command. The removal uses RemoveFabric, since the Fabric
association for the given Node Operational credentials may underpin a variety of bindings and
other fabric-scoped configuration, which would remain in an inconsistent state if the Node Opera
tional credentials alone were removed, as opposed to the entire associated Fabric and data.
The Node Operational Identifier is used for Node discovery and network address resolution within
a network segment. The FabricID portion of the Node Operational Identifier serves a scoping pur
pose to identify disjoint operational Fabrics within a given network segment. The NodeID portion of
the Node Operational Identifier is the logical addressing identifier used:
• within Message-layer messages for logical addressing (see Section 4.4, “Message Frame Format”)
• within Data Model bindings to express data subscription relationships between Nodes (see Sys
tem Model)
• within Access Control List Entries to refer to individual Nodes as access control grantees (sub
jects) when CASE sessions are used for communication (see Access Control Cluster)
In addition to the FabricID and NodeID, a Node Operational Identifier MAY include at most three 32-
bit CASEAuthenticatedTag (1.3.6.1.4.1.37244.1.6) attributes used to tag the operational identifier to
implement access control based on CASE Authenticated Tags.
The Fabric ID is a 64-bit value that identifies the Fabric and is scoped to a particular Root CA. For
example, two fabrics with the same Fabric ID are not equivalent unless their Root CA are the same.
The Fabric ID MAY be chosen randomly or algorithmically but it SHALL be allocated uniquely
within the set of all possible Fabric IDs for which a given Root CA will sign operational certificates.
Before allocating the Fabric ID, the Commissioner SHOULD attempt to ensure that an existing Fab
ric is reused and joined, if any is applicable from the perspective of the Commissioner in the cur
rent commissioning context. The method used for determining local Fabric ID existence is vendor-
specific.
The Node ID is a 64-bit value that identifies a Node within a Fabric. The Node ID MAY be chosen
randomly or algorithmically but it SHALL be allocated uniquely within the Fabric before it is given
to the Node or otherwise used. The Node ID SHALL be chosen, by a Commissioner, at the time of
Node commissioning.
The uniqueness constraint for Fabric ID is only required to be ensured within the scope of the Root
CA serving the Commissioner.
When a Fabric is removed, through the RemoveFabric command or through a factory reset, the
Node Operational Identifier, and the FabricID and NodeID that comprise it, SHALL be permanently
removed from the Node’s memory.
Page 298 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A Node Operational Key Pair, comprised of a Node Operational Public Key and a Node Operational
Private Key, is created using the Crypto_GenerateKeypair function. A new Node Operational Key Pair
is generated for each Commissioning Session in accordance with security requirements.
All certificates in the Node Operational credentials are X.509v3 certificates compliant with
RFC 5280, encoded in such a way that they respect the constraints in the Operational_Certificate
section. They may be encoded as X.509v3 certificates or Matter Operational Certificates ("Matter
Certificates" thereafter). The signature field of a certificate SHALL be calculated using the X.509v3
encoding of the certificate.
The NOC SHALL be issued by either a Root CA trusted within the Fabric or by an Intermediate Cer
tificate Authority (ICA) whose ICA certificate is directly issued by such a Root CA. The NOC is bound
to the Node Operational Key Pair through the Node Operational Credential Signing Request
(NOCSR).
The validity period specifies the time period for which a NOC is valid. For constrained or sleepy
devices that lack accurate time, enforcement of an NOC’s validity period MAY be omitted.
In the case where an intermediate CA (ICA) issues the NOC, the ICA certificate is used to attest to the
validity of the NOC. The Root CA certificate associated with the issuer of the ICA certificate is used
in turn to attest to the validity of the ICA certificate.
Each Node has one or more trusted Root CA certificates in its Node Operational credentials that it
uses to verify ICA certificates and Node Operational Certificates presented by other Nodes, treating
them as trust anchors as described in RFC 5280. A Root CA certificate is self-signed. They are not
verified but rather trusted because they were provisioned by a trusted Commissioner.
In the case where a Root CA issues the NOC, the Root CA certificate is used to attest to the validity of
the NOC.
The trusted Root CA certificates that a Device trusts when the Device is verifying operational certifi
cates are those stored in the TrustedRootCertificates attribute of that Device’s Node Operational
Credentials cluster.
A device MAY have Root CA certificates that it trusts for purposes other than for operational creden
tial verification. These certificates SHALL NOT appear in any Node’s TrustedRootCertificates
attribute of the Node Operational Credentials cluster. The certificates configured in that cluster
SHALL only be added during the commissioning process by the Commissioner, or during root rota
tion operations by an Administrator already trusted by the Node. Nodes SHALL NOT modify the
TrustedRootCertificates attribute outside of the processing of Node Operational Credentials cluster
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 299
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
commands.
The figures below show the Node Operational Certificate hierarchies, with and without optional
ICAC.
Figure 36. Node Operational Certificate PKI hierarchy with optional ICAC
Figure 37. Node Operational Certificate PKI hierarchy without optional ICAC
The following procedure is used by a Node to obtain an Operational Credential. This procedure is
part of Commissioning.
Page 300 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
After the Commissioner validates Device Attestation Information, the following procedure is used
to generate a Node Operational Key Pair and obtain the NOCSR.
1. The Commissioner SHALL generate a random 32 byte nonce named CSRNonce using Crypto_
DRBG().
2. The Commissioner SHALL send the CSRNonce to the Node and request NOCSR Information
using the CSRRequest Command.
a. The Node SHALL create a new candidate Node Operational Key Pair, using Crypto_Gener
ateKeyPair(), valid for the duration of the Fail-Safe Context currently in progress.
b. The Node SHOULD verify that the newly generated candidate Node Operational Key Pair
does not match any other existing Node Operational Key Pair on the device. If such a key col
lision was to be found, it would indicate a key pair that was not properly randomly gener
ated. The procedure SHALL fail if such a collision is detected. See Section 11.17.7.5, “CSRRe
quest Command” for the error generated in that situation.
c. The candidate Node Operational Key Pair SHALL only be committed to persistent storage
upon successful execution of the next AddNOC Command executed with a Node Operational
Certificate whose public key matches the candidate key.
d. The Node SHALL create a Certificate Signing Request (CSR) by following the format and pro
cedure in PKCS #10, which includes a signature using the Node Operational Private Key (see
RFC 2986 section 4.2).
e. The CSR’s subject MAY be any value and the device SHOULD NOT expect the final opera
tional certificate to contain any of the CSR’s subject DN attributes.
3. The Node SHALL generate and return the NOCSR Information (see Section 11.17.5.7, “NOCSR
Information” for encoding) to the Commissioner using the CSRResponse Command. The NOCSR
Information includes a signature using the Device Attestation Private Key.
Success = Crypto_Verify(
publicKey = Public key from DAC,
message = NOCSR Information TBS (nocsr_tbs),
signature = Device Attestation Signature (attestation_signature)
)
where the fields are encoded as described in Section 11.17.5.7, “NOCSR Information”.
◦ The AttestationChallenge SHALL be obtained from a CASE session, resumed CASE session, or
PASE session depending on the method used to establish the secure session within which
device attestation is conducted.
◦ The CSR Nonce in NOCSR Information SHALL match the Commissioner’s CSR Nonce.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 301
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
2. The inner signature in the PKCS#10 csr sub-field of the CSRResponse Command's NOCSRElements
field SHALL be verified, per the definition of CSR signatures in PKCS #10.
A Node creates a NOCSR in response to the Commissioner, so that the Commissioner can request a
NOC on the Node’s behalf from its trusted Certificate Authority. The CSR itself SHALL follow the
encoding and rules from PKCS #10, with the minimum attributes shown in the example below.
NOCSR
Certificate Request:
Data:
Version: 1 (0x0)
Subject: ...............
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (256 bit)
Page 302 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
pub:
04:12:3b:90:f5:.......
ASN1 OID: prime256v1
NIST CURVE: P-256
Attributes:
Requested Extensions:
Signature Algorithm: ecdsa-with-SHA256
30:46:02:21:00:95:ff:......
A NOC can be renewed by an Administrator (a Node that has Administer privileges on the Node to
be updated). The Administrator triggers the process by sending an CSRRequest Command.
A Node’s access to other Nodes can be revoked by removing the associated Node ID from Access
Control Entry subjects where it appears. This action is taken by an Administrator which has the
privilege to update the Access Control Cluster for its Nodes.
A NOC is a Node’s credential to operate on a Fabric. It SHALL be protected against the following
threats:
1. The Node Operational Private Key SHALL be protected from unauthorized access.
2. The Node Operational Private Key SHOULD never leave the device.
3. The NOC SHALL NOT contain information that may violate the user’s privacy.
This section details the Matter certificate data structure (hereafter "Matter certificate"), a specific
encoding that is sometimes used as a compact alternative to the standard X.509 certificate format
[RFC 5280] for bandwidth-efficient transmission. A Node Operational Certificate (NOC), Intermedi
ate CA certificate and Root CA certificate MAY all be encoded as a Matter certificate.
To compress the structure more efficiently than an X.509 certificate, a Matter certificate SHALL be
encoded with the Matter TLV structured data interchange language [Appendix A, Tag-length-value
(TLV) Encoding Format] instead of the ASN.1 Distinguished Encoding Rules (DER) [X.690].
This section provides a technical specification of the structure of data comprising a Matter certifi
cate with accompanying requirements for their semantic validation, and their conversion to and
from X.509 certificates. In some cases, as noted, the limitations on the semantic interpretation of
parts of a Matter certificate follow from limitations applied by [RFC 5280].
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 303
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Certificate Text
Version Number
Serial Number
Signature Algorithm ID
Issuer Name
Validity period
Not Before
Not After
Subject name
Subject Public Key Info
Public Key Algorithm
Subject Public Key
Issuer Unique Identifier
Subject Unique Identifier
Extensions
Certificate Signature Algorithm
Certificate Signature
Several important components of X.509 certificates follow the pattern commonly used in ASN.1
data models where some types are constructed with an ASN.1 object identifier (OID) to identify
each variant. For example, the cryptographic algorithm used in the digital signature is identified by
its OID.
Matter certificates do not use ASN.1 OIDs. Instead, each valid ASN.1 OID SHALL be mapped to a
Matter TLV tag within its reference category. Each reference category defines the context of the
Matter tag, and tag values are assigned to the reference categories according to the type of fields
where they can appear in X.509 certificates.
A Matter certificate encodes a subset of the object identifiers (OIDs) specified in X.509. Only some
attribute types for relative distinguished names are valid, only certain cryptographic algorithms
(corresponding to the algorithms as defined in Chapter 3, Cryptographic Primitives) are used, and
only a limited set of extensions are used. Therefore, every Matter certificate can be represented as a
corresponding X.509 certificate. However, the converse is not true; not every X.509 certificate can
be represented as a Matter certificate.
The signature included in a Matter certificate is the signatureValue of the corresponding X.509 cer
tificate, not a signature of the preceding Matter TLV data in the Matter certificate structure. Accord
ingly, validating the signature in a Matter certificate entails its logical conversion to the correspond
ing X.509 certificate to recover the original tbsCertificate of the basic syntax signed by the Certifi
cate Authority (CA).
Page 304 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
{
serial-num [1] : OCTET STRING [ length 0..20 ],
sig-algo [2] : signature-algorithm,
issuer [3] : LIST [ length 1.. ] OF dn-attribute,
not-before [4] : UNSIGNED INTEGER [ range 32-bits ],
not-after [5] : UNSIGNED INTEGER [ range 32-bits ],
subject [6] : LIST [ length 1.. ] OF dn-attribute,
pub-key-algo [7] : public-key-algorithm,
ec-curve-id [8] : elliptic-curve-id,
ec-pub-key [9] : OCTET STRING,
extensions [10] : LIST [ length 1.. ] OF extension,
signature [11] : ec-signature,
}
Matter certificates SHALL only support version X.509 v3. This field is not encoded in the Matter cer
tificate structure.
The context-specific tag serial-num [1] SHALL be used to identify the serial number field in the
Matter certificate structure.
A Matter certificate follows the same limitation on admissible serial numbers as in [RFC 5280], i.e.,
that implementations SHALL admit serial numbers up to 20 octets in length, and certificate authori
ties SHALL NOT use serial numbers longer than 20 octets in length.
Like an X.509 certificate, a Matter certificate SHALL include a digital signature in its signature com
ponent. The signature algorithm component of a Matter certificate specifies the cryptographic algo
rithm used for composing and validating the signature embedded in the signature component of
the certificate. The signature algorithm SHALL match the algorithm in Section 3.5.3, “Signature and
verification”.
The context-specific tag sig-algo [2] SHALL be used to identify the signature algorithm field in the
Matter certificate structure.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 305
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The context-specific tags issuer [3] and subject [6] SHALL be used to identify the issuer and the
subject DN fields in the Matter certificate structure. The entries in the lists SHALL be Distinguished
Names (DNs), which are described in Section 6.5.6.1, “X.501 Distinguished Names”.
The Issuer Name and Subject Name components of an X.509 certificate contain DNs as defined in
[RFC 5280]. The ASN.1 format of a DN is a sequence of Relative Distinguished Names (RDNs). Two
distinguished names DN1 and DN2 match if they have the same number of RDNs, for each RDN in
DN1 there is a matching RDN in DN2, and the matching RDNs appear in the same order in both DNs.
The RDN in an X.509 certificate may be encoded as a set of one or more DN attributes, although in
practice it is usually a single DN attribute. The RDN in a Matter certificate SHALL be always a single
DN attribute. Two relative distinguished names RDN1 and RDN2 match if the attribute in RDN1
matches the attribute in RDN2.
Page 306 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Table 56, “Standard DN Object Identifiers” lists the context-specific tags defined for the standard DN
attribute types used in Matter that can be encoded in X.509 certificates as either UTF8String or as
PrintableString format. In Matter certificates, the context-specific tag is logically-ORed with 0x80
(and its name given a corresponding -ps suffix) to indicate that the corresponding X.509 encoding
of the attribute uses the PrintableString format instead of UTF8String.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 307
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Table 57, “Standard DN Domain Component Object Identifier” lists the context-specific tag defined
for the standard DN attribute type used in Matter that is encoded in X.509 certificates as IA5String.
In addition to the standard DN attribute types, there are Matter-specific DN attribute types under
the 1.3.6.1.4.1.1.37244 private arc. See Section 6.1.1, “Encoding of Matter-specific RDNs” for con
straints and examples related to usage of Matter-specific DN attribute types.
The Matter-specific DN attribute types convey information about Matter-specific certificate types as
listed in Table 58, “Matter Certificate Types”.
The value of matter-icac-id and matter-rcac-id DN attribute types MAY be any 64-bit identifier
desired by the certificate’s issuer. Apart from marking what type of certificates are involved, they
MAY be used for debugging purposes to determine the specific CA in use, for example if different
production tiers or regions are used.
The rules that SHALL be followed for Matter-specific attribute types when encoding the subject DN
are:
Page 308 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
▪ The matter-fabric-id attribute’s value SHALL NOT be 0 (see Section 2.5.1, “Fabric Refer
ences and Fabric Identifier”).
▪ Each matter-noc-cat attribute present, if any, SHALL encode a different CASE Authenti
cated Tag identifier (upper 16 bits of value) than is used by other matter-noc-cat
attributes (CATs).
▪ If present, the matter-fabric-id attribute’s value SHALL NOT be 0 (see Section 2.5.1, “Fab
ric References and Fabric Identifier”).
▪ If present, the matter-fabric-id attribute’s value SHALL NOT be 0 (see Section 2.5.1, “Fab
ric References and Fabric Identifier”).
• The attributes SHALL appear in the same order in the Matter certificate and in the correspond
ing X.509 certificates.
• When any matter-fabric-id attributes are present in either the Matter Root CA Certificate or the
Matter ICA Certificate, the value SHALL match the one present in the Matter Node Operational
Certificate (NOC) within the same certificate chain.
• The order of the attributes can be issuer-specific and is not enforced by Matter specifications.
• All implementations SHALL accept, parse, and handle Matter certificates with up to 5 RDNs in a
single DN.
• All implementations SHALL reject Matter certificates with more than 5 RDNs in a single DN.
In addition to the above rules, the encoding constraints in Section 6.1.1, “Encoding of Matter-spe
cific RDNs” SHALL be followed.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 309
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The following is an example of subject DN encoding for a Matter Node Operational Certificate
(NOC). Typically, it is a list of two RDN attributes:
subject = [[
matter-node-id = 0x0102030405060708U,
matter-fabric-id = 0xFAB000000000001DU
]]
In addition to the mandatory attributes, it may also encode other supported RDN attributes such as
common-name and CASE Authenticated Tags as presented below:
subject = [[
common-name = "NOC Example",
matter-node-id = 0x0102030405060708U,
matter-fabric-id = 0xFAB000000000001DU,
matter-noc-cat = 0xABCD0002U
]]
The following subject DN example illustrates that multiple RDN attributes of the same type can be
encoded. The specific order of attributes is not enforced. Note that number of RDN attributes in the
subject field SHALL NOT exceed five:
subject = [[
matter-noc-cat = 0xABCD0004U,
matter-node-id = 0x0102030405060708U,
matter-noc-cat = 0xABCE0018U,
matter-fabric-id = 0xFAB000000000001DU,
matter-noc-cat = 0xABCF0002U
]]
The following example illustrates an illegal subject DN due to the presence of the same CASE
Authenticated Tag value with two different version numbers.
subject = [[
matter-node-id = 0x0102030405060708U,
matter-fabric-id = 0xFAB000000000001DU,
matter-noc-cat = 0xABCD0004U, # <-- Value 0xABCD, Version 0x0004
matter-noc-cat = 0xABCD0002U, # <-- Value 0xABCD, Version 0x0002
]]
The following is an example of subject DN encoding for a Matter Root CA certificate. In this case, the
Matter Root CA certificate is not associated with a specific Matter fabric:
Page 310 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
subject = [[
matter-rcac-id = 0xCA0000000000001DU
]]
The following is another example of subject DN encoding for a Matter Root CA certificate. In this
case, the Matter Root CA certificate is associated with a specific Matter fabric. This DN also encodes
an issuer-specific common-name RDN attribute:
subject = [[
matter-rcac-id = 0xCA0000000000001DU,
matter-fabric-id = 0xFAB000000000001DU,
common-name = "ROOT CA HOME 3"
]]
6.5.7. Validity
The context-specific tags not-before [4] and not-after [5] SHALL be used to identify the not-before
and not-after fields in the Matter certificate structure, which indicate the period of validity for the
certificate. These two fields SHALL be encoded as unsigned integers. The value of these fields
SHALL be encoded as a UTC time of type epoch-s (Epoch Time in Seconds).
Special value 0, when encoded in the not-after field, corresponds to the X.509/RFC 5280 defined
special time value 99991231235959Z meaning no well-defined expiration date.
The context-specific tag pub-key-algo [7] SHALL be used to identify the public key algorithm field
in the Matter certificate structure.
The context-specific tag ec-curve-id [8] SHALL be used to identify the elliptic curve field in the
Matter certificate structure.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 311
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The context-specific tag ec-pub-key [9] SHALL be used to identify the elliptic curve public key mate
rial field in the Matter certificate structure. The public key SHALL be a byte string representation of
an uncompressed elliptic curve point as defined in section 2.3.3 of SEC1.
6.5.11. Extensions
The context-specific tag extensions [10] SHALL be used to identify the extensions field in the Mat
ter certificate structure. The extensions list SHALL NOT contain more than one instance of a partic
ular extension. The following table summarizes context-specific tags defined for the certificate
extension types used in Matter.
Page 312 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
These context-specific tags identify the extension entries in the extensions list. The type of each
extension is further described in the subsections below.
The basic constraints extension identifies whether the subject of the certificate is a CA and the max
imum depth of valid certification paths that include this certificate.
When present, the basic constraints extension SHALL be treated as critical and it SHALL be
marked as critical in the corresponding X.509 certificate. The critical field SHALL NOT be
encoded in the Matter certificate structure.
The context-specific tag basic-cnstr [1] SHALL be used to identify a basic constraints extension
entry in the Matter certificate extensions list.
The is-ca field SHALL be encoded regardless of the value (true or false). The path-len-constraint
MAY be present only when is-ca == true.
The key usage extension defines the purpose of the key contained in the certificate.
When present, the key usage extension SHALL be treated as critical and it SHALL be marked as
critical in the corresponding X.509 certificate. The critical field SHALL NOT be encoded in the
Matter certificate structure.
The context-specific tag number key-usage [2] SHALL be used to identify a key usage extension
entry in the Matter certificate extensions list.
The key-usage field is derived as a logical OR of all key-usage-flag values that apply to the corre
sponding public key:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 313
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
dataEncipherment = 0x0008,
keyAgreement = 0x0010,
keyCertSign = 0x0020,
CRLSign = 0x0040,
encipherOnly = 0x0080,
decipherOnly = 0x0100,
}
The extended key usage extension indicates one or more purposes for which the certified public
key may be used, in addition to or in place of the basic purposes indicated in the key usage exten
sion.
When present, the extended key usage extension SHALL be treated as critical and it SHALL be
marked as critical in the corresponding X.509 certificate. The critical field SHALL NOT be
encoded in the Matter certificate structure.
The context-specific tag number extended-key-usage [3] SHALL be used to identify an extended key
usage extension entry in the Matter certificate extensions list.
The extended-key-usage field SHALL be encoded as an array of key-purpose-id values, where each
key-purpose-id value SHALL be encoded as 8-bit unsigned integer:
The key-purpose-id values in the extended-key-usage array SHALL be encoded in the same order as
they appeared in the corresponding X.509 certificate.
Page 314 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The subject key identifier extension provides a means of identifying Matter certificates that contain
a particular public key.
When present, the subject key identifier extension SHALL be treated as non-critical and it SHALL
be marked as non-critical in the corresponding X.509 certificate. The critical field SHALL NOT be
encoded in the Matter certificate structure.
The context-specific tag number subject-key-id [4] SHALL be used to identify a subject key identi
fier extension entry in the Matter certificate extensions list.
The Subject Key Identifier field SHALL be derived from the public key using method (1) described
in section 4.2.1.2 of [RFC 5280]. Thus, the subject-key-id SHALL be composed of the 160-bit SHA-1
hash of the certificate’s subject public key value.
See Section 6.1.2, “Key Identifier Extension Constraints” for additional constraints.
The authority key identifier extension provides a means of identifying the public key correspond
ing to the private key used to sign a Matter certificate.
When present, the authority key identifier extension SHALL be treated as non-critical and it
SHALL be marked as non-critical in the corresponding X.509 certificate. The critical field SHALL
NOT be encoded in the Matter certificate structure.
The context-specific tag number authority-key-id [5] SHALL be used to identify an authority key
identifier extension entry in the Matter certificate extensions list.
Note that the authority key identifier extension field in an X.509 certificate may optionally include
issuer and serial number fields, which are not supported by Matter certificates.
The Authority Key Identifier field SHALL be derived from the public key using method (1) described
in section 4.2.1.2 of [RFC 5280]. Thus, the authority-key-id SHALL be composed of the 160-bit SHA-1
hash of the public key used to verify the certificate’s signature.
See Section 6.1.2, “Key Identifier Extension Constraints” for additional constraints.
The Matter certificate is designed with extensibility in mind and this field is added to support arbi
trary certificate extension in the future.
Note that implementations that do not support specific future extension will ignore it but will be
able to use it for the Matter certificate signature validation. If ignored extension is marked as criti
cal then validation of the corresponding Matter certificate SHALL fail.
The context-specific tag number future-extension [6] SHALL be used to identify all future exten
sion entries in the Matter certificate extensions list. There MAY be more than one future extension
field.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 315
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The future-extension field SHALL be encoded as OCTET STRING and it SHALL be an exact copy of
the DER encoded extension field (including the DER encoded ASN.1 OID of the extension) in the cor
responding X.509 certificate. These extension fields in a Matter certificate SHALL be encoded in the
same order as they appeared in the original X.509 certificate.
The rules that SHALL be followed when encoding the Matter certificate are:
◦ The basic constraints extension SHALL be encoded with is-ca set to false.
◦ The key usage extension SHALL be encoded with exactly one flag: digitalSignature.
◦ The extended key usage extension SHALL be encoded with exactly two key-purpose-id val
ues: serverAuth and clientAuth.
◦ The basic constraints extension SHALL be encoded with is-ca set to true.
◦ The key usage extension SHALL be encoded with exactly two flags: keyCertSign and CRLSign.
◦ For the Matter Root CA Certificate the authority key identifier extension SHALL be equal to
the subject key identifier extension.
◦ The basic constraints extension SHALL be encoded with is-ca set to false.
◦ The key usage extension SHALL be encoded with exactly one flag: digitalSignature.
◦ The extended key usage extension SHALL be encoded with exactly one key-purpose-id val
ues: codeSigning.
• The extensions SHALL appear in the same order in the Matter certificate and in the correspond
ing X.509 certificates.
Note that Matter doesn’t specify how firmware images are signed and implementation of firmware
image signing is manufacturer-specific. However, since firmware image signing is a common fea
ture, the format for Matter TLV certificates has affordances for encoding firmware signing certifi
cates.
Page 316 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
6.5.13. Signature
The context-specific tag signature [11] SHALL be used to identify the signature field in the Matter
certificate structure.
An ec-signature is the encoding of the signature as defined in Section 3.5.3, “Signature and verifica
tion”.
The Matter certificate is considered invalid if it violates Matter certificate encoding rules defined in
this section. The processing of invalid Matter certificate SHOULD fail and an error SHOULD be
reported to the application. Here is a non-exhaustive list of errors that may invalidate the certifi
cate:
• Matter certificate structure includes elements that are not defined in this section.
• Matter OID values encoded in Matter certificate are not defined in this section, for example:
◦ sig-algo field encodes value, which is not defined in Table 55, “Signature Algorithm Object
Identifiers”.
◦ pub-key-algo field encodes value, which is not defined in Table 59, “Public Key Algorithm
Object Identifiers”.
◦ ec-curve-id field encodes value, which is not defined in Table 60, “Elliptic Curve Object Iden
tifiers”.
◦ key-purpose-id field of the Extended Key Usage Extension encodes value, which is not
defined in Table 62, “Key Purpose Object Identifiers”.
• Invalid Matter Distinguished Names encoding for Issuer and Subject DNs. Refer to Section
6.5.6.3, “Matter DN Encoding Rules” for more details. For example:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 317
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
◦ Multiple matter-cat-id with the same identifier value and different version numbers, or any
matter-cat-id with a version number of 0.
• CA certificate doesn’t have Basic Constraints Extension is-ca field set to 'true'.
• Certificate extension that SHALL be marked as critical is marked as non-critical in the X.509
representation and vise versa.
6.5.15. Examples
The same RCAC in X.509 and Matter TLV formats is presented in this section.
-----BEGIN CERTIFICATE-----
MIIBnTCCAUOgAwIBAgIIWeqmMpR/VBwwCgYIKoZIzj0EAwIwIjEgMB4GCisGAQQB
gqJ8AQQMEENBQ0FDQUNBMDAwMDAwMDEwHhcNMjAxMDE1MTQyMzQzWhcNNDAxMDE1
MTQyMzQyWjAiMSAwHgYKKwYBBAGConwBBAwQQ0FDQUNBQ0EwMDAwMDAwMTBZMBMG
ByqGSM49AgEGCCqGSM49AwEHA0IABBNTo7PvHacIxJCASAFOQH1ZkM4ivE6zPppa
yyWoVgPrptzYITZmpORPWsoT63Z/r6fc3dwzQR+CowtUPdHSS6ijYzBhMA8GA1Ud
EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQTr4GrNzdLLtKp
ZJsSt6OkKH4VHTAfBgNVHSMEGDAWgBQTr4GrNzdLLtKpZJsSt6OkKH4VHTAKBggq
hkjOPQQDAgNIADBFAiBFgWRGbI8ZWrwKu3xstaJ6g/QdN/jVO+7FIKvSoNoFCQIh
ALinwlwELjDPZNww/jNOEgAZZk5RUEkTT1eBI4RE/HUx
-----END CERTIFICATE-----
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 6479173750095827996 (0x59eaa632947f541c)
Signature Algorithm: ecdsa-with-SHA256
Issuer: 1.3.6.1.4.1.37244.1.4 = CACACACA00000001
Validity
Not Before: Oct 15 14:23:43 2020 GMT
Not After : Oct 15 14:23:42 2040 GMT
Subject: 1.3.6.1.4.1.37244.1.4 = CACACACA00000001
Subject Public Key Info:
Page 318 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
15 30 01 08 59 ea a6 32 94 7f 54 1c 24 02 01 37 03 27 14 01 00 00 00 ca
ca ca ca 18 26 04 ef 17 1b 27 26 05 6e b5 b9 4c 37 06 27 14 01 00 00 00
ca ca ca ca 18 24 07 01 24 08 01 30 09 41 04 13 53 a3 b3 ef 1d a7 08 c4
90 80 48 01 4e 40 7d 59 90 ce 22 bc 4e b3 3e 9a 5a cb 25 a8 56 03 eb a6
dc d8 21 36 66 a4 e4 4f 5a ca 13 eb 76 7f af a7 dc dd dc 33 41 1f 82 a3
0b 54 3d d1 d2 4b a8 37 0a 35 01 29 01 18 24 02 60 30 04 14 13 af 81 ab
37 37 4b 2e d2 a9 64 9b 12 b7 a3 a4 28 7e 15 1d 30 05 14 13 af 81 ab 37
37 4b 2e d2 a9 64 9b 12 b7 a3 a4 28 7e 15 1d 18 30 0b 40 45 81 64 46 6c
8f 19 5a bc 0a bb 7c 6c b5 a2 7a 83 f4 1d 37 f8 d5 3b ee c5 20 ab d2 a0
da 05 09 b8 a7 c2 5c 04 2e 30 cf 64 dc 30 fe 33 4e 12 00 19 66 4e 51 50
49 13 4f 57 81 23 84 44 fc 75 31 18
matter-certificate = {
serial-num = 59 EA A6 32 94 7F 54 1C,
sig-algo = 0x01U,
issuer = [[ matter-rcac-id = 0xCACACACA00000001U ]],
not-before = 0x271B17EFU,
not-after = 0x4CB9B56EU,
subject = [[ matter-rcac-id = 0xCACACACA00000001U ]],
pub-key-algo = 0x01U,
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 319
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ec-curve-id = 0x01U,
ec-pub-key = 04 13 53 A3 B3 EF 1D A7 08 C4 90 80 48 01 4E 40
7D 59 90 CE 22 BC 4E B3 3E 9A 5A CB 25 A8 56 03
EB A6 DC D8 21 36 66 A4 E4 4F 5A CA 13 EB 76 7F
AF A7 DC DD DC 33 41 1F 82 A3 0B 54 3D D1 D2 4B
A8,
extensions = [[
basic-constraints = {
is-ca = true
},
key-usage = 0x60U,
subject-key-id = 13 AF 81 AB 37 37 4B 2E D2 A9 64 9B 12 B7 A3 A4
28 7E 15 1D,
authority-key-id = 13 AF 81 AB 37 37 4B 2E D2 A9 64 9B 12 B7 A3 A4
28 7E 15 1D,
]],
signature = 45 81 64 46 6C 8F 19 5A BC 0A BB 7C 6C B5 A2 7A
83 F4 1D 37 F8 D5 3B EE C5 20 AB D2 A0 DA 05 09
B8 A7 C2 5C 04 2E 30 CF 64 DC 30 FE 33 4E 12 00
19 66 4E 51 50 49 13 4F 57 81 23 84 44 FC 75 31
}
The same ICAC in X.509 and Matter TLV formats is presented in this section. An issuer of this ICAC is
RCAC from previous section.
-----BEGIN CERTIFICATE-----
MIIBnTCCAUOgAwIBAgIILbREhVZBrt8wCgYIKoZIzj0EAwIwIjEgMB4GCisGAQQB
gqJ8AQQMEENBQ0FDQUNBMDAwMDAwMDEwHhcNMjAxMDE1MTQyMzQzWhcNNDAxMDE1
MTQyMzQyWjAiMSAwHgYKKwYBBAGConwBAwwQQ0FDQUNBQ0EwMDAwMDAwMzBZMBMG
ByqGSM49AgEGCCqGSM49AwEHA0IABMXQhhu4+QxAXBIxTkxevuqTn3J3S8wzI54v
Wfb0avjcfUaCoOPMxkbm3ynqhr9WKucgqJgzfTg/MsCgnkFgGeqjYzBhMA8GA1Ud
EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRTUtcFnpwVpQiQ
aGKGSAGinx9B0zAfBgNVHSMEGDAWgBQTr4GrNzdLLtKpZJsSt6OkKH4VHTAKBggq
hkjOPQQDAgNIADBFAiEAhBoG1Dten+zSToexJE61HGos8g2bXmugfxHmAC9+DKMC
IE4ypgLDYJ0AktNIvb0ZihFGRr1BzxA3g2Qa4l4/I/0m
-----END CERTIFICATE-----
Certificate:
Page 320 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Data:
Version: 3 (0x2)
Serial Number: 3293332566983159519 (0x2db444855641aedf)
Signature Algorithm: ecdsa-with-SHA256
Issuer: 1.3.6.1.4.1.37244.1.4 = CACACACA00000001
Validity
Not Before: Oct 15 14:23:43 2020 GMT
Not After : Oct 15 14:23:42 2040 GMT
Subject: 1.3.6.1.4.1.37244.1.3 = CACACACA00000003
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (256 bit)
pub:
04:c5:d0:86:1b:b8:f9:0c:40:5c:12:31:4e:4c:5e:
be:ea:93:9f:72:77:4b:cc:33:23:9e:2f:59:f6:f4:
6a:f8:dc:7d:46:82:a0:e3:cc:c6:46:e6:df:29:ea:
86:bf:56:2a:e7:20:a8:98:33:7d:38:3f:32:c0:a0:
9e:41:60:19:ea
ASN1 OID: prime256v1
NIST CURVE: P-256
X509v3 extensions:
X509v3 Basic Constraints: critical
CA:TRUE
X509v3 Key Usage: critical
Certificate Sign, CRL Sign
X509v3 Subject Key Identifier:
53:52:D7:05:9E:9C:15:A5:08:90:68:62:86:48:01:A2:9F:1F:41:D3
X509v3 Authority Key Identifier:
keyid:13:AF:81:AB:37:37:4B:2E:D2:A9:64:9B:12:B7:A3:A4:28:7E:15:1D
15 30 01 08 2d b4 44 85 56 41 ae df 24 02 01 37 03 27 14 01 00 00 00 ca
ca ca ca 18 26 04 ef 17 1b 27 26 05 6e b5 b9 4c 37 06 27 13 03 00 00 00
ca ca ca ca 18 24 07 01 24 08 01 30 09 41 04 c5 d0 86 1b b8 f9 0c 40 5c
12 31 4e 4c 5e be ea 93 9f 72 77 4b cc 33 23 9e 2f 59 f6 f4 6a f8 dc 7d
46 82 a0 e3 cc c6 46 e6 df 29 ea 86 bf 56 2a e7 20 a8 98 33 7d 38 3f 32
c0 a0 9e 41 60 19 ea 37 0a 35 01 29 01 18 24 02 60 30 04 14 53 52 d7 05
9e 9c 15 a5 08 90 68 62 86 48 01 a2 9f 1f 41 d3 30 05 14 13 af 81 ab 37
37 4b 2e d2 a9 64 9b 12 b7 a3 a4 28 7e 15 1d 18 30 0b 40 84 1a 06 d4 3b
5e 9f ec d2 4e 87 b1 24 4e b5 1c 6a 2c f2 0d 9b 5e 6b a0 7f 11 e6 00 2f
7e 0c a3 4e 32 a6 02 c3 60 9d 00 92 d3 48 bd bd 19 8a 11 46 46 bd 41 cf
10 37 83 64 1a e2 5e 3f 23 fd 26 18
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 321
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
matter-certificate = {
serial-num = 2D B4 44 85 56 41 AE DF,
sig-algo = 0x01U,
issuer = [[ matter-rcac-id = 0xCACACACA00000001U ]],
not-before = 0x271B17EFU,
not-after = 0x4CB9B56EU,
subject = [[ matter-icac-id = 0xCACACACA00000003U ]],
pub-key-algo = 0x01U,
ec-curve-id = 0x01U,
ec-pub-key = 04 C5 D0 86 1B B8 F9 0C 40 5C 12 31 4E 4C 5E BE
EA 93 9F 72 77 4B CC 33 23 9E 2F 59 F6 F4 6A F8
DC 7D 46 82 A0 E3 CC C6 46 E6 DF 29 EA 86 BF 56
2A E7 20 A8 98 33 7D 38 3F 32 C0 A0 9E 41 60 19
EA,
extensions = [[
basic-constraints = {
is-ca = true
},
key-usage = 0x60U,
subject-key-id = 53 52 D7 05 9E 9C 15 A5 08 90 68 62 86 48 01 A2
9F 1F 41 D3,
authority-key-id = 13 AF 81 AB 37 37 4B 2E D2 A9 64 9B 12 B7 A3 A4
28 7E 15 1D,
]],
signature = 84 1A 06 D4 3B 5E 9F EC D2 4E 87 B1 24 4E B5 1C
6A 2C F2 0D 9B 5E 6B A0 7F 11 E6 00 2F 7E 0C A3
4E 32 A6 02 C3 60 9D 00 92 D3 48 BD BD 19 8A 11
46 46 BD 41 CF 10 37 83 64 1A E2 5E 3F 23 FD 26
}
The same NOC in X.509 and Matter TLV formats is presented in this section. An issuer of this NOC is
ICAC from previous section.
-----BEGIN CERTIFICATE-----
MIIB4DCCAYagAwIBAgIIPvz/FwK5oXowCgYIKoZIzj0EAwIwIjEgMB4GCisGAQQB
gqJ8AQMMEENBQ0FDQUNBMDAwMDAwMDMwHhcNMjAxMDE1MTQyMzQzWhcNNDAxMDE1
MTQyMzQyWjBEMSAwHgYKKwYBBAGConwBAQwQREVERURFREUwMDAxMDAwMTEgMB4G
CisGAQQBgqJ8AQUMEEZBQjAwMDAwMDAwMDAwMUQwWTATBgcqhkjOPQIBBggqhkjO
PQMBBwNCAASaKiFvs53WtvohG4NciePmr7ZsFPdYMZVPn/T3o/ARLIoNjq8pxlMp
TUju4HCKAyzKOTk8OntG8YGuoHj+rYODo4GDMIGAMAwGA1UdEwEB/wQCMAAwDgYD
VR0PAQH/BAQDAgeAMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATAd
BgNVHQ4EFgQUn1Wia35DA+YIg+kTv5T0+14qYWEwHwYDVR0jBBgwFoAUU1LXBZ6c
FaUIkGhihkgBop8fQdMwCgYIKoZIzj0EAwIDSAAwRQIgeVXCAmMLS6TVkSUmMi/f
KPie3+WvnA5XK9ihSqq7TRICIQC4PKF8ewX7Fkt315xSlhMxa8/ReJXksqTyQEuY
Page 322 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
FzJxWQ==
-----END CERTIFICATE-----
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 4538782998777667962 (0x3efcff1702b9a17a)
Signature Algorithm: ecdsa-with-SHA256
Issuer: 1.3.6.1.4.1.37244.1.3 = CACACACA00000003
Validity
Not Before: Oct 15 14:23:43 2020 GMT
Not After : Oct 15 14:23:42 2040 GMT
Subject: 1.3.6.1.4.1.37244.1.1 = DEDEDEDE00010001, 1.3.6.1.4.1.37244.1.5 =
FAB000000000001D
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (256 bit)
pub:
04:9a:2a:21:6f:b3:9d:d6:b6:fa:21:1b:83:5c:89:
e3:e6:af:b6:6c:14:f7:58:31:95:4f:9f:f4:f7:a3:
f0:11:2c:8a:0d:8e:af:29:c6:53:29:4d:48:ee:e0:
70:8a:03:2c:ca:39:39:3c:3a:7b:46:f1:81:ae:a0:
78:fe:ad:83:83
ASN1 OID: prime256v1
NIST CURVE: P-256
X509v3 extensions:
X509v3 Basic Constraints: critical
CA:FALSE
X509v3 Key Usage: critical
Digital Signature
X509v3 Extended Key Usage: critical
TLS Web Client Authentication, TLS Web Server Authentication
X509v3 Subject Key Identifier:
9F:55:A2:6B:7E:43:03:E6:08:83:E9:13:BF:94:F4:FB:5E:2A:61:61
X509v3 Authority Key Identifier:
keyid:53:52:D7:05:9E:9C:15:A5:08:90:68:62:86:48:01:A2:9F:1F:41:D3
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 323
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
15 30 01 08 3e fc ff 17 02 b9 a1 7a 24 02 01 37 03 27 13 03 00 00 00 ca
ca ca ca 18 26 04 ef 17 1b 27 26 05 6e b5 b9 4c 37 06 27 11 01 00 01 00
de de de de 27 15 1d 00 00 00 00 00 b0 fa 18 24 07 01 24 08 01 30 09 41
04 9a 2a 21 6f b3 9d d6 b6 fa 21 1b 83 5c 89 e3 e6 af b6 6c 14 f7 58 31
95 4f 9f f4 f7 a3 f0 11 2c 8a 0d 8e af 29 c6 53 29 4d 48 ee e0 70 8a 03
2c ca 39 39 3c 3a 7b 46 f1 81 ae a0 78 fe ad 83 83 37 0a 35 01 28 01 18
24 02 01 36 03 04 02 04 01 18 30 04 14 9f 55 a2 6b 7e 43 03 e6 08 83 e9
13 bf 94 f4 fb 5e 2a 61 61 30 05 14 53 52 d7 05 9e 9c 15 a5 08 90 68 62
86 48 01 a2 9f 1f 41 d3 18 30 0b 40 79 55 c2 02 63 0b 4b a4 d5 91 25 26
32 2f df 28 f8 9e df e5 af 9c 0e 57 2b d8 a1 4a aa bb 4d 12 b8 3c a1 7c
7b 05 fb 16 4b 77 d7 9c 52 96 13 31 6b cf d1 78 95 e4 b2 a4 f2 40 4b 98
17 32 71 59 18
matter-certificate = {
serial-num = 3E FC FF 17 02 B9 A1 7A,
sig-algo = 0x01U,
issuer = [[ matter-icac-id = 0xCACACACA00000003U ]],
not-before = 0x271B17EFU,
not-after = 0x4CB9B56EU,
subject = [[ matter-node-id = 0xDEDEDEDE00010001U,
matter-fabric-id = 0xFAB000000000001DU ]],
pub-key-algo = 0x01U,
ec-curve-id = 0x01U,
ec-pub-key = 04 9A 2A 21 6F B3 9D D6 B6 FA 21 1B 83 5C 89 E3
E6 AF B6 6C 14 F7 58 31 95 4F 9F F4 F7 A3 F0 11
2C 8A 0D 8E AF 29 C6 53 29 4D 48 EE E0 70 8A 03
2C CA 39 39 3C 3A 7B 46 F1 81 AE A0 78 FE AD 83
83,
extensions = [[
basic-constraints = {
is-ca = false
},
key-usage = 0x01U,
extended-key-usage = [ 0x02U, 0x01U ],
subject-key-id = 9F 55 A2 6B 7E 43 03 E6 08 83 E9 13 BF 94 F4 FB
5E 2A 61 61,
authority-key-id = 53 52 D7 05 9E 9C 15 A5 08 90 68 62 86 48 01 A2
9F 1F 41 D3,
]],
signature = 79 55 C2 02 63 0B 4B A4 D5 91 25 26 32 2F DF 28
F8 9E DF E5 AF 9C 0E 57 2B D8 A1 4A AA BB 4D 12
B8 3C A1 7C 7B 05 FB 16 4B 77 D7 9C 52 96 13 31
6B CF D1 78 95 E4 B2 A4 F2 40 4B 98 17 32 71 59
}
Page 324 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This section specifies the features related to controlling access to a Node’s Endpoint Clusters ("Tar
gets" hereafter) from other Nodes. The overall features are collectively named "Access Control"
hereafter.
The Access Control features aim to ensure that only authorized Nodes are permitted access to given
application-layer functionality exposed by the Data Model, through the Interaction Model. Access
Control is the fundamental link between the Secure Channel and the Interaction Model.
In order to implement a policy of Access Control, Administrators on the fabric create and maintain
a consistent distributed configuration of Access Control Lists (ACLs) across all Nodes. Each Node has
an ACL containing Access Control Entries which codify the policy. The Access Control Cluster
exposes a data model view of a Node’s ACL which enables its maintenance.
6.6.2. Model
The Access Control system is rule-based with no implicit access permitted by default. Access to a
Node’s Targets is denied unless the Access Control system grants the required privilege level to a
given Subject to interact with given Targets on that Node. Initial Access Control privileges are boot
strapped during the commissioning phase, and maintained thereafter by Administrators.
The Access Control system grants privileges by checking and verifying all attempted access against
rules explicitly codified in Access Control Entries within the Node’s Access Control List. Addition
ally, Access Control implicitly grants administrative access privileges to an Administrative Subject
during a Node’s commissioning phase.
◦ Manage: writing configuration data and invoking configuration commands (for example,
Binding and Group Clusters access)
◦ Administer: writing administrative data and invoking administrative commands (for exam
ple, Access Control and Commissioning Clusters access)
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 325
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• An Authentication Mode that describes the type of secure channel authentication method to
which the entry’s subjects apply
6.6.2.1. Subjects
The meaning of a "Subject" is primarily that of describing the source for an action, using a given
authentication method provided by the Secure Channel architecture. A subject SHALL be one of:
• A passcode, identified by a Passcode ID, authenticated locally by a PASE session, during the com
missioning phase.
• Note that any Passcode ID other than 0, which is the default commissioning passcode, is
reserved for future use.
• Furthermore, ACL entries with a PASE authentication mode SHALL NOT be explicitly added to
the Access Control List, since there is an invisible implicit administrative entry (see Section
6.6.2.8, “Bootstrapping of the Access Control Cluster”) always equivalently present on the Com
missionee (but not the Commissioner) during PASE sessions.
• A source node, authenticated by a CASE session using its Operational Certificate, during the
operational phase. The source node can be identified by its Node ID and/or by CASE Authenti
cated Tags.
Note that the subject is not considered to be an individual Node when the authentication is via pass
code or group symmetric key; in these cases, the administrative root of trust is conditional only
upon bearing the correct passcode during session establishment, or bearing the Operational Group
Key when constructing a group message.
In contrast, a CASE Authenticated Tag (CAT) is a special subject distinguished name within the Oper
ational Certificate shared during CASE session establishment that functions as a group-like tag.
Such a tag can be applied to several Nodes, thereby facilitating management of Access Control
Entries that use the same set of Nodes as subjects. Because these tags are authenticated within the
CASE session context, the administrative root of trust does chain back through the individual
source Node to the Fabric’s trusted root. This makes CATs suitable for group-like use while main
taining secure authentication and attribution ability.
Each CAT is 32-bit and equally divided into identifier value and its corresponding version:
The version number represents current version of specific identifier value. An Administrator MAY
increment the version number on any changes in the set of Nodes sharing the given tag. Version
number is a monotonically increasing natural number in the range of 1 to 65535. A version number
Page 326 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
of 0 is invalid and SHALL NOT be used. On reaching the maximum value (65535), wrap-around is
not supported and the tag identifier SHOULD be retired by an Administrator since version increase
will no longer be possible.
When a CAT appears in the Subjects list of an Access Control Entry, it SHALL be encoded within the
CASE Authenticated Tag sub-space of Node Identifiers, with the upper 32 bits set to 0xFFFF_FFFD.
Note that this encoding cannot appear as an operational Node ID. It is merely a sub-encoding allow
ing the 64-bit scalars in an Access Control Entry’s Subjects list to represent both Node IDs and CATs.
◦ Appears in Node Operational Certificate subject under OID 1.3.6.1.4.1.37244.1.6 with value
0xAB120003
◦ Appears in Node Operational Certificate subject under OID 1.3.6.1.4.1.37244.1.6 with value
0x071C1074
6.6.2.2. Wildcards
The Subjects list of an Access Control Entry MAY grant a given privilege to more than one Subject, if
the Authentication Mode allows it, such as in the case of the CASE and Group Authentication Modes.
An empty Subjects list SHALL mean that every possible Subject employing the stated Authentication
Mode is granted the entry’s privilege over the Targets.
The Targets list of an Access Control Entry MAY grant a given privilege to more than one Target. An
empty Targets list SHALL mean that every Cluster on every Endpoint exposed by the Node is acces
sible using the granted privilege to any matching Subject. Each Target in the Targets list SHALL
specify Cluster instances directly by Cluster ID (on any Endpoint, or limited to particular End
points), indirectly by Endpoint ID (all Cluster instances on that Endpoint), or indirectly by Device
Type ID (all Cluster instances on all Endpoints containing that Device Type).
For both the Subjects list and Targets list of an Access Control Entry, empty lists permit a rudimen
tary form of "wildcard" behavior, which is especially useful for codifying policies providing com
mon view/read/discover access to a given subset of Nodes based on Authentication Mode.
Given that "wildcard" (that is, any subject/target) granting is possible with an
CAUTION
empty Subjects list or an empty Targets list, it follows that care must be taken by
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 327
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Subjects for an Access Control Entry are logical subjects, configured through policy by an
Administrator, including possibly a Commissioner during the commissioning phase. A given imple
mentation of administrative logic MAY assign authentication identities to Nodes directly associated
with physical end-users (for example, a mobile device of a given end-user). However, since Nodes
are logical networking entities, the specific policy of how Node identities are mapped to physical
end-users and physical devices is implementation-specific. Therefore, the access granted by a given
Node’s Access Control system should not be construed as having any particular meaning in regards
to physical end-users other than the fact that a given set of Administrators computed a consistent
set of Access Control Lists to effect a desired system functionality across all Nodes they administer
and end-users they represent.
Since the target of a given Access Control Entry is a list of Targets, and since Targets (that is, Clusters
on Endpoints) are Interaction Model constructs, it should be assumed that access control function
ality as described within this model is constrained to the interaction model layer. However, con
straints on incoming session establishment requests MAY be affected by the Access Control system,
based on implementation-defined rules. For example, a Node MAY deny CASE session establishment
from an initiator whose identity doesn’t match any Access Control Entry. These types of rules are
implementation-specific and SHOULD be carefully considered, if applied at all. For example, due to
the richness of Access Control Entry encoding for Subjects, significant care has to be taken to avoid
incorrectly rejecting an incoming CASE session establishment that could be valid. Rejecting valid
connections could cause a Node to become unreachable. Any constraints on transport-level and net
work-level functionality, including but not limited to the availability of commissioning-mode con
nectivity, are out of Access Control scope.
The Message Layer SHALL provide sufficient metadata (e.g. Authentication Mode, source identity)
about incoming messages to the Interaction Model protocol layer in order to properly enforce
Access Control.
An Incoming Subject Descriptor (ISD) is a mapping from the security layer fields of an incoming
Message to a tuple of <AuthMode, SubjectDescriptor> that can map unambiguously to an Access Con
trol Entry’s Subjects and AuthMode fields. See Section 6.6.5.1.2, “Incoming Subject Descriptor (ISD)
Structure” for further details.
Page 328 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
An implementation MAY use Access Control Extensions to extend the base Access Control model.
Since all extensions are installed by Administrators for a fabric, it is expected that only extensions
that would improve overall security will be applied. Since every Vendor MAY implement extensions
as they see fit, it SHOULD NOT be expected that an extension will be supported by every Node. It is
therefore RECOMMENDED that careful consideration of interoperability concerns be given when
implementing Access Control Extensions. A fabric’s Administrators MAY always read a given Node’s
Access Control Entries and Access Control Extensions pertaining to the fabric. Therefore, Adminis
trators MAY use extensions to record auditing metadata about Access Control Entries which are not
for operational use by the Node.
A Node SHALL preserve every field of the installed Access Control Cluster, including extensions
when present, without internally-initiated modifications, so that they may be read-back verbatim
upon receiving an appropriate request from an Administrator.
The Access Control Cluster SHALL NOT be used to encode application-level permissions and config
urations such as smart lock PIN codes or similar user-facing security functionality. Application-level
security is best served by finer-grained capabilities described and addressed by application-
domain-specific clusters.
Updates to the Access Control List through Access Control Cluster attributes and commands SHALL
be restricted by the same Access Control mechanisms as all other clusters on the Node, and there
fore require a grant of Administer privilege. Administrators are able to bootstrap a Node’s Access
Control List during the commissioning phase due to the Access Control Privilege Granting algorithm
implicitly granting the Administer privilege to Administrative Subject Nodes over a PASE commis
sioning channel; this implicit privilege grant applies for the Commissioner to administer the Com
missionee, but not in the opposite direction.
The recording of a given Interaction Model Action’s attribution to a source entity is distinct from
the contents of an Access Control Entry. Action Attribution SHALL be recorded against the Incoming
Subject Descriptor (see Section 6.6.5.1.2, “Incoming Subject Descriptor (ISD) Structure”) rather than
against any matched Access Control Entry’s contents.
Since the Administer privilege level grants wide access to a Node for a given Subject, it SHALL NOT
be valid to have an Administer privilege set on an Access Control Entry, unless the AuthMode's Auth
ModeCategory is "CASE". For example, an AuthModeCategory of "Group", which admits no source Node
authentication and reduced attribution ability, SHALL NOT be used to grant Administer privilege.
The following Access Control Lists illustrate the flexibility of codifying access control policy using
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 329
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
concrete examples.
Upon Factory Data Reset, the Access Control Cluster is empty, having an Access Control List with no
entries.
However, the Access Control Privilege Granting algorithm behaves as if, over a PASE commission
ing channel during the commissioning phase, the following implicit Access Control Entry were
present on the Commissionee (but not the Commissioner) to grant Administer privilege for the
entire Node.
During the commissioning phase, the AddNOC command automatically creates an Access Control
Entry granting Administer privilege for the entire Node, the appropriate CASE authenticated Subject
(in this case, Node ID 0xAAAA_AAAA_AAAA_AAAA) on the appropriate Fabric (in this case, Fabric
0xFAB0_0000_0000_001D as Fabric index 1).
An Administrator adds an Access Control Entry which grants View privilege, for the entire Node, to
all CASE authenticated Nodes.
Page 330 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
An Administrator adds an Access Control Entry which grants Manage privilege, for endpoints 1 and 3,
to any Nodes which can authenticate as members of Group 1.
An Administrator revises this Access Control Entry to grant the same privilege, for only the pump
configuration and control cluster (0x0202) on endpoint 3, and for any door lock cluster (0x0101) on
the entire Node, to the same Nodes.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 331
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
An Administrator adds an Access Control Entry which grants Operate privilege, for all endpoints
containing the extended color light device (0x010D) on the entire Node, to CASE authenticated
Nodes 0x1111_1111_1111_1111 and 0x2222_2222_2222_2222.
A Commissioner adds four more Nodes into an existing fabric. These new Nodes have Node IDs
0x3333_3333_3333_3333, 0x4444_4444_4444_4444, 0x5555_5555_5555_5555 and
0x6666_6666_6666_6666 respectively. The Fabric Administration policy requires associating these
four nodes and an existing node (0x2222_2222_2222_2222) into a CAT group.
To achieve this, an Administrator will issue NOCs to all five nodes in this CAT group with a CAT
value of 0xABCD_0001, which is tag identifier value 0xABCD and version 1, and encoded as subject
value 0xFFFF_FFFD_ABCD_0001. To distribute these CATs, an Administrator obtains NOCs from its
certificate authority with the requisite subjects including the desired CAT. They are either initially
provisioned with the AddNOC command during initial commissioning (for the new Nodes) or updated
with UpdateNOC (for existing Nodes).
Then the Administrator grants permissions to the five nodes by updating the ACL of all relevant tar
gets by adding an entry with subject of CAT (0xFFFF_FFFD_ABCD_0001). The Administrator may
also remove entries where Node 0x2222_2222_2222_2222 appears as an explicit Subject if presenta
tion of the CAT identifier value 0xABCD and version value 0x0001 confers an equivalent privilege.
Note that any Node with CAT identifier value of 0xABCD and version value 0x0001 or higher in
their NOC will have this privilege.
Page 332 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
An Administrator wants to remove the Node with Node ID 0x3333_3333_3333_3333 from the CAT
group defined by CAT identifier value of 0xABCD, as installed in the previous example.
1. Administrator will ensure that the removed node having Node ID 0x3333_3333_3333_3333 will
not receive a new NOC with an CAT identifier value of 0xABCD. Note that the node removed
from the group will continue to hold existing NOC (with CAT identifier of 0xABCD and version
0x0001).
2. An Administrator updates NOCs with CAT identifier value of 0xABCD and version 0x0002
(encoded as subject 0xFFFF_FFFD_ABCD_0002) in all remaining currently reachable Nodes
within the CAT group to ensure they continue to have same privilege as before. In this example,
Nodes having Node IDs 0x2222_2222_2222_2222, 0x4444_4444_4444_4444 and
0x5555_5555_5555_5555 are currently reachable.
3. Node with Node ID 0x6666_6666_6666_6666 from this CAT group is a valid member but was not
reachable by an Administrator at the time of this change. This Node will continue to hold exist
ing NOC with CAT of 0xABCD_0001.
4. After updating NOCs of all reachable Nodes, the Administrator SHOULD revise the Access Con
trol Entry of all reachable nodes who have the previous CAT (encoded as subject 0xFFF
F_FFFD_ABCD_0001) in an ACL entry, to remove privilege from the Node no longer in the group
ing (i.e. those with version 0x0001) by increasing trusted version value to be higher than
0x0001. The Administrator decides to increment version value by one to set the new version
value to be 0x0002.
5. Once ACL changes are propagated to all controlled nodes, they will no longer allow access privi
leges to any Node with older version (i.e. value less than 0x0002) of CAT identifier value
0xABCD. Hence, the node removed from the group, having Node ID 0x3333_3333_3333_3333 and
CAT with identifier 0xABCD and version of 0x0001, can no longer access any of the controlled
nodes whose ACL entries were updated to have a subject of 0xFFFF_FFFD_ABCD_0002 (CAT
identifier value 0xABCD, version 0x0002).
6. Node having Node ID of 0x6666_6666_6666_6666 will not be able to access any Nodes by relying
on CAT, since it does not have an NOC with latest CAT (with version 0x0002). However, it can still
access Nodes that list it as a subject Node ID explicitly. When an Administrator eventually estab
lishes connection to this Node, the Administrator SHOULD update the NOC to the latest version,
with CAT set to 0xABCD_0002. After having its NOC updated to have the newest version of the
CAT, the Node with Node ID 0x6666_6666_6666_6666 will again have access to Nodes that list
subject 0xFFFF_FFFD_ABCD_0002 (CAT identifier value 0xABCD, version 0x0002), with no fur
ther updates to ACL entries of existing Nodes.
7. Any controlled Node which previously held an ACL Entry with prior version of the updated CAT
(subject 0xFFFF_FFFD_ABCD_0001) but was not reachable by an Administrator at the time of
update, will continue to hold the previous Access Control Entry with a subject allowing CAT with
identifier of 0xABCD and version 0x0001 or higher. Thus, these Nodes will grant privileges to
any Node from the original CAT group (including Node ID 0x3333_3333_3333_3333). When an
Administrator eventually establishes connection to this Node with older ACL entry, the Adminis
trator SHOULD update it with the latest value, so that Node ID 0x3333_3333_3333_3333 no
longer has privileges.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 333
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Note that in the above example, the CAT identifier value remained the same (0xABCD) in NOCs and
ACL entries throughout these steps. Only the version portion was updated to effect changes to the
meaning of the CAT.
As can be seen in the example above, there are multiple steps involving updates to NOCs and ACL
entries to affect CAT-based grouping and aliasing policies. It is therefore possible that some Nodes
may not receive these changes immediately, due to network reachability issues, such as being pow
ered down for an extended period, and thus have ACL entries or NOCs that grant temporarily obso
lete privileges. This is true as well with direct Node ID subjects, in general.
Administrators SHOULD aim for best-effort eventual consistency while executing the steps outlined
above.
Updates to the Access Control Cluster SHALL take immediate effect in the Access Control system.
For example, given an Interaction Model action message containing the following actions, the
Access Control Privilege Granting algorithm would grant a privilege of None for the second action,
since the first action would take effect immediately beforehand.
• Pre-conditions:
• Access Control List has single entry: [{Privilege: Administer, Authmode: CASE (2), Subjects:
[0x0011223344556677], Targets: []}]
• Node ID 0x0011223344556677 over CASE is allowed Administer privilege for all targets
• Incoming message Source is Node ID 0x0011223344556677 over CASE: matches Access Control
Entry subject
• Actions:
1. Path: Endpoint[0]/Cluster[AccessControl]/Attribute[ACL]/ListIndex[0]/Field[Targets]
Page 334 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
1. Path: Endpoint[1]/Cluster[OnOff]/Attribute[OnTime]
2. Denied: No privilege granted, because prior action in the same message had updated
Access Control List to only allow access to Endpoint 2, and this action targets Endpoint 1
• Post-conditions:
• Access Control List has single entry, updated by first path of Write Action: [{Privilege: Adminis
ter, Authmode: CASE (2), Subjects: [0x0011223344556677], Targets: [{Endpoint: 2}]}]
• Node ID 0x0011223344556677 over CASE is allowed Administer privilege for only Endpoint 2 tar
get
Note that in this example, the Node has inadvertently lost its ability to update the Access Control
Cluster by limiting its Administer privilege to Endpoint 2.
This section describes an overall Conceptual Access Control Privilege Granting algorithm. Imple
mentations of this algorithm SHALL have an identical outcome to the output of this conceptual
algorithm described below.
The Interaction Model protocol, through its message handling, SHALL determine the privilege level
granted per Target, on every instance where a Target is referenced for use.
The Access Control List contains several Access Control Entries, previously described in Section
6.6.2, “Model”.
Each incoming message has a unique <AuthMode, SubjectDescriptor> applicable to it, whose deriva
tion is deterministic based on both incoming message fields and session metadata fields. For exam
ple, if a message arrives that matches a given CASE Session ID, then the metadata for that CASE ses
sion would be used.
Computation of the ISD is described in Section 6.6.5.3, “Derivation of ISD from Incoming Message”.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 335
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Subjects List (list<SubjectID> Subjects), mapping incoming message source to a type of subject,
such as a CASE session Source Node ID.
• the Endpoint ID (endpoint_id) for which the querier requires a Privilege level
• the Cluster ID (cluster_id) for which the querier requires a Privilege level
• the Access Control List (acl) from the Access Control Cluster
• A set of privileges granted for the Action Path, which is a subset of {View, ProxyView, Operate,
Manage, Administer} as described in AccessControlEntryPrivilegeEnum.
The computation of the ISD is a pre-condition to the algorithm and is described in Section 6.6.5.3,
“Derivation of ISD from Incoming Message”.
The goal is to find the complete set of privileges granted given the input. The principle of least privi
lege is respected by virtue of the entire Access Control List having been computed with rules such
that the least privilege is granted to all subjects. Therefore, any Access Control Entry granting the
required privilege to the subject for a given target is sufficient to determine whether access is
allowed.
Page 336 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
granted_privileges.add(PrivilegeEnum.View)
elif (privilege == PrivilegeEnum.Manage):
granted_privileges.add(PrivilegeEnum.Operate)
granted_privileges.add(PrivilegeEnum.View)
elif (privilege == PrivilegeEnum.Administer):
granted_privileges.add(PrivilegeEnum.Manage)
granted_privileges.add(PrivilegeEnum.Operate)
granted_privileges.add(PrivilegeEnum.ProxyView)
granted_privileges.add(PrivilegeEnum.View)
# Fabric index must match, there are no valid entries with FabricIndex == 0
# other than the implicit PASE entry, which we will not see explicitly in the
# access control list
if acl_entry.FabricIndex == 0: continue
if acl_entry.FabricIndex != subject_desc.FabricIndex: continue
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 337
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
return granted_privileges
The algorithm to derive the ISD from an incoming message takes as input:
DEFAULT_COMMISSIONING_PASSCODE = 0
Page 338 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
enum AuthModeEnum {
None = 0, # conceptual "no auth" value
PASE = 1,
CASE = 2,
Group = 3
}
struct SubjectDescriptor {
bool IsCommissioning;
AuthModeEnum AuthMode;
list<SubjectID> Subjects; # max 3 items
FabricIndex FabricIndex;
}
session_id = message.get_session_id()
if sessions_metadata.get_auth_mode(session_id) == AuthModeEnum.PASE:
isd.AuthMode = AuthModeEnum.PASE
isd.IsCommissioning = True
isd.Subjects.append(DEFAULT_COMMISSIONING_PASSCODE)
isd.FabricIndex = sessions_metadata.get_fabric_index(session_id) # may be zero
else if sessions_metadata.get_auth_mode(session_id) == AuthModeEnum.CASE:
isd.AuthMode = AuthModeEnum.CASE
isd.Subjects.append(sessions_metadata.get_src_node_id(session_id))
# CASE session may contain CATs which also serve as subjects
# Append all CATs if present (can be up to 3)
if sessions_metadata.has_src_case_authenticated_tags(session_id):
isd.Subjects.append(sessions_metadata.get_src_case_authenticated_tags(session_id))
isd.FabricIndex = sessions_metadata.get_fabric_index(session_id)
assert(isd.FabricIndex != 0) # cannot be zero
else if sessions_metadata.get_auth_mode(session_id) == AuthModeEnum.Group:
# Message is assumed to have been decrypted and matched properly prior to
# this procedure occurring.
group_id = message.get_dst_group_id()
group_key_id = sessions_metadata.get_group_key_id(message)
# Group membership must be verified against Group Key Management Cluster
if group_key_management_cluster.group_key_map_has_mapping(group_id, group_key_id):
isd.AuthMode = AuthModeEnum.Group
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 339
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
isd.Subjects.append(group_id)
isd.FabricIndex = sessions_metadata.get_fabric_index(message)
assert(isd.FabricIndex != 0) # cannot be zero
else:
# Do nothing on error, ISD remains unchanged
assert(isd.IsCommissioning == False)
assert(isd.AuthMode == AuthModeEnum.None)
assert(is_empty(isd.Subjects))
assert(isd.FabricIndex == 0)
return isd
The Data Model specifies which privilege is required for each data element, via its access qualities.
The Interaction Model specifies how each action is processed, for both its request and its response.
This includes details on how the Interaction Model uses Access Control to determine whether to
allow the request (i.e. continue processing), or to deny the request (and whether/how that is indi
cated in the response).
• Determining the required privilege for the action, given the request path and type of access
requested;
• Determining the set of granted privileges for the action, given the request path and requesting
subject;
• Checking whether the required privilege is present in the set of granted privileges:
Note that the Interaction Model may allow the action for some request paths while denying it for
other request paths in the same action. Also, note that Access Control is merely one of the checks
used by the Interaction Model, and an action that is allowed by Access Control may fail for other
reasons.
Page 340 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Revision Description
This is part of a package of Data Model specifications that are agnostic to underlying layers (encod
ing, message, network, transport, etc.). Each specification below may be independently maintained.
This package, as a whole, shall be independently maintained as agnostic and decoupled from lower
layers. This package may be referenced by inclusion in vertical protocol stack specifications.
Data Model Defines first order elements and namespace for endpoints, clusters,
attributes, data types, etc.
System Model Defines relationships that are managed between endpoints and clusters.
The origin of this section is the Dotdot Architecture Model [Dotdot Architecture] and parts of Chap
ter 2 of the Zigbee Cluster Library specification [ZCL] that define the data model.
The purpose of this document is to extend and better define the data model architecture, while not
breaking the certifiable cluster specifications in the Zigbee Cluster Library (currently at revision 8).
Under the Matter project, new and existing clusters and device types may take advantage of
extended architecture elements. Ultimately, the plan is that this architecture is available and main
tained for all underlying certifiable protocol stacks.
7.1.4. Overview
This document defines first order elements and namespace of the data model and can also be called
the meta-model (of the data model). This document is the "read me first" specification in the data
model. This data model is ultimately implemented in the application layer of a communication
stack.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 341
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This specification does not define how data is stored, encoded or what interactions are allowed on
the data.
7.1.5. Glossary
Term Description
7.1.6. Conventions
A value or range of an enumeration, field, or identifier that is available for non-standard imple
mentation SHALL be defined as manufacturer specific.
A value or range of an enumeration, field, or identifier that is available for other parts of this stan
dard SHALL be defined as such.
A value or range of an enumeration, field, or identifier that is deprecated, and not available for
implementation, SHALL be defined as deprecated.
• An undefined bit or bit field SHALL be considered reserved for future revisions of this standard
and SHALL not be available for implementation.
• An implementation of a revision where a bit is reserved SHALL indicate that bit as zero when
conveying that bit in an interaction, and ignore that bit when conveyed from another imple
mentation.
In this specification, hexadecimal numbers are prefixed with the designation “0x” and binary num
bers are prefixed with the designation “0b”. All other numbers are assumed to be decimal unless
indicated otherwise within the associated text.
Binary numbers are specified as successive groups of 4 bits, separated by a space (“ “) character
from the most significant bit (next to the 0b prefix and leftmost on the page) to the least significant
bit (rightmost on the page), e.g. the binary number 0b0000 1111 represents the decimal number 15.
Page 342 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Where individual bits are indicated (e.g. bit 3) the bit numbers are relative to the least significant
bit which is bit 0.
When a digit is specified as having any value in the range of that digit, it is specified with an “x”
(this should not be confused with the "x" in the prefix "0x" for hexadecimal notation).
For example:
• “0b0000 0xxx” indicates that the lower 3 bits can take any value but the upper 5 bits must
each be set to 0.
• “0x0000 0xxx” indicates that the lower 3 nibbles can take any value but the upper 5 nib
bles must each be set to 0.
The following columns are common across tables describing attributes, commands, events and
structs:
ID
Defines an identifier for the data model element that is unique at its context.
Name
Defines a CamelCase name of the element to be used in specification text, not the protocol. Text
usage SHALL always be followed with the element name (e.g. CurrentLevel attribute, Stopped
event, or Left field).
Field
Same as Name. Other headers like "Field", "Bit Field", and "Command Field", are deprecated. Use
Name.
Conformance
Defines dependencies on whether an element is optional or mandatory.
Access
Defines how an element is accessed (e.g. read or write) and what privileges are required to
access the data.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 343
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Data Type
A data field requires this column for attribute, event or command data.
Other Qualities
This is a catchall column for uncategorized qualities.
Default
This defines a default value for data fields.
Response
Cluster command tables have this column.
Direction
Cluster command tables have this column.
Priority
Event tables have this column.
Value
Enumerations use this column instead of the ID column.
7.3. Conformance
A Conformance column defines optionality and dependency for any data model element or set of
elements. This column is valid for attributes, commands, events, enumerations, and fields of com
mands, events or structures.
Page 344 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
7.3.1. Optional
Optionality with "[]" SHALL be defined for an entire expression and not for parts of an expression.
Individual conformance list entries MAY define optionality with "[]", but not the entire list.
For example: The expression "[AA] & BB" is illegal, however, "[AA & BB]" or "AA & BB" is legal.
For example: The expression "AA | [BB]" is illegal, however, "[AA | BB]" or "AA, [BB]" is legal.
The tag "O" SHALL define the element as optional for the revision. "O" SHALL only be used by itself,
without operators, to mean optional without dependencies, or SHALL be used in a conformance list
ending in ", O", to mean otherwise optional.
7.3.2. Provisional
The tag "P" defines the element as provisional. "P" may be used in a list, where the intended confor
mance or list follows the "P". If the intended conformance has not been determined, then nothing
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 345
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
It is recommended that the intended future conformance be noted, so that when the provisional
marking is removed, the intended conformance becomes the current conformance.
For example: "P, M" means provisional, but mandatory, when not provisional in the future.
For example: "P, [AA & BB]" means provisional for now, but optional if AA & BB are true, when not
provisional in the future.
For example: "[AA], P" means optional for AA and provisional otherwise, where the future confor
mance is unknown at this time.
Each provisional element shall be listed in a higher level specification, that includes the data model,
and data model derived specifications that use this notation.
7.3.3. Mandatory
The tag "M" SHALL define the element as mandatory. "M" SHALL only be used by itself, without
operators, to mean mandatory without dependencies, or SHALL be used in a conformance list end
ing in ", M", to mean otherwise mandatory.
7.3.4. Disallowed
The tag "X" is used when a derived cluster removes support for some elements. The tag "X" SHALL
define the element as disallowed for the revision of the derivation. "X" SHALL only be used by itself,
without operators.
7.3.5. Deprecated
The tag "D" SHALL define the element as disallowed for the revision. Previous revisions MAY sup
port this element and conformance is defined in such previous revisions. "D" SHALL only be used
by itself, without operators.
7.3.6. Exclusivity
For example: Excluding an element with "!Matter" means that it is mandatory otherwise. Better to
use positive conformance with (e.g. "Zigbee"). For example: Excluding an element with "[!Matter]"
means that it is optional otherwise. Better to use positive conformance with (e.g. "[Zigbee]").
7.3.7. List
A conformance list is evaluated from top to bottom, and left to right, where an expression is mutu
ally exclusive to the previous expressions (above and to the left). It is a shorthand that allows defin
ing conformance which depends on the previously evaluated true expression.
Page 346 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Some examples:
• "AB, [CD]" means mandatory for AB, optional if CD is true and AB is false, otherwise not allowed.
• "[AB], M" is the equivalent to "!AB, O", and a clearer way to define the conformance.
If a row in a table is repeated for an element with qualities that change based on tags, then evalua
tion top to bottom is also supported. For the example below, the MinLevel element is mandatory for
LT with the minimum of 1 (not zero), mandatory for AB with the minimum of 0 (zero), otherwise
the element is optional with a minimum of 0 (zero).
Above is logically the same and a shorthand for using the choice conformance notation below.
A conformance expression supports conformance tags as operands. A conformance tag for a cluster
MAY be the name of a cluster feature (see FeatureMap Attribute). A conformance tag for a cluster
MAY be the name of an element in the Name column of the same table. A conformance tag for a
device type definition MAY also include a condition of the node.
Equality operators require that a value can be resolved for the left operand. If the left operand is
not supported, the default is the value. "null" is a valid value for the equality operator.
Simple dependencies MAY also be defined in conformance. If a Max attribute has a dependency on
a Min attribute, then the conformance for Max is "Min". Exclusive logic also applies. For example, if
the Absolute attribute is mutually exclusive to the Percentage attribute, and one of the two must be
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 347
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
supported, then conformance for Absolute would be "!Percentage", and conformance for Percent
age would be "!Absolute".
• "[AA & BB]" means optional if AA and BB are both true, but excluded (and not optional) other
wise.
7.3.9. Choice
Choice exclusivity supports conformance when defining support for only one or some elements at
the same level. This set of elements is called the choice set.
C is any logical AB expression or conformance list, including "O" (optional) or "M" (mandatory), but
not "X" or "D". If C is a conformance list, then the list SHALL be surrounded by parentheses.
a is a lower case letter identifying 2 or more elements in the choice set, that SHALL be at the same
scope (in the same table).
n determines the number in the choice set that SHALL be supported after evaluation of the confor
mance C. n is a number between one (1) and the number of elements tagged with an a, minus one. n
may be suffixed with a plus sign ("+"), which means the number or more SHALL be supported, oth
erwise n is exactly the number that SHALL be supported. If n is omitted, then n is considered to be
one.
When this conformance notation is used, each element identifying the set or choices with a, SHALL
have a duplicate n value and duplicate the "+" if used.
Invalid example: It is illegal to use "M.a" for one element and "M.a2" for another.
Valid examples:
Page 348 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Optionality such as "O.a" SHALL support the choice of not implementing the element, regardless of
the n value. However, if the element set conformance evaluates to true, the n value SHALL be sup
ported.
For example: The following is valid, because the n value is always supported.
Different expressions for C are allowed, which may limit the choices, based on conformance, to
greater than zero, but less than n. In such cases, consideration is needed to define choice and con
formance so that the n value is satisfied.
For example: The following is invalid if conformance allows AB to be false and CD to be true,
because the n value of 2 is not satisfied.
If an element does not have a designated conformance (the column is blank or omitted), then it
SHALL inherit conformance from the next highest element in the model hierarchy. For example: A
data field in a struct attribute inherits its conformance from the attribute.
7.4. Element
An element of the data model is a data construct that supports an instance of data. Listed below are
the elements of the data model.
Nested elements
command field, event field, struct field
Dynamic element
list entry
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 349
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Semantic elements
device type, data type
Attribute data
elements (above) that are part of an attribute
Data field
attribute, field element, or list entry (see Data Field)
• Unknown elements SHALL be ignored and skipped. This provides forward compatibility with
future elements.
7.5. Fabric
A fabric is set of nodes that interact by accessing data model elements as defined in the Interaction
Model. A fabric is a security domain that allows a set of nodes to be identified and communicate
within the context of the domain. A node is considered to be 'on' a fabric, when it can be identified
and interact in the context of that fabric. An interaction is considered to occur 'on' a fabric, when
the interaction occurs in the context of that fabric (see Accessing Fabric). Each interaction occurs
either on a single fabric, or without a fabric context (see Accessing Fabric).
How a fabric is established and how a node comes to be on a fabric is not defined here and left to
the lower layers.
If an interaction is associated with a particular fabric, that fabric is called the "accessing fabric".
If the interaction is not associated with a fabric, the accessing fabric does not exist. In this case any
comparison of the accessing fabric to any existing fabric SHALL consider them not equal.
7.5.2. Fabric-Index
Each fabric supported on a node is referenced by fabric-index that is unique on the node. This fab
ric-index enables the look-up of the full fabric information from the fabric-index. A fabric-index of
0 (zero) or null SHALL indicate that there is no fabric associated with the context in which the fab
ric-index is being used. If fabric-index is used in a context that is exclusively associated with a fab
ric, such as fabric-scoped data model elements, then the fabric-index values SHALL NOT include 0
(zero) or null.
Page 350 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The fabric-index corresponding to the accessing fabric is called the "accessing fabric-index". If the
accessing fabric does not exist, the accessing fabric-index SHALL indicate no fabric with a fabric-
index of 0.
Most cluster data instances are accessible regardless of the accessing fabric. However, data that is
exclusively associated with a particular fabric SHALL be defined as being fabric-scoped. Fabric-
scoped data SHALL be defined with the fabric-scoped quality.
The fabric associated with fabric-scoped data is called the "associated fabric".
Fabric-scoped data allows multiple accessing fabrics to manipulate a list of data items without
interfering with each other. See Fabric Filtered List.
• fabric-sensitive event
A fabric-scoped data instance is always a composite struct-like data instance, with multiple fields.
Fabric-scoped data SHALL always include the FabricIndex field to indicate the associated fabric.
The FabricIndex field for fabric-scoped data SHALL NOT be 0 or null.
Any interaction, including cluster commands, SHALL NOT cause modification of fabric-scoped data,
directly or indirectly, if the interaction has an accessing fabric different than the associated fabric
for the data, except in the case of a cluster command that explicitly defines an exception to this
rule.
Some data types are fabric-scoped IDs, including, but not limited to, node ID and group ID.
A fabric-scoped ID MAY require the presence of a fabric-index data type field within the same nest
ing scope to indicate the fabric associated with the ID in these cases:
• If the fabric-scoped ID is part of fabric-scoped data with an associated fabric that is not the fab
ric associated with the ID.
• structs
• events
• commands
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 351
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Where necessary, specification text SHOULD define the data to which the fabric-index applies.
7.6. Access
Data model elements have access qualities. Some elements have intrinsic access or access limita
tions. For example: Cluster commands or command fields are not writable.
An Access column defines access to a data model element or set of elements. This column is valid
for attributes, commands, events, and nested attribute data fields.
R Read Access
W Write Access
F Fabric-Scoped Quality
S Fabric-Sensitive Quality
Attributes, commands, and events SHALL define their access, and SHALL include privileges in their
access definition. For example: An attribute defines whether it is readable or writable, and what
privileges are required to do so.
Attributes, commands, and events that do not define any privileges as access qualities SHALL be
deemed to have the following:
Page 352 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
For example: An event with implicit read access or explicit 'R' access defaults to access 'R V'. An
attribute with access 'RW' defaults to access 'RW VO'. A request command with implicit invoke
access defaults to privilege 'O'.
Nested elements MAY define their access, but SHALL NOT include privileges in their access defini
tion. Nested elements SHALL inherit their privileges from the next highest element in the model
hierarchy. Nested elements that do not define their access SHALL inherit their access from the next
highest element in the model hierarchy. For example: A data field in a struct attribute inherits its
access qualities from attribute.
Elements SHALL only include the lowest required privilege for a type of access.
That means:
• An event SHALL define the single privilege required for Read access.
• A command SHALL define the single privilege required for Invoke access.
• A readable attribute SHALL define the single privilege required for Read access.
• A writable (but not readable) attribute SHALL define the single privilege (that is not View or
ProxyView) required for Write access.
• A readable and writable attribute MAY define a single privilege (that is not View or ProxyView)
required for both Read and Write access.
• A readable and writable attribute MAY define the View or ProxyView privilege as required for
Read access and one other privilege (that is not View or ProxyView) as required for Write
access.
Read access means that a request for data values associated with an element SHALL be supported.
This quality SHALL only be defined for cluster event and attribute data definitions. This quality
SHALL NOT be defined for cluster command definitions.
This quality is implicitly defined for cluster events and does not need to be stipulated explicitly.
Write access means that a request to modify attribute data values SHALL be supported. This quality
SHALL only be defined for cluster attribute data definitions. This quality SHALL NOT be defined for
cluster event and command definitions.
A cluster specification SHALL define the conditions when write access attribute data is not
writable, and SHALL define normative or recommended behavior to follow when this occurs.
An implementation that does not support write access for a field with optional write access SHALL
have this declared in its product Declaration of Conformity.
Invoke access means that a request to execute a command SHALL be supported. This quality SHALL
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 353
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
only be defined for cluster command definitions, by defining an appropriate privilege level for the
command. This quality SHALL NOT be defined for cluster event and attribute data definitions.
This quality acts as an additional constraint over those imposed by the existing Read and Write
qualities, namely:
• Fabric-scoped attribute data SHALL NOT be writable unless the accessing fabric is the associ
ated fabric of the data.
• A cluster command SHALL NOT alter fabric-scoped data if the associated fabric is not the
accessing fabric.
This further restricts access to data that is sensitive to the associated fabric.
This quality acts as an additional constraint over those imposed by the fabric-scoped quality,
namely:
• Fabric-sensitive data SHALL NOT be readable unless the accessing fabric is the associated fabric
of the data. See fabric-scoped data.
An element with the View privilege SHALL support Read (if readable) and Invoke (if invocable)
access if the source of the request is granted the View privilege.
A command with the View privilege defined SHALL NOT alter data that is part of its function (e.g.
settings, configuration), but MAY alter data that is internal or diagnostic in nature (e.g. usage statis
tics).
An element with the Operate privilege defined SHALL support Read (if readable), Write (if
writable), and Invoke (if invocable) access if the source of the request is granted the Operate privi
lege.
An element with the Manage privilege defined SHALL support Read (if readable), Write (if
writable), and Invoke (if invocable) access if the source of the request is granted the Manage privi
lege.
Page 354 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
An element with the Administer privilege defined SHALL support Read (if readable), Write (if
writable), and Invoke (if invocable) access if the source of the request is granted the Administer
privilege.
Timed interactions are used to limit the amount of time an action message is valid and can interact
with a node. They are used to prevent a timing attack on the system. For example, a malicious
attacker could perform an "intercept, interfere, and replay" procedure whereby a legitimate mes
sage is intercepted, receipt by the intended destination is jammed, and the attacker sends the mes
sage at a later time to cause a malicious action such as unlocking a door at an unintended time.
While the practical difficulties of such an attack are high, and the malicious eavesdropper cannot
decrypt the action message, the timed interaction provides further mitigation of risk for critical
actions.
The timed interaction can be thought of as a 2-phase commit. A precursor action (Timed Request
Action) is sent to indicate the valid time window for arrival of some subsequent, primary action.
Since the timed request requires a response, an attacker cannot do the store-and-forward timing
attack anymore. The lack of an authenticated response from the intended destination will prevent
the subsequent primary action from being sent.
A command with this quality SHALL require a timed invoke interaction. A writable attribute with
this quality SHALL require a timed write interaction.
An attempted untimed write interaction to a writable attribute with this quality SHALL generate an
error response.
An untimed invoke interaction for a request command with this quality SHALL generate an error
response.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 355
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
See Nullable.
See Persistence.
Data with this quality is read only and has a fixed value that never changes, unless the program
image changes.
Page 356 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Subscribe interaction supports all attribute data. This quality is supported by other interactions
that only require attribute data with this quality to support interval or change reporting.
This quality MAY be given to attribute data that is deemed to have a high rate of change or where
changes are not meaningful or too large to convey as part of Subscribe interaction.
Attribute data with this quality SHALL support Read Access, but SHALL NOT have delta changes
published as part of a Subscribe interaction.
7.7.7. Singleton
Data with this quality, that be indicated by more than one cluster, represents a single instance of
the data, for the node.
7.8. Node
A Node encapsulates an addressable, unique resource on the network that has a set of functions
and capabilities that a user recognizes distinctly as a functional whole.
This distinction is usually physical, such as the physical device itself, or a logical instance of a physi
cal device.
A node is the highest or outermost first order element in the data model. A node is the outermost
unique addressable element of the data model.
A node MAY have multiple node IDs, each ID scoped to a particular fabric. When a node ID is used
as the target address of an interaction, the fabric under which the node ID is scoped, is the access
ing fabric for the interaction.
The lower layers in a communication stack supporting this data model SHALL support interactions
between nodes on a logical inter-network of nodes. Please see the Interaction Model and System
Model specifications that describe relationships and interactions between nodes and data model
elements on each node.
It is possible for parts of a node to reside on different processors (e.g. separate application and net
work processors).
7.9. Endpoint
A node is composed of one or more endpoints. An endpoint is an instance of something that could
be a service or virtual device as indicated by a device type.
Each endpoint conforms to one or more device type definitions that define the clusters supported
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 357
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
on the endpoint. Clusters are object classes that are instantiated on an endpoint.
The word 'device', depending on the context, may be used as shorthand to denote the device type
definition as represented by a device type ID, a device type implementation, or an endpoint (device
type instance).
There are also many examples in specification text where 'device' is used, when it would be better,
and more accurate to use 'node', 'physical device', or 'product'.
The word 'device' may also be used in cluster specifications to describe application software that is
supporting an instance of a cluster server or client. In this case, it would be better, and more accu
rate to use either 'client' or 'server'.
One must be careful to make sure there is no ambiguity when using the word 'device' in specifica
tion text, or better yet, use another word.
7.10. Cluster
Clusters are the functional building block elements of the data model. A cluster specification
defines both a client and server side that correspond with each other through interactions. A clus
ter may be considered an interface, service, or object class and is the lowest independent functional
element in the data model. Each cluster is defined by a cluster specification that defines elements of
a cluster including attributes, events, commands, as well as behavior associated with interactions
with these elements. Cluster attributes, events, commands and behaviors are mandatory or
optional depending on the definition of the cluster. Optional items may have dependencies.
A cluster specification SHALL list one or more Cluster Identifiers. A Cluster Identifier SHALL refer
ence a single cluster specification and SHALL define conformance to that specification. A cluster
instance SHALL be indicated and discovered by a Cluster Identifier on an endpoint. A Cluster Iden
tifier also defines the purpose of the instance.
The server cluster supports attribute data, events and cluster commands. The client cluster initiates
interactions, including invocation of cluster commands.
The revision of a cluster is to enforce backward and forward compatibility, but still allow clusters to
be enhanced, fixed, or updated, without changing the cluster’s basic function.
A cluster revision SHALL be associated with an approved revision and release of a cluster specifica
tion. The revision of an instance of a cluster SHALL be represented by the global, mandatory, and
read only ClusterRevision attribute. Please see ClusterRevision attribute.
Changes to a cluster specification SHALL only augment, not modify the primary function of the
cluster. Changes to a cluster specification SHALL be represented by incrementing the cluster revi
sion. New revisions of a client cluster SHALL interoperate with older revisions of the server cluster
and vice versa. Interoperability between corresponding cluster instances MAY require reading the
cluster revision.
Page 358 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
For example: If a new product client application supporting revision 3 of cluster X wishes to
take advantage of the new behavior that is mandated by revision 3, then the application can
read the revision of the corresponding server cluster X in each remote endpoint. If a corre
sponding cluster X supports revision 3 or greater, then the behavior is supported.
• Adding new attributes (e.g. min and max of an existing attribute value)
In general, as the number of optional elements in a cluster specification increases, the number of
possible combinations increases, which could decrease the interoperability of that cluster.
Each cluster has a mandatory feature set that consists of mandatory elements such as attributes,
commands, fields, values, dependencies, behavior, etc.
A cluster specification MAY have optional feature sets, each supported by a set of elements (see Fea
tureMap).
There is no requirement that each cluster instance supports the same set of optional elements.
If an application knows the ClusterRevision and FeatureMap supported by a cluster instance, then it
knows the exact specification text required to be implemented by that instance.
A cluster data version is a metadata increment-only counter value, maintained for each cluster
instance. A cluster data version represents an exact & coherent state of cluster attribute data at
present. An application may externally hold a data version (called a held data version) published by
a cluster instance which then represents a cluster instance state at some time in the past. An appli
cation may use a held data version to optimize future interactions, by indicating the held data ver
sion. A cluster data version is surfaced in the Interaction Model when data is requested. It is used to
optimize data read transactions by reducing the need to send the same data. Write interactions may
also be qualified with a held data version to disallow changes, unless the cluster instance has the
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 359
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
same data version (see Interaction Model). A cluster data version is published as information in
some interactions (See Interaction Model). An externally held data version may be included as
information in some interactions (See Interaction Model).
A cluster data version SHALL increment or be set (wrap) to zero if incrementing would exceed its
maximum value. A cluster data version SHALL be maintained for each cluster instance. A cluster
data version SHALL be initialized randomly when it is first published. A cluster data version SHALL
be incremented if any attribute data changes.
2. Optional feature(s) in the FeatureMap Attribute attribute for a set of elements (see 1)
3. Cluster Aliasing to reuse a cluster specification as a whole, but with a different semantic
4. Cluster Inheritance
Cluster aliasing allows the reuse of approved and validated specifications and derived documents,
such as test plans, scripts, etc.
• More than one Cluster Identifier, each with unique purpose and semantic content, MAY map to
a single cluster specification.
For example: A Concentration Measurement cluster specification may be quite abstract but
have many mapped Cluster Identifiers each with a more concrete purpose, such as CO2 or O2
concentration measurement.
Cluster inheritance allows the reuse of approved and validated specifications and derived docu
ments, such as test plans, scripts, etc. This allows a new cluster specification to be defined as
extending or reducing the requirements of an existing cluster specification, called the base cluster.
This also allows an existing cluster specification to be defined as a derived cluster, by creating a
new base cluster that is more generic, allowing potential new clusters to be derived from the new
base cluster.
• A derived cluster specification MAY have mandatory requirements that are optional in the base
specification.
• A derived cluster specification MAY remove requirements that are optional in the base specifi
cation.
Page 360 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• A derived cluster specification MAY remove or make optional a requirement that is mandatory
in the base specification, if the resulting specification is deemed useful in its reduced form, and
logically a subset of the base clusters.
For example: The Bridged Device Basic Information cluster is derived as a reduced form of
the base Basic Information cluster, where many informational attributes are not mandatory,
because the information is not available from devices behind the bridge. However, the
derived cluster provides the same, but reduced, function as the base cluster.
• It is RECOMMENDED that an extension or reduction for a derived cluster is one or more fea
tures or independent elements, not a modification to custom cluster behavior.
• All new features, elements or behavior introduced by the derived cluster SHALL be defined in
the base cluster specification and made optional (in that base cluster specification), to maintain
the entire set of requirements and identifier namespace in one place.
• A derived cluster specification SHALL define its own revision (ClusterRevision attribute) that is
independent of the base specification.
• A base cluster specification MAY be created from an original base cluster, which then becomes a
derived cluster to the newly created base cluster.
If an endpoint supports multiple server clusters that derive or map to the same base cluster specifi
cation, then each SHALL represent a single implementation and operate as a single entity or
instance. This makes it possible to deploy a new device endpoint with both a base and a derived
cluster identifier, which SHALL remain backward compatible to legacy devices that support only
the original cluster identifier. Cluster identifiers that are mapped to a single base cluster specifica
tion, but are defined for distinctly different purposes, MAY exist together on a device endpoint. If
there is no base cluster identifier defined, or no base cluster identifier exists on the same endpoint,
then each cluster identifier SHALL represent a separate instance.
It is a good practice to explore the possibility of either deriving a cluster from an existing cluster or
creating a base cluster to map or derive new and existing cluster identifiers. See New Cluster for
other options.
A cluster specification defines status code responses to actions depending on the cluster instance
state. A status code is either a global Interaction Model status code, or a cluster specific status code
that is unique to the cluster specification. A global status code is either scoped to the entire action,
or to a cluster request path. A cluster specific status code scoped to a cluster instance is indicated by
a cluster path. When an interaction defines a Status Response response, the responder SHALL
return a global Interaction Model status code. When an interaction response needs to communicate
a cluster specific status code, the responder SHALL return the path to the cluster instance, the
global status code SUCCESS or FAILURE, and the cluster specific status code. Each cluster specific
status code SHALL be associated with either SUCCESS or FAILURE, not both. A cluster specific status
code SHALL be, by default, associated with FAILURE unless it is defined as associated with SUCCESS.
The global SUCCESS status code means the action was executed for the request path; the global
FAILURE status code means that it was not executed.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 361
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Cluster-specific status codes MAY have the same numeric values as global status codes. Interac
tion model messages SHALL make it clear whether a particular message field is a global status
code or a cluster-specific status code.
• Cluster-specific status codes SHALL communicate more information than just a generic success
or failure condition. Global status codes SHALL be used to communicate such conditions.
• A server cluster SHALL NOT return a cluster-specific code from another cluster.
A utility cluster is not part of the primary application operation of an endpoint. It may be used for
configuration, discovery, addressing, diagnostics, monitoring device health, software update, etc. It
may have a temporary relationship with its cluster counterpart.
Utility cluster examples scoped to an endpoint: Identify, Descriptor, Binding, Groups, etc. Util
ity cluster examples scoped to the node: Basic Information, Diagnostics, etc.
An application cluster supports the primary operation of the endpoint. An application cluster sup
ports one or more persistent application interactions between client and server.
An application cluster is not a utility cluster even though it may support utility functions for itself,
such as calibration, modes of operation, etc. An application cluster specification SHALL be agnostic
about layers and processes outside of its application domain.
Page 362 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
7.11. Command
A cluster command is a set of data fields, each of a data type that is conveyed between client and
server cluster instances to invoke a behavior on the receiver of the command.
Each command SHALL be listed in a table with data quality columns: ID, Name, Direction,
Response, Access, Conformance.
The command table SHALL define the direction of the command as either client to server or server
to client. The command table SHALL define the access privileges for each request command or omit
the privileges for the default (see default access privileges). The command table SHALL NOT define
privileges for a response command. The command table SHALL define a possible response to the
command, if any. The command table SHALL define conformance for each command.
A command that is not a response (in the Response column) is a request command. Conformance
for a client to server command means the server SHALL recognize and support the client to server
command and generate responses as defined. Conformance for a server to client command means
the server SHALL send the command as cluster behavior defines, such as in response to a client to
server command. Conformance for a command can depend on supported server features. A client
SHALL NOT be required to support optional commands or commands depending on an optional
feature.
• a response command
• no response
A command definition SHALL clearly define any side-effects on fabric-scoped data, if applicable.
*
A command is identified and indicated with a command ID that SHALL be unique to the cluster .
*Note
Some legacy clusters have reused the same command ID twice to indicate one command
from the client and another from the server. Moving forward, command IDs SHALL NOT
be reused in that fashion.
A cluster command table SHALL have a Response column with the following values:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 363
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A cluster command table SHALL have a Direction column with the following values:
Each command SHALL be described in its own section with a table defining command fields (if
any).
A command MAY indicate zero or more fields that are defined in a table. Each command field is
defined as a row in the table with these columns:
Column Description
Command field conformance defines the sender requirements to include the field in a well-formed
command for the revision of the cluster. A new command field or a newly made-mandatory com
mand field in a newly revised cluster specification may be omitted by a legacy sender. The cluster
specification shall define clear behavior upon receipt of any possible well-formed command with
fields that are not present. The cluster specification shall take into consideration the revision his
tory of possible well-formed commands from legacy implementations. To allow deprecation, it is
recommended that command fields have a well-defined default value (such as null), and associated
default behavior, that is equivalent to omitting the field. Well-defined behavior, for a field that is
not present, may be no behavior at all.
For example
A newly revised Noise cluster adds a new mandatory Volume field to the MakeNoise com
mand. Legacy receivers will ignore the Volume field, and legacy senders will not include
the field.
Page 364 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Another example
The Volume field is mandatory for the original cluster and there is a proposal to make it
optional. The Volume field null value has the semantic of ignoring the field, so instead of
making it optional, the default value is used. This would make the receiver logic simpler.
7.12. Attribute
An attribute is cluster data. Each attribute SHALL be listed in a table with data quality columns: ID,
Name, (Data) Type, Constraint, other Quality, Access, Default (value), and Conformance. An
attribute SHALL also define its associated semantics and behavior. Attributes reflect queryable/set
table state, configuration and capabilities of a device. If no privileges are explicitly defined for an
attribute, then default access privileges take effect. Attribute data MAY also have these other quali
ties:
7.12.1. Persistence
A restart is:
• user-initiated reboot
A factory reset is not such a restart. A factory reset is a deliberate behavior to reset persistent data
back to its original state when the product left the factory.
Cluster attributes that represent configuration data SHALL be persistent data unless otherwise
specified.
For example: a writable attribute that persistently changes the behavior (or mode) of the clus
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 365
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ter.
Examples of non-configuration data: device state data, data that is calculated or comes from
an external source, such as a sensor value, a time value, etc.
Many clusters define persistent data that is not surfaced as attributes, but is managed by com
mands. Commissioning or configuration data that is created to allow the cluster to perform its func
tion is persistent data. A group table entry and binding entries are both persistent data across a
restart.
When a persistent cluster attribute represents controlled state of the device, the device SHALL
restore the attribute value to the value before the restart was initiated, and put the device in the
state that is represented by the restored value.
For example: After an OTA cluster restart, clusters that have visible state attributes, such as
the state of a light, or a window shade SHALL be persistent and define these attributes as per
sistent.
Some cluster specifications add a dependency with a persistent configuration attribute A that con
tains a value to use to restore persistent state attribute B after a restart. This is perfectly valid but
cluster specific.
Cluster state data that is not controlled, such as sensor data, is not considered persistent.
The cluster specification may put dependencies and limitations on persistent data.
Page 366 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The ClusterRevision attribute indicates the revision of the server cluster specification supported by
the cluster instance. An implementation of a cluster specification before the ClusterRevision
attribute was added SHALL have an assumed cluster revision of 0 (zero). For a new cluster specifi
cation, the initial value for the ClusterRevision attribute SHALL be 1 (not zero).
A history of revision numbers for a cluster specification release is listed in the Revision History sec
tion for a cluster specification. Each new revision of a cluster specification SHALL specify a new
revision number incremented (by 1) from the last. The highest revision number in a cluster specifi
cation’s Revision History is the revision number for the cluster specification. Therefore, a Cluster
Revision attribute value SHALL be the (highest) revision number of the cluster specification that
has been implemented.
The FeatureMap attribute SHALL indicate whether the server supports zero or more optional clus
ter features. A cluster feature is a set of cluster elements that are mandatory or optional for a
defined feature of the cluster. If a cluster feature is supported by the cluster instance, then the cor
responding bit SHALL be set to 1, otherwise the bit SHALL be set to 0 (zero). All undefined bits in
this attribute SHALL be set to 0 (zero).
The set of cluster elements that are designated as mandatory (M) are implicitly part of the manda
tory cluster feature set, and do not have a bit in the FeatureMap attribute.
A cluster specification SHALL support this attribute if the cluster supports features. If a cluster
specification is revised to support features (and so this attribute), each bit in the FeatureMap
attribute SHALL have a defined default value (1 or 0), to conform with the previous revision of the
cluster specification, that did not support the FeatureMap attribute. The value of 1 means the fea
ture elements were mandatory (M) in the previous revision. The value of 0 (zero) means the ele
ments were optional in the previous revision.
Any newly created feature set of a cluster SHALL be dependent on that cluster.
Feature sets are revision controlled as part of a cluster using the ClusterRevision attribute. The clus
ter specification is the independent element that is revision controlled. A remote application read
ing the FeatureMap Attribute and ClusterRevision Attribute will then know exactly what features
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 367
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Each feature set SHALL be well defined within the cluster specification. Each feature SHALL be
mapped to a short capitalized code name for the feature set to be referenced as a conformance tag
in the cluster specification text, including the Conformance columns defining the elements of the
cluster.
If a cluster defines more than 32 feature sets, then it will be necessary to add another feature
bitmap attribute. Any client trying to reference the new feature set will know about the new
bitmap, because it knows about the new feature set(s). Legacy products will not know about the
new feature set nor the new bitmap.
For a cluster whose definition which does not define a FeatureMap, the server SHALL set this
attribute to 0 (zero).
Each instance of a cluster SHALL support this attribute. This attribute SHALL be a list of the
attribute IDs of the attributes supported by the cluster instance.
This attribute is a list of client generated commands which are supported by this cluster server
instance.
This attribute SHALL be a list of the command IDs for client generated commands that are sup
ported and processed by the server.
For each client request command in this list that mandates a response from the server, the
response command SHALL be indicated in the GeneratedCommandList attribute.
This attribute is a list of server generated commands. A server generated command is a server to
client command.
This attribute SHALL be a list of the command IDs for server generated commands.
For each command in this list that is a response to a client command request, the request command
SHALL be indicated in the AcceptedCommandList attribute.
Each instance of a cluster SHALL support this attribute. This attribute SHALL be a list of the event
IDs of the events supported by the cluster instance.
Page 368 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This field SHALL be present for fabric-scoped data. This field does not have to be defined explicitly
in the field table for fabric-scoped data.
This field SHALL NOT be present in a write interaction. For a write interaction, the server SHALL
provide the value of the accessing fabric-index as the FabricIndex field value to processing logic,
after receipt of the interaction. For a read interaction this field SHALL be included in all reported
data that is defined as fabric-scoped.
7.14. Event
An event defines a record of something that occurred in the past. In this regard, an event record
can be thought of as a log entry, with an event record stream providing a chronological view of the
events on the node.
Unlike attributes, which do not provide any edge-preserving capabilities (i.e. no guarantees that
every attribute change will be conveyed to observers), events permit capturing every single edge or
change and conveying it reliably to an observer. This is critical for safety and security applications
that rely upon such guarantees for correct behavior.
Each cluster event is listed in a table that defines: ID, Priority, Access, Conformance.
Event records are readable, and do not require the read access quality to be explicitly defined.
7.14.1. Priority
Each event record has an associated priority. This priority describes the usage semantics of the
event.
Priority Description
An event record is created by the node at the time the event happens. That record SHALL have the
following data fields associated with it that are common to all events:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 369
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Event Number
• Timestamp
• Priority
Each generated event record SHALL have an event priority that MAY override the defined priority
for that event.
Each event SHALL be described in a section that defines the purpose of the event and data fields of
the event (if any). Event fields SHALL be defined in the form of a struct in a table with the following
columns: ID, Name, Type, Constraint, Quality, Default, Conformance.
This is an event number value that is scoped to the node. This number SHALL be monotonically
increasing for the life of the node. This monotonicity guarantee SHALL be preserved across
restarts.
Between restarts, each event record SHALL be assigned a number that is exactly 1 greater than the
last created event record on that Node.
When a node restarts, the event number MAY increase by a larger step than 1. Rationale: Nodes do
not need to write every new value of the event number counter to permanent storage each time it
is increased (e.g. to prevent flash wear due to many write operations). One example strategy to
achieve reduction of non-volatile storage updates is described below:
2. Before processing any message, write counter + N to storage, where N is a carefully chosen
number (e.g. 1000). This number N should be chosen carefully in order not to exhaust the life
time 64-bit counter space.
3. Process messages normally until the counter has a value one less than the counter in storage.
When this happens, store counter + N to storage.
7.14.2.2. Timestamp
Each event record SHALL have a timestamp at the time it was created (and not when it is reported
to a client). This timestamp SHALL either be System Time in Microseconds or Epoch Time Microsec
onds.
7.14.3. Buffering
Event records SHALL be buffered on the Node, with priority given to events of a higher priority
level over a lower priority level. Within a priority level, newer event records SHALL overwrite
older event records. The Node SHOULD only overwrite older events if there are newer events cre
ated and there is insufficient space to retain both.
Interactions that report event records MAY be filtered by event ID and/or event number.
Page 370 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
An entire event MAY be defined as having the fabric-sensitive quality; otherwise, it SHALL NOT be
associated with a fabric.
A read interaction SHALL NOT filter event records, based on fabric, for event records that are not
associated with a fabric.
A read interaction SHALL NOT report fabric-sensitive event records that are associated with a fab
ric different than the accessing fabric.
A fabric-sensitive event SHALL include the global FabricIndex field. For a fabric-sensitive event it is
not required to define the FabricIndex field in the event field table.
A device type SHALL define the cluster support for an endpoint. A composed device type MAY
define one or more other device types as part of the composed device type.
A device type definition MAY define or use predefined conditions from requirements, limitations
and/or capabilities of the node. A device type definition MAY define or use predefined conditions on
one or more underlying stack standard(s).
A device type MAY define support of a cluster as dependent upon a condition. A device type defini
tion MAY specify optional clusters that are recommended as enhancements.
• Support of optional cluster elements or features MAY depend on device type conditions.
A device type definition SHALL specify a device type ID, device revision, and a set of one or more
mandatory clusters including each cluster’s minimum revision.
A device type definition MAY be generic and allow many similar clusters, where at least one
instance SHALL be required.
If all sensor devices are common in cluster requirements (except the clusters that perform the sens
ing), then there is no reason to create a device type for each sensor cluster.
A device type definition MAY be very specific and list particular clusters as mandatory.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 371
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A device type revision is an unsigned integer that is associated with an approved revision and
release of a device type definition. The initial value for a device type revision SHALL be 1. The ini
tial revision (1) of a device type definition SHALL require the latest (at the time of definition the
cluster) certifiable revisions of the clusters it mandates. Device type implementations MAY support
later revisions of the mandatory clusters as they become certifiable. Any mandatory changes to the
device type definition SHALL only augment, not modify, the function of the device. Any changes
SHALL increment the version of the device. Newer versions of the device SHALL interoperate with
older revisions at the older revision’s level of functionality.
Examples of changes to a device type definition that require incrementing the revision:
A device type definition MAY be a composed device type and therefore require other device types
for its composition. A device type instance MAY be composed of other endpoints that support extra
cluster instances. Please see the System Model specification for more details.
Each device type definition SHALL specify the endpoint as being either a Utility, or Application.
Each device type definition SHALL specify the scope as either endpoint or node. Each Application
device type definition SHALL specify the endpoint as being either Simple or Dynamic.
A Utility device type supports configuration and settings. A utility device type definition SHALL
define requirements for utility clusters. A utility device type MAY also represent the physical device
or product. There MAY be more than one endpoint supporting a utility device type on a node.
Example utility cluster categories: OTA upgrade, diagnostics, basic information. Example utility
device type categories: bridge, proxy, power source.
Application devices types are typically the most common endpoints on a node and in the network.
An endpoint supporting an application device type is an application endpoint. An Application
device type SHALL be scoped to the endpoint. An application endpoint SHALL support clusters the
primary application function of the endpoint. Application category examples: HVAC, lighting, home
Page 372 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
security, etc.
A Simple device type supports local control that is persistent, independent, and unsupervised. A
Simple device type is an Application device type. Simple devices types are typically the most com
mon endpoints in the network. Simple device type examples: sensors, actuators, lights, on/off
switches, on/off power outlets, etc. Simple endpoints support independent operation without cen
tral control or gateways. An endpoint supporting a simple device type is a simple endpoint. Simple
endpoints SHALL support relationships through bindings.
A Dynamic device type supports intelligent and supervisory services, such as commissioning, moni
toring, trend analysis, scheduling and central management. A dynamic device type is an application
device type. An endpoint supporting a dynamic device type is a dynamic endpoint. A dynamic end
point is typically found on a central controller where there exists an intelligent supervisory applica
tion that manages simple device control applications. Typically, a dynamic endpoint supports client
clusters for central control, management, monitoring or supervisory functions. Typically, the prod
uct supporting a dynamic endpoint has visibility into the entire network (or part thereof) of simple
endpoints.
A dynamic endpoint client cluster instance MAY be used to multiplex transactions to or from multi
ple simple device server clusters in the network. A dynamic endpoint client cluster MAY initiate
interactions to many server clusters in the network. A dynamic endpoint client cluster MAY receive
data from many server clusters in the network. Dynamic endpoints MAY support relationships
through bindings. A dynamic device endpoint MAY support one or more external agents, outside
the node stack, that manage relationships. External agents include, but are not limited to, a cloud
application, a smartphone, an in-home display, or a configuration tool.
A node device type is a utility device type scoped to a node. A node device type definition SHALL
support clusters that represent the entire node. An endpoint supporting a node device type is a
node endpoint. A node endpoint MAY also represent the physical device or product. There MAY be
more than one node endpoint on a node.
An endpoint MAY support later revisions of a cluster mandated by the device type definition. An
endpoint MAY support extra clusters not mandated by the device type definition. An endpoint MAY
support optional features or cluster items (attributes, commands, events, etc.), that are not man
dated by the device type definition. Extra clusters, features, or cluster items, SHALL only augment,
not modify, the function of the device type or clusters.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 373
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
7.16. Non-Standard
This architecture model provides mechanisms for non-standard or manufacturer specific items
such as clusters, commands, events, attributes and attribute data fields. These items MAY be sup
ported on a certified product. Such vendor specific items SHALL NOT change the standard behavior
of the standard items. The specific function of a vendor specific item cannot be tested as part of cer
tification. They can only be tested to verify that they do no harm, and conform to proper behavior
with regard to identification, discovery, error processing, etc. A non-standard item SHOULD NOT
take the place of a standard item that provides the same function. It is up to the certification
authority to make a judgment call that is in keeping with the spirit of these requirements. Imple
menters are encouraged to develop and certify standard items, not non-standard items.
Optional attribute data MAY be referenced as data fields in other attribute specifications within the
same cluster specification. Cluster specifications also define data fields that are not surfaced, such
as temporary calculated values, or persistent state values. Any defined data value in a cluster speci
fication is a data field.
Each cluster data field SHALL be defined with a table including these columns for data qualities:
• Data Type
• Constraint
• Quality
• Access
• Default
• Conformance
A data field SHALL inherit (if possible) the qualities from the cluster first-order element of which it
is part, unless overridden. It SHOULD be rare to override inherited qualities.
For example: If an attribute is a struct data type, that is readable and writable, then all fields
of the struct are readable and writable.
New or optional data fields MAY not be recognized by a receiver, such as a legacy receiver. The data
field description SHALL define default behavior (such as absence of behavior) when a new or
optional data field is not present. It is recommended to define or use a feature when adding new or
optional data fields, to better indicate conformance. It is recommended to define a default value,
such as a null value, that indicates such default behavior.
Page 374 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
7.17.1. Nullable
When a data field value is required to designate an unknown, invalid, or undefined data value, and
there is no obvious data value (e.g. zero), that is within the valid range to indicate this, the data field
MAY be designated as nullable, so that an implemented instance of data MAY have the value of null.
Representation of null for the implementation of the Data Model is a consideration of the underly
ing encoding specification. The encoding layer SHALL have the capability to indicate null for any
nullable data field. How the encoding layer indicates null is outside the scope of the Data Model
specification.
A cluster specification SHALL define whether a data field is nullable. A cluster specification SHALL
define the meaning of the null value.
Composite data types that have a length (i.e. octet string and list), and derived types that have those
as the base type, SHALL NOT differentiate semantically between the null value and the empty (zero
length) value. In particular a zero-length value SHALL be allowed for nullable values of these types
no matter what other length constraints are imposed on the value, and SHALL have the same
semantics as the null value.
An optional or deprecated data field that is not implemented, and therefore does not exist, SHALL
NOT be indicated as the null value. How the encoding layer encodes non-existent data is outside the
scope of the Data Model specification.
The Conformance column shall define if a data field is optional or deprecated. To manage the data
identifier namespace, a deprecated data field SHALL NOT be removed from text that lists its identi
fier and default value. The description text of a deprecated data field SHALL be removed for new
revisions of specification text.
If the specification text of a cluster depends on the value of an optional or deprecated data field of
the same cluster, then the data field SHALL have a well-defined default value that SHALL be used
when the data field is not implemented.
The tables below describe the nomenclature for describing constraints and default data values. This
nomenclature is used in the cluster specifications for data value constraints, defaults, and other
definitions.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 375
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
These values are commonly used in cluster text and Default columns in cluster data definition
tables.
Value Description
7.17.3.2. Constraint
The Constraint column is valid for any attribute or data field of an attribute, event, command or
struct. It is RECOMMENDED to always define a constraint for any data field.
Constraint Description
Page 376 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Constraint Description
*
x, y, or z are literal values of the data type or from the Common Literal Values.
The minimum number of entries for list or size of a string SHALL be 0 (zero), unless redefined
using the above notation.
A comma delimited set of constraints for a list or string defines a union constraint. A union con
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 377
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
straint SHALL only have one minimum (min x) constraint and one maximum (max y) constraint. A
union constraint SHALL NOT define a range below the minimum constraint or range greater than
the maximum constraint, including the defined minimum (min) and maximum (max) for the data
type.
A constraint on a list or string data means that the data SHALL always be indicated within that con
straint. A constraint on a writeable list or string data means that the data SHALL support writing
within the constraint, and SHALL NOT support writing outside the constraint.
A server SHALL support up to the maximum in char_constraint for a character string data type. The
character string data SHALL NOT contain more than z Unicode codepoints.
Example: A string with a constraint of "max 128 [32]" dictates that the server provide for a
128 byte string, but the string may contain up to 32 Unicode codepoints
If the data type is a list or derived from a list, and the list is nullable, then a length of 0 (zero) SHALL
be supported, and defined in the constraint column.
If the data type is an octet string, or derived from an octet string (e.g. character string), and the data
is nullable, then a length of 0 (zero) SHALL be supported, and defined in the constraint column.
A default value defined in the Default column is not meant to be the value used when the server
returns to factory fresh settings. Specified conformance for data fields may be optional or change
over time. A default value is defined to complete dependencies when the actual data field value is
not present.
• the data field is new, and a default is required for backwards compatibility with legacy
instances
• the data field is optional, deprecated, or obsolete and therefore is not always present
• there is a dependency on the attribute value to formulate other data or affect behavior
If a default value is not defined for a data field, the default value is determined by the following
conditions:
Page 378 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• If the data field is nullable then the default value SHALL be null
• Else the default value SHALL be one of the following, depending on type:
◦ Boolean: false
◦ Bitmaps: 0
◦ Enumeration: MS
◦ Composite:
▪ String: empty
▪ List: empty
▪ Struct: default is recursively composited from the defaults of its member fields
These are the options for the Default column used for attributes or attribute, command or event
data:
If the default value of a data field is specified as manufacturer specific, then there SHALL be no
defined default value and the application SHALL support a manufacturer specific value that is in
the valid range.
The table indicates for each data type whether it defines an analog or discrete value. Values of ana
log types MAY be added to or subtracted from other values of the same type and are typically used
to measure the value of physical properties that can vary continuously over a range. Values of dis
crete data types only have meaning as individual values and SHALL NOT be added or subtracted.
Some data types specify bit-widths for future potential growth in range (analog) or number of val
ues (discrete).
Cluster specifications SHALL use the unique data type short name to reduce the text size of the
specification.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 379
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Boolean
Bitmap
Page 380 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Unsigned Integer
Floating Point
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 381
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
String
Composite Collection
7.18.1.1. Boolean
This data type is typically used to represent simple cluster settings or state that are treated as
whole.
• It is RECOMMENDED to define more bits than initially needed to be able to support more values
for later revisions.
• The conformance for a bit in a bitmap SHALL be mandatory or dependent upon an existing dis
coverable element, and therefore SHALL NOT be purely optional.
• Mandatory
A nullable bitmap SHALL NOT permit use of the most significant bit.
7.18.1.3. Unsigned Integer (8, 16, 24, 32, 40, 48, 56 and 64-bit)
This type represents an unsigned integer with length of N bits and a usable range of:
• [0..2N-2] if nullable.
Page 382 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The following table presents the representable values following the above rules:
8 0 254 255
(0x00) (0xFE) (0xFF)
16 0 65534 65535
(0x0000) (0xFFFE) (0xFFFF)
24 0 16777214 16777215
(0x000000) (0xFFFFFE) (0xFFFFFF)
32 0 4294967294 4294967295
(0x00000000) (0xFFFFFFFE) (0xFFFFFFFF)
40 0 1099511627774 1099511627775
(0x0000000000) (0xFFFFFFFFFE) (0xFFFFFFFFFF)
48 0 281474976710654 281474976710655
(0x000000000000) (0xFFFFFFFFFFFE) (0xFFFFFFFFFFFF)
56 0 72057594037927934 72057594037927935
(0x00000000000000) (0xFFFFFFFFFFFFFE) (0xFFFFFFFFFFFFFF)
64 0 18446744073709551614 18446744073709551615
(0x0000000000000000) (0xFFFFFFFFFFFFFFFE) (0xFFFFFFFFFFFFFFFF)
7.18.1.4. Signed Integer (8, 16, 24, 32, 40, 48, 56 and 64-bit)
This type represents an signed integer with length of N bits and a usable range of:
• [-(2(N-1)-1)..2(N-1)-1] if nullable.
Whether to use two’s complement or another representation for the implementation of the Data
Model is a consideration of the underlying encoding specification.
The following table presents the representable values in base-10 following the above rules:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 383
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This data type employs scalars to represent context-specific values available from an enumerated
set. This data type is nullable.
External standards may be referenced as well as listing the values for the external standard. If the
external standard adds values after a specification is adopted, those new values are allowed, but
optional. Enumeration values are defined in a table with a Conformance column. When the defini
tion of an enumeration is missing a Conformance column, all values SHALL be considered to have
mandatory conformance.
All mandatory readable enumeration values SHALL be understood by the client. All mandatory
writable enumeration values SHALL be understood by the server.
If a client indicates an enumeration value to the server, that is not supported by the server, because
it is optional, deprecated, or a new value unrecognized by a legacy server, then the server SHALL
generate a general constraint error, unless the cluster defines alternate behavior, such as:
• It is RECOMMENDED that a client be as strict as possible by indicating only values that a server
supports.
Note that indicated enumerations MAY comprise only a strict subset of the required enumerations.
For example: If a server implementation can never enter an enumerated state XYZ, then the
value XYZ would never be indicated, therefore the server would not have to support XYZ.
7.18.1.6. Single-Precision
The single precision number format is based on the IEEE 754-2019 single precision (32-bit) format
for binary floating-point arithmetic.
Page 384 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The double precision number format is based on the IEEE 754-2019 double precision (64-bit) format
for binary floating-point arithmetic.
The format and interpretation of values of this data type follow the same rules as given for the sin
gle precision data type, but with wider mantissa and exponent ranges.
The octet string data type defines a sequence of octets with a finite octet count from 0 to 65534. It is
RECOMMENDED to define a constraint on the maximum possible count.
7.18.1.9. List
A list is defined as a collection of entries of the same data type, with a finite count from 0 to 65534.
A cluster specification may define further constraints on the maximum possible count. The list
entry data type SHALL be any defined data type, except a list data type, or any data type derived
from a list.
The quality columns for a list definition are for the list.
The list entries are indicated with an index that is an unsigned integer starting at 0 (zero). The
maintained order of entries, by index, is defined in the cluster specification, or undefined. Data that
is defined as a list is indicated with "list[X]" where X is the entry type. The data type of the list entry
has its own qualities, constraints, and conformance.
To define qualities for the list entry data type, make the list entry data type a defined local derived
data type, with a table including the columns required to define and constrain the data type.
Month string 3 F …
NameString
MonthNumber uint8 1 to 12 …
Used Here:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 385
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
0 MonthNames list[Month 12 N …
NameString]
There is an inline shortcut to define the list entry data type constraints. See List Constraints.
For example:
It is RECOMMENDED to put a maximum constraint on the list and list entry data types.
It is RECOMMENDED that a list entry data type be a struct, to enable the addition of new fields to
the list’s entries in the future.
• The cluster data version SHALL be incremented when the list order or entries change.
• The list SHALL support reporting, updates, and/or deletion of one or more entries.
• If the list is writable, it SHALL support writing or deleting the entire list.
• If the list is writable, it SHALL support updating one or more individual entries by indicating an
index per updated entry.
• If the list is writable, it SHALL support deleting one or more individual entries by indicating an
index per deleted entry.
• If the list is writable, it SHALL support adding one or more individual entries.
• A list MAY define an entry that is a struct that is fabric-scoped (see Fabric-Scoped Quality).
Fabric-Scoped List
• A fabric-scoped list SHALL define an entry data type that is a struct, which SHALL also be fab
ric-scoped (see Fabric-Scoped Struct).
A fabric-scoped list supports a fabric-filter that filters the view of the list for read and write interac
tions. This filter simplifies client side logic that does not want to read or write fabric data that is not
associated with the accessing fabric.
• An interaction upon a list with fabric-filtering SHALL only indicate and access entries where the
associated fabric matches the accessing fabric, and all other entries SHALL be ignored.
Page 386 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Fabric-filtered list entries SHALL be in the same order as the full list.
• Fabric-filtered list entries SHALL be indexed from 0 with no gaps, as if the other entries did not
exist.
• When writing to a fabric-scoped list, the write interaction SHALL be on an accessing fabric, oth
erwise, the write interaction SHALL fail (see Interaction Model).
• For a read interaction on a list, with fabric-filtering disabled, the list SHALL be reported as a full
list with all entries.
For example: A fabric-scoped full list with each entry having an associated FabricIndex and
Value field:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 387
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
7.18.1.10. Struct
A struct is a sequence of fields of any data type. Individual fields are identified by a field ID of
unsigned integer, starting at 0 (zero), for the first field.
• Access, conformance and persistence qualities, when not not explicitly defined, SHALL be inher
ited from the instance of the struct itself.
• If a field of the struct is writable, the struct SHALL support updating the field.
• Because of optional struct field conformance, instances of the same struct MAY support multiple
'flavors' of the same struct data type, but with a different set of optional fields.
Fabric-Scoped Struct
• A fabric-scoped struct SHALL only be defined and occur as an entry in a fabric-scoped list.
• A fabric-scoped struct SHALL support the global FabricIndex field of type fabric-index, which
indicates the associated fabric of the struct, or indicates that there is no associated fabric.
• The table that defines fields of a fabric-scoped struct SHALL NOT list the global FabricIndex
field, which is a global field and defined implicitly.
• The global FabricIndex field of a fabric-scoped struct SHOULD NOT be indicated in a write inter
action.
• The global FabricIndex field of a fabric-scoped struct SHALL be ignored in a write interaction.
• When a write interaction creates a fabric-scoped struct entry (in a fabric-scoped list), the server
SHALL implicitly load the accessing fabric-index into the global FabricIndex field of the struct.
• A fabric-scoped struct MAY be defined with some fields that are fabric-sensitive.
• For interactions on a fabric-scoped struct that report back data, fabric-sensitive struct fields
SHALL NOT be indicated when reporting data back to the client, when the struct has an associ
ated fabric, and it is not the accessing fabric.
These data types are commonly used and derived from the base data types. If a data type is used by
more than one cluster specification, then it SHALL be listed here as a derived data type. Such com
mon data types can then be reused instead of redefined in each cluster specification.
Page 388 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Relative
Time
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 389
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Enumeration
Identifier
Index
Counter
Page 390 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
String
Address
The Time of Day data type SHALL be a struct with these fields: Hours, Minutes, Seconds, and Hun
dredths.
The hours field represents hours according to a 24-hour clock. The range is from 0 to 23. The
minutes field represents minutes of the current hour. The range is from 0 to 59. The seconds field
represents seconds of the current minute. The range is from 0 to 59. The hundredths field repre
sents 100ths of the current second. The range is from 0 to 99. A value of null in any subfield indi
cates an unused subfield. If all subfields have a value of null, this indicates a null time of day.
7.18.2.2. Date
The year - 1900 subfield has a range of 0 to 255, representing years from 1900 to 2155. The month
field has a range of 1 to 12, representing January to December. The day of month field has a range
of 1 to 31. Note that values in the range 29 to 31 may be invalid, depending on the month and year.
The day of week field has a range of 1 to 7, representing Monday to Sunday. A value of null in any
subfield indicates an unused subfield. If all subfields have a value of null, this indicates a null date.
This type represents an offset, in microseconds, from 0 hours, 0 minutes, 0 seconds, on the 1st of
January, 2000 UTC (the Epoch), encoded as an unsigned 64-bit scalar value.
This offset is the sum of two parts: time elapsed, not counting leap-seconds, and a local time offset.
The local time offset MAY include a timezone offset and a MAY include a DST offset.
Any use of this type SHALL indicate how the associated local time offset is determined in the spe
cific context of that use. This MAY be done, for example, by simply saying the time is a UTC time, in
which case the local time offset is 0.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 391
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
1. The value can be converted to a local clock date/time (year, month, day, hours, minutes, sec
onds, microseconds) by treating the local time offset as 0 and finding the UTC (year, month, day,
hours, minutes, seconds, microseconds) tuple that corresponds to an elapsed time since the
epoch time equal to the given value. The value then represents that tuple, but interpreted in the
specific timezone and DST situation associated with the value. This procedure does not require
knowing the local time offset of the value.
2. The value can be converted to a UTC time by subtracting the associated local time offset from
the Epoch Time value and then treating the resulting value as an elapsed count of microseconds
since the epoch time.
• 2000-06-01T00:00Z if the associated local time offset is 0 (i.e. the value is in UTC).
• 2000-05-31T23:00Z if the associated local time offset is +1 hour (e.g. the CET timezone, without
daylight savings).
• 2000-06-01T04:00Z if the associated local time offset is -4 hours (e.g. the EDT time zone, which
includes daylight savings).
Timestamps from NTP also do not count leap seconds, but have a different epoch. NTP 128-bit
timestamps consist of a 64-bit seconds portion (NTP(s)) and a 64-bit fractional seconds portion
(NTP(frac)). NTP(s) at 00:00:00 can be calculated from the Modified Julian Day (MJD) as follows:
Epoch Time has a microsecond precision, and this precision can be achieved by using the most sig
nificant 32 bits of the fractional portion (NTP(frac32)). Conversion between the 128-bit NTP
timestamps and a UTC Epoch Time in Microseconds is as follows:
UTC Epoch Time = (NTP(s) - 0xBC17C200)*10^6 + ((NTP(frac32)*10^6) / 2^32) where all numbers are
treated as unsigned 64-bit integers and the division is integer division.
This type has the same semantics as Epoch Time in Microseconds, except that:
Page 392 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This type is employed where compactness of representation is important and where the resolution
of seconds is still satisfactory.
System time in microseconds is an unsigned 64-bit value representing the number of microseconds
since boot.
A Percentage is an unsigned 8-bit value representing percent with a resolution of 1%. The range is
from 0 (0%) to 100 (100%).
A Percentage 100ths is an unsigned 16-bit value representing percent with a resolution of 0.01%.
The range is from 0 (0.00%) to 10000 (100.00%).
7.18.2.8. Fabric-Index
This is an index that maps to a particular fabric on the node, see Fabric-Index. It is used for:
7.18.2.9. Node ID
A 64-bit ID for a node scoped and unique to a particular fabric as indicated by an accompanying
fabric-index adjacent instantiation.
7.18.2.10. Group ID
A 16-bit ID for a group scoped to a particular fabric as indicated by an accompanying fabric index
adjacent instantiation.
7.18.2.12. Vendor ID
A Vendor ID.
Device Type IDs SHALL be a Manufacturer Extensible Identifier. The specifics of its representation
are described in Data Model Types.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 393
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
7.18.2.14. Cluster ID
Cluster IDs SHALL be a Manufacturer Extensible Identifier. The specifics of its representation are
described in Data Model Types.
7.18.2.15. Attribute ID
Attribute IDs SHALL be a Manufacturer Extensible Identifier. The specifics of its representation are
described in Data Model Types.
7.18.2.16. Field ID
Field IDs SHALL be a Manufacturer Extensible Identifier. The specifics of its representation are
described in Data Model Types.
7.18.2.17. Event ID
Event IDs SHALL be a Manufacturer Extensible Identifier. The specifics of its representation are
described in Data Model Types.
7.18.2.18. Command ID
Command IDs SHALL be a Manufacturer Extensible Identifier. The specifics of its representation
are described in Data Model Types.
7.18.2.19. Action ID
7.18.2.20. Transaction ID
An identifier for a transaction as defined in the Interaction Model specification, see Transaction ID.
An enumeration value that means a success or error status. A status code is indicated as a response
to an action in an interaction (see Interaction Model).
Page 394 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• a common status code from the set defined in the Interaction Model status code table.
The following table defines the the enumeration ranges for status codes.
Status codes in an undefined range, or status codes undefined within a range are reserved and
SHALL NOT be indicated.
7.18.2.23. Priority
This is an enumeration of priority used to tag events and possibly other data. The data type does
not define any particular ordering among the values. Specific uses of the data type may assign
semantics to the values that imply an ordering relationship.
The character string data type is derived from an octet string. The octets SHALL be characters with
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 395
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
UTF-8 encoding. An instance of this data type SHALL NOT contain truncated code points.
If at least one of the code points within the string has value 31 (0x1F), which is Unicode INFORMATION
SEPARATOR 1 and ASCII Unit Separator, then any client making use of the string SHALL only consider
the code points that appear before such an INFORMATION SEPARATOR 1 as being the textual informa
tion carried by the string. The remainder of the character string after a first INFORMATION SEPARATOR
1 is reserved for future use by this specification.
Note that the character string type is a bounded sequence of characters whose size bound format is
not specified in the data model, but rather a property of the underlying encoding. Therefore, no
assumptions are to be made about the presence or absence of a length prefix or null-terminator
byte, or other implementation considerations.
7.18.2.27. IP Address
The IPv4 address data type is derived from an octet string. The octets SHALL correspond to the four
octets in network byte order that comprise an IPv4 address represented utilizing quad-dotted nota
tion.
Examples of encoding:
The IPv6 address data type is derived from an octet string. The octets SHALL correspond to the full
16 octets that comprise an IPv6 address as defined by RFC 4291. The octets SHALL be presented in
network byte order.
Examples of encoding:
The IPv6 prefix data type is derived from an octet string. The octets SHALL be encoded such that:
• The first octet SHALL encode the prefix length, in bits, in the range of 0 to 128.
• The subsequent octets SHALL encode the contiguous leftmost bits of the prefix, in network byte
order, with left justification, such that the first bit of the prefix is in the most significant bit of
Page 396 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
the first octet. Encoding SHOULD use the least number of bytes to encode the prefix but MAY
include unused trailing zeroes.
Examples of encoding:
The Hardware Address data type SHALL be either a 48-bit IEEE MAC Address or a 64-bit IEEE MAC
Address (e.g. EUI-64). The order of bytes is Big-Endian or display mode, where the first byte in the
string is the left most or highest order byte.
A Manufacturer Extensible Context (MEC) contains a collection of items which MAY be extended by
manufacturers. Each item in a MEC has a source which is either Standard, Scoped or a particular
Manufacturer Code (MC).
• A Scoped source adopts the same source as that of the cluster that contains its definition.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 397
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Item 0
Standard Item 1
Item 2
Item 0
Scoped Item 1
Item 2
MEC
Item 0
MC 1 Item 1
Item 2
Item 0
MC 2 Item 1
Item 2
A Manufacturer Extensible Identifier (MEI) identifies an item in an MEC and has no meaning
beyond the context of that MEC.
7.19.2.1. Encoding
The MEI prefix encodes the source Vendor ID and follows the same rules as outlined in Table 1,
“Vendor ID Allocations”, with the exception that a Scoped source is encoded using the same prefix
as a Standard source. Consequently, a given MEI SHALL NOT permit both Standard and Scoped
source types given the ambiguity in telling them apart.
Page 398 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Prefix Source
0x0000 Standard OR Scoped
Suffix Item
Manufacturer-Specific Cluster:
0xFC00 - 0xFFFE
For example:
MEI Description
0x0000_0000 Standard/Scoped item 0
0x0000_0001 Standard/Scoped item 1
0x0000_0002 Standard/Scoped item 2
0x0000_FFFE Standard/Scoped item 65534
0x0001_0000 MC 1 item 0
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 399
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
MEI Description
0x0001_0001 MC 1 item 1
0x0001_0002 MC 1 item 2
0x0001_FFFE MC 1 item 65534
0x0002_0000 MC 2 item 0
0x0002_0001 MC 2 item 1
0x0002_0002 MC 2 item 2
0x0002_FFFE MC 2 item 65534
0xFFFF_0000 Invalid
A manufacturer extensible context MAY be extended with items from any manufacturer. Such
extensions SHALL be identified using an MEI with prefix for that particular manufacturer, and
SHALL NOT use a standard/scoped prefix.
• An extended cluster MAY instantiate a struct definition defined in the standard cluster.
• A struct that has been extended with new fields SHALL have the same definition in all instances
of that struct within a given cluster definition.
• A defined element (struct, command, event) SHALL NOT be re-used or instantiable in a different
cluster (except in extended clusters)
Suppose the standard provides cluster ABCD which contains related counters and their recent statis
tics. The counter values are available as attributes 1 and 2, which are reset daily. The statistics are
grouped into a SummarizedStats struct, available as attributes 3 and 4, and track summary statistics
for each counter over a recent period (last month). Each instance of the statistics struct has fields 1,
2, and 3, for minimum, maximum, and mean values for that period.
Suppose manufacturer A extends the standard cluster with additional statistics (red below). A adds
lifetime counts as attributes 0x000A_0001 and 0x000A_0002, which are never reset. A also adds quar
tiles Q1, Q2, and Q3 to the standard SummarizedStats struct, as fields 0x000A_0001, 0x000A_0002, and
0x000A_0003. These quartiles are available for all existing instances of the standard struct, such as
standard attributes 3 and 4.
Suppose manufacturer B, a partner of manufacturer A, extends the standard cluster further (green
below). B wishes to add instances of the standard statistics struct, as attributes 0x000B_0001 and
0x000B_0002, to track summary statistics for each counter, over a different recent period (last year
instead of last month). Since manufacturer A had already extended the standard statistics struct,
the instantiation of that struct will contain both standard and A’s fields. If B desires to create a new
Page 400 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
version of that statistics struct without A’s changes, it would have to declare a new definition of that
struct with new fields in it.
0x000A_0001 Q1 count
0x000A_0002 Q2 count
0x000A_0003 Q3 count
0x000A_0001 Q1 count
0x000A_0002 Q2 count
0x000A_0003 Q3 count
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 401
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
0x000A_0001 Q1 count
0x000A_0002 Q2 count
0x000A_0003 Q3 count
0x000A_0001 Q1 count
0x000A_0002 Q2 count
0x000A_0003 Q3 count
0x000A_0001 Q1 count
0x000A_0002 Q2 count
0x000A_0003 Q3 count
0x000A_0001 Q1 count
0x000A_0002 Q2 count
0x000A_0003 Q3 count
0x0000_0002 Precision
0x0000_0003 Accuracy
Page 402 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Description
7.19.4. Discoverability
The Descriptor Cluster reports the device types and clusters on a node’s endpoints, whether they
are standard or from a particular manufacturer.
For example, if a node supports cluster 0x000C_ABCD on endpoints 1 and 2, that information is avail
able in the Descriptor Cluster.
The Read Interaction provides a means to read the contents of all or part of a cluster.
For example, reading cluster 0x0000_ABCD on endpoint 1 might return mandatory attribute
0x0000_0001, optional attribute 0x0000_0009, and MS attributes 0x000A_0001 and 0x000A_0002.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 403
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 404 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Revision Description
This is part of a package of Data Model specifications that are agnostic to underlying layers (encod
ing, message, network, transport, etc.). Each specification below may be independently maintained.
This package, as a whole, shall be independently maintained as agnostic and decoupled from lower
layers. This package may be referenced by inclusion in vertical protocol stack specifications.
Data Model Defines first order elements and namespace for endpoints, clusters,
attributes, data types, etc.
System Model Defines relationships that are managed between endpoints and clusters.
The original baseline for this section comes from the Zigbee Cluster Library [ZCL] Chapter 2 relat
ing to ZCL commands and interactions. This specification addresses these gaps determined by the
Data Model Tiger Team:
• Synchronized Reporting
• Events
• Interception attack
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 405
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
8.1.4. Purpose
The purpose is to define a layer that abstracts interactions from other layers, including security,
transport, message format & encoding. The intent is that this document will align with current clus
ter specifications in the ZCL (revision 8 at this time), and still support cluster evolution over time.
8.1.5. Glossary
Page 406 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
8.2. Concepts
Relationships between devices are established using data model elements and interactions defined
here. Please see the System Model specification for more information.
An action is a single logical communication from a source node to one or more destination nodes.
An action is conveyed by one or more messages.
The actual construction and encoding of messages is left to the message layer, which is the layer
below this layer.
• The protocol layers below this layer MAY have constraints that only support a subset of the
functionality described here.
Examples:
8.2.1. Path
A path is used to indicate one or more element instances in the data model. The path has the form
as described in Augmented Backus–Naur:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 407
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• An existent path is a concrete path that indicates a single existing instance on the node indi
cated in the path.
A group path is a path that targets endpoints that are members of a group, using group ID, instead
of indicating a node and endpoint.
• A group path SHALL include a group ID that indicates zero or more endpoints that are members
of the group.
• A group path MAY include a wildcard cluster indication and therefore also be a Wildcard Path.
A wildcard path is a path with a wildcard endpoint indication and/or wildcard cluster indication.
• A wildcard path MAY include a group ID and therefore also be a Group Path.
• A request path SHALL be either a concrete path, a group path or a wildcard path.
Page 408 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Many actions specify this process step to expand a request path into a list of existent paths. This
process does not check access qualities, such as read or write access, privileges, or fabric qualities.
• If the path is a Group Path, it SHALL be replaced with a list of paths, one for each endpoint that
is a member of the group on the target node.
• Each path in the list that is a Wildcard Path SHALL be replaced with a complete list of existent
paths, which are the permutations from substituting the wildcarded elements with existent ele
ments.
An attribute path is used to indicate all or part of a cluster attribute. An attribute path may indicate
deeper parts of collection type data.
If the attribute data type is a collection data type, such as a struct or list, then the path may indicate
deeper nested parts of the data.
The nesting of collection data is conceptually unlimited, but the actual structure of the data is well-
defined in the cluster specification. Attribute data structures are similar to data structures sup
ported in a programming language (see Data Types in the Data Model specification). An attribute
path is conceptually similar to the path or dot notation used to reference programming language
data structures.
A field ID for structure data or an entry index for list data are currently the only options in an
attribute path, after the attribute ID itself.
• The <attribute> component of an attribute path SHALL have the following form:
*
<nesting level> occurs zero or more times as defined in a cluster specification.
The endpoint component is subject to wildcard expansion, as constrained in particular actions and
contexts.
• The <command> component of a command path SHALL have the following form:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 409
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• The endpoint field is wildcardable, though this may be disallowed in the various uses of the
Command Path in different actions and contexts.
• The <event> component of an event path SHALL have the following form:
Please see Event for a description of a cluster event and event data fields.
The endpoint, cluster and event ID fields are wildcardable. These are further constrained in the
various uses of the Event Path in different actions and contexts.
8.2.2. Interaction
An interaction is a sequence of one or more transactions between nodes, that occurs in the context
of an accessing fabric, or no fabric.
How a fabric, or no fabric, context is established for an interaction, is not defined here.
The first transaction (of an interaction) starts with the first action from the node called the initia
tor. The first action destination is called the target, which is either a node or group. For the remain
der of the interaction, the initiator remains the same.
An interaction may be a single transaction (e.g. Read). An interaction may be an unbounded num
ber of transactions (e.g. Subscribe).
Page 410 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
8.2.3. Transaction
• An action in a transaction SHALL have a target destination that is either a single node, called a
unicast action or a group of nodes, called groupcast action.
8.2.3.1. Transaction ID
The transaction ID is a field present in all actions (see Common Action Information) that indicates
the logical grouping of those actions.
• All following actions in a transaction SHALL have the same transaction ID as the first action.
• A groupcast action SHALL end a transaction and any subsequent action in the interaction
SHALL NOT use the same transaction ID.
Transaction Description
8.2.4. Action
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 411
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The message layer below this interaction layer encodes an action into one or more messages and
delivers the messages to a destination. This interaction layer delivers action information to the mes
sage layer by passing action information, through some interface (not defined here). The message
layer delivers action information, from an incoming message, to this interaction layer.
In all action descriptions in this specification, action information (or information blocks), refers to
the information that is transferred to and from the message layer.
There is no designation of mandatory or optional for such information because the implementation
is undefined. However, some information fields may be omitted, meaning the information may not
be needed for all actions.
Page 412 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Each generated action SHALL provide the action information above to the message layer.
• If the action is the first action of a transaction, the TransactionID SHALL be a value that
uniquely identifies the transaction on the source of the action.
• If the action is a following action, the TransactionID SHALL be the same as the TransactionID in
the first action of the transaction.
• If the action is a unicast following action the DestinationNode SHALL be the SourceNode of the
previous action in the transaction.
◦ Upon receipt of this action information, the message layer SHALL construct and convey one
or more messages for this action to the target.
◦ If the message layer encounters an error that prevents the complete construction, encoding
and/or conveyance of the action, then the message layer SHALL inform this layer of the
error.
◦ If the action is not completely conveyed, the action, with the associated transaction and
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 413
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
▪ If the failed action is NOT a Status Response action, this layer SHOULD, if possible, sub
mit a Status Response action to the message layer, with a status code of FAILURE and the
same TransactionID.
• If the message layer receives a valid message for an action, it SHALL be delivered to this layer
with the action information above.
• If this layer receives a message for an action that is not expected semantically, has invalid action
information, or has an error not described in this specification, a Status Response action with
an INVALID_ACTION Status Code SHALL be generated as defined in Status Response Action, and
the associated transaction and interaction SHALL terminate.
• If during the receipt and decoding of messages for an action by the message layer, an error
occurs that prevents a complete receipt of a valid action, then the message layer SHALL inform
this layer of the error.
◦ When informed of an error from a message layer, the action, with the associated transaction
and interaction, SHALL terminate.
• If the action is not able to be executed due to insufficient resources, a Status Response SHALL be
sent to the initiator with a status code of either:
◦ PATHS_EXHAUSTED if there are not enough resources to support the number of paths in the
action information,
◦ and the number of paths in the action exceeds the number of paths that is guaranteed to be
supported for the action (see Interaction Model Limits),
◦ BUSY in all other recoverable resource exhausted situations (e.g. if too many Read interac
tions are already in progress),
It is implementation specific whether the message layer submits logical parts of an action to this
layer as it receives and processes each message. The only requirement above is that all the informa
tion, or an error, be submitted to this layer.
Global common interaction Status Codes are defined in this document in Status Codes. Cluster spe
cific Status Codes are defined in each cluster specification.
This action is defined as a following action for some actions, or is generated when there is an
unspecified transaction or interaction error. This action conveys status to this layer or conveys sta
Page 414 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
tus from this layer to another node. The status indicates success or an error as part of a transaction
or interaction.
Please see Common Action Behavior for behavior common to all actions. The specific action infor
mation for this action is shown below.
• If this action is generated with an error Status, the current transaction and interaction SHALL
be terminated.
• This action SHALL only be generated with an error Status when an error occurs as a result of
the immediate previous received action in the current transaction.
• This action’s DestinationNode field SHALL be the immediate previous received action’s
SourceNode.
• This action’s TransactionID field SHALL be the immediate previous received action’s Transac
tionID.
• If there is no well-defined Status Code for an error or exception, the Status Code of FAILURE
SHALL be used.
• Upon receipt of this action with a success Status Code, this layer SHALL consume the status and
continue the current transaction and interaction.
• Upon receipt of this action with an error Status, this layer SHALL terminate the current transac
tion and interaction.
• Upon receipt of this action with an error Status, this layer SHALL submit the error to the layer
above.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 415
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Read Request action is the first action of a Read transaction (and interaction). Please see Common
Action Behavior for behavior common to all actions. The specific action information for this action
is shown below.
• A valid AttributePathIB for attribute data SHALL be one in the table Valid Read Attribute Paths.
• A valid EventPathIB for an event SHALL be one in the table Valid Event Paths.
• Upon receipt of this action, this layer SHALL generate a Report Data action to the subscriber, as
defined in Incoming Read Request and Subscribe Request Action Processing.
Page 416 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• If the Report Data was generated successfully, it SHALL be submitted to the message layer.
This action is either a first action in a Report transaction (as part of a Subscribe interaction), or a
following action to a Read Request action or Subscribe Request action.
Please see Common Action Behavior for behavior common to all actions. The specific action infor
mation for this action is shown below.
• Each path indicated by the Report Data action SHALL be a Concrete Path.
• Upon receipt of a Read Request action or Subscribe Request action, this process SHALL be fol
lowed:
◦ If the path does not conform to Valid Read Attribute Paths then:
▪ a Status Response with the INVALID_ACTION Status Code SHALL be generated as defined
in Status Response Action,
▪ Else if the path indicates an attribute or attribute data field that is unsupported, an
AttributeStatusIB SHALL be generated with the UNSUPPORTED_ATTRIBUTE Status Code
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 417
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
with the Path field indicating the first unsupported data field (not the entire attribute
data path).
▪ Else if the path indicates attribute data that is not readable, an AttributeStatusIB SHALL
be generated with the UNSUPPORTED_READ Status Code.
▪ Else if reading from the attribute in the path requires a privilege that is not granted to
access the cluster in the path, an AttributeStatusIB SHALL be generated with the UNSUP
PORTED_ACCESS Status Code.
◦ Else perform Request Path Expansion and process each expanded existent path as follows:
▪ If the path indicates attribute data that is not readable, then the path SHALL be dis
carded.
▪ Else if reading from the attribute in the path requires a privilege that is not granted to
access the cluster in the path, then the path SHALL be discarded.
• If no error free existent paths remain, then AttributeRequests are considered empty.
◦ If the DataVersionFilters field indicates DataVersionFilterIB entries with a Path field that
matches the path, where all matching entries have a DataVersion field that matches the data
version of the cluster instance in the path, then the path SHALL be ignored
◦ Else an AttributeDataIB SHALL be generated with the Data and Path as indicated by the path
being processed.
▪ If the path indicates a cluster event that is not supported, an EventStatusIB SHALL be
generated with the UNSUPPORTED_EVENT Status Code.
▪ Else if reading the event in the path requires a privilege that is not granted to access the
cluster in the path, an EventStatusIB SHALL be generated with the UNSUPPORTED_AC
CESS Status Code.
◦ Else if the path does not conform to Valid Event Paths then:
▪ a Status Response with the INVALID_ACTION Status Code SHALL be generated as defined
in Status Response Action,
Page 418 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
◦ Else perform Request Path Expansion and process each expanded existent path as follows:
▪ If reading the event in the path requires a privilege that is not granted to access the clus
ter in the path, then the path SHALL be discarded.
• If no error free existent paths remain, then EventRequests are considered empty.
• Else for each unique node indicated in the remaining existent paths:
◦ Each event record currently queued in the node, in order from lowest to highest event num
ber, SHALL generate an EventDataIB except for any of the following:
▪ If the node indicated matches the Node information field of an EventFilterIB from Event
Filters, and the event number is less than the EventMin field in the EventFilterIB.
▪ If the event record path does not match a path in the remaining existent event paths.
▪ If the event record path is fabric-sensitive, and the associated fabric does not match the
accessing fabric.
◦ Each information block generated from processing EventRequests SHALL be added to the
EventReports action field in the Report Data action.
▪ a Status Response Action with the INVALID_ACTION Status Code SHALL be sent to the
initiator,
◦ Else a SubscriptionId which uniquely identifies this subscription on the publisher SHALL be
indicated in the Report Data action
• This action SHALL NOT include any nested attribute data field or nested event data field that is
defined as fabric-sensitive, if the associated fabric for that field does not match the accessing
fabric for the interaction.
• SuppressResponse MAY be set to TRUE for a Report Data action that initiates a Report transac
tion that conveys an empty list of AttributeReports and EventReports, otherwise:
◦ SuppressResponse SHALL be set to TRUE for a Report Data action that is part of a Read
transaction.
◦ SuppressResponse SHALL be set to FALSE for a Report Data action that is part of a Subscribe
transaction.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 419
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
◦ part of a Subscribe interaction as the first action of each synchronized Report Transaction.
• Upon receipt of this action, if SuppressResponse is TRUE, a response SHALL NOT be generated;
◦ The Status Response Action SHALL be submitted to the message layer to deliver to the
source of this action.
Transaction Description
This interaction allows a subscriber to create a subscription with a publisher on another node for
the purposes of receiving data reports from that publisher thereafter, for the duration of the sub
scription. This allows the subscriber to maintain a coherent snapshot, or twin, of the subscription
data as it currently exists on the publisher. The session itself is kept synchronized on both sides
through the receipt of timely data reports with the intervals defined by a negotiated maximum
interval subscription parameter.
This interaction is started when the initiator (or subscriber), wishes to subscribe to one or more
attributes or events located on a target node (the publisher). The attribute data and events
requested in the Subscribe transaction are the subscription data.
This interaction starts by creating a subscription with a Subscribe transaction, which primes the
subscriber with initial subscription data. The rest of the subscription is a sequence of Report trans
actions initiated by the publisher as defined by parameters of the subscription. Each Report trans
action in a subscription reports changes to the subscription data.
To keep the subscription alive, a Report transaction is sent from the publisher every maximum
interval, or possibly more frequently.
Page 420 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Report transactions from the publisher are rate limited by the minimum interval subscription para
meter, as negotiated between the subscriber and publisher.
The Subscribe Request action provides boundary values (floor or ceiling) for the publisher to deter
mine the final minimum and maximum interval parameters of the subscription. The time units for
these intervals are seconds.
• The Subscribe interaction SHALL start with one Subscribe transaction followed by a periodic
sequence of Report transactions (see Report Transaction).
• A Report transaction SHALL be initiated by a Report Data action as part of an active subscrip
tion for a Subscribe interaction.
• All Report Data actions in a Subscribe interaction SHALL have the same SubscriptionId parame
ter value that uniquely identifies the interaction among all subscriptions on the publisher.
• Each Report transaction in a subscription SHALL report the path for each delta change in the
subscription data, including the attribute data that has changed and/or the event that has
occurred, since the last Report transaction, with the exception of attribute data with the
Changes Omitted quality.
• Each Report transaction initiated by the publisher SHALL complete successfully before another
Report transaction is initiated by the publisher.
• Each Report transaction SHALL NOT be initiated by the publisher until the minimum interval
has expired since the last Report transaction in the subscription.
• Attribute changes SHALL be delivered as soon as possible, taking into account the minimum
interval.
• Events SHALL always be queued and buffered. Each Report containing events SHALL deliver
queued events without reordering the queue. Queued events MAY be opportunistically deliv
ered whenever some other activity triggers a Report transaction. Absent any such triggers,
queued events SHALL be delivered in a Report transaction generated at the maximum interval.
When the IsUrgent flag is false or absent for a particular path in the EventPathIB, event queue
ing does not automatically trigger a Report transaction. When the IsUrgent flag is true for a par
ticular event path in the EventPathIB, the queueing of such an event SHALL trigger a Report
transaction for this subscription, subject to all Report transaction rules. This Report transaction
will report the events that have been queued by the time the Report transaction happens.
• If the subscriber does not receive a Report transaction within the maximum interval from the
last Report Data, the subscriber SHALL terminate the Subscribe interaction.
• If a node receives a Report Data action with an inactive SubscriptionId, a Status Response action
SHALL be sent with an INACTIVE_SUBSCRIPTION Status Code.
• If the publisher does not receive a Status Response action with SUCCESS, in response to a Report
Data action with SuppressResponse set to FALSE, the publisher SHALL terminate the Subscribe
interaction.
• The subscriber MAY terminate the subscription and interaction by responding with a Status
Response action with an INACTIVE_SUBSCRIPTION Status Code.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 421
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• The publisher MAY terminate the subscription and interaction by not generating a Report trans
action within the maximum interval.
Subscribe Request action is a first action. Please see Common Action Behavior for behavior com
mon to all actions. The specific action information for this action is shown below.
Page 422 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• A Subscribe Request action SHALL be unicast from the subscriber to the publisher.
• This action SHALL be generated to initiate a Subscribe interaction (see Subscribe Interaction).
• This action SHALL include a requested ceiling (highest) maximum interval value as MaxInter
valCeiling.
• This action SHALL include a requested floor (lowest) minimum interval value as MinInter
valFloor.
• A valid AttributePathIB SHALL be one in the table Valid Read Attribute Paths.
• If KeepSubscriptions is FALSE, all existing or pending subscriptions on the publisher for this
subscriber SHALL be terminated.
• This layer SHALL process the Subscribe Request action as defined in Incoming Read Request
and Subscribe Request Action Processing.
Subscribe Response action is the last following action in a Subscribe Transaction. This action acti
vates the subscription. Please see Common Action Behavior for behavior common to all actions. The
specific action information for this action is shown below (see Subscribe Interaction).
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 423
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Upon receipt of a successful Status Response action from the subscriber for the Report Data
action that primes the subscription, this action SHALL be generated and submitted to the mes
sage layer to send to the subscriber.
• The SubscriptionId value SHALL be the same as the one used in Report Data generated to prime
this subscription.
• The publisher SHALL compute an appropriate value for the MaxInterval field in the action. This
SHALL respect the following constraint: MinIntervalFloor ≤ MaxInterval ≤ MAX(SUBSCRIPTION_
MAX_INTERVAL_PUBLISHER_LIMIT, MaxIntervalCeiling)
• Upon sending a Subscribe Response action, the subscription, as indicated by the SubscriptionId,
SHALL become active on the publisher with a min interval equal to the requested MinInter
valFloor and a max interval equal to the MaxInterval field in the response.
• Upon receipt of a Subscribe Response action, the subscription, as indicated by the Subscrip
tionId, SHALL become active to the subscriber.
• The paths to the subscription data SHALL only be error free existent paths generated from
processing the Subscribe Request.
The EventFilters and DataVersionFilters fields in the Subscribe Request are one time parameters for
the priming of the subscription.
• Subsequent ReportData actions, as part of the subscription, SHALL include the latest:
◦ DataVersion associated with each cluster where there are data changes.
• The FabricFiltered parameter from the Subscribe Request SHALL remain in effect for all data
reported during the interaction.
• Upon subscription activation, the minimum and maximum interval parameters SHALL take
effect to determine the timing and expectation of subsequent Report transactions.
Page 424 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 425
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• If there is a preceding successful Timed Request action, the following Write Request action
SHALL be received before the end of the Timeout interval.
• If there is a preceding successful Timed Request action, the Timeout interval SHALL start when
the Status Response action acknowledging the Timed Request action with a success code is sent.
• If there is a preceding successful Timed Request action, the Write Request action SHALL be uni
cast.
• If there is not a preceding successful Timed Request action, the Write Request action MAY be
groupcast.
• A client MAY choose to use a Timed Write transaction even if the attribute does not have the
Timed Interaction quality.
• The server SHALL support a Timed Write transaction for all writeable attributes.
This action is either the first action of the Write transaction or it follows a successful Timed Request
action. Please see Common Action Behavior for behavior common to all actions. The specific action
information for this action is shown below.
• This action SHALL be generated as the first action in a Write transaction, or following a Timed
Request action and successful Status Response action.
• If this action is part of a Timed Write transaction, TimedRequest SHALL be TRUE, else FALSE.
• If this action is not able to be executed because the maximum supported number of Write inter
actions is already in progress, then a Status Response action with the BUSY Status Code SHALL
be submitted to the message layer and this interaction SHALL terminate.
• If this action is part of a Timed Write transaction, and the Timeout has expired from the preced
ing Timed Request action, then a Status Response action with the TIMEOUT Status Code SHALL
be submitted to the message layer and this interaction SHALL terminate.
Page 426 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• If this action is part of a Timed Write transaction, and this action has TimedRequest set to
FALSE, then a Status Response action with the TIMED_REQUEST_MISMATCH Status Code SHALL
be submitted to the message layer and this interaction SHALL terminate.
• If this action is marked with TimedRequest as TRUE but this action is not part of a Timed Write
transaction (i.e. there was no corresponding Timed Request action prior to it matching the same
TransactionID), then a Status Response action with the TIMED_REQUEST_MISMATCH Status
Code SHALL be submitted to the message layer and this interaction SHALL terminate.
See Outgoing Write Response Action for building a Write Response action and executing the Write
Request action.
• If this action was unicast and SuppressResponse is FALSE, a Write Response action SHALL be
generated and submitted to the message layer to send to the initiator, otherwise no Write
Response SHALL be sent.
This action is a following action for a Write Request action. Please see Common Action Behavior for
behavior common to all actions. The specific action information for this action is shown below.
• Each request path in the WriteRequests field of a Write Request SHALL be processed as follows:
▪ a Status Response with the INVALID_ACTION Status Code SHALL be generated as defined
in Status Response Action,
▪ Else if the path indicates an attribute or attribute data field that is unsupported, an
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 427
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
▪ Else if the path indicates a specific attribute data that is not writable, an AttributeSta
tusIB SHALL be generated with the UNSUPPORTED_WRITE Status Code.
▪ Else if writing to the attribute in the path requires a privilege that is not granted to
access the cluster in the path, an AttributeStatusIB SHALL be generated with the UNSUP
PORTED_ACCESS Status Code.
▪ Else if the path indicates specific attribute data that requires a Timed Write transaction
to write and this action is not part of a Timed Write transaction, an AttributeStatusIB
SHALL be generated with the NEEDS_TIMED_INTERACTION Status Code.
▪ Else if the attribute in the path indicates a fabric-scoped list and there is no accessing
fabric, an AttributeStatusIB SHALL be generated with the UNSUPPORTED_ACCESS Status
Code, with the Path field indicating only the path to the attribute.
▪ Else if the DataVersion field of the AttributeDataIB is present and does not match the
data version of the indicated cluster instance, an AttributeStatusIB SHALL be generated
with the DATA_VERSION_MISMATCH Status Code.
◦ Else perform Request Path Expansion and process each expanded existent path as follows:
▪ If the path indicates attribute data that is not writable, then the path SHALL be dis
carded.
▪ If writing to the attribute in the path requires a privilege that is not granted to access the
cluster in the path, then the path SHALL be discarded.
▪ Else if the path indicates specific attribute data that requires a Timed Write transaction
to write and this action is not part of a Timed Write transaction, then the path SHALL be
discarded.
• If the path indicates a fabric-scoped list or list entry, it SHALL be processed as a fabric-filtered
list of fabric-scoped structs.
• Each data field indicated by the path, SHALL be processed in the order conveyed as follows:
◦ If a data field is not within the constraints defined by the cluster specification, an AttributeS
tatusIB SHALL be generated with the CONSTRAINT_ERROR Status Code, with the Path field
duplicating the path.
◦ Otherwise, the data field SHALL be changed to the data indicated with the path.
• Each AttributeStatusIB generated from processing the WriteRequests field of the Write Request
action, SHALL be added to the WriteResponses action field of the Write Response action, which
Page 428 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• An empty WriteResponses field of the Write Response action SHALL indicate no errors from the
Write Request action.
Upon receipt of this action, the action information SHALL be submitted to the layer above.
This action is a first action of a transaction. The specific action information for this action is shown
below.
This action informs the receiver that another action will be sent in the same direction, within the
same transaction, and within a specified Timeout interval. The Timeout interval SHALL start when
the Status Response action acknowledging the Timed Request action with a success code is sent.
• This action SHALL be generated as an optional first action in a Write or Invoke transaction.
• Upon receipt of this action, this layer SHALL construct and send a Status Response action with
SUCCESS to the initiator.
• This layer SHALL expect a Write Request or Invoke Request action within Timeout milliseconds
of sending the Status Response action.
• The Invoke interaction SHALL consist of one of the Invoke transactions shown below
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 429
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• A client MAY choose to use a Timed Invoke transaction even if the command does not have the
Timed Interaction quality.
• The server SHALL support a Timed Invoke transaction for all commands.
• This action SHALL be generated as the first action in an Invoke transaction, or following a
Timed Request action and successful Status Response action.
• If there is a preceding successful Timed Request action, the following Invoke Request action
SHALL be received before the end of the Timeout interval.
• If there is a preceding successful Timed Request action, the Timeout interval SHALL start when
the Status Response action acknowledging the Timed Request action with a success code is sent.
• Each Invoke Request and Invoke Response action in a Timed Invoke transaction SHALL be uni
cast.
• If a cluster command is defined to be invoked as the result of a groupcast, the command SHALL
be invoked with an Invoke Request action which SHALL start a new transaction.
• Each path in an Invoke Request or Invoke Response action SHALL indicate a server cluster.
Invoke Request action is either the first action of the Invoke transaction or it follows a successful
Timed Request action. Please see Common Action Behavior for behavior common to all actions. The
Page 430 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• This action SHALL be generated as the first action in an Invoke transaction, or following a
Timed Request action and successful Status Response action.
• If this action is part of a Timed Invoke transaction, TimedRequest SHALL be TRUE, else FALSE.
• If this action is part of a Timed Invoke transaction, and the Timeout has expired from the pre
ceding Timed Request action, then a Status Response action with the TIMEOUT Status Code
SHALL be submitted to the message layer and this interaction SHALL terminate.
• If this action is part of a Timed Invoke transaction, and this action has TimedRequest set to
FALSE, then a Status Response action with the TIMED_REQUEST_MISMATCH Status Code SHALL
be submitted to the message layer and this interaction SHALL terminate.
• If this action is marked with TimedRequest as TRUE, but this action is not part of a Timed
Invoke transaction (i.e. there was no immediately previous Timed Invoke action), then a Status
Response action with the TIMED_REQUEST_MISMATCH Status Code SHALL be submitted to the
message layer and this interaction SHALL terminate.
▪ a Status Response with the INVALID_ACTION Status Code SHALL be generated as defined
in Status Response Action,
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 431
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
▪ Else if invoking the command in the path requires a privilege that is not granted to
access the cluster in the path, a CommandStatusIB SHALL be generated with the UNSUP
PORTED_ACCESS Status Code.
▪ Else if the command in the path is fabric-scoped and there is no accessing fabric, a Com
mandStatusIB SHALL be generated with the UNSUPPORTED_ACCESS Status Code.
▪ Else if the command in the path requires a Timed Invoke transaction to invoke and this
action is not part of a Timed Invoke transaction, a CommandStatusIB SHALL be gener
ated with the NEEDS_TIMED_INTERACTION Status Code.
◦ Else perform Request Path Expansion and process each expanded existent path as follows:
▪ If invoking the command in the path requires a privilege that is not granted for the clus
ter in the path, then the path SHALL be discarded.
▪ Else if the command in the path is fabric-scoped and there is no accessing fabric, then
the path SHALL be discarded.
▪ Else if the command in the path requires a Timed Invoke transaction to invoke and this
action is not part of a Timed Invoke transaction, then the path SHALL be discarded.
• Each command in the remaining and error-free concrete command paths SHALL be executed,
as defined in Invoke Execution, in the same order as conveyed and expanded:
Invoke Execution
• The command SHALL be executed as defined in the cluster specification, and the following
applies:
▪ If a mandatory data field is missing, or incoming data cannot be mapped to the expected
data type for a field, a CommandStatusIB SHALL be generated with an error status of
INVALID_COMMAND, even if the cluster defines another type of response.
Page 432 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
▪ ClusterPath field of the CommandPath field that is a duplicate of the command path
processed, up to the cluster ID
▪ Command field of the CommandPath field that is the command ID of the following com
mand
◦ Else if the cluster specification defines a success or error status as a response (sometimes
specified as a Default Response), a CommandStatusIB SHALL be generated with these fields:
• After all valid commands complete execution, Invoke Response Generation SHALL be per
formed.
Invoke Response action is a following action for an Invoke Request action. Please see Common
Action Behavior for behavior common to all actions. The specific action information for this action
is shown below.
• This action SHALL be generated in response to an Invoke Request action or Invoke Response
action, after all valid commands are executed.
• If the previous action in this transaction action is groupcast, this process and transaction termi
nate with no response.
◦ An Invoke Response action SHALL be submitted to the message layer to send to the source of
the previous action.
• Upon receipt of this action, each entry in InvokeResponses SHALL be processed, in order, as fol
lows:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 433
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
▪ If the ClusterPath field of the CommandPath field does not duplicate or match a wildcard
of one of the paths in the previous action of the interaction, the entry SHALL be dis
carded.
▪ Else if the command ID value of the Command field of the CommandPath field is not
expected by the cluster instance, the entry SHALL be discarded.
• After all commands complete execution Invoke Response Generation SHALL be performed.
• Logically for this specification, the Node or Group SHALL be present in all paths.
• When an outgoing path indicates the same Node or Group as the action target, the message
layer MAY optimize the path by removing Node or Group.
• When an incoming path does not indicate a Node or Group, the message layer SHALL add the
action target (Node or Group) to the path.
8.9.1.1. ClusterPathIB
Cluster cluster-id A M
8.9.2.1. AttributePathIB
An attribute path supports nesting levels deeper than the attribute with the NestedPath field below.
The NestedPath indicates zero or more nesting levels to establish the nesting depth of the attribute
path.
• An attribute path MAY indicate data at any nesting depth in the attribute data.
• If the Attribute is indicated as a wildcard then the path SHALL indicate all attributes of the clus
ter.
Page 434 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• If the final nesting level in an attribute path indicates a collection data type, then the path
SHALL indicate all collection data, plus any deeper nested data as part of the collection.
Cluster ClusterPathIB M
Attribute attrib-id A M
8.9.2.2. NestingLevelIB
This defines a deeper nesting level of an attribute path to collection data, such as a struct field, or
list entry.
This table is valid for AttributePathIB for a Read Request action or a Subscribe Request action. See
AttributePathIB for more conformance restrictions.
The table defines valid attribute data paths including combinations with wildcards, non-group
(node & endpoint), and group paths. A blank entry means the element does not exist in the path.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 435
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 436 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 437
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This table is valid for Path field of a AttributeDataIB for a Write Request action. See AttributeDataIB
and AttributePathIB for more conformance restrictions.
The table defines valid attribute data paths including combinations with wildcards, non-group
(node & endpoint), and group paths. A blank entry means the element does not exist in the path.
8.9.2.5. AttributeDataIB
Path AttributePathIB M
Data desc M
Page 438 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
DataVersion
Change
This field indicates a change to a list for a write interaction, or as reported for a read or subscribe
interaction.
• This field SHALL only be present if the data type is a list entry index or list data type.
• The list change SHALL be in the context of a fabric-filtered list, if fabric-filtering is enabled or
required.
• This field SHALL be one of the values defined in the table below.
Name Description
REPLACE
• This Change value SHALL only be used when the last nesting level of the Path field indicates a
list (Attribute or FieldID).
• The Data field MAY be an empty list which effectively deletes all entries from the list.
ADD
• This Change value SHALL indicate adding one or more entries to the list, in an order deter
mined by the server.
• This Change value SHALL only be used when the last nesting level of the Path field indicates a
list (Attribute or FieldID).
DELETE
• This Change value SHALL only be used when the last nesting level of the Path field indicates a
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 439
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• The data type of the AttributeDataIB Data field SHALL be the data type of the list entry.
MODIFY
• This Change value SHALL only be used when the last nesting level of the Path field indicates a
list entry index (ListIndex).
• The data type of the AttributeDataIB Data field SHALL be the data type of the list entry.
Path
See AttributePathIB.
Data
• The data type of this field SHALL be the data type of the data indicated by the Path field.
• If the final nesting level indicated by the Path is an list entry index, the data type SHALL be the
data type of the list.
8.9.2.6. AttributeReportIB
8.9.2.7. DataVersionFilterIB
Path ClusterPathIB M
DataVersion data-ver M
8.9.3.1. EventFilterIB
Node node-id M
EventMin event-no M
Page 440 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
8.9.3.2. EventPathIB
Path ClusterPathIB M
Event event-id O
IsUrgent bool O
This table is valid for EventPathIB. The table defines valid event paths including combinations with
wildcards, but not group paths.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 441
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
8.9.3.4. EventDataIB
Path EventPathIB M
EventNumber event-no M
Priority priority M
Data variable O
8.9.3.5. EventReportIB
8.9.4.1. CommandPathIB
ClusterPath ClusterPathIB M
Command command-id M
This table is valid for CommandPathIB. The table defines valid command paths including combina
tions with wildcards, non-group (node & endpoint), and group paths. A blank entry means the ele
ment does not exist in the path.
Page 442 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
8.9.4.3. CommandDataIB
CommandPath CommandPathIB M
CommandFields variable M
8.9.4.4. InvokeResponseIB
• The Path field in CommandDataIB and CommandStatusIB SHALL indicate a concrete path.
8.9.5.1. CommandStatusIB
CommandPath CommandPathIB M
Status StatusIB M
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 443
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
8.9.5.2. EventStatusIB
Path EventPathIB M
Status StatusIB M
8.9.5.3. AttributeStatusIB
This is used to indicate an invalid attribute data request path, or an error accessing the data.
Path AttributePathIB M
Status StatusIB M
8.9.5.4. StatusIB
This is used to respond with errors or success to actions. A success Status field is valid for every
layer. A non-success Status field is either defined in this layer, or generated and recognized by
another layer. ClusterStatus is defined in a cluster specification.
Status status M
ClusterStatus status O
Status Field
This is the one of the common status code values defined in Status Code Table.
ClusterStatus Field
Page 444 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 445
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 446 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 447
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 448 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Revision Description
This is part of a package of Data Model specifications that are agnostic to underlying layers (encod
ing, message, network, transport, etc.). Each specification below may be independently maintained.
This package, as a whole, shall be independently maintained as agnostic and decoupled from lower
layers. This package may be referenced by inclusion in a set of protocol stack specifications for a
complete vertical standard.
Data Model Defines first order elements and namespace for endpoints, clusters,
attributes, data types, etc.
System Model Defines relationships that are managed between endpoints and clusters.
The origin of this section is the Dotdot Architecture Model and parts of Chapter 2 of the Zigbee Clus
ter Library specification that define the data model.
The purpose is that this document will align with current cluster specifications in the ZCL and still
support cluster updates and evolution into a single set of data models.
9.1.4. Overview
This specification defines persistent relationships between local and remote instances of data
model elements, that support a system of operational communication between such instances. A
system is a set of nodes and persistent relationships that automate data flow and control based on
local or external stimulus.
◦ DeviceTypeList SHALL list the device type(s) that the endpoint supports
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 449
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
◦ PartsList SHALL indicate the endpoints that support these device type(s)
• Each simple endpoint SHALL support only one Application device type with these exceptions:
◦ The endpoint MAY support additional device types which are subsets of the Application
device type (the superset).
◦ The endpoint MAY support additional device types (application, utility or node device types)
as defined by each additional device type.
For Example: A Color Temperature Light device type may support device type IDs for both a
Dimmable Light and On/Off Light, because those are subsets of a Color Temperature Light
(the superset).
For Example: A Room Temperature Sensor device type and a Room Humidity Sensor device
type must be on separate endpoints because they are both Simple device types and neither is
a subset of the other.
For example: The Bridged Node device type may be added to an endpoint, which means it
represents a node behind a bridge, and requires one or more extra clusters.
For example: The Temperature Sensor device type mandates the Temperature Measurement
server cluster, and does not require additional device types or endpoints.
Most device types define leaf endpoints without the need for composition.
For example: A Dimmer Switch device type mandates these clusters: On/Off, Level Control,
Identify, and does not require additional device types or endpoints.
• A composed device type MAY indicate a PartsList of local endpoints that are part of the com
posed device type.
For example: An endpoint supporting a Freezer device type which has 2 temperature sensors
(freezer temperature, and ice tray temperature) would have a PartsList containing 2 tempera
ture sensor leaf endpoints (one for each of the sensors). Those leaf endpoints would indicate
and conform to the temperature sensor device type.
• A root node device type SHALL be a singleton on the root node endpoint.
• The PartsList of the Descriptor cluster on the root node endpoint SHALL list all endpoints on the
node, except the root node endpoint.
• The root node endpoint SHALL NOT exist in any other endpoint’s PartsList on the node.
Page 450 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• The root node endpoint requirements are defined by a node scoped device type.
• There SHALL be only one root node endpoint for the node.
• Each device type that is part of a composed device type indicated in the Descriptor cluster
DeviceTypeList attribute, SHALL each be supported by an endpoint in the PartsList.
• Each endpoint that supports a device type that is a conformant part of a composed device type
on another endpoint SHALL be indicated, along with endpoints in its own PartsList, in the Part
sList of the composed device type endpoint.
This means that each PartsList indicates all endpoints below it, in the tree hierarchy of composed
device types.
For example: A Fridge/Freezer endpoint has a PartsList with the Fridge and Freezer endpoint,
but also all other dependent endpoints below, including temperature sensor endpoints for the
Fridge, Freezer, and Ice Tray (which is part of the Freezer), etc.
• Extra endpoints MAY be in the PartsList that extend the device type implementation.
Some nodes MAY require a dynamic number of endpoints, since the functionality they expose can
change at run-time, e.g.
• a Casting Video Player in which Content Apps are added or deleted (see Device Library, section
10).
Such dynamic entities which need to be exposed with an endpoint, will be referred to as an
"exposed entity" in the following description.
For such nodes with dynamic endpoints, the endpoint addresses SHALL be allocated according to
the following rules:
• When such exposed entity is exposed for the first time, it SHALL be allocated a new endpoint
address (or set of endpoint addresses), incrementing from the highest previously (ever) used
endpoint address.
◦ For the situation where a node following these mechanisms has exhausted all available
65535 endpoint addresses for exposed entities, it MAY wrap around to the lowest unused
endpoint address.
• For existing exposed entities, the endpoint addresses SHALL NOT be changed.
◦ This persistency requirement also holds for the case of restart/reboot of the device.
As a result of these mechanisms, endpoint addresses that were used for exposed entities that were
once exposed but now have been removed will not be reused in the future (apart from the excep
tional wrap-around corner case mentioned above), in order to avoid the possibility of confusing
other nodes by re-assigning (reusing) an endpoint address for a different exposed entity. Other
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 451
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
nodes using the exposed entities from this node SHOULD remove information related to exposed
entities no longer being exposed.
Other nodes that wish to be notified of changes of the exposed entities SHOULD monitor changes of
the PartsList attribute in the Descriptor cluster on the root node endpoint.
9.3.1. Subscription
9.3.1.1. Persistency
• Decision by either publisher or subscriber to tear down the subscription to reclaim resources
In all cases, the subscriber can eventually discover the loss of synchronization by not receiving a
sync report or data report in the agreed upon sync interval, or through some other failure to com
municate with the publisher.
• When a subscriber discovers the loss of synchronization, it MAY then initiate a re-subscription
to resume the subscription.
• An implementation MAY choose to persist the details of a subscription across reboots, but it is
not necessary.
In all cases, the publisher eventually discovers the loss of synchronization by not receiving a Status
Response to a Report Data message that expects a response, or by receiving an error Status
Response.
For example: A light switch that controls one or more light bulbs, does not know the remote
node endpoints of the bulbs.
For example: A thermostat that subscribes to an occupancy sensor, does not know the remote
node endpoint of the sensor.
Page 452 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
In such cases, a binding is used to direct the local endpoint to the remote endpoint. The existence of
the Binding cluster on an endpoint, allows a director to create one or more binding entries (bind
ings) in the Binding cluster. A director is a remote client that is given access to create such bindings.
Each binding indicates either a remote node’s endpoint or cluster on a remote node’s endpoint.
Multiple bindings are allowed, depending on the interaction. A binding is either a unicast binding,
where the binding target is a remote endpoint, or a groupcast binding, where the binding target is a
group of remote endpoints.
Please see the Binding Cluster specification for more specification detail.
This cluster describes an endpoint instance on the node, independently from other endpoints, but
also allows composition of endpoints to conform to complex device type patterns.
This cluster supports a list of one or more device type identifiers that represent conformance to
device type specifications.
For Example: An Extended Color Light device type may support device type IDs for both a
Dimmable Light and On/Off Light, because those are subsets of an Extended Color Light (the
superset).
The cluster supports a PartsList attribute that is a list of zero or more endpoints to support a com
posed device type.
For Example: A Refrigerator/Freezer appliance device type may be defined as being com
posed of multiple Temperature Sensor endpoints, a Metering endpoint, and two Thermostat
endpoints.
The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Revision Description
1 Initial Release
9.5.2. Classification
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 453
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Identifier Name
0x001D Descriptor
9.5.4. Attributes
This is a list of device types and corresponding revisions declaring endpoint conformance (see
DeviceTypeStruct). At least one device type entry SHALL be present.
An endpoint SHALL conform to all device types listed in the DeviceTypeList. A cluster instance that
is in common for more than one device type in the DeviceTypeList SHALL be supported as a shared
cluster instance on the endpoint.
This attribute SHALL list each cluster ID for the server clusters present on the endpoint instance.
This attribute SHALL list each cluster ID for the client clusters present on the endpoint instance.
This attribute indicates composition of the device type instance. Device type instance composition
SHALL include the endpoints in this list. See Endpoint Composition for more information.
Page 454 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
9.5.5.1. DeviceTypeStruct
The device type and revision define endpoint conformance to a release of a device type definition.
See the Data Model specification for more information.
0 DeviceType devtype-id M
DeviceType Field
This SHALL indicate the device type definition. The endpoint SHALL conform to the device type def
inition and cluster specifications required by the device type.
Revision Field
This is the implemented revision of the device type definition. The endpoint SHALL conform to this
revision of the device type.
A binding represents a persistent relationship between an endpoint and one or more other local or
remote endpoints. A binding does not require that the relationship exists. It is up to the node appli
cation to set up the relationship.
A binding is used to inform a client endpoint of one or more targets for a potential interaction. For
example: a light switch that controls one or more light bulbs, needs to be told the nodes and end
points of the bulbs, or told a group in which the bulbs are members. For example: A client that
needs to subscribe to an occupancy sensor, needs to know the node and endpoint of the sensor.
In such cases, a binding is used to direct a local endpoint to a target. The existence of the Binding
cluster on the client endpoint, allows the creation of one or more binding entries (bindings) in the
Binding cluster.
Each binding indicates another endpoint or cluster on another endpoint. Multiple bindings are
allowed, depending on the interaction.
A binding is either a unicast binding, where the target is a single endpoint on a single node, or a
groupcast binding, where the target is a group, which may indicate multiple endpoints on multiple
nodes. The binding may also target a single cluster on the target endpoint(s).
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 455
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
When a client cluster requires a target for an interaction, the Binding cluster SHALL exist on the
same endpoint.
Once a binding entry is created on the Binding cluster, the client endpoint MAY initiate interactions
to the binding target.
If, during the creation of multiple bindings, there are no available resources to create an entry, or
to establish a binding relationship, the client SHALL respond with a status of RESOURCE_EX
HAUSTED, and the binding SHALL NOT be created.
The number of bindings supported is left to the implementation. However, a device type definition
MAY prescribe the minimum number of bindings supported on an endpoint. In this case, the num
ber prescribed by the device type SHALL be supported for each fabric the node supports, unless the
device type specifies otherwise. The total number of bindings supported SHALL be the sum of the
requirements for each endpoint, unless the device types involved specify otherwise.
• For example, if a node supports 6 fabrics and a device type specifies at least 3 bindings must be
supported, the node would need to support at least 18 bindings and ensure that at least 3 were
available to every fabric.
A binding SHALL only be created with the Cluster field if the indicated client cluster exists on the
endpoint.
When a binding is removed, the client endpoint SHALL end the binding relationship with the
removed binding target.
The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Revision Description
1 Initial Release
9.6.3. Classification
Identifier Name
0x001E Binding
Page 456 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
9.6.5. Attributes
9.6.6.1. TargetStruct
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 457
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Node Field
This is the remote target node ID. If the Endpoint field is present, this field SHALL be present.
Group Field
This is the target group ID that represents remote endpoints. If the Endpoint field is present, this
field SHALL NOT be present.
Endpoint Field
This is the remote endpoint that the local endpoint is bound to. If the Group field is present, this
field SHALL NOT be present.
Cluster Field
This is the cluster ID (client & server) on the local and target endpoint(s). If this field is present, the
client cluster SHALL also exist on this endpoint (with this Binding cluster). If this field is present,
the target SHALL be this cluster on the target endpoint(s).
The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Revision Description
1 Initial Release
9.7.2. Classification
This is a base cluster with no cluster ID. Please see derived clusters for more information.
Identifier Name
n/a Label
9.7.4. Attributes
Page 458 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
9.7.5.1. LabelStruct
Label Field
The Label or Value semantic is not defined here. Label examples: "room", "zone", "group", "direc
tion".
Value Field
The Label or Value semantic is not defined here. The Value is a discriminator for a Label that may
have multiple instances. Label:Value examples: "room":"bedroom 2", "orientation":"North",
"floor":"2", "direction":"up"
• A bridge can use this to indicate grouping of bridged devices. For example: All bridged devices
whose endpoints have an entry in their LabelList "room":"bedroom 2" are in the same
(bed)room.
• A manufacturer can use this to identify a characteristic of an endpoint. For example to identify
the endpoints of a luminaire, one pointing up, the other pointing down, one of the endpoints
would have a LabelList entry "orientation":"up" while the other would have "orienta
tion":"down". Using such indication, the user interface of a Node controlling this luminaire
knows which of the endpoints is which of the lights.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 459
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Revision Description
1 Initial Release
9.8.2. Classification
Identifier Name
9.8.4. Attributes
LabelList N empty RV M
The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Revision Description
1 Initial Release
9.9.2. Classification
Page 460 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Identifier Name
9.9.4. Attributes
9.9.4.1. LabelList
An implementation SHALL support at least 4 list entries per node for all User Label cluster
instances on the node.
The Access Control Cluster SHALL be present on the root node endpoint of each Node, and SHALL
NOT be present on any other Endpoint of any Node.
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Rev Description
i
sio
n
1 Initial Release
9.10.2. Classification
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 461
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Iden Name
tifier
0x001 AccessControl
F
9.10.4. Features
9.10.5. Attributes
Table 75. Access Control Cluster Server Attributes
The default value of the Access Control Cluster is empty; that is, devoid of contents, with each list
attribute containing zero elements.
The Access Control List is able to have an initial entry added because the Access Control Privilege
Granting algorithm behaves as if, over a PASE commissioning channel during the commissioning
phase, the following implicit Access Control Entry were present on the Commissionee (but not on
the Commissioner):
Page 462 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Access Control Cluster is passive in nature and is only responsible for maintaining entries in
the Access Control List. It is the responsibility of Administrators to create and maintain Access Con
trol policy by managing the list and its entries. The Access Control Cluster SHALL NOT change or
remove Access Control Entries of its own volition.
Administrators SHOULD strive to minimize resource usage by combining entries where appropri
ate. For example, if an Administrator is responsible for an entry that grants privilege to subject
Node A, and wishes to grant the same privilege to Node B under the same conditions, then that
Administrator SHOULD update the existing entry to apply to subject Node B as well as Node A,
instead of creating a new entry. If a set of Nodes is commonly used in entries, then an Administra
tor MAY consider using CASE Authenticated Tags (CATs) for those entries, especially if membership
in the set of Nodes changes over time.
Administrators SHOULD carefully consider the effect of Access Control Entries they manage, partic
ularly when targeting entire Endpoints (either directly, or indirectly by Device Type), to ensure that
granted privileges are appropriate for the set of Clusters that may entail. Administrators SHOULD
be mindful that targeting by Device Type grants privileges to all Clusters on all Endpoints with
Descriptor containing that Device Type (thereby including Clusters not part of that specified Device
Type), now and in the future. Administrators SHOULD consider whether targeting specific End
points, or Clusters, or both, might be a more appropriate policy for the given Subjects; studying the
Descriptor Cluster for affected Endpoints may help in this determination.
An attempt to add an Access Control Entry when no more entries are available SHALL result in a
RESOURCE_EXHAUSTED error being reported and the ACL attribute SHALL NOT have the entry
added to it. See access control limits.
See the AccessControlEntriesPerFabric attribute for the actual value of the number of entries per
fabric supported by the server.
Each Access Control Entry codifies a single grant of privilege on this Node, and is used by the Access
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 463
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Control Privilege Granting algorithm to determine if a subject has privilege to interact with targets
on the Node.
Privilege
The privilege field SHALL specify the level of privilege granted by this Access Control Entry.
Page 464 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Each privilege builds upon its predecessor, expanding the set of actions that can be performed
upon a Node. Administer is the highest privilege, and is special as it pertains to the administration
of privileges itself, via the Access Control Cluster.
When a Node is granted a particular privilege, it is also implicitly granted all logically lower privi
lege levels as well. The following diagram illustrates how the higher privilege levels subsume the
lower privilege levels:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 465
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Individual clusters SHALL define whether attributes are readable, writable, or both readable and
writable. Clusters also SHALL define which privilege is minimally required to be able to perform a
particular read or write action on those attributes, or invoke particular commands. Device type
specifications MAY further restrict the privilege required.
The Access Control Cluster SHALL require the Administer privilege to observe and modify the
Access Control Cluster itself. The Administer privilege SHALL NOT be used on Access Control
Entries which use the Group auth mode.
E.g. A Fan Control Cluster may require Operate privilege to write to a level attribute
(low/medium/high), and to configure each level’s RPM setting via a command. The Fan Con
trol Cluster may also expose a current RPM attribute, which requires only View privilege to
read. Clients granted Operate privilege will be able to both change the level, and configure
each level’s RPM. Clients granted View privilege will be able to read the current RPM, but will
not be granted sufficient privilege to change the level or configure each level’s RPM.
E.g. A Fan Control Cluster may be included in a more industrial device type. To ensure proper
operation, this device type may restrict configuration of fan level RPM settings to require
Manage privilege. Clients granted Manage privilege will have sufficient privilege to configure
each level’s RPM; clients granted Operate privilege will not be able to perform such configu
ration, but will still be able to change the level. This additional restriction would apply only to
the Fan Control Cluster as included in this particular device type; a client granted Operate
privilege may still be able to perform configuration in Fan Control Clusters included in other
device types on the same Node.
Page 466 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
AuthMode
The AuthMode field SHALL specify the authentication mode required by this Access Control Entry.
Subjects
The subjects field SHALL specify a list of Subject IDs, to which this Access Control Entry grants
access.
Device types MAY impose additional constraints on the minimum number of subjects per Access
Control Entry.
An attempt to create an entry with more subjects than the node can support SHALL result in a
RESOURCE_EXHAUSTED error and the entry SHALL NOT be created.
Subject ID SHALL be of type uint64 with semantics depending on the entry’s AuthMode as follows:
AuthMode Subject
An empty subjects list indicates a wildcard; that is, this entry SHALL grant access to any Node that
successfully authenticates via AuthMode. The subjects list SHALL NOT be empty if the entry’s Auth
Mode is PASE.
The PASE AuthMode is reserved for future use (see Section 6.6.2.8, “Bootstrapping of the Access Con
trol Cluster”). An attempt to write an entry with AuthMode set to PASE SHALL fail with a status code of
CONSTRAINT_ERROR.
For PASE authentication, the Passcode ID identifies the required passcode verifier, and SHALL be 0
for the default commissioning passcode.
For CASE authentication, the Subject ID is a distinguished name within the Operational Certificate
shared during CASE session establishment, the type of which is determined by its range to be one
of:
• a Node ID, which identifies the required source node directly (by ID)
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 467
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• a CASE Authenticated Tag, which identifies the required source node indirectly (by tag)
E.g. an ACL entry with CASE AuthMode that grants privileges to Subject IDs [
0x0000_0000_1111_1111, 0x0000_0000_2222_2222, 0x0000_0000_3333_3333 ] (which are Node
IDs) will grant access to Nodes with Node ID 0x0000_0000_1111_1111,
0x0000_0000_2222_2222, or 0x0000_0000_3333_3333, but will not grant access to Nodes with
Node ID 0x0000_0000_4444_4444 or 0x0000_0000_5555_5555.
E.g. an ACL entry with CASE AuthMode that grants privileges to Subject IDs [
0x0000_0000_6666_6666, 0xFFFF_FFFD_ABCD_0002 ] (which are a Node ID and a CASE Authenti
cated Tag) will grant access to the Node with Node ID 0x0000_0000_6666_6666 and any Nodes
with CAT identifier value 0xABCD if the CAT’s version is 0x0002 or higher. It will not grant
access to Nodes with other CAT values such as 0x9999_9999. Any node with CAT identifier
value of 0xABCD but version less than 0x0002 (for example: 0xFFFF_FFFD_ABCD_0001) will
not be granted access.
For Group authentication, the Group ID identifies the required group, as defined in the Group Key
Management Cluster.
E.g. an entry with Group AuthMode that grants privileges to Subject IDs [
0x0000_0000_1111_1111, 0x0000_0000_2222_2222 ] (which are Group IDs) will grant access to
Nodes in Group 0x1111_1111 or 0x2222_2222, but will not grant access to Nodes in Group
0x3333_3333, even if they share Operational Group Keys.
Targets
The targets field SHALL specify a list of TargetStruct, which define the clusters on this Node to
which this Access Control Entry grants access.
Device types MAY impose additional constraints on the minimum number of targets per Access
Control Entry.
An attempt to create an entry with more targets than the node can support SHALL result in a
RESOURCE_EXHAUSTED error and the entry SHALL NOT be created.
A single target SHALL contain at least one field (Cluster, Endpoint, or DeviceType), and SHALL NOT
Page 468 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Invalid
E D Invalid
C E D Invalid
An empty targets list indicates a wildcard: that is, this entry SHALL grant access to all cluster
instances on all endpoints on this Node.
E.g. an entry that grants privileges to the Color Light Bulb Device Type will grant privileges to
any cluster on any endpoint that contains the Color Light Bulb device type (whether that clus
ter is in the Color Light Bulb device type or not), and will not grant privileges to any other
cluster on any other endpoint.
E.g. an entry that grants privileges to Endpoint 1 will grant privileges to any cluster on End
point 1, and will not grant privileges to any other cluster on any other endpoint.
E.g. an entry that grants privileges to the On/Off Cluster on any endpoint will not grant privi
leges to any other cluster on any endpoint.
E.g. an entry that grants privileges to the On/Off Cluster with Color Light Bulb Device Type
will grant privileges to just the On/Off Cluster on any endpoint that contains the Color Light
Bulb device type, and will not grant privileges to any other cluster on any other endpoint
(including other clusters in the Color Light Bulb device type, or the On/Off cluster on end
points that do not contain the Color Light Bulb device type).
E.g. an entry that grants privileges to the On/Off Cluster on Endpoint 1 will not grant privi
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 469
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
leges to any other cluster on Endpoint 1, or to any other cluster (including the On/Off cluster)
on any other endpoint.
If present, the Access Control Extensions MAY be used by Administrators to store arbitrary data
related to fabric’s Access Control Entries.
The Access Control Extension list SHALL support a single extension entry per supported fabric.
Data
This field MAY be used by manufacturers to store arbitrary TLV-encoded data related to a fabric’s
Access Control Entries.
The contents SHALL consist of a top-level anonymous list; each list element SHALL include a pro
file-specific tag encoded in fully-qualified form.
Administrators MAY iterate over this list of elements, and interpret selected elements at their dis
cretion. The content of each element is not specified, but MAY be coordinated among manufactur
ers at their discretion.
E.g. a manufacturer could use this field to store structured data, including various metadata
and cryptographic signatures. The manufacturer could then verify a fabric’s Access Control
List by generating a canonical bytestream from the Access Control Entries for the fabric, then
verifying the signature against it. Such a canonical bytestream could be generated by encod
ing specific entry fields and sub-fields (such as lists) in specific order and specific format (e.g.
TLV).
This attribute SHALL provide the minimum number of Subjects per entry that are supported by this
server.
Since reducing this value over time may invalidate ACL entries already written, this value SHALL
NOT decrease across time as software updates occur that could impact this value. If this is a con
cern for a given implementation, it is recommended to only use the minimum value required and
avoid reporting a higher value than the required minimum.
Page 470 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This attribute SHALL provide the minimum number of Targets per entry that are supported by this
server.
Since reducing this value over time may invalidate ACL entries already written, this value SHALL
NOT decrease across time as software updates occur that could impact this value. If this is a con
cern for a given implementation, it is recommended to only use the minimum value required and
avoid reporting a higher value than the required minimum.
This attribute SHALL provide the minimum number of ACL Entries per fabric that are supported by
this server.
Since reducing this value over time may invalidate ACL entries already written, this value SHALL
NOT decrease across time as software updates occur that could impact this value. If this is a con
cern for a given implementation, it is recommended to only use the minimum value required and
avoid reporting a higher value than the required minimum.
Administrators SHALL use regular actions to administer the Access Control Cluster (by reading and
writing entries in the list). Administrators SHOULD take care to use DataVersion conditional writes
when administering the list or its contents.
The Access Control Cluster SHALL fail to write, and return an appropriate error, if an attempt is
made to create or update an Access Control Entry or Access Control Extension such that it would
have invalid contents.
For example, the following Access Control Entry conditions will result in an error of CONSTRAIN
T_ERROR:
For example, the following Access Control Extension conditions will result in an error of CON
STRAINT_ERROR:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 471
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• There is an attempt to add more than 1 entry associated with the given accessing fabric index in
the extension list
The Access Control Cluster MAY fail to write, and return a RESOURCE_EXHAUSTED error, if an
attempt is made to create or update an entry or extension such that storage is exhausted.
9.10.7. Events
0 AccessControlEn INFO SA M
tryChanged
1 AccessControlEx INFO SA M
tensionChanged
The cluster SHALL send AccessControlEntryChanged events whenever its ACL attribute data is
changed by an Administrator.
AdminNodeID
The Node ID of the Administrator that made the change, if the change occurred via a CASE session.
Exactly one of AdminNodeID and AdminPasscodeID SHALL be set, depending on whether the
Page 472 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
change occurred via a CASE or PASE session; the other SHALL be null.
AdminPasscodeID
The Passcode ID of the Administrator that made the change, if the change occurred via a PASE ses
sion. Non-zero values are reserved for future use (see PasscodeId generation in PBKDFParamRe
quest).
Exactly one of AdminNodeID and AdminPasscodeID SHALL be set, depending on whether the
change occurred via a CASE or PASE session; the other SHALL be null.
ChangeType
LatestValue
This field SHOULD be set if resources are adequate for it; otherwise it SHALL be set to NULL if
resources are scarce.
The cluster SHALL send AccessControlExtensionChanged events whenever its extension attribute
data is changed by an Administrator.
AdminNodeID
The Node ID of the Administrator that made the change, if the change occurred via a CASE session.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 473
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Exactly one of AdminNodeID and AdminPasscodeID SHALL be set, depending on whether the
change occurred via a CASE or PASE session; the other SHALL be null.
AdminPasscodeID
The Passcode ID of the Administrator that made the change, if the change occurred via a PASE ses
sion. Non-zero values are reserved for future use (see PasscodeId generation in PBKDFParamRe
quest).
Exactly one of AdminNodeID and AdminPasscodeID SHALL be set, depending on whether the
change occurred via a CASE or PASE session; the other SHALL be null.
ChangeType
LatestValue
This field SHOULD be set if resources are adequate for it; otherwise it SHALL be set to NULL if
resources are scarce.
9.10.8.1. ChangeTypeEnum
Conceptually, there is a Group Table on each node that represents endpoint group membership.
Each Group Table entry maps a group ID to one or more endpoints on that node, and any endpoint
on a node MAY be assigned to one or more groups.
A group relationship, that is contained in the Group Table, is managed through the endpoints using
the Groups cluster.
The Interaction Model allows a group identifier to be used as the destination of a message or action.
Page 474 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
If a message received by a node has a group destination, the Group Table is checked to see which
endpoints on the node are members of the group. Then, the message will be delivered to those end
points.
Note that there is a risk that multiple clients allocate the same group identifier for their own pur
pose. This likely leads to undesired behavior. For this reason, a client SHOULD discover the unique
ness of their 'candidate' group ID.
Also note that groupcast relies on its support by the underlying network layer. Depending on this
network layer, groupcast may not work to "sleepy" devices that have their radio turned off when
idle to preserve battery lifetime.
A Bridge serves to allow the use of non-Matter IoT devices (e.g. devices on a Zigbee or Z-Wave net
work, or any other non-Matter connectivity technology) in a Matter Fabric, with the goal to enable
the consumer to keep using these non-Matter devices together with their Matter devices.
This is illustrated in the figure below: the non-Matter devices are exposed as Bridged Devices to
Nodes on the Fabric. The Matter Nodes can communicate with both the (native) Matter devices as
well as the Bridged Devices (by virtue of the Bridge which performs the translation between Matter
and the other protocol).
Manufacturer
App
Manufacturer -
defined
interface
Bridge
Acts as an
Matter App 1 interpreter Assumes Bridged
Presents for Bridged responsibility Device 1
a Matter Devices for securing
Matter App 2 interface and and certifying
to the presents the communi-
Bridged
Matter Matter them as cation link to Device 2
apps Matter each Bridged
Matter App 3 Fabric Devices to Device Bridged
the various
Matter apps
Device 3
See and control all
of the Bridged Non-Matter
Devices and Matter Transport Layer ( e.g.
Devices using Zigbee; Z-Wave;
Matter protocol proprietary; etc.)
Matter Device 1
Matter Device 2
Matter Device 3
Matter Device 4
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 475
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This section will describe how the Data Model concepts can be used by a Bridge to expose the
Bridged Devices in such a way that they can be discovered and used by Nodes on the Matter Fabric.
After Commissioning, the Bridge SHALL expose (at least) one Node to the Fabric. The device imple
menting the Bridge MAY have more than one Node. This, however, is orthogonal to the bridging
concept and will not be discussed further here.
• On this Node, the Bridge SHALL expose a set of endpoints representing the various Bridged
Devices on the non-Matter side of the Bridge.
• Additionally, it SHALL expose an endpoint with the device type Aggregator which has a Descrip
tor cluster with a PartsList attribute containing all the endpoints representing those Bridged
Devices. See Endpoint Composition for the concept of hierarchical composition.
• Each Bridged Device corresponds to an endpoint listed in this PartsList (see examples below).
The Descriptor cluster on the corresponding endpoint provides information about the particu
lar Bridged Device, such as its device type(s).
Descriptor cluster: EP 0
DeviceTypeList : Root Node
PartsList: EP 1, 11,12,13,14,15,16 The PartsList on endpoint 1 lists all endpoints for bridged
Basic Information cluster: devices; each endpoint 11..16 represents one device at
..
the non-Matter side of the bridge.
Descriptor cluster: EP 1
DeviceTypeList : Aggregator
PartsList: EP 11,12,13,14,15,16
In case the Bridge is bridging to/from multiple technologies (or has some other logical distinction
between groups of bridged devices), it MAY expose such groups as two or more such hierarchical
trees each with their Aggregator device type (e.g. one for each technology, see figure below); it MAY
also combine all bridged devices in one hierarchical tree (see figure above). Both figures have the
same set of bridged devices - the difference is in how the bridge manufacturer decides to expose
them as one or multiple sets.
Page 476 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Descriptor cluster: EP 0
DeviceTypeList : Root Node
This implementation chooses to expose two instances of the Aggregator device type, each with
PartsList: EP 1,2, 11,12,13,14,15,16 their own hierarchy of devices, to be able to expose which bridged device is on which technology.
Basic Information cluster:
..
Descriptor cluster:
Descriptor cluster: DeviceTypeList : Aggregator EP 2
EP 1
DeviceTypeList : Aggregator PartsList: EP 14,15,16
PartsList: EP 11,12,13 Fixed Label cluster:
Fixed Label cluster: LabelList: [[" bridge","Z-Wave"]]
LabelList: [[" bridge","Zigbee "]]
Descriptor cluster: EP 14
Descriptor cluster:
EP 11 DeviceTypeList : Generic Switch, Bridged Node
DeviceTypeList : Extended Color Light, Bridged Node
Bridge Device Basic Information cluster:
Bridge Device Basic Information cluster:
NodeLabel: "living room entrance"
NodeLabel: "dining table"
Figure 42. example of endpoints representing Bridged Devices from two technologies
A Bridge typically has information on topology or logical grouping of the Bridged Devices, which
can be of use to Nodes on the Matter Fabric.
• For example, consider a Bridge with 50 lights. If this exposure of grouping, and their naming,
would not be present, the user would just see a flat list of 50 lights on their controller and would
not know which of those physical lights would be in which location/group.
If a Bridge has such information on topology or logical grouping, it SHOULD expose such informa
tion in the EndpointLists attribute of an Actions cluster (the ActionLists of which MAY be empty if
no actions are exposed). A Bridge MAY make it possible (e.g., through a Bridge Manufacturer’s app)
for its users to restrict whether all or some of such information is exposed to the Fabric. The Node
on the Fabric using the Bridged Devices which is interested in using such topology or logical group
ing (e.g. to show the grouping of lights per room in an overview to the user), SHOULD derive such
grouping (and associated naming) from this EndpointLists attribute.
In the example below, the devices are split over two rooms, as exposed in the EndpointLists
attribute. This example also illustrates a composed endpoint for a composed Bridged Device, in this
case a lighting device (Bridged Device at EP 24,25,26) which has an up- and downlighter which can
be controlled separately, and which have their own set of lighting-related clusters on an individual
endpoint (EP 25,26). Note that the Bridged Device Basic Information cluster is at the top of the hier
archy for this composed device (EP 24), while the application device types and application clusters
are at the leaf endpoints (EP 25,26).
Since EP 25,26 are listed in the PartsList of EP 24, they 'inherit' the Bridged Node device type and
information in the Bridged Device Basic Information cluster of EP 24.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 477
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
living room
dining table
kitchen light
bedroom
ceiling light
bedroom light
bedroom light up
bedroom light down
bedroom temperature
Figure 44. impression of app UI indicating information for the Bridged Devices
The Bridge MAY also contain native Matter functionality, i.e. non-bridged functionality, such as in
the example below, which shows a smart speaker device having, in addition to a Wi-Fi connection,
also a Zigbee connection towards a number of Zigbee lights. The speaker functionality (EP 31) is
native Matter functionality (and could have a Controller role to allow sending Matter commands
upon receiving voice commands), while the remainder of the non-zero endpoints represent the
Bridged Devices.
Page 478 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Descriptor cluster: EP 0
DeviceTypeList : Root Node In this example, the EndPointLists attribute of the Actions
Descriptor cluster: EP 1 PartsList: EP 1, 12,13,14,22,24,31 cluster is used to indicate grouping (e.g. all devices in one
DeviceTypeList : Aggregator Basic Information cluster:
PartsList: EP 12,13,14,22,24 room - irrespective whether they are bridged or not).
..
Actions cluster: EP31 is a component of the device itself which is not bridged,
ActionList: [ ] i.e. native Matter; it is in the bedroom along with some
EndpointLists : [ bridged devices.
[0xE001, "living room", room, [12,13,14] ],
[0xE002, "bedroom", room, [22,24,31] ]
]
Descriptor cluster: EP 12 EP 31
DeviceTypeList : Extended Color Light, Bridged Node Descriptor cluster:
Bridge Device Basic Information cluster: DeviceTypeList : Speaker
NodeLabel: "dining table"
For each Bridged Device, the Bridge SHALL include a Bridged Device Basic Information cluster on
the endpoint which represents this Bridged Device.
Furthermore, the Bridge SHALL include a Descriptor cluster with
• a DeviceTypeList attribute containing device type Bridged Node plus the device type(s) of the
Bridged Device, and
• a PartsList attribute listing any other endpoints which jointly expose the functionality of this
Bridged Device.
In case a Bridged Device is represented by multiple endpoints, the Bridged Device Basic Informa
tion and Descriptor clusters SHALL only be present on the endpoint which is the top level of the
hierarchy representing this Bridged Device (example: endpoint 24 in Figure 43, “example of end
points representing Bridged Devices using grouping”).
In case the Bridged Device contains a power source such as battery or mains power feed, and infor
mation about the state of that power source is available to the Bridge, the Bridge SHALL also
include a Power Source Configuration cluster and a Power Source cluster on the endpoint represent
ing the Bridged Device. An example of this is shown for the battery-powered temperature sensor on
endpoint 23 in Figure 43, “example of endpoints representing Bridged Devices using grouping”.
• In case such Bridged Device is represented by multiple endpoints, and the Bridged Device con
tains only one power source, the Power Source Configuration cluster SHALL be present on the
endpoint which is the top level of the hierarchy representing this Bridged Device, while the
Power Source cluster SHALL be present on the endpoint which corresponds to the part of the
Bridged Device containing the power source.
• In case a Bridged Device contains multiple power sources, each of these power sources SHALL
be represented by a Power Source cluster on the endpoint which corresponds to the part of the
Bridged Device containing the power source (no more than one such cluster per endpoint). The
Power Source Configuration cluster SHALL be present on the endpoint which is the top level of
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 479
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
the hierarchy representing this Bridged Device, referencing the endpoints where the Power
Source clusters for this Bridged Device are present.
In case a Bridged Device does not contain a power source such as battery or mains power feed, or
information about the state of that power source is not available to the Bridge, the Bridge SHALL
NOT include a Power Source Configuration cluster and a Power Source cluster on the endpoint repre
senting the Bridged Device.
For each Bridged Device, the Bridge SHALL expose the clusters required for a device of the indi
cated Matter device type(s).
This allows the Matter Nodes to recognize the device type of the Bridged Device and interact with
its clusters in the same manner as with a native Matter Node of that device type.
A Node which discovers another Node with device type Aggregator on one of its endpoints SHOULD
walk the entire tree of endpoints via the PartsList attributes and endpoints to discover the list of
Bridged Devices, including their device types and other attributes, as well as any native Matter
functionality potentially present on the Node.
Each endpoint found containing a Bridged Node device type represents a Bridged Device of the
device type(s) specified at this endpoint, or one of the endpoints found via its PartsList. If the dis
covering Node supports this device type, it MAY add this Bridged Device to the list of devices which
it could interact with, or could set up configuration for.
This discovering Node SHALL use the acquired information on the available Bridged Devices to set
up (configure) (likely with input from the user) how the Bridged Devices can be used with the Mat
ter Nodes (e.g. which switch controls which light, or how to control a light from an app on the
user’s phone).
Since the Bridge may expose a large number of Bridged Devices, the discovering Node SHALL use
the NodeLabel attribute in the Bridged Device Basic Information cluster of each of the Bridged
Devices to allow the user to easily identify and recognize the various Bridged Devices, and expedite
the setup/configuration process, rather than present the user with an unannotated list of, for exam
ple, 20 lights, 3 sensors and 4 switches. These labels have likely been populated by the user when
interacting previously with the Bridge e.g. through means provided by the Bridge Manufacturer,
such as a Bridge Manufacturer app.
If power source-related information regarding the Bridged Device is provided in the Power Source
cluster on the associated endpoint, the discovering Node SHOULD use this information in a similar
manner as power source-related information acquired from a Matter Node’s Power Source cluster.
Such information can then be used to inform the user about the state of the power source (e.g.
warn about low batteries) in a Bridged Device in a similar manner as done for Matter Nodes.
For configuration of the discovered Bridged Devices, two basic archetypes are described in the fol
lowing sections: one for actuators and one for sensors/switches.
Since a Bridged Device of a certain device type has the same set of application clusters as a native
Matter device of the same device type, this process is similar to configuring a native Matter device
Page 480 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
For Bridged Devices that are actuators and hence have a Controlee role, a Controller Node on the
Fabric MAY send commands to the associated clusters on one or more endpoints on the Bridge’s
Node, such as an On command to the On/Off cluster of a Bridged Device. The Bridge SHALL forward
this command to the relevant Bridged Device after conversion between the Matter protocol and the
non-Matter device’s native protocol.
Example:
A Controller creates a Group containing some Matter lights as well as some non-Matter lights, by
sending an Add Group command to the instances of the Group cluster on both the endpoints of the
Matter lights as well as on the Bridge’s Node endpoints representing the targeted bridged lights.
Similarly, the Controller creates one or more Scenes using the instances of the Scene cluster on these
endpoints.
The Controller then sends a (single) On command (On/Off cluster) to this group to switch on all these
lights in a single operation. This (single) multicast message will be received (and interpreted) by the
Matter lights which are part of this group as well as by the Bridge, which will forward it (after
appropriate protocol conversion) to the relevant bridged lights.
Similarly, the Controller sends a (single) Move to Level (Level Control cluster) or sends a (single)
Recall Scene (Scene cluster) to this group, to set the brightness resp. recall a scene contents on all
these lights in a single operation.
bridge
Matter
<=>
Matter Zigbee Zigbee
network network
Matter
lights bridged lights
For Bridged Devices like sensors and switches, the Bridge will receive value updates (e.g. Zigbee
attribute reports), events and/or commands from those devices, and SHALL (after conversion from
the native protocol of the non-Matter devices towards Matter protocol) represent those as
attributes, events and/or commands in the appropriate clusters on the associated endpoints of the
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 481
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Bridge.
Interactions with those attributes/events/commands on the Matter side (e.g., towards a Controller
using the sensor/switch data) SHOULD be identical to interactions with corresponding
attributes/events/commands in native Matter sensors and switches (e.g., attribute readout and sub
scription, proxying and eventing).
Examples:
• A temperature sensor sends a status report to the Bridge over a non-Matter interface. The logic
in the Bridge processes this as an update to the Measured Value attribute of the Temperature Mea
surement cluster on the endpoint associated with this bridged sensor.
Nodes on the Fabric which have an interest in this value can read the updated attribute value,
and can configure a subscription on this attribute. This is identical to reading an attribute value
or setting up an attribute subscription on a native-Matter temperature sensor Node.
• A user presses a button on a (push-button) switch device. The switch device sends a message to
the Bridge over a non-Matter interface. The logic in the Bridge processes this to generate an Ini
tialPress event (Switch cluster) on the endpoint representing the switch.
Nodes on the Fabric which have an interest in the switch operation can setup eventing from this
cluster.
Living room
Uplighter Living room
Uplighter
Downlighter
Reading light
Switch 1 ON
Downlighter
Reading light
lights
Switch 2 OFF Switch 1 ON
Temp: 20 °C Switch 2 OFF
Kitchen Temp: 20 °C
Ceiling
Cooking island
bridge
Matter
<=> sensors & switches
Matter Zigbee Zigbee
network network
Matter
lights bridged switches/sensors
Bridged Devices can have their software updated independently of the Bridge, through Bridge Man
ufacturer-specific means. These updates MAY result in one or more changes to their capabilities,
such as supported clusters and/or attributes, for an endpoint. Like every Matter Node, every end
point on the Bridge’s Node contains a Descriptor cluster that contains attributes for the device
types, endpoints (PartsList) and supported clusters. Nodes that wish to be notified of such changes
SHOULD monitor changes of these attributes.
Page 482 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Bridged Devices can be added to or removed from the Bridge through Bridge-specific means. For
example, the user can use a Manufacturer-provided app to add/remove Zigbee devices to/from their
Matter-Zigbee Bridge.
When an update to the set of Bridged Devices (which are exposed according to the Section 9.12.11,
“Best practices for Bridge Manufacturers”) occurs, the Bridge SHALL
• on the Descriptor clusters of the root node endpoint and of the endpoint which holds the Aggre
gator device type: update the PartsList attribute (add/remove entries from this list)
• update the exposed endpoints and their descriptors according to the new set of Bridged Devices
Nodes that wish to be notified of added/removed devices SHOULD monitor changes of the PartsList
attribute in the Descriptor cluster on the root node endpoint and the endpoint which holds the
Aggregator device type.
Allocation of endpoints for Bridged Devices SHALL be performed as described in Dynamic End
point allocation.
Typically, the user has some means (e.g. a Manufacturer-provided app) to assign names to the
Bridged Devices, or names could be assigned automatically by the Bridge. The Bridge SHALL expose
such names in the NodeLabel attribute of the Bridged Device Basic Information cluster on the
applicable endpoint.
Similarly, the user typically has some means to group the Bridged Devices (e.g. via a room/zone-con
cept) and provide names to such groups, or grouping could be applied automatically by the Bridge.
The Bridge SHOULD expose such grouping using the EndpointLists attribute of the Actions cluster
as described above.
For such exposed information, when there is a change in naming/grouping (e.g. the user makes
changes via a Manufacturer-provided app), the Bridge SHALL update the appropriate attributes.
Nodes that wish to be notified of a change in such a name or grouping SHOULD monitor changes of
this attribute or cluster.
As described above, the Bridge together with its Bridged Devices is exposed as a single Node with a
list of endpoints. Consequently, a single Node ID and a single Operational Certificate is assigned
during Commissioning and a single pass through the commissioning flow is required to bring the
Bridge (along with its Bridged Devices) onto a Fabric. This provides for a simple user experience,
since the user only needs to go through the commissioning flow for the Bridge, and not separately
for each of the Bridged Devices.
The Bridge is a Matter node, therefore it has a single Access Control Cluster for the entire Node, like
every other Matter Node. This cluster contains all Access Control Entries for each of its endpoints,
including for all Bridged Devices and other native Matter functionality exposed by the Bridge Node.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 483
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A typical setup of Access Control would reflect which privilege level a Matter Controller needs to
have for one or more Bridged Devices. This overall access set may be a subset of all the Bridged
Devices on the Bridge, rather than all endpoints on a Bridge. This can be accomplished by setting an
Access Control Entry containing as targets a list of those endpoints representing a Bridged Device or
a set of Bridged Devices. As defined in the ACL model, it is also possible to specify access towards
specific Targets, for example all Bridged Devices of device type Extended Color Light.
The Bridge is a Matter device and its Matter-related functionality MAY be updated using the mecha
nism described in Section 11.19, “Over-the-Air (OTA) Software Update”.
The Bridged Devices, on the other hand, are not native Matter devices, do not have a Product ID,
and are not listed in the Distributed Compliance Ledger. They are typically updated using a mecha
nism defined and deployed by the Bridge Manufacturer. That same mechanism is typically used to
update the parts of the Bridge which are not related to Matter, which is particularly relevant to
allow synchronization of updates to the non-Matter part of the Bridge with updates to the Bridged
Devices. Obviously, such mechanism MAY also be employed to update the entire Bridge firmware,
including the Matter-related functionality.
This section summarizes (in order of priority) the process to determine which non-Matter devices
the Bridge exposes to the Fabric.
◦ A Manufacturer MAY choose which of the Matter device types they can or want to support in
the Bridge. After implementation of support for bridging of those device types, they SHALL
certify the Bridge for those device types.
◦ By default, a Bridge SHOULD expose to the Fabric all its connected non-Matter devices which
can be mapped to a Matter device type for which that Bridge is certified.
E.g., if a Bridge is certified for Matter light bulbs, it SHOULD NOT hide any light bulb on the
non-Matter side from the Fabric by default (some situations where the Bridge MAY deviate
from this recommendation are in the following text).
◦ Given the wide variety of device types on a wide variety of standards, there may be device
types on the non-Matter side that do not have a corresponding Matter device type. Such
devices cannot be bridged to a Matter device type. The Manufacturer MAY choose to not
expose such devices with the Bridge or MAY expose them with a manufacturer-specific
device type and/or manufacturer-specific clusters.
2. Compatibility issues
◦ For the device types for which a Bridge is certified, a Bridge Manufacturer MAY decide to
not expose certain devices based on any reason, including compatibility and interoperabil
ity reasons, or to expose them in a 'best-effort' manner as needed.
▪ The Bridge Manufacturer may choose to not expose a device that does not support cer
tain functions or features which are mandatory for a Matter device type, but which are
defined as optional, or not defined at all, in the specification for the corresponding
device type on the non-Matter side of the bridge. Such a Bridge would expose to the Fab
Page 484 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ric only Bridged Devices of device types which support those particular control functions
or features which are required.
▪ The Bridge Manufacturer may also choose to map or emulate such features which are
not available in the Bridged Device; example: for a bridged colored light connected via a
protocol which does not support scenes, the Bridge could emulate the scene function by
storing the scenes in the Bridge and sending corresponding brightness and color com
mands to the light when a Scene Recall command is received from a Matter Node.
3. User choice
◦ A Bridge MAY make it possible (e.g., through a Bridge Manufacturer’s app) for its users to
further restrict which devices are exposed to the Fabric.
For example, a user may decide to prevent exposure to the Fabric of certain Devices Types,
such as all occupancy sensors, or of only certain devices of a certain device type, such as
only their bedroom occupancy sensor.
An Administrator MAY indicate to users which devices are native Matter and which ones are
Bridged Devices, as determined using the presence of a Bridged Node device type on the endpoint, in
order to ensure the user does not make assumptions about the Bridged Devices having the same
security requirements as native Matter devices.
This Cluster serves two purposes towards a Node communicating with a Bridge:
• indicate that the functionality on the Endpoint where it is placed (and its Parts) is bridged from
a non-Matter technology, and
• provide a centralized collection of attributes that the Node MAY collect to aid in conveying
information regarding the Bridged Device to a user, such as the vendor name, the model name,
or user-assigned name.
This cluster SHALL be exposed by a Bridge on the Endpoint representing each Bridged Device.
When the functionality of a Bridged Device is represented using a set of Endpoints, this cluster
SHALL only be exposed on the Endpoint which is at the top of the hierarchy for the functionality of
that Bridged Device.
This cluster SHALL NOT be used on an endpoint that is not in the Descriptor cluster PartsList of an
endpoint with an Aggregator device type.
This cluster has been derived from the Basic Information Cluster, and provides generic information
about the Bridged Device. Not all of the attributes in the Basic Information Cluster are relevant for a
Bridged Device (e.g. ProductID since it is not a Matter Device). For other attributes, the information
which is listed as Mandatory for the Basic Information Cluster, may not be available when the
Bridged Device does not provide it to the Bridge, and the Bridge has no other means to determine it.
For such cases where the information for a particular attribute is not available, the Bridge SHOULD
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 485
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
NOT include the attribute in the cluster for this Bridged Device. See below for Conformance details.
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Revision Description
1 Initial Release
9.13.3. Classification
Identifier Name
9.13.5. Features
9.13.6. Attributes
Name Conformance
DataModelRevision X
VendorName O
VendorID O
ProductName O
ProductID X
NodeLabel O
Location X
HardwareVersion O
HardwareVersionString O
SoftwareVersion O
SoftwareVersionString O
ManufacturingDate O
PartNumber O
Page 486 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Name Conformance
ProductURL O
ProductLabel O
SerialNumber O
LocalConfigDisabled X
Reachable M
UniqueID O
CapabilityMinima X
Since this cluster has been derived from the Basic Information Cluster, the identifiers of the
attributes, their range, quality and default characteristics and their descriptions correspond to
those in that Cluster and those descriptions are not repeated here. Several attributes from the Basic
Information Cluster which are not relevant or applicable for a Bridged Device have been marked
with X in column Conformance and SHALL NOT be used in the Bridged Device Basic Information Clus
ter.
The Conformance characteristics of several attributes in this cluster have changed from M to O com
pared to their Conformance in the Basic Information Cluster, and SHALL be used according to the
table above.
The Bridge SHOULD fill these attributes with the available information, which could e.g. come from
the Bridged Device provided to the Bridge over the non-Matter interface (e.g. VendorName and Ven
dorID) or could have been provided by the user (e.g. assigned name of a device for NodeLabel).
If the manufacturer of a Bridged Device is known to the Bridge, the Bridge SHALL provide this
name (in attribute VendorName), otherwise it SHALL NOT include this attribute.
If the manufacturer of a Bridged Device and the associated Alliance-assigned Vendor ID are known
to the Bridge (e.g. by copying the Manufacturer Code from the Node Descriptor of a Zigbee device),
the Bridge SHALL provide this identifier (in attribute VendorID), otherwise it SHALL NOT include
this attribute.
The Reachable attribute SHALL be used to indicate whether the bridged device is reachable by the
bridge over the non-Matter network, so a Matter Node which wants to communicate with a bridged
device can get an indication that this might fail (when the attribute is False). Determination of
reachability MAY not be perfect (e.g. depending on technology employed), so the Matter Node
SHOULD be aware of the risk of false positives and negatives on reachability determination. For
example, a bridged device MAY be marked as unreachable while it could actually be reached, and
vice-versa.
Also see event ReachableChanged below.
The UniqueID attribute (when present) for a Bridged Device SHOULD be updated when the Bridge is
factory reset.
9.13.7. Events
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 487
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Name Conformance
StartUp O
ShutDown O
Leave O
ReachableChanged M
This event SHALL be generated when there is a change in the Reachable attribute. Its purpose is to
provide an indication towards interested parties that the reachability of a bridged device (over the
non-Matter network) has changed, so they MAY take appropriate action.
After (re)start of a bridge this event MAY be generated.
This cluster provides a standardized way for a Node (typically a Bridge, but could be any Node) to
expose
• information about logical grouping of endpoints on the Node (example: lights in a room)
• information about named actions that can be performed on such a group of endpoints (exam
ple: recall a scene for a group of lights by its name)
The information on grouping and available actions is typically provided by the user or Bridge man
ufacturer via some means not defined in Matter, and therefore provided as read-only to Nodes. For
example: a manufacturer-provided app allows a user to set up logical grouping and create/assign
scene for such groups.
Using this cluster, a Node can learn about such logical grouping, provided actions, and trigger such
actions.
While the origin of this cluster stems from use cases with a Bridge, its server side may also be
implemented on any Node which can expose certain grouping, actions or automations to other
users.
After defining the attributes, commands and events for this cluster, and the associated data types,
several examples are provided to illustrate the capabilities of this cluster.
Actions can be defined in a flexible manner to suit the needs of the various nodes implementing
this cluster. For each action, the commands available for that particular action are defined.
This cluster can be used to expose only the grouping of endpoints without any actions defined by
populating the EndpointList attribute accordingly and providing an empty list for ActionList.
Page 488 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The term 'action' in the description of this cluster should not be confused with the term 'action' as
used in the Interaction Model.
The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Revision Description
1 Initial Release
9.14.3. Classification
Identifier Name
0x0025 Actions
9.14.5. Features
9.14.6. Attributes
The ActionList attribute holds the list of actions. Each entry SHALL have an unique ActionID, and its
EndpointListID SHALL exist in the EndpointLists attribute.
The EndpointLists attribute holds the list of endpoint lists. Each entry SHALL have an unique End
pointListID.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 489
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The SetupURL attribute (when provided) SHALL indicate a URL; its syntax SHALL follow the syntax
as specified in RFC 3986, max. 512 ASCII characters. The location referenced by this URL SHALL
provide additional information for the actions provided:
• When used without suffix, it SHALL provide information about the various actions which the
cluster provides.
• When used with a suffix of "/?a=" and the decimal value of ActionID for one of the actions, it
MAY provide information about that particular action. This could be a deeplink to manufac
turer-app/website (associated somehow to the server node) with the information/edit-screen for
this action so that the user can view and update details of the action, e.g. edit the scene, or
change the wake-up experience time period.
9.14.7. Commands
Page 490 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
data field of one or more actions listed in the ActionList provided by the server.
Some general requirements and data fields for all the commands:
• The ActionID data field SHALL indicate the action identifier. If there is no entry the in ActionList
holding the same action identifier, a response shall be generated with the StatusCode NOT_
FOUND.
• The InvokeID data field MAY be provided by the client when invoking a command. When this
value is provided, the server SHALL generate a StateChanged event when the action changes to
a new state or an ActionFailed event when execution of the action fails; in the data of such
events, the value of the InvokeID data field from the invoke will be provided, so that the client
can relate the event back to the corresponding command. It is up to the client to determine
which value is provided in InvokeID. When sending multiple commands for the same action,
with different InvokeID, the server SHALL provide in the event the InvokeID value from the
most recent command for a particular ActionID.
• If the command refers to an action which currently is not in a state where the command
applies, a response shall be generated with the StatusCode INVALID_COMMAND.
• Actions are typically mapped to state changes of the involved endpoints. Those endpoints can
also be controlled with commands from other clusters, controlled by other nodes and impacted
by non-Matter interactions (e.g. local controls). Such other interactions can cause the state of the
endpoints to differ from the results of the command which triggered the action. A client inter
ested in such changes can use the InvokeID data field (see above) to receive events State
Changed and ActionFailed for feedback for such cases.
This command triggers an action (state change) on the involved endpoints, in a "fire and forget"
manner. Afterwards, the action’s state SHALL be Inactive.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 491
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The TransitionTime data field SHALL indicate the transition time in 1/10th of seconds. It is recom
mended that, where possible (e.g., it is not possible for attributes with Boolean data type), a gradual
transition SHOULD take place from the old to the new state over this time period. However, the
exact transition is manufacturer dependent.
This command triggers an action (state change) on the involved endpoints, with a specified time to
transition from the current state to the new state. During the transition, the action’s state SHALL be
Active. Afterwards, the action’s state SHALL be Inactive.
This command triggers the commencement of an action on the involved endpoints. Afterwards, the
action’s state SHALL be Active.
Example: start a dynamic lighting pattern (such as gradually rotating the colors around the set
points of the scene) on a set of lights.
Example: start a sequence of events such as a wake-up experience involving lights moving through
several brightness/color combinations and the window covering gradually opening.
The Duration data field SHALL indicate the requested duration in seconds.
This command triggers the commencement of an action on the involved endpoints, and SHALL
Page 492 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
change the action’s state to Active. After the specified Duration, the action will stop, and the action’s
state SHALL change to Inactive.
Example: start a dynamic lighting pattern (such as gradually rotating the colors around the set
points of the scene) on a set of lights for 1 hour (Duration=3600).
This command stops the ongoing action on the involved endpoints. Afterwards, the action’s state
SHALL be Inactive.
Example: stop a dynamic lighting pattern which was previously started with StartAction.
This command pauses an ongoing action, and SHALL change the action’s state to Paused.
Example: pause a dynamic lighting effect (the lights stay at their current color) which was previ
ously started with StartAction.
The Duration data field SHALL indicate the requested duration in seconds.
This command pauses an ongoing action, and SHALL change the action’s state to Paused. After the
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 493
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
specified Duration, the ongoing action will be automatically resumed. which SHALL change the
action’s state to Active.
Example: pause a dynamic lighting effect (the lights stay at their current color) for 10 minutes
(Duration=600).
The difference between Pause/Resume and Disable/Enable is on the one hand semantic (the former
is more of a transitionary nature while the latter is more permanent) and on the other hand these
can be implemented slightly differently in the implementation of the action (e.g. a Pause would be
automatically resumed after some hours or during a nightly reset, while an Disable would remain
in effect until explicitly enabled again).
This command resumes a previously paused action, and SHALL change the action’s state to Active.
The difference between ResumeAction and StartAction is that ResumeAction will continue the
action from the state where it was paused, while StartAction will start the action from the begin
ning.
Example: resume a dynamic lighting effect (the lights' colors will change gradually, continuing from
the point they were paused).
This command enables a certain action or automation. Afterwards, the action’s state SHALL be
Active.
Page 494 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Duration data field SHALL indicate the requested duration in seconds.
This command enables a certain action or automation, and SHALL change the action’s state to be
Active. After the specified Duration, the action or automation will stop, and the action’s state SHALL
change to Disabled.
Example: enable a "presence mimicking" behavior for the lights in your home during a vacation;
the Duration field is used to indicated the length of your absence from home. After that period, the
presence mimicking behavior will no longer control these lights.
This command disables a certain action or automation, and SHALL change the action’s state to Inac
tive.
The Duration data field SHALL indicate the requested duration in seconds.
This command disables a certain action or automation, and SHALL change the action’s state to Dis
abled. After the specified Duration, the action or automation will re-start, and the action’s state
SHALL change to either Inactive or Active, depending on the actions (see examples 4 and 6).
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 495
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Example: disable a "wakeup" experience for a period of 1 week when going on holiday (to prevent
them from turning on in the morning while you’re not at home). After this period, the wakeup
experience will control the lights as before.
9.14.8. Events
0 StateChanged INFO V M
1 ActionFailed INFO V M
This event SHALL be generated when there is a change in the State of an ActionID during the execu
tion of an action and the most recent command using that ActionID used an InvokeID data field.
0 ActionID uint16 M
1 InvokeID uint32 M
2 NewState ActionSta M
teEnum
The ActionID data field SHALL be set to the ActionID of the action which has changed state.
The InvokeID data field SHALL be set to the InvokeID which was provided to the most recent com
mand referencing this ActionID.
The NewState data field SHALL be set to state that the action has changed to.
Example: When InstantActionWithTransition is invoked (with an InvokeID data field), two State
Changed events will be generated:
This event SHALL be generated when there is some error which prevents the action from its nor
mal planned execution and the most recent command using that ActionID used an InvokeID data
field.
It provides feedback to the client about the non-successful progress of the action.
Page 496 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
0 ActionID uint16 M
1 InvokeID uint32 M
2 NewState ActionSta M
teEnum
3 Error Action M
ErrorEnum
The ActionID data field SHALL be set to the ActionID of the action which encountered an error.
The InvokeID data field SHALL be set to the InvokeID which was provided to the most recent com
mand referencing this ActionID.
The NewState data field SHALL be set to state that the action is in at the time of generating the
event.
The Error data field SHALL be set to indicate the reason for non-successful progress of the action.
Example: When InstantActionWithTransition is invoked (with an InvokeID data field), and another
controller changes the state of one or more of the involved endpoints during the transition, thus
interrupting the transition triggered by the action, two events would be generated:
Example: When InstantActionWithTransition is invoked (with an InvokeID data field = 1), and the
same client invokes an InstantAction with (the same or another ActionId and) InvokeID = 2, and this
second command interrupts the transition triggered by the first command, these events would be
generated:
• StateChanged (InvokeID=2, NewState=Inactive) upon the execution of the action for the second
command
9.14.9.1. ActionStruct
The ActionStruct data type holds the details of a single action, and contains the data fields below.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 497
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The ActionID data field SHALL provide an unique identifier used to identify an action.
The Name data field SHALL indicate the name (as assigned by the user or automatically by the
server) associated with this action. This can be used for identifying the action to the user by the
client. Example: "my colorful scene".
The Type data field SHALL indicate the type of action. The value of Type of an action, along with its
SupportedCommands can be used by the client in its UX or logic to determine how to present or use
such action. See ActionTypeEnum for details and examples.
The EndPointListID data field SHALL provide a reference to the associated endpoint list, which
specifies the endpoints on this Node which will be impacted by this ActionID.
The SupportedCommands data field is a bitmap which SHALL be used to indicate which of the clus
ter’s commands are supported for this particular action, with a bit set to 1 for each supported com
mand according to the table below. Other bits SHALL be set to 0.
Note - the bit allocation of this table SHALL follow the ID’s of the Commands of this cluster.
0 InstantAction
1 InstantActionWithTransition
2 StartAction
3 StartActionWithDuration
4 StopAction
5 PauseAction
6 PauseActionWithDuration
7 ResumeAction
8 EnableAction
Page 498 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
9 EnableActionWithDuration
10 DisableAction
11 DisableActionWithDuration
The State data field SHALL indicate the current state of this action.
9.14.9.2. ActionTypeEnum
This data type is derived from enum8 and has its values listed below.
Type=scene can be used to set a static state of the associated endpoints (typically using InstantAc
tion or InstantActionWithTransition), or to bring these endpoints into a more dynamic state (typi
cally using StartAction), where the endpoints would e.g. gradually cycle through certain colors for a
pleasing effect. A voice controller could use "set" (to map to InstantAction) or "play" (to map to Star
tAction) to trigger such actions.
Example: see examples 1 and 2.
Type=automation indications an automation (e.g. a motion sensor controlling lights, an alarm sys
tem) which can be e.g. started, stopped, paused, resumed.
Example: see example 3.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 499
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Type=exception indicates some action which the server will execute when a certain condition
(which normally does not happen) is not met.
Example: lock the doors when the server’s system has detected no one is at home while the doors
are in the 'unlocked' state.
Type=notification indicates an action that can be triggered (e.g. by InstantAction) to notify the user.
Example: play a pattern on the lights in the living room if there is someone in the garden in the
evening.
Type=alarm is similar but with a higher priority (and might override other endpoint states which
Type=notification would not override).
Example: flash all lights in the house when CO sensor triggers.
9.14.9.3. ActionStateEnum
This data type is derived from enum8 and has its values listed below.
Note that some of these states are applicable only for certain actions, as determined by their Sup
portedCommands.
9.14.9.4. ActionErrorEnum
This data type is derived from enum8 and has its values listed below.
9.14.9.5. EndpointListStruct
The EndpointListStruct data type holds the details of a single endpoint list, which relates to a set of
endpoints that have some logical relation, and contains the data fields below.
Page 500 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The EndPointListID data field SHALL provide an unique identifier used to identify the endpoint list.
The Name data field SHALL indicate the name (as assigned by the user or automatically by the
server) associated with the set of endpoints in this list. This can be used for identifying the action to
the user by the client. Example: "living room".
The Type data field SHALL indicate the type of endpoint list, see EndpointListTypeEnum.
9.14.9.6. EndpointListTypeEnum
This data type is derived from enum8 and has its values listed below.
The "room" and "zone" values are provided for the cases where a user (or the system on behalf of
the user) has created logical grouping of the endpoints (e.g. bridged devices) based on location.
• "Room" is used for the situation where an endpoint can only be part of one such rooms (e.g.
physical mapping). Using these exposed logical groups, a Matter controller who has a similar
grouping concept can use it to place each endpoint (bridged device) in the right room automati
cally, without user having to redo that setup for each device in each system - both at first con
tact and upon later updates to the endpoints (e.g. user adds a bridged device or creates a new
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 501
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
room).
• "Zone" is a more general concept where an endpoint can be part of multiple zones, e.g. a light in
the living room can be part of the "reading corner" zone (subset of the lights in the living room)
but also part of the "downstairs" zone which contains all the lights on a floor, e.g. combining liv
ing room, kitchen and hallway. This indicates that a user has defined this list of endpoints as
something they logically would like to control as a group, so Matter controllers could provide
the user with a way to do as such.
The "other" value is provided for the case of an endpoint list which is tied specifically to this action
i.e. not independently created by the user. For Type="other" the Name MAY be empty. A Matter con
troller would typically not use this for anything else than just to know which endpoints would be
affected by the action.
9.14.10. Examples
This section provides some examples how the attributes and commands in this cluster can be used
in practical situations. Details of the behavior typically depend on the details of the logic built into
the server.
User has defined a scene on a number of lights. The corresponding action would have these data
fields describing it:
• Name="sunset"
• Type=scene
◦ Name="living room"
◦ Type=room
The InstantAction command (e.g. triggered by a voice command "set sunset in living room") will
trigger the server to activate that scene on those lights.
When a slow fade-in is preferred, the InstantActionWithTransition can be used, with a Transition
Time parameter of e.g. 50 (denoting 5 s).
Page 502 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
User has defined a scene on a number of lights. The corresponding action would have these data
fields describing it:
• Name="sunset"
• Type=scene
• EndpointListID references a struct referencing the set of involved endpoints (same as in Exam
ple 1)
The StartActionWithDuration command (e.g. triggered by a voice command "play sunset in living
room for 1 hour") will trigger the server to activate a dynamic pattern with colors inspired by sun
set on the associated lights. At any time, the StopAction can be used to stop the effect.
Please note that the most of the data fields in the ActionStruct for this example are identical to
those in example 1 - except for the SupportedCommands. The different sets of supported commands
indicate whether it is an instant scene recall (example 1) vs. a long-term dynamic effort (example
2). A server could expose this action also as a single action with the combined set of supported com
mands.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 503
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
User has defined an automation: a motion sensor controls the lights in a certain room. Sometimes,
they want to override that automatic behavior, e.g. when having a party.
The action for this example would refer to such automation, which is typically active, but can be
paused (=temporarily disabled).
The corresponding action would have these data fields describing it:
• Name="motion sensor"
• Type=automation
• EndpointListID references a struct referencing the set of involved endpoints (same as in Exam
ple 1)
Typically, the action has been started when the user defines the motion sensor behavior, so without
a Matter command the action’s state would be 'Active'. The PauseActionWithDuration command
(e.g. triggered by a voice command "disable the motion sensor in living room for 2 hours") will trig
ger the server to disable the behavior associated with the motion sensor for the specified time. A
ResumeAction command would make this behavior active again. The automation could also have
internal logic to abort the disabling after several hours or during the night-time reset, to accommo
date for the case the user 'paused' and forgot to 'resume'.
Page 504 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
User has defined a wake-up routine: the lights in the bedroom will gradually become brighter and
change in color temperature to simulate a sunrise. The sequence lasts for e.g. 30 minutes. Near the
end of the sequence, the window coverings would be (partially) opened as well.
The corresponding action would have these data fields describing it:
• Name="wakeup"
• Type=sequence
• EndpointListID references a struct referencing the set of involved endpoints (lights and window
coverings in the bedroom)
When the user wants to snooze some more, he can use a voice command to trigger the PauseAction
command (which could automatically timeout after e.g. 10 minutes). The StopAction command
could similarly be used to cancel the remainder of the whole sequence. The DisableActionWithDu
ration (with parameter 172,800 =2*24*60*60 s) can be used on Friday evening to disable the
sequence for the weekend.
When such action has been defined, a Matter node which is aware of the user’s calendar for the
day, can use the StartAction command to trigger this sequence of events.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 505
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
User has setup a scene to be recalled at a certain time of day (e.g. colorful garden lighting to switch
on around sunset) and switching off those lights (e.g. at midnight). The server’s automation system
takes care of this. On certain occasions (e.g. garden party), the user wants to override this behavior
(i.e. the scene should not be recalled at sunset because another scene has been set for the party).
The corresponding action would have these data fields describing it:
• Type=automation
• EndpointListID references a struct referencing the set of involved endpoints (lights in the gar
den)
After installation, this action is in Inactive state. At the scheduled "on" time, the colorful garden
lighting scene is activated and the action’s state changes to the Active state. At the scheduled "off"
time, the lights are switched off, and the action’s state changes to the Inactive state. Using the Dis
ableAction, the user can prevent these automated steps to occur - the action’s state changes to the
Disabled state. Using the DisableActionWithDuration, the user can do similarly, but also indicate an
automatic re-enabling after the specified time period. Using the EnableAction, the user can re-
enable the automation.
Page 506 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
User has an alarm system which exposes this cluster, with an action that allows to arm/disarm the
system by voice commands from a Matter node which is a client to this cluster.
The corresponding action would have these data fields describing it:
• Name="alarm system"
• Type=automation
• EndpointListID references a struct referencing the set of involved endpoints (elements of the
alarm system)
After installation, this action could be in Inactive state (assume user is at home installing so system
is not armed). Using the EnableAction, the alarm system would be armed. Using the DisableAction,
the alarm system would be disarmed (or disarmed for a period with DisableWithDuration).
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 507
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
9.15.1. Motivation
Constrained devices might not support more than a handful of subscriptions. This is usually
attributable to a limited memory or battery. However, there might be a large number of clients who
desire to subscribe to that device.
A subscription proxy is a type of Node that is capable of multiplexing subscriptions from multiple
subscribers onto a single subscription to a given publisher.
The term 'proxy' is a convenient shorthand that refers to this type of Node.
The term 'source' SHALL refer to a node that serves as the original source of truth for a set of data.
The source acts as a publisher of that data.
The term 'client' SHALL refer to a node that wants to subscribe to some source.
A proxy subscribing to a source SHALL surface an identical 'mirror' of the source’s data to down
stream clients without the clients having to alter their interaction regardless of whether they are
interacting with a proxy or the source itself.
Page 508 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This multiplexing of subscriptions allows the source to delegate all subscriptions to its proxy, only
needing to support a single subscription from that proxy. This reduces the demands placed on
energy and memory resources. Consequently, that single subscription will encompass the union of
all client interest sets. If the combined set of attribute/event paths becomes fairly large, proxies can
leverage the use of wildcards to merge multiple localized paths into a single, broader path with
wildcards.
A proxy SHALL only proxy subscribe interactions. It SHALL NOT proxy any other type of interac
tion.
A client subscribing to a proxy SHALL specify the Node ID of the source it wishes to subscribe to in
the Path. This SHALL be different from the logical destination Node ID of the message, which
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 509
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
9.15.4.1. Overview
A proxy only attempts to subscribe to a source when there is a current, valid subscription from a
client to the proxy for that source’s data.
The term 'upstream subscription' refers to the subscription from the proxy either directly to the
source, or indirectly to another proxy for that source’s data.
The term 'downstream subscription' refers to the subscription from either a client or another proxy
to the proxy in question.
Consequently, when that 'downstream' subscription disappears, the 'upstream' subscription will
either be torn down (if there are no other clients interested in that source) or be amended.
◦ Data is received on the client side, stored on the server side, and used to generate a different
set of reports to downstream client(s).
• It is data that is being proxied, not the actual subscription messages themselves.
Page 510 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
complete termination of the upstream subscription if there was only 1 downstream subscriber
present.
• The disappearance of an upstream subscription will not automatically cancel the downstream
subscription.
• In addition to forwarding status codes embedded in the ReportData from the source, the proxy
will convey a special 'NO_UPSTREAM_SUBSCRIPTION' IM status code to the downstream client if
it has not established a subscription to the source.
The diagram below gives a sample sequence show-casing the two subscriptions:
9.15.4.3. Sync/Liveness
Since subscriptions provide a 'sync' message to infer health of the subscription on both sides, it
allows a client to monitor the health of its source peer.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 511
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Since the proxy multiplexes all downstream subscriptions onto a single upstream subscription, it
has to have logic to harmonize the various parameters from each client subscription.
The following logic table describes what the proxy SHOULD do:
DataVersionList MIN
EventNumberList MIN
MinimumSyncInterval MIN
MaximumSyncInterval MAX
MinimumReportingIntervalList MIN
ReportableChangeList MIN
Since each client’s interest is different from the final multiplexed subscription, the proxy has to
appropriately filter the data being received from the source before sending it to a given client.
As a result, proxies MAY achieve proxy functionality with a single firmware image built to handle
any client, any cluster, any type of device.
A proxy MAY subscribe to another proxy instead of subscribing directly to the source. This creates
proxy chains that allow a single source to be proxied by multiple proxies, allowing better use of
available proxy capacity.
• Finds an appropriate proxy on the network that is able to handle its request
A device indicates its ability to act as a certified proxy through stating support for the Subscription
Proxy device type.
Page 512 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
When such a device is commissioned, the commissioner SHALL recognize this ability and MAY
write the NodeIds of all the sources that need proxying into the Proxy Configuration Cluster on the
proxy device. Alternatively, it MAY configure the proxy to wildcard proxy all devices, removing the
need to specify a particular set of NodeIds.
Additionally, the commissioner MAY write the Node ID of the newly added proxy to the Valid Prox
ies Cluster on source devices that needs proxying. This cluster stores the static list of candidate
proxies for a given device. Only devices that support the cluster would need to have this configura
tion written.
There unfortunately isn’t any a priori heuristic that MAY be applied to deduce if a source needs
proxying. This is usually a function of the number of clients subscribed to a source, the number of
paths in those subscriptions, as well as the sync intervals.
When a source cannot handle any more incremental subscriptions, that is when proxying is
needed. This is discovered when a client tries to subscribe to the source and is sent back a StatusRe
sponse containing a RESOURCE_EXHAUSTED IM status code, indicating the source’s inability to handle
further subscriptions:
In the diagram above, the constraints of the source have been simplified down to having 3 available
subscription slots that get filled up.
Upon receipt of the RESOURCE_EXHAUSTED error, the client SHALL invoke the Get Valid Proxies Request
command on the source Node. In response, it SHALL receive a Get Valid Proxies Response message
containing the NodeIds of valid, candidate proxies.
After the client has received the list of possible valid proxies, the client MAY attempt to discover a
valid proxy that is able to proxy its request.
To do so, the client sends out a Proxy Discover Request Command as a groupcast message to the All
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 513
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Proxies universal group. Before it transmits this message, the client SHALL momentarily subscribe
to the IPv6 address that maps to the All Proxies universal group to appropriately receive all
responses.
Proxies respond to the request with a Proxy Discover Response Command sent as a groupcast message
to the All Proxies universal group. A proxy SHALL only send this message when it can handle the
subscription request, regardless of whether it is currently subscribed to the source. The response
will contain metadata about its ability to handle the subscription.
The Proxy Discover Response Command SHALL be sent as a completely separate, un-related transac
tion to the original request. The client SHALL correlate the two using the SourceNodeId present in
both messages.
Proxies SHALL stagger their responses by waiting for a random interval between 0 and PROXY_S
CAN_RESPONSE_JITTER before sending the Proxy Discover Response Command to prevent overwhelm
ing the network or the client, which can be constrained and can have limited buffers.
Page 514 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Client SHALL wait for PROXY_SCAN_PERIOD to aggregate all responses and SHALL filter the set of
responses received. Specifically, the client SHALL discard:
• Responses containing a Source Node ID in the message that does not match any in the Valid
ProxyList.
It SHALL then select a proxy from this filtered set based on implementation-chosen policies. One
suggested approach would involve selecting the proxy with the least number of hops to the source,
followed by largest available capacity.
Clients MAY unsubscribe from the IPv6 multicast group that maps to the All Proxies universal
group after aggregating the responses.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 515
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Option 1: If there isn’t another proxy already subscribed to the source, the proxy subscribes to the
source directly:
Page 516 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Option 2: If there is already another proxy subscribed to that source, the selected proxy subscribes
to that proxy instead.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 517
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
It doesn’t attempt to subscribe directly to the source since it does not know if the source has any
free slots available to support the subscription, risking a potential subscription failure if it did so.
Proxies MAY select between the two options by 'sniffing' the `Proxy Discover Response Command mes
sages that were emitted by other proxies. This allows the candidate proxy to determine whether
there is another proxy already subscribed to the source.
A proxy SHALL have only one subscription to a given source regardless of the number of subscrip
tion requests from clients for that source. This is necessary to ensure timely ACL enforcement in the
case where a client no longer has access to the source, and subsequent state changes will not be
made available to that client (see ACL Enforcement for more details).
At this point, the source might not be able to handle another subscription. If so, it SHALL evict non-
proxy subscriptions to make space for the proxy subscription. This is acceptable since those clients
that got evicted MAY eventually subscribe to a proxy as well.
To make this possible, proxies have to express the type of subscription (proxy or not proxy) in the
SubscribeRequest itself.
The evicted clients undergo the same proxy discovery/selection process, and eventually settle on a
set of proxies.
Page 518 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• The system 'auto-balances' based on the needs of clients and the capabilities of the source
• Robust to proxy failure by leveraging the liveness construct of subscriptions to accelerate dis
covery
◦ There is no single point of failure. No need for an election, state backup, or fail-over.
• Low complexity on server (which are usually the more constrained device), slightly more on the
client
9.15.8. Constraints
A source SHALL NOT evict an existing proxy already subscribed to it to make way for a new sub
scription regardless of whether that new subscription emanates from a proxy or not. This prevents
instability in the system since it might result in ping-ponging proxies subscribing to that source.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 519
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
There SHOULD only be one proxy node directly subscribed to a source in a single-fabric setting.
This is not enforced by the source but rather, by proxies themselves.
9.15.8.3. Multi-Fabric
In a multi-fabric setting, a source node MAY be subscribed to by clients commissioned into different
fabrics. It is highly desirable that a single proxy interacting with a source support clients from mul
tiple fabrics. To make this possible, a proxy SHOULD when possible, be commissioned into all fab
rics that contain sources that need proxying.
If a proxy is not commissioned into all fabrics, it might not see another proxy’s Proxy Discover
Response Command messages, nor will it be capable of directly subscribing to that proxy even if it did,
since it doesn’t have credentials to do so. This MAY result in multiple proxies attempting to sub
scribe directly to the source, resulting in potential rejection by the source and consequently, an
inability for a client’s subscription to be served indirectly through that chosen proxy. This might be
unpredictable depending on which proxy was able to subscribe first to that source.
9.15.9. Certification
To ensure a consistent expectation of behavior from a proxy device, the proxy SHOULD be certified
by the Connectivity Standards Alliance against the expectations of a proxy. Once certified, it MAY
claim compatibility against the Subscription Proxy device type.
9.15.10.1. Authentication
To prevent malicious or unattested devices from acting as proxies to clients, the Valid Proxies Clus
ter provides a scheme for admins to specify the NodeIds of valid, attested proxies to the source
itself, which is in turn conveyed to clients. This allows for filtering of the ensuing Proxy Discover
Response Command messages to only select valid, trusted proxies.
The proxy discovery commands SHALL be encrypted with a fabric-provided group key. An Admin
istrator that wishes to enable proxy functionality on a set of clients SHALL bind the All Proxies
group to a specific group key in the Group Key Management cluster.
Consequently, a Proxy Discover Request Command message SHALL be sent for every All Proxies
GroupID instance specified in the Group Keys Management cluster.
Administrators SHOULD configure source nodes to grant the 'Proxy View' privilege to proxy clients.
If this privilege is not granted for at least the Access Control cluster, the proxy will not function.
This privilege SHOULD be granted for the entire source node for a proxy to be most effective, since
neither the proxy nor the Administrator can predict which source clusters may be subscribed by
other clients.
Page 520 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The proxy SHALL subscribe to the Access Control Cluster on the source and SHALL enforce the
source’s ACLs on behalf of the source when serving its downstream client subscriptions.
The proxy MAY enforce the source’s ACLs eagerly (i.e. at first ACL change), lazily (i.e. at next data
report), or by some combination of these approaches. The key guarantee is that the proxy SHALL
apply the latest source ACLs from its upstream subscription at the time it generates associated
downstream subscription reports.
The proxy SHALL enforce the source’s ACLs on a path by path basis, in a similar manner to how the
Access Control Privilege Granting algorithm enforces access. Downstream subscription paths that
are not granted access by the proxy SHALL cause the proxy to generate an UNSUPPORTED_ACCESS error
for that subscription path.
If all report data paths in a downstream subscription result in UNSUPPORTED_ACCESS error, the proxy
SHALL tear down that downstream subscription.
If the proxy is not able to view the source’s Access Control Cluster due to insufficient privileges, it
SHALL NOT generate any downstream subscription data reports for that source. Instead, the proxy
SHALL generate a report containing UNSUPPORTED_ACCESS errors for each path in the downstream
subscription and tear down the downstream subscription.
Table 83, “Glossary of constants” is a glossary of constants used in this section, along with a brief
description and example default for each constant.
9.15.12. Clusters
This cluster contains commands needed to do proxy discovery as defined in the Section 9.15.7.3,
“Step 2: Proxy Discovery” and Section 9.15.7.4, “Step 3: Proxy Response” steps of the overall Section
9.15.7, “Proxy Discovery & Assignment Flow”.
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 521
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
below.
Rev Description
i
sio
n
1 Initial Release
9.15.13.2. Classification
Iden Name
tifier
0x004 ProxyDiscovery
3
None
9.15.13.5. Commands
This command is used during proxy discovery, as specified in Section 9.15.7, “Proxy Discovery &
Assignment Flow”.
Page 522 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
9.15.13.5.2. SourceNodeId
This is the Node ID of the source for which a client seeks to find a Proxy.
9.15.13.5.3. NumAttributePaths
The number of attribute paths the client will have in the subscription request. This is a heuris
tic/hint to allow a Proxy to better ascertain whether it can support the ensuing subscription.
9.15.13.5.4. NumEventPaths
The number of event paths the client will have in the subscription request. This is a heuristic/hint to
allow a Proxy to better ascertain whether it can support the ensuing subscription.
This command is used during proxy discovery, as specified in Section 9.15.7, “Proxy Discovery &
Assignment Flow”.
SourceNodeId
This is the Node ID of the source the proxy can proxy for. This SHALL match the node id in the cor
responding Proxy Discover Request Command message.
NumHopsToSource
If the proxy currently subscribes to the source (either directly or indirectly), this indicates the num
ber of hops to the source. Sensible values start at 1, with 1 being used for a proxy that subscribes
directly to the source. If the proxy is not subscribed directly to the source, this value SHALL be one
greater than the NumHopsToSource for the given Node ID of the proxy it is subscribed to.
0 indicates that the proxy currently does not have a subscription to the source.
AvailableCapacity
A number indicating the number of Cluster Attribute Paths the proxy has space for support. This
allows for an absolute comparison of different memory capacities of candidate proxies by the client
in selecting the best possible candidate.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 523
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This cluster provides a means for a proxy-capable device to be told the set of Nodes it SHALL proxy.
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Rev Description
i
sio
n
1 Initial Release
9.15.14.2. Classification
Iden Name
tifier
0x004 ProxyConfiguration
2
9.15.14.4. Definitions
9.15.14.4.1. ConfigurationStruct
Quality: Fabric-Scoped
ProxyAllNodes
This field SHALL be set to to 'true' to indicate to the proxy that it SHALL proxy all nodes. When
'true', the SourceList attribute is ignored.
Page 524 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
SourceList
When ProxyAllNodes is 'false', this list contains the set of NodeIds of sources that this proxy SHALL
specifically proxy.
9.15.14.5.1. ConfigurationList
List of proxy configurations. There SHALL NOT be multiple entries in this list for the same fabric.
This cluster provides a means for a device to be told of the valid set of possible proxies that can
proxy subscriptions on its behalf as per Section 9.15.7, “Proxy Discovery & Assignment Flow”.
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Rev Description
i
sio
n
1 Initial Release
9.15.15.2. Classification
Iden Name
tifier
0x004 ValidProxies
4
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 525
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
9.15.15.4. Definitions
9.15.15.4.1. ValidProxyStruct
Quality: Fabric-Scoped
9.15.15.5.1. ValidProxyList
List of valid proxies that can proxy this Node. Each entry in this list is fabric-scoped.
9.15.15.6. Commands
0x00 Get Valid Proxies Request Client ⇒ Server Get Valid Prox O M
ies Response
This command is used during proxy discovery, as specified in Section 9.15.7, “Proxy Discovery &
Assignment Flow”.
This command is used during proxy discovery, as specified in Section 9.15.7, “Proxy Discovery &
Assignment Flow”.
0 ProxyN list[node-id] M
odeIdList
Page 526 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
9.15.15.6.3. ProxyNodeList
This contains the list of node ids stored in the ValidProxyList whose associated fabric matches the
accessing fabric.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 527
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 528 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Specifically, it details the encoding of the application payload for Matter messages that map to the
Interaction Model. The details of the message header are described in Section 4.4, “Message Frame
Format” and out of scope of this document.
10.2. Messages
10.2.1. IM Protocol Messages
Each Action in the IM specification SHALL be mapped to a message with a unique Protocol Opcode,
namespaced under the PROTOCOL_ID_INTERACTION_MODEL Protocol ID.
• Protocol ID = PROTOCOL_ID_INTERACTION_MODEL
Every action SHALL encode the fields specified in Section 8.2.5.1, “Common Action Information”.
The methods for encoding Common Action Information fields are:
For every field appearing in TLV-encoded data described by the schemas of the following sections,
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 529
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
and where a context-specific tag is used, any context-specific tag not listed in a given schema
SHALL be reserved for future use and SHALL be silently ignored by clients and servers if seen in a
payload.
The following Common Action Information fields are encoded into the message header:
The following Common Action Information fields are encoded as context tagged fields in the action
message payload. All action messages defined in Section 10.6, “Message Definitions” SHALL include
these tagged fields:
InteractionModelRevision 0xFF
10.2.3. Chunking
Chunking is the act of splitting an Action that contains attribute/event data, specifically ReportData
and WriteRequest actions, into multiple messages at logical boundaries due to the size limitations
imposed by IPv6 for UDP packets (see Section 4.4.4, “Message Size Requirements” for more details).
Since attribute/event data within Actions are already organized into a series of AttributeDataIBs
(for attributes) and EventDataIBs for event records, chunking entails maximally packing these
information blocks (IBs) into a series of 'data' messages.
To ensure in-order delivery of a chunked set of IBs, each data message requires a response before
the next data message can be sent. For ReportDataMessage and WriteRequestMessage, a StatusRe
sponseMessage and WriteResponseMessage are the respective response messages.
A MoreChunkedMessages flag SHALL be set on every data message except the last to convey to the
Page 530 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
receiver possible delivery of more chunked messages within a given Action. This is specified in the
WriteRequestMessage and ReportDataMessage.
While most data types can be easily encoded in this scheme to fit within a message, the fact that
lists can be of variable, and arbitrary, length can lead to complications. Specific strategies to encode
lists that are chunking friendly are provided in Section 10.5.4.3.1, “Lists”.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 531
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 532 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 533
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This section will outline their encoding onto TLV wire types, and their specific representations.
Page 534 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
boolean Boolean
All signed integer schema types SHALL be encoded using the TLV signed integer type. The specific
TLV element type (1-byte, 2-byte, 4-byte and 8-byte signed integer types) SHALL be selected auto
matically at runtime depending on the actual value.
In this regard, the actual width of the over-the-wire type can be narrower than the width specified
in schema.
E.g. a 32-bit value defined in schema will be encoded to a 1-byte TLV signed integer type if the value
doesn’t exceed (-128 to +127).
Similarly, all unsigned integer schema types SHALL be encoded using the TLV unsigned integer
type.
Both single and double precision floating point analog schema types SHALL be encoded using
equivalent TLV floating point types as well.
Enumerations SHALL be encoded using the TLV unsigned integer type, with the width selected
automatically at runtime based on the actual value.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 535
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Bitmaps SHALL be encoded using the TLV unsigned integer type, with the width selected automati
cally at runtime based on the actual value.
While strings are a derived data type, they SHALL be encoded using the TLV UTF-8 string type.
Structure types in schema SHALL be encoded using the TLV structure type.
16
Lists shall have a maximum size of 65535 elements (2 -1).
All derived types (with the exception of strings) SHALL be encoded according to their base type.
• A fully-qualified profile-specific tag when the MEI prefix encodes a manufacturer code. The
Vendor ID SHALL be set to the manufacturer code, the profile number set to 0 and the tag num
ber set to the MEI suffix.
This example cluster controls an imaginary mirrored disco ball, for the express purpose of disco
Page 536 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
dancing.
The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Revision Description
1 Initial Release
10.4.1.2. Classification
Identifier Name
10.4.1.4. Features
This cluster SHALL support the FeatureMap bitmap attribute as defined below.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 537
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
10.4.1.5. Attributes
• "max X" means range or maximum number of entries for a list or bytes for a string type
derived from octstr.
Quality
• "N" indicates the read only, write only or read & write value is non-volatile across
restarts.
• "F" indicates that the read-only value is static (fixed) and and will not change in the
future (like the ClusterRevision attribute).
Page 538 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• If there is no "N" or "F" then the value is volatile such that the value of the attribute may
change at some point in the future.
Access
• Access column indicates R=Read Only, RW=Read Write, R*W=Read [Write}, T=Timed
Write, View=Read, Operate=Write, Manage=Write, Administer=Write for ACL processing.
Conformance
Any attribute that is "M" is part of the base mandatory feature set. "O" is purely optional. To
support the Axis feature any attribute with "AX" conformance must be supported (see Data
Model). To support the Wobble feature any attribute with WBL conformance must be sup
ported (see Data Model). "AX | WBL" means either feature mandates this attribute. "AX &
WBL" would require both features supported to mandate. "[PAT]" means optional for Pattern
feature.
This SHALL indicate if the disco ball is operating. If the Run attribute is 0, then the Speed, Rotate
and WobbleSpeed attributes SHALL be 0.
This SHALL indicate the speed of the disco ball in revolutions per minute.
This SHALL indicate the tilt of the axis of the disco ball, in degrees.
This SHALL indicate the speed of the wobble rotation in revolutions per minute.
This is an ordered list of entries. Entries may be appended or prepended, but not inserted. This list
of patterns SHALL be used to operate the disco ball when the Pattern Request command is invoked.
10.4.1.6. Commands
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 539
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
**
ID Name Direction Response Access Conformance
*
0x00 Start Request client ⇒ server Y OT M
Upon receipt, this SHALL start the disco ball rotating using the data as follows:
Speed
Rotate
Page 540 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
If the passcode field is an empty string, this SHALL start the disco ball rotating using unprotected
(i.e patterns that have no passcode) pattern list entries in sequence to control the disco ball. When
the final entry in the list is processed the sequence SHALL restart at the first entry.
If the passcode field is not an empty string, only the patterns that correspond to the provided pass
code SHALL be invoked.
Upon receipt, this SHALL stop the disco ball rotating, and SHALL set the Run, Speed and Rotate
attributes to 0.
Upon receipt, this SHALL reverse the direction of the disco ball rotation. This command MAY gener
ate an error response of UNSUPPORTED_PATTERN.
Upon receipt, this SHALL wobble the disco ball on its axis at the speed in the WobbleSpeed
attribute. This command MAY generate an error response of UNSUPPORTED_PATTERN.
This command SHALL be generated in response to a Stats Request command. The data for this com
mand SHALL be as follows:
Last Run
This SHALL indicate the duration in seconds for the last time the disco ball was run.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 541
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Patterns
This SHALL indicate the number of pattern changes from the Pattern attribute attribute within the
last run time.
10.4.1.7. Events
1 Stopped INFO V M
This event SHALL be generated, when the Run attribute changes from false to true.
This event SHALL be generated, when the Run attribute changes from true to false.
This event SHALL be generated when the Rotate, Speed, or WobbleSpeed attributes are written or
changed locally as the result of processing the Pattern attribute list.
1 CurPattern Pattern M
Struct
The CurPattern field SHALL be the current pattern being run. The PrevPattern event field SHALL be
Page 542 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
the previous pattern run. If there is no previous pattern, then PrevPattern SHALL be null. The
NextPattern event field SHALL be the next in the pattern list. If there is no next pattern, the
NextPattern event field SHALL be null.
10.4.1.8.1. RotateEnum
10.4.1.8.2. PatternStruct
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 543
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Duration
This SHALL indicate the time in seconds for the disco ball to perform the pattern.
Rotate
This SHALL indicate the rotation direction or null to not change the direction.
Speed
This SHALL indicate the speed of the rotation, or null to not change the speed.
Axis
This SHALL indicate the angle of the axis of rotation, or null to not change the angle.
WobbleSpeed
This SHALL indicate the speed of the axis wobble, or null to not change the speed.
Passcode
An optionally specified passcode that if present, needs to always be provided in the Pattern Request
command to successfully invoke this pattern.
Listed below are cluster specific status codes only indicated for a particular instance of this cluster.
*Spec Writer Note: Start at 2, after the global error status values of 0 for SUCCESS and 1 for
FAILURE.
Page 544 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Revision Description
1 Initial Release
10.4.2.2. Classification
Identifier Name
10.4.2.4. Features
0 Axis M
1 Wobble M
2 Pattern M
3 Statistics M
4 Reverse M
10.4.2.5. Attributes
10.4.2.6. Events
2 PatternChange M
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 545
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Unless otherwise noted, all context tags SHALL be emitted in the order as defined in the appropri
ate specification. This is done to reduce receiver side complexity in having to deal with arbitrary
order tags.
10.5.2. AttributePathIB
• The contents of ClusterPathIB in the Interaction Model specification have been expanded here
for encoding efficiency.
• The ClusterPathIB Group field is omitted here (see Node field description).
10.5.2.1. EnableTagCompression
This tag is used to select between two different interpretations on the receiver when the Node, End
point, Cluster, Attribute tags are omitted:
• When false or not present, omission of any of the tags in question (with the exception of Node)
indicates wildcard semantics.
• When true, indicates the use of a tag compression scheme. In this case the value for any omitted
tag SHALL be set to the value for that tag in the last AttributePathIB that had EnableTagCompres
sion not present or set to false and was seen in a message that is part of the same interaction
model Action as the current message.
◦ The AttributePathIB the values end up coming from MAY appear in the same message (but
earlier in it) as the current AttributePathIB.
◦ The values that come from the previous AttributePathIB MAY still be missing. In that case,
with the exception of Node, they indicate wildcard semantics.
10.5.2.2. Node
• If the Group field is present in the IM representation, the Group ID is encoded in the DST field in
Page 546 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• The Node tag MAY be omitted if the target node of the path matches the NodeID of the server
involved in the interaction.
• Each of these tags can be omitted. The semantics of such omission depend on the value of
EnableTagCompression.
• When EnableTagCompression is false or not present, they have the following semantics:
This does not allow expressing all possible paths defined in the interaction model. Only paths that
can be expressed MAY be used.
• The ListIndex tag is nullable. The null value SHALL only be used when this AttributePathIB is
used in an AttributeDataIB and indicates a list append operation. See Section 10.5.4.3.1, “Lists”
for more details.
10.5.2.5. Examples
Path = [[ Endpoint = 10 ]]
Path = [[ ]]
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 547
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 548 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
10.5.3. DataVersionFilterIB
10.5.4. AttributeDataIB
• The Change field in the Interaction Model specification is not encoded directly. Instead, it is
encoded through the use of special values in the Path and Data fields (see Lists below.
10.5.4.1. DataVersion
This tag can be omitted if the value of EnableTagCompression in the Path field is true. In this case, the
value for the omitted tag SHALL be set to the value for that tag (if present) in the last Attribute
DataIB that had tag compression disabled (i.e EnableTagCompression not present or set to false) and
was seen in a message that is part of the same interaction model Action as the current message. If
this tag was not present and tag compression was disabled, it SHALL be interpreted as though a
data version was not specified in that, or subsequent AttributeDataIBs.
10.5.4.2. Path
In addition to the rules specified for AttributePathIB, the Attribute and 'Cluster' fields within that
element SHALL always be present.
10.5.4.3. Data
Upon path expansion of the value in Path, the hierarchy and structure of the encoded data for each
concrete Path SHALL be based on the schema description of the specified attribute within the speci
fied cluster. The TLV encoding of each element in the data SHALL follow the rules of encoding as
provided in Data Types.
10.5.4.3.1. Lists
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 549
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• A single AttributeDataIB containing a path to the list itself and Data that contains all items in the
list encoded as a TLV array. This option SHOULD be selected if it is possible to encode the
entirety of the list in a single AttributeDataIB that fits in a single message.
• A series of AttributeDataIBs, with the first containing a path to the list itself and Data that is an
empty array, which signals clearing the list, and subsequent AttributeDataIBs each containing a
path to each list item, in order, and Data that contains the value of the list item. This option
SHOULD be selected when it is not possible to encode the entirety of the list in a single Attribut
eDataIB that fits in a single message.
10.5.4.4. Examples
AttributeDataIB = {
DataVersion = 1,
Path = [[ Endpoint = 10, Cluster = Disco Ball, FieldID = Axis ]],
Data = 90
}
AttributeDataIB = {
DataVersion = 1,
Path = [[ Endpoint = 10, Cluster = Disco Ball, FieldID = Pattern, ListIndex = 1]],
Data = {
Duration = 900,
Rotate = Clockwise, // On the wire enum value (1) is used
Speed = 12,
Page 550 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Axis = 0,
// WobbleSpeed omitted; this cluster instance does not support Wobble
Passcode = "1234"
}
}
AttributeDataIB = {
DataVersion = 1,
Path = [[ Endpoint = 10, Cluster = Disco Ball, FieldID = Pattern, ListIndex =
null]],
Data = {
Duration = 100,
Rotate = Counterclockwise, // On the wire enum value (2) is used
Speed = 12,
Axis = 90,
// WobbleSpeed omitted; this cluster instance does not support Wobble
Passcode = "9876"
}
}
AttributeDataIB = {
DataVersion = 1,
Path = [[ Endpoint = 10, Cluster = Disco Ball, FieldID = Pattern, ListIndex = 0]],
Data = null,
}
AttributeDataIB = {
DataVersion = 1,
Path = [[ Endpoint = 10, Cluster = Disco Ball, FieldID = Pattern]],
Data = [[
{
Duration = 900,
Rotate = Clockwise, // On the wire enum value (1) is used
Speed = 12,
Axis = 0,
// WobbleSpeed omitted; this cluster instance does not support Wobble
Passcode = "1234"
}
{
Duration = 100,
Rotate = Counterclockwise, // On the wire enum value (2) is used
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 551
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Speed = 12,
Axis = 90,
// WobbleSpeed omitted; this cluster instance does not support Wobble
Passcode = "9876"
},
]]
}
AttributeDataIB1 = {
DataVersion = 1,
Path = [[ Endpoint = 10, Cluster = Disco Ball, FieldID = Pattern ]],
Data = [
]
}
AttributeDataIB2 = {
DataVersion = 1,
Path = [[ Endpoint = 10, Cluster = Disco Ball, FieldID = Pattern, ListIndex = 0]],
Data = {
Duration = 900,
Rotate = Clockwise, // On the wire enum value (1) is used
Speed = 12,
Axis = 0,
// WobbleSpeed omitted; this cluster instance does not support Wobble
Passcode = "1234"
}
}
AttributeDataIB3 = {
DataVersion = 1,
Path = [[ Endpoint = 10, Cluster = Disco Ball, FieldID = Pattern, ListIndex = 1]],
Data = {
Duration = 100,
Rotate = Counterclockwise, // On the wire enum value (2) is used
Speed = 12,
Axis = 90,
// WobbleSpeed omitted; this cluster instance does not support Wobble
Passcode = "9876"
}
}
10.5.5. AttributeReportIB
Page 552 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
10.5.6. EventFilterIB
• The Node tag MAY be omitted if the target node of the path matches the NodeID of the server
involved in the interaction.
10.5.7. ClusterPathIB
• The Node tag MAY be omitted if the target node of the path matches the NodeID of the server
involved in the interaction.
• If the Group field is present, the Group ID is encoded in the DST field in the message header and
elided from the encoding here.
10.5.8. EventPathIB
• The contents of ClusterPathIB have been expanded here to increase encoding efficiency.
• The Node tag MAY be omitted if the target node of the path matches the NodeID of the server
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 553
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Omission of the Endpoint, Cluster and Event tags SHALL have different interpretations depend
ing on where the EventPathIB is used. See Section 10.6.2.2, “EventRequests”, Section 10.6.4.1,
“EventRequests”, and Section 10.6.3.1, “EventReports” for the different contexts.
10.5.8.1. Examples
Select all events on a given cluster with urgency (used in Read/Subscribe requests):
10.5.9. EventDataIB
10.5.9.1. DeltaEpochTimestamp
This tag is present when delta encoding the UTC timestamp relative to a prior event in a given
Page 554 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
stream of events.
When this tag is present, all other timestamp tags SHALL be omitted.
10.5.9.2. DeltaSystemTimestamp
This tag is present when delta encoding the System timestamp relative to a prior event in a given
stream of events.
When this tag is present, all other timestamp tags SHALL be omitted.
10.5.9.3. Data
The TLV encoding of each field in the event SHALL follow the rules of encoding as provided in Data
Types.
10.5.9.4. Examples
Single event:
EventDataElement = {
Path = [[ Endpoint = 10, Cluster = Disco Ball, EventID = Started ]],
EventNumber = 1001,
Priority = INFO,
EpochTimestamp = 102340234293,
Data = {
// Started event contains no data
}
}
10.5.10. EventReportIB
10.5.11. CommandPathIB
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 555
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• The contents of ClusterPathIB have been expanded into the CommandPathIB here to increase
encoding efficiency.
• The Node field in the IM representation is the NodeID of the server involved in the interaction.
This is omitted in the encoding here since it is retrievable from the message layer for the mes
sage containing this element.
• The Group field in the IM representation is encoded in the DST field in the message header.
10.5.11.1. Examples
10.5.12. CommandDataIB
10.5.12.1. CommandFields
This field SHALL contain the full set of arguments as specified in the description of the command
request/response. The arguments SHALL follow the rules of encoding as provided in Data Types.
The entirety of the arguments SHALL be encapsulated in a TLV structure, with each argument
encoded appropriately using its field id as the context tag number.
If there are no arguments in the Request or Response, this tag MAY be omitted entirely.
Page 556 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
10.5.12.2. Examples
Request + Response:
RequestCommandElement = {
CommandPath = [[ Endpoint = 10, Cluster = Disco Ball, Command = Stats Request ]],
CommandData = {} // Empty CommandData MAY be encoded as an empty container
}
ResponseCommandElement = {
CommandPath = [[ Endpoint = 10, Cluster = Disco Ball, Command = Stats Response ]],
CommandData = {
LastRun = 100,
Patterns = 1
}
}
Empty request:
RequestCommandElement = {
CommandPath = [[ Endpoint = 10, Cluster = Disco Ball, Command = Stop Request ]]
// Empty CommandData MAY also be omitted entirely
}
10.5.13. InvokeResponseIB
10.5.14. CommandStatusIB
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 557
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
10.5.15. EventStatusIB
10.5.16. AttributeStatusIB
10.5.17. StatusIB
10.6.1. StatusResponseMessage
StatusResponseMessage
10.6.2. ReadRequestMessage
ReadRequestMessage
Page 558 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ReadRequestMessage
Attribut Optional Context Tag 0 Array of -
eRequests Attribut
ePathIB
EventRequests Optional Context Tag 1 Array of Event -
PathIB
EventFilters Optional Context Tag 2 Array of Event -
FilterIB
FabricFiltered Context Tag 3 boolean -
DataVersion Optional Context Tag 4 Array of -
Filters DataVersionFil
terIB
10.6.2.1. AttributeRequests
10.6.2.2. EventRequests
• Omission of any of the Endpoint, Cluster, Event tags indicates wildcard semantics.
10.6.2.3. EventFilters
10.6.2.4. DataVersionFilters
10.6.3. ReportDataMessage
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 559
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Multiple ReportDataMessages MAY be sent if a Report Data action does not fit into a single mes
sage.
• SuppressResponse SHALL NOT be set to true when either AttributeReports or EventReports are
non-empty arrays.
10.6.3.1. EventReports
A list of EventReportIB encoded as a TLV array that have certain compression schemes applied to
them to reduce redundant data.
• The Path tag SHALL utilize the same tag compression scheme as that utilized by the tags in
AttributePathIB. Specifically:
◦ The tag compression scheme SHALL only apply to the Node, Endpoint, Cluster and Event tags
within the EventPathIB element.
◦ The first element within the list SHALL specify all the necessary tags and hence serve as the
anchor on which subsequent items MAY rely for compression.
• The EventNumber MAY be omitted if it is exactly one greater than the EventNumber of the pre
vious Event.
• The 'Delta' tags SHALL be used to encode timestamps as deltas from the prior event to improve
compression of large timestamps.
10.6.3.1.1. Examples
EventReports = [
{
Path = [[ Endpoint = 10, Cluster = Disco Ball, EventID = Started ]],
ImportanceLevel = INFO,
Number = 1001,
UTCTimestamp = 102340234293,
Data = {
},
},
{
Path = [[ EventID = PatternChange]], // same endpoint and cluster but different
Page 560 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
event type
DeltaUTCTimestamp = 1000,
Data = {
PrevPattern = null,
CurPattern = {
Duration = 900,
Rotate = Clockwise, // On the wire enum value (1) is used
Speed = 12,
Axis = 0,
// WobbleSpeed omitted; this cluster instance does not support Wobble
Passcode = "1234"
},
NextPattern = {
Duration = 100,
Rotate = Counterclockwise, // On the wire enum value (2) is used
Speed = 12,
Axis = 90,
// WobbleSpeed omitted; this cluster instance does not support Wobble
Passcode = "9876"
}
}
}
{
Path = [[ ]], // same path as the previous path
DeltaUTCTimestamp = 900000000,
Data = {
PrevPattern = {
Duration = 900,
Rotate = Clockwise,
Speed = 12,
Axis = 0,
Passcode = "1234"
},
CurPattern = {
Duration = 100,
Rotate = Counterclockwise,
Speed = 12,
Axis = 90,
Passcode = "9876"
},
NextPattern = null
}
}
]
10.6.3.2. MoreChunkedMessages
This flag is set to ‘true’ when there are more chunked messages in a transaction.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 561
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
10.6.4. SubscribeRequestMessage
10.6.4.1. EventRequests
10.6.5. SubscribeResponseMessage
This is sent after all Reports have been sent back to the client. The sole purpose of this is to convey
the final set of parameters for the subscription back to the client.
SubscribeResponseMessage
10.6.6. WriteRequestMessage
Page 562 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
WriteRequestMessage
10.6.6.1. MoreChunkedMessages
• Like reports, multiple WriteRequestMessages MAY be sent in a single transaction if the set of
AttributeDataIBs have to be sent across multiple packets. All but the last message SHALL have
the MoreChunkedMessages flag set to true to indicate this situation. Before sending the next
WriteRequestMessage, the sender SHALL await the WriteResponseMessage associated with the
previous WriteRequestMessage.
• A Write Request action that is part of a Timed Write Interaction SHALL NOT be chunked.
10.6.7. WriteResponseMessage
WriteResponseMessage
10.6.8. TimedRequestMessage
TimedRequestMessage
10.6.9. InvokeRequestMessage
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 563
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
InvokeRequestMessage
10.6.10. InvokeResponseMessage
InvokeResponseMessage
Page 564 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This cluster provides attributes and events for determining basic information about Nodes, which
supports both Commissioning and operational determination of Node characteristics, such as Ven
dor ID, Product ID and serial number, which apply to the whole Node.
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Rev Description
i
sio
n
1 Initial Release
11.1.3. Classification
Iden Name
tifier
11.1.5. Features
11.1.6. Server
11.1.6.2. CapabilityMinimaStruct
This structure provides constant values related to overall global capabilities of this Node, that are
not cluster-specific.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 565
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
CaseSessionsPerFabric field
This field SHALL indicate the actual minimum number of concurrent CASE sessions that are sup
ported per fabric.
This value SHALL NOT be smaller than the required minimum indicated in Section 4.13.2.8, “Mini
mal Number of CASE Sessions”.
SubscriptionsPerFabric field
This field SHALL indicate the actual minimum number of concurrent subscriptions supported per
fabric.
This value SHALL NOT be smaller than the required minimum indicated in Section 8.5.1, “Subscribe
Transaction”.
11.1.6.3. Attributes
Page 566 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
DataModelRevision Attribute
The DataModelRevision attribute SHALL be set to the revision number of the Data Model against
which the Node is certified.
VendorName Attribute
The VendorName attribute SHALL specify a human readable (displayable) name of the vendor for
the Node.
VendorID Attribute
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 567
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ProductName Attribute
The ProductName attribute SHALL specify a human readable (displayable) name of the model for
the Node such as the model number (or other identifier) assigned by the vendor.
ProductID Attribute
The ProductID attribute SHALL specify the Product ID assigned by the vendor that is unique to the
specific product of the Node.
NodeLabel Attribute
The NodeLabel attribute SHALL represent a user defined name for the Node. This attribute
SHOULD be set during initial commissioning and MAY be updated by further reconfigurations.
Location Attribute
The Location attribute SHALL be an ISO 3166-1 alpha-2 code to represent the country, dependent
territory, or special area of geographic interest in which the Node is located at the time of the
attribute being set. This attribute SHALL be set during initial commissioning (unless already set)
and MAY be updated by further reconfigurations. This attribute MAY affect some regulatory aspects
of the Node’s operation, such as radio transmission power levels in given spectrum allocation
bands if technologies where this is applicable are used. The Location’s region code SHALL be inter
preted in a case-insensitive manner. If the Node cannot understand the location code with which it
was configured, or the location code has not yet been configured, it SHALL configure itself in a
region-agnostic manner as determined by the vendor, avoiding region-specific assumptions as
much as is practical. The special value XX SHALL indicate that region-agnostic mode is used.
HardwareVersion Attribute
The HardwareVersion attribute SHALL specify the version number of the hardware of the Node.
The meaning of its value, and the versioning scheme, are vendor defined.
HardwareVersionString Attribute
The HardwareVersionString attribute SHALL specify the version number of the hardware of the
Node. The meaning of its value, and the versioning scheme, are vendor defined. The HardwareVer
sionString attribute SHALL be used to provide a more user-friendly value than that represented by
the HardwareVersion attribute.
SoftwareVersion Attribute
This field SHALL contain the current version number for the software running on this Node. The
version number can be compared using a total ordering to determine if a version is logically newer
than another one. A larger value of SoftwareVersion is newer than a lower value, from the perspec
tive of software updates (see Section 11.19.3.3, “Availability of Software Images”). Nodes MAY query
this field to determine the currently running version of software on another given Node.
SoftwareVersionString Attribute
This field SHALL contain a current human-readable representation for the software running on the
Page 568 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Node. This version information MAY be conveyed to users. The maximum length of the Software
VersionString attribute is 64 bytes of UTF-8 characters. The contents SHOULD only use simple 7-bit
ASCII alphanumeric and punctuation characters, so as to simplify the conveyance of the value to a
variety of cultures.
ManufacturingDate Attribute
The ManufacturingDate attribute SHALL specify the date that the Node was manufactured. The first
8 characters SHALL specify the date of manufacture of the Node in international date notation
according to ISO 8601, i.e., YYYYMMDD, e.g., 20060814. The final 8 characters MAY include country,
factory, line, shift or other related information at the option of the vendor. The format of this infor
mation is vendor defined.
PartNumber Attribute
The PartNumber attribute SHALL specify a human-readable (displayable) vendor assigned part
number for the Node whose meaning and numbering scheme is vendor defined.
Multiple products (and hence PartNumbers) can share a ProductID. For instance, there may be dif
ferent packaging (with different PartNumbers) for different regions; also different colors of a prod
uct might share the ProductID but may have a different PartNumber.
ProductURL Attribute
The ProductURL attribute SHALL specify a link to a product specific web page. The syntax of the
ProductURL attribute SHALL follow the syntax as specified in RFC 3986 [https://tools.ietf.org/html/
rfc3986]. The specified URL SHOULD resolve to a maintained web page available for the lifetime of
the product. The maximum length of the ProductUrl attribute is 256 ASCII characters.
ProductLabel Attribute
The ProductLabel attribute SHALL specify a vendor specific human readable (displayable) product
label. The ProductLabel attribute MAY be used to provide a more user-friendly value than that rep
resented by the ProductName attribute. The ProductLabel attribute SHOULD NOT include the name
of the vendor as defined within the VendorName attribute.
SerialNumber Attribute
The SerialNumber attributes SHALL specify a human readable (displayable) serial number.
LocalConfigDisabled Attribute
The LocalConfigDisabled attribute SHALL allow a local Node configuration to be disabled. When
this attribute is set to True the Node SHALL disable the ability to configure the Node through an on-
Node user interface. The value of the LocalConfigDisabled attribute SHALL NOT in any way modify,
disable, or otherwise affect the user’s ability to trigger a factory reset on the Node.
Reachable Attribute
The Reachable attribute (when used) SHALL indicate whether the Node can be reached. For a
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 569
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
UniqueID Attribute
This attribute (when used) SHALL indicate a unique identifier for the device, which is constructed
in a manufacturer specific manner.
It MAY be constructed using a permanent device identifier (such as device MAC address) as basis.
In order to prevent tracking,
• it SHOULD NOT be identical to (or easily derived from) such permanent device identifier
CapabilityMinima Attribute
This attribute SHALL provide the minimum guaranteed value for some system-wide resource capa
bilities that are not otherwise cluster-specific and do not appear elsewhere. This attribute MAY be
used by clients to optimize communication with Nodes by allowing them to use more than the strict
minimum values required by this specification, wherever available.
The values supported by the server in reality MAY be larger than the values provided in this
attribute, such as if a server is not resource-constrained at all. However, clients SHOULD only rely
on the amounts provided in this attribute.
Note that since the fixed values within this attribute MAY change over time, both increasing and
decreasing, as software versions change for a given Node, clients SHOULD take care not to assume
forever unchanging values and SHOULD NOT cache this value permanently at Commissioning time.
11.1.6.4. Commands
11.1.6.5. Events
Page 570 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
StartUp Event
The StartUp event SHALL be generated by a Node as soon as reasonable after completing a boot or
reboot process. The StartUp event SHOULD be the first Data Model event recorded by the Node after
it completes a boot or reboot process.
0 Software uint32 M
Version
The SoftwareVersion field SHALL be set to the same value as the one available in the Software Ver
sion attribute of the Basic Information Cluster.
ShutDown Event
The ShutDown event SHOULD be generated by a Node prior to any orderly shutdown sequence on a
best-effort basis. When a ShutDown event is generated, it SHOULD be the last Data Model event
recorded by the Node. This event SHOULD be delivered urgently to current subscribers on a best-
effort basis. Any subsequent incoming interactions to the Node MAY be dropped until the comple
tion of a future boot or reboot process.
Leave Event
The Leave event SHOULD be generated by a Node prior to permanently leaving a given Fabric, such
as when the RemoveFabric command is invoked for a given fabric, or triggered by factory reset or
some other manufacturer specific action to disable or reset the operational data in the Node. When
a Leave event is generated, it SHOULD be assumed that the fabric recorded in the event is no longer
usable, and subsequent interactions targeting that fabric will most likely fail.
Upon receipt of Leave Event on a subscription, the receiving Node MAY update other nodes in the
fabric by removing related bindings, access control list entries and other data referencing the leav
ing Node.
The FabricIndex field SHALL contain the local Fabric Index of the fabric which the node is about to
leave.
ReachableChanged Event
This event SHALL be supported if and only if the Reachable attribute is supported.
This event (when supported) SHALL be generated when there is a change in the Reachable
attribute.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 571
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Its main use case is in the derived Bridged Device Basic Information cluster.
The data of this event SHALL contain the following information:
0 Reachable bool M
NewValue
The ReachableNewValue field SHALL indicate the value of the Reachable attribute after it was
changed.
The Group Key Management cluster manages group keys for the node. The cluster is scoped to the
node and is a singleton for the node. This cluster maintains a list of groups supported by the node.
Each group list entry supports a single group, with a single group ID and single group key. Duplicate
groups are not allowed in the list. Additions or removal of a group entry are performed via modifi
cations of the list. Such modifications require Administer privilege.
Each group entry includes a membership list of zero of more endpoints that are members of the
group on the node. Modification of this membership list is done via the Groups cluster, which is
scoped to an endpoint. Please see the System Model specification for more information on groups.
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Revision Description
1 Initial Release
11.2.3. Classification
Identifier Name
0x003F GroupKeyManagement
Page 572 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.2.5. Features
The following sections describe each feature in some detail. Further details are found within the
specification.
11.2.6.1. GroupKeyMapStruct
GroupId
This field uniquely identifies the group within the scope of the given Fabric.
GroupKeySetID
This field references the set of group keys that generate operational group keys for use with this
group, as specified in Section 4.15.3.5.1, “Group Key Set ID”.
A GroupKeyMapStruct SHALL NOT accept GroupKeySetID of 0, which is reserved for the IPK.
11.2.6.2. GroupKeySetStruct
2 EpochKey0 octstr 16 X S M
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 573
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
4 EpochKey1 octstr 16 X S M
6 EpochKey2 octstr 16 X S M
GroupKeySetID
This field SHALL provide the fabric-unique index for the associated group key set, as specified in
Section 4.15.3.5.1, “Group Key Set ID”.
GroupKeySecurityPolicy
This field SHALL provide the security policy for an operational group key set.
When CacheAndSync is not supported in the FeatureMap of this cluster, any action attempting to
write CacheAndSync to GroupKeySecurityPolicy SHALL fail with an INVALID_COMMAND error.
EpochKey0
This field, if not null, SHALL be the root credential used in the derivation of an operational group
key for epoch slot 0 of the given group key set. If EpochKey0 is not null, EpochStartTime0 SHALL
NOT be null.
EpochStartTime0
This field, if not null, SHALL define when EpochKey0 becomes valid as specified by Section 4.15.3,
“Epoch Keys”. Units are absolute UTC time in microseconds encoded using the epoch-us representa
tion.
Page 574 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
EpochKey1
This field, if not null, SHALL be the root credential used in the derivation of an operational group
key for epoch slot 1 of the given group key set. If EpochKey1 is not null, EpochStartTime1 SHALL
NOT be null.
EpochStartTime1
This field, if not null, SHALL define when EpochKey1 becomes valid as specified by Section 4.15.3,
“Epoch Keys”. Units are absolute UTC time in microseconds encoded using the epoch-us representa
tion.
EpochKey2
This field, if not null, SHALL be the root credential used in the derivation of an operational group
key for epoch slot 2 of the given group key set. If EpochKey2 is not null, EpochStartTime2 SHALL
NOT be null.
EpochStartTime2
This field, if not null, SHALL define when EpochKey2 becomes valid as specified by Section 4.15.3,
“Epoch Keys”. Units are absolute UTC time in microseconds encoded using the epoch-us representa
tion.
GroupKeyMulticastPolicy
This field specifies how the IPv6 Multicast Address SHALL be formed for groups using this opera
tional group key set.
The PerGroupID method maximizes filtering of multicast messages, so that receiving nodes receive
only multicast messages for groups to which they are subscribed. The AllNodes method minimizes
the number of multicast addresses to which a receiver node needs to subscribe.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 575
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.2.6.3. GroupInfoMapStruct
GroupId
This field uniquely identifies the group within the scope of the given Fabric.
Endpoints
This field provides the list of Endpoint IDs on the Node to which messages to this group SHALL be
forwarded.
GroupName
This field provides a name for the group. This field SHALL contain the last GroupName written for
a given GroupId on any Endpoint via the Groups cluster.
11.2.7. Server
11.2.7.1. Attributes
Page 576 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This attribute is a list of GroupKeyMapStruct entries. Each entry associates a logical Group Id with a
particular group key set.
This attribute is a list of GroupInfoMapStruct entries. Each entry provides read-only information
about how a given logical Group ID maps to a particular set of endpoints, and a name for the group.
The content of this attribute reflects data managed via the Groups cluster (see AppClusters), and is
in general terms referred to as the 'node-wide Group Table'.
The GroupTable SHALL NOT contain any entry whose GroupInfoMapStruct has an empty Endpoints
list. If a RemoveGroup or RemoveAllGroups command causes the removal of a group mapping from
its last mapped endpoint, the entire GroupTable entry for that given GroupId SHALL be removed.
MaxGroupsPerFabric
This attribute SHALL indicate the maximum number of groups that this node supports per fabric.
The length of the GroupKeyMap and GroupTable list attributes SHALL NOT exceed the value of the
MaxGroupsPerFabric attribute multiplied by the number of supported fabrics.
MaxGroupKeysPerFabric
This attribute SHALL indicate the maximum number of group key sets this node supports per fab
ric. This attribute SHALL be greater than 0 to reserve a slot for the IPK.
11.2.8. Client
11.2.9. Commands
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 577
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This command is used by Administrators to set the state of a given Group Key Set, including atomi
cally updating the state of all epoch keys.
0 GroupKeySet GroupKeySet M
Struct
Effect on Receipt
If the EpochKey0 field is null or its associated EpochStartTime0 field is null, then this command SHALL
fail with an INVALID_COMMAND status code sent back to the initiator.
If the EpochKey1 field is not null, its associated EpochStartTime1 field SHALL contain a later epoch
start time than the epoch start time found in the EpochStartTime0 field. Otherwise this command
SHALL fail with an INVALID_COMMAND status code sent back to the initiator.
If the EpochKey2 field is not null, then the EpochKey1 field SHALL NOT be null. Otherwise this com
mand SHALL fail with an INVALID_COMMAND status code sent back to the initiator.
If the EpochKey2 field is not null, its associated EpochStartTime2 field SHALL contain a later epoch
start time than the epoch start time found in the EpochStartTime1 field. Otherwise this command
SHALL fail with an INVALID_COMMAND status code sent back to the initiator.
If there exists a Group Key Set associated with the accessing fabric which has the same GroupKey
SetID as that provided in the GroupKeySet field, then the contents of that group key set SHALL be
replaced. A replacement SHALL be done by executing the equivalent of entirely removing the pre
vious Group Key Set with the given GroupKeySetID, followed by an addition of a Group Key Set with
the provided configuration. Otherwise, if the GroupKeySetID did not match an existing entry, a new
Group Key Set associated with the accessing fabric SHALL be created with the provided data. The
Group Key Set SHALL be written to non-volatile storage.
Upon completion, this command SHALL send a status code back to the initiator:
• If the Group Key Set was properly installed or updated on the Node, the status code SHALL be
set to SUCCESS.
• If there are insufficient resources on the receiver to store an additional Group Key Set, the sta
tus code SHALL be set to RESOURCE_EXHAUSTED (see group key limits);
This command is used by Administrators to read the state of a given Group Key Set.
Page 578 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Effect on Receipt
If there exists a Group Key Set associated with the accessing fabric which has the same GroupKey
SetID as that provided in the GroupKeySetID field, then the contents of that Group Key Set SHALL be
sent in a KeySetReadResponse command, but with the EpochKey0, EpochKey1 and EpochKey2 fields
replaced by null.
Otherwise, if the GroupKeySetID does not refer to a Group Key Set associated with the accessing fab
ric, then this command SHALL fail with a NOT_FOUND status code.
This command SHALL be generated in response to the KeySetRead command, if a valid Group Key
Set was found. It SHALL contain the configuration of the requested Group Key Set, with the
EpochKey0, EpochKey1 and EpochKey2 key contents replaced by null.
0 GroupKeySet GroupKeySet M
Struct
This command is used by Administrators to remove all state of a given Group Key Set.
Effect on Receipt
If there exists a Group Key Set associated with the accessing fabric which has the same GroupKey
SetID as that provided in the GroupKeySetID field, then the contents of that Group Key Set SHALL be
removed, including all epoch keys it contains.
If there exist any entries for the accessing fabric within the GroupKeyMap attribute that refer to the
GroupKeySetID just removed, then these entries SHALL be removed from that list.
This command SHALL fail with an INVALID_COMMAND status code back to the initiator if the GroupKey
SetID being removed is 0, which is the Key Set associated with the Identity Protection Key (IPK). The
only method to remove the IPK is usage of the RemoveFabric command or any operation which causes
the equivalent of a RemoveFabric to occur by side-effect.
This command SHALL send a SUCCESS status code back to the initiator on success, or NOT_FOUND if the
GroupKeySetID requested did not exist.
This command is used by Administrators to query a list of all Group Key Sets associated with the
accessing fabric.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 579
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Effect on Receipt
Upon receipt, this command SHALL iterate all stored GroupKeySetStruct associated with the access
ing fabric and generate a KeySetReadAllIndicesResponse command containing the list of GroupKey
SetID values from those structs.
This command SHALL be generated in response to KeySetReadAllIndices and it SHALL contain the
list of GroupKeySetID for all Group Key Sets associated with the scoped Fabric.
0 GroupKeySetIDs list[uint16] M
GroupKeySetIDs
This field references the set of group keys that generate operational group keys for use with the
accessing fabric.
Nodes should be expected to be deployed to any and all regions of the world. These global regions
may have differing common languages, units of measurements, and numerical formatting stan
dards. As such, Nodes that visually or audibly convey information need a mechanism by which they
can be configured to use a user’s preferred language, units, etc.
This cluster supports an interface to a Node. It provides attributes for determining and configuring
localization information that a Node SHALL utilize when conveying values to a user.
The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Revision Description
1 Initial Release
11.3.1.2. Classification
Page 580 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Identifier Name
0x002B LocalizationConfiguration
Attributes
The ActiveLocale attribute SHALL represent the locale that the Node is currently configured to use
when conveying information. The ActiveLocale attribute SHALL be a Language Tag as defined by
BCP47 [https://tools.ietf.org/rfc/bcp/bcp47.txt]. The ActiveLocale attribute SHALL have a default value
assigned by the Vendor and SHALL be a value contained within the SupportedLocales attribute list.
An attempt to write a value to ActiveLocale that is not present in SupportedLocales SHALL result in
a CONSTRAINT_ERROR error.
SupportedLocales Attribute
The SupportedLocales attribute SHALL represent a list of locale strings that are valid values for the
ActiveLocale attribute. The list SHALL NOT contain any duplicate entries. The ordering of items
within the list SHOULD NOT express any meaning.
Nodes should be expected to be deployed to any and all regions of the world. These global regions
may have differing preferences for how dates and times are conveyed. As such, Nodes that visually
or audibly convey time information need a mechanism by which they can be configured to use a
user’s preferred format.
This cluster supports an interface to a Node. It provides attributes for determining and configuring
time and date formatting information that a Node SHALL utilize when conveying values to a user.
The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 581
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Revision Description
1 Initial Release
11.4.1.2. Classification
Identifier Name
0x002c TimeFormatLocalization
11.4.2. Features
11.4.3.1. HourFormat
11.4.3.2. CalendarType
Page 582 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.4.4. Attributes
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 583
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The HourFormat attribute SHALL represent the format that the Node is currently configured to use
when conveying the hour unit of time. If provided, this value SHALL take priority over any unit
implied through the ActiveLocale Attribute.
The ActiveCalendarType attribute SHALL represent the calendar format that the Node is currently
configured to use when conveying dates. If provided, this value SHALL take priority over any unit
implied through the ActiveLocale Attribute.
The SupportedCalendarTypes attribute SHALL represent a list of CalendarType values that are sup
ported by the Node. The list SHALL NOT contain any duplicate entries. The ordering of items within
the list SHOULD NOT express any meaning. The maximum length of the SupportedCalendarTypes
list SHALL be equivalent to the number of enumerations within the CalendarType enum.
Nodes should be expected to be deployed to any and all regions of the world. These global regions
may have differing preferences for the units in which values are conveyed in communication to a
user. As such, Nodes that visually or audibly convey measurable values to the user need a mecha
nism by which they can be configured to use a user’s preferred unit.
This cluster supports an interface to a Node. It provides attributes for determining and configuring
the units that a Node SHALL utilize when conveying values in communication to a user.
The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Revision Description
1 Initial Release
Page 584 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.5.1.2. Classification
Identifier Name
0x002D UnitLocalization
11.5.2. Features
11.5.3.1. TempUnit
11.5.4. Attributes
The TemperatureUnit attribute SHALL indicate the unit for the Node to use only when conveying
temperature in communication to the user. If provided, this value SHALL take priority over any
unit implied through the ActiveLocale Attribute.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 585
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Rev Description
i
sio
n
1 Initial Release
11.6.2. Classification
Iden Name
tifier
11.6.4. Features
11.6.5. Server
11.6.5.1. Attributes
Sources Attribute
This list SHALL contain the set of all power sources capable of participating in the power system of
this Node. Each entry in the list SHALL be the endpoint number of an endpoint having a Power
Page 586 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Source cluster, which corresponds to a physical power source. The endpoint number SHALL be
unique within the list.
The order of power sources on a Node is defined by the Order attribute of its associated Power Source
cluster provided on the endpoint. List entries SHALL be sorted in increasing order, that is, an entry
with a lower order SHALL have a lower index than any entry with a higher order. Multiple entries
MAY have the same order, there are no restrictions on their relative sorting.
11.6.5.2. Events
11.6.6. Client
11.6.6.1. Attributes
11.6.6.2. Events
11.6.7. Commands
The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Rev Description
i
sio
n
1 Initial Release
11.7.2. Classification
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 587
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Iden Name
tifier
11.7.4. Features
11.7.5.1. WiredFault
Page 588 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.7.5.2. BatFault
11.7.5.3. BatChargeFault
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 589
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.7.6. Server
11.7.6.1. Attributes
Page 590 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 591
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 592 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Status
This field SHALL indicate the participation of this power source in providing power to the Node.
Order
This field SHALL indicate the relative preference with which the Node will select this source to pro
vide power. A source with a lower order SHALL be selected by the Node to provide power before
any other source with a higher order, if the lower order source is available (see Section 11.7.6.1.1,
“Status”).
Note, Order is read-only and therefore NOT intended to allow clients control over power source
selection.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 593
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Description
This field SHALL provide a user-facing description of this source, used to distinguish it from other
power sources, e.g. "DC Power", "Primary Battery" or "Battery back-up". This attribute SHALL NOT
be used to convey information such as battery form factor, or chemistry.
WiredAssessedInputVoltage
This field SHALL indicate the assessed RMS or DC voltage currently provided by the hard-wired
source, in mV (millivolts). A value of NULL SHALL indicate the Node is currently unable to assess
the value. If the wired source is not connected, but the Node is still able to assess a value, then the
assessed value MAY be reported.
WiredAssessedInputFrequency
This field SHALL indicate the assessed frequency of the voltage, currently provided by the hard-
wired source, in Hz. A value of NULL SHALL indicate the Node is currently unable to assess the
value. If the wired source is not connected, but the Node is still able to assess a value, then the
assessed value MAY be reported.
WiredCurrentType
This field SHALL indicate the type of current the Node expects to be provided by the hard-wired
source.
WiredAssessedCurrent
This field SHALL indicate the assessed instantaneous current draw of the Node on the hard-wired
source, in mA (milliamps). A value of NULL SHALL indicate the Node is currently unable to assess
the value. If the wired source is not connected, but the Node is still able to assess a value, then the
assessed value MAY be reported.
WiredNominalVoltage
This field SHALL indicate the nominal voltage, printed as part of the Node’s regulatory compliance
label in mV (millivolts), expected to be provided by the hard-wired source.
WiredMaximumCurrent
This field SHALL indicate the maximum current, printed as part of the Node’s regulatory compli
ance label in mA (milliamps), expected to be provided by the hard-wired source.
Page 594 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
WiredPresent
This field SHALL indicate if the Node detects that the hard-wired power source is properly con
nected.
ActiveWiredFaults
This field SHALL indicate the set of wired faults currently detected by the Node on this power
source. This set is represented as a list of WiredFault. When the Node detects a fault has been
raised, the appropriate WiredFault value SHALL be added to this list, provided it is not already
present. This list SHALL NOT contain more than one instance of a specific WiredFault value. When
the Node detects all conditions contributing to a fault have been cleared, the corresponding Wired
Fault value SHALL be removed from this list. An empty list SHALL indicate there are currently no
active faults. The order of this list SHOULD have no significance. Clients interested in monitoring
changes in active faults MAY subscribe to this attribute, or they MAY subscribe to WiredFault
Change.
BatVoltage
This field SHALL indicate the currently measured output voltage of the battery in mV (millivolts). A
value of NULL SHALL indicate the Node is currently unable to assess the value.
BatPercentRemaining
This field SHALL indicate the estimated percentage of battery charge remaining until the battery
will no longer be able to provide power to the Node. Values are expressed in half percent units,
ranging from 0 to 200. E.g. a value of 48 is equivalent to 24%. A value of NULL SHALL indicate the
Node is currently unable to assess the value.
BatTimeRemaining
This field SHALL indicate the estimated time in seconds before the battery will no longer be able to
provide power to the Node. A value of NULL SHALL indicate the Node is currently unable to assess
the value.
BatChargeLevel
This field SHALL indicate a coarse ranking of the charge level of the battery, used to indicate when
intervention is required.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 595
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
BatReplacementNeeded
This field SHALL indicate if the battery needs to be replaced. Replacement MAY be simple routine
maintenance, such as with a single use, non-rechargeable cell. Replacement, however, MAY also
indicate end of life, or serious fault with a rechargeable or even non-replaceable cell.
BatReplaceability
BatPresent
This field SHALL indicate whether the Node detects that the batteries are properly installed.
ActiveBatFaults
This field SHALL indicate the set of battery faults currently detected by the Node on this power
source. This set is represented as a list of BatFault. When the Node detects a fault has been raised,
the appropriate BatFault value SHALL be added to this list, provided it is not already present. This
list SHALL NOT contain more than one instance of a specific BatFault value. When the Node detects
all conditions contributing to a fault have been cleared, the corresponding BatFault value SHALL be
removed from this list. An empty list SHALL indicate there are currently no active faults. The order
of this list SHOULD have no significance. Clients interested in monitoring changes in active faults
MAY subscribe to this attribute, or they MAY subscribe to Section 11.7.6.2.2, “BatFaultChange
Event”.
BatReplacementDescription
This field SHALL provide a user-facing description of this battery, which SHOULD contain informa
tion required to identify a replacement, such as form factor, chemistry or preferred manufacturer.
BatCommonDesignation
This field SHALL indicate the ID of the common or colloquial designation of the battery, as specified
below. Valid values are enumerated in the table below. All other values are reserved.
Page 596 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 597
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 598 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
BatANSIDesignation
This field SHALL indicate the string representing the ANSI designation for the battery as specified
in ANSI C18.
BatIECType
This field SHALL indicate the string representing the IEC designation for the battery as specified in
IEC 60086.
BatApprovedChemistry
This field SHALL indicate the ID of the preferred chemistry of the battery source as specified below.
Valid values are enumerated in the table below. All other values are reserved.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 599
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 600 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
BatCapacity
This field SHALL indicate the preferred minimum charge capacity rating in mAh of individual,
user- or factory-serviceable battery cells or packs in the battery source.
BatQuantity
This field SHALL indicate the quantity of individual, user- or factory-serviceable battery cells or
packs in the battery source.
BatChargeState
This field SHALL indicate the current state of the battery source with respect to charging.
BatTimeToFullCharge
This field SHALL indicate the estimated time in seconds before the battery source will be at full
charge. A value of NULL SHALL indicate the Node is currently unable to assess the value.
BatFunctionalWhileCharging
This field SHALL indicate whether the Node can remain operational while the battery source is
charging.
BatChargingCurrent
This field SHALL indicate assessed current in mA (milliamps) presently supplied to charge the bat
tery source. A value of NULL SHALL indicate the Node is currently unable to assess the value.
ActiveBatChargeFaults
This field SHALL indicate the set of charge faults currently detected by the Node on this power
source. This set is represented as a list of BatChargeFault. When the Node detects a fault has been
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 601
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
raised, the appropriate BatChargeFault value SHALL be added to this list, provided it is not already
present. This list SHALL NOT contain more than one instance of a specific BatChargeFault value.
When the Node detects all conditions contributing to a fault have been cleared, the corresponding
BatChargeFault value SHALL be removed from this list. An empty list SHALL indicate there are cur
rently no active faults. The order of this list SHOULD have no significance. Clients interested in
monitoring changes in active faults MAY subscribe to this attribute, or they MAY subscribe to Sec
tion 11.7.6.2.3, “BatChargeFaultChange Event”.
11.7.6.2. Events
WiredFaultChange Event
The WiredFaultChange Event SHALL indicate a change in the set of wired faults currently detected
by the Node on this wired power source. This event SHALL correspond to a change in value of Sec
tion 11.7.6.1.11, “ActiveWiredFaults”. The change is represented as follows.
The Current field SHALL represent the set of faults currently detected, as per Section 11.7.6.1.11,
“ActiveWiredFaults”.
The Previous field SHALL represent the set of faults detected prior to this change event, as per Sec
tion 11.7.6.1.11, “ActiveWiredFaults”.
BatFaultChange Event
The BatFaultChange Event SHALL indicate a change in the set of battery faults currently detected
by the Node on this battery power source. This event SHALL correspond to a change in value of Sec
tion 11.7.6.1.19, “ActiveBatFaults”. The change is represented as follows.
Page 602 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Current field SHALL represent the set of faults currently detected, as per Section 11.7.6.1.19,
“ActiveBatFaults”.
The Previous field SHALL represent the set of faults detected prior to this change event, as per Sec
tion 11.7.6.1.19, “ActiveBatFaults”.
BatChargeFaultChange Event
The BatChargeFaultChange Event SHALL indicate a change in the set of charge faults currently
detected by the Node on this battery power source. This event SHALL correspond to a change in
value of Section 11.7.6.1.31, “ActiveBatChargeFaults”. The change is represented as follows.
The Current field SHALL represent the set of faults currently detected, as per Section 11.7.6.1.31,
“ActiveBatChargeFaults”.
The Previous field SHALL represent the set of faults detected prior to this change event, as per Sec
tion 11.7.6.1.31, “ActiveBatChargeFaults”.
11.7.7. Client
11.7.7.1. Attributes
11.7.7.2. Events
11.7.8. Commands
The following examples illustrate use of the Order attribute in the Power Source Cluster and its corre
spondence to the Sources list attribute of the Power Source Configuration Cluster, which together
describe the relationship between sources in a Node’s power system.
This example describes a design with symmetric, dual-redundant mains power sources, where the
system is powered by either one of the power sources. The Node must define two Power Source Clus
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 603
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ters, one for each mains source. Both must be on a non-zero endpoint. The system indicates no pref
erence for either source, so the sources have the same Order.
Both of these sources must be listed in the Power Source Configuration Cluster, with the sources
listed in any order.
Sources: [5,2]
This example describes a design with a built-in battery as the primary source, where the mains
power serves to keep the battery charged and act as back-up if the battery fails. The Node must
define two Power Source Clusters, one for the battery and another for the mains. Since the battery is
primary, it must have a lower Order than the mains source.
Description: "Mains"
Order: 1
Both of these sources must be listed in the Power Source Configuration Cluster, with the source on
Endpoint 2 listed first since it has the lowest Order.
Sources: [2,5]
This example describes a design where the system always runs from the a mains power source and
Page 604 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
the back-up battery is out-of-circuit until mains power fails at which point the back-up battery pow
ers the system. The Node must define two Power Source Clusters, one for the mains and another for
the battery. Since the mains source is primary, it must have a lower Order than the battery source.
Description: "Mains"
Order: 0
Both of these sources must be listed in the Power Source Configuration Cluster, with the source on
Endpoint 2 listed first since it has the lowest Order.
Sources: [2,5]
This example describes a design with a built-in battery as the primary source, and where two wired
sources, USB and a DC adapter, redundantly serve to keep the battery charged and act as back-up if
the battery fails. The Node must define three Power Source Clusters, one for each of the battery, the
USB source, and the DC adapter. Since the battery is primary, the battery source must have a lower
Order than the other sources. This system has no preference between the DC Adapter and USB
sources, so these sources will have the same Order.
Each of these sources must be listed in the Power Source Configuration Cluster, with the source on
Endpoint 2 listed first since it has the lowest Order.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 605
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Sources: [2,7,5]
This example describes a design with a mains powered core and battery powered peripheral. In
this example both power sources are required for proper operation. The Node must define two
Power Source Clusters, one for the wired source and one for the battery. Since both sources are
required, both sources will have the same Order. We will use Endpoint 2 for the mains power and
Endpoint 7 for the battery.
Each of these sources must be listed in the Power Source Configuration Cluster.
Sources: [7,2]
Network commissioning is part of the overall Node commissioning. The main goal of Network Com
missioning Cluster is to associate a Node with or manage a Node’s one or more network interfaces.
These network interfaces can include the following types.
• Wi-Fi (IEEE 802.11-2020)
• Ethernet (802.3)
• Thread (802.15.4)
An instance of the Network Commissioning Cluster only applies to a single network interface instance
present. An interface, in this context, is a unique entity that can have an IPv6 address assigned to it
and ingress and egress IP packets.
Page 606 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Rev Description
i
sio
n
1 Initial Release
11.8.3. Classification
Iden Name
tifier
11.8.5. Features
There SHALL be exactly one of the features bits in the set (WI, TH, ET) present in the FeatureMap
attribute, to describe the type of network technology supported by a given instance of this cluster.
The WiFiSecurity bitmap encodes the supported Wi-Fi security types present in the Security field of
the WiFiInterfaceScanResult.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 607
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Bit Description
0 Unencrypted
1 WEP
2 WPA-PERSONAL
3 WPA2-PERSONAL
4 WPA3-PERSONAL
The WiFiBand enum encodes a supported Wi-Fi frequency band present in the WiFiBand field of the
WiFiInterfaceScanResult.
Value Description
The NetworkInfo struct describes an existing network configuration, as provided in the Networks
attribute.
0 NetworkID octstr 1 to 32 M
1 Connected bool M
NetworkID field
• Network interface instance name at operating system (or equivalent unique name) for Ethernet.
The semantics of the NetworkID field therefore varies between network types accordingly. It con
tains SSID for Wi-Fi networks, Extended PAN ID (XPAN ID) for Thread networks and netif name for
Page 608 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Ethernet networks.
SSID in Wi-Fi is a collection of 1-32 bytes, the text encoding of which is not specified.
Implementations must be careful to support reporting byte strings without requir
ing a particular encoding for transfer. Only the commissioner should try to poten
NOTE tially decode the bytes. The most common encoding is UTF-8, however this is just a
convention. Some configurations may use Latin-1 or other character sets. A commis
sioner MAY decode using UTF-8, replacing encoding errors with "?" at the applica
tion level while retaining the underlying representation.
XPAN ID is a big-endian 64-bit unsigned number, represented on the first 8 octets of the octet string.
Connected field
This field SHALL indicate the connected status of the associated network, where "connected" means
currently linked to the network technology (e.g. Associated for a Wi-Fi network, media connected
for an Ethernet network).
These are the structures returned by Section 11.8.8.2, “ScanNetworks Command” for the network
interface types allowing scanning of available infrastructure (e.g. Wi-Fi and Thread). Interface
types where scanning does not apply (e.g. Ethernet) do not have a corresponding scan results struc
ture.
WiFiInterfaceScanResult structure
2 BSSID octstr 6 WI
The WiFiBand field, if present, MAY be used to differentiate overlapping channel number values
across different Wi-Fi frequency bands.
RSSI, if present, SHALL denote the signal strength in dBm of the associated scan result.
ThreadInterfaceScanResult structure
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 609
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
2 Network string 1 to 16 TH
Name
NetworkCommissioningStatus Enum
Page 610 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.8.7. Attributes
• This SHALL indicate the maximum number of network configuration entries that can be added,
based on available device resources.
• The length of the Networks attribute list SHALL be less than or equal to this value.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 611
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This attribute SHALL indicate the network configurations that are usable on the network interface
represented by this cluster server instance.
The order of configurations in the list reflects precedence. That is, any time the Node attempts to
connect to the network it SHALL attempt to do so using the configurations in Networks Attribute in
the order as they appear in the list.
The order of list items SHALL only be modified by the AddOrUpdateThreadNetwork, AddOrUp
dateWiFiNetwork and ReorderNetwork commands. In other words, the list SHALL be stable over time,
unless mutated externally.
Ethernet networks SHALL be automatically populated by the cluster server. Ethernet Network Com
missioning Cluster instances SHALL always have exactly one Section 11.8.6.3, “NetworkInfo struc
ture” instance in their Networks attribute. There SHALL be no way to add, update or remove Ether
net network configurations to those Cluster instances.
This attribute SHALL indicate the maximum duration taken, in seconds, by the network interface
on this cluster server instance to provide scan results.
This attribute SHALL indicate the maximum duration taken, in seconds, by the network interface
on this cluster server instance to report a successful or failed network connection indication. This
maximum time SHALL account for all operations needed until a successful network connection is
deemed to have occurred, including, for example, obtaining IP addresses, or the execution of neces
sary internal retries.
This attribute SHALL indicate whether the associated network interface is enabled or not. By
default all network interfaces SHOULD be enabled during initial commissioning (InterfaceEnabled
set to true`).
It is undefined what happens if InterfaceEnabled is written to false on the same interface as that
which is used to write the value. In that case, it is possible that the Administrator would have to
await expiry of the fail-safe, and associated recovery of network configuration to prior safe values,
before being able to communicate with the node again (see Section 11.9.7.2, “ArmFailSafe Com
mand”).
On Ethernet-only Nodes, there SHALL always be at least one of the Network Commissioning server
Page 612 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This attribute SHALL indicate the status of the last attempt either scan or connect to an operational
network, using this interface, whether by invocation of the ConnectNetwork command or by
autonomous connection after loss of connectivity or during initial establishment. If no such attempt
was made, or no network configurations exist in the Networks attribute, then this attribute SHALL
be set to null.
This attribute is present to assist with error recovery during Network commissioning and to assist
in non-concurrent networking commissioning flows.
This attribute SHALL indicate the NetworkID used in the last attempt to connect to an operational
network, using this interface, whether by invocation of the ConnectNetwork command or by
autonomous connection after loss of connectivity or during initial establishment. If no such attempt
was made, or no network configurations exist in the Networks attribute, then this attribute SHALL
be set to null.
If a network configuration is removed from the Networks attribute using the RemoveNetwork com
mand after a connection attempt, this field MAY indicate a NetworkID that is no longer configured
on the Node.
This attribute is present to assist with error recovery during Network commissioning and to assist
in non-concurrent networking commissioning flows.
This attribute SHALL indicate the ErrorValue used in the last failed attempt to connect to an opera
tional network, using this interface, whether by invocation of the ConnectNetwork command or by
autonomous connection after loss of connectivity or during initial establishment. If no such attempt
was made, or no network configurations exist in the Networks attribute, then this attribute SHALL
be set to null.
This attribute is present to assist with error recovery during Network commissioning and to assist
in non-concurrent networking commissioning flows.
11.8.8. Commands
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 613
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This command SHALL scan on the Cluster instance’s associated network interface for either of:
Scanning for available networks detects all networks of the type corresponding to the cluster server
instance’s associated network interface that are possible to join, such as all visible Wi-Fi access
points for Wi-Fi cluster server instances, all Thread PANs for Thread cluster server instances,
within bounds of the maximum response size.
Scanning for a specific network (i.e. directed scanning) takes place if a network identifier (e.g. Wi-Fi
SSID) is provided in the command arguments. Directed scanning SHALL restrict the result set to the
specified network only.
The client SHALL NOT expect the server to be done scanning and have responded with ScanNetwork
sResponse before ScanMaxTimeSeconds seconds have elapsed. Enough transport time affordances
for retries SHOULD be expected before a client determines the operation to have timed-out.
This command SHALL fail with a status code of BUSY if the server determines that it will fail to reli
ably send a response due to changes of networking interface configuration at runtime for the inter
face over which the command was invoked, or if it is currently unable to proceed with such an
operation.
Clients SHALL be resilient to a server that either does not support or cannot proceed with the Scan
Networks command.
Page 614 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
SSID field
This field, if present, SHALL contain the SSID for a directed scan of that particular Wi-Fi SSID. Oth
erwise, if the field is absent, or it is null, this SHALL indicate scanning of all BSSID in range. This
field SHALL be ignored for ScanNetworks invocations on non-Wi-Fi server instances.
Breadcrumb field
The Breadcrumb field, if present, SHALL be used to atomically set the Breadcrumb attribute in the
General Commissioning cluster on success of the associated command. If the command fails, the
Breadcrumb attribute in the General Commissioning cluster SHALL be left unchanged.
This command SHALL contain the status of the last ScanNetworks command, and the associated scan
results if the operation was successful.
Before generating a ScanNetworksResponse, the server SHALL set the LastNetworkingStatus attribute
value to the NetworkingStatus matching the response.
NetworkingStatus field
The NetworkingStatus field SHALL indicate the status of the last scan operation, taking one of these
values:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 615
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• OutOfRange: Network identifier was invalid (e.g. empty, too long, etc).
• RegulatoryError: Could not scan on any bands due to lack of regulatory configuration.
DebugText field
This field, if present and non-empty, MAY contain error information which MAY be communicated
to the user in case the NetworkingStatus was not Success. Its purpose is to help developers in trou
bleshooting errors and MAY go into logs or crash reports.
WiFiScanResults
If NetworkingStatus was Success, this field SHALL contain the Wi-Fi network scan results. The list
MAY be empty if none were found in range on the bands supported by the interface, or if directed
scanning had been used and the desired SSID was not found in range.
The maximum number of results present in the result list supported MAY depend on memory and
MAY contain a subset of possibilities, to avoid memory exhaustion on the cluster server and avoid
crossing the maximum command response size supported (see Section 4.4.4, “Message Size Require
ments”).
The order in which results are reported is implementation-specific. Results SHOULD be reported in
decreasing RSSI order, even if RSSI is not reported in the response, to maximize the likelihood that
most likely to be reachable elements are included within the size limits of the response.
ThreadScanResults
If NetworkingStatus was Success, this field SHALL contain the Thread network scan results. The list
MAY be empty if none were found in range on the bands supported by the interface.
The maximum number of results present in the result list supported MAY depend on memory and
MAY contain a subset of possibilities, to avoid memory exhaustion on the cluster server and avoid
crossing the maximum command response size supported (see Section 4.4.4, “Message Size Require
ments”).
The order in which results are reported is implementation-specific. Results SHOULD be reported in
decreasing LQI order, to maximize the likelihood that most likely to be reachable elements are
included within the size limits of the response.
If this command is received without an armed fail-safe context (see Section 11.9.7.2, “ArmFailSafe
Command”), then this command SHALL fail with a FAILSAFE_REQUIRED status code sent back to the
initiator.
The Credentials associated with the network are not readable after execution of this command, as
they do not appear in the Networks attribute list, for security reasons.
Page 616 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
SSID field
This field SHALL contain the SSID to which to attempt connection. Specific BSSID selection is not
supported by this cluster.
Credentials field
Credentials is the passphrase or PSK for the network (if any is needed).
Security type, cipher and credential format (passphrase or PSK) SHALL be contextually auto-
selected during execution of the ConnectNetwork Command and during subsequent operational
state network connections, based on the most secure Wi-Fi security type available within beacons
and probe responses for the set of all discovered BSSIDs for the configured SSID. The type of PSK or
passphrase used SHALL be inferred based on the length and contents of the Credentials field pro
vided, matching the security type chosen.
These lengths SHALL be contextually interpreted based on the security type of the BSSID where
connection will occur.
When the length of Credentials and available set of BSSID admits more than one option, such as the
presence of both WPA2 and WPA security type within the result set, WPA2 SHALL be considered
more secure.
Note that it MAY occur that a station cannot connect to a particular access point with higher secu
rity and selects a lower security connectivity type if the link quality is deemed to be too low to
achieve successful operation, or if all retry attempts fail.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 617
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Breadcrumb field
If this command is received without an armed fail-safe context (see Section 11.9.7.2, “ArmFailSafe
Command”), then this command SHALL fail with a FAILSAFE_REQUIRED status code sent back to the
initiator.
The XPAN ID in the OperationalDataset serves as the NetworkID for the network configuration to be
added or updated.
If the Networks attribute list does not contain an entry with the same NetworkID as the one provided
in the OperationalDataset, the operation SHALL be considered an addition, otherwise, it shall be
considered an update.
OperationalDataset field
The OperationalDataset field SHALL contain the Thread Network Parameters, including channel,
PAN ID, and Extended PAN ID.
The encoding for the OperationalDataset field is defined in the Thread specification.
Breadcrumb field
Processing an addition
If the Networks attribute list is already full, the command SHALL immediately respond with Net
Page 618 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
If any of the parameters in the OperationalDataset are invalid, the command SHALL immediately
respond with NetworkConfigResponse having NetworkingStatus status field set to a value different
than Success and consistent with the error.
If validation of all parameters has succeeded, this command SHALL append the configuration at the
end of the existing list in the Networks attribute, making this new network the one with least prior
ity.
On success, the NetworkConfigResponse command SHALL have its NetworkIndex field set to the 0-
based index of the entry in the Networks attribute that was just added.
If any of the parameters in the OperationalDataset are invalid, the command SHALL immediately
respond with NetworkConfigResponse having NetworkingStatus status field set to a value different
than Success and consistent with the error.
If validation of all parameters has succeeded, this command SHALL update the existing entry
indexed by NetworkId in the Networks attribute list, keeping existing position within the list.
On success, the NetworkConfigResponse command SHALL have its NetworkIndex field set to the 0-
based index of the entry in the Networks attribute that was just updated, and a NetworkingStatus
status field set to Success.
This command SHALL remove the network configuration from the Cluster if there was already a
network configuration with the same NetworkID. The relative order of the entries in the Networks
attribute list SHALL remain unchanged, except for the removal of the requested network configura
tion.
If this command is received without an armed fail-safe context (see Section 11.9.7.2, “ArmFailSafe
Command”), then this command SHALL fail with a FAILSAFE_REQUIRED status code sent back to the
initiator.
0 NetworkID octstr 1 to 32 M
If the Networks attribute does not contain a matching entry, the command SHALL immediately
respond with NetworkConfigResponse having NetworkingStatus status field set to NetworkIdNotFound.
On success, the NetworkConfigResponse command SHALL have its NetworkIndex field set to the 0-
based index of the entry in the Networks attribute that was just removed, and a NetworkingStatus
status field set to Success.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 619
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
NetworkID field
This field SHALL contain the NetworkID for the entry to remove: the SSID for Wi-Fi and XPAN ID
for Thread.
Breadcrumb field
This response command relates status information for some commands which require it as their
response command. See each individual cluster server command for the situations that may cause
a NetworkingStatus different than Success.
Before generating a NetworkConfigResponse, the server SHALL set the LastNetworkID attribute value
to the NetworkID that was used in the command for which an invocation caused the response to be
generated.
NetworkingStatus field
The NetworkingStatus field SHALL indicate the status of the last operation attempting to modify the
Networks attribute configuration, taking one of these values:
• OutOfRange: Network identifier was invalid (e.g. empty, too long, etc).
• BoundsExceeded: Adding this network configuration would exceed the limit defined by Section
11.8.7.1, “MaxNetworks Attribute”.
• NetworkIdNotFound: The network identifier was expected to be found, but was not found among
the added network configurations in Networks attribute.
DebugText field
Page 620 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
NetworkIndex
When the NetworkingStatus is Success, this field SHALL be present. It SHALL contain the 0-based
index of the entry in the Networks attribute that was last added, updated or removed successfully
by the associated request command.
This command SHALL attempt to connect to a network whose configuration was previously added
by either the AddOrUpdateWiFiNetwork or AddOrUpdateThreadNetwork commands. Network is
identified by its NetworkID.
0 NetworkID octstr 1 to 32 M
This command SHALL fail with a BUSY status code returned to the initiator if the server is currently
unable to proceed with such an operation, such as if it is currently attempting to connect in the
background, or is already proceeding with a prior ConnectNetwork.
If this command is received without an armed fail-safe context (see Section 11.9.7.2, “ArmFailSafe
Command”), then this command SHALL fail with a FAILSAFE_REQUIRED status code sent back to the
initiator.
The amount of time needed to determine successful or failing connectivity on the cluster server’s
associated interface is provided by the ConnectMaxTimeSeconds attribute. Clients SHALL NOT con
sider the connection to have timed-out until at least that duration has taken place. For non-concur
rent commissioning situations, the client SHOULD allow additional margin of time to account for its
delay in executing operational discovery of the Node once it is connected to the new network.
On successful connection, the entry associated with the given Network configuration in the Net
works attribute SHALL indicate its Connected field set to true, and all other entries, if any exist,
SHALL indicate their Connected field set to false.
On failure to connect, the entry associated with the given Network configuration in the Networks
attribute SHALL indicate its Connected field set to false.
The precedence order of any entry subject to ConnectNetwork SHALL NOT change within the Net
works attribute.
Even after successfully connecting to a network, the configuration SHALL revert to the prior state
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 621
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
1. Sufficient time to meet the minimum required time (see Section 11.8.7.4, “ConnectMaxTimeSec
onds Attribute”) that may be taken by the server to connect to the desired network.
2. Sufficient time to account for possible message-layer retries when a response is requested.
5. Not so long that, in error situations, the delay to reverting back to being discoverable for com
missioning with a previous configuration would cause significant user-perceived delay.
NetworkID field
This field SHALL contain the NetworkID for the entry used to configure the connection: the SSID for
Wi-Fi and XPAN ID for Thread.
Breadcrumb field
1 DebugText string O
Page 622 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Set the LastNetworkingStatus attribute value to the NetworkingStatus matching the response.
• Set the LastNetworkID attribute value to the NetworkID that was used in the ConnectNetwork
command which caused the response to be generated.
• Set the LastConnectErrorValue attribute value to the ErrorValue matching the response, includ
ing setting it to null if the ErrorValue is not applicable.
NetworkingStatus field
The NetworkingStatus field SHALL indicate the status of the last connection attempt, taking one of
these values:
• OutOfRange: Network identifier was invalid (e.g. empty, too long, etc).
• NetworkIdNotFound: The network identifier was not found among the added network configura
tions in Networks attribute.
DebugText field
ErrorValue field
◦ On any association failure during enabling of a network, the ErrorValue field SHALL be set to
the Status Code value that was present in the last frame related to association where Status
Code was not equal to zero and which caused the failure of a final retry attempt, if this final
failure was due to one of the following Management frames:
◦ Table 9-50 "Status Codes" in IEEE 802.11-2020 contains a description of all values possible,
which can unambiguously be used to determine the cause, such as an invalid security type,
unsupported rate, etc.
• Otherwise, the ErrorValue field SHALL contain an implementation-dependent value which MAY
be used by a reader of the structure to record, report or diagnose the failure.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 623
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This command SHALL set the specific order of the network configuration selected by its NetworkID
in the Networks attribute list to match the position given by NetworkIndex.
0 NetworkID octstr 1 to 32 M
NetworkID field
This field SHALL contain the NetworkID for the entry to reorder: the SSID for Wi-Fi and XPAN ID
for Thread.
NetworkIndex field
This field SHALL contain the 0-based index of the new desired position of the entry in the Networks
attribute.
Breadcrumb field
If the Networks attribute does not contain a matching entry, the command SHALL immediately
respond with NetworkConfigResponse having NetworkingStatus status field set to NetworkIdNotFound.
If the NetworkIndex field has a value larger or equal to the current number of entries in the Net
works attribute, the command SHALL immediately respond with NetworkConfigResponse having Net
workingStatus status field set to OutOfRange.
On success, the NetworkConfigResponse command SHALL have its NetworkIndex field set to the 0-
based index of the entry in the Networks attribute that was just updated, matching the incoming
NetworkIndex, and a NetworkingStatus status field set to Success.
The entry selected SHALL be inserted at the new position in the list. All other entries, if any exist,
SHALL be moved to allow the insertion, in a way that they all retain their existing relative order
between each other, with the exception of the newly re-ordered entry.
Re-ordering to the same NetworkIndex as the current location SHALL be considered as a success
and yield no visible changes of the Networks attribute.
Examples of re-ordering
To better illustrate the re-ordering operation, consider this initial state, exemplary of a Wi-Fi
device:
Page 624 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
0 FancyCat false
1 BlueDolphin true
2 Home-Guest false
3 WillowTree false
• NetworkId = Home-Guest
• NetworkIndex = 0
0 Home-Guest false
1 FancyCat false
2 BlueDolphin true
3 WillowTree false
In the above outcome, FancyCat and BlueDolphin moved "down" and Home-Guest became the highest
priority network in the list.
• NetworkId = FancyCat
• NetworkIndex = 3
0 BlueDolphin true
1 Home-Guest false
2 WillowTree false
3 FancyCat false
In the above outcome, BlueDolphin, Home-Guest and WillowTree moved "up" and FancyCat became the
lowest priority network in the list.
This section describes how to ensure deterministic and well-behaved network connectivity, both
when concurrent and non-concurrent commissioning flows (see Section 5.5, “Commissioning
Flows”) are used.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 625
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Since Matter employs IPv6 communication and DNS-SD for operational Discovery, there is a funda
mental aspect of multi-homing present, where a Node with multiple concurrently operated net
work interfaces device may be reachable using a variety of addresses on different network tech
nologies. Care SHOULD be taken by Administrators and Commissioners to avoid making strong
assumptions about single address reachability. Administrators and Commissioners SHOULD be pre
pared to attempt reachability tests against specific network technologies if the final desired state of
networking requires a specific reachable path.
The primary network interface of a Node SHOULD be the one present on the root node endpoint
(see Section 9.2, “Endpoint Composition”). This interface SHOULD be the one most likely to yield an
operational reachable state if appropriately configured. Secondary network interfaces SHOULD be
additional technologies that MAY increase reachability or support a stub router feature.
A Node MAY be configured in such a way that there are no Network Commissioning cluster server
instances present, in which case the remainder of this section SHALL NOT apply.
When at least one Network Commissioning cluster server instance (hereafter, "Network Commis
sioning cluster" for short), the following behavior SHOULD take place for each interface associated
with a Network Commissioning cluster, in increasing order of associated endpoint number:
1. If the Network Commissioning cluster’s InterfaceEnabled attribute is set to false, skip the
processing the interface altogether.
2. Set all configurations of the Networks attribute entry’s Connected field to false
a. If there was a "last known good" network configuration, that is, the one which was both last
successfully connected during prior boot and over which at least one secure channel
exchange message was received, it MAY be used as the first attempt. Otherwise, iterate
through all configurations in the precedence order of the list, starting at index 0.
4. Attempt to connect to the technology, using the current iteration’s network configuration
5. On success, set the Connected state of the list entry to true, and stop attempting further connec
tion. Otherwise, on failure, move to the next configuration.
Page 626 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
◦ The list SHALL be tentative until committed by successful invocation of the Commissioning
Complete command, or reverted to prior configuration by the expiry of the Fail-Safe timer
(see Section 11.9.7.2, “ArmFailSafe Command”).
• A current candidate configuration, the subject of the most recent ConnectNetwork command.
◦ There SHALL NOT be new connections to any network during the Fail-Safe timer period
unless attempted by invocation of the ConnectNetwork command.
Failures of connection during the Fail-Safe timer window SHALL cause the Node to follow the steps
in Section 5.5.1, “Commissioning Flows Error Handling” after recording the cause of the failure in
the LastNetworkingStatus, LastNetworkID and LastConnectErrorValue attributes.
After Commissioning or reconfiguration ends in failure due to expiry of the Fail-Safe timer, the
Node SHALL revert to the network configuration present prior to the Fail-Safe timer being armed.
Because it is possible that multiple network configurations being present could successfully result
in an established operational network connection, but only some of these configurations actually
have the desired reachability by Administrators on certain fabrics, the following precautions
SHOULD be taken to avoid a situation where a Node forever dwells on a network with successful
connectivity, but no reachable peers:
• Commissioners and Administrators SHOULD avoid configuring Nodes in ways where it may be
ambiguous to end-users which final network configuration will take place.
• Cluster servers on devices with no user interface to express current network configuration to
an end-user SHOULD be configured to only support a single entry in the Networks attribute.
• Upon discovering that a user is desiring to configure a Network in a way that would change the
set of configured networks, and there are multiple fabrics configured in the Fabrics attribute of
the Node Operational Credentials cluster, the client SHOULD notify the user that some other
Administrators on other fabrics MAY fail to reach the Node and report connectivity failures.
This cluster also represents responsibilities related to commissioning that don’t well fit other com
missioning clusters, like Section 11.8, “Network Commissioning Cluster”. It also hosts functionalities
those other clusters may depend on.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 627
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Revision Description
1 Initial Release
11.9.2. Classification
Iden Name
tifier
11.9.4. Features
This enumeration is used by several response commands in this cluster to indicate particular
errors.
0 OK M No error
Page 628 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This structure provides some constant values that MAY be of use to all commissioners.
FailSafeExpiryLengthSeconds field
This field SHALL contain a conservative initial duration (in seconds) to set in the FailSafe for the
commissioning flow to complete successfully. This may vary depending on the speed or sleepiness
of the Commissionee. This value, if used in the ArmFailSafe command’s ExpiryLengthSeconds field
SHOULD allow a Commissioner to proceed with a nominal commissioning without having to-rearm
the fail-safe, with some margin.
MaxCumulativeFailsafeSeconds field
This field SHALL contain a conservative value in seconds denoting the maximum total duration for
which a fail safe timer can be re-armed. See Section 11.9.7.2.1, “Fail Safe Context”.
The value of this field SHALL be greater than or equal to the FailSafeExpiryLengthSeconds. Absent
additional guidelines, it is RECOMMENDED that the value of this field be aligned with Section
5.4.2.3, “Announcement Duration” and default to 900 seconds.
This enumeration is used by the RegulatoryConfig and LocationCapability attributes to indicate pos
sible radio usage.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 629
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
2 IndoorOutdoor M Indoor/Outdoor
This attribute allows for the storage of a client-provided small payload which Administrators and
Commissioners MAY write and then subsequently read, to keep track of their own progress. This
MAY be used by the Commissioner to avoid repeating already-executed actions upon re-establishing
a commissioning link after an error.
On start/restart of the server, such as when a device is power-cycled, this attribute SHALL be reset
to zero.
Some commands related to commissioning also have a side-effect of updating or resetting this
attribute and this is specified in their respective functional descriptions.
The format of the value within this attribute is unspecified and its value is not otherwise used by
the functioning of any cluster, other than being set as a side-effect of commands where this behav
ior is described.
This attribute SHALL describe critical parameters needed at the beginning of commissioning flow.
Page 630 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This attribute SHALL indicate the regulatory configuration for the product.
Note that the country code is part of Basic Information Cluster and therefore NOT listed on the Reg
ulatoryConfig attribute.
LocationCapability is statically set by the manufacturer and indicates if this Node needs to be told
an exact RegulatoryLocation. For example a Node which is "Indoor Only" would not be certified for
outdoor use at all, and thus there is no need for a commissioner to set or ask the user about
whether the device will be used inside or outside. However a device which states its capability is
"Indoor/Outdoor" means it would like clarification if possible.
For Nodes without radio network interfaces (e.g. Ethernet-only devices), the value IndoorOutdoor
SHALL always be used.
The default value of the RegulatoryConfig attribute is the value of LocationCapability attribute. This
means devices always have a safe default value, and Commissioners which choose to implement
smarter handling can.
This attribute SHALL indicate whether this device supports "concurrent connection flow" commis
sioning mode (see Section 5.5, “Commissioning Flows”). If false, the device only supports "non-con
current connection flow" mode.
11.9.7. Commands
For all client-to-server commands in this cluster, if the client deems that it has timed-out in receiv
ing the corresponding response command to any request, the corresponding step in the commis
sioning flow SHALL be considered to have failed, with the error handled as described in Section
5.5.1, “Commissioning Flows Error Handling”.
Some response commands have a DebugText argument which SHOULD NOT be presented directly in
user interfaces. Its purpose is to help developers in troubleshooting errors. The value MAY go into
logs or crash reports.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 631
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
1 Breadcrumb uint64 M
If the fail-safe timer is not currently armed, the commissioning window is open, and the command
was received over a CASE session, the command SHALL leave the current fail-safe state unchanged
and immediately respond with an ArmFailSafeResponse containing an ErrorCode value of Busy
WithOtherAdmin. This is done to allow commissioners, which use PASE connections, the opportu
nity to use the failsafe during the relatively short commissioning window.
Otherwise, the command SHALL arm or re-arm the "fail-safe timer" with an expiry time set for a
duration of ExpiryLengthSeconds, or disarm it, depending on the situation:
• If ExpiryLengthSeconds is 0 and the fail-safe timer was already armed and the accessing fabric
matches the Fabric currently associated with the fail-safe context, then the fail-safe timer
SHALL be immediately expired (see further below for side-effects of expiration).
• If ExpiryLengthSeconds is 0 and the fail-safe timer was not armed, then this command invocation
SHALL lead to a success response with no side-effects against the fail-safe context.
• If ExpiryLengthSeconds is non-zero and the fail-safe timer was not currently armed, then the the
fail-safe timer SHALL be armed for that duration.
• If ExpiryLengthSeconds is non-zero and the fail-safe timer was currently armed, and the access
ing Fabric matches the fail-safe context’s associated Fabric, then the fail-safe timer SHALL be re-
armed to expire in ExpiryLengthSeconds.
• Otherwise, the command SHALL leave the current fail-safe state unchanged and immediately
Page 632 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The value of the Breadcrumb field SHALL be written to the Breadcrumb Attribute on successful exe
cution of the command.
If the receiver restarts unexpectedly (e.g., power interruption, software crash, or other reset) the
receiver SHALL behave as if the fail-safe timer expired and perform the sequence of clean-up steps
listed below.
On successful execution of the command, the ErrorCode field of the ArmFailSafeResponse SHALL be
set to OK.
When first arming the fail-safe timer, a 'Fail Safe Context' SHALL be created on the receiver, to
track the following state information while the fail-safe is armed:
• The state of all Network Commissioning Networks attribute configurations, to allow recovery of
connectivity after Fail-Safe expiry.
• A Fabric Index for the fabric-scoping of the context, starting at the accessing fabric index for the
ArmFailSafe command, and updated with the Fabric Index associated with an AddNOC com
mand or an UpdateNOC command being invoked successfully during the ongoing Fail-Safe
timer period.
• The operational credentials associated with any Fabric whose configuration is affected by the
UpdateNOC command.
• Optionally: the previous state of non-fabric-scoped data that is mutated during the fail-safe
period.
Note the following to assist in understanding the above state-keeping, which summarizes other nor
mative requirements in the respective sections:
• The AddNOC command can only be invoked once per contiguous non-expiring fail-safe timer
period, and only if no UpdateNOC command was previously processed within the same fail-safe
timer period.
• The UpdateNOC command can only be invoked once per contiguous non-expiring fail-safe timer
period, can only be invoked over a CASE session, and only if no AddNOC command was previously
processed in the same fail-safe timer period.
On creation of the Fail Safe Context a second timer SHALL be created to expire at MaxCumulative
FailsafeSeconds as specified in BasicCommissioningInfo. This Cumulative Fail Safe Context timer
(CFSC timer) serves to limit the lifetime of any particular Fail Safe Context; it SHALL NOT be
extended or modified on subsequent invocations of ArmFailSafe associated with this Fail Safe Con
text. Upon expiry of the CFSC timer, the receiver SHALL execute cleanup behavior equivalent to
that of fail-safe timer expiration as detailed in Section 11.9.7.2.2, “Behavior on expiry of Fail-Safe
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 633
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
timer”. Termination of the session prior to the expiration of that timer for any reason (including a
successful end of commissioning or an expiry of a fail-safe timer) SHALL also delete the CFSC timer.
If the fail-safe timer expires before the CommissioningComplete command is successfully invoked,
the following sequence of clean-up steps SHALL be executed, in order, by the receiver:
1. Terminate any open PASE secure session by clearing any associated Secure Session Context at
the Server.
2. Revoke the temporary administrative privileges granted to any open PASE session (see Section
6.6.2.8, “Bootstrapping of the Access Control Cluster”) at the Server.
3. If an AddNOC or UpdateNOC command has been successfully invoked, terminate all CASE sessions
associated with the Fabric whose Fabric Index is recorded in the Fail-Safe context (see Section
11.9.7.2, “ArmFailSafe Command”) by clearing any associated Secure Session Context at the
Server.
4. Reset the configuration of all Network Commissioning Networks attribute to their state prior to
the Fail-Safe being armed.
5. If an UpdateNOC command had been successfully invoked, revert the state of operational key
pair, NOC and ICAC for that Fabric to the state prior to the Fail-Safe timer being armed, for the
Fabric Index that was the subject of the UpdateNOC command.
6. If an AddNOC command had been successfully invoked, achieve the equivalent effect of invoking
the RemoveFabric command against the Fabric Index stored in the Fail-Safe Context for the Fab
ric Index that was the subject of the AddNOC command. This SHALL remove all associations to
that Fabric including all fabric-scoped data, and MAY possibly factory-reset the device depend
ing on current device state. This SHALL only apply to Fabrics added during the fail-safe period
as the result of the AddNOC command.
7. Remove any RCACs added by the AddTrustedRootCertificate command that are not currently
referenced by any entry in the Fabrics attribute.
9. Optionally: if no factory-reset resulted from the previous steps, it is RECOMMENDED that the
Node rollback the state of all non fabric-scoped data present in the Fail-Safe context.
0 ErrorCode Commis OK M
sioningError
ErrorCode field
This field SHALL contain the result of the operation, based on the behavior specified in the func
tional description of the ArmFailSafe command.
Page 634 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
DebugText field
This SHALL add or update the regulatory configuration in the RegulatoryConfig Attribute to the
value provided in the NewRegulatoryConfig field.
0 NewRegula Regulatory M
toryConfig Location
Type
1 CountryCode string 2 M
2 Breadcrumb uint64 M
The CountryCode field SHALL conforms to ISO 3166-1 alpha-2 and SHALL be used to set the Location
attribute reflected by the Basic Information Cluster.
If the server limits some of the values (e.g. locked to a particular country, with no regulatory data
for others), then setting regulatory information outside a valid country or location SHALL still set
the Location attribute reflected by the Basic Information Cluster configuration, but the SetRegulato
ryConfigResponse replied SHALL have the ErrorCode field set to ValueOutsideRange error.
If the LocationCapability attribute is not Indoor/Outdoor and the NewRegulatoryConfig value received
does not match either the Indoor or Outdoor fixed value in LocationCapability, then the SetRegulato
ryConfigResponse replied SHALL have the ErrorCode field set to ValueOutsideRange error and the Reg
ulatoryConfig attribute and associated internal radio configuration SHALL remain unchanged.
The Breadcrumb field SHALL be used to atomically set the Breadcrumb attribute on success of this
command, when SetRegulatoryConfigResponse has the ErrorCode field set to OK. If the command
fails, the Breadcrumb attribute SHALL be left unchanged.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 635
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
0 ErrorCode CommissioningEr OK M
ror
ErrorCode field
This field SHALL contain the result of the operation, based on the behavior specified in the func
tional description of the SetRegulatoryConfig command.
DebugText field
This command signals the Server that the Commissioner or Administrator has successfully com
pleted all steps needed during the Fail-Safe period, such as commissioning (see Section 5.5, “Com
missioning Flows”) or other Administrator operations requiring usage of the Fail Safe timer. It
ensures that the Server is configured in a state such that it still has all necessary elements to be
fully operable within a Fabric, such as ACL entries (see Access Control Cluster) and operational cre
dentials (see Section 6.4, “Node Operational Credentials Specification”), and that the Node is reach
able using CASE (see Section 4.13.2, “Certificate Authenticated Session Establishment (CASE)”) over
an operational network.
This command is fabric-scoped, so cannot be issued over a session that does not have an associated
fabric, i.e. over PASE session prior to an AddNOC command. In addition, this command is only per
mitted over CASE and must be issued by a node associated with the ongoing Fail-Safe context. An
ErrorCode of InvalidAuthentication SHALL be responded to the invoker if the CommissioningCom
plete command was received outside a CASE session (e.g., over Group messaging, or PASE session
after AddNOC), or if the accessing fabric is not the one associated with the ongoing Fail-Safe con
text.
This command SHALL only result in success with an ErrorCode value of OK in the Commissioning
CompleteResponse if received over a CASE session and the accessing fabric index matches the Fab
ric Index associated with the current Fail-Safe context. In other words:
• After an AddNOC command has been successfully invoked, the CommissioningComplete com
Page 636 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
mand must originate from the Fabric which was joined through the execution of that command,
which updated the Fail-Safe context’s Fabric Index.
1. The Fail-Safe timer associated with the current Fail-Safe context SHALL be disarmed.
3. Any temporary administrative privileges automatically granted to any open PASE session
SHALL be revoked (see Section 6.6.2.8, “Bootstrapping of the Access Control Cluster”).
4. The Secure Session Context of any PASE session still established at the Server SHALL be cleared.
0 ErrorCode CommissioningEr OK M
ror
ErrorCode field
This field SHALL contain the result of the operation, based on the behavior specified in the func
tional description of the CommissioningComplete command.
DebugText field
This Cluster supports an interface to a Node. It provides commands for retrieving unstructured
diagnostic logs from a Node that may be used to aid in diagnostics. It will often be the case that
unstructured diagnostic logs will be Node-wide and not specific to any subset of Endpoints. When
present, this Cluster SHALL be implemented once for the Node. The Node SHOULD also implement
the BDX Initiator and BDX Sender roles as defined in the BDX Protocol.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 637
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The global ClusterRevision Attribute value SHALL be the highest revision number in the table
below.
Rev Description
i
sio
n
1 Initial Release
11.10.3. Classification
Iden Name
tifier
11.10.5. Features
11.10.6.1. Intent
0 EndUserSupport M
1 NetworkDiag M
2 CrashLogs M
EndUserSupport
SHALL indicate that the purpose of the log request is to retrieve logs for the intention of providing
support to an end-user.
Page 638 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
NetworkDiag
SHALL indicate that the purpose of the log request is to diagnose the network(s) for which the Node
is currently commissioned (and/or connected) or has previously been commissioned (and/or con
nected).
CrashLogs
SHALL indicate that the purpose of the log request is to retrieve any crash logs that may be present
on a Node.
11.10.6.2. Status
0 Success M
1 Exhausted M
2 NoLogs M
3 Busy M
4 Denied M
Success
Exhausted
SHALL be used when a BDX session is requested, however, all available logs were provided in a
LogContent field.
NoLogs
SHALL be used if the Node does not currently have any diagnostic logs of the requested type
(Intent) to transfer.
Busy
SHALL be used if the Node is unable to handle the request (e.g. in the process of another transfer)
and the Client SHOULD re-attempt the request later.
Denied
SHALL be used if the Node is denying the current transfer of diagnostic logs for any reason.
TransferProtocol
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 639
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
0 ResponsePayload M
1 BDX M
• ResponsePayload
SHALL be used by a Client to request that logs are transferred using the LogContent attribute of the
response
• BDX
SHALL be used by a Client to request that logs are transferred using BDX as defined in BDX Protocol
11.10.7. Server
11.10.7.1. Attributes
11.10.7.2. Events
11.10.8. Client
11.10.8.1. Attributes
11.10.8.2. Events
11.10.9. Commands
Table 105. Diagnostic Logs Cluster supported Commands
11.10.9.1. RetrieveLogsRequest
Reception of this command starts the process of retrieving diagnostic logs from a Node.
Page 640 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Intent
• The Intent field SHALL indicate why the diagnostic logs are being retrieved from the Node. A
Node MAY utilize this field to selectively determine the logs to transfer.
RequestedProtocol
• The RequestedProtocol field SHALL be used to indicate how the log transfer is to be realized. If
the field is set to BDX, then if the receiving Node supports BDX it SHALL attempt to use BDX to
transfer any potential diagnostic logs; if the receiving Node does not support BDX then the Node
SHALL follow the requirements defined for a TransferProtocol of ResponsePayload. If this field is
set to ResponsePayload the receiving Node SHALL only utilize the LogContent field of the
RetreiveLogsResponse command to transfer diagnostic log information.
TransferFileDesignator
• The TransferFileDesignator field SHALL be present if the RequestedProtocol is BDX. The Transfer
FileDesignator SHALL be set as the File Designator of the BDX transfer if initiated.
Effect on Receipt
On receipt of this command, the Node SHALL respond with a RetrieveLogsResponse command.
If the RequestedProtocol is set to BDX the Node SHOULD immediately realize the RetrieveLogsRe
sponse command by initiating a BDX Transfer, sending a BDX SendInit message with the File Desig
nator field of the message set to the value of the TransferFileDesignator field of the RetrieveLogsRe
quest. On reception of a BDX SendAccept message the Node SHALL send a RetrieveLogsResponse
command with a Status field set to Success and proceed with the log transfer over BDX. If a failure
StatusReport is received in response to the SendInit message, the Node SHALL send a RetrieveL
ogsResponse command with a Status of Denied. In the case where the Node is able to fit the entirety
of the requested logs within the LogContent field, the Status field of the RetrieveLogsResponse
SHALL be set to Exhausted and a BDX session SHALL NOT be initiated.
If the RequestedProtocol is set to BDX and either the Node does not support BDX or it is not possible
for the Node to establish a BDX session, then the Node SHALL utilize the LogContent field of the
RetrieveLogsResponse command to transfer as much of the current logs as it can fit within the
response, and the Status field of the RetrieveLogsResponse SHALL be set to Exhausted.
If the RequestedProtocol is set to ResponsePayload the Node SHALL utilize the LogContent field of the
RetrieveLogsResponse command to transfer as much of the current logs as it can fit within the
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 641
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
If the RequestedProtocol is set to BDX and there is no TransferFileDesignator the command SHALL
fail with a Status Code of INVALID_COMMAND.
If the Intent and/or the RequestedProtocol arguments contain invalid (out of range) values the com
mand SHALL fail with a Status Code of INVALID_COMMAND.
11.10.9.2. RetrieveLogsResponse
Status
• The Status field SHALL indicate the result of an attempt to retrieve diagnostic logs.
LogContent
• The LogContent field SHALL be included in the command if the Status field has a value of Suc
cess or Exhausted. A Node SHOULD utilize this field to transfer the newest diagnostic log entries.
This field SHALL be empty if BDX is requested and the Status field has a value of Success.
UTCTimeStamp
• The UTCTimeStamp field SHOULD be included in the command if the Status field has a value of
Success and the Node maintains a wall clock. When included, the UTCTimeStamp field SHALL con
tain the value of the oldest log entry in the diagnostic logs that are being transferred.
TimeSinceBoot
• The TimeSinceBoot field SHOULD be included in the command if the Status field has a value of
Success. When included, the TimeSinceBoot field SHALL contain the time of the oldest log entry
in the diagnostic logs that are being transferred represented by the number of microseconds
since the last time the Node went through a reboot.
Page 642 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire
standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrator in
diagnosing potential problems. The General Diagnostics Cluster attempts to centralize all metrics
that are broadly relevant to the majority of Nodes.
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Rev Description
i
sio
n
1 Initial Release
11.11.3. Classification
Iden Name
tifier
0x003 GeneralDiagnostics
3
11.11.5. Features
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 643
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 644 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 645
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The NetworkInterface struct describes a network interface supported by the Node, as provided in
the NetworkInterfaces attribute.
1 IsOpera bool RV M
tional
4 Hard Hardware RV M
wareAd Address
dress
Page 646 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
7 Type Interface RV M
Type
Name Field
The Name field SHALL indicate a human-readable (displayable) name for the network interface,
that is different from all other interfaces.
IsOperational field
The IsOperational field SHALL indicate if the Node is currently advertising itself operationally on
this network interface and is capable of successfully receiving incoming traffic from other Nodes.
OffPremiseServicesReachableIPv4 field
OffPremiseServicesReachableIPv6 field
The OffPremiseServicesReachableIPv6 field SHALL indicate whether the Node is currently able to
reach off-premise services it uses by utilizing IPv6. The value SHALL be null if the Node does not
use such services or does not know whether it can reach them.
HardwareAddress field
The HardwareAddress field SHALL contain the current link-layer address for a 802.3 or
IEEE 802.11-2020 network interface and contain the current extended MAC address for a 802.15.4
interface. The byte order of the octstr SHALL be in wire byte order. For addresses values less than
64 bits, the first two bytes SHALL be zero.
IPv4Addresses field
The IPv4Addresses field SHALL provide a list of the IPv4 addresses that are currently assigned to
the network interface.
IPv6Addresses field
The IPv6Addresses field SHALL provide a list of the unicast IPv6 addresses that are currently
assigned to the network interface. This list SHALL include the Node’s link-local address and
SHOULD include any assigned GUA and ULA addresses. This list SHALL NOT include any multicast
group addresses to which the Node is subscribed.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 647
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Type field
The Type field SHALL indicate the type of the interface using the InterfaceType enum.
11.11.7. Attributes
The NetworkInterfaces attribute SHALL be a list of NetworkInterface structs. Each logical network
interface on the Node SHALL be represented by a single entry within the NetworkInterfaces
attribute.
The RebootCount attribute SHALL indicate a best-effort count of the number of times the Node has
rebooted. The RebootCount attribute SHOULD be incremented each time the Node reboots. The
RebootCount attribute SHALL NOT be incremented when a Node wakes from a low-power or sleep
state. The RebootCount attribute SHALL only be reset to 0 upon a factory reset of the Node.
Page 648 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The UpTime attribute SHALL indicate a best-effort assessment of the length of time, in seconds,
since the Node’s last reboot. The UpTime attribute SHOULD be incremented to account for the peri
ods of time that a Node is in a low-power or sleep state. The UpTime attribute SHALL only be reset
upon a device reboot.
The TotalOperationalHours attribute SHALL indicate a best-effort attempt at tracking the length of
time, in hours, that the Node has been operational. The TotalOperationalHours attribute SHOULD
be incremented to account for the periods of time that a Node is in a low-power or sleep state. The
TotalOperationalHours attribute SHALL only be reset upon a factory reset of the Node.
The BootReason attribute SHALL indicate the reason for the Node’s most recent boot. The possible
reasons are defined in the table below. This type is derived from enum8.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 649
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The ActiveHardwareFaults attribute SHALL indicate the set of faults currently detected by the
Node. When the Node detects a fault has been raised, the appropriate HardwareFault value SHALL
be added to this list. This list SHALL NOT contain more than one instance of a specific Hardware
Fault value. When the Node detects that all conditions contributing to a fault has been cleared, the
corresponding HardwareFault value SHALL be removed from this list. An empty list SHALL indi
cate there are currently no active faults. The order of this list SHOULD have no significance. Clients
interested in monitoring changes in active faults MAY subscribe to this attribute, or they MAY sub
scribe to HardwareFaultChange.
The ActiveRadioFaults attribute SHALL indicate the set of faults currently detected by the Node.
When the Node detects a fault has been raised, the appropriate RadioFault value SHALL be added
to this list. This list SHALL NOT contain more than one instance of a specific RadioFault value.
When the Node detects that all conditions contributing to a fault has been cleared, the correspond
ing RadioFault value SHALL be removed from this list. An empty list SHALL indicate there are cur
rently no active faults. The order of this list SHOULD have no significance. Clients interested in
monitoring changes in active faults MAY subscribe to this attribute, or they MAY subscribe to Radio
FaultChange.
The ActiveNetworkFaults attribute SHALL indicate the set of faults currently detected by the Node.
When the Node detects a fault has been raised, the appropriate NetworkFault value SHALL be
added to this list. This list SHALL NOT contain more than one instance of a specific NetworkFault
value. When the Node detects that all conditions contributing to a fault has been cleared, the corre
sponding NetworkFault value SHALL be removed from this list. An empty list SHALL indicate there
are currently no active faults. The order of this list SHOULD have no significance. Clients interested
in monitoring changes in active faults MAY subscribe to this attribute, or they MAY subscribe to
NetworkFaultChange.
The TestEventTriggersEnabled attribute SHALL indicate whether the Node has any TestEventTrig
ger configured. When this attribute is true, the Node has been configured with one or more test
event triggers by virtue of the internally programmed EnableKey value (see Section 11.11.8.1,
“TestEventTrigger Command”) being set to a non-zero value. This attribute can be used by Adminis
trators to detect if a device was inadvertently commissioned with test event trigger mode enabled,
and take appropriate action (e.g. warn the user and/or offer to remove all fabrics on the Node).
Page 650 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.11.8. Commands
This command SHALL be supported to provide a means for certification tests to trigger some test-
plan-specific events, necessary to assist in automation of device interactions for some certification
test cases. This command SHALL NOT cause any changes to the state of the device that persist after
the last fabric is removed.
0 EnableKey octstr 16 M
1 EventTrig uint64 M
ger
The EnableKey is a 128 bit value provided by the client in this command, which needs to match a
value chosen by the manufacturer and configured on the server using manufacturer-specific
means, such as pre-provisioning. The value of all zeroes is reserved to indicate that no EnableKey is
set. Therefore, if the EnableKey field is received with all zeroes, this command SHALL FAIL with a
response status of CONSTRAINT_ERROR.
The EnableKey SHOULD be unique per exact set of devices going to a certification test.
Devices not targeted towards going to a certification test event SHALL NOT have a non-zero
EnableKey value configured, so that only devices in test environments are responsive to this com
mand.
In order to prevent unwittingly actuating a particular trigger, this command SHALL respond with
the cluster-specific error status code EnableKeyMismatch if the EnableKey field does not match the a-
priori value configured on the device.
The EventTrigger field SHALL indicate the test or test mode which the client wants to trigger.
The expected side-effects of EventTrigger values are out of scope of this specification and will be
described within appropriate certification test literature provided to manufacturers by the Connec
tivity Standards Alliance, in conjunction with certification test cases documentation.
If the value of EventTrigger received is not supported by the receiving Node, this command SHALL
fail with a status code of INVALID_COMMAND.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 651
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Otherwise, if the EnableKey value matches the configured internal value for a particular Node, and
the EventTrigger value matches a supported test event trigger value, the command SHALL succeed
and execute the expected trigger action.
If no specific test event triggers are required to be supported by certification test requirements for
the features that a given product will be certified against, this command MAY always fail with the
INVALID_COMMAND status, equivalent to the situation of receiving an unknown EventTrigger, for
all possible EventTrigger values.
11.11.9. Events
0 HardwareFault CRITICAL V O
Change
1 RadioFaultChange CRITICAL V O
2 NetworkFault CRITICAL V O
Change
3 BootReason CRITICAL V M
The HardwareFaultChange Event SHALL indicate a change in the set of hardware faults currently
detected by the Node.
The Current field SHALL represent the set of faults currently detected, as per Section 11.11.6.1,
“HardwareFault enum”.
The Previous field SHALL represent the set of faults detected prior to this change event, as per Sec
tion 11.11.6.1, “HardwareFault enum”.
The RadioFaultChange Event SHALL indicate a change in the set of radio faults currently detected
by the Node.
Page 652 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Current field SHALL represent the set of faults currently detected, as per Section 11.11.6.2,
“RadioFault enum”.
The Previous field SHALL represent the set of faults detected prior to this change event, as per Sec
tion 11.11.6.2, “RadioFault enum”.
The NetworkFaultChange Event SHALL indicate a change in the set of network faults currently
detected by the Node.
The Current field SHALL represent the set of faults currently detected, as per Section 11.11.6.3, “Net
workFault enum”.
The Previous field SHALL represent the set of faults detected prior to this change event, as per Sec
tion 11.11.6.3, “NetworkFault enum”.
The BootReason Event SHALL indicate the reason that caused the device to start-up, from the set of
BootReason enum.
The BootReason field SHALL contain the reason for this BootReason event.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 653
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that
MAY be used by a Node to assist a user or Administrator in diagnosing potential problems. The
Software Diagnostics Cluster attempts to centralize all metrics that are relevant to the software that
may be running on a Node.
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Rev Description
i
sio
n
1 Initial Release
11.12.3. Classification
Iden Name
tifier
0x003 SoftwareDiagnostics
4
11.12.5. Features
Page 654 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
0 ID uint64 all M
ID Field
The Id field SHALL be a server-assigned per-thread unique ID that is constant for the duration of
the thread. Efforts SHOULD be made to avoid reusing ID values when possible.
Name Field
The Name field SHALL be set to a vendor defined name or prefix of the software thread that is sta
tic for the duration of the thread.
StackFreeCurrent Field
The StackFreeCurrent field SHALL indicate the current amount of stack memory, in bytes, that are
not being utilized on the respective thread.
StackFreeMinimum Field
The StackFreeMinimum field SHALL indicate the minimum amount of stack memory, in bytes, that
has been available at any point between the current time and this attribute being reset or initial
ized on the respective thread. This value SHALL only be reset upon a Node reboot or upon receiv
ing of the ResetWatermarks command.
StackSize Field
The StackSize field SHALL indicate the amount of stack memory, in bytes, that has been allocated
for use by the respective thread.
11.12.7. Attributes
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 655
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The ThreadMetrics attribute SHALL be a list of ThreadMetricsStruct structs. Each active thread on
the Node SHALL be represented by a single entry within the ThreadMetrics attribute.
The CurrentHeapFree attribute SHALL indicate the current amount of heap memory, in bytes, that
are free for allocation. The effective amount MAY be smaller due to heap fragmentation or other
reasons.
The CurrentHeapUsed attribute SHALL indicate the current amount of heap memory, in bytes, that
is being used.
The CurrentHeapHighWatermark attribute SHALL indicate the maximum amount of heap memory,
in bytes, that has been used by the Node. This value SHALL only be reset upon a Node reboot or
upon receiving of the ResetWatermarks command.
11.12.8. Commands
Table 109. Software Diagnostics Cluster supported Commands
11.12.8.1. ResetWatermarks
Receipt of this command SHALL reset the following values which track high and lower watermarks:
Page 656 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Effect on Receipt
On receipt of this command, the Node SHALL make the following modifications to attributes it sup
ports:
If implemented, the server SHALL set the value of the CurrentHeapHighWatermark attribute to the
value of the CurrentHeapUsed attribute.
If implemented, the server SHALL set the value of the StackFreeMinimum field for every thread to
the value of the corresponding thread’s StackFreeCurrent field.
11.12.9. Events
0 SoftwareFault INFO V O
The SoftwareFault Event SHALL be generated when a software fault takes place on the Node.
0 ID uint64 all 0 M
ID Field
The ID field SHALL be set to the ID of the software thread in which the last software fault occurred.
Name Field
The Name field SHALL be set to a manufacturer-specified name or prefix of the software thread in
which the last software fault occurred.
FaultRecording Field
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 657
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics met
rics that MAY be used by a Node to assist a user or Administrator in diagnosing potential problems.
The Thread Network Diagnostics Cluster attempts to centralize all metrics that are relevant to a
potential Thread radio running on a Node.
The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Rev Description
i
sio
n
1 Initial Release
11.13.3. Classification
Iden Name
tifier
0x003 ThreadNetworkDiagnostics
5
11.13.5. Features
Page 658 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.13.6.1. NetworkFault
11.13.7. Attributes
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 659
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 660 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 661
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 662 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Channel attribute SHALL indicate the 802.15.4 channel number configured on the Node’s
Thread interface (that is, the Active Operational Dataset’s current Channel value). A value of null
SHALL indicate that the Thread interface is not currently configured or operational.
The RoutingRole attribute SHALL indicate the role that this Node has within the routing of mes
sages through the Thread network. The potential roles are defined in the following table. A value of
null SHALL indicate that the Thread interface is not currently configured or operational.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 663
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The NetworkName attribute SHALL indicate a human-readable (displayable) name for the Thread
network that the Node has been configured to join to. A value of null SHALL indicate that the
Thread interface is not currently configured or operational.
The PanId attribute SHALL indicate the 16-bit identifier of the Node on the Thread network. A value
of null SHALL indicate that the Thread interface is not currently configured or operational.
The ExtendedPanId attribute SHALL indicate the unique 64-bit identifier of the Node on the Thread
network. A value of null SHALL indicate that the Thread interface is not currently configured or
operational.
Page 664 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The MeshLocalPrefix attribute SHALL indicate the mesh-local IPv6 prefix for the Thread network
that the Node has been configured to join to. A value of null SHALL indicate that the Thread inter
face is not currently configured or operational.
The OverrunCount attribute SHALL indicate the number of packets dropped either at ingress or
egress, due to lack of buffer memory to retain all packets on the ethernet network interface. The
OverrunCount attribute SHALL be reset to 0 upon a reboot of the Node.
The NeighborTable attribute SHALL indicate the current list of Nodes that comprise the neighbor
table on the Node.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 665
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ExtAddress
The ExtAddress field SHALL specify the IEEE 802.15.4 extended address for the neighboring Node.
Age Field
The Age field SHALL specify the duration of time, in seconds, since a frame has been received from
the neighboring Node.
Rloc16 Field
The Rloc16 field SHALL specify the RLOC16 of the neighboring Node.
LinkFrameCounter Field
The LinkFrameCounter field SHALL specify the number of link layer frames that have been
received from the neighboring node. The LinkFrameCounter field SHALL be reset to 0 upon a
reboot of the Node.
MleFrameCounter Field
The MleFrameCounter field SHALL specify the number of Mesh Link Establishment frames that
have been received from the neighboring node. The MleFrameCounter field SHALL be reset to 0
upon a reboot of the Node.
LQI Field
The LQI field SHALL specify the implementation specific mix of IEEE 802.15.4 PDU receive quality
indicators, scaled from 0 to 255.
AverageRssi Field
The AverageRssi field SHOULD specify the average RSSI across all received frames from the neigh
boring Node since the receiving Node’s last reboot. If there is no known received frames the Aver
ageRssi field SHOULD have the value of null. The AverageRssi field SHALL have the units of dBm,
having the range -128 dBm to 0 dBm.
LastRssi Field
The LastRssi field SHALL specify the RSSI of the most recently received frame from the neighboring
Node. If there is no known last received frame the LastRssi field SHOULD have the value of null.
The LastRssi field SHALL have the units of dBm, having the range -128 dBm to 0 dBm.
FrameErrorRate Field
The FrameErrorRate field SHALL specify the percentage of received frames from the neighboring
Node that have resulted in errors.
MessageErrorRate Field
The MessageErrorRate field SHALL specify the percentage of received messages from the neighbor
ing Node that have resulted in errors.
Page 666 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
RxOnWhenIdle Field
The RxOnWhenIdle field SHALL specify if the neighboring Node is capable of receiving frames
while the Node is in an idle state.
FullThreadDevice Field
The FullThreadDevice field SHALL specify if the neighboring Node is a full Thread device.
FullNetworkData Field
The FullNetworkData field SHALL specify if the neighboring Node requires the full Network Data. If
set to False, the neighboring Node only requires the stable Network Data.
IsChild Field
The IsChild field SHALL specify if the neighboring Node is a direct child of the Node reporting the
NeighborTable attribute.
The RouteTable attribute SHALL indicate the current list of router capable Nodes for which routes
have been established.
ExtAddress Field
The ExtAddress field SHALL specify the IEEE 802.15.4 extended address for the Node for which this
route table entry corresponds.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 667
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Rloc16 Field
The Rloc16 field SHALL specify the RLOC16 for the Node for which this route table entry corre
sponds.
RouterId Field
The RouterId field SHALL specify the Router ID for the Node for which this route table entry corre
sponds.
NextHop Field
The NextHop field SHALL specify the Router ID for the next hop in the route to the Node for which
this route table entry corresponds.
PathCost Field
The PathCost Field SHALL specify the cost of the route to the Node for which this route table entry
corresponds.
LQIIn Field
The LQIIn field SHALL specify the implementation specific mix of IEEE 802.15.4 PDU receive quality
indicators, scaled from 0 to 255, from the perspective of the Node reporting the neighbor table.
LQIOut Field
The LQIIn field SHALL specify the implementation specific mix of IEEE 802.15.4 PDU receive quality
indicators, scaled from 0 to 255, from the perspective of the Node specified within the NextHop
field.
Age Field
The Age field SHALL specify the duration of time, in seconds, since a frame has been received from
the Node for which this route table entry corresponds.
Allocated Field
The Allocated field SHALL specify if the router ID as defined within the RouterId field has been allo
cated.
LinkEstablished Field
The LinkEstablished field SHALL specify if a link has been established to the Node for which this
route table entry corresponds.
The PartitionId attribute SHALL indicate the Thread Leader Partition Id for the Thread network to
which the Node is joined. This attribute SHALL be null if not attached to a Thread network.
Page 668 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Weighting attribute SHALL indicate the Thread Leader Weight used when operating in the
Leader role. This attribute SHALL be null if not attached to a Thread network.
The DataVersion attribute SHALL indicate the full Network Data Version the Node currently uses.
This attribute SHALL be null if not attached to a Thread network.
The StableDataVersion attribute SHALL indicate the Network Data Version for the stable subset of
data the Node currently uses. This attribute SHALL be null if not attached to a Thread network.
The LeaderRouterId attribute SHALL indicate the 8-bit LeaderRouterId the Node shall attempt to
utilize upon becoming a router or leader on the Thread network. This attribute SHALL be null if not
attached to a Thread network.
The DetachedRoleCount attribute SHALL indicate the number of times the Node entered the OT_DE
VICE_ROLE_DETACHED role as specified within the Thread specification. This value SHALL only be reset
upon a Node reboot.
The ChildRoleCount attribute SHALL indicate the number of times the Node entered the OT_DE
VICE_ROLE_CHILD role as specified within the Thread specification. This value SHALL only be reset
upon a Node reboot.
The RouterRoleCount attribute SHALL indicate the number of times the Node entered the OT_DE
VICE_ROLE_ROUTER role as specified within the Thread specification. This value SHALL only be reset
upon a Node reboot.
The LeaderRoleCount attribute SHALL indicate the number of times the Node entered the OT_DE
VICE_ROLE_LEADER role as specified within the Thread specification. This value SHALL only be reset
upon a Node reboot.
The AttachAttemptCount attribute SHALL indicate the number of attempts that have been made to
attach to a Thread network while the Node was detached from all Thread networks. This value
SHALL only be reset upon a Node reboot.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 669
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The PartitionIdChangeCount attribute SHALL indicate the number of times that the Thread net
work that the Node is connected to has changed its Partition ID. This value SHALL only be reset
upon a Node reboot.
The BetterPartitionAttachAttemptCount attribute SHALL indicate the number of times a Node has
attempted to attach to a different Thread partition that it has determined is better than the parti
tion it is currently attached to. This value SHALL only be reset upon a Node reboot.
The ParentChangeCount attribute SHALL indicate the number of times a Node has changed its par
ent. This value SHALL only be reset upon a Node reboot.
The TxTotalCount attribute SHALL indicate the total number of unique MAC frame transmission
requests. The TxTotalCount attribute SHALL only be incremented by 1 for each MAC transmission
request regardless of the amount of CCA failures, CSMA-CA attempts, or retransmissions. This value
SHALL only be reset upon a Node reboot.
The TxUnicastCount attribute SHALL indicate the total number of unique unicast MAC frame trans
mission requests. The TxUnicastCount attribute SHALL only be incremented by 1 for each unicast
MAC transmission request regardless of the amount of CCA failures, CSMA-CA attempts, or retrans
missions. This value SHALL only be reset upon a Node reboot.
The TxBroadcastCount attribute SHALL indicate the total number of unique broadcast MAC frame
transmission requests. The TxBroadcastCount attribute SHALL only be incremented by 1 for each
broadcast MAC transmission request regardless of the amount of CCA failures, CSMA-CA attempts,
or retransmissions. This value SHALL only be reset upon a Node reboot.
The TxAckRequestedCount attribute SHALL indicate the total number of unique MAC frame trans
mission requests with requested acknowledgment. The TxAckRequestedCount attribute SHALL only
be incremented by 1 for each MAC transmission request with requested acknowledgment regard
less of the amount of CCA failures, CSMA-CA attempts, or retransmissions. This value SHALL only
be reset upon a Node reboot.
The TxAckedCount attribute SHALL indicate the total number of unique MAC frame transmission
requests that were acked. The TxAckedCount attribute SHALL only be incremented by 1 for each
Page 670 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
MAC transmission request that is acked regardless of the amount of CCA failures, CSMA-CA
attempts, or retransmissions. This value SHALL only be reset upon a Node reboot.
The TxNoAckRequestedCount attribute SHALL indicate the total number of unique MAC frame
transmission requests without requested acknowledgment. The TxNoAckRequestedCount attribute
SHALL only be incremented by 1 for each MAC transmission request that is does not request
acknowledgement regardless of the amount of CCA failures, CSMA-CA attempts, or retransmissions.
The TxDataCount attribute SHALL indicate the total number of unique MAC Data frame transmis
sion requests. The TxDataCount attribute SHALL only be incremented by 1 for each MAC Data
frame transmission request regardless of the amount of CCA failures, CSMA-CA attempts, or
retransmissions. This value SHALL only be reset upon a Node reboot.
The TxDataPollCount attribute SHALL indicate the total number of unique MAC Data Poll frame
transmission requests. The TxDataPollCount attribute SHALL only be incremented by 1 for each
MAC Data Poll frame transmission request regardless of the amount of CCA failures, CSMA-CA
attempts, or retransmissions. This value SHALL only be reset upon a Node reboot.
The TxBeaconCount attribute SHALL indicate the total number of unique MAC Beacon frame trans
mission requests. The TxBeaconCount attribute SHALL only be incremented by 1 for each MAC Bea
con frame transmission request regardless of the amount of CCA failures, CSMA-CA attempts, or
retransmissions.
The TxBeaconRequestCount attribute SHALL indicate the total number of unique MAC Beacon
Request frame transmission requests. The TxBeaconRequestCount attribute SHALL only be incre
mented by 1 for each MAC Beacon Request frame transmission request regardless of the amount of
CCA failures, CSMA-CA attempts, or retransmissions. This value SHALL only be reset upon a Node
reboot.
The TxOtherCount attribute SHALL indicate the total number of unique MAC frame transmission
requests that are not counted by any other attribute. The TxOtherCount attribute SHALL only be
incremented by 1 for each MAC frame transmission request regardless of the amount of CCA fail
ures, CSMA-CA attempts, or retransmissions. This value SHALL only be reset upon a Node reboot.
The TxRetryCount attribute SHALL indicate the total number of MAC retransmission attempts. The
TxRetryCount attribute SHALL only be incremented by 1 for each retransmission attempt that may
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 671
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The TxDirectMaxRetryExpiryCount attribute SHALL indicate the total number of unique MAC
transmission packets that meet maximal retry limit for direct packets. The TxDirectMaxRetryEx
piryCount attribute SHALL only be incremented by 1 for each unique MAC transmission packets
that meets the maximal retry limit for direct packets. This value SHALL only be reset upon a Node
reboot.
The TxIndirectMaxRetryExpiryCount attribute SHALL indicate the total number of unique MAC
transmission packets that meet maximal retry limit for indirect packets. The TxIndirectMaxRetry
ExpiryCount attribute SHALL only be incremented by 1 for each unique MAC transmission packets
that meets the maximal retry limit for indirect packets. This value SHALL only be reset upon a
Node reboot.
The TxErrCcaCount attribute SHALL indicate the total number of CCA failures. The TxErrCcaCount
attribute SHALL only be incremented by 1 for each instance of a CCA failure. This value SHALL only
be reset upon a Node reboot.
The TxErrAbortCount attribute SHALL indicate the total number of unique MAC transmission
request failures caused by an abort error. The TxErrAbortCount attribute SHALL only be incre
mented by 1 for each unique MAC transmission request failure caused by an abort error.
The TxErrBusyChannelCount attribute SHALL indicate the total number of unique MAC transmis
sion request failures caused by an error as the result of a busy channel (a CSMA/CA fail). The TxEr
rBusyChannelCount attribute SHALL only be incremented by 1 for each unique MAC transmission
request failure caused by a busy channel such as a CSMA/CA failure.
The RxTotalCount attribute SHALL indicate the total number of received unique MAC frames. This
value SHALL only be reset upon a Node reboot.
The RxUnicastCount attribute SHALL indicate the total number of received unique unicast MAC
frames. This value SHALL only be reset upon a Node reboot.
Page 672 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The RxBroadcastCount attribute SHALL indicate the total number of received unique broadcast
MAC frames. This value SHALL only be reset upon a Node reboot.
The RxDataCount attribute SHALL indicate the total number of received unique MAC Data frames.
This value SHALL only be reset upon a Node reboot.
The RxDataPollCount attribute SHALL indicate the total number of received unique MAC Data Poll
frames. This value SHALL only be reset upon a Node reboot.
The RxBeaconCount attribute SHALL indicate the total number of received unique MAC Beacon
frames. This value SHALL only be reset upon a Node reboot.
The RxBeaconRequestCount attribute SHALL indicate the total number of received unique MAC
Beacon Request frames. This value SHALL only be reset upon a Node reboot.
The RxOtherCount attribute SHALL indicate the total number of received unique MAC frame
requests that are not counted by any other attribute. This value SHALL only be reset upon a Node
reboot.
The RxAddressFilteredCount attribute SHALL indicate the total number of received unique MAC
frame requests that have been dropped as a result of MAC filtering. This value SHALL only be reset
upon a Node reboot.
The RxDestAddrFilteredCount attribute SHALL indicate the total number of received unique MAC
frame requests that have been dropped as a result of a destination address check. This value SHALL
only be reset upon a Node reboot.
The RxDuplicatedCount attribute SHALL indicate the total number of received MAC frame requests
that have been dropped as a result of being a duplicate of a previously received MAC frame request.
This value SHALL only be reset upon a Node reboot.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 673
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The RxErrNoFrameCount attribute SHALL indicate the total number of received unique MAC frame
requests that have been dropped as a result of missing or malformed frame contents. This value
SHALL only be reset upon a Node reboot.
The RxErrUnknownNeighborCount attribute SHALL indicate the total number of received unique
MAC frame requests that have been dropped as a result of originating from an unknown neighbor
device. This value SHALL only be reset upon a Node reboot.
The RxErrInvalidScrAddrCount attribute SHALL indicate the total number of received unique MAC
frame requests that have been dropped as a result of containing an invalid source address. This
value SHALL only be reset upon a Node reboot.
The RxErrSecCount attribute SHALL indicate the total number of received unique MAC frame
requests that have been dropped as a result of an error with the security of the received frame. This
value SHALL only be reset upon a Node reboot.
The RxErrFcsCount attribute SHALL indicate the total number of received unique MAC frame
requests that have been dropped as a result of an error with the FCS of the received frame. This
value SHALL only be reset upon a Node reboot.
The RxErrOtherCount attribute SHALL indicate the total number of received unique MAC frame
requests that have been dropped as a result of an error that is not counted by any other attribute.
This value SHALL only be reset upon a Node reboot.
The SecurityPolicy attribute indicates the current security policies for the Thread partition to which
Page 674 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
a Node is connected. This attribute SHALL be null when there is no dataset configured.
0 Rotation uint16 M
Time
1 Flags uint16 M
RotationTime Field
The RotationTime field SHALL specify the interval of time, in hours, that Thread security keys are
rotated. This attribute SHALL be null when there is no dataset configured.
Flags Field
The Flags field SHALL specify the flags as specified in Thread 1.3.0 section 8.10.1.15. This attribute
SHALL be null when there is no dataset configured.
The ChannelPage0Mask attribute indicates the channels within channel page 0, in the 2.4GHz ISM
band. The channels are represented in most significant bit order, with bit value 1 meaning selected,
bit value 0 meaning unselected. For example, the most significant bit of the left-most byte indicates
channel 0. If channel 0 and channel 10 are selected, the mask would be: 80 20 00 00. This attribute
SHALL be null when there is no dataset configured.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 675
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ActiveTimestampPresent Field
The ActiveTimestampPresent field SHALL be True if the Node has an active timestamp present, else
False.
PendingTimestampPresent Field
The PendingTimestampPresent field SHALL be True if the Node has a pending timestamp is present,
else False.
MasterKeyPresent Field
The MasterKeyPresent field SHALL be True if the Node has the Thread master key, else False.
NetworkNamePresent Field
The NetworkNamePresent field SHALL be True if the Node has the Thread network’s name, else
False.
ExtendedPanIdPresent Field
The ExtendedPanIdPresent field SHALL be True if the Node has an extended Pan ID, else False.
MeshLocalPrefixPresent Field
The MeshLocalPrefixPresent field SHALL be True if the Node has the mesh local prefix, else False.
Page 676 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
DelayPresent Field
The DelayPresent field SHALL be True if the Node has the Thread network delay set, else False.
PanIdPresent Field
The PanIdPresent field SHALL be True if the Node has a Pan ID, else False.
ChannelPresent Field
The ChannelPresent field SHALL be True if the Node has configured an operational channel for the
Thread network, else False.
PskcPresent Field
The PskcPresent field SHALL be True if the Node has been configured with the Thread network
Pskc, else False.
SecurityPolicyPresent Field
The SecurityPolicyPresent field SHALL be True if the Node has been configured with the Thread net
work security policies, else False.
ChannelMaskPresent Field
The ChannelMaskPresent field SHALL be True if the Node has available a mask of available chan
nels, else False.
The ActiveNetworkFaults attribute SHALL indicate the set of faults currently detected by the Node.
When the Node detects a fault has been raised, the appropriate NetworkFault value SHALL be
added to this list. This list SHALL NOT contain more than one instance of a specific NetworkFault
value. When the Node detects that all conditions contributing to a fault has been cleared, the corre
sponding NetworkFault value SHALL be removed from this list. An empty list SHALL indicate there
are currently no active faults. The order of this list SHOULD have no significance. Clients interested
in monitoring changes in active faults MAY subscribe to this attribute, or they MAY subscribe to
NetworkFaultChange
11.13.8. Commands
Table 116. Diagnostics Thread Cluster supported Commands
• OverrunCount
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 677
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This command has no associated data. Upon completion, this command SHALL send a status code
set to a value of SUCCESS back to the initiator.
11.13.9. Events
0 ConnectionStatus INFO V O
1 NetworkFault INFO V O
Change
The NetworkFaultChange Event SHALL indicate a change in the set of network faults currently
detected by the Node.
The Current field SHALL represent the set of faults currently detected, as per Section 11.13.6.1, “Net
workFault”.
The Previous field SHALL represent the set of faults detected prior to this change event, as per Sec
tion 11.13.6.1, “NetworkFault”.
The ConnectionStatus Event SHALL indicate that a Node’s connection status to a Thread network
has changed. The potential values for the ConnectionStatus Event are enumerated below.
0 Connection Connection M
Status StatusEnum
ConnectionStatusEnum
0 Connected M
Page 678 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
1 NotConnected M
The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics met
rics that MAY be used by a Node to assist a user or Administrator in diagnosing potential problems.
The Wi-Fi Network Diagnostics Cluster attempts to centralize all metrics that are relevant to a
potential Wi-Fi radio running on a Node.
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Rev Description
i
sio
n
1 Initial Release
11.14.1.2. Classification
Iden Name
tifier
0x003 WiFiNetworkDiagnostics
6
11.14.2. Features
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 679
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 680 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.14.4. Attributes
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 681
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
For all attributes listed above, a null value SHALL be returned if the interface is not currently con
figured or operational.
The BSSID attribute SHALL indicate the BSSID for which the Wi-Fi network the Node is currently
connected.
The SecurityType attribute SHALL indicate the current type of Wi-Fi security used.
The WiFiVersion attribute SHALL indicate the current 802.11 standard version in use by the Node,
per the table below.
The ChannelNumber attribute SHALL indicate the channel that Wi-Fi communication is currently
operating on.
Page 682 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The RSSI attribute SHALL indicate the current RSSI of the Node’s Wi-Fi radio in dBm.
The BeaconLostCount attribute SHALL indicate the count of the number of missed beacons the
Node has detected. If the Node does not have an ability to count beacons expected and not received,
this value MAY remain set to zero.
The BeaconRxCount attribute SHALL indicate the count of the number of received beacons. The
total number of expected beacons that could have been received during the interval since associa
tion SHOULD match the sum of BeaconRxCount and BeaconLostCount. If the Node does not have an
ability to report count of beacons received, this value MAY remain set to zero.
The PacketMulticastRxCount attribute SHALL indicate the number of multicast packets received by
the Node.
The PacketMulticastTxCount attribute SHALL indicate the number of multicast packets transmitted
by the Node.
The PacketUnicastRxCount attribute SHALL indicate the number of unicast packets received by the
Node.
The PacketUnicastTxCount attribute SHALL indicate the number of unicast packets transmitted by
the Node.
The CurrentMaxRate attribute SHALL indicate the current maximum PHY rate of transfer of data in
bits-per-second.
The OverrunCount attribute SHALL indicate the number of packets dropped either at ingress or
egress, due to lack of buffer memory to retain all packets on the network interface. The Overrun
Count attribute SHALL be reset to 0 upon a reboot of the Node.
11.14.5. Commands
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 683
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.14.5.1. ResetCounts
• BeaconLostCount
• BeaconRxCount
• PacketMulticastRxCount
• PacketMulticastTxCount
• PacketUnicastRxCount
• PacketUnicastTxCount
11.14.6. Events
0 Disconnection info V O
1 AssociationFail info V O
ure
2 ConnectionStatus info V O
The Disconnection Event SHALL indicate that a Node’s Wi-Fi connection has been disconnected as a
result of de-authenticated or dis-association and indicates the reason.
0 ReasonCode uint16 M
The ReasonCode field SHALL contain the Reason Code field value for the Disassociation or Deau
thentication event that caused the disconnection and the value SHALL align with Table 9-49 "Rea
son codes" of IEEE 802.11-2020.
The AssociationFailure event SHALL indicate that a Node has attempted to connect, or reconnect, to
a Wi-Fi access point, but is unable to successfully associate or authenticate, after exhausting all
internal retries of its supplicant.
Page 684 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
AssociationFailureCause field
The Status field SHALL be set to a value from the following enumeration derived from enum8:
Status field
The Status field SHALL be set to the Status Code value that was present in the last frame related to
association where Status Code was not equal to zero and which caused the failure of a last trial
attempt, if this last failure was due to one of the following Management frames:
Table 9-50 "Status codes" of IEEE 802.11-2020 contains a description of all values possible.
The ConnectionStatus Event SHALL indicate that a Node’s connection status to a Wi-Fi network has
changed. Connected, in this context, SHALL mean that a Node acting as a Wi-Fi station is success
fully associated to a Wi-Fi Access Point.
0 Connection Connection M
Status Status
The potential value for the ConnectionStatus enum, derived from enum8, are enumerated below:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 685
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
0 Connected M
1 NotConnected M
The Ethernet Network Diagnostics Cluster provides a means to acquire standardized diagnostics
metrics that MAY be used by a Node to assist a user or Administrator in diagnosing potential prob
lems. The Ethernet Network Diagnostics Cluster attempts to centralize all metrics that are relevant
to a potential Ethernet connection to a Node.
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Rev Description
i
sio
n
1 Initial Release
11.15.1.2. Classification
Iden Name
tifier
0x003 EthernetNetworkDiagnostics
7
11.15.2. Features
Page 686 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.15.4. Attributes
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 687
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The PHYRate attribute SHALL indicate the current nominal, usable speed at the top of the physical
layer of the Node. A value of null SHALL indicate that the interface is not currently configured or
operational.
The FullDuplex attribute SHALL indicate if the Node is currently utilizing the full-duplex operating
mode. A value of null SHALL indicate that the interface is not currently configured or operational.
The PacketRxCount attribute SHALL indicate the number of packets that have been received on the
ethernet network interface. The PacketRxCount attribute SHALL be reset to 0 upon a reboot of the
Node.
The PacketTxCount attribute SHALL indicate the number of packets that have been successfully
transferred on the ethernet network interface. The PacketTxCount attribute SHALL be reset to 0
upon a reboot of the Node.
The TxErrCount attribute SHALL indicate the number of failed packet transmissions that have
occurred on the ethernet network interface. The TxErrCount attribute SHALL be reset to 0 upon a
reboot of the Node.
The CollisionCount attribute SHALL indicate the number of collisions that have occurred while
attempting to transmit a packet on the ethernet network interface. The CollisionCount attribute
SHALL be reset to 0 upon a reboot of the Node.
The OverrunCount attribute SHALL indicate the number of packets dropped either at ingress or
egress, due to lack of buffer memory to retain all packets on the ethernet network interface. The
Page 688 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The CarrierDetect attribute SHALL indicate the value of the Carrier Detect control signal present on
the ethernet network interface. A value of null SHALL indicate that the interface is not currently
configured or operational.
The TimeSinceReset attribute SHALL indicate the duration of time, in minutes, that it has been
since the ethernet network interface has reset for any reason.
11.15.5. Events
11.15.6. Commands
• PacketRxCount
• PacketTxCount
• TxErrCount
• CollisionCount
• OverrunCount
This section describes a mechanism for Nodes to achieve and maintain time synchronization. The
Time Cluster provides Attributes for reading a Node’s current time. It also allows Administrators to
set current time, time zone and daylight savings time (DST) settings.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 689
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• The global ClusterRevision Attribute value SHALL be the highest revision number in the table
below.
Revision Description
1 Initial Release
11.16.2. Classification
Identifier Name
0x0038 TimeSync
11.16.4. Terminology
DNS-SD - Domain name service - service discovery RFC 6763 - DNS-Based Service Discovery
[https://tools.ietf.org/html/rfc6763]
GNSS - Global Navigation Satellite System. This is a satellite system that provides global geo-spatial
positioning. GNSS systems include the NAVSTAR global positioning system (GPS), Galileo, GLONASS
and BeiDou.
NTP - Network Time Protocol RFC 5905 - Network Time Protocol Version 4: Protocol and Algorithms
Specification [https://tools.ietf.org/html/rfc5905].
NTS - Network Time Security RFC 8915 - Network time security for the network time protocol
[https://tools.ietf.org/html/rfc8915].
PTP - Precision Time Protocol IEEE 1588-2008 - IEEE Standard for a Precision Clock Synchronization
Protocol for Networked Measurement and Control Systems [https://standards.ieee.org/standard/1588-
2008.html].
SNTP - Simple Network Time Protocol. This is a simplified version of the Network Time Protocol. It
is also covered by RFC 5905 [https://tools.ietf.org/html/rfc5905].
11.16.5. Features
Page 690 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Time Zone (TZ) Feature allows a server to translate a UTC time to a local time using the time
zone and daylight savings time (DST) offsets. If a server supports the Time Zone Feature, it SHALL
support the TimeZone and DstOffset Attributes (Section 11.16.6.6, “TimeZone Attribute” and Section
11.16.6.7, “DstOffset Attribute”) and SHALL expose the local time through the LocalTime Attribute
(Section 11.16.6.8, “LocalTime Attribute”). Use of the Name Field in the TimeZone Attribute is optional
for display purposes, but it is not used in the calculation of the LocalTime.
The NTP Client Feature allows a server to use NTP/SNTP for time synchronization.
The NTP Server Feature allows a Node to host an NTP server for the network so that other Nodes
can achieve a high accuracy time sync within the network. See Section 11.16.14, “Acting as an NTP
Server”.
11.16.6. Attributes
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 691
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• If the server has achieved time synchronization, this SHALL indicate the current time as a UTC
epoch-us (Epoch Time in Microseconds).
• If the server has not achieved time synchronization, this SHALL be null. This Attribute MAY be
set when a Section 11.16.7.1, “SetUtcTime Command” is received.
The Granularity Attribute indicates the granularity of the error that the server is willing to guaran
tee on the time synchronization. It is of type GranularityEnum.
The TimeSource Attribute indicates the server’s time source. This Attribute indicates what method
the server is using to sync, whether the source uses NTS or not and whether the source is internal
or external to the Fabric. This Attribute MAY be used by a client to determine its level of trust in the
UTCTime. It is of type TimeSourceEnum.
If a server is unsure if the selected NTP server is within the Fabric, it SHOULD indicate the server is
NonFabric.
The DefaultNtp Attribute provides the default NTP server the server’s Node may use if other time
sources are unavailable. This Attribute may contain a domain name or a static IPv6 address in text
format as specified in RFC 5952 [https://tools.ietf.org/html/rfc5952]. See Section 11.16.12, “Time source
prioritization”. This Attribute is writeable only by an Administrator. It SHOULD be set by the Com
missioner during commissioning. If no default NTP is available, the Commissioner MAY set this
value to null.
The TrustedTimeNodeId Attribute provides the Node ID of a trusted Time Cluster. The TrustedTimeN
odeId Node is used as a check on external time sync sources and MAY be used as the primary time
source if other time sources are unavailable. See Section 11.16.12, “Time source prioritization”. This
Attribute is writeable only by an Administrator. It SHOULD be set by the Commissioner during com
missioning. If no appropriate TrustedTimeNodeId is available, the commissioner MAY set this value to
null.
Page 692 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The TimeZone Attribute is a list of time zone offsets from UTC and when they SHALL take effect. This
Attribute uses a list of time offset configurations to allow Nodes to handle scheduled regulatory
time zone changes. This Attribute SHALL NOT be used to indicate daylight savings time changes
(see Section 11.16.6.7, “DstOffset Attribute” for daylight savings time).
The first entry SHALL have a ValidAt entry of 0. If there is a second entry, it SHALL have a non-zero
ValidAt time.
If a server supports a TimeZoneDatabase, the server MAY update its own DstOffset list (Section
11.16.6.7, “DstOffset Attribute”) to add new DST change times as required, based on the Name fields
of the TimeZoneType structs. Administrators MAY add additional entries to the DstOffset of other
Nodes with the same time zone, if required.
If a server does not support a TimeZoneDatabase, the Name field of the TimeZoneType struct is only
applicable for client-side localization. In particular:
• If the server does not support a TimeZoneDatabase, the Name field SHALL NOT be used to calcu
late the local time.
• If the server does not support a TimeZoneDatabase, the Name field SHALL NOT be used to calcu
late DST start or end dates.
Upon writing this Attribute, the server SHALL recompute its LocalTime, taking into account the Off
set of the currently used TimeZoneType.
When time passes, the server SHOULD remove any entries which are no longer active and change
the ValidAt time for the currently used TimeZoneType list item to zero.
DstOffset is a list of offsets to apply for daylight savings time, and their validity period.
A list entry SHALL NOT have a ValidStarting time that is smaller than the ValidUntil time of the
previous entry.
Upon writing this Attribute, the server SHALL recompute its LocalTime.
This list MAY hold up to 20 entries. If a server does not have sufficient storage for 20 entries, it MAY
truncate the list by removing entries with the largest ValidStarting times. The server SHALL
reserve sufficient storage for at least one entry.
Over time, the server SHOULD remove any entries which are no longer active from the list.
Over time, if the server supports a TimeZoneDatabase, it MAY update its own list to add additional
entries.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 693
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The LocalTime Attribute gives the computed current local time of the server as a epoch-us (Epoch
Time in Microseconds). The local time offset of the value is the sum of the currently used Time
ZoneEntry’s offset and the currently used DST offset, if any.
If the server has not achieved time synchronization, this SHALL be null.
This Attribute indicates whether the server has access to a time zone database. Nodes with a time
zone database MAY update their own DstOffset Attribute to add new entries and MAY push DstOff
set updates to other Nodes in the same time zone as required.
This option is present if this server is capable of providing an NTP server instance. See Section
11.16.14, “Acting as an NTP Server” for more information.
If the server is running an NTP server, this value SHALL be the port number for the service.
If the server is not currently running an NTP server, this value SHALL be null.
11.16.7. Commands
This Command MAY be issued by Administrator to set the time. If the Commissioner does not have a
valid time source, it MAY send a Granularity of NoTimeGranularity.
Upon receipt of this command, the server MAY update its UTCTime Attribute to match the time speci
fied in the command, if the stated Granularity and TimeSource are acceptable. The server SHALL
update its UTCTime Attribute if its current Granularity is NoTimeGranularity.
If the time is updated, the server SHALL also update its Granularity Attribute as appropriate (nor
mally to one level lower than the stated command Granularity, or to MinutesGranularity if the
server does not plan to maintain time). It SHALL also update its TimeSource Attribute to Admin. It
Page 694 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
If the server updates its UTCTime Attribute, it SHALL accept the command with a status code of SUC
CESS. If it opts to not update its time, it SHALL fail the command with a cluster specific Status Code
of TimeNotAccepted.
UtcTime
Granularity
• This SHALL give the Client’s Granularity, as described in Section 11.16.6.2, “Granularity
Attribute”.
TimeSource
• This SHALL give the Client’s TimeSource, as described in Section 11.16.6.3, “TimeSource
Attribute”.
Status Codes
11.16.8. Events
This event SHALL be generated when the server stops applying the current DstOffset and there are
no entries in the list with a larger ValidStarting time, indicating the need to possibly get new DST
data.
This event SHALL be generated when the server starts or stops applying a DST offset.
This event contains a boolean predicate that indicates whether the server is applying the DST offset.
When the value is "true", the current DST offset is being applied (i.e, daylight savings time is
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 695
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This event SHALL be generated when the server changes its time zone offset or name. It SHALL
NOT be sent for DST changes that are not accompanied by a time zone change.
11.16.9.1. GranularityEnum
GranularityEnum is derived from the enum8 type. The available values are as follows:
Page 696 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.16.9.2. TimeSourceEnum
TimeSourceEnum is derived from the enum8 type. The available values are as follows:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 697
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 698 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.16.9.3. TimeZoneType
Name is an optional field that SHOULD provide a human-readable time zone name.
The time zone name SHOULD use the country/city format specified by the IANA time zone database
[https://www.iana.org/time-zones].
11.16.9.4. DstOffsetType
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 699
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Offset indicates the DST offset in seconds. Normally this is in the range of 0 to 3600 seconds (1
hour), but this field will accept any values in the int32 range to accommodate potential future legis
lation that does not fit with these assumptions.
During commissioning, the Commissioner SHALL send the current UTCTime and Granularity using
the Section 11.16.7.1, “SetUtcTime Command”. The Commissioner SHALL attempt to synchronize its
time prior to commissioning. If it is unable to achieve time synchronization, the Commissioner MAY
use a Granularity of NoTimeGranularity.
During commissioning, the Commissioner SHOULD set a TrustedTimeNodeId, and SHOULD set the
DefaultNtp for Nodes that support the NTP Client (NTPC) Feature. If no backup NTP server is avail
able, the Commissioner SHOULD set DefaultNtp to null. If no trusted Node is available, the Commis
sioner SHOULD set TrustedTimeNodeId to null.
Nodes MAY perform time synchronization using a trusted external source, NTPv4 / SNTPv4
[https://tools.ietf.org/html/rfc5905] or by reading the UTC time from the Time Cluster of another Node
with the desired Granularity and TimeSource. When using NTPv4 / SNTPv4, Nodes capable of exter
nal communication SHOULD use network time security (NTS) if that is available on the server
(RFC8915 [https://tools.ietf.org/html/rfc8915]). This specification DOES NOT mandate that Nodes should
include a TCP/TLS stack and a set of adequate Root CA certificates solely to support NTS, but that if a
Node already has these capabilities, then it SHOULD implement and attempt NTS for NTP.
Nodes SHOULD attempt to perform a time synchronization after a restart or upon any change of
Node state where timekeeping was lost. Nodes SHOULD attempt this time synchronization prior to
using any security material which may have expired. If a Node is unable to achieve time synchro
nization using the steps outlined in Section 11.16.12, “Time source prioritization”, the Node MAY
retry or fall back to the stored Last Known Good UTC Time (Section 3.5.6.1, “Last Known Good UTC
Time”).
Page 700 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
2. Trusted, high-resolution, external time source (ex. network NTP, trusted cloud-based source), if
supported by the Node and external connectivity is available.
3. If NTP Client (NTPC) Feature: NTP server defined in the DHCPv6 NTP server option, if DHCPv6 is
supported on the Node.
4. If NTP Client (NTPC) Feature: NTP server defined by DHCP if the Node supports IPv4.
5. If NTP Client (NTPC) Feature: NTP Server identified by a DNS-SD query for _ntp._udp. If multiple
servers respond, Nodes with full NTP support SHOULD query multiple servers. Nodes using
SNTP SHOULD select any server from the list
6. Querying the Time Cluster of another Node in the network. Nodes SHOULD be queried in the fol
lowing order:
b. Any of the Node’s current peers per any data model binding that support Time Cluster and
have the desired Granularity and TimeSource.
c. Enumerate all Nodes using DNS-SD query for _matter._tcp and select one with matching Fab
ricID that supports the Time Cluster and has the desired Granularity and TimeSource.
7. If NTP Client (NTPC) Feature: Fallback NTP server defined during commissioning.
Nodes that use GNSS or a trusted external source SHOULD check the remaining time synchroniza
tion sources to determine if they SHOULD act as an NTP server (see Section 11.16.14, “Acting as an
NTP Server”).
Nodes SHALL check their synchronized time against the Time Cluster of the TrustedTimeNodeId Node
and SHALL use the TrustedTimeNodeId Node as its time source if the difference between the Trusted
TimeNodeId Node’s UTCTime and the Node’s preferred time source is greater than 10 minutes.
Nodes SHALL adjust their Granularity Attribute based on their assessed time synchronization error.
Nodes running an NTP server (Section 11.16.14, “Acting as an NTP Server”) SHALL maintain a Gran
ularity of SecondsGranularity or better and SHOULD maintain an accuracy of MillisecondsGranular
ity or better.
A Node with a Granularity of NoTimeGranularity SHALL attempt to sync its time at least once a day.
Nodes SHALL NOT query the Time Cluster of another Node more than once per 15 minutes.
Any capable Node with always-on power source that has and can maintain a time synchronization
Granularity of MillisecondsGranularity or better, SHOULD act as an NTP server. Any capable Node
that reaches the final stage in the server discovery mechanism (see Section 11.16.12, “Time source
prioritization”) SHOULD act as an NTP server for the network.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 701
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A Node hosting an NTP server SHALL update the NtpServerPort Attribute with the port number for
the service and SHOULD advertise an _ntp._udp DNS-SD service. A Node hosting an NTP server
SHOULD support network time security (NTS). A Node hosting an NTP server SHOULD implement
leap smearing.
This specification offers several options for getting time in order to support Nodes with various
capabilities. This section is not intended as a requirement, but is used to illustrate how various
Nodes might implement this specification.
All Nodes need to support the Time Cluster for the purposes of commissioning, to allow the Adminis
trator to set the initial time. This type of Node would not need to support the Time Zone (TZ) Feature
or the NTP Server (NTPS) Feature. Support for the NTP Client (NTPC) Feature would be dependent on
the implementation, but would likely use an SNTP implementation if this Feature was supported.
If the Node does support an SNTP client, it would mark the NTP Client (NTPC) Feature as true and
would have the following Attributes:
• UTCTime
• Granularity
• TimeSource
• TrustedTimeNodeId
• DefaultNtp
To achieve time synchronization, the Node would start at Step 3 of Section 11.16.12, “Time source
prioritization” (Steps 1 and 2 do not apply). If the Node is maintaining time it would set its Granular
ity Attribute as appropriate (Usually either MillisecondsGranularity or SecondsGranularity depend
ing on whether a Time Cluster or SNTP is used, and on the SNTP round trip delay). If the Node
wishes to use a single time synchronization, but will not continue to synchronize to the upstream
source, it may either set the Granularity as appropriate and downgrade as the clock drifts, or may
simply opt to set the Granularity to MinutesGranularity. The TimeSource Attribute would be set as
appropriate. If the Node determines it does not require time synchronization for operation, it
would set UTCTime to null, Granularity to NoTimeGranularity and TimeSource to None.
If the Node does not support an SNTP client, it would mark the NTP Client (NTPC) Feature as false
and would have the following Attributes:
• UTCTime
• Granularity
• TimeSource
• TrustedTimeNodeId
To achieve time synchronization, the Node would start at step 6 (querying a Time Cluster) of Section
11.16.12, “Time source prioritization” (other steps do not apply). If the Node wishes to maintain
Page 702 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
time synchronization by re-querying, it would set its Granularity Attribute as appropriate (Usually
SecondsGranularity for a MillisecondsGranularity source). If the Node wishes to use a single time
synchronization, it may either set the Granularity as appropriate and downgrade as the clock drifts,
or may simply opt to set the Granularity to MinutesGranularity. In both cases, the TimeSource would
be set to NodeTimeCluster. If the Node determines it does not require time synchronization for oper
ation, it would set UTCTime to null, Granularity to NoTimeGranularity and TimeSource to None.
This type of Node would need to support the Time Zone (TZ) Feature to support scheduling, but
would not support the NTP Server (NTPS) Feature as it is a sleepy device and would not make a reli
able server.
If the Node does support an SNTP client, it would mark the NTP Client (NTPC) Feature as true and
would have the following Attributes:
• UTCTime
• Granularity
• TimeSource
• TrustedTimeNodeId
• DefaultNtp
To achieve time synchronization, the Node would start at Step 3 of Section 11.16.12, “Time source
prioritization” (Steps 1 and 2 do not apply). If the Node is maintaining time it would set its Granular
ity Attribute as appropriate (Usually either MillisecondsGranularity or SecondsGranularity depend
ing on whether a Time Cluster or SNTP is used, and on the SNTP round trip delay). If the Node
wishes to use a single time synchronization, but will not continue to synchronize to the upstream
source, it may either set the Granularity as appropriate and downgrade as the clock drifts, or may
simply opt to set the Granularity to 'MinutesGranularity'. The TimeSource Attribute would be set as
appropriate. If the Node determines it does not require time synchronization for operation, it
would set UTCTime to null, Granularity to NoTimeGranularity and TimeSource to None.
If the Node does not support an SNTP client, it would mark the NTP Client (NTPC) Feature as false
and would have the following Attributes:
• UTCTime
• Granularity
• TimeSource
• TrustedTimeNodeId
To achieve time synchronization, the Node would start at step 6 (querying a Time Cluster) of Section
11.16.12, “Time source prioritization” (other steps do not apply). If the Node wishes to maintain
time synchronization by re-querying, it would set its Granularity Attribute as appropriate (Usually
SecondsGranularity for a MillisecondsGranularity source). If the Node wishes to use a single time
synchronization, it may either set the Granularity as appropriate and downgrade as the clock drifts,
or may simply opt to set the Granularity to MinutesGranularity. In both cases, the TimeSource would
be set to NodeTimeCluster. If the Node determines it does not require time synchronization for oper
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 703
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ation, it would set UTCTime to null, Granularity to NoTimeGranularity and TimeSource to None.
These types of Nodes are normally relatively capable, high-powered and always-on. These would
most likely include time zone support for scheduling and display. Often these will have significant
software beyond this specification and are likely to already have built-in mechanisms for time syn
chronization. Such Nodes SHOULD support an NTP server to serve time to other Nodes in the net
work. In most cases, these Nodes would support all the Features of this Cluster and would have the
following Attributes.
• UTCTime
• Granularity
• TimeSource
• TrustedTimeNodeId
• DefaultNtp
• TimeZone
• DstOffset
• LocalTime
• TimeZoneDatabase
• NtpServerPort
To achieve time synchronization, these Nodes would likely use Step 1 or Step 2 of Section 11.16.12,
“Time source prioritization”, using the remaining options as fallback if necessary. The Node would
then set its Granularity and TimeSource as appropriate, and would maintain its times, Granularity
and TimeSource. The Node SHOULD also start an NTP server, publish the port in the NtpServerPort
Attribute and advertise using DNS-SD on _ntp._udp.
If a time-zone database is supported (Node can calculate DST times from TimeZone settings) These
Nodes MAY subscribe to the DstTableEmpty Events of Nodes with no TimeZoneDatabase support. Upon
receipt of these events the Node SHOULD calculate and set new DST times for such Nodes by writ
ing the DstOffset Attribute.
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Page 704 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Rev Description
i
sio
n
1 Initial Release
11.17.2. Classification
Iden Name
tifier
11.17.4. Features
A RESP_MAX constant appears in the description of some command fields in this cluster and within
the description of some associated serialization schemes.
The current limit of 900 bytes was chosen to accommodate the maximum size of IPv6 frames, trans
port headers, message layer headers and integrity protection and Interaction Model protocol
encoding, while accounting for sufficient remaining space for signatures and to allow extensions to
larger key and digest sizes in the future.
11.17.5.2. NOCStruct
This encodes a fabric sensitive NOC chain, underpinning a commissioned Operational Identity for a
given Node.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 705
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Note that the Trusted Root CA Certificate is not included in this structure. The roots are available in
the TrustedRootCertificates attribute of the Node Operational Credentials cluster.
NOC
This field SHALL contain the NOC for the struct’s associated fabric, encoded using Matter Certificate
Encoding.
ICAC
This field SHALL contain the ICAC or the struct’s associated fabric, encoded using Matter Certificate
Encoding. If no ICAC is present in the chain, this field SHALL be set to null.
11.17.5.3. FabricDescriptorStruct
1 RootPub octstr 65 M
licKey
3 FabricID fabric-id M
4 NodeID node-id M
This structure encodes a Fabric Reference for a fabric within which a given Node is currently com
missioned.
RootPublicKey
This field SHALL contain the public key for the trusted root that scopes the fabric referenced by
FabricIndex and its associated operational credential (see Section 6.4.5.3, “Trusted Root CA Certifi
cates”). The format for the key shall be the same as that used in the ec-pub-key field of the Matter
Certificate Encoding for the root in the operational certificate chain.
VendorID
This field SHALL contain the value of AdminVendorID provided in the AddNOC command that led
to the creation of this FabricDescriptorStruct. The set of allowed values is defined in Section
11.17.7.8.3, “AdminVendorID Field”.
The intent is to provide some measure of user transparency about which entities have Administer
privileges on the Node.
Page 706 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
FabricID
This field SHALL contain the FabricID allocated to the fabric referenced by FabricIndex. This field
SHALL match the value found in the matter-fabric-id field from the operational certificate provid
ing the operational identity under this Fabric.
NodeID
This field SHALL contain the NodeID in use within the fabric referenced by FabricIndex. This field
SHALL match the value found in the matter-node-id field from the operational certificate providing
this operational identity.
Label
This field SHALL contain a commissioner-set label for the fabric referenced by FabricIndex. This
label is set by the UpdateFabricLabel command.
The Attestation Elements contain the metadata related to attestation, encoded in Matter TLV.
Any context-specific tags not listed in the above schema for Attestation Elements SHALL be
reserved for future use, and SHALL be silently ignored if seen by a Commissioner which cannot
understand them.
The Attestation Information is the combination of a Matter TLV payload, containing the Attestation
Elements, as well as a signature over an attestation_tbs message containing the in-band-transmit
ted attestation_elements_message and a secret out-of-band Attestation Challenge.
1. Encode the attestation-elements structure with an anonymous tag into an octet string called
attestation_elements_message.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 707
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
◦ The attestation_nonce field SHALL match the AttestationNonce field provided in the Attesta
tionRequest Command that triggered the generation of the Attestation Elements.
◦ Vendor specific information, if present, SHALL be encoded using fully qualified tags. Such
fields allow the Node taking part in the Device Attestation Procedure to communicate ven
dor-specific information that MAY aid in device commissioning. Commissioners that do not
understand the format of the data MAY ignore them.
attestation_elements_message =
{
certification_declaration(1) = certification_declaration,
attestation_nonce(2) = attestation_nonce,
timestamp(3) = timestamp,
firmware_information(4) = firmware_information,
2. Obtain the AttestationChallenge from a CASE session, resumed CASE session, or PASE session
depending on the method used to establish the current session. This is an octet string of length
CRYPTO_SYMMETRIC_KEY_LENGTH_BITS. Save it for the next step as attestation_challenge.
attestation_signature = Crypto_Sign(
message = attestation_tbs,
privateKey = Device Attestation Private Key
)
5. Fill the AttestationElements field of the AttestationResponse Command using the contents of the
attestation_elements_message octet string.
6. Fill the AttestationSignature field of the AttestationResponse Command using the contents of
the attestation_signature octet string.
7. Note that the attestation_challenge SHALL NOT be included in any of the payloads conveyed as
part of the Attestation Information.
See Section F.2, “Device Attestation Response test vector” for an example computation of the above
messages and application payloads.
Page 708 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The NOCSR Elements contain the metadata related to NOCSR, encoded in Matter TLV.
Any context-specific tags not listed in the above schema for NOCSR Elements SHALL be reserved for
future use, and SHALL be silently ignored if seen by a Commissioner which cannot understand
them.
The NOCSR Information is the combination of a Matter TLV payload, containing the NOCSR Ele
ments, as well as a signature over an nocsr_tbs message containing the in-band-transmitted noc
sr_elements_message and a secret out-of-band Attestation Challenge, using the Attestation Private
Key that is unique to the device producing the NOCSR Information.
1. Encode the nocsr-elements structure with an anonymous tag into an octet string called noc
sr_elements_message.
◦ The csr field SHALL be a DER-encoded octet string of a properly encoded PKCS #10 Certificate
Signing Request (CSR), signed with the Node Operational Private Key associated with the
Node Operational Public Key, which is the subjectPublicKey field of the CSR. See Section
6.4.6.1, “Node Operational Certificate Signing Request (NOCSR) Procedure” for details about
the generation of the Node Operational Key Pair, and the contents of the CSR.
◦ The CSRNonce field SHALL match the CSR Nonce field in the corresponding CSRRequest Com
mand.
◦ The vendor_reserved1 through vendor_reserved3 fields allow the Node taking part in the
NOCSR Procedure to communicate vendor-specific information that MAY aid in device com
missioning. Commissioners that do not understand the format of the data MAY ignore them.
nocsr_elements_message =
{
csr(1) = node_operational_csr_der_bytes,
CSRNonce(2) = CSRNonce,
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 709
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
2. Obtain the AttestationChallenge from a CASE session, resumed CASE session, or PASE session
depending on the method used to establish the current session. This is an octet string of length
CRYPTO_SYMMETRIC_KEY_LENGTH_BITS. Save it for the next step as attestation_challenge.
attestation_signature = Crypto_Sign(
message = nocsr_tbs,
privateKey = Device Attestation Private Key
)
5. Fill the NOCSRElements field of the CSRResponse Command using the contents of the nocsr_ele
ments_message octet string.
6. Fill the AttestationSignature field of the CSRResponse Command using the contents of the
attestation_signature octet string.
7. Note that the attestation_challenge SHALL NOT be included in any of the payloads conveyed as
part of the NOCSR Information.
See Section F.3, “Node Operational CSR Response test vector” for an example computation of the
above messages and application payloads.
This enumeration is used by the NOCResponse common response command to convey detailed out
Page 710 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
0 Ok M OK, no error
11.17.6. Attributes
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 711
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This attribute contains all NOCs applicable to this Node, encoded as a read-only list of NOCStruct.
Operational Certificates SHALL be added through the AddNOC command, and SHALL be removed
through the RemoveFabric command.
Upon Factory Data Reset, this attribute SHALL be set to a default value of an empty list.
The number of entries in this list SHALL match the number of entries in the Fabrics attribute.
This attribute describes all fabrics to which this Node is commissioned, encoded as a read-only list
of FabricDescriptorStruct. This information MAY be computed directly from the NOCs attribute.
Upon Factory Data Reset, this attribute SHALL be set to a default value of an empty list.
The number of entries in this list SHALL match the number of entries in the NOCs attribute.
This attribute contains the number of Fabrics that are supported by the device. This value is fixed
for a particular device.
This attribute contains the number of Fabrics to which the device is currently commissioned. This
attribute SHALL be equal to the following:
Page 712 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Upon Factory Data Reset, this attribute SHALL be set to a default value of 0.
This attribute SHALL contain a read-only list of Trusted Root CA Certificates installed on the Node,
as octet strings containing their Matter Certificate Encoding representation.
Depending on the method of storage employed by the server, either shared storage for identical
root certificates shared by many fabrics, or individually stored root certificate per fabric, multiple
identical root certificates MAY legally appear within the list.
To match a root with a given fabric, the root certificate’s subject and subject public key need to be
cross-referenced with the NOC or ICAC certificates that appear in the NOCs attribute for a given fab
ric.
Upon Factory Data Reset, this attribute SHALL be set to a default value whereby the list is empty.
This attribute is useful to contextualize Fabric-Scoped entries obtained from response commands or
attribute reads, since a given Fabric may be referenced by a different Fabric Index locally on a
remote Node.
11.17.7. Commands
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 713
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This command SHALL be generated to request the Attestation Information, in the form of an Attes
tationResponse Command. If the AttestationNonce that is provided in the command is malformed, a
recipient SHALL fail the command with a Status Code of INVALID_COMMAND. The AttestationNonce field
SHALL be used in the computation of the Attestation Information.
0 Attestation octstr 32 M
Nonce
See Section 11.17.5.5, “Attestation Information” for details about the generation of the fields within
this response command.
The AttestationElements field shall contain the octet string of the serialized attestation_ele
ments_message.
The AttestationSignature field shall contain the octet string of the necessary attestation_signature
as described in Section 11.17.5.5, “Attestation Information”.
See Section F.2, “Device Attestation Response test vector” for an example computation of an Attesta
tionResponse.
1 Attesta octstr 64 M
tionSignature
If the CertificateType is not a valid value per Certificate Chain Type Enum then the command
SHALL fail with a Status Code of INVALID_COMMAND.
Page 714 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This command SHALL be generated to execute the Node Operational CSR Procedure and subse
quently return the NOCSR Information, in the form of a CSRResponse Command.
The CSRNonce field SHALL be used in the computation of the NOCSR Information. If the CSRNonce is
malformed, then this command SHALL fail with an INVALID_COMMAND status code.
If the IsForUpdateNOC field is present and set to true, but the command was received over a PASE
session, the command SHALL fail with an INVALID_COMMAND status code, as it would never be possible
to use a resulting subsequent certificate issued from the CSR with the UpdateNOC command, which
is forbidden over PASE sessions.
If the IsForUpdateNOC field is present and set to true, the internal state of the CSR associated keypair
SHALL be tagged as being for a subsequent UpdateNOC, otherwise the internal state of the CSR
SHALL be tagged as being for a subsequent AddNOC. See Section 11.17.7.8, “AddNOC Command”
and Section 11.17.7.9, “UpdateNOC Command” for details about the processing.
If this command is received without an armed fail-safe context (see Section 11.9.7.2, “ArmFailSafe
Command”), then this command SHALL fail with a FAILSAFE_REQUIRED status code sent back to the
initiator.
If a prior UpdateNOC or AddNOC command was successfully executed within the fail-safe timer period,
then this command SHALL fail with a CONSTRAINT_ERROR status code sent back to the initiator.
If the Node Operational Key Pair generated during processing of the Node Operational CSR Proce
dure is found to collide with an existing key pair already previously generated and installed, and
that check had been executed, then this command SHALL fail with a FAILURE status code sent back
to the initiator.
0 CSRNonce octstr 32 M
See Section 11.17.5.7, “NOCSR Information” for details about the generation of the fields within this
response command.
The NOCSRElements field shall contain the octet string of the serialized nocsr_elements_message.
The AttestationSignature field shall contain the octet string of the necessary attestation_signature
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 715
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
See Section F.3, “Node Operational CSR Response test vector” for an example computation of a CSR
Response.
1 Attesta octstr 64 M
tionSignature
The AddNOC command is used to commission a Node into a Fabric by providing a usable NOC and
ICAC, with associated Node Operational IDs.
The UpdateNOC command is used to update existing credentials within a Fabric, for the purposes of:
• Updating the contents of the NOC and optionally the ICAC certificates (subjects, issuers, keys,
etc) under the current root of trust and Fabric
Both of these commands receive an NOCValue and optional ICACValue fields and require some com
mon validation in addition to their specific behavior.
The NOCValue and ICACValue fields SHALL be octet strings that represent a certificate encoded using
Matter Certificate Encoding.
Upon receipt, the NOCValue and ICACValue chain SHALL be validated in the following ways:
2. The public key of the NOC SHALL match the last generated operational public key on this ses
sion, and therefore the public key present in the last CSRResponse provided to the Administrator
or Commissioner that sent the AddNOC or UpdateNOC command. If this check fails, the error
status SHALL be InvalidPublicKey.
3. The DN Encoding Rules SHALL be validated for every certificate in the chain, including valid
value range checks for identifiers such as Fabric ID and Node ID. If this validation fails, the
error status SHALL be InvalidNodeOpId if the matter-node-id attribute in the subject DN of the
NOC has a value outside the Operational Node ID range and InvalidNOC for all other failures.
Page 716 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
If any of the above validation checks fail, the server SHALL immediately respond to the client with
an NOCResponse. The StatusCode field of the NOCResponse SHALL be set to the error status value speci
fied in the above validation checks.
These certificate validation steps are performed to ensure that operational credentials installed
match an operational key pair generated by the Device and respect the trust model assumptions
expressed in Section 6.4.5.1, “Node Operational Certificate (NOC)”.
Handling Errors
For any error described in the following subsections, the device SHALL immediately respond to the
client with an NOCResponse with the prescribed StatusCode field, and SHALL leave all non-volatile
state of the device untouched, as if the AddNOC command had never been received. The information
about the last CSR state associated with this session SHALL also be untouched in this case, so that a
valid AddNOC command MAY still be issued later that would match that CSR state. The DebugText field
in the NOCResponse MAY be filled with debug information.
The following failed preconditions error cases apply to all invocations of AddNOC:
• If the device already has the CommissionedFabrics attribute equal to the SupportedFabrics
attribute, then the device’s operational credentials table is considered full and the device
SHALL process the error by responding with a StatusCode of TableFull as described in Section
11.17.7.7.2, “Handling Errors”.
• If no context or memory exists of a prior CSRRequest command having been invoked in the same
secure session as that which is receiving this AddNOC or UpdateNOC invocation, then the Node
SHALL process the error by responding with a StatusCode of MissingCsr as described in Section
11.17.7.7.2, “Handling Errors”.
This command SHALL add a new NOC chain to the device and commission a new Fabric association
upon successful validation of all arguments and preconditions.
The new value SHALL immediately be reflected in the NOCs list attribute.
A Commissioner or Administrator SHALL issue this command after issuing the CSRRequest com
mand and receiving its response.
A Commissioner or Administrator SHOULD issue this command after performing the Attestation
Procedure.
2 IpkValue octstr 16 M
3 CaseAdmin SubjectID M
Subject
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 717
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
4 AdminVen vendor-id M
dorId
IpkValue Field
The IpkValue field SHALL contain the value of the Epoch Key for the Identity Protection Key (IPK) to
set for the Fabric which is to be added. This is needed to bootstrap a necessary configuration value
for subsequent CASE to succeed. See Section 4.13.2.6.1, “Identity Protection Key (IPK)” for details.
On successful execution of the AddNOC command, the side-effect of having provided this field
SHALL be equivalent to having done a GroupKeyManagement cluster KeySetWrite command invo
cation using the newly joined fabric as the accessing fabric and with the following argument fields
(assuming KeySetWrite allowed a GroupKeySetID set to 0):
KeySetWrite
(
GroupKeySetStruct :=
{
GroupKeySetID := 0,
GroupKeySecurityPolicy := 0,
EpochKey0 := <Contents of IpkValue field>,
EpochStartTime0 := 0,
EpochKey1 := null
EpochStartTime1 := null
EpochKey2 := null,
EpochStartTime2 := null
}
)
CaseAdminSubject Field
If the AddNOC command succeeds according to the semantics of the following subsections, then the
Access Control SubjectID SHALL be used to atomically add an Access Control Entry enabling that
Subject to subsequently administer the Node whose operational identity is being added by this com
mand.
The format of the new Access Control Entry, created from this, SHALL be:
{
FabricIndex: **FabricIndex derived from current or new Fabric**,
Privilege: Administer,
AuthMode: CASE,
Subjects: [**CaseAdminSubject provided in the AddNOC command**],
Targets: [], // entire node
Extension: [] // empty
Page 718 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Unless such an Access Control Entry is added atomically as described here, there
would be no way for the caller on its given Fabric to eventually add another Access
Control Entry for CASE authentication mode, to enable the new Administrator to
administer the device, since the Fabric Scoping of the Access Control List prevents
the current Node from being able to write new entries scoped to that Fabric, if the
NOTE session is established from CASE. While a session established from PASE does gain
Fabric Scope of a newly-joined Fabric, this argument is made mandatory to provide
symmetry between both types of session establishment, both of which need to even
tually add an "Administer Node over CASE" Access Control Entry to finalize new
Fabric configuration and subsequently be able to call the CommissioningComplete
command.
AdminVendorID Field
This SHALL be set to the Vendor ID of the entity issuing the AddNOC command. This value SHALL
NOT be one of the reserved Vendor ID values defined in Table 1, “Vendor ID Allocations”.
If this command is received without an armed fail-safe context (see Section 11.9.7.2, “ArmFailSafe
Command”), then this command SHALL fail with a FAILSAFE_REQUIRED status code sent back to the
initiator.
If a prior UpdateNOC or AddNOC command was successfully executed within the fail-safe timer period,
then this command SHALL fail with a CONSTRAINT_ERROR status code sent back to the initiator.
If the prior CSRRequest state that preceded AddNOC had the IsForUpdateNOC field indicated as true,
then this command SHALL fail with a CONSTRAINT_ERROR status code sent back to the initiator.
If no prior AddTrustedRootCertificate command was successfully executed within the fail-safe timer
period, then this command SHALL process an error by responding with a NOCResponse with a Sta
tusCode of InvalidNOC as described in Section 11.17.7.7.2, “Handling Errors”. In other words, AddNOC
always requires that the client provides the root of trust certificate within the same Fail-Safe con
text as the rest of the new fabric’s operational credentials, even if some other fabric already uses
the exact same root of trust certificate.
If the NOC provided in the NOCValue encodes an Operational Identifier for a <Root Public Key, Fabri
cID> pair already present on the device, then the device SHALL process the error by responding
with a StatusCode of FabricConflict as described in Section 11.17.7.7.2, “Handling Errors”.
If the device already has the CommissionedFabrics attribute equal to the SupportedFabrics attribute,
then the device’s operational credentials table is considered full and the device SHALL process the
error by responding with a StatusCode of TableFull as described in Section 11.17.7.7.2, “Handling
Errors”.
If the CaseAdminSubject field is not a valid ACL subject in the context of AuthMode set to CASE, such
as not being in either the Operational or CASE Authenticated Tag range, then the device SHALL
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 719
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Otherwise, the command is considered an addition of credentials, also known as "joining a fabric",
and the following SHALL apply:
1. A new FabricIndex SHALL be allocated, taking the next valid fabric-index value in monotoni
cally incrementing order, wrapping around from 254 (0xFE) to 1, since value 0 is reserved and
using 255 (0xFF) would prevent cluster specifications from using nullable fabric-idx fields.
2. An entry within the Fabrics attribute table SHALL be added, reflecting the matter-fabric-id
RDN within the NOC’s subject, along with the public key of the trusted root of the chain and the
AdminVendorID field.
3. The operational key pair associated with the incoming NOC from the NOCValue, and generated by
the prior CSRRequest command, SHALL be recorded for subsequent use during CASE within the
fail-safe timer period (see Section 5.5, “Commissioning Flows”).
4. The incoming NOCValue and ICACValue (if present) SHALL be stored under the FabricIndex associ
ated with the new Fabric Scope, along with the RootCACertificate provided with the prior suc
cessful AddTrustedRootCertificate command invoked in the same fail-safe period.
a. Implementation of certificate chain storage MAY separate or otherwise encode the compo
nents of the array in implementation-specific ways, as long as they follow the correct format
when being read from the NOCs list or used within other protocols such as CASE.
5. The NOCs list SHALL reflect the incoming NOC from the NOCValue field and ICAC from the ICAC
Value field (if present).
6. The operational discovery service record SHALL immediately reflect the new Operational Iden
tifier, such that the Node immediately begins to exist within the Fabric and becomes reachable
over CASE under the new operational identity.
7. The receiver SHALL create and add a new Access Control Entry using the CaseAdminSubject field
to grant subsequent Administer access to an Administrator member of the new Fabric. It is REC
OMMENDED that the Administrator presented in CaseAdminSubject exist within the same entity
that is currently invoking the AddNOC command, within another of the Fabrics of which it is a
member.
8. The incoming IpkValue SHALL be stored in the Fabric-scoped slot within the Group Key Manage
ment cluster (see KeySetWrite), for subsequent use during CASE.
9. The Fabric Index associated with the armed fail-safe context (see Section 11.9.7.2, “ArmFailSafe
Command”) SHALL be updated to match the Fabric Index just allocated.
10. If the current secure session was established with PASE, the receiver SHALL:
a. Augment the secure session context with the FabricIndex generated above, such that subse
quent interactions have the proper accessing fabric.
11. If the current secure session was established with CASE, subsequent configuration of the newly
installed Fabric requires the opening of a new CASE session from the Administrator from the
Fabric just installed. This Administrator is the one listed in the CaseAdminSubject argument.
Thereafter, the Node SHALL respond with an NOCResponse with a StatusCode of Ok and a FabricIndex
field matching the FabricIndex under which the new Node Operational Certificate (NOC) is scoped.
Page 720 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This command SHALL replace the NOC and optional associated ICAC (if present) scoped under the
accessing fabric upon successful validation of all arguments and preconditions. The new value
SHALL immediately be reflected in the NOCs list attribute.
A Commissioner or Administrator SHALL issue this command after issuing the CSRRequest Com
mand and receiving its response.
A Commissioner or Administrator SHOULD issue this command after performing the Attestation
Procedure.
If this command is received without an armed fail-safe context (see Section 11.9.7.2, “ArmFailSafe
Command”), then this command SHALL fail with a FAILSAFE_REQUIRED status code sent back to the
initiator.
If a prior UpdateNOC or AddNOC command was successfully executed within the fail-safe timer period,
then this command SHALL fail with a CONSTRAINT_ERROR status code sent back to the initiator.
If a prior AddTrustedRootCertificate command was successfully invoked within the fail-safe timer
period, then this command SHALL fail with a CONSTRAINT_ERROR status code sent back to the initiator,
since the only valid following logical operation is invoking the AddNOC command.
If the prior CSRRequest state that preceded UpdateNOC had the IsForUpdateNOC field indicated as false,
then this command SHALL fail with a CONSTRAINT_ERROR status code sent back to the initiator.
If any of the following conditions arise, the Node SHALL process an error by responding with an
NOCResponse with a StatusCode of InvalidNOC as described in Section 11.17.7.7.2, “Handling
Errors”:
• The NOC provided in the NOCValue does not refer in its subject to the FabricID associated with
the accessing fabric.
• The ICAC provided in the ICACValue (if present) has a FabricID in its subject that does not match
the FabricID associated with the accessing fabric.
Otherwise, the command is considered an update of existing credentials for a given Fabric, and the
following SHALL apply:
1. The Operational Certificate under the accessing fabric index in the NOCs list SHALL be updated
to match the incoming NOCValue and ICACValue (if present), such that the Node’s Operational
Identifier within the Fabric immediately changes.
a. The operational key pair associated with the incoming NOC from the NOCValue, and gener
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 721
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ated by the prior CSRRequest command, SHALL be committed to permanent storage, for sub
sequent use during CASE.
b. The operational discovery service record SHALL immediately reflect the new Operational
Identifier.
c. All internal data reflecting the prior operational identifier of the Node within the Fabric
SHALL be revoked and removed, to an outcome equivalent to the disappearance of the prior
Node, except for the ongoing CASE session context, which SHALL temporarily remain valid
until the NOCResponse has been successfully delivered or until the next transport-layer error,
so that the response can be received by the Administrator invoking the command.
Thereafter, the Node SHALL respond with an NOCResponse with a StatusCode of Ok and a FabricIndex
field matching the FabricIndex under which the updated NOC is scoped.
• AddNOC
• UpdateNOC
• UpdateFabricLabel
• RemoveFabric
0 StatusCode Operational M
CertStatus
StatusCode Field
This field SHALL contain an NOCStatus value representing the status of an operation involving a
NOC.
FabricIndex Field
This field SHALL be present whenever StatusCode has a value of Ok. If present, it SHALL contain the
Fabric Index of the Fabric last added, removed or updated.
DebugText Field
This field MAY contain debugging textual information from the cluster implementation, which
SHOULD NOT be presented to user interfaces in any way. Its purpose is to help developers in trou
bleshooting errors and the contents MAY go into logs or crash reports.
Page 722 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This command SHALL be used by an Administrator to set the user-visible Label field for a given
Fabric, as reflected by entries in the Fabrics attribute.
The Label SHOULD be used by Administrators to provide additional per-fabric context when opera
tions such as RemoveFabric are used.
Label Field
This field SHALL contain the label to set for the fabric associated with the current secure session.
Effect on Receipt
If the Label field is identical to a Label already in use by a Fabric within the Fabrics list that is not
the accessing fabric, then an NOCResponse with a StatusCode of LabelConflict SHALL be returned for
the command and there SHALL NOT be any permanent changes to any Fabric data.
Otherwise, the Label field for the accesing fabric SHALL immediately be updated to reflect the Label
argument provided. Following the update, an NOCResponse with a StatusCode of Ok SHALL be
returned.
If the command was invoked within a fail-safe context after a successful UpdateNOC command,
then the label update SHALL apply to the pending update state that will be reverted if fail-safe
expires prior to a CommissioningComplete command. In other words, label updates apply to the
state of the Fabrics Attribute as currently visible, even for an existing fabric currently in process of
being updated.
This command is used by Administrators to remove a given Fabric and delete all associated fab
ric-scoped data.
If the given Fabric being removed is the last one to reference a given Trusted Root CA Certificate
stored in the Trusted Root Certificates list, then that Trusted Root Certificate SHALL be removed.
This command, if referring to an already existing Fabric not under the control
of the invoking Administrator, SHALL ONLY be invoked after obtaining some
form of explicit user consent through some method executed by the Adminis
trator or Commissioner. This method of obtaining consent SHOULD employ as
WARNING much data as possible about the existing Fabric associations within the Fabrics
list, so that likelihood is as small as possible of a user removing a Fabric unwit
tingly. If a method exists for an Administrator or Commissioner to convey Fab
ric Removal to an entity related to that Fabric, whether in-band or out-of-band,
then this method SHOULD be used to notify the other Administrative Domain’s
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 723
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
party of the removal. Otherwise, users may only observe the removal of a Fab
ric association as persistently failing attempts to reach a Node operationally.
FabricIndex Field
This field SHALL contain the Fabric Index reference (see fabric-index) associated with the Fabric
which is to be removed from the device.
Effect on Receipt
If the FabricIndex field does not match the FabricIndex of any entry within the Fabrics list, then an
NOCResponse with a StatusCode of InvalidFabricIndex SHALL be returned for the command and
there SHALL NOT be any permanent changes to any device data.
1. If the FabricIndex matches the last remaining entry in the Fabrics list, then the device SHALL
delete all Matter related data on the node which was created since it was commissioned. This
includes all Fabric-Scoped data, including Access Control List, bindings, scenes, group keys,
operational certificates, etc. All Trusted Roots SHALL also be removed. Any Matter related data
including logs, secure sessions, exchanges and interaction model constructs SHALL also be
removed. Since this operation involves the removal of the secure session data that may under
pin the current set of exchanges, the Node invoking the command SHOULD NOT expect a
response before terminating its secure session with the target.
2. If the FabricIndex does not equal the accessing fabric index, then the device SHALL begin the
process of irrevocably deleting all associated Fabric-Scoped data, including Access Control List,
bindings, group keys, operational certificates, etc. Any remaining Trusted Roots no longer refer
enced by any operational certificate SHALL also be removed. All secure sessions, exchanges and
interaction model constructs related to the Operational Identity under the given Fabric SHALL
also be removed. Following the removal, an NOCResponse with a StatusCode of Ok SHALL be
returned.
3. If the FabricIndex equals the accessing fabric index, then the device SHALL begin the process of
irrevocably deleting all associated Fabric-Scoped data, including Access Control Entries, bind
ings, group keys, operational certificates, etc. Any remaining Trusted Roots no longer refer
enced by any operational certificate SHALL also be removed. All secure sessions, exchanges and
interaction model constructs related to the Operational Identity under the given Fabric SHALL
also be removed. Since this operation involves the removal of the secure session data that may
underpin the current set of exchanges, the Node invoking the command SHOULD NOT expect a
response before terminating its secure session with the target.
This command SHALL add a Trusted Root CA Certificate, provided as its Matter Certificate Encoding
representation, to the TrustedRootCertificates Attribute list and SHALL ensure the next AddNOC
command executed uses the provided certificate as its root of trust.
Page 724 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
If the certificate from the RootCACertificate field is already installed, based on exact byte-for-byte
equality, then this command SHALL succeed with no change to the list.
If this command is received without an armed fail-safe context (see Section 11.9.7.2, “ArmFailSafe
Command”), then this command SHALL fail with a FAILSAFE_REQUIRED status code sent back to the
initiator.
If a prior AddTrustedRootCertificate command was successfully invoked within the fail-safe timer
period, which would cause the new invocation to add a second root certificate within a given fail-
safe timer period, then this command SHALL fail with a CONSTRAINT_ERROR status code sent back to
the initiator.
If a prior UpdateNOC or AddNOC command was successfully executed within the fail-safe timer period,
then this command SHALL fail with a CONSTRAINT_ERROR status code sent back to the initiator.
If the certificate from the RootCACertificate field fails any validity checks, not fulfilling all the
requirements for a valid Matter Certificate Encoding representation, including a truncated or over
size value, then this command SHALL fail with an INVALID_COMMAND status code sent back to the ini
tiator.
Note that the only method of removing a trusted root is by removing the Fabric that uses it as its
root of trust using the RemoveFabric command.
This cluster is used to trigger a Node to allow a new Administrator to commission it. It defines
Attributes, Commands and Responses needed for this purpose.
For the management of Operational Credentials and Trusted Root Certificates, the Node Operational
Credentials cluster is used.
• The global ClusterRevision attribute value SHALL be the highest revision number in the table
below.
Rev Description
i
sio
n
1 Initial Release
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 725
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.18.3. Classification
Iden Name
tifier
0x003 AdministratorCommissioning
C
11.18.5. Features
This method MAY be supported and is described in Section 5.6.2, “Basic Commissioning Method
(BCM)”.
This method SHALL be supported and is described in Section 5.6.3, “Enhanced Commissioning
Method (ECM)”.
Page 726 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.18.7. Attributes
This attribute SHALL indicate whether a new Commissioning window has been opened by an
Administrator, using either the OCW command or the OBCW command.
Note that an initial commissioning window is not opened using either the OCW command or the
OBCW command, and therefore this attribute SHALL be set to WindowNotOpen on initial commission
ing.
When the WindowStatus attribute is not set to WindowNotOpen, this attribute SHALL indicate the
FabricIndex associated with the Fabric scoping of the Administrator that opened the window. This
MAY be used to cross-reference in the Fabrics attribute of the Node Operational Credentials cluster.
If, during an open commissioning window, the fabric for the Administrator that opened the win
dow is removed, then this attribute SHALL be set to null.
When the WindowStatus attribute is set to WindowNotOpen, this attribute SHALL be set to null.
When the WindowStatus attribute is not set to WindowNotOpen, this attribute SHALL indicate the Ven
dor ID associated with the Fabric scoping of the Administrator that opened the window. This field
SHALL match the VendorID field of the Fabrics attribute list entry associated with the Administra
tor having opened the window, at the time of window opening. If the fabric for the Administrator
that opened the window is removed from the node while the commissioning window is still open,
this attribute SHALL NOT be updated.
When the WindowStatus attribute is set to WindowNotOpen, this attribute SHALL be set to null.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 727
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.18.8. Commands
Only one commissioning window can be active at a time. If a Node receives another open commis
sioning command when one OCW is already active, it SHALL return a failure response (see Section
11.18.9, “Status Codes”).
When OCW expires or commissioning completes, the Node SHALL remove the Passcode by deleting
the PAKE passcode verifier as well as stop publishing the DNS-SD record corresponding to this com
mand as described in Section 4.3.1, “Commissionable Node Discovery”. The commissioning into a
new Fabric completes when the Node successfully receives a CommissioningComplete command,
see Section 5.5, “Commissioning Flows”.
4 Salt octstr 16 to 32 M
A current Administrator MAY invoke this command to put a node in commissioning mode for the
next Administrator. On completion, the command SHALL return a cluster specific status code from
the enumeration below reflecting success or reasons for failure of the operation. The new Adminis
trator SHALL discover the Node on the IP network using DNS-based Service Discovery (DNS-SD) for
commissioning.
If any format or validity errors related to the PAKEPasscodeVerifier, Iterations or Salt arguments
arise, this command SHALL fail with a cluster specific status code of PAKEParameterError.
If a commissioning window is already currently open, this command SHALL fail with a cluster spe
Page 728 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
If the fail-safe timer is currently armed, this command SHALL fail with a cluster specific status code
of Busy, since it is likely that concurrent commissioning operations from multiple separate Commis
sioners are about to take place.
In case of any other parameter error, this command SHALL fail with a status code of COMMAND_IN
VALID.
CommissioningTimeout
This SHALL specify the time in seconds during which commissioning session establishment is
allowed by the Node. This is known as Open Commissioning Window (OCW). This timeout value
SHALL follow guidance as specified in Announcement Duration. The CommissioningTimeout applies
only to cessation of any announcements and to accepting of new commissioning sessions; it does
not apply to abortion of connections, i.e., a commissioning session SHOULD NOT abort prematurely
upon expiration of this timeout.
PAKEPasscodeVerifier
This field SHALL specify an ephemeral PAKE passcode verifier (see Section 3.10, “Password-Authen
ticated Key Exchange (PAKE)”) computed by the existing Administrator to be used for this commis
sioning. The field is concatenation of two values (w0 || L) SHALL be (CRYPTO_GROUP_SIZE_BYTES +
CRYPTO_PUBLIC_KEY_SIZE_BYTES)-octets long as detailed in Crypto_PAKEValues_Responder. It SHALL be
derived from an ephemeral passcode (See PAKE). It SHALL be deleted by the Node at the end of
commissioning or expiration of OCW, and SHALL be deleted by the existing Administrator after
sending it to the Node(s).
Discriminator
This field SHALL be used by the Node as the long discriminator for DNS-SD advertisement (see
Commissioning Discriminator) for discovery by the new Administrator. The new Administrator can
find and filter DNS-SD records by long discriminator to locate and initiate commissioning with the
appropriate Node.
Iterations
This field SHALL be used by the Node as the PAKE iteration count associated with the ephemeral
PAKE passcode verifier to be used for this commissioning, which SHALL be sent by the Node to the
new Administrator’s software as response to the PBKDFParamRequest during PASE negotiation.
The permitted range of values SHALL match the range specified in Section 3.9, “Password-Based
Key Derivation Function (PBKDF)”, within the definition of the Crypto_PBKDFParameterSet.
Salt
This field SHALL be used by the Node as the PAKE Salt associated with the ephemeral PAKE pass
code verifier to be used for this commissioning, which SHALL be sent by the Node to the new
Administrator’s software as response to the PBKDFParamRequest during PASE negotiation. The
constraints on the value SHALL match those specified in Section 3.9, “Password-Based Key Deriva
tion Function (PBKDF)”, within the definition of the Crypto_PBKDFParameterSet.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 729
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
When a Node receives the Open Commissioning Window command, it SHALL begin advertising on
DNS-SD as described in Section 4.3.1, “Commissionable Node Discovery” and for a time period as
described in Section 11.18.8.1.1, “CommissioningTimeout”. When the command is received by a
SED, it SHALL enter into active mode and set its fast-polling interval to SLEEPY_ACTIVE_INTERVAL
for at least the entire duration of the CommissioningTimeout.
This command MAY be used by a current Administrator to instruct a Node to go into commissioning
mode, if the node supports the Basic Commissioning Method. The Basic Commissioning Method
specifies a window of time during which an already commissioned Node accepts PASE sessions. The
current Administrator SHALL specify a timeout value for the duration of OBCW.
If a commissioning window is already currently open, this command SHALL fail with a cluster spe
cific status code of Busy.
If the fail-safe timer is currently armed, this command SHALL fail with a cluster specific status code
of Busy, since it is likely that concurrent commissioning operations from multiple separate Commis
sioners are about to take place.
In case of any other parameter error, this command SHALL fail with a status code of COMMAND_IN
VALID.
The commissioning into a new Fabric completes when the Node successfully receives a Commis
sioningComplete command, see Section 5.5, “Commissioning Flows”. The new Administrator SHALL
discover the Node on the IP network using DNS-based Service Discovery (DNS-SD) for commission
ing.
CommissioningTimeout
• This SHALL specify the time in seconds during which commissioning session establishment is
allowed by the Node. This is known as Open Basic Commissioning Window (OBCW). This time
out SHALL follow guidance as specified in Announcement Duration.
When a Node receives the Open Basic Commissioning Window command, it SHALL begin advertis
ing on DNS-SD as described in Section 4.3.1, “Commissionable Node Discovery” and for a time
period as described in Section 11.18.8.2.1, “CommissioningTimeout”. When the command is
received by a SED, it SHALL enter into active mode and set its fast-polling interval to SLEEPY_AC
TIVE_INTERVAL for at least the entire duration of the CommissioningTimeout.
This command is used by a current Administrator to instruct a Node to revoke any active Open
Commissioning Window or Open Basic Commissioning Window command. This is an idempotent
Page 730 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
command and the Node SHALL (for ECM) delete the temporary PAKEPasscodeVerifier and associated
data, and stop publishing the DNS-SD record associated with the Open Commissioning Window or
Open Basic Commissioning Window command, see Section 4.3.1, “Commissionable Node Discov
ery”.
If no commissioning window was open at time of receipt, this command SHALL fail with a cluster
specific status code of WindowNotOpen.
The majority of IoT devices require security and/or functional feature updates during their lifetime.
This section describes a set of OTA software update capabilities which enable an "OTA Requestor" to
be informed of, obtain, and install software updates from a Node fulfilling the role of an "OTA
Provider".
An "OTA Requestor" is any Node implementing the OTA Requestor Device Type (0x0012), which ful
fills the client role for the OTA Software Update Provider cluster and the server role for the OTA
Software Update Requestor cluster. An "OTA Provider" is any Node implementing the OTA Provider
Device Type (0x0014), which fulfills the server role for the OTA Software Update Provider cluster
and the client role for the OTA Software Update Requestor cluster.
• A mechanism to allow OTA Requestors to acquire information about available OTA Software
Images.
• A mechanism to allow constrained OTA Requestors to obtain OTA Software Images through a
local proxy, e.g. if they are not able or willing to proceed with a direct download from the Inter
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 731
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
net.
• A mechanism to allow user consent to be considered before offering Software Images to OTA
Requestors.
OTA Requestors wishing to update their software using these capabilities MAY need to use an appli
cation bootloader and MAY require sufficient additional storage in order to download an OTA
image.
Furthermore, to encourage interoperability and timely software updates, the OTA update mecha
nisms provide means of obtaining Software Images which can be uniformly implemented across
OTA Requestors on devices from a variety of different vendors. The OTA Providers SHOULD provide
services to OTA Requestors from vendors other than its own, as long as the location of Software
Update images for these vendors is found. The Distributed Compliance Ledger is one such central
ized source of software update image locations that MAY allow OTA Providers to provide OTA Soft
ware Update Images generically to devices from many vendors.
An OTA Requestor SHALL query the OTA Provider periodically to determine the availability of new
Software Images. The OTA Provider MAY learn, from backend systems inside or outside of Fabric
scope, of the availability of a new Software Image for an OTA Requestor.
An OTA Requestor which has been updated using a mechanism beyond this Cluster MAY report to
an OTA Provider that a Software Image update has been completed.
The OTA Provider MAY announce its presence to OTA Requestors on the Fabric to assist in discovery
of this service (see Section 11.19.7.7, “AnnounceOTAProvider Command”).
Nodes SHALL NOT rely solely on unsolicited OTA Provider announcements to discover available
OTA Providers and SHALL instead employ other means such as using OTA Provider records provi
sioned during Commissioning, or dynamic discovery of OTA Providers.
OTA Requestors SHALL only upgrade to numerically newer versions and OTA Providers SHALL
only ever provide a numerically newer Software Image than a Node’s current version number (see
Section 11.1.6.3.10, “SoftwareVersion Attribute”). Any functional rollback SHALL be affected by the
Vendor creating a Software Image with a newer (higher) version number, but whose binary con
tents may match prior functionality.
All OTA Requestors SHALL support usage of a polling mechanism to send a query command to the
OTA Provider in order to determine if the OTA Provider has any new Software Images for it. Polling
simplifies processing for OTA Requestors that MAY need to perform special setup to get ready to
receive a Software Images, such as unlocking flash or allocating space for a new Software Images.
It is ideal to have OTA Providers maintain as little state as possible since this will scale better when
there are hundreds of OTA Requestors in a given Fabric. The OTA Provider is not required to keep
Page 732 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
track of what pieces of an image that a particular OTA Requestor has received.
The flow for querying the availability of a new version is done using commands of the OTA Provider
Cluster. In case of a new image available matching an OTA Requestor’s request, the response to the
QueryImage command SHALL contain a URI where the given image can be downloaded.
The download protocol is separate from the Cluster commands. All OTA Providers SHALL support
the BDX Protocol to allow for the downloading of OTA images by both sleepy End Devices and more
capable devices, without requiring access to the public Internet from the OTA Requestor. OTA
Requestors SHOULD support the BDX Protocol.
In order to maximize the interoperable combinations of deployed products and Fabric Administra
tors, the CSA’s Distributed Compliance Ledger (DCL) MAY contain sufficient OTA Software Update
information to cover a large number of products, using a federated mechanism of data mainte
nance. See Section 11.22, “Distributed Compliance Ledger” for details on the Distributed Compli
ance Ledger common data schemas. See Section 11.19.3.3.2, “Conceptual algorithm for matching
OTA Software Images applicable to a query” for the conceptual algorithm recommended for imple
mentation by OTA Providers to match records available in the DCL to incoming queries.
The software update workflow consists of several steps executed in a sequence from an OTA
Requestor towards an OTA Provider. When a newer Software Image for an OTA Requestor is avail
able on the OTA Provider this results in an updated Software Image being acquired and applied by
said OTA Requestor.
The steps, in order, and assuming each step successfully leads to the next, are the following, with
each numbered according to Figure 74, “Detailed OTA Software Update Workflow”:
• [10] OTA Provider optionally announces its presence to nodes (see Section 11.19.7.7,
“AnnounceOTAProvider Command”). This MAY be used in addition to other OTA Provider dis
covery methods.
• [11] OTA Requestor queries the OTA Provider for availability of an updated Software Image ver
sion.
• [30..34] OTA Provider obtains consent from user to apply the OTA update.
• [40..41] OTA Provider obtains a copy of the new Software Image, either in real time or in a time-
deferred manner, to provide to the OTA Requestor over BDX Protocol, or over an alternate sup
ported protocol that both OTA Provider and OTA Requestor support. If the Software Image hap
pens to be already available in the OTA Provider’s cache, this step can be skipped.
• [52] OTA Requestor downloads the update, either over BDX Protocol from OTA Provider acting
as a proxy, or over an alternate protocol that both OTA Provider and OTA Requestor support.
• [60] OTA Requestor notifies the OTA Provider that the download is complete and that it is ready
to apply the downloaded image.
• [61] OTA Provider responds with an authorization to apply the update, after an optional delay.
• [62] OTA Requestor applies the update and starts executing updated software.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 733
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• [63] OTA Requestor notifies the OTA Provider of having successfully applied the update.
In order to illustrate more specifically these steps, Figure 74, “Detailed OTA Software Update Work
flow” below depicts a detailed sequence showing the following illustrative (not normative) aspects:
• [22] Deferral of download by OTA Provider responding with a "Busy" condition, while it obtains
user consent and obtains the Software Image from a vendor server based on information in the
OTA Provider’s OTA Software Update logic.
◦ [32..34] Reuse of prior user consent, perhaps from a continued but revokable authorization,
sent back to the OTA Provider by OTA Software Update logic.
◦ Via the OTA Provider delegating to the OTA Requestor Node (see Section 11.19.3.4.1, “User
consent delegation to Nodes”). Note that this case is not illustrated in the sequence diagram.
• [40..41] Downloading and temporarily storing a Software Image by the OTA Provider, from a
Vendor’s server, over the public Internet, for the purposes of eventual proxied local download
by the OTA Requestor.
• [50..51] Responding positively to a subsequent query by the OTA Requestor, since an OTA soft
ware update is now definitely available.
• [52] Downloading of the Software Image from the OTA Provider by the OTA Requestor, using the
BDX Protocol against the temporary storage of the OTA Provider.
• [60..63] OTA Requestor performs the update (after permission from OTA Provider)
Page 734 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Given that some of the above steps MAY fail to complete, and that some MAY provide a variety of
outcomes or replies, the following subsections give the necessary normative details describing the
sequence.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 735
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The discovery of available OTA Providers is necessary for OTA Requestors to be able to query for
new software images. Each OTA Requestor SHALL keep a list of OTA Provider Operational Identi
fiers (see Section 2.5.5, “Node Identifier”) that it could query.
A given OTA Requestor SHALL have sufficient storage to maintain one OTA Provider entry per Fab
ric within the DefaultOTAProviders default list. This default OTA Provider list MAY be augmented by
any means deemed acceptable by a given OTA Requestor, such that the internal list of possible loca
tions to query contains at least the DefaultOTAProviders, but it MAY contain more. For example, it
may contain cached locations that arose from the AnnounceOTAProvider command.
When an OTA Requestor determines that it is time to query an OTA Provider, it MAY use any
method of its choosing to determine which OTA Provider to contact for its next query.
An OTA Requestor MAY expunge OTA Providers from its OTA Provider list if it determines that the
entry is stale or obsolete.
Discovery of additional OTA Providers MAY be done by handling the arrival of AnnounceO
TAProvider commands invoked by OTA Providers.
Commissioners SHOULD add an entry to the DefaultOTAProviders list attribute, if an OTA Provider is
known at commissioning time, to reduce the delay between commissioning and first QueryImage
command.
Whenever communicating with an OTA Provider location obtained either through the DefaultO
TAProviders attribute, or the AnnounceOTAProvider command, an OTA Requestor SHALL target all
interactions with that Node by interacting with the given Endpoint on the given ProviderNodeID
obtained from these sources.
Discovery of additional OTA Providers MAY be done using runtime service discovery, which is out
side the scope of this specification.
Nodes MAY attempt to contact OTA Providers that are known to them in any order if failing to reach
a default OTA Provider from an entry in the DefaultOTAProviders list. This approach would assist in
maximizing likelihood of eventual success.
Query of the OTA Provider SHALL be done using the QueryImage command. The arguments for this
command provide sufficient information to allow the OTA Provider to determine the availability of
a new image for the querying OTA Requestor.
An OTA Requestor SHALL NOT query more frequently than once every 120 seconds, unless a Node
loses its timekeeping state, due to events such as power loss or restart, that prevent applying such a
delay. This reduces the burden on both the OTA Providers providing the service to a large number
of nodes and the supporting networking infrastructure. It is recommended for OTA Requestors to
attempt a daily QueryImage command, if capable, to ensure timely access to updated software,
including security-critical updates.
The OTA Provider SHALL use an algorithm deemed satisfactory by its implementer to determine
Page 736 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
the availability of a newer Software Image in response to a QueryImage command. This algorithm
will be called the "OTA Image Selection Logic" thereafter.
The OTA Image Selection Logic MAY use any data it deems useful, either local to the equipment or
Node hosting the OTA Provider, or remote through external networks, to determine whether an
updated Software Image is available (see Section 11.19.3.3, “Availability of Software Images”).
OTA Provider requests are idempotent. In cases where an OTA Requestor is repeating a request it
has already done, and the OTA Provider can detect this, it SHALL NOT behave differently on any
subsequent attempt compared to the first, unless a new Software Image has become available in
the meantime. That is, an OTA Provider SHALL NOT prevent an OTA Requestor from trying to make
the same query more than once. This requirement is critical to ensure that OTA Requestors which
encounter error conditions during OTA Image Query or OTA Image Transfer can eventually succeed
through retrying the same operation more than once.
Upon final determination of the outcome of the QueryImage command, the OTA Provider SHALL
reply with a QueryImageResponse command.
2. The Software Image to proxy is served by a remote server that does NOT support range-based
transfers.
4. The OTA Provider does not support asynchronous proxying (e.g. download-then-proxy).
The fields of the QueryImageResponse command convey the next steps to take. The primary indica
tion of action to be taken by the OTA Requestor is expressed in the Status field, with the other fields
providing the necessary details as described in the following subsections.
Failure to receive an application-layer response from the OTA Provider after invoking the QueryIm
age command SHOULD be considered equivalent to having received a QueryImageResponse com
mand with a Status field containing NotAvailable (see Section 11.19.3.2.4, “Handling NotAvailable
value in Status field”).
Below is an exemplary ACL entry for a Node implementing the OTA Requestor cluster server to sup
port the processing of the AnnounceOTAProvider command:
{
FabricIndex: <Fabric Index of the fabric in question>,
Privilege: Operate,
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 737
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
AuthMode: CASE,
Subjects: [ <Node ID of the node implementing OTA Requestor cluster client> ],
Targets: [ <Endpoint hosting the OTA Requestor cluster server> ]
}
Below is an exemplary ACL entry for a Node implementing the OTA Provider cluster server to sup
port the processing of the QueryImage command:
{
FabricIndex: <Fabric Index of the fabric in question>,
Privilege: Operate,
AuthMode: CASE,
Subjects: [ ], // Empty for "any" Node wildcard
Targets: [ <Endpoint hosting the OTA Provider cluster server> ]
}
Note that there may be a variety of ACL entry configurations that fulfill the necessary goals, includ
ing wildcard entries for the Administrators on a given Fabric. The examples above are for illustra
tion purposes only.
The UpdateAvailable status indicates that the OTA Provider has an update available.
The remaining fields within the QueryImageResponse command SHALL contain the information
necessary to allow the OTA Requestor to obtain an updated Software Image.
The field ImageURI SHALL be set to a location from where the image can be downloaded. The URI
provided SHALL be for a protocol within the list of supported protocols provided in the request (see
Section 11.19.6.7.4, “ProtocolsSupported field”). Selection of the URI is based on the information
available in the OTA Provider’s Software Images data set.
The field UpdateToken SHALL be populated by the OTA Provider with a value of its choosing, to allow
tracking of the flow from a given OTA Requestor when it sends further requests. The valid length of
the UpdateToken is between 8 and 32 bytes, inclusively. The token SHALL be recorded by the OTA
Requestor, until an OTA Software Update Image is either applied or discarded. This value SHALL be
provided to any subsequent ApplyUpdateRequest and NotifyUpdateApplied commands.
The field SoftwareVersion SHALL be set to the version number matching the new Software Image.
• If the SoftwareVersion field matches the version indicated in the header of a previously down
loaded OTA Software Image, one of two cases applies:
1. Image was fully downloaded and verified: the OTA Requestor SHOULD skip the transfer step
Page 738 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
(see Section 11.19.3.5, “Transfer of OTA Software Update images”), and move directly to the
apply step (see Section 11.19.3.6, “Applying a software update”).
2. Image was partially downloaded: the OTA Requestor SHOULD attempt to continue the trans
fer from where it left off, if it is capable, otherwise it SHALL start the transfer anew. See Sec
tion 11.19.3.5, “Transfer of OTA Software Update images” for a description of complete and
restarted downloads.
• If the SoftwareVersion field indicates a newer (numerically higher) version than the version cur
rently installed on the OTA Requestor, the OTA Requestor SHOULD proceed with OTA Image
Transfer (see Section 11.19.3.5, “Transfer of OTA Software Update images”), after awaiting at
least the delay stated by the DelayedActionTime field, if present.
• If the SoftwareVersion field indicates the same or an older (numerically lower) version, or if the
ImageURI field somehow contains information which cannot be used by the OTA Requestor, then
the OTA Requestor SHALL go back to awaiting its next OTA Software Update query opportunity,
following the rules previously stated in Section 11.19.3.2, “Querying the OTA Provider”. In that
case, the OTA Requestor MAY attempt to select a different OTA Provider according to Section
11.19.3.1, “Determining the OTA Provider to query”, which MAY cause the OTA Requestor to
immediately try another query, but to a different OTA Provider, thus not violating daily
allowance of a given OTA Requestor towards a given OTA Provider.
The Busy status indicates that the OTA Provider is busy for any reason and that it can only provide a
definite answer at a later time. This MAY be because the OTA Provider is currently determining
whether an update is available for the OTA Requestor that made the query. An OTA Requestor
SHOULD attempt to query the same OTA Provider again later at least once more if a Busy response is
obtained, rather than querying a different OTA Provider in its list, so that the OTA Provider that
replied Busy could have had resources available to determine availability.
After a Busy status, the OTA Requestor SHALL NOT re-query the OTA Provider which was the subject
of the command sooner than the longest of either:
Note that if a Node loses its timekeeping state due to events such as power loss or restart, the above
timing constraint MAY be ignored, however, the previously stated overriding constraint of a mini
mum delay of 120 seconds between queries to any single OTA Provider by a given OTA Requestor
has to be respected.
The NotAvailable status indicates that there is definitely no update currently available from the
queried OTA Provider.
The OTA Requestor MAY choose to attempt a QueryImage command on a different OTA Provider in
its OTA Provider List to determine if an update is available from that other OTA Provider.
Otherwise, if there are no other OTA Providers available to query, the OTA Requestor SHALL NOT
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 739
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
re-query the OTA Provider which was the subject of the command sooner than 2 minutes (120 sec
onds) from the last QueryImage command. Note that if a Node loses its timekeeping state due to
events such as power loss or restart, the above timing constraint MAY be ignored, however, the pre
viously stated overriding constraint of a minimum delay of 120 seconds between queries to any sin
gle OTA Provider by a given OTA Requestor have to be respected.
If an OTA Requestor hits error conditions of any kind in invoking the QueryImage command, includ
ing receiving DownloadProtocolNotSupported in Status, there are two possible outcomes:
1. If the OTA Requestor has a Software Image it had previously successfully downloaded and veri
fied, the OTA Requestor SHOULD skip the Query step, and move directly to the Apply step (see
Section 11.19.3.6, “Applying a software update”). This increases the likelihood that the OTA
Requestor will eventually succeed to apply a previously transferred Software Image.
2. If the OTA Requestor is still attempting to discover an OTA Update, it MAY choose to attempt a
QueryImage command on a different OTA Provider in its OTA Provider List, in which case the
timing for the query SHALL match the query timing constraints expressed in the previous para
graphs of this section. Otherwise, it SHALL continue to query the same OTA Provider, again fol
lowing the query timing constraints previously expressed.
The algorithm used by the Image Selection Logic to determine availability of a new Software Image
SHALL consider all fields provided by the OTA Requestor and attempt to provide the newest match
ing Software Image. The OTA Image Selection Logic SHALL only provide newer (numerically
higher) SoftwareVersion than the SoftwareVersion sent in the query. See Section 11.19.3.3.2, “Concep
tual algorithm for matching OTA Software Images applicable to a query” for more details.
The OTA Provider MAY provide a Software Image that only conveys data for a subset of updateable
components within the OTA Requestor’s Node. These cases of partial or componentized software
updates are determined purely by the entity generating the OTA Software Image, and the OTA
Provider SHALL never mutate the contents of an OTA Software Image.
The original provider of a Software Image SHOULD be able to assume the contents of the Software
Image will remain unchanged and signatures would remain valid. Therefore, an OTA Provider
SHALL NOT modify the contents of any Software Images other than allowing that OTA Requestor to
index into the Software Image using the BDX Protocol or other supported download protocol, such
that the OTA Requestor may obtain only the desired parts of the Software Image.
The OTA Provider SHALL NOT hide or otherwise mask the contents of a Software Image available
for transfer to a requestor.
In order for different vendors to participate as widely as possible in the distribution of Software
Images for the widest variety of products without requiring bilateral distribution agreements
between each pair, it is RECOMMENDED for vendors to participate in distribution schemes that
maximize availability across other vendors and OTA Providers.
Vendors SHOULD build data sets aggregating the metadata and payloads of Software Images to sup
Page 740 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
port their OTA Image Selection Logic by any means they deem satisfactory. Vendors SHOULD refer
to canonical databases, such as the Distributed Compliance Ledger.
Given that most Fabrics likely will contain a reduced subset of Nodes capable of acting as OTA
Providers compared to the larger set of vendors represented in the many deployed Nodes, it is
advantageous to end-users that Vendors attempt to cover as many other vendors with their data
sets. This will ensure that the majority of Software Image queries can be fulfilled if a vendor has
released a newer version than that installed on the querying OTA Requestor.
The OTA Image Selection Logic SHALL consider the OTA Requestor’s supported download protocols
to determine whether to respond to a QueryImage command.
If either the BDXSynchronous or BDXAsynchronous protocols are supported by the OTA Requestor, the
OTA Provider SHALL prefer to respond to the OTA Requestor with a BDX protocol URI, as long as it
can fulfill the role of BDX server for the OTA Requestor.
Otherwise, if the HTTPS protocol is supported by the OTA Requestor, and the OTA Provider deter
mines that an OTA Software Image is available to fulfill the request from a server supporting
HTTPS, it SHOULD respond with the direct source URI, so that the OTA Requestor MAY download it
directly.
Otherwise, if the VendorSpecific protocol is supported by the OTA Requestor, and the OTA Provider
has sufficient knowledge of the OTA Requestor’s capabilities based on the QueryImage command
arguments, it SHOULD respond with a URI which is known to be understood by the OTA Requestor.
It is RECOMMENDED to limit usage of this modality and prefer BDXSynchronous and BDXAsynchronous.
An OTA Provider MAY use any of the fields of the QueryImage command in any way it deems
applicable to determine whether an appropriate OTA Software image is available for the OTA
Requestor.
However, to increase interoperability, OTA Providers which have access to the data present in the
Distributed Compliance Ledger (DCL), whether from cached subset or from a full replica, SHOULD
employ at least the common conceptual algorithm provided in this section to determine whether an
OTA Image is available.
The information to access OTA Software Image locations for certified software versions is available
in the DCL DeviceSoftwareVersionModel Schema, which is indexed by VendorID, ProductID and
SoftwareVersion.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 741
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• The list of all current entries for the given VendorID and ProductID from the DeviceSoftwareVer
sionModel schema, ordered by SoftwareVersion, accounting for the following fields, as an array
candidates[]
• softwareVersionFound, the version of the newer version candidate, if candidateWasFound was true,
0 otherwise.
◦ candidateWasFound := False
◦ softwareVersionFound := 0
2. Obtain candidates from a DCL replica or from a DCL-based dataset for the given vendorID and
productID in the query, keeping only entries where softwareVersionValid is true.
◦ An OTA Provider MAY as well filter available versions by certification compliance status (see
Section 11.22.7, “DeviceSoftwareCompliance / Compliance test result Schema”).
4. Iterate through all candidates to find all positive matches within the sorted candidates. A "posi
tive match" is a candidate which fullfills every condition in the following list:
◦ requestor.softwareVersion ≥ candidate.minApplicableSoftwareVersion
◦ requestor.softwareVersion ≤ candidate.maxApplicableSoftwareVersion
5. From the positive matches, select the very last one of list, which will be the newest (numerically
highest) possible softwareVersion that could be used. If no positive matches were found, no new
software version is available.
Page 742 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
currentCandidate = None
If candidateWasFound was true, then a version matching (softwareVersionFound) was found and its
location and associated metadata can be found in the DeviceSoftwareVersionModel schema of the
DCL.
While the QueryImage command MAY also contain the Location, HardwareVersion and MetadataFor
Provider fields, they are optional to use by an OTA provider. These additional fields MAY assist an
OTA provider in supporting field trial and development policies. The certified releases present in
the DCL, however, are only indexed by VendorID, ProductID and SoftwareVersion, based on the
associated certification.
Once an OTA software update file location (OtaUrl) and digest (OtaChecksum) are found for the associ
ated version candidate, an OTA provider MAY omit re-downloading the file, and serve a cached
copy if a local copy of a file exists which matches all of the following constraints from the candi
date:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 743
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
In the following subsections, the word "User" SHALL be construed to mean "an entity with suffi
cient privileges associated with the Fabric". For instance, this could be a home dweller having pre
viously configured Nodes or other services and currently having privilege to further affect such
configuration. The exact scope for what an "entity" for such a "User" role may be, and what "suffi
cient privilege" means, SHALL be implementation-dependent.
An OTA Provider SHOULD obtain some form of "User Consent" prior to responding with a URI for a
Software Image or letting an OTA Requestor proceed with applying a previously downloaded
update. In the context of the OTA Cluster, "User Consent" SHALL be defined as any signal that an OTA
Provider may obtain through its implementation-specific logic, that conveys consent to proceed
from a User administratively allowed to give such consent in an informed manner.
• Triggering a notification to an interactive application user interface, where at least one User is
notified of the availability of new software for a given node, and where a signal of approval to
continue with the downloading and applying of that update can be conveyed back to the OTA
Provider.
◦ Example: An OTA Provider detects the local presence of a mobile device with an application
supporting required User accounts through out-of-band means. The OTA Provider makes an
implementation-specific request over a protocol of its choice, in-band or out-of-band of the
Fabric, to obtain consent. The User is notified on screen with "An ExampleCompany Light
Bulb needs update to version 1.2.3. Tap here for release notes. Do you want to proceed?".
The User then selects "Agree to Update" and the signal is relayed back to the OTA Provider,
which then proceeds.
• Relaying of a previously stored consent signal, previously provided by a User at some point in
the past. The original capture of the stored consent signal should have been made after having
provided sufficient information to the User to understand the consequences of such stored con
sent. Multiple signals, covering different Nodes, Vendors or Device Classes, may be stored inde
pendently to affect a variety of deferred consent policies.
Some capable Nodes MAY have sufficient hardware capabilities to request user consent by means
such as display or voice, and subsequently recover user consent feedback through input mecha
nisms. These devices MAY request optional delegation of user consent by the following method:
1. The OTA Requestor SHALL set the RequestorCanConsent field in the QueryImageRequest to True,
indicating ability to obtain consent.
2. The OTA Provider, if it determines that the best way to obtain user consent is to delegate to the
OTA Requestor Node, SHALL include the UserConsentNeeded field, with a value set to True in the
QueryImageResponse, indicating that user consent was not previously obtained, and that delega
Page 744 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
3. The OTA Requestor, upon observing presence of UserConsentNeeded field set to True and the avail
ability of an image in the QueryImageResponse SHOULD proceed to obtain user consent using its
onboard means, prior to transferring the OTA Software Image reported. If the UserConsentNeeded
field is set to False or absent, the OTA Requestor SHALL assume that the OTA Provider already
obtained sufficient user consent during the querying phase.
The above method of obtaining User Consent at the OTA Requestor level SHALL NOT be used if a
Node is configured with the LocalConfigDisabled attribute set to True as reflected by the Basic Infor
mation Cluster.
Because of the variety of Vendors and Devices, the concept of "User Consent" will necessarily take
many different forms. Therefore, it is RECOMMENDED that every implementer of OTA Provider
logic implement a transparent and easy-to-use set of functionality to allow Users to provide or deny
consent for software updates, in a way that functionally integrates with their products and respects
the general requirements stated above. Implementation of this feature is expected to improve "user
experience" and assist with building trust regarding the installation of new software on Nodes.
It is RECOMMENDED that any method of consent that stores consent signals also provide a way to
revoke this consent in the future.
It is RECOMMENDED that metadata from Software Images be used to convey as much information
as required within the available set, so that a User can make an informed decision based on the
nature of the product being updated, the human-readable instance of the new version number (e.g.
SoftwareVersionString in OTA Image Header), the changes made available, and their side-effects on
product functionality. Any URL for online contents conveyed during this process SHOULD point to
content that can be localized at the time of delivery, whenever possible. The responsibility for the
maintenance of such version information is on the Vendor providing the URL and metadata. The
OTA Provider and associated implementation-specific logic SHALL allow a User to consent to an
update, even if errors occur while trying to provide additional release information, as the metadata
within the Software Image should suffice to provide a first-order description of the new version,
which could then be researched or cross-referenced by the User.
It is RECOMMENDED that Vendor-provided Software Update metadata, such as release note URLs,
be maintained in the long-term with stable locations, preferably in a manner allowing historical
caching by common online search engines, where applicable. See Section 11.22.6.11,
“ReleaseNotesUrl” and Section 11.20.2.4.8, “ReleaseNotesUrl field” for sources of such information.
Execution of an OTA Software Update image’s transfer depends on the protocol provided in the
ImageURI field of the query response.
• An OTA Requestor invokes a QueryImage command stating only support for BDX in its Proto
colsSupported. The OTA Provider, using its OTA Image Selection Logic, determines that a Soft
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 745
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
1. The Software Image is at a URI referring to a resource on the public Internet (e.g.
https://domain.example/images/software.bin).
a. The OTA Provider MAY completely download the Software Image, temporarily, to local
storage. It would then reply to the OTA Requestor with a locally-accessible BDX URI, such
as bdx://8899AABBCCDDEEFF/software_8ce40aa1.bin. In that case, the OTA Requestor SHALL
proceed with the download from the OTA Provider using the BDX protocol.
b. The OTA Provider MAY employ a variety of buffering and proxying schemes of underly
ing HTTPS transfers to support the OTA Requestor downloading in real-time as a form of
direct proxy. It would immediately reply to the OTA Requestor with a locally-accessible
BDX URI, such as bdx://8899AABBCCDDEEFF/software_8ce40aa1.bin. In that case, the OTA
Requestor SHALL proceed with the download from the OTA Provider using the BDX pro
tocol. The only difference with the previous case is the fact that the transfer uses data
directly proxied in real-time, as opposed to the OTA Requestor downloading a pre-stored
cached copy of the same Software Image.
2. The Software Image is already cached on the OTA Provider, either from pre-seeding over
some implementation-specific scheme, or from having previously served this software
update to another OTA Requestor. In that case, the OTA Provider SHALL reply to the OTA
Requestor with a locally-accessible BDX URI, such as bdx://8899AABBCCDDEEFF/soft
ware_8ce40aa1.bin. In that case, the OTA Requestor SHALL proceed with the download from
the OTA Provider using the BDX protocol.
• An OTA Requestor invokes a QueryImage command stating support for BDX and HTTPS in its
ProtocolsSupported. The OTA Provider, using its OTA Image Selection Logic, determines that a
Software Image is available. The Software Image is at a URI referring to a resource on the public
Internet (e.g. https://domain.example/images/software.bin). In the case of support for both
HTTPS and BDX, all of the above cases are applicable, in addition to the following:
◦ The OTA Provider knows that the OTA Requestor supports HTTPS from the QueryImage com
mand. The OTA Provider MAY then respond directly to the OTA Requestor with the
https://domain.example/images/software.bin URI. The OTA Requestor SHALL proceed to
download from the public Internet using the HTTPS protocol.
As described above, an OTA Provider SHALL either proxy synchronously or asynchronously the
actual Software Image data for BDX Protocol clients, when a Software Image is determined to be
available from the public Internet or from local storage.
The OTA Provider MAY expunge any previously cached Software Image downloaded on behalf of
other OTA Requestors, to save storage, at any time, as long as no transfer is currently in active
progress. It is RECOMMENDED that OTA Providers on a given Fabric maintain as much Software
Image cache as practical, to improve availability of software image and reduce latency between
QueryImage requests and availability of the matching QueryImageResponse for a new Software Image
ready to be downloaded.
Page 746 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
In order to support non-BDX protocols relying on the public Internet, or intranets, the OTA
Requestor SHALL only report support for protocols requiring public Internet access if it has deter
mined that it does indeed have access to the necessary network domains beyond the Fabric. The
OTA Requestor MAY employ any method it deems satisfactory to determine public Internet reacha
bility. Because of the variety of firewall and security policies on network infrastructure, it is REC
OMMENDED that all Nodes whose primary networking interactions lie within protocols in-band of
this wider specification support the BDX method, so that even if a Node cannot access the public
Internet, it MAY still obtain OTA Software Images by relying on a local OTA Provider which can.
• Receiver-Drive mode SHALL be used by the OTA Provider for any transfers initiated from a
secure channel on non-TCP transport.
• Asynchronous mode SHALL be used by the OTA Provider for any transfer initiated from a
secure channel on TCP transport.
• Idle time-out SHALL be no less than 5 minutes for either Receiver-Driver or Asynchronous
mode, before aborting a transfer.
◦ Maximum Block Size over all transports SHALL be a power of two if the OTA Requestor
requests a value larger than 128 bytes.
◦ For an OTA Requestor-requested Maximum Block Size value between 16 and 128, the exact
requested value SHALL be used. This constraint allows low-power Nodes to precisely control
the block sizes to ensure their power constraints are respected, including enabling single-
frame block transfers over communication mediums where MTU is very small.
◦ Maximum Block Size requested by OTA Requestors over non-TCP transports SHALL be no
larger than 1024 (2^10) bytes. OTA Providers SHALL support the Maximum Block Size of at
least 1024 bytes in those cases.
◦ Maximum Block Size requested by OTA Requestors over TCP transport SHALL be no larger
than 8192 (2 ^ 13) bytes. OTA Providers SHALL support a Maximum Block Size of at least
4096 (2^12) bytes in this case and MAY support 8192 bytes.
◦ Actual Block Size used over all transports SHALL be the negotiated Maximum Block Size for
every block except the last one, which may be of any size less or equal to the Maximum
Block Size (including zero).
• The OTA Requestor SHALL NOT rely on the ReceiveAccept message from the OTA Provider hav
ing the RC[DEFLEN] bit set (see Section 11.21.5.4.2.1, “ReceiveAccept RC[DEFLEN]: definite length
present”) and the associated LEN field populated. Instead, OTA Requestors SHALL rely on OTA
Software Image metadata to determine the expected size to download.
• The ReceiveInit message from the OTA Requestor MAY have the RC[STARTOFS] bit set and associ
ated STARTOFS field set to indicate the resumption of a transfer previously aborted, or to affect
partial windowed access to the portion of a Software Image desired.
• The ReceiveInit message from the OTA Requestor MAY have the RC[DEFLEN] bit set and associ
ated DEFLEN field set to state the desired maximum size of the transfer.
Since OTA Requestors MAY need to read Software Image in parts, it is RECOMMENDED that OTA
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 747
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Providers maintain cached Software Images for at least 5 minutes after closure of the last OTA
Requestor transfer, so that the OTA Requestor MAY come back to read different parts of an OTA file.
In the case of very large Fabrics, it often occurs that there is a large number of the same model of
Node within a given location. Because of this, OTA Providers SHOULD avoid downloading the same
Software Image repeatedly for proxying if it can determine that multiple OTA Requestors are
requesting, or can be expected to request, the same Software Image.
It is RECOMMENDED to keep Software Images cached for as long as practical to reduce having to
reach external off-Fabric resources frequently to address the update needs of a large fleet of identi
cal Nodes that could share a single pre-downloaded cached copy in the OTA Provider. This reduces
burden on content delivery servers for Software Images and reduces the amount of data trans
ferred by an OTA Provider from external off-Fabric servers to fulfill software update requirements.
It is RECOMMENDED that Sleepy End Devices make their best effort to optimize their sleep intervals
during the OTA Software Image transfer process over BDX to ensure that the download completes
in a timely manner. However, it is acknowledged that some Sleepy End Devices MAY not be able to
do so, due to limitations related to their batteries or other constrained power sources. Therefore,
such devices MAY take much longer to complete the download process.
In the case where a BDX transfer is aborted due to unforeseen circumstances (e.g. power loss, crash,
battery drain on either side), the OTA Requestor MAY try to use a partial (i.e. range-based) transfer
to recover and continue the download without having to start from the beginning of a given Soft
ware Image. An OTA Requestor SHALL abort retrying a transfer after three attempts in a row
where each yielded no forward progress.
It is RECOMMENDED for the OTA Provider to validate the length and digest of proxied images
whenever possible (see OTA software update file Header field) to avoid continuing a transfer if the
data is obviously corrupted.
In any situation where an OTA Requestor reaches a terminal failure point for a Software Image
transfer and all possible retries or alternate OTA Providers have been exhausted, that OTA
Requestor SHALL reset its entire software updating state and revert to doing a future query at the
next possible scheduled time, so that perhaps a new Software Image may be available again.
The above situation may occur, for example, if an OTA Provider had cleared its Software Update
Image File cache for any reason, or if there is a transient network failure of sufficient duration to
prevent a complete transfer to take place.
Once the entirety of a Software Image has been downloaded and is ready to apply, the OTA
Requestor SHALL execute the "Applying a software update" sequence of the next section.
Once a Software Image has been fully downloaded based on a QueryImageResponse command, the
OTA Requestor SHALL proceed with a sequence to determine when to apply the update by invoking
the ApplyUpdateRequest command.
Page 748 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
UpdateToken usage
The OTA Requestor SHALL provide an UpdateToken to the OTA Provider with the ApplyUpdateRequest
command. This token SHALL be a previously provided UpdateToken from the last QueryImageRe
sponse, unless the token was lost by the OTA Requestor. In case of token loss, the OTA Requestor
SHALL use its Operational Node ID encoded as a 64-bit value in network byte order. This UpdateTo
ken MAY be used by an OTA Provider to track deferred OTA application or otherwise allow short-
term tracking of OTA Requestors for algorithmic bookkeeping. The OTA Provider SHALL not con
sider an invalid UpdateToken as a reason to continuously deny or delay an OTA Requestor’s request
to apply a Software Image.
On receipt of the ApplyUpdateRequest command, the OTA Provider SHALL respond with an action to
be taken by the OTA Requestor before activating the new version. The method used to determine
the Action field of the response MAY be based on implementation-specific rules and logic.
Note that the DelayedActionTime field is a relative time delay from the moment of receipt, which
needs to be computed by the OTA Provider to reflect the difference between the OTA Provider’s cur
rent time and the desired time for execution of the Action.
In case of a successful invocation, the following actions to be taken by the OTA Requestor are possi
ble, based on the Action field in the ApplyUpdateResponse command:
• Proceed: Apply the update, taking in account the delay time stated in DelayedActionTime.
◦ If the DelayedActionTime is zero, then the OTA Requestor SHALL apply the update without
additional delay.
◦ If the DelayedActionTime is non-zero, the OTA Requestor SHALL await at least DelayedAction
Time seconds prior to applying the software update. An example use of this Action by an OTA
Provider is to schedule application of a Software Image based on a user’s preferred update
time for Nodes of a certain type (e.g. light bulbs or window coverings) to occur at a time
when the user is not at home, or when the temporary unavailability of the Node during the
update would not pose a problem.
◦ When the Proceed action is given, the OTA Requestor SHALL NOT invoke the ApplyUp
dateRequest command again, unless the OTA Requestor suffers an error or unexpected con
dition while proceeding to apply the new Software Image.
• AwaitNextAction: Await at least the given delay time in DelayedActionTime before re-invoking an
ApplyUpdateRequest to get a new Action.
◦ If the DelayedActionTime is less than 120 seconds (2 minutes), the OTA Requestor SHALL
assume a value of 120 seconds.
◦ The AwaitNextAction action SHALL NOT be emitted in such a way as to cause more than 24
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 749
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
hours of delay in applying an available Software Image. It is expected that user consent hav
ing been previously granted should satisfy the overall scheduling constraint this imposes.
• Discontinue: The OTA Provider is conveying a desire to rescind a previously provided Software
Image.
◦ The OTA Requestor SHOULD clear its previously downloaded and verified Software Image, if
it had been obtained from the same OTA Provider as the one providing the Discontinue
action.
◦ This action SHALL only be used as a stopgap when it is known that a given Software Image
previously provided may cause significant negative side-effects to an OTA Requestor, such as
unrecoverable loss of functionality, or other damage.
◦ In case of receiving this action unexpectedly (e.g. from a different OTA Provider than the
one where a Software Image was downloaded), an OTA Requestor MAY ignore it and con
sider it the same way as if the ApplyUpdateRequest command had proceeded with an error.
It is RECOMMENDED that for any OTA Requestor invoking the ApplyUpdateRequest command with
an unknown UpdateToken, the OTA Provider SHOULD assume that the OTA Requestor has a Software
Image ready to apply and thus respond with the Proceed or Await action, rather than responding
with an error or Discontinue action.
In case of failure of every possible retry mechanism for at least 3 total attempts, or over more than
24 hours, an OTA Requestor having successfully downloaded and verified a Software Image MAY
apply the update. This measure of last recourse is to avoid situations where a critical issue affecting
a particular software version would prevent an OTA Requestor or OTA Provider from properly exe
cuting the "Applying a Software Update" flow, thus leaving an OTA Requestor in reduced or a for
ever-impaired state that could otherwise be resolved by applying the Software Image it had suc
cessfully downloaded and verified.
Security for the OTA Software Update capabilities encompasses these areas: Software Image verifi
cation, Software Image transport, and Software Image encryption. Security mechanisms in given
applications dictate the security level of OTA upgrading. For example, an application with strict
security policies (such as a smart lock) MAY support Software Image encryption at rest beyond the
secure channel data-in-transit encryption, while other applications MAY only support data-in-tran
sit encryption. Each Vendor SHALL decide the list of required security policies for their use of the
Page 750 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A Vendor MAY apply at-rest encryption to Software Image bodies, excluding the Software Update
Image Header, using any algorithm of its choosing.
It is out of scope of this specification to mandate such means of protecting the confidentiality of the
Software Images.
The verification of the authenticity and integrity of Software Images by OTA Requestors is manda
tory for security reasons. This is most often accomplished through asymmetric encryption technolo
gies where only one entity is able to create a digital signature but many entities are able to verify it.
Software Images SHALL be signed by a private key used by the Vendor for software image signing
purposes, with that signature attached to the Software Image that is transported to the OTA
Requestor. Once the complete Software Image has been received, the signature SHALL be verified
using a matching public key known to the OTA Requestor performing the validation. See Section
13.5, “Firmware” for the associated security requirements. The format and algorithms used for
code signatures verification are out of scope of this specification. The OTA Provider SHOULD NOT
expect to be able to validate OTA Software Image signatures on its own.
OTA Requestors MAY be pre-installed with the certificate (public key) of the entity that created the
signature, or they MAY receive the certificate over-the-air. How the signer’s security data is
obtained is considered outside the scope of the OTA Software Update Cluster and is Vendor Specific.
When signer certificates are sent over-the-air, they SHALL be securely transferred from a trusted
source to reduce the chance an attacker MAY inject their own signer certificate into the OTA
Requestor.
Software Images with verification mechanisms built in MAY be transported over insecure commu
nication mechanisms while still maintaining their authenticity and integrity. In fact, it is likely that
the originator of the Software Image (a Vendor) will not be directly connected to any Fabric and
therefore distribute the Software Image across other mediums (such as the Internet) before arriv
ing on the Fabric. Therefore, it is crucial that the Software Image verification be independent of the
communication medium. Any attempts to tamper with the signature or the data itself SHALL be
detected and SHALL cause the Software Image to be rejected by the target OTA Requestor. A Soft
ware Image from an attacker that crafts its own signed image and tries to have it accepted would be
rejected since that image will not be signed by the Vendor’s signing authority.
Since Software Images MAY contain software for multiple sub-components (e.g. main processor
firmware, radio firmware, graphical/audio assets) which MAY each employ different code signing
keys, Software Images SHOULD provide at least an overall authenticity and integrity validation for
the entire image, regardless of how it is segmented.
Individual Vendors MAY augment the basic security and authenticity schemes provided by the Soft
ware Images and provide their own extensions within the payloads. Those extensions are outside
the scope of the OTA Software Update Cluster.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 751
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Software Images MAY be encrypted with symmetric keys such that only those OTA Requestors that
need to decrypt the Software Image have access to the key. This MAY be used to mask or obfuscate
the contents of Software Images from intermediate network participants conveying the Software
Images, while in transit and at rest. However, the security of this system is dependent on the secu
rity of all OTA Requestors that have access to the symmetric key and the method of storage of the
final Software Image at rest on a given OTA Requestor. The schemes employed by different Vendors
to encrypt the body of Software Images in transit and at rest, is outside of the scope of this specifica
tion.
With the mechanisms provided by this Cluster, roll-out of new Software Images applies equally to
all OTA Requestors of matching a given <VendorID, ProductID> tuple, uniformly across the world.
The subsections below describe two situations where finer-grained roll-out can be achieved for
some regions or to distribute special non-standard versions.
Some Manufacturers have a policy of rolling-out by region (i.e. set of countries), to provide world-
wide release schedule differentiation, as well as to test roll-outs gradually, among other reasons.
These regional roll-outs may only be feasible using manufacturer-specific schemes that are in addi
tion to the common flows described in this cluster. Common recommended behavior (see Section
11.19.3.3.2, “Conceptual algorithm for matching OTA Software Images applicable to a query”) does
not support regional roll-out since there does not exist a location tagging attribute in the Distrib
uted Compliance Ledger (DCL). For regional rolls-outs prior to full roll-out, refer to the overall tech
niques described in Section 11.19.5.2, “Roll-out of non-standard Software Images”.
Many Manufacturers conduct field trials to test different versions of software (e.g. A/B-testing, beta
testing), or provide dedicated Software Images to a subset of Nodes to affect particular diagnosis
tasks, etc. The mechanism described in this cluster is not particularly well-suited for such fine-
grained deployment (unless the OTA Provider is provided by, or associated with, the Manufacturer).
To achieve more targeted roll-out, Vendors MAY commission a Node on the same Fabric as the
devices requiring the special rules, so that it MAY provide OTA Provider capabilities beyond the
core interoperable aspects of this Cluster. Finer-grained selection MAY be applied by special OTA
Software Image Selection logic in a given OTA Provider, using the MetadataForProvider field and
MetadataForRequestor fields of the QueryImage command. Furthermore, such special OTA Provider
may identify itself by including the MetadataForNode field in a given AnnounceOTAProvider command.
If such a special Software Image is running on an OTA Requestor, the OTA Requestor MAY reject
Software Images provided to it by an OTA Provider on the Fabric, to prevent loss of the non-stan
dard Software Image. A Factory Data Reset of the OTA Requestor SHALL remove such override.
While it is expected that Nodes fulfilling the role of OTA Provider will likely have high availability
within the Fabric, it may be possible some will be battery-operated or be power-cycled frequently. It
Page 752 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
is RECOMMENDED that an OTA Provider Node that determines it cannot reliably stay available to
service OTA Requestors SHOULD avoid responding with an available OTA Software Image when
responding to a QueryImage command (see Section 11.19.6.8, “QueryImageResponse Command”)
unless it has sufficient availability to allow a long-running BDX Protocol transfer to finish. In gen
eral, OTA Provider role SHOULD be fulfilled by a Node with a reliable network availability and sta
ble power, especially if it is set as a default in the DefaultOTAProviders attribute.
Rev Description
i
sio
n
1 Initial Release
11.19.6.2. Classification
Iden Name
tifier
StatusEnum
See Section 11.19.3.2, “Querying the OTA Provider” for the semantics of these values.
0 UpdateAvailable M
1 Busy M
2 NotAvailable M
3 DownloadProtocolNotSup M
ported
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 753
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ApplyUpdateActionEnum
See Section 11.19.3.6, “Applying a software update” for the semantics of the values. This enumera
tion is used in the Action field of the ApplyUpdateResponse command. See (Section 11.19.6.11.1,
“Action field”).
0 Proceed M
1 AwaitNextAction M
2 Discontinue M
DownloadProtocolEnum
0 BDXSynchronous M
1 BDXAsynchronous O
2 HTTPS O
3 VendorSpecific O
Note that only HTTP over TLS (HTTPS) is supported (see RFC 7230). Using HTTP without TLS SHALL
NOT be supported, as there is no way to authenticate the involved participants.
There are currently no server-side attributes for the OTA Provider Cluster.
11.19.6.6. Commands
Upon receipt, this command SHALL trigger an attempt to find an updated Software Image by the
OTA Provider to match the OTA Requestor’s constraints provided in the payload fields.
Page 754 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
5 Location string 2 O
VendorID field
The value SHALL be the Vendor ID applying to the OTA Requestor’s Node and SHALL match the
value reported by the Basic Information Cluster VendorID attribute.
ProductID field
The value SHALL be the Product ID applying to the OTA Requestor’s Node and SHALL match the
value reported by the Basic Information Cluster ProductID attribute.
SoftwareVersion field
The SoftwareVersion included in the request payload SHALL provide the value representing the
current version running on the OTA Requestor invoking the command. This version SHALL be
equal to the Software Version attribute of the Basic Information Cluster.
ProtocolsSupported field
This field SHALL contain a list of all download protocols supported by the OTA Requestor.
This field SHALL be used by the OTA Provider to generate the correct URI for the location of the
Software Image when one is found to be available. The values of BDX Synchronous and BDX Asynchro
nous SHALL always be supported by an OTA Provider. Furthermore, OTA Providers with access to
external networking SHOULD support the HTTPS protocol. OTA Providers MAY support other proto
cols.
The algorithm to select the specific protocol to use in a given Software Image URI is implementa
tion-dependent, provided that the rules in Section 11.19.3.3.1, “Download Protocol selection” are fol
lowed.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 755
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
See Section 11.19.3.2, “Querying the OTA Provider” and Section 11.19.3.5, “Transfer of OTA Software
Update images” for more details about usage of this field.
HardwareVersion field
The value of this field, if present, SHALL contain the OTA Requestor’s hardware version, and SHALL
be equal to the HardwareVersion attribute of the Basic Information Cluster.
Location field
The location, if present, SHALL provide the same value as the Basic Information Cluster Location
attribute for the OTA Requestor as configured. This MAY be used by the OTA Provider logic to allow
per-region selection of the Software Image.
RequestorCanConsent field
This field SHALL be set to true by an OTA Requestor that is capable of obtaining user consent for
OTA application by virtue of built-in user interface capabilities. Otherwise, it SHALL be false.
See Section 11.19.3.4, “Obtaining user consent for updating software” for application details about
usage.
MetadataForProvider field
This optional field, if present, SHALL consist of a top-level anonymous list; each list element SHALL
have a profile-specific tag encoded in fully-qualified form. Each list element SHALL contain a man
ufacturer-specific payload, which the OTA Requestor invoking this command wants to expose to the
receiving OTA Provider. This payload MAY be used for any purpose and SHOULD be as small as
practical.
The use of this field SHOULD be restricted to Vendor-specific usage and SHALL NOT be used as a
selector required to match for the selection of a Software Image in production environments,
unless absolutely necessary, as the interpretation of this field may be ambiguous to OTA Providers
implementing the Cluster in a compliant but divergent way from the sender.
An example of usage for this field is for an OTA Requestor to provide specific data about grouping
or authentication in field trial environments, where the OTA Provider is likely to understand it and
be able to act upon it, either for special selection of image, or recording of activity.
An OTA Provider SHALL report the availability of Software Images, if one is found to be applicable
using the other provided fields, even if the MetadataForProvider field is deemed to contain invalid or
unknown information. That is, the contents of the MetadataForProvider field SHALL NOT be used to
deny a software update to an OTA Requestor, unless both OTA Requestor and OTA Provider have an
externally agreed-upon policy whereby strictly correct additional MetadataForProvider is expected
to fulfill the OTA Software Update process.
OTA Requestors SHALL send a QueryImage command to the OTA Provider to determine the avail
ability of a new Software Image.
Page 756 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
See Section 11.19.3.2, “Querying the OTA Provider” for full details about the OTA Software Update
Query flow which makes use of this command.
4 SoftwareVer string 1 to 64 O
sionString
5 UpdateToken octstr 8 to 32 O
This field SHALL contain the primary response regarding the availability of a Software Image.
See Section 11.19.3.2, “Querying the OTA Provider” for details about the possible values for this field
and their meaning.
DelayedActionTime field
This field SHALL convey the minimum time to wait, in seconds from the time of this response,
before sending another QueryImage command or beginning a download from the OTA Provider.
OTA Requestors SHALL respect this minimum delay, unless they had previously restarted and lost
track of it. OTA Providers SHOULD expect OTA Requestors to follow this value to their best capabil
ity, however, a restarting Node MAY come back sooner, due to having lost track of this state
response.
The DelayedActionTime field SHALL only be present if the Status field is set to Busy.
See Section 11.19.3.2, “Querying the OTA Provider” for details about the rules regarding this field.
ImageURI field
This field, when present, SHALL contain a URI where the OTA Requestor SHOULD download a Soft
ware Image. The syntax of the ImageURI field SHALL follow the URI syntax as specified in RFC 3986.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 757
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
If the ImageURI specifies a BDX Protocol bdx: scheme, then the following rules describe the location
to be used for download:
2. The URI’s authority field SHALL contain only the host portion and SHALL use string representa
tion of the Operational Node ID of the Node where to proceed with the download, on the same
Fabric on which the OTA Requestor received the QueryImageResponse.
3. The encoding of the Node ID in the host field SHALL use an uppercase hexadecimal format,
using exactly 16 characters to encode the network byte order value of the NodeID, in a similar
fashion as the Node Identifier portion of the Operational Instance Name.
a. The Operational Node ID in the host field SHALL match the NodeID of the OTA Provider
responding with the QueryImageResponse. The usage of a different Node ID than that of the
provider is reserved for future use. This constraint reduces the number of independent
CASE secure channel sessions that have to be maintained to proceed with OTA software
updates, thus reducing energy and resource utilization for the software update process.
4. The user section of the authority field SHALL be absent, as there are no "users" to be considered.
5. The port section of the authority field SHALL be absent, as the port for transport SHALL be
determined through Operational Discovery of the target Node.
8. The path field SHALL employ absolute path representation and SHALL contain the file designa
tor of the software image to download at the BDX server. When used with the BDX server, the
leading / separating the URI authority from the path SHALL be omitted. When contacting the
BDX server, further processing of the file designator SHALL NOT be done, including handling of
URL-encoded escape sequences. Rather, the exact octets of the path, as received SHALL be the
values used by both client and server in handling the file designator.
These rules above for BDX URIs simplify parsing for OTA Requestors receiving Image URIs. The fol
lowing example procedure shows how the format constraints simplify the extraction of the neces
sary data to reach the BDX server for download.
1. Verify that the URI is 24 characters or longer, which is the minimum length of a valid BDX URI
with all elements present, for example bdx://00112233AABBCCDD/0.
3. Extract the next 16 characters and convert from uppercase hexadecimal to a 64-bit scalar value,
considering network byte order. This is the destination Node ID.
5. Extract the remaining characters of the string as the file designator to employ when initiating
the BDX transfer.
Page 758 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Example ImageURI values are below, and illustrate some but not all of valid and invalid cases:
◦ Valid: bdx://8899AABBCCDDEEFF/the_file_designator123
◦ Valid: bdx://0099AABBCCDDEE77/the%20file%20designator/some_more
▪ File designator: the%20file%20designator/some_more. Note that the %20 are retained and
not converted to ASCII 0x20 (space). The file designator is the path as received verbatim,
after the first / following the host.
◦ Invalid: bdx://99AABBCCDDEE77/the_file_designator123
▪ Node ID: Invalid since it is not exactly 16 characters long, due to having omitted leading
zeros.
◦ Invalid: bdx://0099aabbccddee77/the_file_designator123
◦ Invalid: bdx:8899AABBCCDDEEFF/the_file_designator123
▪ Invalid since bdx scheme does not contain an authority, that is, it does not have // after
the first :.
◦ Valid: https://example.domain:8466/software/image.bin
See Section 11.19.3.2, “Querying the OTA Provider” for additional details about the flow.
SoftwareVersion field
This field indicates the version of the image being provided to the OTA Requestor by the OTA
Provider when the Status is UpdateAvailable.
See Section 11.19.3.2, “Querying the OTA Provider” for additional details about the flow and accept
able values.
SoftwareVersionString field
This field provides a string version of the image being provided to the OTA Requestor by the OTA
Provider when the Status is UpdateAvailable.
See Section 11.19.3.2, “Querying the OTA Provider” for additional details about the flow and accept
able values.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 759
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
UpdateToken field
This optional field SHALL be present when the Status field contains UpdateAvailable.
See Section 11.19.3.6.1, “UpdateToken usage” for additional details about the generation and usage
of UpdateToken.
UserConsentNeeded field
This field, if present, SHALL only be interpreted if the OTA Requestor had previously indicated a
value of True in the RequestorCanConsent field of the QueryImageRequest. This field, when present
and set to True, SHALL indicate that a capable OTA Requestor must obtain user-visible consent prior
to downloading the OTA Software Image.
See Section 11.19.3.4, “Obtaining user consent for updating software” for application details about
usage.
MetadataForRequestor field
This optional field, if present, SHALL consist of a top-level anonymous list; each list element SHALL
have a profile-specific tag encoded in fully-qualified form. Each list element SHALL contain a man
ufacturer-specific payload, which the OTA Provider wants to expose to the receiving OTA Requestor.
This payload MAY be used for any purpose and SHOULD be as small as practical.
The presence of this field SHALL NOT be required for correct operation of any OTA Provider com
pliant with this Cluster specification.
The data for this field does not exist in any Distributed Compliance Ledger record and SHOULD
only be emitted by an OTA Provider with this additional knowledge if it has knowledge that the
receiving OTA Requestor MAY be able to use it.
0 UpdateToken octstr 8 to 32 M
UpdateToken field
This field SHALL contain the UpdateToken as specified in Section 11.19.3.6.1, “UpdateToken usage”.
This field MAY be used by the OTA Provider to track minimal lifecycle state to allow finer-grained
scheduling of the application of Software Images by OTA Requestors.
NewVersion field
The NewVersion field included in the request payload SHALL provide the SoftwareVersion value of
the new Software Image which the OTA Requestor is ready to start applying. The OTA Provider MAY
use this new version to track or record Software Image application by OTA Requestors.
Page 760 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
When Generated
The ApplyUpdateRequest Command SHALL be invoked by an OTA Requestor once it is ready to apply
a previously downloaded Software Image.
Effect on Receipt
Upon receipt of this command the OTA Provider SHALL respond with an Action field consistent
with the next action the OTA Requestor should take, including any possible time delay.
The OTA Provider SHALL NOT refer to previously stored state about any download progress to
reply. If any state keeping is done by the OTA Provider, it SHALL only relate to the UpdateToken and
the history of prior ApplyUpdateRequest commands.
See Section 11.19.3.6, “Applying a software update” for a description of the flow in response to an
OTA Provider receiving an invocation of this command.
See Section 11.19.3.6, “Applying a software update” for all error-handling information.
Action field
The Action field SHALL express the action that the OTA Provider requests from the OTA Requestor.
See Section 11.19.3.6, “Applying a software update” for a description of the Action values provided
in response to an OTA Provider receiving an invocation of this command.
DelayedActionTime field
The minimum time period the OTA Requestor SHALL wait before executing the Action, in seconds
from receipt.
If this field has a value higher than 86400 seconds (24 hours), then the OTA Requestor MAY assume
a value of 86400, in order to reduce undue Software Image application delays.
0 UpdateToken octstr 8 to 32 M
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 761
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
UpdateToken field
This field SHALL contain the UpdateToken as specified in Section 11.19.3.6.1, “UpdateToken usage”.
SoftwareVersion field
The SoftwareVersion included in the request payload SHALL provide the same value as the Soft
wareVersion attribute in the invoking OTA Requestor’s Basic Information Cluster, and SHOULD be
consistent with the value representing a new version running on the Node invoking the command.
When Generated
1. An OTA Requestor has just successfully applied a Software Image it had obtained from a previ
ous QueryImage response.
2. An OTA Requestor has just successfully applied a Software Image it had obtained through
means different than those of this Cluster.
An OTA Provider MAY use the state of invocation of this command to help track the progress of
update for OTA Requestors it knows require a new OTA Software Image. However, due to the possi
bility that an OTA Requestor MAY never come back (e.g. device removed from Fabric altogether, or
a critical malfunction), an OTA Provider SHALL NOT expect every OTA Requestor to invoke this
command for correct operation of the OTA Provider.
This command SHALL be considered optional and SHALL not result in reduced availability of the
OTA Provider functionality if OTA Requestors never invoke this command.
Effect on Receipt
On receiving this command, an OTA Provider MAY use the information to update its bookkeeping of
cached Software Images, or use it for other similar administrative purposes.
11.19.6.13. Events
Page 762 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Rev Description
i
sio
n
1 Initial Release
11.19.7.2. Classification
Iden Name
tifier
AnnouncementReasonEnum
0 SimpleAnnouncement M
1 UpdateAvailable M
2 UrgentUpdateAvailable M
UpdateStateEnum
0 Unknown M
1 Idle M
2 Querying M
3 DelayedOnQuery M
4 Downloading M
5 Applying M
6 DelayedOnApply M
7 RollingBack M
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 763
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
8 DelayedOnUserConsent M
Unknown
This value SHALL indicate that the current state is not yet determined. Nodes SHOULD attempt a
better state reporting.
Idle
This value SHALL indicate a Node not yet in the process of software update, for example because it
is awaiting the moment when a query will be made.
Querying
This value SHALL indicate a Node in the process of querying an OTA Provider with QueryImage
command, including during the process of awaiting a response to that command.
DelayedOnQuery
This value SHALL indicate a Node waiting because it received a prior QueryImageResponse with a
Status field indicating Busy.
Downloading
This value SHALL indicate a Node currently in the process of downloading a software update.
Applying
This value SHALL indicate a Node currently in the process of verifying and applying a software
update.
DelayedOnApply
This value SHALL indicate a Node waiting because it received a prior ApplyUpdateResponse with
an Action field set to AwaitNextAction.
RollingBack
This value SHALL indicate a Node in the process of recovering to a previous version from a new
version that was applied, but that could not remain in force, for reasons such as invalid data
detected on boot, or significant runtime issues such as reboot loops. Eventually, the next state seen
SHOULD be Unknown or Idle.
DelayedOnConsent
This value SHALL indicate a Node is capable of obtaining user consent through its own means, but
is currently awaiting that consent after having determined from a prior QueryImageResponse that
an update was available.
Page 764 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ChangeReasonEnum
0 Unknown M
1 Success M
2 Failure M
3 TimeOut M
4 DelayByProvider O
Unknown
This value SHALL indicate that the reason for a state change is unknown.
Success
This value SHALL indicate that the reason for a state change is the success of a prior operation.
Failure
This value SHALL indicate that the reason for a state change is the failure of a prior operation.
TimeOut
This value SHALL indicate that the reason for a state change is a time-out condition as determined
by the OTA Requestor.
DelayByProvider
This value SHALL indicate that the reason for a state change is a request by the OTA Provider to
await for a delay.
ProviderLocationStruct
1 ProviderN node-id M
odeID
2 Endpoint endpoint- M
no
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 765
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ProviderNodeID
This field SHALL contain the Node ID of the OTA Provider to contact within the Fabric identified by
the FabricIndex.
Endpoint field
This field SHALL contain the endpoint number which has the OTA Provider device type and OTA
Software Update Provider cluster server on the ProviderNodeID. This is provided to avoid having to
do discovery of the location of that endpoint by walking over all endpoints and checking their
Descriptor Cluster.
Below are attributes defined for the OTA Software Update Requestor Cluster.
DefaultOTAProviders Attribute
This field is a list of ProviderLocationStruct whose entries SHALL be set by Administrators, either
during Commissioning or at a later time, to set the Provider Location for the default OTA Provider
Node to use for software updates on a given Fabric.
There SHALL NOT be more than one entry per Fabric. On a list update that would introduce more
than one entry per fabric, the write SHALL fail with CONSTRAINT_ERROR status code.
Provider Locations obtained using the AnnounceOTAProvider command SHALL NOT overwrite values
set in the DefaultOTAProviders attribute.
UpdatePossible Attribute
This field SHALL be set to True if the OTA Requestor is currently able to be updated. Otherwise, it
SHALL be set to False in case of any condition preventing update being possible, such as insuffi
cient capacity of an internal battery. This field is merely informational for diagnostics purposes and
SHALL NOT affect the responses provided by an OTA Provider to an OTA Requestor.
Page 766 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
UpdateState Attribute
This field SHALL reflect the current state of the OTA Requestor with regards to obtaining software
updates. See Section 11.19.7.4.2, “UpdateStateEnum” for possible values.
This field SHOULD be updated in a timely manner whenever OTA Requestor internal state updates.
UpdateStateProgress Attribute
This field SHALL reflect the percentage value of progress, relative to the current UpdateState, if
applicable to the state.
The value of this field SHALL be null if a progress indication does not apply to the current state.
A value of 0 SHALL indicate that the beginning has occurred. A value of 100 SHALL indicate com
pletion.
This field MAY be updated infrequently. Some care SHOULD be taken by Nodes to avoid over-
reporting progress when this attribute is part of a subscription.
11.19.7.6. Commands
This command MAY be invoked by Administrators to announce the presence of a particular OTA
Provider.
If the accessing fabric index is 0, this command SHALL fail with an UNSUPPORTED_ACCESS status code.
0 ProviderN node-id M
odeID
1 VendorID vendor-id M
2 Announce Announcemen M
mentReason tReasonEnum
4 Endpoint endpoint-no M
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 767
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ProviderNodeID field
This field SHALL contain the Node ID of a Node implementing the OTA Provider cluster server, on
the accessing fabric.
VendorID field
This field SHALL contain the assigned Vendor ID of the Node invoking this command, as it would
appear in that Node’s Basic Information Cluster VendorID attribute.
AnnouncementReason field
This field SHALL contain a value expressing the reason for the announcement.
• SimpleAnnouncement: An OTA Provider is announcing its presence, but there is no implication that
an OTA Requestor would have a new Software Image available if it queried immediately.
MetadataForNode field
This optional field, if present, SHALL consist of a top-level anonymous list; each list element SHALL
have a profile-specific tag encoded in fully-qualified form. Each list element SHALL contain a man
ufacturer-specific payload, which the Node invoking this command wants to expose to the receiving
Node. This payload MAY be used for any purpose and SHOULD be as small as practical, especially if
invoked to groups, in order to reduce networking burden of these payloads.
This field SHOULD only be included if the sending OTA Provider has knowledge that some recipient
can make use of it.
Endpoint field
This field SHALL contain the endpoint number which has the OTA Provider device type and OTA
Software Update Provider cluster server on the ProviderNodeID. This is provided to avoid having to
do discovery of the location of that endpoint by walking over all endpoints and checking their
Descriptor Cluster.
Page 768 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
When Generated
An OTA Provider MAY invoke this command directly to an OTA Requestor, to announce its presence
as an OTA Provider on the Fabric.
These announcements, if made, SHOULD be made at most once every 24 hours for any given target
Node, to assist OTA Requestors in discovering available OTA Provider resources, unless the
AnnouncementReason is UrgentUpdateAvailable, in which case this command MAY be more frequent.
Any invocation SHALL be made with a delay of at least 1 second between invocations from a given
OTA Provider, to reduce burden on the networking infrastructure and affect a form of serialized jit
ter. It is RECOMMENDED to offset the first announcement of a round (i.e. new set of announce
ments after a previous complete set) by a random delay time with a distribution span of >= 60 sec
onds to jitter announcement schedules over time.
Effect on Receipt
On receipt of this command, an OTA Requestor SHOULD consider the new ProviderNodeID and
AnnouncementReason to possibly query for new software sooner than it would have with its default
behavior.
The OTA Requestor SHOULD NOT update entries in the DefaultOTAProviders list based on announce
ments.
The receiving Node MAY ignore the content of the announcement if it is unable or unwilling to fur
ther query OTA Providers temporarily, or if its provider list is full. If the announcement is ignored,
the response SHOULD be SUCCESS.
Depending on the value of the AnnouncementReason field, the OTA Requestor MAY have to query the
OTA Provider. See Section 11.19.7.7.3, “AnnouncementReason field” for the different values and
their meaning.
If present, the MetadataForNode field’s MAY be used by a receiving OTA Requestor in any way it
deems satisfactory. The MetadataForNode field SHOULD be empty under most normal operational cir
cumstance, but can be useful in environments such as field trials or integration test environments
to hint at additional capabilities which OTA Requestors MAY use in a particular Vendor-specific con
text.
11.19.7.8. Events
The OTA Software Update Requestor cluster has the following events:
0 StateTransition INFO V M
1 VersionApplied CRITICAL V M
2 DownloadError INFO V M
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 769
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
StateTransition event
This event SHALL be generated when a change of the UpdateState attribute occurs due to an OTA
Requestor moving through the states necessary to query for updates.
1 NewState UpdateSta M
teEnum
2 Reason ChangeRea M
sonEnum
The PreviousState field SHALL be set to the state that preceded the transition causing this event to
be generated, if such a state existed. If no previous state exists, the value SHALL be Unknown.
The NewState field SHALL be set to the state now in effect through the transition causing this event
to be generated.
The Reason field SHALL be set to the reason why this event was generated.
The TargetSoftwareVersion field SHALL be set to the target SoftwareVersion which is the subject of
the operation, whenever the NewState is Downloading, Applying or RollingBack. Otherwise TargetSoft
wareVersion SHALL be null.
VersionApplied event
This event SHALL be generated whenever a new version starts executing after being applied due to
a software update. This event SHOULD be generated even if a software update was done using
means outside of this cluster.
0 Software uint32 M
Version
1 ProductID uint16 M
The SoftwareVersion field SHALL be set to the same value as the one available in the Software Ver
sion attribute of the Basic Information Cluster for the newly executing version.
Page 770 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The ProductID field SHALL be set to the ProductID applying to the executing version, as reflected by
the Basic Information Cluster. This can be used to detect a product updating its definition due to a
large-scale functional update that may impact aspects of the product reflected in the DeviceModel
schema of the Distributed Compliance Ledger.
DownloadError event
This event SHALL be generated whenever an error occurs during OTA Requestor download opera
tion.
0 Software uint32 M
Version
1 BytesDown uint64 M
loaded
The SoftwareVersion field SHALL be set to the value of the SoftwareVersion being downloaded,
matching the SoftwareVersion field of the QueryImageResponse that caused the failing download to
take place.
The BytesDownloaded field SHALL be set to the number of bytes that have been downloaded during
the failing transfer that caused this event to be generated.
The ProgressPercent field SHALL be set to the nearest integer percent value reflecting how far
within the transfer the failure occurred during the failing transfer that caused this event to be gen
erated, unless the total length of the transfer is unknown, in which case it SHALL be null.
The PlatformCode field SHOULD be set to some internal product-specific error code, closest in tem
poral/functional proximity to the failure that caused this event to be generated. Otherwise, it
SHALL be null. This event field MAY be used for debugging purposes and no uniform definition
exists related to its meaning.
The majority of devices will undergo an over-the-air (OTA) software update at some point during
their operational lifecycle. It cannot be assumed that the Node responsible for serving OTA updates
(OTA Provider) has any specific knowledge about the internals of OTA Requestor Nodes that are
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 771
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
receiving OTA updates. This section provides a standardized header that SHALL be included in all
OTA Software Images, in order to provide the necessary information for OTA Providers to validate
images available for a given OTA Requestor.
It should be noted that while this specification standardizes an OTA Software Image header that
SHALL be used by all OTA Software Images, this specification does not further attempt to standard
ize the remaining contents of those files.
The OTA Software Image file format is composed of a header followed by an opaque body. The
header describes general information about the file such as software version, and the Vendor ID
and Product ID for which the image applies, see Section 11.19.3.3.2, “Conceptual algorithm for
matching OTA Software Images applicable to a query”).
OTA Software Image files SHALL use a fixed encoding. Individual fields of the OTA Software Image
file may be comprised of more complex data types that utilize other encoding schemes.
The fields that comprise an OTA Software Image file, listed in the sequential order in which they
SHALL appear, are provided below.
Name Type
FileIdentifier uint32
TotalSize uint64
HeaderSize uint32
Payload N/A
The FileIdentifier field is a fixed-width, little-endian-encoded, unsigned 32-bit value that SHALL be
included at the beginning of all OTA software image files in order to quickly identify and distin
guish the file as being of that format, without having to examine the contents of the whole file. This
helps distinguishing the file from other file types in storage. The fixed constant value is defined to
be 0x1BEEF11E.
The TotalSize field is a fixed-width, little-endian-encoded, unsigned 64-bit value that SHALL indi
cate the total size, in bytes, of the entire file, including all fields and Payload. This field SHALL
match the total stored size of the file. It SHALL match the sum of:
Page 772 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Payload size is 128KiB = 128 * 1024 bytes = 131072 bytes, reflected as Header.PayloadSize =
131072
This would give a total of 16 + 105 + 131072 = 131193 bytes. The overall file SHALL have this size
and no more, and the TotalSize field SHALL contain that value.
The HeaderSize field is fixed-width, little-endian-encoded, unsigned 32-bit value that SHALL indi
cate the total size, in bytes, of the TLV-encoded Header field.
The Header is a TLV structure, encoded with anonymous outer tag, with the following format:
VendorID field
The VendorID field SHALL be used by an OTA Provider to determine if a Node is the intended recip
ient of the OTA software update file by checking that the VendorID field in the OTA software update
file matches the VendorID received in the Query Image command from the OTA Requestor. This
VendorID field MAY be zero, in which case this OTA software update file MAY apply to more than
one vendor.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 773
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ProductID field
The ProductID field MAY be used by an OTA Provider to determine if a Node is the intended recipi
ent of the OTA software update file by checking that the ProductID field in the OTA software update
file matches the ProductID received in the Query Image command from the OTA Requestor. This
ProductID field MAY be zero, in which case this OTA software update file MAY apply to more than
one product.
SoftwareVersion field
The SoftwareVersion field SHALL contain a totally orderable scalar representation of the version
for the software contained within the file. The SoftwareVersion value SHOULD not be displayed to
an end-user.
For a given version, this SoftwareVersion field SHALL match what the Node will report in its Soft
wareVersion attribute in the Basic Information Cluster, once executing the version.
SoftwareVersionString field
Format constraints for this field SHALL match the constraints of the SoftwareVersionString
attribute in the Basic Information Cluster.
For a given version, this SoftwareVersionString field SHALL match what the Node will report in its
SoftwareVersionString attribute in the Basic Information Cluster, once executing the version.
PayloadSize field
The PayloadSize field SHALL indicate the total size, in bytes, of the payload contained within this
OTA software update file, beyond the header. The length of all data beyond the terminating byte of
the header structure SHALL be equal to this field’s value.
MinApplicableSoftwareVersion field
MaxApplicableSoftwareVersion field
Page 774 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ReleaseNotesUrl field
The ReleaseNotesUrl field, if present, SHOULD specify a link to a product specific web page that
contains release notes for the OTA software update file. The syntax of the ReleaseNotesUrl field
SHALL follow the syntax as specified in RFC 3986 [https://tools.ietf.org/html/rfc3986]. The specified URL
SHOULD resolve to a maintained web page available at that URL for the lifetime of the software
version’s availability. The maximum length of the ReleaseNoteUrl attribute is 256 ASCII characters.
ImageDigestType field
The ImageDigestTypeField SHALL contain the algorithm used to compute the ImageDigest field.
The value of this field SHALL be a supported numerical identifier value from the IANA Named
Information Hash Algorithm Registry [https://www.iana.org/assignments/named-information/named-informa
tion.xhtml#hash-alg] established as part of RFC 6920. For example, a value of 1 would match the sha-
256 identifier, which maps to the SHA-256 digest algorithm per Section 6.2 of FIPS 180-4
It is RECOMMENDED that a digest algorithm be chosen that has a minimum digest length of 256
bits, such as sha-256 (ID 1 in the registry).
ImageDigest field
The ImageDigestField SHALL contain the digest of the entire payload of length PayloadSize that fol
lows the header. The digest SHALL be computed using the algorithm indicated in the ImageDigest
Type field. This digest SHOULD be used by OTA Providers to ensure they have obtained the entire
image expected, and that the contents matches the expectations.
The OTA Software Image file format does not specify the mechanisms that an OTA Requestor should
use to validate that a software image is valid for itself. Considerations relative to OTA Software
Image Signing are presented in Section 11.19.4.2, “Image Verification”.
Nodes need the ability to transfer "files" between nodes. For example, uploading sensor data or
diagnostics data to another node or downloading software update images from a software update
server both require such a protocol.
This document defines a Bulk Data Exchange (BDX) protocol, where files are modeled as collections
of bytes with some attached metadata. For the purposes of this protocol, files are opaque, and no
attempt is made to specify their format. However, the protocol allows for extensible metadata so
that higher-level applications can participate in the decision whether to proceed with a requested
file transfer.
The Bulk Data Exchange (BDX) protocol has some semantic elements influenced by the Trivial File
Transfer Protocol (TFTP):
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 775
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
One major difference is that TFTP is defined to run over UDP only, while Bulk Data Transfers can
proceed over various reliable transports including both TCP and UDP, using the Message Reliablility
Protocol (see Section 4.11, “Message Reliability Protocol (MRP)”). Therefore, BlockAck and BlockQuery
fulfill the role of application-layer control flow and acknowledgement rather than providing a relia
bility and retransmission mechanism. The availability of application-level flow control enables
highly power-constrained nodes to pace transfers in a way that respects their power limitations.
11.21.2. Terminology
The node that initiates a bulk data transfer. The Initiator of a data transfer can either be the Sender
(for "upload", which starts with a SendInit) or the Receiver (for "download", which starts with a
ReceiveInit).
The node that responds to the initiator by either accepting or rejecting the proposed bulk data
transfer and choosing parameters of the transfer compatible with those proposed by the Initiator. It
can also either be the Sender (for "download", which is when the Responder receives a ReceiveInit)
or the Receiver (for "upload", which is when the Responder receives a SendInit).
Bulk data transfers can operate in synchronous ("driven") or asynchronous mode. When operating
in synchronous mode, one party (the Driver) is responsible for controlling the rate at which the
transfer proceeds, and each message in the bulk data transfer protocol SHALL be acknowledged
before the next message will be sent.
In asynchronous mode, there is no driver and successive messages are freely sent without waiting
for BlockAck responses from the Receiver. In asynchronous mode, flow control is provided by the
underlying transport (e.g. Matter over TCP).
The node (either Sender or Receiver) that controls the rate at which a synchronous data transfer
proceeds by sending Block or BlockQuery messages to advance the transfer. This facility allows for
sleepy end-devices operating in RX-off-when-idle or online-offline mode (e.g. due to battery con
straints) to complete a bulk data transfer without requiring them to stay awake continuously dur
ing the transfer. In every synchronous bulk data transfer, exactly one device acts as Driver, and the
Page 776 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
BDX utilizes features of the underlying message layer to provide reliability and at-most-once deliv
ery semantics. If the transport fails to deliver the message within the specified parameters, the BDX
session SHOULD be aborted. For synchronous transfers, if the Driver fails to receive the response to
any given request that is not received within a particular application-determined time, it SHOULD
abort the session.
The node (either Sender or Receiver) that "follows" the driver in the protocol flow. The protocol
defines the followers as devices that can never be sleepy. Follower either receives a BlockQuery to
send the data upon request from the driver or receives a new Block message and acknowledges it
with a BlockAck message (in synchronous mode).
A bulk data transfer Session is a series of messages passed between a Sender and Receiver that
begins with the Initiator starting the transfer negotiation, and ends with a BlockAckEOF from the
Receiver which indicates receipt of all transmitted data and ends the session. All messages in a ses
sion SHALL be sent within the scope of a single Exchange. Only one bulk data transfer session can
be in progress at any time during a Exchange.
Each message in the BDX protocol is mapped to a unique Protocol Opcode, namespaced under the
PROTOCOL_ID_BDX Protocol ID:
• Protocol ID = PROTOCOL_ID_BDX
0x01 SendInit
0x02 SendAccept
0x04 ReceiveInit
0x05 ReceiveAccept
0x10 BlockQuery
0x11 Block
0x12 BlockEOF
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 777
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
0x13 BlockAck
0x14 BlockAckEOF
0x15 BlockQueryWithSkip
The list of status codes used in StatusReport messages to signify a reason for failing or rejecting a
transfer is provided in Table 121, “BDX Status reports”. For StatusReport messages, the protocol
needs to be defined as the BDX protocol, i.e. StatusReport(GeneralCode: FAILURE, ProtocolId: {Ven
dorID=0x0000, ProtocolId=BDX}, ProtocolCode: <value>).
Page 778 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The following StatusReport message ProtocolCode values MAY occur at any time in response to any
BDX message:
If any such StatusReport message is received, or any other unexpected StatusReport is received, the
receiving peer SHALL terminate its processing of the transfer and invalidate the exchange.
In order to maintain data-in-transit confidentiality, and ensure authenticated message flows, the
BDX protocol SHALL only be executed over PASE or CASE encrypted session. This is enforced by the
fact that the only messages allowed to be transmitted without message security are the actual PASE
and CASE session establishment messages.
The BDX protocol MAY be carried over any supported Matter messaging transport, such as BTP, TCP
or MRP, as long as the messages appear in a PASE or CASE session.
Furthermore, the BDX protocol relies on transport-level reliability. Therefore, BDX SHALL always
be used over reliable transports. For example, usage with Matter messaging over UDP without MRP
reliability, that is, without using the R Flag in the Exchange Flags, would prevent the necessary reli
ability.
A SendInit message is sent by an Initiator to propose a BDX Transfer session where the Initiator
wants to be a Sender and deliver information to another node.
A ReceiveInit message is sent by an Initiator to propose a BDX Transfer session where the Initiator
wants to be a Receiver and obtain information from another node.
Any BDX transfer exchange begins with one of these two messages.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 779
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• the Initiator (sender of the message) proposes the transfer parameters and the block size;
• the Responder (receiver of the message) responds with a set of parameters compatible with the
Initiator’s proposal, according to the Responder’s subset of capabilities in common with the Ini
tiator.
The Responder SHALL indicate all the supported modes of operation applicable to the session by
replying, upon success, with SendAccept (in response to SendInit) or ReceiveAccept (in response to
ReceiveInit).
The parameters in the SendAccept/ReceiveAccept message MUST be used in the transfer. If those
parameters are unacceptable to the Initiator, it MUST abort the transfer with an appropriate error
per Table 121, “BDX Status reports”.
Possible replies for SendInit (See Section 11.21.7, “Synchronous Transfers Message Flows” for exam
ples):
◦ FILE_DESIGNATOR_UNKNOWN: The file designator field was present and contained a file
designator not supported by the responder.
◦ LENGTH_TOO_LARGE: The definite length field was present, but too large for the responder.
◦ LENGTH_TOO_SHORT: The definite length field was present, but contextually too short
based on the responder’s knowledge of expected size.
◦ LENGTH_REQUIRED: The responder can only support the proposed transfer if the definite
length field is provided.
Possible replies for ReceiveInit (See Section 11.21.7, “Synchronous Transfers Message Flows” for
examples):
◦ FILE_DESIGNATOR_UNKNOWN: The file designator field was present and contained a file
designator not found or supported by the responder.
Page 780 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
◦ LENGTH_TOO_LARGE: The definite length field was present, but too large for the responder.
◦ LENGTH_REQUIRED: The responder can only support the proposed transfer if the definite
length field is provided.
The format of the SendInit and ReceiveInit messages is enumerated in Table 122, “Sen
dInit/ReceiveInit message fields”.
Proposed 1 octet
Transfer Con
trol (PTC)
• Size = 4 if RC[WIDERANGE] = 0
• Size = 8 if RC[WIDERANGE] = 1
• Size = 4 if RC[WIDERANGE] = 0
• Size = 8 if RC[WIDERANGE] = 1
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 781
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The following subsections describe the fields composing the SendInit and `ReceiveInit messages.
The Proposed Transfer Control (PTC) field specifies, as subfields, the highest version of the protocol
and the transfer modes supported by the Initiator of the transfer. All PTC subfields are Initiator-pro
posed. It is up to the Responder to decide what version and modes it will use. The first version, as of
Matter specification 1.0 is BDX Version 0.
At least one of the PTC[RECEIVER_DRIVE] or PTC[SENDER_DRIVE] field bits SHALL be set in order for the
Responder to set the final transfer control. If neither PTC[RECEIVER_DRIVE] or PTC[SENDER_DRIVE] is
set, the transfer SHALL be rejected by the Responder.
The PTC[ASYNC] bit is an optimization of the transfer and is subject to negotiation with the Respon
der. In general if the Initiator proposes an ASYNC transfer, it SHOULD also be prepared to accept a
synchronous transfer, and SHOULD at least list one of PTC[RECEIVER_DRIVE] or PTC[SENDER_DRIVE] in
the request.
Multiple transfer modes can be specified, which signifies that the Initiator can support any of those
transfer modes. For example, if PTC[ASYNC], PTC[RECEIVER_DRIVE] and PTC[SENDER_DRIVE] bits are set
on a SendInit, it indicates that the Initiator supports 3 distinct transfer modes: synchronous Sender
drive, synchronous Receiver drive and asynchronous (drive is implied). Only one transfer mode
SHALL be used in the actual transfer. The Responder SHALL choose which one to use. If the
Responder supports both Sender and Receiver drive, it SHOULD prefer to use Sender drive to retain
the request/response semantics.
bit 7 6 5 4 3 2 1 0
• Width: 4 bits
• Width: 1 bit
• Values:
• Width: 1 bit
Page 782 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Values:
• Width: 1 bit
• Values:
The Range Control (RC) field specifies parameters related to offset and length of the transfer:
bit 7 6 5 4 3 2 1 0
• Width: 1 bit
◦ Values:
• Width: 1 bit
◦ Values:
• Width: 1 bit
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 783
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
◦ Values:
▪ 0 to indicate that offset (STARTFOFS) and length (DEFLEN) are 4 octets (32-bit) little-endian
unsigned quantities.
▪ 1 to indicate that offset (STARTFOFS) and length (DEFLEN) are 8 octets (64-bit) little-endian
unsigned quantities.
The Proposed Max Block Size (PMBS) field specifies the maximum data size (in bytes) of the block
that the Initiator supports, exclusive of block header fields, such as a block counter.
The Start Offset (STARTOFS) field is an optional 32-bit/64-bit length that specifies the offset in bytes
from start of the file from which the Sender would start the transfer. This allows large file transfers
to be segmented into multiple bulk transfer sessions. The RC[STARTOFS] bit indicates whether this
start offset is present in the message. The RC[WIDERANGE] bit defines the size of start offset quantity
(32-bit or 64-bit). Receivers are not required to accept non-zero start offset transfers. Devices
SHOULD make every attempt to support non-zero start offset. If a Responder cannot accept a given
start offset, it MUST reject the SendInit with a StatusReport(GeneralCode: FAILURE, ProtocolId: BDX,
ProtocolCode: START_OFFSET_NOT_SUPPORTED). See Table 121, “BDX Status reports”.
Length (DEFLEN)
The optional length (DEFLEN) field specifies a predetermined definite length for the transfer. For a
SendInit message, this field defines the number of bytes the Sender commits to sending to the
Receiver. For a ReceiveInit message, this field defines the maximum number of bytes that the
Receiver wishes to receive from the Sender. The SendAccept or ReceiveAccept response will then con
tain the expected length for the transfer. A Receiver receiving a premature BlockEOF would have to
consider the transfer failed. A length of 0 or a missing length field signifies an indefinite length. The
RC(DEFLEN) bit indicates the presence of this field. The RC[WIDERANGE] bit indicates the width of this
field.
The File Designator Length (FDL) field is a 16-bit unsigned little-endian field over 2 octets that speci
fies the length of the upcoming file designator (FD) field, which has variable length.
The File Designator (FD) field is a variable-length identifier chosen by the Initiator to identify the
payload to be transferred. In some applications, this identifier will need to be negotiated in
advance, so that the Responder will know how to handle the file designator. In other applications,
the file designator and optional metadata will be sufficient for the Responder to determine whether
to accept the file transfer and how to handle the data, allowing the transfer to proceed without any
additional message exchanges.
The length of this field in bytes is provided by the previous File Designator Length (FDL) field.
Page 784 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Metadata (MDATA)
The Metadata (MDATA) field is an optional field, and allows the Initiator to send additional applica
tion-specific information about the file to be transferred. The contents of this field are not specified
here; applications can use it to avoid needing a separate round-trip negotiation of the file designa
tor, as described above. The TLV metadata consumes the rest of the payload for the SendInit
/ReceiveInit message, after all previous fields.
A SendAccept message is sent by the Responder as a response to SendInit in order to accept a BDX
Transfer session where the Initiator wants to be a Sender and deliver information (upload) to the
Responder. The final transfer parameters used are decided by the Responder, given the Initiator
proposals in the SendInit message.
Responds to (See Section 11.21.7, “Synchronous Transfers Message Flows” for examples):
Possible replies (See Section 11.21.7, “Synchronous Transfers Message Flows” for examples):
• Block - if the Initiator accepts the parameters from the SendAccept message, and the transfer
method is Sender drive.
Possible follow-ups (See Section 11.21.7, “Synchronous Transfers Message Flows” for examples):
• BlockQuery - if the proposed method is Receiver drive. If the Initiator does not accept the para
meters, it SHOULD ignore this and send a StatusReport(GeneralCode: FAILURE, ProtocolId: BDX,
ProtocolCode: TRANSFER_METHOD_NOT_SUPPORTED) to end the transfer.
Responds to (See Section 11.21.7, “Synchronous Transfers Message Flows” for examples):
• BlockQuery - if the Initiator accepts the parameters from the ReceiveAccept message, and the
transfer method is Receiver drive.
Possible follow-ups (See Section 11.21.7, “Synchronous Transfers Message Flows” for examples):
• Block - if the proposed method is Sender drive. If the Initiator does not accept the parameters, it
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 785
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
SHOULD ignore this and send a StatusReport(GeneralCode: FAILURE, ProtocolId: BDX, Protocol
Code: TRANSFER_METHOD_NOT_SUPPORTED) to end the transfer.
The format of the SendAccept message is enumerated in Table 125, “SendAccept message fields”.
The format of the ReceiveAccept message is enumerated in Table 126, “ReceiveAccept message
fields”.
Since the meaning of many fields overlap in these messages, they are described only once following
the ReceiveAccept message fields.
• TC[RECEIVER_DRIVE]
• TC[SENDER_DRIVE]
• TC[RECEIVER_DRIVE]
• TC[SENDER_DRIVE]
• Present if RC[DEFLEN] = 1
• Size = 4 if RC[WIDERANGE] = 0
• Size = 8 if RC[WIDERANGE] = 1
Page 786 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The following subsections describe the fields composing the SendAccept and ReceiveAccept mes
sages.
The Transfer Control (TC) field specifies, as subfields, the transfer mode and protocol version.
For the transfer mode (TC[SENDER_DRIVE], TC[RECEIVER_DRIVE]), exactly one mode SHALL be chosen
for this transfer, which MUST be one of the original proposed transfer methods sent by the Initia
tor.
The version SHALL be the newest version that is supported by the Responder and is not newer than
the proposed version sent by the Initiator. If the Responder cannot support a version equal or older
to the proposed version, the Responder MUST send a StatusReport(GeneralCode: FAILURE, Proto
colId: BDX_, ProtocolCode: VERSION_NOT_SUPPORTED) to end the transfer.
The Responder MAY reject a proposed asynchronous transfer (PTC[ASYNC] = 1) by sending a Status
Report(GeneralCode: FAILURE, ProtocolId: BDX, ProtocolCode: TRANSFER_METHOD_NOT_SUPPORTED) to
end the transfer. If the Initiator proposed both the PTC[RECEIVER_DRIVE] and PTC[SENDER_DRIVE], the
Responder SHALL select exactly one of those options. In that case, in order to retain the
request/response semantics, the Responder MUST default to TC[SENDER_DRIVE].
bit 7 6 5 4 3 2 1 0
• Width: 4 bits
• Width: 1 bit
• Values:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 787
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Width: 1 bit
• Values:
• Width: 1 bit
• Values:
The Range Control (RC) field specifies parameters related to offset and length of the transfer:
bit 7 6 5 4 3 2 1 0
• Width: 1 bit
◦ Values:
• Width: 1 bit
◦ Values:
Page 788 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The Max Block Size (MBS) field specifies the maximum size, in bytes, of each block for this transfer.
The maximum whole block payload size will be the sum of the Max Block Size and the size of the
block parameters (such as the block counter). This value MUST be less than or equal to the pro
posed max block size (PMBS).
Length (LEN)
NOTE This field is only present in ReceiveAccept messages, and only if `RC[DEFLEN] = 1.
The Length (LEN) field specifies the length of the transfer. If the Initiator indicated a definite length,
this length SHALL either be:
• equal to the proposed definite length, if the remaining data in the file beyond the Start Offset
(STARTOFS) is larger or equal to the proposed length;
• smaller than the proposed definite length, if the remaining data in the file beyond the Start Off
set (STARTOFS) is smaller than the proposed length.
If this field is present, and the Initiator indicated an indefinite length (i.e. RC[DEFLEN] = 0 in
ReceiveInit), this Length field SHALL be equal to the size of the file remaining (if known), or 0, for
indefinite. The absence of the Length (LEN) field implies indefinite length.
Metadata (MDATA)
The Metadata (MDATA) field is optional and allows the Responder to provide application-specific
metadata about the transfer in TLV format. The TLV metadata consumes the rest of the payload for
the SendAccept/ReceiveAccept message, after all previous fields.
The following behavior applies to all messages containing a Block Counter field.
Queries (BlockQuery message) MUST be made in ascending and sequential Block Counter order. If
the arriving Block Counter at the recipient is not exactly equal to the previous `BlockQuery’s Block
Counter, plus 1 (i.e. next block is being directly asked), a block counter SHALL be considered out-of-
order by the recipient.
Blocks (Block, BlockEOF message) MUST be sent in ascending and sequential Block Counter order. If
the arriving Block Counter at the recipient is not exactly equal to current expected Block Counter,
the block counter SHALL be considered out-of-order by the recipient.
Block acknowledgements (BlockAck, BlockAckEOF messages) MUST be sent with the same Block
Counter as the previously received Block/BlockEOF, since they convey a direct acknowledgement. If
the arriving Block Counter at the recipient is not exactly equal to the last sent Block Counter, the
Block Counter SHALL be considered out-of-order by the recipient.
On any out-of-order block counter condition described above, the recipient of the out-of-order mes
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 789
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Since Block Counter fields are always 32-bit unsigned integer values, but file sizes may be specified
over 64-bit lengths to support very large transfers, the ordering for a "next block counter" SHALL
use modulo 2^32 integer arithmetic. Therefore, if the last Block Counter was 0xFFFF_FFFF, the next
expected Block Counter would be 0x0000_0000.
Since the data length of blocks does not need to exactly match the Max Block Size in
Block/BlockEOF messages, it is application-dependent whether Block Counters can be
used to statelessly track the offset within a span of initiated transfer. That is, the
NOTE relationship: current_offset = start_offset + (max_block_size * block_counter) is
true only if it is contextually known that this usage applies for a given transfer
application. This relationship, is MUST NOT be assumed, since it may not apply, such
as when variable-sized blocks are being sent to optimize a given data transfer flow.
The BlockQuery message is sent by the driving Receiver to the follower to request the next block of
data. This message implies a BlockAck of the previous block if no BlockAck was explicitly sent. The
block counter SHOULD start at 0 at the start of the transfer, and increment by one for each subse
quent block.
The BlockQueryWithSkip message MAY be sent by a driving Receiver to the follower to request the
next block of data, after skipping an amount forward within the stream. This message implies a
BlockAck of the previous block if no BlockAck was explicitly sent.
This message is semantically equivalent to a BlockQuery, but with the following additions:
• Before the next Block is sent by the Sender, the cursor within the underlying data transferred
by the Sender SHALL be advanced by BytesToSkip bytes.
• If, after skipping BytesToSkip bytes, the cursor reaches the end of the file, or beyond, then the
next message from the Sender SHALL be a BlockEOF with empty contents. In other words, there
SHALL be no error indicated when receiving a request to skip past the end of the transferable
data.
Page 790 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• The amount of BytesToSkip MAY be a size that does not match the current transfer’s maximum
block size.
This message enables seeking forward in BDX transfers without requiring the termination of a
transfer followed by the re-opening of a new one with a different STARTOFS field specified.
The Block message is the container for the actual bulk transfer data.
Blocks MUST be sent ascending and sequential block counter order (see Section 11.21.6.1, “Block
Ordering Rules”). Block data payload length does not need to exactly match the Max Block Size for
the transfer.
Data Variable Length • The data field’s length is that of the remain
der of the message payload after the Block
Counter field, since Matter messages have
definite length.
Note that, unlike a Block, BlockEOF MAY have a data length of zero. If the entire transfer fits within
the negotiated block size, the BlockEOF SHALL be the one and only message sent in the exchange
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 791
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
and no Block messages will be sent. In that trivial case, the Block Counter would be 0 in the Block
EOF.
On receipt of this message, the recipient SHALL verify that the pre-negotiated file size was trans
ferred, if a definite size had been given. If the Receiver finds a discrepancy between the pre-negoti
ated size of the file and the amount of data that the Sender has sent, then it MAY consider the trans
fer failed. In that case, the Receiver MAY respond with a StatusReport(GeneralCode: FAILURE, Proto
colId: BDX, ProtocolCode: LENGTH_MISMATCH) message.
Blocks MUST be sent ascending and sequential block counter order (see Section 11.21.6.1, “Block
Ordering Rules”). Block data payload length does not need to exactly match the Max Block Size for
the transfer.
Data Variable Length • The data field’s length is that of the remain
der of the message payload after the Block
Counter field, since Matter messages have
definite length.
11.21.6.6. BlockAck
The BlockAck message is an application-level acknowledgement that a Block was received, and not
necessarily that the Block’s data was stored.
If the Sender is driving in a synchronous transfer, the Receiver MUST send a BlockAck in response to
each block of data received. If the Receiver is driving in a synchronous transfer, the Receiver MAY
send a BlockAck after receipt of a Block, and before its next BlockQuery. For example, the Receiver
SHOULD send a BlockAck if it knows it will be going to sleep for some time before the next Block
Query, so that the Sender can free resources associated with the last block.
The Block Counter in a BlockAck MUST correspond to the Block Counter which was embedded in the
Block being acknowledged (see Section 11.21.6.1, “Block Ordering Rules”).
Page 792 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.21.6.7. BlockAckEOF
The BlockAckEOF message is sent in response to BlockEOF to indicate that the Receiver has received
all data.
This message MUST be sent in both synchronous and asynchronous transfers. This signals the end
of the ongoing bulk data transfer session and a successful transfer of the file. The table below enu
merates the contents of the message
The Block Counter in a BlockAckEOF MUST correspond to the Block Counter which was embedded in
the BlockEOF being acknowledged (see Section 11.21.6.1, “Block Ordering Rules”).
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 793
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 794 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Figure 76. Version negotiation: Initiator supports V2 of the protocol, while Responder supports V1
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 795
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Figure 77. Synchronous file sending from sleepy device acting as driving Sender
Page 796 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Figure 78. Synchronous file sending to sleepy device acting as driving Receiver
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 797
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Figure 79. Synchronous file receiving by sleepy device acting as driving Receiver
Page 798 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Figure 80. Synchronous file receiving by device acting as driving Receiver, including BlockQueryWithSkip
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 799
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Figure 81. Synchronous file receive from sleepy device acting as driving Sender
In the following flow, the Initiator wants to continue downloading (receiving) a file after the first
200 bytes were received in a previous transfer. The entire remaining contents is desired until the
end of the file. Therefore, the proposed start offset (STARTOFS) is set to the offset of the first byte
desired in the first block transferred. The proposed length (PLEN) is set to 0 (or omitted) to announce
desire to receive as much as is available from the Sender.
During negotiation, the length (LEN) field of ReceiveAccept is set to the known remaining file size by
the Sender. This could have also been omitted in case the Sender could not or would not state the
maximal amount of data to read. Observe that block numbering begins at 0 for every transfer, even
if the start offset is not 0. Block indices are always 0-based for every transfer.
Page 800 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Figure 82. Re-started receive from sleepy device acting as driving Sender
In the following flow, the Initiator wants to download (receive) only a section of a file, starting at
offset 200, and of length 1000.
During negotiation, the length (LEN) field of ReceiveAccept is set to match the proposed desired
region length by the Sender. The range is fully-specified by the \[startOffset .. startOffset +
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 801
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
length] span.
Figure 83. Range-based receive from sleepy device acting as driving Sender
Page 802 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 803
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The CSA’s DCL (Distributed Compliance Ledger) is a distributed store of information used for track
ing certification status and Vendor maintained information such as, but not limited to, product
name, product description, and firmware URL. This information is cryptographically secured by
digital signatures and is made available via CSA approved synchronized servers or nodes that are
geographically distributed.
The Policies, Procedure and Governance of DCL is maintained by Board approved committees that
Page 804 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
comprise Test Certification Oversight Committee (TCOC) and Security Advisory Group (SEC AG).
• Act as a data store for device models' information and their compliance status.
• Act as a secure distribution point of device meta data as made available by vendors.
◦ Vendors role can add new device models that belong to the VendorID that is associated with
the public key of that vendor. VendorID is associated to the vendor public key during vendor
account creation process.
◦ Vendor role can update a subset of existing device model information, such as product
name, product description, firmware and hardware info. Updates are only allowed if the
device is associated with the same vendor account.
◦ A TestHouse role can write the test status for each device to the Ledger.
◦ A ZBCertificationCenter role can write the confirmation of the Compliance or revoke the
Compliance status of a device model to the Ledger.
◦ Read DeviceModel info, including firmware and hardware versions from the DCL.
The DCL is cryptographically secure, machine-readable, and distributed. More details about the
Ledger can be found here [https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/docs/
DCL-Overview.pdf].
The DCL best practice guidelines are available in Section 13.6.9, “Distributed Compliance Ledger”.
11.22.2. Schemas
• Vendor Schema
◦ Provide general information about a Vendor such as Company legal name, Preferred brand
name associated with VendorID, Landing page URL for vendor, etc.
• PAA Schema
◦ Provide a list of Product Attestation Authorities Certificates for the approved PAAs.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 805
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• DeviceModel Schema
◦ Provide general information about a device, and the information is shared across all soft
ware versions.
• DeviceSoftwareVersionModel Schema
◦ e.g Release Notes URL, FirmwareInformation, OTA Software Image URL (OtaURL), etc.
HardwareVersion and HardwareVersionString are NOT part of the schemas. If there is different
software for a VendorID/ProductID/HardwareVersion, then it SHALL be a new VendorID/ProductID.
Vendor Schema provides contact information associated with the vendor for a given VendorID.
Information in the Vendor schema is populated by the respective vendors as part of onboarding a
vendor account on the DCL.
11.22.3.1. VendorID
This field SHALL uniquely identify this Vendor Schema entry and it SHALL match the Vendor’s
assigned Vendor ID.
11.22.3.2. VendorName
This field SHALL provide a human readable (displayable) name for the product manufacturer asso
ciated with this record.
11.22.3.3. CompanyLegalName
The CompanyLegalName field SHALL specify the legal name for the product manufacturer.
Page 806 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.22.3.4. CompanyPreferredName
The CompanyPreferredName field, if provided, SHALL specify the Preferred Name that MAY be
used for display purposes instead of the CompanyLegalName.
11.22.3.5. VendorLandingPageUrl
The VendorLandingPageUrl field (when provided) SHALL contain a link to a maintained web page
containing more information about the device manufacturer, such as contact information, address,
etc. The syntax of the VendorLandingPageUrl attribute SHALL follow the syntax as specified in
RFC 3986. All HTTP based URLs SHALL use the https scheme.
The PAA Schema allows approved Product Attestation Authorities Certificates to be uploaded and
made available via DCL queries. Information in the PAA schema is populated by the respective ven
dors who have approved PAAs.
11.22.4.1. PAACert
This field uniquely identifies a root level product attestation authority (PAA) and SHALL contain the
body of a certificate that has received the requisite number of approvals to be included in DCL. It
SHALL have the same value for both Subject and Issuer fields. It SHALL have the same value for
both Subject Key Identifier and Authority Key Identifier extensions, which SHALL both be
present. It SHALL be encoded in PEM format.
11.22.4.2. PAASubject
This field SHALL contain the PAA certificate’s Subject field, as defined in PAA in PAA Certificate.
This is encoded as defined in DCL repository [https://github.com/zigbee-alliance/distributed-compliance-
ledger/].
11.22.4.3. PAASubjectKeyID
This field SHALL uniquely identify the PAA certificate’s Subject Key Identifier mandatory exten
sion. It is defined in PAA Certificate. This is encoded as defined in DCL repository [https://github.com/
zigbee-alliance/distributed-compliance-ledger/].
A unique combination of the VendorID and ProductID is used to identify a DeviceModel. The record
schema available to vendors to provide general information shared across all software versions of
a given product is presented below.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 807
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Commissioning uint8 0 to 2 M No
CustomFlow
11.22.5.1. VendorID
This field SHALL identify the vendor of the product by its Vendor ID and SHALL match the Ven
dorID field in the Basic Information Cluster of a device running the software referenced by this
DeviceModel/DeviceSoftwareVersionModel record.
11.22.5.2. ProductID
This field SHALL identify the Product ID of the product instance to which a certification declara
tion, and thus a DCL entry, applies. This field SHALL match the ProductID field in the Basic Informa
tion Cluster of a device running the software referenced by this DeviceModel/DeviceSoftwareVer
sionModel record.
Page 808 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.22.5.3. DeviceTypeID
DeviceTypeID is the device type identifier (see Data Model Device Types) for the device. For exam
ple, DeviceTypeID is 10 (0x000a), which is the device type identifier for a Door Lock.
In case the device combines multiple device types, device type identifier of the primary function of
the device SHOULD be chosen. See _T subtype in Section 4.3.1.3, “Commissioning Subtypes”.
11.22.5.4. ProductName
This field SHOULD match the ProductName field in the Basic Information Cluster of a device running
the software referenced by this DeviceModel record.
11.22.5.5. ProductLabel
This field SHOULD match the ProductLabel field in the Basic Information Cluster of a device running
the software referenced by this DeviceModel record.
11.22.5.6. PartNumber
This field SHALL match the PartNumber field in the Basic Information Cluster of a device running the
software referenced by this DeviceModel record.
Multiple products (and hence PartNumbers) can share a ProductID. For instance, there may be dif
ferent packaging (with different PartNumbers) for different regions; also different colors of a prod
uct might share the ProductID but may have a different PartNumber. In such cases, the choice of a
single PartNumber out of the available set of PartNumbers using this ProductID SHALL be used to
populate this field.
11.22.5.7. Commissioning
CommissioningCustomFlow
CommissioningCustomFlowUrl
This field SHALL identify a vendor-specific commissioning URL for the device model when the
CommissioningCustomFlow field is set to '2', and MAY be set for other values of CommissioningCus
tomFlow. See Custom Commissioning Flow section for how this URL is used. During the lifetime of
the product, the specified URL SHOULD resolve to a maintained web page. The syntax of this field
SHALL follow the syntax as specified in RFC 3986. The maximum length of this field is 256 ASCII
characters. All HTTP based URLs SHALL use the https scheme.
CommissioningModeInitialStepsHint
This field SHALL identify a hint for the steps that MAY be used to put a device that has not yet been
commissioned into commissioning mode. This field is a bitmap with values defined in the Pairing
Hint Table. For example, a value of 1 (bit 0 is set) indicates that a device that has not yet been com
missioned will enter Commissioning Mode upon a power cycle.
Devices that implement Extended Discovery SHALL reflect this value in the Pairing Hint field of
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 809
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Commissionable Node Discovery when they have not yet been commissioned.
CommissioningModeInitialStepsInstruction
This field SHALL be populated with the appropriate Pairing Instruction for those values of Commis
sioningModeInitialStepsHint, for which the Pairing Hint Table indicates a Pairing Instruction (PI)
dependency.
Devices that implement Extended Discovery SHALL reflect this value in the Pairing Instruction field
of Commissionable Node Discovery when they have not yet been commissioned.
CommissioningModeSecondaryStepsHint
This field SHALL identify a hint for the steps that MAY be used to put a device that has already been
commissioned into commissioning mode. This field is a bitmap with values defined in the Pairing
Hint Table. At least bit 2 SHALL be set, to indicate that a current Administrator can be used to put a
device that has already been commissioned into commissioning mode (see Section 5.6.3, “Enhanced
Commissioning Method (ECM)”). Devices which implement additional mechanisms to put a device
that has already been commissioned into commissioning mode SHALL reflect these mechanism by
setting the corresponding bits in this field.
Devices that implement Extended Discovery SHALL reflect this value in the Pairing Hint field of
Commissionable Node Discovery when they have already been commissioned.
CommissioningModeSecondaryStepsInstruction
This field SHALL be populated with the appropriate Pairing Instruction for those values of Commis
sioningModeSecondaryStepsHint, for which the Pairing Hint Table indicates a Pairing Instruction
(PI) dependency.
Devices that implement Extended Discovery SHALL reflect this value in the Pairing Instruction field
of Commissionable Node Discovery when they have already been commissioned.
11.22.5.8. UserManualUrl
This field (when provided) SHALL identify a product-specific web page containing a user manual
for the device model. During the lifetime of the product, the specified URL SHOULD resolve to a
maintained web page. The syntax of this field SHALL follow the syntax as specified in RFC 3986. The
maximum length of this field is 256 ASCII characters. All HTTP based URLs SHALL use the https
scheme.
11.22.5.9. SupportUrl
This field (when provided) SHALL identify a product specific support web page. During the lifetime
of the product, the specified URL SHOULD resolve to a maintained web page. The syntax of this
field SHALL follow the syntax as specified in RFC 3986. The maximum length of this field is 256
ASCII characters. All HTTP based URLs SHALL use the https scheme.
11.22.5.10. ProductURL
This field (when provided) SHALL identify a link to a product specific web page. This field SHALL
match the ProductURL field in the Basic Information Cluster of a device running the software refer
enced by this DeviceModel record. All HTTP based URLs SHALL use the https scheme.
Page 810 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.22.5.11. LsfUrl
This field (when provided) SHALL identify a link to the Localized String File of this product. During
the lifetime of the product, the specified URL SHOULD resolve to a maintained Localized String File.
The syntax of this field SHALL follow the syntax as specified in RFC3986. The maximum length of
this field is 256 ASCII characters. All HTTP based URLs SHALL use the https scheme. This field
SHALL NOT have a localized string identifier.
11.22.5.12. LsfRevision
LsfRevision is a monotonically increasing positive integer indicating the latest available version of
Localized String File. Any client can use this field to check whether it has the latest version of the
Localized String File cached. When the first version of the Localized String File is published, the
value of this field SHOULD be 1. When a new revision of the Localized String File is published, this
value SHALL monotonically increase by 1. When a client of this information finds this to be greater
than its currently stored LSF revision number, it SHOULD download the latest version of the LSF
from the LsfUrl, and update its local value of this field.
A unique combination of the VendorID, ProductID and SoftwareVersion is used to identify a Device
SoftwareVersionModel. The record schema available to vendors to provide information specific to a
particular software version for a given product is presented below.
SoftwareVersion string 1 to 64 M No
String
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 811
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.22.6.1. VendorID
11.22.6.2. ProductID
11.22.6.3. SoftwareVersion
SoftwareVersion SHALL identify the software version number for the device model consistent with
the value found in Section 11.20.2.4.3, “SoftwareVersion field”. The SoftwareVersionNumber value
SHOULD NOT be displayed to an end-user. SoftwareVersion is not editable, but it would be possible
to create a new device model for the same VendorID/ProductID for different versions. Both Soft
wareVersion and SoftwareVersionString SHALL be included. This field SHALL match the Software
Version field in the Basic Information Cluster of a device running the software certified by this
DeviceModel record.
11.22.6.4. SoftwareVersionString
This field SHALL match the Software Version String field in the Basic Information Cluster of a
device running the software referenced by this DeviceModel record, including format constraints
on that field.
11.22.6.5. CDVersionNumber
CDVersionNumber SHALL identify the CD Version Number of the Certification that applies to this
Software Image. The CDVersionNumber maps to version_number defined in Certification Elements TLV
structure.
11.22.6.6. FirmwareInformation
The FirmwareInformation field, if present, SHALL match the firmware_information field in attesta
tion-elements field included in the Device Attestation response when this Software Image boots on
the device. It is an OPTIONAL field that MAY be present only for devices that meet the requirements
listed in Section 6.3.2, “Firmware Information”.
Page 812 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.22.6.7. SoftwareVersionValid
This field SHALL indicate whether this SoftwareVersion is valid. When creating an entry for a new
SoftwareVersion, this typically is set to True. When the manufacturer later finds out there is some
reason that this version should no longer be used (e.g. due to some bugs), the field SHALL be
updated to False. Note: this mechanism is for "withdrawal" of a SoftwareVersion by the manufac
turer, not to be confused with certification revocation by CSA (see SoftwareVersionCertificationSta
tus).
11.22.6.8. OTA
OtaUrl
OtaUrl SHALL identify the URL where to obtain the OTA image. The OtaUrl field SHALL be popu
lated unless the device manufacturer provides alternative means to update the product’s firmware.
The syntax of this field SHALL follow the syntax as specified in RFC 3986. The specified URL
SHOULD be available for the relevant lifetime of the corresponding software. The maximum length
of this field is 256 ASCII characters. All HTTP based URLs SHALL use the https scheme.
OtaFileSize
OtaFileSize is the total size of the OTA software image in bytes. This field SHALL be provided if the
OtaUrl field is populated.
OtaChecksum
OtaChecksum SHALL contain the digest of the entire contents of the associated OTA Software
Update Image under the OtaUrl field, encoded in base64 string representation. The digest SHALL
have been computed using the algorithm specified in OtaChecksumType. This field SHALL be provided
if the OtaUrl field is populated.
OtaChecksumType
OtaChecksumType SHALL identify the type of OtaChecksum. This field SHALL be provided if the
OtaUrl field is populated.
The value of this field SHALL be a supported numerical identifier value from the IANA Named
Information Hash Algorithm Registry [https://www.iana.org/assignments/named-information/named-informa
tion.xhtml#hash-alg] established as part of RFC 6920. For example, a value of 1 would match the sha-
256 identifier, which maps to the SHA-256 digest algorithm per Section 6.2 of FIPS 180-4.
It is RECOMMENDED that a digest algorithm be chosen that has a minimum digest length of 256
bits, such as sha-256 (ID 1 in the registry).
11.22.6.9. MinApplicableSoftwareVersion
MinApplicableSoftwareVersion SHALL be equal to the lowest SoftwareVersion for which this image
can be applied. Also see Section 11.20.2.4.6, “MinApplicableSoftwareVersion field”.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 813
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
11.22.6.10. MaxApplicableSoftwareVersion
11.22.6.11. ReleaseNotesUrl
ReleaseNotesUrl SHALL identify a product specific web page that contains release notes for the
device model software. The syntax of this field SHALL follow the syntax as specified in RFC 3986.
The specified URL SHOULD resolve to a maintained web page available for the lifetime of the corre
sponding software being relevant. The maximum length of this field is 256 ASCII characters. All
HTTP based URLs SHALL use the https scheme.
A unique combination of the VendorID, ProductID and SoftwareVersion is used to identify a Device
SoftwareCompliance record. This record schema is available to the CSA to provide information spe
cific to certification of a particular software version for a given product is presented below. Note
that this schema is writable and mutable by CSA, not by the manufacturer.
SoftwareVersion string 1 to 64 M No
String
For the description of the first five fields, see the corresponding fields in DeviceSoftwareVersion
Model Schema.
11.22.7.1. SoftwareVersionCertificationStatus
This field SHALL have a value from SoftwareVersionCertificationStatusEnum reflecting the current
certification status of this SoftwareVersion.
11.22.7.2. SoftwareVersionCertificationStatusEnum
This data type is derived from enum8 and has its values listed below.
Page 814 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The values 0 through 2 SHALL correspond to the values 0 through 2 used in certification_type in the
Certification Declaration.
11.22.7.3. CDCertificateID
This field SHALL have the the CSA certification’s certificate ID for the Certification that applies to
this record. The value of this field is used in the Certification Declaration's certificate_id field (see
Certification Elements TLV structure) for products using the VendorID, ProductID and SoftwareVer
sion in this schema entry.
The Ledger comes with a set of secure APIs and CLI. More details available here [https://github.com/zig
bee-alliance/distributed-compliance-ledger/blob/master/docs/transactions.md].
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 815
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 816 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A Fabric is anchored by its Trusted Root Certificate Authority (TRCA). A TRCA MAY delegate to one
or more Intermediate Certificate Authorities (ICA) which issue NOCs. Multiple vendors or compa
nies can use the same CA hierarchy in which case they will be governed under the same Trusted
Root Certificate Authority.
A user who wishes to have an already commissioned Node join another Fabric (and therefore
another Security Domain) provides consent by instructing an existing Administrator, which SHALL
put the Node into commissioning mode by using steps outlined in Section 5.6.4, “Open Commission
ing Window”. Administrators SHALL provide a mechanism for the user to thus instruct them.
Administrators SHALL support opening a commissioning window on a Node using the mandatory
method described in Section 5.6.3, “Enhanced Commissioning Method (ECM)”. All Nodes SHALL
support having a commissioning window opened using the the mandatory method described in
Section 5.6.3, “Enhanced Commissioning Method (ECM)”.
An Administrator MAY open a commissioning window on a Node using the optional method
described in Section 5.6.2, “Basic Commissioning Method (BCM)”, if the Node supports the method.
The Node SHALL host an Section 11.18, “Administrator Commissioning Cluster”. The Cluster
exposes commands which enable the entry into commissioning mode for a prescribed time, and
which SHALL be invoked over a CASE secure channel. See Section 11.18.8.1, “OpenCommissioning
Window (OCW) Command” and Section 11.18.8.2, “OpenBasicCommissioningWindow (OBCW) Com
mand”. During such a commissioning window, the Node SHALL maintain its existing configuration,
such as its operational network connection and identities, and SHOULD allow normal interactions
from other Nodes.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 817
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 818 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• If the Node contains all of the Matter functionality, nevertheless it will probably rely on some
security features of the Device.
• If the Node uses Matter functionality provided by the Device, the requirements obviously hold
for both the Node and the Device.
13.3. Commissioning
a. Nodes SHALL stop both commissioning and unsecured rendezvous actions after a specified time
period from the beginning of the commissioning mode when commissioning has not been con
cluded, unless allowed for other purposes such as Commissionable Node Discovery. The time
period for commissioning and unsecured rendezvous announcements SHALL follow require
ments as specified in Section 5.5, “Commissioning Flows” and Section 5.4.2.3, “Announcement
Duration” respectively. [CM8 for T5, T7]
b. Nodes SHALL utilize multiple hash iterations in PBKDF, as required by definitions in Section 3.9,
“Password-Based Key Derivation Function (PBKDF)”. Nodes SHALL validate the bounds of the
iteration count for PBKDF, to respect the minimum and maximum values stated in the cryptog
raphy primitives section (see Section 3.9, “Password-Based Key Derivation Function (PBKDF)”).
[CM99 in T102]
c. Nodes SHALL exit commissioning mode after 20 failed commission attempts (see Section 5.5,
“Commissioning Flows”). [CM100 for T101, T112]
d. Devices SHALL include a Device Attestation Certificate and private key, unique to that Device.
[CM23 for T22, T24, T34, T86]
e. When the setup code is not permanently attached to a device, for example, it is removable or
only found in the device setup guide, the device SHALL NOT deliver the Onboarding Payload
using an NFC tag [CM4 for T90].
f. If an NFC Tag is used to convey the Onboarding Payload from a device to a Commissioner,
depending on how the NFC tag is associated with the device (e.g. device package, attached to the
device, connected to the device…), the NFC Tag SHALL only allow the alteration of the Onboard
ing Payload and the reading thereof in ways and in device states attackers cannot exploit to illic
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 819
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
itly onboard the device (e.g., the alteration of the NFC Tag Onboarding Payload SHALL only be
possible while being manufactured, the NFC tag read-out SHALL NOT be possible when the
device is still in the packaging, the NFC Tag read-out SHALL only be allowed during the enabled
commissioning window). [CM4 for T90]
b. Factory reset SHALL remove from the Node all security- and privacy-related data and key mate
rial created during or after commissioning except data explicitly required to persist across
resets. [CM35 for T16, T17, T79, T82]
13.5. Firmware
a. Nodes SHALL support OTA firmware updates, either using Matter-provided means (see Section
11.19, “Over-the-Air (OTA) Software Update”) or proprietary means. [CM58 for T59]
b. Nodes SHALL validate the authenticity and integrity of the firmware prior to installation, such
as through cryptographic means (see Section 11.19.4.2, “Image Verification”). [CM58 for T59]
c. Nodes SHOULD validate configuration and input for length, and acceptable values and ranges
before applying them. This validation is dependent on the configuration or input being applied
(see Access Control Cluster). Configuration and input validation is explicitly defined in relevant
sections of the specification. [CM46 for T55]
Page 820 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Policies and procedures for security best practices attestation have not been final
NOTE
ized.
13.6.1. Cryptography
a. Devices and Nodes SHOULD include protection (if it exists) against known remote attacks that
can be used to extract or infer cryptographic key material. [CM107 for T94]
b. Devices SHOULD protect the confidentiality of attestation (DAC) private keys. The level and
nature of protection for these keys may vary depending on the nature of the Device. [CM77 for
T22]
c. Nodes SHOULD protect the confidentiality of Node Operational Private Keys. The level and
nature of protection for these keys may vary depending on the nature of the Nodes. [CM87 for
T87, T110, T120]
d. Cryptographic keys SHALL be randomly chosen using a cryptographically secure random num
ber generator in accordance with algorithms defined in Section 3.1, “Deterministic Random Bit
Generator (DRBG)”. [CM39 for T39]
e. Devices SHALL use non-repeating initialization vectors for a given session key. [CM78 for T81]
13.6.2. Commissioning
a. Manufacturers SHOULD control the number of DACs issued under their Vendor ID. [CM24 for
T23, T34]
b. Where practical, the setup code SHOULD NOT be photograph-able or visible when installed (e.g.,
QR code hidden with a flap). [CM89 for T90]
d. For Devices subject to physical tampering (e.g. doorbell, camera, door lock, devices designed for
outdoor use cases), the physical interaction to initiate commissioning and/or the setup code (QR
code, NFC Tag or Manual code) SHOULD NOT be accessible to a physical attacker. E.g. setup code
is removable or not on the device, the button used to initiate commissioning for the lock is
inside the house. [CM4 for T3, T84]
e. A Commissioner or Administrator SHOULD only add Root Certificates that it trusts to a Node.
[CM36 for T153]
f. A device manufacturer SHOULD implement Basic Commissioning Method only for devices that
adequately secure the Passcode. [CM154 for T173]
13.6.3. Firmware
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 821
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
b. Devices SHOULD have a verified boot based in an immutable root of trust to verify the authen
ticity of firmware. Commissioners SHOULD only be loaded on a computing platform that has
such a verified boot. If devices cannot support verified boot, devices SHOULD perform verifica
tion on any firmware update before applying the new firmware. [CM22 for T16, T20]
13.6.4. Manufacturing
a. Fusing of Devices in production SHOULD be done to limit unintended access to hardware com
ponents. For example, vendors may disable debug interfaces, and program trust anchors for
secure boot. There are multiple options to secure fusing on the factory floor (e.g., physically
securing the fusing station, pre-fusing the silicon, etc). [CM113 for T117]
13.6.5. Resiliency
a. Matter implementations SHOULD implement resiliency features (e.g., responding to secure boot
failures with recovery or error signaling mode) to detect and handle compromise. [CM57 for
T59]
a. Battery powered Devices SHOULD respond to excessive queries by rate limiting (even limiting
the rate to zero if desired). [CM51 for T52, T53]
a. Protection against physical attacks (especially those that impact cybersecurity) MAY be needed
for some Devices, as determined by the manufacturer. [CM62 for T60]
13.6.8. Bridging
a. Admins SHOULD only grant privileges to a Bridge or Bridged Device (sending commands from
that Bridged Device towards a Matter node) that the User is comfortable implicitly granting to
all other Bridged Devices exposed by that Bridge. Background: Matter’s ACL mechanism does
not provide a way to grant privileges to only a single endpoint (Bridged Device) from a node
(the Bridge).
a. Vendors SHOULD avail themselves of the DCL store-and-forward functionality so that they can
control posting of data about their products to the DCL. [CM160 for T170]
b. Access to Validator Nodes SHOULD be restricted (e.g., with VPN that only permits Validator
Nodes, Observer Nodes, and authenticated clients with write access). [CM163 for T169, T177,
T180, T183, T186]
c. Vendors SHOULD run and use their own Observer Nodes and restrict access to it to make sure
that it stays available to the vendors' DCL clients. [CM166 for T180, T182]
d. Vendors SHOULD protect DCL private keys in Hardware Security Module (HSM) equipped
servers. [CM167 for T168, T186]
Page 822 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
e. All parameters passed in transactions and queries to the DCL SHALL pass input validation
checks done by the implementation of the DCL. [CM169 for T185]
Table 135, “Threats” describes the threats, the agent involved in the threat as well as evaluates the
consequences. This includes the severity, impact and likelihood of the threat being exploited.
T3 Reset Device and Malicious house Silent control of Node High CM4
Commission for guest (brief physi and access to sensitive
silent control (e.g. cal access). Node data (e.g. IP Cam
IP Camera to era traffic). If only 1
stream video). commissioning is
allowed, user would
detect issue later
if/when they try to use
Node.
T5 IoT device adver Malicious device Use information about High CM6, CM7,
tises information or person with the Device to exploit a CM8
that can be used to local network (known) vulnerability.
identify vulnera access.
bilities.
T7 IoT device adver Malicious device Use information about Medium CM6, CM7,
tises information or person with available accessories to CM8
that can be used to local network target a given home or
identify, profile, or access. user (e.g. to rob).
target a home or a
user.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 823
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
T16 Seller of an Device Malicious Device Control or access sensi Medium CM15,
(most likely a used seller. tive data of Device. CM16,
one) intentionally CM17,
leaves malicious CM21,
software or config CM22,
uration on the CM35
Device to compro
mise future traffic.
T17 Device buyer or Malicious Device Access to sensitive data Medium CM15,
trash picker buyer or trash and ability to inject CM16,
dumps memory to picker. trusted data or even CM17,
find previous commands. CM35
owner’s Device
keys, group keys,
and network cre
dentials.
T22 Cloned Device pro Anyone with phys 1. Brand damage if Medium CM23,
duced (with identi ical access to a Device is of lower qual CM77
cal credentials to a Device from which ity.
proper Device). they can extract 2. Loss of revenue.
Device Attestation 3. Lack of function or
credentials. interoperability if
Device does not func
tion properly.
4. Lack of security if
Device does not have
proper security mea
sures.
5. Lack of support from
manufacturer for
cloned Devices.
Page 824 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
T24 Factory provi 1. Worker in sup Control of Device and Medium CM23,
sioned keys cap ply chain. access to sensitive CM113
tured in factory, 2. Attacker who Device data (e.g. IP
transit, or store goes to retail store Camera traffic).
(e.g., with fault
injection or other
tampering).
T39 Guessing security Attacker within Control or access sensi High CM39
keys via brute radio range, cap tive data of Device.
force attack. tures encrypted Even control entire net
network packets. work if the private key
for the Operational Cer
tificate of a Controller
can be guessed.
T52 Malicious Device Attacker using a Shortened battery life Medium CM44,
off the network Device on the net of nearby Devices. CM51
causes battery work.
powered Device to
wake too often.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 825
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
T53 Malicious Device Attacker using a Shortened battery life Medium CM44,
off the network Device on the net of nearby Devices. CM51
interrupts battery work.
powered messages
too often and
greatly reduces
battery life.
T55 Device reconfig Attacker using a Device could be config Medium CM45,
ured improperly. Device on the net ured such that it does CM46,
work. not properly behave. CM47
T60 Physical tamper Attacker with Trusted Device could Medium CM62
ing with Device physical access to be hijacked.
permits compro Device.
mise.
T79 Device marked for Installer or return Damaged or obsolete Low CM15,
destruction reused agent. Devices may re-enter CM16,
in network. the network. CM20,
CM35
T81 Attacker uses pre Attacker able to Attacker discovery of High CM78
dictable Initializa observe network Device crypto keys and
tion Vectors to traffic from the other secrets, which
derive crypto keys. Device. can lead to control of
other Devices if the
Device has such privi
leges.
T82 Device buyer Malicious Device User data may be Medium CM15,
dumps memory to buyer or dumpster leaked. CM35
find previous diver.
owner’s user data.
T84 Person with physi Attacker with Control of Device and Medium CM4
cal access to physical access to access to sensitive
already installed Device. Device data (e.g. IP
Device resets. Camera traffic).
Device then scans
QR code to gain
access.
Page 826 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
T86 Leak certificate or Physical or locally Device appears as valid Low CM23
Device identity compromised Device.
private key to attacker.
appear as valid
Device.
T87 Malicious Device Attacker on the Group keys and sensi Medium CM87
or party poses as local network or tive data revealed to an
valid Matter Node remotely control invalid Node
using operational ling a Node on the
credentials local network
T90 Long range cam Malicious neigh Attacker manages to Medium CM3,
era captures QR bor, robber, or connect Device to their CM89
code at Commis other nearby gateway or account.
sioning time or active attacker.
otherwise.
T101 Malicious Device Attacker on the Control of Device and High CM5,
or person with local network. access to sensitive CM100
local network Device data (e.g. IP
access attempts to Camera traffic).
guess setup code
via online brute
force attack.
T102 Malicious Device Attacker with Control of Device and High CM5,
or person with remote access. access to sensitive CM99
knowledge of Device data (e.g. IP
passcode verifier Camera traffic).
uses offline brute
force attack to
derive setup code.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 827
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
T110 Malicious device Attacker on the Control of Node and High CM87
or party poses as local network or access to sensitive Node
valid Matter remotely control data (e.g., IP camera
Administrative ling a Node on the traffic)
Node using opera local network
tional credentials
T117 Incorrect fusing of Contract manufac Device assets are vul High CM113
production turer, factory nerable, security poli
Devices. worker. cies including secure
boot might not be
enforceable, etc.
T120 Data from Matter Any adversarial Matter data may be High CM87
Nodes is shared process running in used in inappropriate
with non-Matter the node that has or unauthorized ways
or unauthorized enough privileges potentially harming the
entities (e.g. data to modify ACLs. owner.
leakage to adja Secure boot is not
cent non-Matter sufficient protec
Nodes) tion if the device
boots rarely and
the malicious
process was
spawned post-boot
up.
Page 828 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
T168 DCL Private Key Attacker obtains Attacker can add to the High CM163
Exfiltration. one or more pri block chain on behalf
vate keys of a com of the company. Can
pany with DCL change the OtaUrl to
writer privilege. point to old and
known-vulnerable
firmware or prevent an
update from being
installed.
T169 DoS/DDoS of Val Attack can direct a New blocks cannot be High CM163
idators Nodes. DoS attack or added.
resource exhaus
tion attack against
validators.
Attacker only
needs to DoS 1/3+1
of validators to
DoS consensus.
T173 Malicious Device Attacker on the Control of Device and Medium CM41,
or person with local network access to sensitive CM152,
local network Device data (e.g. IP CM154
access and knowl Camera traffic)
edge of the pass
code attempts to
pair with a com
missioned device
when someone
else opens the
commissioning
window using Sec
tion 5.6.2, “Basic
Commissioning
Method (BCM)”
and the device’s
Passcode.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 829
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
T174 Malicious Device Attacker on the Control of Device and Medium CM41,
gains knowledge local network access to sensitive CM152
of the Passcode on Device data (e.g. IP
an uncommis Camera traffic)
sioned Device,
commissions the
Device, and then
puts it back into
commissioning
mode with the
same Passcode
using Section 5.6.2,
“Basic Commis
sioning Method
(BCM)” or Section
5.6.3, “Enhanced
Commissioning
Method (ECM)” to
avoid detection.
T175 Malicious Device Attacker on the Control of Device and Medium CM41,
with knowledge of local network access to sensitive CM152
the Passcode com Device data (e.g. IP
missions an Camera traffic)
uncommissioned
Device and then
puts it back into
commissioning
mode with the
same Passcode
using Section 5.6.2,
“Basic Commis
sioning Method
(BCM)” or Section
5.6.3, “Enhanced
Commissioning
Method (ECM)” to
avoid detection.
T177 Attacker exploits a Attacker with Many Validator Nodes High CM163
vulnerability that some sort of DCL misbehave (e.g.,
is common to most access (maybe just approving adding or
or all of the Valida read, which is revoking a PAA or
tor Node software. open to all). changing an OtaURL).
Page 830 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
T180 Attacker accesses Attacker that can DCL capacity dimin High CM163,
Observer Node or send network ished or eliminated. CM166
Validator Node messages to a DCL Unable to communicate
with unauthenti Observer Node or important things like
cated READ CLI Validator Node. revocation of PAA.
protocol, mounts a
DoS or DDoS
attack.
T183 DoS on Trustees' Submit many PRO Trustees overloaded Medium CM163
approval process. POSE_ADD_AC
COUNT requests.
The Trustees can
be overwhelmed
with illegitimate
requests. Requires
compromise of a
Trustee, although
replay is possible.
T185 DCL Denial of Ser Authorized Very large ledger High CM169
vice. Attacker attacker sends a blocks added to ledger.
writes a value to write request with This could cause valida
the ledger that is very large para tion problems. DOS on
very large or out meter payload. Observer Nodes if
of bounds. response is very large.
T186 Test House posts Authorized test False product info in High CM163,
incorrect informa house. ledger CM167
tion about a ven
dor’s product.
Table 136, “Countermeasures” describes the various countermeasures to the threats listed in Table
135, “Threats”.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 831
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ID Description
CM3 Commissioning is started with some form of physical user interaction (e.g. power
cycle or button press).
CM4 For Devices subject to physical tampering (e.g. doorbell, camera, door lock,
devices designed for outdoor use cases), the physical interaction to initiate com
missioning and/or the setup code is not accessible to a physical attacker. E.g. setup
Passcode is removable or not on the device, the button for the lock is inside the
house.
CM5 All Devices include a randomly generated setup passcode and a corresponding
passcode verifier derived from the setup passcode via a PBKDF. The setup code
includes at least 27 bits of entropy compliant with a recognized standard (e.g.,
NIST SP 800-90B).
CM6 Unsecured rendezvous are enabled by a user action and, upon time-out or com
missioning failure, will cause deletion of any state information. Examples of "user
actions" are pressing a physical button, power-cycling a Device, and leveraging a
previously commissioned account.
CM8 Both commissioning and unsecured rendezvous actions time-out after at most 15
minutes from the beginning of the commissioning mode when commissioning has
not been concluded.
CM16 Devices rotate keys at specified triggers (e.g. Factory Device Reset).
CM17 Devices implement Perfect Forward secrecy key agreement protocols that give
assurances that session keys will not be compromised even if long-term secrets
used in the session key exchange are compromised.
CM20 Revoke Device credentials and privileges when the Device is removed from the
home.
CM21 Devices have cryptographically signed firmware, including all firmware and soft
ware on the Device.
CM22 Devices have a verified boot based in an immutable root of trust to verify the
authenticity of firmware.
CM23 All Devices include a Device Attestation Certificate and private key, unique to that
Device.
CM24 Manufacturers control the number of DACs issued under their Vendor ID.
CM35 Factory reset removes all local data and key material created during or after com
missioning except data explicitly required to persist across resets.
CM39 Cryptographic keys are randomly chosen using the strong entropy separately
required and the cryptographic algorithms and key lengths specified by Matter.
Page 832 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ID Description
CM41 Administrators can view the set of Fabrics on each Device (i.e., Attributes for the
Node Operational Credentials Cluster).
CM45 Configuration for secure channel protocol is carefully negotiated and validated by
both parties.
CM46 Devices validate configuration and input changes for length, character type, and
acceptable values and ranges before applying them. This validation is dependent
on the configuration or input being applied (e.g. ACL entries). Configuration and
input validation is explicitly defined in relevant sections of the specification.
CM47 Device management service uses a secure communication mechanism for recon
figuration.
CM51 Battery powered Devices respond to excessive queries by rate limiting (even limit
ing the rate to zero if desired).
CM57 Devices implement resiliency features (e.g., responding to secure boot failures
with recovery or error signaling mode) to detect and handle compromise.
CM58 Devices support OTA firmware updates. Devices validate the authenticity and
integrity of the firmware prior to installation.
CM62 Protection against physical attacks (especially those that impact cybersecurity) is
needed for some Devices, as determined by the manufacturer.
CM77 All Devices protect the confidentiality of attestation (DAC) private keys. The level
and nature of protection for these keys may vary depending on the nature of the
Device.
CM87 All Nodes protect the confidentiality of operational credential private keys. The
level and nature of protection for these keys may vary depending on the nature of
the Nodes.
CM89 The setup code is not photographable (e.g., NFC) or not visible when installed (e.g.,
QR code hidden with a flap).
CM107 Devices include protection (if it exists) against known remote attacks that can be
used to extract or infer cryptographic key material.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 833
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ID Description
CM113 Fusing of Production Devices is done correctly. For example, disabling debug
interfaces, and programming trust anchors for secure boot. There are multiple
options to secure fusing on the factory floor (e.g., physically securing the fusing
station, pre-fusing the silicon, etc).
CM152 Device manufacturers provide a way to secure a static Passcode after initial com
missioning so that it is not available for unauthorized agents.
CM160 Vendors sign off on some other entity posting data about their products to the
DCL.
CM163 Tightly restrict access to Validator Nodes (e.g., with VPN that only permits Valida
tor Nodes, Observer Nodes, and authenticated clients with write access).
CM166 Matter vendors run and use their own Observer Node and restrict access to it to
make sure that it stays available to that company’s DCL clients.
CM167 Matter vendors protect DCL private keys in HSM equipped servers.
CM169 All parameters passed in transactions and queries to the DCL pass input valida
tion checks.
Page 834 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Values in the Matter TLV format are encoded as TLV elements. Each TLV element has a type. Ele
ment types fall into two categories: primitive types and container types. Primitive types convey fun
damental data values such as integers and strings. Container types convey collections of elements
that themselves are either primitives or containers. The Matter TLV format supports three different
container types: structures, arrays and lists.
All valid TLV encodings consist of a single top-level element. This value can be either a primitive
type or a container type.
A.2. Tags
A TLV element includes an optional numeric tag that identifies its purpose. A TLV element without
a tag is called an anonymous element. For elements with tags, two categories of tags are defined:
profile-specific and context-specific.
Profile-specific tags identify elements globally. A profile-specific tag is a 64-bit number composed of
the following fields:
• 16-bit Vendor ID
Profile-specific tags are defined either by Matter or by vendors. Additionally the Matter Common
Profile includes a set of predefined profile-specific tags that can be used across organizations.
Context-specific tags identify elements within the context of a containing structure element. A con
text-specific tag consists of a single 8-bit tag number. The meaning of a context-specific tag derives
from the structure it resides in, implying that the same tag number may have different meanings in
the context of different structures. Effectively, the interpretation of a context-specific tag depends
on the tag attached to the containing element. Because structures themselves can be assigned con
text-specific tags, the interpretation of a context-specific tag may ultimately depend on a nested
chain of such tags.
Context-specific tags can only be assigned to elements that are immediately within a structure. This
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 835
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
implies that an element with a context-specific tag cannot appear as the outermost element of a TLV
encoding.
A special "anonymous tag" is used to denote TLV elements that lack a tag value. Such a TLV element
is referred to as an anonymous element.
Where a distinguished ordering of tags is required (e.g. for the purposes of generating a hash or
cryptographic signature of elements within a structure), the following ordering rules SHALL be
used:
• Context-specific tags with numerically lower tag values SHALL be ordered before those with
higher tag values.
• Profile-specific tags with numerically lower Vendor IDs SHALL be ordered before those with
higher Vendor IDs.
• Profile-specific tags with the same Vendor ID, but numerically lower profile numbers SHALL be
ordered before those with higher profile numbers.
• Profile-specific tags with the same Vendor ID and the same profile numbers but numerically
lower tag numbers SHALL be ordered before those with higher tag numbers.
The ordering rules SHALL apply to elements at the same level within a container.
A.3. Lengths
Depending on its type, a TLV element may contain a length field that gives the length, in octets, of
the element’s value field. A length field is only present for string types (character and octet strings).
Other element types either have a predetermined length or are encoded with a marker that identi
fies their end.
• Signed integers
• Unsigned integers
• UTF-8 Strings
• Octet Strings
• Booleans
Page 836 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
• Nulls
Of the primitive types, integers, floating point numbers, booleans and nulls have a predetermined
length specified by their type. Octet strings and UTF-8 strings include a length field that gives their
lengths in octets.
• Structures
• Arrays
• Lists
Each of the container types is a form of element collection that can contain primitive types and/or
other container types. The elements appearing immediately within a container type are called its
members. A container type can contain any number of member elements, including none. Con
tainer types can be nested to any depth and in any combination. The end of a container type is
denoted by a special element called the ‘end-of-container’ element. Although encoded as a member,
conceptually the end-of-container element is not included in the members of the containing type.
A.5.1. Structures
A structure is a collection of member elements that each have a distinct meaning. All member ele
ments within a structure SHALL have a unique tag as compared to the other members of the struc
ture. Member elements without tags (anonymous elements) are not allowed in structures. The
encoded ordering of members in a structure may or may not be important depending on the intent
of the sender or the expectations of the receiver. For example, in some situations, senders and
receivers may agree on a particular ordering of elements to make encoding and decoding easier.
Where a distinguished ordering of members is required (for example, for the purposes of generat
ing a hash or cryptographic signature of the structure), the members of the structure SHALL be
encoded as specified in Section A.2.4, “Canonical Ordering of Tags”.
A.5.2. Arrays
An array is an ordered collection of member elements that either do not have distinct meanings, or
whose meanings are implied by their encoded positions in the array. An array can contain any type
of element, including other arrays. All member elements of an array SHALL be anonymous ele
ments – that is, they SHALL be encoded with an anonymous tag.
A.5.3. Lists
A list is an ordered collection of member elements, each of which may be encoded with a tag. The
meanings of member elements in a list are denoted by their position within the list in conjunction
with any associated tag value they may have.
A list can contain any type of element, including other lists. The members of a list may be encoded
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 837
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
with any form of tag, including an anonymous tag. The tags within a list do not need to be unique
with respect to other members of the list.
The element type field encodes the element’s type as well as how the corresponding length and
value fields are encoded. In the case of Booleans and the Null value, the element type field also
encodes the value itself.
7 6 5 4 3 2 1 0
x x x 0 1 0 0 0 Boolean False
x x x 0 1 0 0 1 Boolean True
Page 838 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
x x x 1 0 1 0 0 Null
x x x 1 0 1 0 1 Structure
x x x 1 0 1 1 0 Array
x x x 1 0 1 1 1 List
0 0 0 1 1 0 0 0 End of Container
x x x 1 1 0 0 1 Reserved
x x x 1 1 0 1 0 Reserved
x x x 1 1 0 1 1 Reserved
x x x 1 1 1 0 0 Reserved
x x x 1 1 1 0 1 Reserved
x x x 1 1 1 1 0 Reserved
x x x 1 1 1 1 1 Reserved
For both signed and unsigned integer types the bottom two bits of the element type field signal the
width of the corresponding field as follows:
• 00 — 1 octet
• 01 — 2 octets
• 10 — 4 octets
• 11 — 8 octets
For UTF-8 and octet string types the bottom two bits of the element type field signal the width of the
length field as follows:
• 00 — 1 octet
• 01 — 2 octets
• 10 — 4 octets
• 11 — 8 octets
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 839
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
For end of container element type the tag control bits are set to 0. Any other combination of the tag
control bits for this element type only is reserved. See Section A.10, “End of Container Encoding”.
The tag control field identifies the form of tag assigned to the element (including none) as well as
the encoding of the tag octets.
7 6 5 4 3 2 1 0
A profile-specific tag can be encoded in fully-qualified tag form, where the encoding includes all
three tag components (Vendor ID, profile number and tag number). Two variants of this form are
supported, one with a 16-bit tag number and one with a 32-bit tag number. The 16-bit variant
SHALL be used with tag numbers < 65536, while the 32-bit variant SHALL be used with tag num
bers >= 65536.
Page 840 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A profile-specific tag can also be encoded in implicit profile tag form, where the encoding includes
only the tag number, and the Vendor ID and profile number are inferred from the protocol context
in which the TLV encoding is communicated. This form also has two variants based on the magni
tude of the tag number.
A special encoding exists for profile-specific tags that are defined by the Matter Common Profile.
These are encoded in the same manner as implicit profile tags except that they are identified as
common profile tags, rather than implicit profile tags in the tag control field.
Context-specific tags are encoded as a single octet conveying the tag number.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 841
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
length field is up to the discretion of the sender, implying that a sender can choose to send more
length octets than strictly necessary to encode the value.
Control Octet
1 octet
The number of octets in the value field is indicated by the element type field within the control
octet. The choice of value octet count is at the sender’s discretion, implying that a sender is free to
send more octets than strictly necessary to encode the value. Within the value octets, the integer
value is encoded in little-endian format (two’s complement format for signed integers).
The length field of a UTF-8 or octet string encodes the number of octets (not characters) present in
the value field. The number of octets in the length field is implied by the type specified in the ele
ment type field (within the control octet).
For octet strings, the value can be any arbitrary sequence of octets. For UTF-8 strings, the value
octets SHALL encode a valid UTF-8 character (code points) sequence. Senders SHALL NOT include a
terminating null character to mark the end of a string.
A.11.3. Booleans
Page 842 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
1 octet 0 to 8 octets
The value of a Boolean element (true or false) is implied by the type indicated in the element type
field.
The value field of an array/structure/list element is a sequence of encoded TLV elements that consti
tute the members of the element, followed by an end-of-container element. The end-of-container
element SHALL always be present, even in cases where the end of the array/structure/list element
could be inferred by other means (e.g. the length of the packet containing the TLV encoding).
The value field of a floating point element contains an IEEE 754-2019 single or double precision
floating point number encoded in little-endian format (specifically, the reverse of the order
described in External Data Representation, RFC 4506). The choice of precision is implied by the type
specified in the element type field (within the control octet). The sender is free to choose either pre
cision at their discretion.
A.11.6. Nulls
1 octet 0 to 8 octets
Table 137, “Sample encoding of primitive types” shows sample encodings for primitive types. All
examples in the table below are encoded as anonymous elements.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 843
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Boolean false 08
Boolean true 09
Null 14
Table 138, “Sample encoding of containers” shows sample encodings for container types. In each of
the examples below, the outermost container is encoded as an anonymous element.
Empty Structure, {} 15 18
Empty Array, [] 16 18
Empty List, [] 17 18
Page 844 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Table 139, “Sample encoding of different tag types” shows sample encoding of a value with differ
ent associated tags, using Vendor ID = : 65522 (0xFFF2), one of the Vendor IDs allocated for testing
purposes.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 845
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 846 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A TLV Schema takes the form of a series of definitions. Each definition describes some construct,
such as a data type. Each definition has an associated human readable name separated from the
definition with a ⇒ symbol. As a mnemonic device, it is useful to read the ⇒ symbol as “is a”. For
example, the following definition defines a data type that MAY be used to represent a sensor sam
ple:
Example
This example would be read as "sensor-sample is a structure containing a timestamp and value".
A TLV Schema MAY contain multiple definitions. The order of definitions within a TLV Schema is
unimportant.
B.1.2. Keywords
TLV Schemas employ various keywords when describing a construct. These keywords (e.g. STRUC
TURE, SIGNED INTEGER, and range) are an inherent part of the schema language. Keywords in TLV
Schemas are always case-insensitive. However, by convention, keywords associated with types and
other high-level constructs are capitalized for emphasis in text-only contexts.
B.1.3. Naming
Each definition in a TLV Schema assigns a human-readable name to the construct being defined.
This name serves both as a descriptive title as well as a means to refer to the construct from else
where in the schema.
Names in TLV Schemas are limited to ASCII alphanumeric characters, plus dash (-) and underscore
(_). Additionally, all names SHALL begin with either an alphabetic character or an underscore. In
general, any name conforming to these rules MAY be used, as long as it does not collide with a key
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 847
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
B.1.4. Namespaces
The name assigned to a schema construct SHALL be unique relative to all other named constructs
in the same scope. To facilitate this, TLV Schemas support a namespacing mechanism similar to that
provided in languages like C++.
The names of constructs defined within a namespace definition are only required to be unique
within the given namespace. Namespaces themselves MAY be nested to any depth.
Constructs defined in other namespaces MAY be referenced using a name that gives the enclosing
namespaces, plus the construct name, each separated by dots (.). Such a multi-part name is called a
scoped name. For example:
Namespaces Example
namespace a
{
x => STRING,
other-x => b.x
}
namespace b
{
x => SIGNED INTEGER
}
B.1.5. Qualifiers
Constructs within a TLV Schema MAY be annotated with additional information using a qualifier.
Qualifiers appear within square brackets ([…]) immediately following the construct they affect. In
most cases the use of qualifiers is optional, but there are some situations where the schema syntax
requires a qualifier.
Often qualifiers are used to place restrictions on the form or range of values that a construct can
assume. For example a length qualifier MAY be used to constrain the length of a STRING type:
Multiple qualifiers MAY appear within the square brackets, and SHALL be separated by commas.
Page 848 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
B.1.6. Tagging
In a TLV Schema, tag numbers appear as qualifiers attached to a particular named construct, such
as a field within a structure. This association reflects the tag’s role as an alias for the textual name
in the TLV encoding. The syntax for tag qualifiers is defined in tag. For example:
Tagging Example
B.2. Definitions
A Matter TLV Schema consists of a set of one or more definitions. The definitions that MAY appear
within a schema are:
• type-def
• field-group-def
• namespace-def
• protocol-def
• vendor-def
type-or-ref:
type
type-ref
type:
ANY
ARRAY
ARRAY OF
BOOLEAN
CHOICE OF
FLOAT32
FLOAT64
LIST
LIST OF
NULL
OCTET STRING
SIGNED INTEGER
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 849
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
STRING
STRUCTURE
UNSIGNED INTEGER
type-ref:
type-name
scoped-type-name
qualifier:
tag
A type definition associates a name (type-name) with a schema construct representing a TLV type or
pseudo-type. The given name serves as a descriptive title for the type, as well as a means to refer to
the type from elsewhere in the schema.
Type definitions (type-def) are often used to describe TLV types that appear directly in some form
of communication. For example, a type definition MAY define the structure of data carried within
the payload of a message. Some type definitions may be used to define general purpose TLV con
structs which are then employed in the definitions of other types.
The type (type-name) associated with a type definition MAY be any one of the available TLV types or
pseudo-type. Alternatively, a type definition MAY contain a scoped type (scoped-type-name) referring
to another type definition appearing elsewhere in the schema. This form is referred to as a type ref
erence (type-ref). The ordering of type definitions and type references within a schema is unimpor
tant, implying that a type reference MAY refer to a type that is defined later in the schema.
A tag qualifier MAY be applied to the name within a type definition to associate a default tag with
that name. The default tag will be used in an encoding of the type whenever an explicit tag has not
been given.
field-group-members:
field-group-member
field-group-members, field-group-member
field-group-member:
identifier [ id-qualifier ] : type-or-ref // field definition
includes field-group-name // field group include
id-qualifier:
tag // SHALL be present
optional
FIELD GROUP declares a collection of fields that MAY be included in a TLV Structure. A FIELD GROUP is
Page 850 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
never directly encoded in a TLV encoding. A FIELD GROUP is used with includes statement to define
common patterns of fields such that they MAY be reused across different STRUCTURE definitions.
A FIELD GROUP definition (field-group-def) contains a list of field definitions, each of which gives the
type of the field, its tag, and an associated textual name. The field type MAY be either a fundamen
tal type, a CHOICE OF pseudo-type, an ANY pseudo-type, or a reference to one of these types defined
outside the FIELD GROUP definition.
A FIELD GROUP definition MAY also contain one or more includes statements. Each such statement
identifies another FIELD GROUP whose fields are to be included within the referencing FIELD GROUP.
Such nested inclusion MAY be specified to any depth.
The rules governing the names and tags associated with fields within a FIELD GROUP are the same as
those defined for STRUCTURE.
ns-name:
name
scoped-name
ns-scoped-defs:
ns-scoped-def
ns-scoped-defs, ns-scoped-def
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 851
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
ns-scoped-def:
type-def
field-group-def
protocol-def
namespace-def
namespace introduces a new naming scope. Definitions that appear within the braces of a
namespace definition are scoped to that namespace, such that their names need only be unique
within the bounds of the enclosing scope. The namespace scoped definitions SHALL be separated
by commas.
In general, four forms of definitions MAY appear within a namespace: type definitions (type-def),
FIELD GROUP definitions (field-group-def), protocol definitions (protocol-def) and further namespace
definitions (namespace-def). Namespace definitions MAY be nested to any level. Protocol defini
tions, however, are restricted such that they SHALL NOT be nested. Thus a namespace can only con
tain a protocol definition if the namespace itself is not located, at any level, within another protocol
definition.
The name used in a namespace definition MAY be either a simple name, such as a, or a scoped-name,
such as a.b.c. When a scoped-name is used, the effect is exactly as if multiple nested namespaces had
been declared, each named after a part of the scoped name.
It is legal to have multiple namespace definitions, each with the same name, defined within the
same scope. The effect is as if there were only a single namespace definition containing a union of
the enclosed definitions. Thus, a namespace definition with the same name as a preceding defini
tion MAY be seen as a kind of continuation of the earlier one.
namespace abc
{
property => FLOAT32 [ range 0..50 ],
namespace matter.protocols.aaa
{
config => STRUCTURE
{
points [0] : ARRAY OF abc.point,
...
}
}
Page 852 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
qualifier:
id
protocol-scoped-defs:
protocol-scoped-def
protocol-scoped-defs, protocol-scoped-def
protocol-scoped-def:
type-def
field-group-def
namespace-def
PROTOCOL defines a Matter protocol. A Matter protocol is a group of logically related Matter TLV con
structs that together serve a common purpose.
Similar to a namespace definition, a PROTOCOL definition introduces a new naming scope in which fur
ther definitions may appear. The names of definitions appearing within the braces of a PROTOCOL are
scoped in exactly the same way as if they had appeared within a namespace definition. Likewise, con
structs outside the PROTOCOL definition MAY refer to definitions within the protocol by using a
scoped name that includes the protocol name. The PROTOCOL scoped definitions SHALL be separated
by commas.
PROTOCOL definitions MAY appear at the global naming scope, or within a namespace definition.
However, PROTOCOL definitions SHALL NOT be nested within other PROTOCOL definitions at any depth.
Every PROTOCOL definition SHALL include an id qualifier giving the id of the protocol, that uniquely
identifies the protocol among all other protocols. The id given in a PROTOCOL definition SHALL be
unique relative to all other PROTOCOL definitions in a schema. However, it is legal to have multiple
PROTOCOL definitions with the same protocol id, provided that they also have the same name and
appear within the same naming scope. The effect of this is as if there were only a single PROTOCOL
definition containing a union of the enclosed definitions. This makes it possible to break up a PROTO
COL definition across multiple schema files.
namespace some.names {
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 853
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
qualifier:
id
VENDOR associates a name with a Vendor ID. VENDOR definition SHALL include an id qualifier giving
the id of the vendor.
In a TLV Schema that includes a VENDOR definition, the vendor name MAY be used elsewhere in the
schema as a stand-in for the associated Vendor ID. One such place where a vendor name may
appear is within the id qualifier of a PROTOCOL definition.
VENDOR definitions MAY only appear at the global name scope, implying they SHALL NOT be placed
within the body of a namespace or PROTOCOL definition.
Both the name and id value used in a VENDOR definition SHALL be unique across all such definitions.
However, for convenience, a VENDOR definition MAY be repeated provided that the name and id are
the same.
The Matter vendor (0x00000) is implicitly defined in all schemas, although it MAY be explicitly
defined as well:
B.3. Types
The TLV format supports 10 fundamental types: integers (signed and unsigned), floats, booleans,
UTF-8 strings, octet strings, structures, arrays, lists and nulls. Accordingly, a TLV Schema MAY use
one of the following type constructs to constrain an encoding to be one of these fundamental types.
Page 854 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
qualifier (optional):
length
nullable
type-pattern:
type-pattern-item
type-pattern, type-pattern-item
type-pattern-item:
type-or-ref quantifier // unnamed item
identifier : type-or-ref quantifier // named item
quantifier (optional):
* // zero or more
+ // one or more
{ count } // exactly count
{ min..max } // between min and max
{ min.. } // at least min
ARRAY OF declares an array where all the items in the array are of the same fundamental type, or
taken from the same set of possible types. This form of array is called a uniform array, and is gener
ally used to represent ordered collections of values.
ARRAY declares an array where the types of the array items follow a particular pattern. In this form,
known as a pattern array; the allowed type for an item depends on its position in the array. The
overall pattern of types allowed in the array is declared using a schema construct called a linear
type pattern, which is similar to a regular expression (see below). Pattern arrays are typically used
to represent vectors, tuples or paths.
A length qualifier on an array MAY be used to constraint the minimum and maximum number of
items in the array. For a pattern array, the given length constraint SHALL be consistent with (i.e. fall
within) the minimum and maximum number of items implied by the type pattern. In cases where
the length qualifier places a narrower constraint on the length of an array than that implied by the
type pattern, the length qualifier constraint takes precedence.
A nullable qualifier MAY be used to indicate that a TLV Null MAY be encoded in place of the ARRAY or
ARRAY OF. Note that an array that has been replaced by a Null is distinct in terms of its encoding
from an array that has no items.
A linear type pattern describes the sequence of TLV types that MAY appear in a TLV Array or List
element. In its simplest form, a linear type pattern is a list of type definitions, or references to
defined types, where each item constrains the TLV type that appears at the corresponding position
in the collection. The type pattern is always anchored at the start of the collection, with the first
type constraining the first item in the collection. Any type or pseudo-type MAY appear within a lin
ear type pattern.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 855
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
More complex type patterns can be created by using a quantifier. Quantifiers appear after a type in
a type pattern and specify the number of times the associated type MAY appear at that position in
the collection. Quantifiers borrow common regular expression notation to denote repetition, with *
meaning zero or more, + meaning one or more, and { } expressing specific counts. Using quanti
fiers, one can express complex sequences of types, including some that require arbitrary look-
ahead to match.
Items or groups of items in a pattern array MAY be given textual names. These names do not affect
the encoding of the array, but serve as user documentation, or as input to code generation tools.
Item names within a pattern array SHALL be unique.
Per the rules for encoding TLV arrays, array items SHALL NOT have tags. Thus the tag qualifier
SHALL NOT be applied to an item name with a pattern array.
ARRAY Example
B.3.2. BOOLEAN
BOOLEAN Syntax
BOOLEAN [ qualifier ]
qualifier (optional):
nullable
If the nullable qualifier is given, a TLV Null MAY be encoded in its place.
Page 856 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
BOOLEAN Example
FLOAT32 [ qualifier ]
FLOAT64 [ qualifier ]
qualifier (optional):
range
nullable
FLOAT32 declares an element that SHALL be encoded as a TLV floating point number with the ele
ment type indicating a 4-octet IEEE 754-2019 single-precision value. Correspondingly, FLOAT64
declares a TLV element that SHALL be encoded as a TLV floating point number with the element
type indicating an 8-octet IEEE 754-2019 double-precision value.
If the nullable qualifier is given, a TLV Null MAY be encoded in place of the number.
The allowed range of values can be constrained using the range qualifier. If omitted, the value is
constrained by what the relevant TLV type can represent.
FLOAT Example
qualifier (optional):
range
nullable
enum:
identifier = int-value
SIGNED INTEGER declares an element that SHALL be encoded as a TLV integer with the element type
indicating the integer is signed. Correspondingly, UNSIGNED INTEGER declares a TLV element that
SHALL be encoded as a TLV integer with the element type indicating the integer is unsigned.
If the nullable qualifier is given, a TLV Null MAY be encoded in place of the integer.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 857
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The allowed range of values MAY be constrained using the range qualifier. If omitted, the value is
constrained by what the relevant TLV type can represent.
SIGNED INTEGER and UNSIGNED INTEGER definitions MAY include a set of enumerated values (enum),
each of which associates a textual name (identifier) with a constant integer value (int-value). Each
value SHALL conform to the allowed range of values for the SIGNED INTEGER definition as given by
its sign and any range qualifier. The presence of enumerated values SHALL NOT restrict senders to
only encoding those values. Rather, enumerations merely give symbolic names to particular note
worthy values.
Integer Examples
list-qualifier (optional):
length
nullable
type-pattern:
type-or-ref quantifier // unnamed item
identifier [ qualifier ] : type-or-ref quantifier // named item
quantifier (optional):
* // zero or more
+ // one or more
{ count } // exactly count
{ min..max } // between min and max
{ min.. } // at least min
qualifier (optional):
tag
LIST and LIST OF declare an element that is encoded as a TLV List. LIST and LIST OF declare the
same fundamental type, but differ based on how the allowed types of their items are expressed.
LIST OF declares a list where all the items in the list are of the same fundamental type, or taken
from the same set of possible types. This form of list is called a uniform list. Uniform lists are gener
ally used to represent ordered collections of values where the tags differentiate the semantic mean
ing of the value.
Page 858 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
LIST declares a pattern list where the types of the items in the list follow a particular pattern. In this
form, the allowed type(s) for an item depends on its position in the array. Pattern lists are typically
used to represent path-like constructs.
The overall pattern of types allowed in a pattern list is declared using a schema construct called a
linear type pattern. The syntax and interpretation of linear type patterns for pattern lists are the
same as those for pattern arrays (see Section B.3.1.1, “Linear Type Patterns”).
The length qualifier MAY be used to constraint the minimum and maximum number of items in the
list. For a pattern list, the given length constraint SHALL be consistent with (i.e. fall within) the min
imum and maximum number of items implied by the type pattern. In cases where the length quali
fier places a narrower constraint on the length of a list than that implied by the type pattern, the
length qualifier constraint takes precedence.
A nullable qualifier MAY be used to indicate that a TLV Null MAY be encoded in place of the LIST or
LIST OF. Note that a list that has been replaced by a Null is distinct (in terms of its encoding) from a
list that has no items.
As with the ARRAY type, items or groups of items in a pattern list MAY be given textual names to dis
tinguish their purposes. Item names within a pattern list SHALL be unique.
Items within a pattern list can have a tag qualifier that specifies a particular tag value that SHALL
be encoded with the item. The specific tag can be protocol-specific or context-specific, or the anony
mous tag. The assigned tag values are not required to be unique among the items in a pattern list.
When no explicit tag qualifier is given (which is always the case for uniform lists) the items in a list
automatically assume the default tag of their underlying types, if such a tag is provided. This can
occur in two situations: 1) when the underlying type is a reference to a type definition that declares
a default tag, and 2) when the underlying type is a CHOICE OF whose alternates declare default tags.
See default tag for further information.
If no tag qualifier is given, and no default tag is available, an encoder is allowed to encode list items
with any tag of their choosing.
qualifier (optional):
length
nullable
OCTET STRING declares an element that is encoded as a TLV Octet String, and in particular with the
element type indicating it’s an Octet String.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 859
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The minimum and maximum number of bytes can be constrained using the length qualifier.
B.3.7. NULL
NULL Syntax
NULL
NULL declares an element that SHALL be encoded as a TLV Null. There are no qualifiers that can be
associated with a NULL type.
NULL Example
B.3.8. STRING
STRING Syntax
STRING [ qualifier ]
qualifier (optional):
length
nullable
STRING declares an element that is encoded as a TLV UTF-8 String, and in particular with the ele
ment type indicating it’s a UTF-8 String.
If the nullable qualifier is given, a TLV Null MAY be encoded in place of the string.
The minimum and maximum length of the string can be constrained using the length qualifier.
STRING Example
B.3.9. STRUCTURE
STRUCTURE Syntax
structure-qualifier (optional):
extensible
Page 860 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
order
nullable
structure-fields:
structure-field
structure-fields, structure-field
structure-field:
identifier [ id-qualifier ] : type-or-ref // field definition
includes field-group-name // field group include
id-qualifier:
tag
optional
STRUCTURE declares an element that is encoded as a TLV Structure. The STRUCTURE fields SHALL be
separated by commas.
A STRUCTURE definition declares the list of fields that MAY appear within the corresponding TLV
Structure. Each field definition gives the type of the field, its tag, and an associated textual name.
The field type MAY be either a fundamental type, a CHOICE OF pseudo-type, an ANY pseudo-type, or a
reference to one of these types defined outside the STRUCTURE definition.
A STRUCTURE definition MAY also contain one or more includes statements. Each such statement
identifies a FIELD GROUP definition whose fields are to be included within the TLV Structure as if
they had been declared within the STRUCTURE definition itself (see Includes FIELD GROUP below).
An extensible qualifier MAY be used to declare that a structure can be extended at encoding time by
the inclusion of fields not listed in the STRUCTURE definition.
The order qualifiers (any-order, schema-order and tag-order) MAY be used to specify a particular
order for the encoding of fields within a TLV Structure.
A nullable qualifier MAY be used to indicate that a TLV Null MAY be encoded in place of the STRUC
TURE.
B.3.9.1. Fields
Fields within a STRUCTURE are assigned textual names to distinguish them from one another. Each
such name SHALL be distinct from all other field names defined within the STRUCTURE or included
via a includes statement. Fields names do not affect the encoding of the resultant TLV, but MAY
serve as either user documentation or input to code generation tools.
Per the rules of TLV, all fields within a TLV Structure SHALL be encoded with a distinct TLV tag.
Field tags are declared by placing a tag qualifier on the field name. Both protocol-specific and con
text-specific tags are allowed on the fields in a STRUCTURE definition.
For a given field if the tag qualifier is missing then the underlying type SHALL provide a default tag.
This can occur in two situations:
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 861
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
1. the underlying type is a reference to a type definition that provides a default tag
2. the underlying type is a CHOICE OF pseudo-type whose alternates provide default tags.
The tags associated with includes fields are inherited from the target FIELD GROUP definition.
All tags associated with the fields of a TLV Structure SHALL be unique. This is true not only for tags
declared directly within the STRUCTURE definition, but also for any tags associated with fields that are
incorporated via an includes statement.
The anonymous tag SHALL NOT be used as the tag for a field within a STRUCTURE definition.
The optional qualifier MAY be used to declare a field which can be omitted from the structure
encoding under some circumstances.
A field within a STRUCTURE definition MAY be defined to be a CHOICE OF (either directly within the
STRUCTURE definition or via a type reference). Over the wire, such a field is encoded as one of the
alternate types given in the CHOICE OF definition. For example, the user-id field in the following
STRUCTURE MAY be encoded as either a TLV UTF-8 String or an Unsigned Integer.
If a tag qualifier is given for a CHOICE OF field (e.g. [1] as shown above), that tag SHALL be used in
the encoding of the field for all possible alternates. On the other hand, if a tag qualifier is not given,
then the default tag associated with the selected CHOICE OF alternate SHALL be used in the encoding.
For example, in the following structure, a context-tag of 1 will be encoded if the user-id field is an
Unsigned Integer, or 2 if the field is a String.
Page 862 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Note that, in all cases, the tag or tags associated with a CHOICE OF field SHALL be unique within the
context of the containing STRUCTURE.
A includes statement MAY be used within a STRUCTURE definition to incorporate the fields of a FIELD
GROUP defined outside the STRUCTURE. The fields of the FIELD GROUP are included in the STRUCTURE as if
they had been listed within the STRUCTURE definition itself.
A particular FIELD GROUP SHALL NOT be included more than once within a given STRUCTURE.
The names assigned to fields within an included FIELD GROUP SHALL be distinct with respect to all
other fields contained within the enclosing STRUCTURE, whether defined directly within the STRUCTURE
itself, or included from another FIELD GROUP.
Likewise, tags assigned to fields within an included FIELD GROUP SHALL be distinct with respect to
all other fields within the enclosing STRUCTURE.
B.4. Pseudo-Types
Pseudo-types are type-like constructs that provide flexibility in schema definitions. Some pseudo-
types, like CHOICE OF and ANY, allow for variance in the fundamental TLV types that may appear in
an encoding. Others make it easier to reuse schema constructs in multiple contexts.
B.4.1. ANY
ANY Syntax
ANY
ANY declares an element that can be encoded as any fundamental TLV type. Note that ANY is not a
fundamental TLV type itself, but rather a pseudo-type that identifies a range of possible encodings.
An ANY type serves a shorthand for (and is exactly equivalent to) a CHOICE OF all possible fundamen
tal types.
ANY Example
B.4.2. CHOICE OF
CHOICE OF Syntax
qualifier (optional):
nullable
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 863
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
alternates:
alternate
alternates, alternate
alternate:
type-or-ref // unnamed alternate
identifier [ id-qualifier ] : type-or-ref // named alternate
id-qualifier:
tag
CHOICE OF declares an element that MAY be any of a set of TLV types. CHOICE OF is considered a
pseudo-type, rather than a fundamental type, in that the CHOICE OF itself doesn’t have a representa
tion in the final TLV encoding.
The allowed TLV types for a CHOICE OF, known as alternates, are given in the body of the definition.
An alternate MAY be any of the fundamental TLV types, an ANY pseudo-type, or another CHOICE OF
definition (more on this below). Additionally, an alternate MAY be a type reference (in the form of a
scoped type name) referring to a type defined outside of the CHOICE OF definition.
A nullable qualifier MAY be used to indicate that a TLV Null can be encoded in place of the CHOICE
OF. This is exactly the same as if NULL had been listed as one of the alternates.
Alternates MAY be assigned textual names to distinguish them from one another. Each such name
SHALL be unique within the particular CHOICE OF definition. Alternate names do not affect the
encoding of the resultant TLV. Rather, alternate names serve as user documentation, or as input to
code generation tools.
Named CHOICE OF alternates MAY include at tag qualifier assigning a particular tag value to the
alternate. When qualified in this way, the given tag value serves as a default tag for the alternate
whenever the CHOICE OF appears in a context that doesn’t otherwise specify a tag. The tags assigned
within a CHOICE OF do not need to be unique, although see the discussion of Ambiguous Alternates
below.
Both protocol-specific and context-specific tags are allowed on the alternates of a CHOICE OF defini
tion.
It is legal for an alternate within a CHOICE OF to be another CHOICE OF definition, or a type reference
to such. In this case, the effect is exactly as if the alternates of the inner CHOICE OF definition had
been declared directly with the outer definition. This merging of CHOICE OF alternates occurs to any
level of nesting, and MAY be used as a means of declaring multiple CHOICE OF that are supersets of
other CHOICE OF.
When alternates are merged, their names are preserved. In cases where the same name appears in
nested CHOICE OF definitions, the name of the outer alternate is prepended to that of the inner alter
Page 864 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
nate, separated by a dot, to form a unique name for the merged alternate. In these cases, the outer
alternate SHALL have a name in the schema, to ensure uniqueness.
An example of invalid CHOICE OF syntax, which results in a name conflict when alternates are
merged:
CHOICE OF {
CHOICE OF {
foo: STRING,
bar: UNSIGNED INTEGER
},
CHOICE OF {
foo: BOOLEAN,
bar: FLOAT64
}
}
The example below shows how a valid schema should look to avoid conflict:
CHOICE OF {
alt1: CHOICE OF {
foo: STRING,
bar: UNSIGNED INTEGER
},
alt2: CHOICE OF {
foo: BOOLEAN,
bar: FLOAT64
}
}
A CHOICE OF MAY contain multiple alternates having the same fundamental TLV type (e.g. two alter
nates that are both SIGNED INTEGER). If these alternates are also encoded using the same tag, their
encoded forms are effectively indistinguishable from one another. Such alternates are referred to
as ambiguous alternates.
Ambiguous alternates MAY occur due to the merging of nested CHOICE OF definitions (see above).
They MAY also arise in cases where the tags associated with the alternates are overridden by a tag
qualifier in an outer context; e.g. when a STRUCTURE incorporates a CHOICE OF field that has a specific
tag qualifier assigned to the field.
Ambiguous alternates are legal in TLV Schemas. However, care SHALL be taken when introducing
ambiguous alternates to ensure that a decoder can correctly interpret the resulting encoding. This
can be achieved, for example, by signaling the appropriate interpretation via a data value (e.g. an
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 865
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
B.5. Qualifiers
Qualifiers are annotations that provide additional information regarding the use or interpretation
of a schema construct. Often qualifiers are used to place restrictions on the form or range of values
that the construct can assume.
STRUCTURE [ any-order ]
STRUCTURE [ schema-order ]
STRUCTURE [ tag-order ]
The any-order, schema-order and tag-order qualifiers MAY be used to specify a particular order for
the encoding of fields within a STRUCTURE.
The any-order qualifier specifies that the encoder of a TLV structure is free to encode the fields of
the structure in any desired order.
The schema-order qualifier specifies that the fields of a structure SHALL be encoded in the order
given within the associated STRUCTURE definition. If the STRUCTURE definition contains one or more
includes statements, the fields of the referenced FIELD GROUPs SHALL be encoded in the order given
in the respective FIELD GROUP definition, and at the position of the includes statement relative to
other fields within the STRUCTURE.
The tag-order qualifier specifies that the fields of a structure SHALL be encoded in the order speci
fied by their tags, as defined in Section A.2.4, “Canonical Ordering of Tags”.
In the absence of an order qualifier, fields within TLV structure MAY generally be encoded in any
order. However, the author of a STRUCTURE definition MAY choose to impose custom ordering con
straints on some or all of the fields if so desired. Such constraints SHALL be clearly described in the
prose documentation for the schema.
B.5.2. extensible
extensible Qualifier Syntax
STRUCTURE [ extensible ]
The extensible qualifier is only allowed on STRUCTURE types, and declares that the structure MAY be
extended by the inclusion of fields not listed in its definition. When a structure is extended in this
way, any new fields that are included SHALL use tags that are distinct from any of those associated
with defined or included fields.
Page 866 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Absent the extensible qualifier, a structure encoding SHALL NOT include fields beyond those given
in the STRUCTURE definition.
B.5.3. id
id Qualifier Syntax
The id qualifier is used to specify an identifying number associated with a VENDOR or PROTOCOL defini
tion.
When applied to a VENDOR definition, the id value is a 16-bit unsigned integer specifying the Protocol
Vendor ID, which uniquely identify an organization or company. VENDOR ids are used to scope other
identifiers (e.g. PROTOCOL ids) such that organizations can independently mint these identifiers with
out fear of collision.
When applied to a PROTOCOL definition, the id value MAY take three forms:
• 32-bit unsigned integer, which is composed of a Protocol Vendor ID in the high 16-bits and a
protocol id in the low 16-bits
• two 16-bit unsigned integers (separated by a colon) specifying the Protocol Vendor ID and proto
col id
• vendor-name and 16-bit protocol id (separated by a colon). The vendor-name definition SHALL exist
elsewhere in the schema
id Qualifier Examples
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 867
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
B.5.4. length
length Qualifier Syntax
The length qualifier MAY be used to constrain the number of elements in a collection type, such as
an ARRAY or LIST, or the number of bytes in a STRING or OCTET STRING type.
B.5.5. nullable
nullable Qualifier Syntax
type [ nullable ]
The nullable qualifier is used with ARRAY, LIST, STRUCTURE, STRING, OCTET STRING, BOOLEAN, SIGNED INTE
GER, UNSIGNED INTEGER, FLOAT32, FLOAT64 types. The nullable qualifier declares that a TLV Null MAY be
substituted for a value of the specified type at a particular point in an encoding. For example, in the
following sensor-sample structure, a null value MAY be encoded for the value field (e.g. in the case
the sensor was off-line at the sample time):
Applying a nullable qualifier to a type is exactly the same as defining a CHOICE OF type with alter
nates for the primary and NULL. For example, the sensor sample structure could also be defined as
follows:
Page 868 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
B.5.6. optional
optional Qualifier Syntax
...
field-name [ optional ] : type-or-ref,
...
The optional qualifier declares that a field within a STRUCTURE or FIELD GROUP is optional, and MAY
be omitted by an encoder. The optional qualifier MAY only appear on the name portion of a field
definition within either a STRUCTURE or FIELD GROUP.
Note that an optional field is distinct, both semantically and in terms of encoding, from a field
whose type has been declared nullable. In the former case the field MAY be omitted from the encod
ing altogether. In the latter case the field SHALL appear within the encoding, however its value
MAY be encoded as a TLV Null. It is legal to declare a field that is both optional and nullable.
The conditions under which an optional field can be omitted depend on the semantics of the struc
ture. In some cases, fields MAY be omitted entirely at the discretion of the sender. In other cases,
omission of a field MAY be contingent on the value present in another field. In all cases, prose docu
mentation associated with the field definition SHALL make clear the rules for when the field may
be omitted.
Optional fields are allowed within FIELD GROUP and retain their optionality when included within
STRUCTURE.
B.5.7. range
range Qualifier Syntax
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 869
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The range qualifier MAY be used to constrain the range of values for a numeric type such as SIGNED
INTEGER, UNSIGNED INTEGER, FLOAT32, or FLOAT64. Two forms are supported: explicit constraints and
width constraints. Only one form MAY be applied to a given type.
An explicit constraint gives specific minimum and maximum (inclusive) values for the type. These
MAY be any value that is legal for the underlying type.
A width constraint constrains the value to fit within a specific number of bytes. Any of the width
constraints (8-bits, 16-bits, 32-bits or 64-bits) MAY be applied to SIGNED INTEGER and UNSIGNED INTEGER
types, where 8-bits, 16-bits, 32-bits and 64-bits constraints correspond to 1-octet, 2-octet, 4-octet and
8-octet element type respectively; only 32-bits constraint MAY be applied to FLOAT32 type and only
64-bits constraint MAY be applied to FLOAT64 type.
Note that a width constraint range qualifier does not obligate an encoder to always encode the spec
ified number of bits. Per the TLV encoding rules, senders are always free to encode integer and
floating point values in any encoding size, bigger or smaller, that will accommodate the value.
B.5.8. tag
tag Qualifier Syntax
The tag qualifier is allowed on type names, field names within a STRUCTURE (STRUCTURE Fields) or
FIELD GROUP, item names within a LIST (LIST Item Tags), alternate names within a CHOICE OF (CHOICE
OF Fields).
The tag qualifier specifies a numeric tag value to be used when encoding a particular value. For
brevity, the tag keyword SHALL be omitted when specifying a tag qualifier. As a special case, the
keyword anonymous MAY be used to signal a value that SHALL be encoded without a tag.
Matter TLV supports two forms of tags: Protocol-Specific Tags and Context-Specific Tags. A protocol-
specific tag is a colon-separated tuple containing a protocol-id and a tag-num. Protocol ids MAY also
be specified indirectly, by giving the name of a PROTOCOL definition (protocol-name) located else
where in the schema. An asterisk (*) MAY be used as a shorthand to refer to the id of the PROTOCOL
definition in which the tag qualifier appears. This protocol is referred to as the current protocol.
Page 870 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
A tag qualifier that appears on a field within a STRUCTURE or FIELD GROUP, or on an item within a LIST,
specifies the exact tag to be used when encoding the associated field/item. Such a tag is called an
explicit tag, and MAY be either a context-specific, protocol-specific or anonymous (for LIST) tag.
If a field or item lacks a tag qualifier, then the encoding will use a default tag associated with the
underlying field type, if such a tag has been specified.
A tag qualifier that appears on a type definition, or on an alternate within a CHOICE OF, serves as a
default tag. A default tag is used to encode a value when an explicit tag has not been given in the
schema.
For example, a field within a STRUCTURE that refers to a type with a default tag will use that tag if no
tag qualifier has been specified on the field itself. Similarly, tag qualifiers that appear on the alter
nates of a CHOICE OF serve as default tags to be used when no other tag has been specified.
Both context-specific and protocol-specific tags MAY be used as default tags. 'anonymous` tag
SHALL NOT be used as default tag.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 871
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
TLV Schemas MAY include inline annotations that support the automatic generation of reference
documentation and the production of documented code. TLV Schemas follow the Javadoc style of
annotation wherein documentation is wrapped in the special multi-line comment markers /** and
*/.
In certain cases, documentation MAY also be placed after a construct, using /**< and */.
Postfix annotations are allowed on STRUCTURE and FIELD GROUP members, ARRAY and LIST items,
CHOICE OF alternates, SIGNED INTEGER and UNSIGNED INTEGER enumerated values.
Page 872 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
TLV elements are tag/value pairs. As such, their general textual representation is as follows:
tag = value
TLV entries using context-specific tags MAY use the basic representation alone:
2 = "hello"
If the tag has a name from an associated schema, it MAY be represented using that name. The basic
representation MAY also be appended in parentheses ("(", ")"):
The basic representation of a protocol-specific tag SHALL be fully-qualified with "::" separating the
vendor id and the protocol number and ":" separating the protocol number and tag number. The
vendor id, protocol number and tag number are each represented using a single scalar number
represented in hexadecimal notation.
0x0000::0x0000:0x01 = 10
If the tag has a name from an associated schema, it MAY be represented using that name. The basic
representation MAY also be appended in parentheses ("(", ")"):
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 873
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
SmartSensorsCompany::SensingProtocol:Extension (0x00ef::0x00aa:0x01) = 10
TLV entries using anonymous tags SHALL display the value alone:
"hello"
Signed Integer:
duration = 20
Unsigned Integer:
duration = 20U
If the value is a defined constant, or enumerated value, then the string literal MAY be provided as
well:
UTF-8 string:
name = "Jonah"
data = 2f 2a fd 11 33 e2 ...
Floats:
temp = 20.234
Booleans:
isOn = false
Page 874 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
isOn = true
Null:
temp = null
Braces ("{", "}") SHALL be used to convey the start and end of structure scope, with the members
separated by commas:
user-record = {
name = "Jonah",
pin = 1122
}
Square brackets ("[", "]") SHALL be used to convey array scope, with elements in the array sepa
rated by commas (","). Since elements in the array are required to be anonymous, each element
SHALL display the value alone:
Double square brackets ("[[", "]]") SHALL be used to convey list scope, with elements in the list sepa
rated by commas (","). Since a diversity of tag types can be used in a list (including duplicates), the
tags SHALL always be present and explicitly stated:
C.3. Examples
C.3.1. TLV Schema
This is a sample TLV schema that will be used to define example TLV payloads.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 875
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
// List of lists. If present, one or more of the feature lists will be present.
feature-map [4,optional] : LIST {temp-features[1]: ARRAY OF temp-features-enum,
accel-features[2]: ARRAY OF accel-features-enum},
temperature-sample-example =
{
timestamp (1) = 2023423U,
temperature (2) = 72.0
}
Page 876 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
accelerometer-sample-example =
{
x (1) = 10,
y (2) = 20,
z (3) = 30
}
sensor-state-example =
{
temperature-samples (1) =
[
{
timestamp (1) = 2023423U,
temperature (2) = 72.0
},
{
timestamp (1) = 2023U,
temperature (2) = 69.2
},
],
accel-samples (2) =
[
{
x (1) = 10,
y (2) = 20,
z (3) = 30,
},
{
x (1) = 1,
y (2) = 2,
z (3) = 3,
},
],
feature-map (4) =
[[
temp-features (1) =
[
HAS_TEMP_COMPENSATION (1),
SUPPORTS_THRESHOLD_TRIGGERS (2)
],
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 877
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
accel-features (2) =
[
SUPPORTS_THRESHOLD_TRIGGERS (2)
]
]],
supported-extensions (7) =
[[
SMARTSENSORS::SensingProtocol:Extension (0x00ef::0x00aa:0x01) =
"SUPPORTS_SMART_AVERAGING"
]]
}
Page 878 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
This section details the standard Status Report message format encoding as Matter Message Format
payloads.
The Status Report message SHALL have the following message header values (some of which may
be omitted within protocol messages, as per header flag rules), no matter which protocol actually
generated the status report:
• A mandatory GENERAL CODE field, providing a general description of the status being reported.
• An optional protocol-specific data section that MAY include any additional information that a
protocol requires
◦ Individual protocols define the contents of this data section and how it is handled
Structure, little-endian
2 octets GeneralCode
...
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 879
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
General status codes conveyed in the GeneralCode field are uniform codes that convey both success
and failures.
If none of the specific codes above fits for application usage, a protocol SHALL use FAILURE and
provide more information encoded in the ProtocolId and ProtocolCode subfields.
The ProtocolId is encoded as a 32 bit value of Protocol Vendor ID (upper 16 bits) and Protocol ID
under that Protocol Vendor ID (lower 16 bits), similarly to how message Protocol ID and Protocol
Page 880 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The following rules apply to the encoding of the ProtocolCode protocol-specific field:
• ProtocolCode value 0x0000 SHALL be reserved for use as success placeholder when either a Gen
eralCode of SUCCESS (0) or CONTINUE (10) are present.
• When the GeneralCode is FAILURE, the ProtocolCode value of 0xFFFF SHOULD NOT be used, since
the conveyance of specific error codes assists in troubleshooting.
• ProtocolCode values 0x0001 through 0xFFFE SHALL be used to convey protocol-specific status
indications.
Since protocol-specific status reports are meant to convey more information than generic codes, it
is RECOMMENDED to always use a specific ProtocolCode value, rather than 0xFFFF, unless there are
no additional details to convey.
The ProtocolData portion of the StatusReport message is composed of all data beyond the Protocol
Code field. If a StatusReport message of size N octets is received, the first 8 octets of payload encode
the GeneralCode, ProtocolId and ProtocolCode, while the remaining N - 8 bytes represent the proto
col-specific ProtocolData.
Encoding of the ProtocolData portion of the payload depends on the ProtocolId and potentially Pro
tocolCode. To decode this data, the ProtocolId has to be examined and decoding SHALL be done
according to that protocol specification. For example:
• A vendor-specific protocol would encode additional custom error metadata in the ProtocolData.
• The Bulk transfer (BDX) protocol does not require additional error information and will always
have ProtocolData empty.
• No ProtocolData present:
▪ Encodes as: 01 00 02 00 00 00 52 00
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 881
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
▪ Encodes as: 00 00 BB AA F1 FF 00 00
▪ Encodes as: 01 00 BB AA F1 FF C1 26 55 66 EE FF
Page 882 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
1.3.6.1.4.1.37244.2.1 iso(1) org(3) dod(6) internet(1) pri Matter Device Attestation Certificate
vate(4) enterprise(1) zigbee(37244) DN attribute for the Vendor ID (VID)
matter-att-cert(2) vid(1)
1.3.6.1.4.1.37244.2.2 iso(1) org(3) dod(6) internet(1) pri Matter Device Attestation Certificate
vate(4) enterprise(1) zigbee(37244) DN attribute for the Product ID (PID)
matter-att-cert(2) pid(2)
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 883
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Page 884 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The CSA CD signing certificate and associated private key which are provided in the vectors are
only for exemplary purposes and are not official CD signing material.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 885
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
MHcCAQEEIK7zSEEW6UgexXvgRy30G/SZBk5QJK2GnspeiJgC1IB1oAoGCCqGSM49
AwEHoUQDQgAEPDmJIkUrVcrzicJb0bykZWlSzLkOiGkkmthHRlMBTL+V1oeWXgNr
UhxRA35rjO3vyh60QEZpT6CIgu7WUZ3sug==
-----END EC PRIVATE KEY-----
• It uses the authorized_paa_list to indicate the Subject Key Identifier (SKI) extension value of the
expected PAA in the certificate chain of the Device Attestation Certificate for a product carrying
this Certification Declaration
Page 886 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
-> security_information = 0
-> version_number = 0x2694
-> certification_type = 0
-> dac_origin_vendor_id = 0xFFF1
-> dac_origin_product_id = 0x8000
-> authorized_paa_list = [ 78:5c:e7:05:b8:6b:8f:4e:6f:c7:93:aa:60:cb:43:ea:69:68:82:d5
]
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 887
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
000000a0 ac fa a9 96 3e 1c fa 14 0a dd f5 04 f3 71 60 30 |....>........q`0|
000000b0 0b 06 09 60 86 48 01 65 03 04 02 01 30 0a 06 08 |...`.H.e....0...|
000000c0 2a 86 48 ce 3d 04 03 02 04 47 30 45 02 20 4a e9 |*.H.=....G0E. J.|
000000d0 c9 b7 f8 aa 68 61 0a dd 84 e4 12 91 fc 8f 4d c5 |....ha........M.|
000000e0 33 fc a2 9d c1 ff f2 25 3c 09 cd 32 f7 75 02 21 |3......%<..2.u.!|
000000f0 00 9c 0a 5f de f9 e0 08 d1 cc 8b b7 c3 95 9c db |..._............|
00000100 65 c4 61 25 cb 72 95 08 1e 47 b5 c1 31 e4 d1 f4 |e.a%.r...G..1...|
00000110 8c |.|
00000111
The Device Attestation key pair shown is an example, not to be reused in implementations.
This test vector does NOT contain the optional Firmware Information payload. It is
NOTE
omitted.
Page 888 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 889
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
-> SHA-256 of attestation_tbs used for signature (NOT sent over the wire):
1d:f1:05:b1:30:84:c3:cc:13:19:9e:df:07:b8:76:9e:be:2e:26:0d:84:8f:27:a6:ca:b6:6d:d9:a5
:8c:ea:b1
Page 890 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
The CSR shown is valid for the provided Node Operational public key.
The Device Attestation key pair shown is an example, not to be reused in implementations.
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 891
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Certificate Request:
Data:
Version: 1 (0x0)
Subject: O = CSA
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (256 bit)
pub:
04:5c:a2:79:e3:66:82:c2:d4:6c:e7:d4:cf:89:67:
84:67:08:b5:b9:f8:5b:9c:da:fd:8c:a8:85:26:12:
cb:0f:0c:7a:71:31:4e:c8:dc:9c:96:34:dd:ee:fe:
e9:f6:3f:0e:8b:d7:da:cf:c3:b6:a4:53:2a:ad:d8:
9a:96:51:cd:6e
ASN1 OID: prime256v1
NIST CURVE: P-256
Attributes:
Requested Extensions:
Signature Algorithm: ecdsa-with-SHA256
30:45:02:20:0e:67:5e:e1:b3:bb:fe:15:2a:17:4a:f5:35:e2:
2d:55:ce:10:c1:50:ca:c0:1b:31:18:de:05:e8:fd:9f:10:48:
02:21:00:d8:8c:57:cc:6e:74:f0:e5:48:8a:26:16:7a:07:fd:
6d:be:f1:aa:ad:72:1c:58:0b:6e:ae:21:be:5e:6d:0c:72
-> CSR bytes DER:
00000000 30 81 da 30 81 81 02 01 00 30 0e 31 0c 30 0a 06 |0..0.....0.1.0..|
00000010 03 55 04 0a 0c 03 43 53 41 30 59 30 13 06 07 2a |.U....CSA0Y0...*|
00000020 86 48 ce 3d 02 01 06 08 2a 86 48 ce 3d 03 01 07 |.H.=....*.H.=...|
00000030 03 42 00 04 5c a2 79 e3 66 82 c2 d4 6c e7 d4 cf |.B..\.y.f...l...|
00000040 89 67 84 67 08 b5 b9 f8 5b 9c da fd 8c a8 85 26 |.g.g....[......&|
00000050 12 cb 0f 0c 7a 71 31 4e c8 dc 9c 96 34 dd ee fe |....zq1N....4...|
00000060 e9 f6 3f 0e 8b d7 da cf c3 b6 a4 53 2a ad d8 9a |..?........S*...|
00000070 96 51 cd 6e a0 11 30 0f 06 09 2a 86 48 86 f7 0d |.Q.n..0...*.H...|
00000080 01 09 0e 31 02 30 00 30 0a 06 08 2a 86 48 ce 3d |...1.0.0...*.H.=|
00000090 04 03 02 03 48 00 30 45 02 20 0e 67 5e e1 b3 bb |....H.0E. .g^...|
000000a0 fe 15 2a 17 4a f5 35 e2 2d 55 ce 10 c1 50 ca c0 |..*.J.5.-U...P..|
000000b0 1b 31 18 de 05 e8 fd 9f 10 48 02 21 00 d8 8c 57 |.1.......H.!...W|
000000c0 cc 6e 74 f0 e5 48 8a 26 16 7a 07 fd 6d be f1 aa |.nt..H.&.z..m...|
000000d0 ad 72 1c 58 0b 6e ae 21 be 5e 6d 0c 72 |.r.X.n.!.^m.r|
000000dd
Page 892 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
-> SHA-256 of nocsr_tbs used for signature (NOT sent over the wire):
e2:62:65:69:65:2b:49:e1:5b:6e:d5:b2:42:92:bf:28:e8:e0:e9:5d:e4:25:14:e1:03:a4:30:30:18
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 893
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
:16:cf:3f
Page 894 Copyright © Connectivity Standards Alliance, Inc. All rights reserved.
Matter Specification R1.0 Connectivity Standards Alliance Document 22-27349 Sep. 28, 2022
Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 895