Bluetooth Mesh: Technology Overview, Examples, Alternatives, and First-Hand Experience

By

Learn from Integra Source’s experiences about Bluetooth mesh networking, how and where to use it. We’ll tell you about the design and operation principles of this protocol and compare it with similar technologies, such as Zigbee and Thread. In our Bluetooth mesh guide, you’ll learn about the advantages of this networking standard and the challenges our team has met working on BLE mesh projects.

Contents:

If you’re choosing an out-of-the-box and easy-to-implement solution to build decentralized wireless networks, Bluetooth mesh may be an option.

This protocol can provide secure and reliable communication between multiple devices on a large-scale network. BLE mesh can compete with Wi-Fi, Z-wave, Zigbee, Thread, and other technologies in the context of the Internet of Things and smart connectivity.

However, this is not a one-size-fits-all solution, and like any other technology, it has both strong and weak points. Using our personal experience with Bluetooth mesh networks, we’ll shed some light on this standard to help you understand whether it works for you.

What Is A Bluetooth Mesh Network?

What is a mesh network, broadly speaking? A mesh network is a network of devices, or nodes, connected directly, dynamically, and non-hierarchically to as many other nodes as possible. The nodes cooperate with each other by exchanging data.

A Bluetooth low energy mesh network is a meshnet based on BLE technology.

The Bluetooth Special Interest Group (Bluetooth SIG) first introduced Bluetooth Low Energy or BLE in 2009. In early 2010, it was completely integrated into Bluetooth 4.0. The new technology was designed for smart connectivity systems with low power requirements.

However, the abilities of BLE networks were quite limited. Bluetooth Low Energy allowed for one-to-one communication, and simple devices (like beacons) within a network could communicate only via the central hub.

The release of the Bluetooth mesh networking standard became a game-changer in 2017. The Mesh Profile specification, added to Bluetooth 5, provides the possibility for many-to-many communication.

Bluetooth mesh is intended for networks with a large number of nodes - mesh devices that broadcast messages. It targets the growing IoT market which continuously demands:

  • more energy-efficient solutions;
  • more security;
  • more communicating devices;
  • more flexible technologies.

How BLE Mesh Network Works

What differentiates the Bluetooth LE mesh network from Zigbee/other forms of technology, in the first place, is broadcasting messages. Unlike the other wireless networks based on routing, the BLE mesh protocol applies the managed flood principle.

This approach offers a peer-to-peer communication model in which every node, or device, communicates directly with each other. Managed flooding makes messaging efficient without complex routing algorithms. You don’t need to use the central hub but you can relay messages straight to the right nodes without any interruptions.

The self-sufficiency of the nodes, coupled with multipath messaging, facilitates the scalability of BLE mesh networking. It can help you create countless networks with innumerable nodes.

Nodes of a BLE mesh network communicate with each other using a publish/subscribe model. Meshnet publishers can send messages to a group of devices. Devices can subscribe to different addresses, or sets of them, and receive the messages they are interested in.

This type of messaging gives you an opportunity to configure BLE mesh devices to form network segments of different scale and purpose. As a consequence of this configuring, technology becomes even more flexible and manageable.

BLE mesh architecture has a multi-layer structure typical of any communication network:

  • The upper layers take responsibility for the contents of messages.
  • The middle layers are responsible for the logic and behavior of the network.
  • The lower layers define message transmission.

Bluetooth mesh networking places a strong focus on security. There are encryption and authentication systems for all messages based on the AES-CMAC and AES-CCM algorithms. The security keys protect the contents of messages and ensure sensitive communication between the nodes.

The use of security credentials protects the BLE mesh network from unauthorized access. Provisioning, or adding a device to the meshnet, is also secure. A new node provisioned on the network gets a unique ID and access to the security keys.

You can create a mesh network using literally any low energy Bluetooth chip or microcontroller that supports the technology. The popular manufacturers, such as Nordic Semiconductors, Texas Instruments, STMicroelectronics, Silicon Labs, Qualcomm, and others, produce the hardware and provide SDK to build custom BLE mesh networks.

