Bluetooth mesh networking

Short description: Computer mesh networking standard

Bluetooth mesh networking

Developed by| Bluetooth SIG
Introduced| July 13, 2017 (2017-07-13)
Industry| Lighting, IoT
Physical range| 100-1000 meters (depending on mesh relaying configuration)

Bluetooth Mesh is a computer mesh networking standard based on Bluetooth Low Energy that allows for many-to-many communication over Bluetooth radio. The Bluetooth Mesh specifications were defined in the Mesh Profile[1] and Mesh Model[2] specifications by the Bluetooth Special Interest Group (Bluetooth SIG). Bluetooth Mesh was conceived in 2014[3] and adopted on July 13, 2017 (2017-07-13).[4]

## Contents

* 1 Overview
* 2 Architecture
* 3 Topology
* 4 Theoretical limits
* 5 Mesh models
* 5.1 Foundation models
* 5.2 Generic models
* 5.3 Sensors
* 5.4 Time and scenes
* 5.5 Lighting
* 6 Provisioning
* 7 Terminology used in the Bluetooth Mesh Model and Mesh Profile specifications
* 8 Implementations
* 8.1 Approved ("qualified") by Bluetooth SIG
* 8.2 Free and open-source software implementations
* 9 See also
* 10 References

## Overview

Bluetooth Mesh is a mesh networking standard that operates on a flood network principle. It's based on the nodes relaying the messages: every relay node that receives a network packet that authenticates against a known network key that is not in message cache, that has a TTL ≥ 2 can be retransmitted with TTL = TTL - 1. Message caching is used to prevent relaying messages recently seen.

Communication is carried in the messages that may be up to 384 bytes long, when using Segmentation and Reassembly (SAR) mechanism, but most of the messages fit in one segment, that is 11 bytes. Each message starts with an opcode, which may be a single byte (for special messages), 2 bytes (for standard messages), or 3 bytes (for vendor-specific messages).

Every message has a source and a destination address, determining which devices process messages. Devices publish messages to destinations which can be single things / groups of things / everything.

Each message has a sequence number that protects the network against replay attacks.

Each message is encrypted and authenticated. Two keys are used to secure messages: (1) network keys – allocated to a single mesh network, (2) application keys – specific for a given application functionality, e.g. turning the light on vs reconfiguring the light.

Messages have a time to live (TTL). Each time message is received and retransmitted, TTL is decremented which limits the number of "hops", eliminating endless loops.

## Architecture

Bluetooth Mesh has a layered architecture, with multiple layers as below.

Layer  | Functionality

|

Model Layer  | It defines a standard way to exchange application specific messages. For example, a Light Lightness Model defines an interoperable way to control lightness. There are mandatory models, called Foundation Models, defining states and messages needed to manage a mesh network.
Access Layer  | It defines mechanism to ensure that data is transmitted and received in the right context of a model and its associated application keys.
Upper Transport Layer  | It defines authenticated encryption of access layer packets using an application (or device specific key). It also defines some control messages to manage Friendship or to notify the behavior of node using Heartbeat messages.
Lower Transport Layer  | This layer defines a reliable (through a Block Acknowledgement) Segmented transmission upper layer packets, when a complete upper layer packet can't be carried in a single network layer packet. It also defines a mechanism to reassemble segments on the receiver.
Network Layer  | This layer defines how transport packets are addressed over network to one or more nodes. It defines relay functionality for forwarding messages by a relay node to extended the range. It handles the network layer authenticated encryption using network key.
Bearer Layer  | It defines how the network packets are exchanged between nodes. Mesh Profile Specification defines BLE advert bearer and BLE GATT bearer. Mesh Profile defines Proxy Protocol, through which mesh packets can be exchanged via other bearers like TCP/IP.

## Topology

Nodes that support the various features can be formed into a mesh network.

Feature  | Functionality

|

Relay  | receive and retransmit mesh messages over the advertising bearer

to enable larger networks.

Proxy  | receive and retransmit mesh messages between GATT and

advertising bearers.

Low Power  | operate within a mesh network at significantly reduced receiver

