Enabling OpenThread Network Connectivity With OpenThread Border Router

By Abhishekh Shah

Firmware Engineer

VOLANSYS Technologies

February 23, 2021

Story

Enabling OpenThread Network Connectivity With OpenThread Border Router

Thread is an IPv6 based low-power wireless mesh networking protocol based on the IEEE 802.15.4 wireless protocol operating in the 2.4 GHz open radio frequency band. 

Thread network has no single point of failure, including the ability to self-heal, also ensure reliably and securely end-to-end communication with single applications connecting hundreds, and even thousands, of products. It helps in addressing challenges such as interoperability, security, power, and architecture requirements.

OpenThread - The Open Source Implementation of Thread Networking Protocol

OpenThread is a portable and flexible open-source implementation of Thread networking protocol to accelerate the development of products for the connected home and commercial buildings.

OpenThread is a Thread Certified Component, which implements all Thread networking layers (IPv6, 6LoWPAN, IEEE 802.15.4 with MAC security, Mesh Link Establishment, Mesh Routing) and device roles, as well as Border Router support on embedded devices.

For a Thread architecture to be a participant in a greater Internet of Things (IoT) ecosystem and communicate securely with other devices across other link technologies (and the Internet at large), a key element is the OpenThread Border Router(OTBR).

Previously, companies delivering IoT solutions had to deliver some sort of hub or gateway along with their IoT end devices. Due to the lack of IP based technologies, the devices and functionality to mobile or the cloud required application gateways. Such hub or gateway functionality that is not certified, will not have full interoperability in practice. Moreover, unlocking new end-to-end features between devices and mobile apps or the cloud is now throttled by software updates to the hub or gateway to enable the appropriate support.

Since Thread is IPv6, a Thread Border Router can be enough to provide connectivity independent of the application protocols in use—just like a Wi-Fi access point.

What Does OpenThread Border Router Do?

OpenThread Border Router (OTBR) is a Thread Certified Component on the Raspberry Pi 3B with a Nordic nRF52840 NCP.  An OpenThread Border Router (OTBR) provides end-to-end connectivity to other IP-based networks, such as Wi-Fi or Ethernet. It serves as a gateway between the Internet and the Thread network. You can access all Thread devices from application, mobile phone, or a cloud-hosted online service  when a Thread Border Router is connected to the enterprise network or the Internet.

 

It is an open-source solution fully accessible to all, the development process is fully transparent, and manufacturers can integrate it into their products. It is designed to work with OpenThread released by Nest, but can work with any other Thread Certified implementation.

OTBR supports various features such as :

  • Web GUI for configuration and management
  • Thread Border Agent to support external commissioning
  • DHCPv6 Prefix Delegation to obtain IPv6 prefixes for a Thread network
  • NAT64 for connecting to IPv4 networks
  • DNS64 to allow Thread devices to communicate by name to an IPv4-only server
  • Thread interface driver using OpenThread's built-in feature
  • Docker support

Thread Border Routers can be simple dedicated devices or part of other devices that are a common component in a network, such as Wi-Fi routers or access points. The OpenThread Border Router works with many chipsets from several suppliers and can optionally be based on low-cost Raspberry Pi based development boards.

Application of OpenThread Networking Protocol in Home Automation

The major challenges of Home Automation and the IoT is the lack of standardization in networking protocol, the maturity of technology stacks, security, privacy concerns, etc. Google took a keen interest in the IoT space a few years back and looked for an open set of standard protocols for Home Automation, where devices, sensors, and actuators within a home, communicate among them exchanging valuable information.

The existing protocols like ZigBee (from ZigBee Alliance) and Z-Wave are proprietary, power inefficient, and struggle to carry IP data packets. Multiple devices from different vendors cannot communicate easily with each other as they follow different networking protocols. They rely on a single device, which is typically a Router to communicate with products around the home. So if that device fails, the whole network goes down. The current protocol standards are battery hungry as these devices in your home work 24/7 resulting in quick battery drain. The current set of network protocols is not secure and is relatively easy to hack. OEMs can build Zigbee gateway, Z-Wave gateway, BLE gateway, and Thread gateway-based solution on the platform with any two radios supported with CENTAURI Gateway platform to reduce time to market so that you can focus more on creating values in end-user applications.

OpenThread Built for Home Automation

Being an IP-based open standard, It allows smart home devices to securely and reliably connect directly to the cloud. IoT enabled Home automation devices such as lights, thermostats, door locks, and security cameras provides a convenient and rewarding experience to consumers.

The above image illustrates the network in the Home.

 

There could be three types of devices in the network – border router, router, and host or end devices.

  • Border Routers:
    • A border router is a specific type of router that provides connectivity from the 802.15.4 network to adjacent networks on other physical layers (for example, Wi-Fi and Ethernet).
    • There may be one or more border routers in a Thread network to help build redundancy and failover capability.
    • Border routers provide services for devices within the 802.15.4 network and routing for off-network operations.
  • Routers:
    • Routers provide routing services to network devices.
    • Routers also provide joining and security services for devices trying to join the network.
    • Routers are not designed to sleep-mode.
  • Host:
    • Hosts (also called sleepy end devices) are the end devices and sensors that are connected to the network.
    • They communicate only through their parent router and cannot forward messages to the other devices.

The OpenThread protocol would help device manufacturers focus on their product rather than spending time on network protocols. The way the standard TCP/IP stack has been one of the reasons for the internet’s success, Open thread is posed to do the same for home automation.


Abhishekh Shah is associated with VOLANSYS Technologies as Senior Firmware Engineer. He has experience of around 5+ years in the Embedded domain. He has worked on projects in compliance with the standard DO-178A, Linux based projects, and Production test equipment development.

Experienced Engineer with a demonstrated history of working in the Embedded technology and services industry. Skilled in programming scripting (C, C++, Python), Lauterbach scripting, knowledge of Standard DO 178B and working ability in Agile base projects. Strong engineering professional graduated from the University of Pune.

More from Abhishekh