The main challenge is not just choosing hardware, but creating a viable meshnet.

Why Use A Mesh Network?

All Bluetooth low energy networks have low power consumption and BLE mesh is no exception. So, low energy and large areas clearly make a substantial difference.

Compared to the connection-based Bluetooth network, mesh technology does not require a connection between two nodes or a stable configured route. Should the closest devices in the network be disconnected, the initial node continues to broadcast the packet with no issue. Eventually, it reaches the recipient with just a few seconds’ delay.

Most of the standard implementations provide no guarantee of this. However, the mesh network is different. It reconfigures itself. It is flexible, which is sometimes more important than a guaranteed speed and shorter delays.

Nodes in a Bluetooth mesh network may change their position without breaking the whole network structure and without losing transferred data. Data loss is possible only if the nodes leave the coverage area of the receiver.

BLE mesh nodes can communicate with Bluetooth 4.x and 5.x devices. A Bluetooth 4.x compatible device will be able to receive messages. But it will not become a fully-fledged node of the network as it can communicate only with the paired device.

Now, there are a growing number of devices that support BLE mesh. One of the most promising areas for Bluetooth mesh networking is mobile communication because smartphones are compatible with Bluetooth 4.0 and BLE.

BLE mesh technology is closely connected with beacons. BLE beacons are broadly used in sensor networks, indoor and outdoor positioning, and other low-power connected systems.

As a highly flexible, energy-efficient, and secure solution, BLE mesh can find use in traditional networking applications, such as:

  • Home automation
  • Industrial automation
  • Smart lighting
  • Asset tracking
  • Proximity detection

Our development experience proves that you can use this technology as a nonstandard solution for your project. Further in our guide, we’ll give an example of BLE mesh network used for an unconventional application.

BLE 5.x Mesh Compared to Similar Technologies

Apart from BLE mesh, there are other similar mesh networking technologies. The most popular of them include Zigbee and Thread. These protocols have much in common with Bluetooth mesh networking.

Announced in 2014, Thread is the youngest technology compared to Zigbee and BLE mesh. It is an Internet Protocol version 6 (IPv6) based mesh networking protocol designed for IoT systems.

This protocol has a limited number of routers (32 per network) and it is not appropriate for large-scale networks. However, you can connect up to 511 devices per router. So, this networking standard works well for high-density meshnets.

Thread is an IP-addressable out-of-the-box solution that you can easily integrate into your IPv6-based app. This standard has a sufficiently high data rate compared to similar technologies. Thread is fine for local IoT systems and it is not intended for long-distance data transmission.

Zigbee is much older than its competitors. It first appeared in 1998 and was standardized in 2003. Zigbee is a low-power and low-bandwidth wireless network. Its application areas include home automation, medical devices, industrial and building automation, and others.

This technology is intended for low data rate networks. It has a fixed maximum rate of 250 Kbits/sec.

Version 2.0 of Zigbee Smart Energy supports IPv6 and provides services for electric vehicles. Zigbee RF4CE is a standard developed for radio frequency remote controls. It finds use in diverse consumer electronics and low-cost remote control devices.

Zigbee supports different frequency and output power ranges and consequently different transmission distances. It can work with a variety of transceivers, including Bluetooth Low Energy. Zigbee is rarely supported by consumer electronics. So if you want to add a new device without a special Zigbee transceiver, like a smartphone, on your network, you’ll need to use a gateway.

Each of the three standards provides wireless mesh communication and is widely used in IoT and smart home systems. The technologies are suitable for networks with low bandwidth and low power consumption. Security is a significant feature of all the protocols.

Depending on the project requirements, Zigbee, Thread, and Bluetooth mesh standards can show roughly the same performance.

The main distinction of BLE mesh networking is that it uses Bluetooth instead of the Internet Protocol and managed flood messaging instead of routing.

IP-compatibility gives an advantage in cases when you need to connect devices that use IP addresses. If you want to introduce IP-based devices into a BLE mesh network, you need to think through addressing mechanisms.

In managed flooding, all nodes of the network receive and pass messages on unless they are subscribed to them. Devices don’t store this data so they don’t need much RAM.