duty cycles only in conjunction with a node supporting the Friend feature.

Friend  | help a node supporting the Low Power feature to operate by storing

messages destined for those nodes.

## Theoretical limits

The practical limits of Bluetooth Mesh technology are unknown. Some limits that are built into the specification include:

Limit for a network  | Value  | Remarks

|
|

Maximum number of nodes  | 32 767  | The limit is 32768 addresses and while a node may occupy more than one address, the practical limit is most likely lower.
Maximum number of groups  | 16 384

Number of virtual groups is 2128.

Maximum number of scenes  | 65 535  |
Maximum number of subnets  | 4 096  |
Maximum TTL  | 127  |

## Mesh models

As of version 1.0 of Bluetooth Mesh specification,[2] the following standard models and model groups have been defined:

### Foundation models

Foundation models have been defined in the core specification. Two of them are mandatory for all mesh nodes.

* Configuration Server (mandatory)
* Configuration Client
* Health Server (mandatory)
* Health Client

### Generic models

* Generic OnOff Server, used to represent devices that do not fit any of the model descriptions defined but support the generic properties of On/Off
* Generic Level Server, keeping the state of an element in a 16-bit signed integer
* Generic Default Transition Time Server, used to represent a default transition time for a variety of devices
* Generic Power OnOff Server & Generic Power OnOff Setup Server, used to represent devices that do not fit any of the model descriptions but support the generic properties of On/Off
* Generic Power Level Server & Generic Power Level Setup Server, including a Generic Power Actual state, a Generic Power Last state, a Generic Power Default state and a Generic Power Range state
* Generic Battery Server, representing a set of four values representing the state of a battery
* Generic Location Server & Generic Location Setup Server, representing location information of an element, either global (Lat/Lon) or local
* Generic User/Admin/Manufacturer/Client Property Server, representing any value to be stored by an element
* Generic OnOff Client & Generic Level Client
* Generic Default Transition Time Client
* Generic Power OnOff Client & Generic Power Level Client
* Generic Battery Client
* Generic Location Client
* Generic Property Client

### Sensors

* Sensor Server & Sensor Setup Server, representing a sensor device. Sensor device may be configured to return a measured value periodically or on request; measurement period (cadence) may be configured to be fixed or to change, so that more important value range is being reported faster.
* Sensor Client

### Time and scenes

* Time Server & Time Setup Server, allowing for time synchronization in mesh network
* Scene Server & Scene Setup Server, allowing for up to 65535 scenes to be configured and recalled when needed.
* Scheduler Server & Scheduler Setup Server
* Time Client, Scene Client & Scheduler Client

### Lighting

* Light Lightness Server & Light Lightness Setup Server, representing a dimmable light source
* Light CTL Server, Light CTL Temperature Server & Light CTL Setup Server, representing a CCT or "tunable white" light source
* Light HSL Server, Light HSL Hue Server, Light HSL Saturation Server & Light HSL Setup Server, representing a light source based on Hue, Saturation, Lightness color representation
* Light xyL Server & Light xyL Setup Server, representing a light source based on modified CIE xyY color space.
* Light LC (Lightness Control) Server & Light LC Setup Server, representing a light control device, able to control Light Lightness model using an occupancy sensor and ambient light sensor. It may be used for light control scenarios like Auto-On, Auto-Off and/or Daylight Harvesting.
* Light Lightness Client, Light CTL Client, Light HSL Client, Light xyL Client & Light LC Client

## Provisioning

Provisioning is a process of installing the device into a network. It is a mandatory step to build a Bluetooth Mesh network.

In the provisioning process, a provisioner securely distributes a network key and a unique address space for a device. The provisioning protocol uses P256 Elliptic Curve Diffie-Hellman Key Exchange to create a temporary key to encrypt network key and other information. This provides security from a passive eavesdropper. It also provides various authentication mechanisms to protect network information, from an active eavesdropper who uses man-in-the-middle attack, during provisioning process.

A key unique to a device known as "Device Key" is derived from elliptic curve shared secret on provisioner and device during the provisioning process. This device key is used by the provisioner to encrypt messages for that specific device.

