top of page

Understanding the Matter Protocol: The Foundation of Smart Home Initiatives

Aug 9, 2024

5 min read

Yong Yin

1

7

0

The Matter protocol is created for smart home and even industrial IoT applications. It was published later than Zigbee protocol but with the trend to replace it. Furthermore, with the continuous advancement of internet and computer technologies, the development of smart home automation systems is attracting increased interest. Simultaneously, the design and integration of smart devices within these systems have grown more intricate. Specifically, security stands out as a significant concern and obstacle for both consumers and manufacturers. Therefore, a comprehensive grasp of Matter and its functionalities is progressively vital in the construction of secure home automation networks and applications.


The Protocol Stack


In the OSI model, the Matter protocol operates at the application layer. It offers multiple connectivity options for the lower networking and data link layers, such as TCP or UDP for message transport over IPv6. For communication interfaces, one can choose from Ethernet, Wi-Fi, or Thread. The protocol stack is more open compared to Zigbee, which creates an isolated and proprietary network stack that is incompatible with devices not supporting Zigbee standards. Matter, on the other hand, utilizes IPv6's SLAAC (Stateless Address Autoconfiguration) mechanism, which facilitates automatic address assignment without the need for a DHCP server or manual configuration. This is particularly beneficial for the large-scale deployment of home or industrial IoT networks, as it greatly simplifies device integration.


Image. the OSI Model of the Matter Protocol


The Matter stack enhances flexibility through mesh technology, allowing the use of Thread to construct a mesh network in wireless radio communications. This approach circumvents the single point of failure found in traditional star network topologies. Additionally, the mesh network is designed to self-form and self-heal in the event of routing failures.


The Layered Architecture


The diagram illustrates a detailed software structure, outlining how the Matter protocol is defined, serving as a crucial reference for implementing Matter applications.


Image. The Layered Architecture of the Matter Protocol


Layered architecture is a highly efficient method for presenting defined functionalities and their interactions. It allows for the quick grasping of essential information from the diagram.

The application layer, as specified, caters to the business logic unique to various organizations. The data model and interaction model constitute the fundamental framework that outlines the requirements and the manner in which all nodes execute secure communication within the network. Subsequent layers elucidate the framing and routing of messages in the network. Further details are available in the Matter specification.


Data Model


The data model is a structured framework that ensures seamless interoperability between a wide array of smart devices. Let's dive into the data elements that compose this intricate model.


At the top of the hierarchy lies the Device. It's the fundamental unit in the Matter protocol, representing any smart device within the network. Each Device is composed of Nodes, which are unique, identifiable, and addressable entities within the network. Nodes are essentially the building blocks of the Matter protocol, facilitating communication and functionality.


Endpoints are nested within Nodes, each representing a specific feature set or functionality. For example, one Endpoint might control lighting, while another could be responsible for motion detection. This modular approach allows for flexibility and scalability within the network.


Clusters group together specific functionalities within an Endpoint. They are a step further in the hierarchy and can include capabilities such as on/off control for a smart plug or level control for a dimmable light. A Node may have multiple Endpoints, each with its own set of Clusters, enabling independent control of various functions.


The granularity continues with Attributes, which are the states held by the Node, such as the current level of a light's brightness. These Attributes can be defined as different data types, including integers, strings, or arrays, providing a rich and versatile way to represent device states.


Commands are actions that can be performed within Clusters. They are akin to remote procedure calls and can generate responses and results. Commands are dynamic and verb-like, such as "lock door" in a Door Lock cluster, allowing users to interact with their devices in an intuitive manner.


Lastly, Events record past state transitions within Clusters. While Attributes represent current states, Events act as a journal of the past, documenting changes with a counter, timestamp, and priority. This feature is crucial for capturing state transitions and modeling data that isn't easily represented by Attributes alone.


Interaction Model


The specific feature in the interaction model of the Matter protocol is the ability to facilitate communication and interaction between smart home devices regardless of their manufacturer or communication protocol. This feature allows devices from different brands to work together seamlessly within a smart home ecosystem, promoting interoperability and enhancing the overall user experience.


Image. the Interaction Model of the Matter Protocol


The interaction model of Matter is a sophisticated framework that allows devices or nodes, to communicate effectively. It's structured around Actions, which are IM-level messages exchanged between nodes. These actions can include reading and subscribing to attributes and events, writing to attributes, and invoking commands. This model ensures that every node can establish an encrypted communication sequence with another, forming an interaction relationship that may consist of one or more Transactions.


Security


The Matter protocol is revolutionizing the smart home industry with its robust security measures and processes.


Firstly, Matter eliminates the risk of anonymous joining by requiring a "proof of ownership" through a device-specific passcode. This means that only authenticated devices can join your network, keeping it safe from unauthorized access. Moreover, every device must undergo Device Attestation, ensuring that it has a unique identity authenticated by the manufacturer and verified through the Connectivity Standards Alliance as a certified device.


Operational Credentials are another layer of security in the Matter protocol. When a device is commissioned onto a Matter network, it receives unique operational credentials after its manufacturer credentials are verified. This process is crucial for maintaining the integrity of the network and preventing any fraudulent devices from joining.


Network Credentials are also handled with utmost care. For instance, the Wi-Fi network key or Thread Master key are not shared until the device’s certificate is verified and authenticated properly. This step is vital for protecting the network from potential breaches.


Matter's commitment to security is evident in its open standard approach. The open-source software is available for third-party vetting, allowing experts to examine the standard and audit the source code. This transparency builds trust and ensures that the security claims are not just promises but are backed by rigorous testing.


The Connectivity Standards Alliance promotes several security tenants, such as easy, secure, and flexible device commissioning, validation of device authenticity, and secured communications protecting confidentiality. These tenants are designed to provide a secure environment for all Matter-enabled devices.


Therefore, the Matter protocol is setting a new benchmark for security in the smart home sector. With its comprehensive security measures, Matter is ensuring that smart homes are not only intelligent and interconnected but also secure and private. As we move towards a more connected world, the importance of protocols like Matter cannot be overstated. They are the foundation of trust and reliability in the ever-evolving landscape of home automation.


Conclusion


The Matter protocol is hailed as a transformative milestone for the smart home ecosystem, offering unparalleled interoperability and a seamless user experience across a diverse range of devices from various manufacturers. Looking ahead, the future of IoT is poised for exponential growth, with advancements in 5G, AI, edge computing, and blockchain technology driving more powerful, secure, and interconnected systems. This synergy between Matter and emerging technologies suggests a vibrant and innovative horizon for IoT, where smart homes and cities become more intuitive and integrated into our daily lives.