When you use Zigbee and Thread, you should make certain that devices in the network have enough RAM to store routing tables.

The use of managed flooding in multi-node networks may create much noise since messages are relayed to all the nodes at once. That’s why this approach works better for low-density meshnets.

The routing mechanism applied in Zigbee and Thread assists you in directing messages to the destination nodes. This helps mitigate noise and use these protocols in high-density networks.

The flood-based approach engages every node of a BLE mesh network in communication which creates certain overhead. To reduce it you can develop filtering algorithms or use virtual addresses with unique identifiers.

Compared to flood messaging, routing has a more complicated implementation. But at the same time, it provides faster data transfer with lower overhead.

For one of the projects, we have compared the main characteristics of BLE 5.x Mesh, Zigbee, Thread, and our own Integra BLE networks. BLE mesh network had the lowest bandwidth, less than 1.5 kbit/sec for 100 bytes packet on six hops, and the largest delay (640 ms for the same packet and four hops).

BLE mesh has no guaranteed data delivery, unlike Zigbee or Thread. So, for a small amount of data that does not require fast and guaranteed delivery, it might be a good option.

Nowadays, all smartphones and most consumer electronics support Bluetooth. So you can easily integrate a Bluetooth network into the existing environment, making the implementation faster and less costly.

The strongest point of Bluetooth mesh networks is their survivability - you don’t have to worry much about the nodes’ relocation. The weakest points include heavy broadcast traffic and low throughput. The most suitable application of BLE mesh is a smart home and similar IoT projects that involve the transmission of small amounts of data.

-Sergey Belykh,Hardware team Technical Lead, Integra Sources

Our Experience with Bluetooth Mesh Projects

Working with any new technology is always challenging for a developer. When the technology is young, it may lack the necessary documentation and use cases available online. In this situation, you resolve every issue by trial and error.

One of the non-standard commercial projects based on Bluetooth mesh and realized by Integra Sources is a network of Bluetooth devices for restaurants and bars. The standard BLE Mesh network realization fits the project well.

The devices in this network are stylish cubes located on the tables with NFC tags but not tied to them. The staff can relocate the cubes in any order, as the network is absolutely flexible.

Visitors of the restaurant can use these devices to call a waiter and ask for the check. The cubes also inform the waiting staff how long the guest has been kept waiting. Besides, the devices work as a table lamp.

The staff receive the data from the cubes using iOS smartphones and tablets that connect to the closest Bluetooth device. The latter becomes a gateway. This connection, however, does not affect the whole network configuration.

Data accumulated from the devices generate comprehensive statistics. Owners can use the data to optimize employee performance and improve the quality of service in the restaurants.

The arbitrary placement of the nodes makes it possible to create a completely different Bluetooth mesh network configuration. On the schemes below you can see just some of the situations.

We performed several experiments on about 100 Bluetooth nodes to find the algorithms that can configure this network automatically.

In the restaurants, the cubes are constantly relocated; some of them may be off; they may be used in facilities with several rooms. So, the human factor has a constant effect on the physical topology of the network.

Integra Sources had to spend several hundred hours creating methods and rules to build and rebuild the graph in real time. That was worthwhile - now the system is reliable and flexible at the same time.

As long as there is no routing in the standard BLE mesh implementation, the total number of nodes and data transfer operations between them decreases the network performance. The nodes broadcast all the data they receive from other nodes - and receive all the packets - and rebroadcast them, and so on.

Even with a low message time-to-live (TTL), it is easy to imagine the broadcast storm that a 1000-node mesh network could generate. The delays and latency only grow with the number of nodes and the number of packets sent between them.

Bluetooth mesh networking technology allows you to connect more than 30 thousand devices at once. But in our experience, even a mere hundred of them can create the amount of spam that could seriously threaten the whole ecosystem.

For the restaurant cubes project, we had to find a way to reduce the effect of this storm. First of all, we added a certain TTL to each packet of the node. This has decreased the traffic in the network.

To reduce the consequences of the storm, we decided to replace the managed flood messaging native to BLE mesh networks by routing mechanisms.