The security of the provisioning process has been analyzed in a paper presented during the IEEE CNS 2018 conference.[5]

The provisioning can be performed using a Bluetooth GATT connection or advertising using the specific bearer.[1]

## Terminology used in the Bluetooth Mesh Model and Mesh Profile specifications

* Destination: The address to which a message is sent.
* Element: An addressable entity within a device.
* Model: Standardized operation of typical user scenarios.
* Node: A provisioned device.
* Provisioner: A node that can add a device to a mesh network.
* Relay: A node able to retransmit messages.
* Source: The address from which a message is sent.

## Implementations

### Approved ("qualified") by Bluetooth SIG

Bluetooth mesh implementations approved ("qualified") by Bluetooth SIG Name  | Submitter  | Qualification date  | QDID  | Type

|
|
|
|

Bluetooth Stack for Embedded Systems - MESH profile[6] | Silvair, Inc.  | 2017-07-18  | 98880  | Profile Subsystem
Qualcomm Bluetooth Mesh[7] | Qualcomm Technologies International, Ltd. | 2017-07-18  | 98856  | Profile Subsystem
Silvair Mesh Models[8] | Silvair, Inc.  | 2017-07-26  | 99282  | Profile Subsystem
Wireless Gecko Mesh Profile[9] | Silicon Laboratories  | 2017-09-21  | 101318  | Profile Subsystem
CYW-MESH 1.0[10] | Cypress Semiconductor Corporation  | 2017-10-03  | 101726  | Component (Tested)
Qualcomm Bluetooth Mesh Model[11] | Qualcomm Technologies International, Ltd.  | 2017-10-20  | 102243  | Profile Subsystem
EtherMind Bluetooth Protocol Stack, 5.0 (Single Mode) + Mesh[12] | Mindtree Limited | 2018-01-24  | 106544  | Component (Tested)
Telink SIG Mesh SDK[13] | Telink Semiconductor  | 2018-02-01  | 106546  | Profile Subsystem
TOSHIBA Bluetooth_stack_mesh-1[14] | Toshiba Corporation | 2018-02-13  | 104143  | Component (Tested)
AMICCOM Mesh Profile[15] | AMICCOM Electronics Corporation  | 2018-03-14  | 109370  | Profile Subsystem
Amiccom Bluetooth Mesh Model[16] | AMICCOM Electronics Corporation  | 2018-03-30  | 110168  | Profile Subsystem
Airoha SIG mesh[17] | Airoha Technology Corp.  | 2018-04-02  | 110202  | Profile Subsystem
Marvell Mesh stack v1.0[18] | Marvell Technology Group | 2018-04-27  | 110569  | Component (Tested)
nRF5 SDK for Mesh [19] | Nordic Semiconductor | May 2, 2018  | 111537  | Profile Subsystem
Realtek Bluetooth 5 Mesh Solution[20] | Realsil Microelectronics Inc | 2018-07-27  | 115668  | Profile Subsystem
STSW-BNRG-Mesh[21] | STMicroelectronics | 2018-08-02  | 116029  | Profile Subsystem
RDA BT Host 5.0[22] | RDA Microelectronics, Inc. | 2018-09-13  | 115860  | Profile Subsystem
JYMC-MESH-1[23] | Shanghai Frequen Microelectronics Co., Ltd.  | 2018-10-10  | 119229  | End Product
RW-BLE-MESH[24] | CEVA, Inc. | 2018-10-31  | 119268  | Component (Tested)
ARM Ltd Cordio Mesh[25] | ARM Ltd | 2018-12-11  | 116593  | Profile Subsystem
Samsung SLSI Bluetooth Mesh[26] | Samsung Electronics Co., Ltd. | 2018-12-21  | 122442  | Profile Subsystem
Bluelet Host Stack V12[27] | Barrot Technology Limited  | 2018-12-25  | 123056  | Component (Tested)
ESP BLE Mesh v0.6[28] | Espressif Systems (Shanghai) Pte. Ltd.  | 2019-01-14  | 124137  | Profile Subsystem
BK3435 BLE Core Spec 5.0 with MESH[29] | Beken Corp  | 2019-03-12  | 127926  | End Product
Actions Mesh Profile Subsystem[30] | Actions (Zhuhai) Technology Co., Limited | 2019-03-21  | 127646  | Profile Subsystem
AliOS Things BLE host and mesh profile v2.1.0[31] | Alibaba (China) Co., Ltd. | 2019-04-19  | 129750  | Host Subsystem
Tonly SIG Mesh Stack[32] | Shenzhen Tonli Science and Technology Development Co., Ltd  | 2019-05-05  | 130160  | Profile Subsystem
Sino Wealth IBLE SIG Mesh Profile[33] | Sino Wealth Electronic Ltd.  | 2019-06-18  | 133403  | Profile Subsystem
Qualcomm Bluetooth Mesh and Mesh Model v4.0[34] | Qualcomm Technologies International, Ltd.  | 2019-06-19  | 128410  | Profile Subsystem
PAN1020 Mesh Profile subsystem[35] | Shanghai Panchip Microelectronics Co., Ltd  | 2019-07-01  | 129291  | Profile Subsystem
Apache NimBLE BLE Host including BLE Mesh[36] | JUUL Labs, Inc.  | 2019-07-15  | 131934  | Component (Tested)
Tmall mesh Stack[37] | Alibaba (China) Co., Ltd.  | 2019-07-20  | 128246  | Profile Subsystem
ClarinoxBlue[38] | Clarinox Technologies Pty Ltd  | 2019-08-02  | 134454  | Host Subsystem
BlueX Mesh[39] | BlueX Microelectronics Corp Ltd.  | 2019-08-20  | 137436  | Profile Subsystem
Zephyr OS Mesh[40] | The Linux Foundation  | 2019-09-20  | 139259  | Profile Subsystem
WCH Bluetooth Mesh[41] | Nanjing Qinheng Microelectronics Co., Ltd.  | 2020-06-01  | 144808  | Profile Subsystem

