
2 BACKGROUND
BLE supports three modes to transfer data: the connection-less
legacy advertising mode, the connection-less extended advertising
mode, and the connection-based mode. Connection-less communica-
tion is usually used to enable the discovery of services and to broad-
cast data for further processing to unknown peers. Connection-
based communication aims for communication between direct
peers, e.g., in the IP over BLE standard [
15
,
28
]. This section briey
presents core background on all three modes with a focus on em-
bedding data.
2.1 Connection-less BLE Communication
Legacy advertising is used in Bluetooth Mesh [
17
] and the extended
advertising mode was introduced in Bluetooth 5.0 [16].
Legacy Advertising.
Legacy advertising supports a maximum pay-
load of 31 bytes. The advertisement packets are sent periodically in
so-called advertising events during an advertising interval, depend-
ing on the conguration between 20ms and 10.48s, see Figure 1.
Each advertisement packet is sent via the primary advertisement
channels, three predened channels that are exclusively reserved
for advertisements to achieve some level of robustness. This mode
is unidirectional (no link layer acknowledgements) and unmanaged
(no CSMA scheme).
To receive advertisements, nodes listen periodically on one of
the primary advertising channels (scan event) based on the scan
interval. An active radio in RX mode is expensive in terms of energy.
The Bluetooth standard, thus, allows the receiver during each scan
event to only activate the radio during the scan window. If the scan
window is shorter than the advertising interval, advertising packets
might get lost. There exist a number of approaches on how these
parameters can be optimized to balance energy usage and delivery
probability [24, 34, 35].
In common advertising use-cases (e.g., beaconing), devices use
a xed payload. When considering less predictable application
data such as carried in IP packets, this data should preferably be
sent within a single advertising event. Since there is no guarantee
that an advertising event is received, a single payload is typically
transmitted in multiple advertising events, hence implementing
a xed number of link layer packet retransmissions. This is, for
example, applied in Bluetooth Mesh, which defaults to carry the
same payload in 5 connection events [17].
When transmitting IP data using legacy advertisements, the
limited payload becomes a major bottleneck. To encapsulate IP data
into the payload of advertising packets, an additional advertising
data header of at least 6 bytes is required, leaving only 25 bytes for IP
data. Even when using header compression techniques (e.g., dened
in 6LoWPAN [
7
,
22
]), packet fragmentation would then be needed.
Extended Advertising.
Extended advertising allows for larger
payloads and is based on legacy advertising. Instead of carrying
data in (very limited) packets via the primary channels, extended
advertising uses these packets to refer to one of 37 data channels
and a start time. The actual payload is then sent at the specied
start time on the given data channel in one or more chained data
packets (see Figure 1).
A A
time
Legacy advertising
A B B B
Extended advertising
Connection-based
PPP
A
A A
Ack A Ack B Ack B Ack
P P P B B
C37 C38 C39 Cn [0:36] Cn+1 [0:36]
C37 C38 C39
Cn [0:36] Cn+1 [0:36]
TX RX
C37 C38 C39
C37 C38 C39
Advertising event N Advertising event N+1
Connection Event N
Advertising event N+1
Connection Event N+1
Advertising event N
time
time
150µs
150µs
[0:10ms]
[0:10ms][300µs:2.45s]
[20ms:10.48s]
[20ms:10.48s]
[7.5ms:4s]
Figure 1: BLE packet ow when transferring payloads A
and B using legacy and extended advertisements as well as
connection-based communication.
By containing only a short pointer, the packets sent on the 3
advertising channels need less air time for transmission. This re-
duces collision probability on those potentially crowded channels.
The collision probability for data packets is reduced by utilizing all
37 data channels for their transmission.
By splitting the payload over multiple chained packets, extended
advertising allows to transfer up to 65 Kbytes in a single advertising
event. Fragmentation and reassembly into link layer data packets is
done by the Bluetooth controller, which relieves higher layers from
implementing fragmentation schemes to transfer full IPv6 MTUs.
2.2 Connection-based BLE Communication
In contrast to advertisements, which are transmitted in the broad-
cast domain, BLE connections are always point-to-point. In a con-
nection between two nodes, one node acts as connection coordinator
while the peer node is the connection subordinate.
1
Similar to adver-
tising events, the communication in the connection-based mode is
structured into connection events. Each connection event consists of
at least a single data packet exchange between the coordinator and
subordinate. This can be repeated multiple times in the same event
until no payload is left to send or the next connection event starts.
If one of the peers has no data to send, it will send empty packets.
Each connection event takes place on one of the 37 available data
channels.
BLE connections provide a point-to-point service guaranteeing
rst-in-rst-out, in-order, and complete data delivery. To achieve
this, data packets are retransmitted on the link layer until they
are acknowledged. If by either side no valid packet is received
during a specic amount of time, the connection is considered
lost and is closed. Consequently, as long as connections are active,
there is no packet loss on the link layer [
32
]. The IP over BLE
standard [13, 15, 28] is using this connection-based mode.
1
The terms “coordinator” and “subordinate” used in this paper diverge from Bluetooth
specications, to support non-discriminatory language.
2