Our engineers developed routing tables for each node. The routing algorithms provided fast and guaranteed data delivery from the devices to the gateway.

We introduced measurements of signal strength or RSSI to build strong connections between the modes and make the communication efficient.

In theory, the maximum physical speed of a mesh network with Bluetooth 5.x devices (including the service data on the beacon, packet type, etc.) is 2 Mbit per second. However, such speed is impossible to reach in real data transmission. So the potential of using Bluetooth mesh networks is still not that great.

To estimate the real bandwidth of data transfer within a mesh network, you should take into account two basic criteria:

  • the number of devices;
  • the distance between the devices and the BLE network topology.

Thus, in one of our asset tracking projects, as well as in the restaurant mesh network, the data throughput rate was about 80 kbit/s. However, this data rate allows for timely notifications and even imaging with low power consumption.

One of our customers wanted to implement a mesh network for an industrial company to track employees and transport movement within a facility.

However, they needed a high bandwidth and the highest reliability at the same time, while transferring data for quite a long distance, about one kilometer. All the devices, aside from one gateway, were battery-powered.

Taking this into account, we couldn’t guarantee reliable data delivery and high throughput by implementing a BLE mesh. As a consequence, we developed a custom meshnet based on the BLE protocol that could not cause a broadcast storm.

We have built a network that reconfigures itself automatically. The network topology gets updated upon provisioning a new device. The number of provisioned devices is unlimited. Each device acts as both a node and a router.

-Sergey Belykh,Hardware team Technical Lead, Integra Sources

A direct connection between the neighboring nodes and routing the data to the gateway proved to be more effective for this project. The developed people and asset tracking solution guaranteed message delivery within the hard-to-reach industrial area. Using multiple beacons, the solution assists in tracking employees and equipment located even at a long distance from the gateway.

Conclusion: Yes or No for BLE Mesh?

In spite of its undeniable benefits, Bluetooth mesh network technology is not universal and its scope of use is limited. If the protocol fits the company’s needs, it requires a fine setup and much experimentation and tests.

However, our experience proves that this is a robust technology, especially for the Internet of Things solutions. BLE mesh meets the latest requirements of smart connectivity - it is low-power, large-scale, flexible, and secure.

Working on Bluetooth mesh projects, we complete all necessary types of tasks:

  • provide a custom gateway;
  • create a mesh network topology;
  • write firmware for the nodes and the gateway;
  • optimize the topology by making it compatible with the existing devices and system.

So if you need a low power wireless system with scalable connectivity and secure data transfer, we can create a BLE mesh network for your particular project.

We hope that our BLE mesh guide gave you an idea of this networking technology. If you still have doubts about using BLE mesh technology for your product, feel free to Integra Sources and get our professional advice.



Get stories like this delivered straight to your inbox. [Free eNews Subscription]
SHARE THIS ARTICLE
Related Articles

Can Science Outsmart Deepfake Deceivers? Klick Labs Proposes an Emerging Solution

By: Alex Passett    3/25/2024

Researchers at Klick Labs were able to identify audio deepfakes from authentic audio recordings via new vocal biomarker technology (alongside AI model…

Read More

Top 5 Best Ways to Integrate Technology for Successful Project-Based Learning

By: Contributing Writer    3/19/2024

Project-based learning, also popularly known as the PBL curriculum, emphasizes using and integrating technology with classroom teaching. This approach…

Read More

How to Protect Your Website From LDAP Injection Attacks

By: Contributing Writer    3/12/2024

Prevent LDAP injection attacks with regular testing, limiting access privileges, sanitizing user input, and applying the proper encoding functions.

Read More

Azure Cost Optimization: 5 Things You Can Do to Save on Azure

By: Contributing Writer    3/7/2024

Azure cost optimization is the process of managing and reducing the overall cost of using Azure. It involves understanding the resources you're using,…

Read More

Massive Meta Apps and Services Outage Impacts Users Worldwide

By: Alex Passett    3/5/2024

Meta's suite of apps and services are experiencing major global outages on Super Tuesday 2024.

Read More