### Free and open-source software implementations

Free software and open source software implementations include the following:

* The official (included in Linux kernel by Linus Torvalds in 2001[42]) Linux Bluetooth protocol stack BlueZ, dual free-licensed under the GPL[43] and the LGPL,[44] supports Mesh Profile, from release version 5.47,[45] by providing meshctl tool (deprecated) to configure mesh devices. Release version 5.53 introduced mesh-cfgclient tool for configuring mesh networks. BlueZ was approved as a "qualified" software package by Bluetooth SIG in 2005.[46] BlueZ is not considered to be a qualified Bluetooth Mesh stack as Bluetooth Mesh is not listed in aforementioned qualification record as a supported profile.
* Apache Mynewt NimBLE, free-licensed under the Apache License 2.0,[47] supports Bluetooth Mesh from release version 1.2.0.[48] It was qualified on July 15, 2019 (2019-07-15) with QDID 131934.[36]
* Zephyr OS Mesh, free-licensed under the Apache License 2.0,[49] supports Bluetooth Mesh from release version 1.9.0.[50] Zephyr OS Mesh 1.14.x was qualified on September 20, 2019 (2019-09-20) with QDID 139259.[36]

## See also

* Cabir (computer worm)
* BlackArch
* Bluejacking
* Bluebugging
* Bluesnarfing
* AirDrop

## References

