Thread
Mesh networking based on IPv6 for IoT devices.
The Missing Link: Why Another Protocol was Needed
The landscape of the Internet of Things (IoT) has historically been a complex and fragmented space. For a smart home to function, a multitude of low-power devices such as sensors, light bulbs, and door locks need to communicate reliably. Technologies like Zigbee and Z-Wave emerged to solve this problem by creating low-power mesh networks. However, they came with a significant drawback: they did not speak the native language of the internet. These protocols required specialized hubs or gateways to act as translators, converting their proprietary communication into the Internet Protocol (IP) that the rest of our devices, like smartphones and computers, understand.
This reliance on gateways created several problems. They represented a single point of failure; if the hub went down, a large part of the smart home would cease to function. They added latency, as every command had to be translated. Most importantly, they created walled gardens, where devices from different ecosystems could not easily interact. On the other hand, Wi-Fi, which speaks IP natively, was too power-hungry for small, battery-operated devices. Bluetooth Low Energy was initially focused on simple point-to-point connections rather than complex home-wide networks.
A clear need arose for a new kind of networking protocol. The ideal technology would combine the best of both worlds: the robust, self-healing, low-power mesh networking capabilities of protocols like Zigbee, with the universal, seamless, and gateway-free connectivity of the Internet Protocol. This was the precise challenge that Thread was created to address. Initiated by Nest (now part of Google), and developed by the Thread Group, which includes major industry players like Apple, Samsung, and Qualcomm, was designed to be the underlying networking fabric for a new generation of IoT devices. It is not an application standard telling devices what to say, but a networking protocol that provides a reliable, secure, and direct path for them to say it using the language of the internet.
A Familiar Foundation: Built on IEEE 802.15.4
One of the core tenets of Thread's design was not to reinvent the wheel where proven standards already existed. Instead of creating an entirely new radio technology, Thread builds its networking capabilities on top of the robust and widely adopted IEEE 802.15.4 physical radio standard. This is the same underlying radio technology used by Zigbee and other low-power protocols.
By leveraging IEEE 802.15.4, Thread inherits a set of powerful and well-suited characteristics for low-power IoT devices:
- License-Free 2.4 GHz Operation: It operates in the globally available, license-free 2.4 GHz ISM band. This ensures that a Thread device can work anywhere in the world without complex regulatory hurdles. This is the same band used by Wi-Fi and Bluetooth, and Thread is designed to coexist with them effectively.
- Robust Modulation: The standard uses DSSS (Direct Sequence Spread Spectrum) modulation, which spreads the signal across a wider frequency band. This technique makes the transmissions inherently resistant to narrowband interference, a common issue in the crowded 2.4 GHz space.
- Optimized Data Rate: The IEEE 802.15.4 radio provides a data rate of 250 kilobits per second (kbps). While this may seem slow compared to Wi-Fi's megabits or gigabits per second, it is perfectly optimized for the typical IoT use case. Smart devices usually send very small packets of data, a sensor reading, a status update, an on/off command. The 250 kbps rate is more than enough to handle this traffic with very low latency, while consuming significantly less power than higher-speed radios.
The critical innovation of Thread is not in the radio itself, but in the layers built directly on top of it. While Zigbee built its own proprietary networking and application layers, Thread took a different path by choosing to integrate the universal language of the internet directly at this low level.
The True Innovation: Native IPv6 via 6LoWPAN
The most important and game-changing feature of Thread is its native support for the Internet Protocol. Specifically, it uses IPv6, the latest version of the protocol that governs addressing and routing across the internet. This means every single device on a Thread network, down to the simplest light bulb or motion sensor, has its own unique IPv6 address and can be communicated with directly, just like a website on the global internet.
The Challenge: Fitting an Elephant into a Mailbox
Implementing IPv6 on tiny, low-power devices presents a significant technical hurdle. A standard IPv6 packet has a large header containing routing and control information. The maximum size of a packet that can be sent by the underlying IEEE 802.15.4 radio, however, is very small, just 127 bytes. Attempting to send a standard IPv6 packet over an 802.15.4 radio would be incredibly inefficient, as the header information alone could take up a huge portion of the available payload.
The Solution: 6LoWPAN, The Universal Translator
Thread solves this problem by using an adaptation layer called . 6LoWPAN acts as an intelligent translation and compression layer that sits between the IP layer and the 802.15.4 MAC layer. It performs two critical functions:
- Header Compression: 6LoWPAN understands the structure of IPv6 headers and knows that much of the information within them is either static or can be inferred from other layers in a local network. It intelligently strips out this redundant information and compresses the massive 40-byte IPv6 header down to just a few bytes.
- Fragmentation and Reassembly: For IPv6 packets that are still too large to fit into a single 802.15.4 frame even after compression, 6LoWPAN automatically fragments the packet into smaller pieces. It adds sequencing information to these fragments so that the receiving device can reliably reassemble them back into the original, complete IPv6 packet.
Thanks to 6LoWPAN, Thread devices can seamlessly participate in IP-based communication without the typical overhead, achieving the goal of direct, end-to-end addressability for every device on the network.
A Resilient Architecture: Roles and Self-Healing
A Thread network is designed to be decentralized and resilient, eliminating single points of failure. This is achieved through a flexible architecture where devices can take on different roles as needed.
Routers and Router-Eligible End Devices (REEDs)
These are the mains-powered nodes of the network, such as smart plugs, thermostats connected to HVAC power, or light fixtures. They are always on and actively participate in the mesh by forwarding packets for other devices. A Thread network can support up to 64 routers. A device that could be a router but is not currently needed for that function can act as a REED.
Sleepy End Devices (SEDs)
These are the battery-powered devices. To conserve power, they do not route packets. They connect to a chosen "Parent" router. A SED can spend most of its time in a deep sleep state, waking up only to send data or to poll its Parent for any messages that might be waiting for it.
The Leader
Unlike Zigbee's single Coordinator, a Thread network has no single critical device. The first router to start the network becomes the "Leader." Its role is purely administrative, managing router assignments and network parameters. If the Leader fails, another router in the network is automatically elected to take its place without any interruption to data traffic.
Border Routers
A is the crucial link that connects the Thread mesh network to your other IP networks like Wi-Fi and Ethernet. It handles the forwarding of packets between the two networks. A home can have multiple Border Routers for redundancy; if one fails, another can seamlessly take over. Smart speakers like Apple's HomePod Mini or Google's Nest Hub often have this functionality built in.
Self-Healing Mesh
Thread's routing is dynamic. Routers in the network constantly maintain a picture of the best paths to their neighbors using a protocol based on RPL (Routing Protocol for Low-Power and Lossy Networks). If a router fails or a communication path becomes obstructed, the network automatically detects the change. The surrounding routers update their routing tables and establish new, alternative paths for messages. This self-healing capability makes the network extremely robust and reliable, which is essential for a smart home.
Thread and Matter: A Symbiotic Relationship
It is common for confusion to arise between Thread and Matter, but their roles are distinct and complementary. They operate at different layers of the networking stack and were designed to work together perfectly.
One can think of it using a simple analogy:
- Thread is the Postal Service: Thread's job is to create a reliable and efficient delivery system. It figures out the best routes, handles the physical transport of letters (packets), and ensures they get from any address (IP address) to any other address. Thread does not care what is written inside the letters.
- Matter is the Language of the Letters: Matter's job is to define what is written inside those letters so that everyone can understand it. It standardizes the format, ensuring that a "Turn On" message written by a German switch is perfectly understood by an American light bulb. It is the universal application language that runs on top of the delivery system.
Matter chose Thread as one of its primary networking transports for low-power devices precisely because of its native IP foundation. Because both speak IP, communication between a Matter device on Wi-Fi and a Matter device on Thread is seamless and direct. The Thread Border Router acts as a simple IP router, forwarding packets between the two networks without any complex and slow application-layer translation. This synergy is what enables the unified, fast, and reliable smart home experience that Matter promises.
A device in this new ecosystem is therefore often certified for both. It is a "Thread-certified" device because it has the correct radio and networking stack to join a Thread mesh network. It is also a "Matter-certified" device because it understands the common application language needed to interact with the broader smart home.