1ESP-BLE-MESH Terminology
2========================
3
4:link_to_translation:`zh_CN:[中文]`
5
6.. _ble-mesh-terminology-role:
7
8.. list-table:: Table 1 ESP-BLE-MESH Terminology - Role
9  :widths: 10 40 60
10  :header-rows: 1
11
12  * - Term
13    - Official Definition
14    - Detailed Explanation
15  * - Unprovisioned Device
16    - A device that is not a member of a mesh network is known as an unprovisioned device.
17    - Examples: lighting devices, temperature control devices, manufacturing equipments and electric doors, etc.
18  * - Node
19    - A node is a provisioned device.
20    - The role of unprovisioned device will change to node after being provisioned to ESP-BLE-MESH network. Nodes (such as lighting devices, temperature control devices, manufacturing equipments, and electric doors) are devices that can send, receive, or relay messages in ESP-BLE-MESH network, and they can optionally support one or more subnets.
21  * - Relay Node
22    - A node that supports the Relay feature and has the Relay feature enabled is known as a Relay node.
23    - Relay nodes can receive and resend ESP-BLE-MESH messages, so the messages can be transferred further. Users can decide whether or not to enable forwarding function of nodes according to nodes' status. Messages can be relayed for multiple times, and each relay is considered as a "hop". Messages can hop up to 126 times, which is enough for message transmission in a wide area.
24  * - Proxy Node
25    - A node that supports the Proxy feature and has the Proxy feature enabled is known as a Proxy node.
26    - Proxy nodes receive messages from one bearer (it generally includes advertising bearer and GATT bearer) and resend it from another one. The purpose is to connect communication equipments that only support GATT bearer to ESP-BLE-MESH network. Generally, mobile apps need a Proxy node to access Mesh network. Without Proxy nodes, mobile apps cannot communicate with members in Mesh network.
27  * - Friend Node
28    - A node that supports the Friend feature, has the Friend feature enabled, and has a friendship with a node that supports the Low Power feature is known as a Friend node.
29    - Friend node, like the backup of Low Power node (LPN), can store messages that are sent to Low Power node and security updates; the stored information will be transferred to Low Power node when Low Power node needs it. Low Power node must establish "friendship" with another node that supports the Friend Feature to reduce duty cycle of its receiver, thus power consumption of Low Power node can be reduced. Low Power node needs to find a Friend node to establish a friendship with it. The process involved is called "friendship establishment". Cooperation between Low Power node and Friend nodes enables Low Power node to schedule the use of the radio, thus Low Power node can receive messages at an appropriate or lower frequency without the need of keeping listening. Low Power node will poll Friend node to see if there is new message.
30  * - Low Power Node
31    - A node that supports the Low Power feature and has a friendship with a node that supports the Friend feature is known as a Low Power node.
32    - By polling, Low Power node gets information from Friend node, such as messages, security updates, and etc.
33  * -  Provisioner
34    - A node that is capable of adding a device to a mesh network.
35    - The device that can provision unprovisioned devices is called a Provisioner. This process usually needs to be implemented through an app that is typically provided by the product manufacturer and can be used on a gateway, a smartphone, tablet or other carriers.
36
37
38.. _ble-mesh-terminology-composition:
39
40.. list-table:: Table 2 ESP-BLE-MESH Terminology - Composition
41  :widths: 10 40 60
42  :header-rows: 1
43
44  * - Term
45    - Official Definition
46    - Detailed Explanation
47  * - State
48    - A value representing a condition of an element that is exposed by an element of a node.
49    - Each node in a ESP-BLE-MESH network has an independent set of state values that indicate certain states of the device, like brightness, and color of lighting device. Change of state value will lead to change of the physical state of devices. For example, changing the on/off state of a device is actually turning on/off the device.
50  * - Model
51    - A model defines the basic functionality of a node.
52    - A node may contain multiple models, and each model defines basic functionalities of nodes, like the states needed by the nodes, the messages controlling the states, and actions resulted from messages handling. The function implementation of the nodes is based on models, which can be divided into SIG Model and Vendor Model, with the former defined by SIG and latter defined by users.
53  * - Element
54    - An addressable entity within a device.
55    - A node can contain one or more elements, with each having a unicast address and one or more models, and the models contained by the same element must not be the same.
56  * - Composition Data State
57    - The Composition Data state contains information about a node, the elements it includes, and the supported models.
58    - By reading the value of the Composition Data state, users can know basic information of the node, such as the number of elements, and the models in each element. Provisioner gets this message to further provision the device, such as configuring subscription address and publishing address of nodes.
59
60
61.. _ble-mesh-terminology-features:
62
63.. list-table:: Table 3 ESP-BLE-MESH Terminology - Features
64  :widths: 10 40 60
65  :header-rows: 1
66
67  * - Term
68    - Official Definition
69    - Detailed Explanation
70  * - Low Power Feature
71    - The ability to operate within a mesh network at significantly reduced receiver duty cycles only in conjunction with a node supporting the Friend feature.
72    - Low Power feature reduces power consumption of nodes. When a Low Power node is searching for a Friend node, and there are multiple Friend nodes nearby, it selects the most suitable Friend node through algorithm.
73  * - Friend Feature
74    - The ability to help a node supporting the Low Power feature to operate by storing messages destined for those nodes.
75    - By enabling friend feature, the node can help to store information for Low Power node. The nodes enabled with friend feature may cause more power and memory consumption.
76  * - Relay Feature
77    - The ability to receive and retransmit mesh messages over the advertising bearer to enable larger networks.
78    - The relay feature enables ESP-BLE-MESH messages to hop among nodes for multiple times, and the transmission distance can exceed the range of direct radio transmission between two nodes, thereby covering the entire network. When a node is enabled with the relay feature to relay messages, it only relays the messages of its own subnet, and does not relay the messages of other subnets. The data integrity will not be considered when the node enabled with relay feature relays segmented messages. The node would relay every segmented message once it receives one rather than waiting for the complete message.
79  * - Proxy Feature
80    - The ability to receive and retransmit mesh messages between GATT and advertising bearers.
81    - The purpose of the proxy feature is to allow nodes without an advertising bearer to access the ESP-BLE-MESH network. The proxy feature is typically used in nodes that need to connect to mobile apps.
82
83
84.. _ble-mesh-terminology-provisioning:
85
86.. list-table:: Table 4 ESP-BLE-MESH Terminology - Provisioning
87  :widths: 10 40 60
88  :header-rows: 1
89
90  * - Term
91    - Official Definition
92    - Detailed Explanation
93  * - PB-ADV
94    - PB-ADV is a provisioning bearer used to provision a device using Generic Provisioning PDUs over the advertising channels.
95    - PB-ADV transfers packets generated during the provisioning process over the advertising channels. This way can only be used for provisioning when provisioner and unprovisioned device both support PB-ADV.
96  * - PB-GATT
97    - PB-GATT is a provisioning bearer used to provision a device using Proxy PDUs to encapsulate Provisioning PDUs within the Mesh Provisioning Service.
98    - PB-GATT uses connection channels to transfer packets generated during the provisioning process. If an unprovisioned device wants to be provisioned through this method, it needs to implement the related Mesh Provisioning Service. Unprovisioned devices which don't implement such service cannot be provisioned into mesh network through PB-GATT bearer.
99  * - Provisioning
100    - Provisioning is a process of adding an unprovisioned device to a mesh network, managed by a Provisioner.
101    - The process of provisioning turns the "unprovisioned device" into a "node", making it a member of the ESP-BLE-MESH network.
102  * - Authentication Method
103    - Authentication is a step during the provisioning of nodes.
104    - There are four authentication methods for unprovisioned devices: Output OOB, Input OOB, Static OOB, and No OOB.
105  * - Input OOB
106    - Input Out-of-Band
107    - For example, a Provisioner generates and displays a random number, and then prompts users to take appropriate actions to input the random number into the unprovisioned device. Taking lighting switch as an example, users can press the button for several times in a certain period of time to input the random number displayed on the Provisioner. Authentication method of the Input OOB is similar to that of Output OOB, but the role of the device is reversed.
108  * - Output OOB
109    - Output Out-of-Band
110    - For example, an unprovisioned device will choose a random number and output the number in a way that is compatible with its functionality. If the unprovisioned device is a bulb, it can flash a specified number of times. If the unprovisioned device has an LCD screen, the random number can display as a multi-digit value. Users who start provisioning should input the observed number to authenticate the unprovisioned device.
111  * - Static OOB
112    - Static Out-of-Band
113    - Authentication method of Static OOB: use Static OOB information. Use 0 as Static OOB information if No OOB information is needed. Use Static OOB information to authenticate devices which are going through provisioning if OOB information is needed.
114  * - No OOB
115    - No Out-of-Band
116    - Authentication method of No OOB: Set the value of the Static OOB field to 0. Using this way is like not authenticating the unprovisioned devices.
117
118
119.. _ble-mesh-terminology-address:
120
121.. list-table:: Table 5 ESP-BLE-MESH Terminology - Address
122  :widths: 10 40 60
123  :header-rows: 1
124
125  * - Term
126    - Official Definition
127    - Detailed Explanation
128  * - Unassigned Address
129    - This is a special address type, with a value of 0x0000. Its use indicates that an Element has not yet been configured or had a Unicast Address assigned to it.
130    - The addresses owned by elements which has not been configured yet or no address has been allocated are unassigned addresses. These elements will not be used for messages transfer because they have no fixed address. Unassigned address is recommended to set as the value of the address before setting the address of user code.
131  * - Unicast Address
132    - A unicast address is a unique address allocated to each element.
133    - During provisioning, the Provisioner will assign a unicast address to each element of node within the life cycle of the nodes in the network. A unicast address may appear in the source/destination address field of a message. Messages sent to a unicast address can only be processed by the element that owns the unicast address.
134  * - Virtual Address
135    - A virtual address represents a set of destination addresses. Each virtual address logically represents a Label UUID, which is a 128-bit value that does not have to be managed centrally.
136    - Associated with specific UUID labels, a virtual address may serve as the publishing or subscription address of the model. A UUID label is a 128-bit value associated with elements of one or more nodes. For virtual addresses, the 15th and 14th bits are set to 1 and 0 respectively; bits from 13th to 0 are set to hash values (providing 16384 hash values). The hash is a derivation of the Label UUID. To use subscribing elements to check the full 128-bit UUID is very inefficient while hash values provide a more efficient way to determine which elements that which messages are finally sent to.
137  * - Group Address
138    - A group address is an address that is programmed into zero or more elements
139    - Group address is another kind of multicast address in the ESP-BLE-MESH network, which is usually used to group nodes. A message sent to the all-proxies address shall be processed by the primary element of all nodes that have the proxy functionality enabled. A message sent to the all-friends address shall be processed by the primary element of all nodes that have the friend functionality enabled. A message sent to the all-relays address shall be processed by the primary element of all nodes that have the relay functionality enabled. A message sent to the all-nodes address shall be processed by the primary element of all nodes.
140
141
142.. _ble-mesh-terminology-security:
143
144.. list-table:: Table 6 ESP-BLE-MESH Terminology - Security
145  :widths: 10 40 60
146  :header-rows: 1
147
148  * - Term
149    - Official Definition
150    - Detailed Explanation
151  * - Device Key (DevKey)
152    - There is also a device key, which is a special application key that is unique to each node, is known only to the node and a Configuration Client, and is used to secure communications between the node and a Configuration Client.
153    - The device key enables you to provision the devices, configure the nodes. The device key is used to encrypt Configuration Messages, i.e. the message transferred between the Provisioner and the node when the device is configured.
154  * - Application Key (AppKey)
155    - Application keys are used to secure communications at the upper transport layer.
156    - Application key is used for decryption of application data before delivering application data to application layer and encryption of them during the delivery of application layer. Some nodes in the network have a specific purpose and can restrict access to potentially sensitive data based on the needs of the application. With specific application keys, these nodes are associated with specific applications. Generally speaking, the fields using different application keys include security (access control of buildings, machine rooms and CEO offices), lighting (plant, exterior building and sidewalks) and HVAC systems. Application keys are bound to Network keys. This means application keys are only used in a context of a Network key they are bound to. An application key shall only be bound to a single Network key.
157  * - Master Security Material
158    - The master security material is derived from the network key (NetKey) and can be used by other nodes in the same network. Messages encrypted with master security material can be decoded by any node in the same network.
159    - The corresponding friendship messages encrypted with the friendship security material: 1. Friend Poll, 2. Friend Update, 3. Friend Subscription List, add/delete/confirm, 4. The Stored Messages" sent by friend nodes to Low Power node. The corresponding friendship messages encrypted with the master security material: 1. Friend Clear, 2. Friend Clear Confirm. Based on the setup of the applications, the messages sent from the Low Power node to the friend nodes will be encrypted with the friendship security material or master security material, with the former being used by the messages transmitted between Low Power node and friend nodes and the latter being used by other network messages.
160
161
162.. _ble-mesh-terminology-message:
163
164.. list-table:: Table 7 ESP-BLE-MESH Terminology - Message
165  :widths: 10 40 60
166  :header-rows: 1
167
168  * - Term
169    - Official Definition
170    - Detailed Explanation
171  * - Reassembly / Segmentation
172    - Segmentation and reassembly (SAR) is a method of communication network, which is divided into small units before transmitting packets and reassembled in a proper order at the communication receiving end.
173    - The lower transport layer will automatically segment the message whose size is too big. The receiving end will return a response message, and the transmitting end will send the data packet again that the receiving end does not receive according to the response message. This is automatically completed by the lower transport layer. Unsegmented messages have at most 15 bytes, of which 4 bytes are transMIC, so the remaining is 11 bytes; in the case of segmentation, there are 12 valid bytes in the first several packets, and 8 in the last one. Special case: A shorter packet requires mandatory segmentation from lower transport layer, in which case the valid byte is 8 bytes.
174  * - Unacknowledged / Acknowledged
175    - There are two types of messages: Unacknowledged or Acknowledged
176    - Based on the whether or not the receiving end needs to send the response message, the messages sent are divided into two kinds. The sending end should set the maximum number of retransmission.
177
178
179.. _ble-mesh-terminology-foundation-models:
180
181.. list-table:: Table 8 ESP-BLE-MESH Terminology - Foundation Models
182  :widths: 10 40 60
183  :header-rows: 1
184
185  * - Term
186    - Official Definition
187    - Detailed Explanation
188  * - Configuration Server Model
189    - This model is used to represent a mesh network configuration of a device.
190    - The node must contain the Configuration Server Model, which is responsible for maintaining configuration-related states. The states that Configuration Server Model maintains include: NetKey List, AppKey List, Model to AppKey List, Node Identity, Key Refresh Phase, Heartbeat Publish, Heartbeat Subscription, Network Transmit, Relay Retransmit etc.
191  * - Configuration Client Model
192    - The model is used to represent an element that can control and monitor the configuration of a node.
193    - The Configuration Client Model uses messages to control the state maintained by the Configuration Server Model. The Provisioner must contain the Configuration Client Model, with which the configuration messages, like Configuration Composition Data Get can be sent.
194  * - Health Server Model
195    - This model is used to represent a mesh network diagnostics of a device.
196    - The Health Server Model is primarily used by devices to check their states and see if there is an error. The states maintained by Health Server model include: Current Fault, Registered Fault, Health Period, and Attention Timer.
197  * - Health Client Model
198    - The model is used to represent an element that can control and monitor the health of a node.
199    - The Health Client Model uses messages to control the state maintained by the Health Server Model. The model can get the self-test information of other nodes through the message "Health Fault Get".
200
201
202.. _ble-mesh-terminology-network-management:
203
204.. list-table:: Table 9 ESP-BLE-MESH Terminology - Network Management
205  :widths: 10 40 60
206  :header-rows: 1
207
208  * - Term
209    - Official Definition
210    - Detailed Explanation
211  * - Key Refresh procedure
212    - This procedure is used when the security of one or more network keys and/or one or more of the application keys has been compromised or could be compromised.
213    - Key Refresh Procedure is used to update network key and application key of ESP-BLE-MESH network. Key Refresh Procedure is used when the security of one or more network keys and/or one or more application keys is threatened or potentially threatened. Keys are usually updated after some nodes in the network are removed.
214  * - IV (Initialisation Vector) Update Procedure
215    - A node can also use an IV Update procedure to signal to peer nodes that it is updating the IV Index.
216    - The IV Update procedure is used to update the value of ESP-BLE-MESH network's IV Index. This value is related to the random number required for message encryption. To ensure that the value of the random number is not repeated, this value is periodically incremented. IV Index is a 32-bit value and a shared network resource. For example, all nodes in a mesh network share the same IV Index value. Starting from 0x00000000, the IV Index increments during the IV Update procedure and maintained by a specific process, ensuring the IV Index shared in the mesh network is the same. This can be done when the node believes that it has the risk of exhausting its sequence number, or when it determines that another node is nearly exhausting its sequence number. Note: The update time must not be less than 96 hours. It can be triggered when a secure network beacon is received, or when the node determines that its sequence number is greater than a certain value.
217
218For more terms, please see: `ESP-BLE-MESH Glossary of Terms <https://www.bluetooth.com/learn-about-bluetooth/bluetooth-technology/topology-options/le-mesh/mesh-glossary/>`_.
219
220
221
222