1. ↑ 1.0 1.1 "Mesh Profile Bluetooth® Specification" (PDF download). 2017-07-13. https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=429633.
2. ↑ 2.0 2.1 "Mesh Model Bluetooth® Specification" (PDF download). 2017-07-13. https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=429634.
3. ↑ "Range Limitation? What Range Limitation? Introducing Mesh Networks | Bluetooth Technology Website". http://blog.bluetooth.com/range-limitation-what-range-limitation-introducing-mesh-networks/.
4. ↑ "Low Energy: Mesh | Bluetooth Technology Website". https://www.bluetooth.com/what-is-bluetooth-technology/how-it-works/le-mesh.
5. ↑ Adomnicai, A.; Fournier, J. J. A.; Masson, L. (2018-05-30). "Hardware Security Threats Against Bluetooth Mesh Networks". 2018 IEEE Conference on Communications and Network Security (CNS). pp. 1–9. doi:10.1109/CNS.2018.8433184. ISBN 978-1-5386-4586-4. https://ieeexplore.ieee.org/document/8433184.
6. ↑ "QD ID 98880 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/20708.
7. ↑ "QD ID 98856 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/1903.
8. ↑ "QD ID 99282 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/18763.
9. ↑ "QD ID 101318 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/25011.
10. ↑ "QD ID 101726 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/480.
11. ↑ "QD ID 102243 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/1905.
12. ↑ "QD ID 106544 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/52845.
13. ↑ "QD ID 106546 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/52851.
14. ↑ "QD ID 104143 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/49426.
15. ↑ "QD ID 109370 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/109370.
16. ↑ "QD ID 110168 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/110168.
17. ↑ "QD ID 110202 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/110202.
18. ↑ "QD ID 110569 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/110569.
19. ↑ Systems, eZ. "nRF5 SDK for Mesh / Bluetooth Low Energy / Products / Home - Ultra Low Power Wireless Solutions from NORDIC SEMICONDUCTOR" (in en-GB). http://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF5-SDK-for-Mesh.
20. ↑ "QD ID 115668 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/115668.
21. ↑ "QD ID 116029 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/116029.
22. ↑ "QD ID 115860 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/115860.
23. ↑ "QD ID 119229 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/119229.
24. ↑ "QD ID 119268 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/119268.
25. ↑ "QD ID 116593 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/116593.
26. ↑ "QD ID 122442 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/122442.
27. ↑ "QD ID 123056 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/123056.
28. ↑ "QD ID 124137 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/124137.
29. ↑ "QD ID 127926 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/127926.
30. ↑ "QD ID 127646 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/127646.
31. ↑ "QD ID 129750 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/129750.
32. ↑ "QD ID 130160 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/130160.
33. ↑ "QD ID 133403 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/133403.
34. ↑ "QD ID 128410 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/128410.
35. ↑ "QD ID 129291 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/129291.
36. ↑ 36.0 36.1 36.2 "QD ID 131934 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/131934.
37. ↑ "QD ID 128246 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/128246.
38. ↑ "QD ID 134454 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/134454.
39. ↑ "QD ID 137436 | Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/137436.
40. ↑ "QD ID 139259| Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/139259.
41. ↑ "QD ID 144808| Launch Studio - Listing Details". https://launchstudio.bluetooth.com/ListingDetails/RedirectFromQdid/144808.
42. ↑ "BlueZ History". 2019-09-07. http://www.bluez.org/about/history/.
43. ↑ "index : bluez.git – Bluetooth protocol stack for Linux – Marcel Holtmann". 1991. https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/COPYING.
44. ↑ "index : bluez.git – Bluetooth protocol stack for Linux – Marcel Holtmann". 1999. https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/COPYING.LIB.
45. ↑ "BlueZ » Blog Archive » Release of BlueZ 5.47". http://www.bluez.org/release-of-bluez-5-47/.
46. ↑ "Qualified Product Detail". https://www.bluetooth.org/qualweb/ProductDetails.cfm?ProductID=2379.
47. ↑ "apache/mynewt-core/LICENSE". 2018-06-04. https://github.com/apache/mynewt-core/blob/master/LICENSE.
48. ↑ "RN-1.2.0 - Apache Mynewt - Apache Software Foundation". https://cwiki.apache.org/confluence/display/MYNEWT/RN-1.2.0.
49. ↑ "zephyrproject-rtos/zephyr/blob/master/LICENSE". 2020-03-21. https://github.com/apache/mynewt-core/blob/master/LICENSE.
50. ↑ "Release Notes Zephyr Kernel 1.9.0". https://docs.zephyrproject.org/latest/releases/release-notes-1.9.html#zephyr-kernel-1-9-0.

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Bluetooth mesh networking. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Bluetooth_mesh_networking&oldid=276505"