A Hybrid Advertising Mode for Device Discovery
in Bluetooth Low Energy Networks
Abstract
Device discovery has a great impact on the performance of Bluetooth low energy (BLE). The performance of device discovery is highly related to the advertising mode. BLE has two advertising modes: pseudo-random delay advertising (RDA) and periodic deterministic advertising (PDA). Generally, PDA has low discovery latency but is susceptible to persistent collisions, whereas RDA does not suffer persistent collisions but has much larger discovery latency. In this paper, we propose a novel hybrid advertising mode, called Deterministic and pseudo-Random delay Advertising (DRA), which has the advantages of both PDA and RDA. We develop an analytical model for DRA mode based on a two-dimensional discrete-time Markov chain, and analyze the expected discovery latency of DRA in a single-advertiser case and a multiple-advertiser case. Simulation shows the accuracy of our analytical model, and also verifies that DRA can achieve an excellent tradeoff between low discovery latency and robustness to collisions.
Index Terms:
Bluetooth low energy, advertising, device discovery, latency.I Introduction
Due to extremely low energy consumption, Bluetooth Low Energy (BLE) is popular for short-range wireless communications and is available in almost all smart devices, such as smartphones, smart watches, and electronic products. Device discovery is a prerequisite for BLE communications and has a great impact on the performance of BLE. According to BLE specification, for a device to discover another device, one device must act as a scanner, and the other must act as an advertiser. BLE specifies three advertising channels, called channel 37, 38, and 39, over 2.4 GHz Industrial, Scientific and Medical (ISM) bands. An advertiser broadcasts advertisements over the three advertising channels. A scanner tries to discover advertisers by scanning the three advertising channels to receive advertisements of the advertisers.

The BLE device discovery process is specified in Generic Access Profile (GAP) of BLE. Fig. 1 shows an example of a scanner and an advertiser. An advertising event (advEvent) is periodically initiated by the advertiser. Each advEvent contains three advertising Packet Data Units (Adv PDUs), sequentially sent over the three advertising channels. The duration for an Adv PDU transmission is . After transmitting an Adv PDU on one advertising channel, the advertiser will wait for duration on the same channel for responses. As for the scanner, it scans channel 37, 38, and 39 in turn to receive Adv PDUs from the advertiser. The scanner performs a scan every duration (called scan interval). In specific, there is a scan window with duration at the beginning of a scan interval. The scanner scans one of the advertising channels within the scan window, and keeps idle until the end of the scan interval. The procedure is repeated such that the three advertising channels are scanned in turn.
Define advertising interval as the interval from the beginning of an advEvent to the beginning of the next advEvent. BLE has two advertising modes: the pseudo-random delay advertising (RDA) (specified in Bluetooth 4.2 [1]), and the periodic deterministic advertising (PDA) (specified in Bluetooth 5.0 [2]). The advertising interval in RDA, denoted by , is the summation of a fixed duration and a pseudo-random duration , while the advertising interval in PDA, denoted by , is a fixed duration. In PDA mode and RDA mode, we define advertising interval parameter (AIP) of an advertiser as the duration and expected (mean) duration, respectively, of the advertising interval.
There are research efforts in the literature that analyze BLE device discovery [3, 7, 8, 5, 6, 4]. The works in [3, 7, 8] give analytical models for RDA, by assuming that the scan window of the scanner is at least the size of the advertising interval of the advertiser (i.e., ). However, this assumption may not be practical. The works in [5, 6] use Chinese Remainder Theorem to analyze discovery latency, by approximating each duration parameter to an integer number of slots. However, this approximation may reduce the accuracy of analytical models. The work in [4] develops an analytical model for PDA mode and an analytical model for RDA mode.
It is shown in [4] that for advertisers with the same AIP, PDA has lower discovery latency than RDA. On the other hand, PDA is susceptible to persistent collisions, as follows. For two advertisers using PDA, if their advertising intervals are equal and their initial Adv PDU transmissions over an advertising channel overlap, then their Adv PDUs will collide repeatedly. RDA does not suffer persistent collisions, thanks to the pseudo-random duration in each advertising interval.
Motivated by the above advantages and disadvantages of PDA and RDA, we propose a novel hybrid advertising mode, called Deterministic and pseudo-Random delay Advertising (DRA), which combines the advantages of both PDA and RDA. The DRA works as follows. For every advertising intervals of an advertiser, the advertiser works in PDA mode for advertising intervals, and works in RDA mode for the remaining advertising interval. We build an analytical model for the DRA mode, and analyze the expected discovery latency of DRA in a single-advertiser case and a multiple-advertiser case. Simulation shows the accuracy of our analytical model, and verifies that DRA can achieve an excellent tradeoff between low discovery latency and robustness to collisions.
II Proposed DRA Mode
For PDA mode, the advertising interval, denoted by , is deterministic. For RDA mode, however, the advertising interval, denoted by , is a random variable consisting of a fixed duration and a pseudo-random duration . As per BLE specification, is uniformly distributed within the range 0 ms to 10 ms. Without loss of generality, we consider as an integer random variable that is uniformly distributed within range .
DRA is a hybrid mode combining PDA mode with advertising interval and RDA mode with advertising interval , in which the mean of is equal to . Define and the mean of as AIP of a DRA-mode advertiser. The main idea of DRA mode is as follows. Among every advertising intervals (with being a design parameter for DRA), the advertiser works in PDA for the first advertising intervals, and works in RDA for the last advertising interval.
For an advertiser to implement DRA, each advertising interval is associated with a mode index to indicate which advertising mode (PDA or RDA) will be used. Suppose the mode index of current advertising interval is (). The mode index of the next advertising interval will be . For an advertising interval with a nonzero mode index, PDA is used (i.e., the advertising interval is ). For an advertising interval with mode index being zero, RDA is used (i.e., the advertising interval is ).
III Expected Discovery Latency of DRA Mode with a Single Advertiser

We first build an analytical model for DRA mode with a single advertiser. Suppose a scanner is within the transmission range of the advertiser starting from moment , as shown in Fig. 1. After time instant , the mode index of the first complete advertising interval is assumed to be 1. So the subsequent advertising intervals have mode index . Denote as the moment at which the jth advertising interval begins. is also the time instant at which the channel-37 Adv PDU of the jth advEvent is sent. The time offset of the jth advertising interval is defined as the time difference between and the time instant at which the scanner starts to scan channel 37 right before . The initial time offset is the time offset of the first advertising interval, denoted by , as shown in Fig. 1.
Next, we investigate the discovery procedure from the perspective of time offsets of the advertising intervals. The scan interval of the scanner is time units, as shown in Fig. 1. Recall that the three advertising channels are scanned in turn. Thus, the scanner’s scan cycle has time units, as shown in Fig. 1, and the time offsets of the advertiser’s advertising intervals range from 0 to time units. Initially, the time offset of the first advertising interval is . The time offset of the second advertising interval is if the mode index of the first advertising interval is not zero, or is otherwise. The time offsets of all subsequent advertising intervals will change according to the same rule. It can be seen from Fig. 1 that if the time offset of an advertising interval is within 0 to , then the transmission of the advertiser’s Adv PDU on channel 37 of the current advertising interval will be completely within the scanner’s scan window on channel 37, i.e., the scanner discovers the advertiser on channel 37. Similarly, if the time offset of the current advertising interval is from to (or from to ), then the transmission of the advertiser’s Adv PDU on channel 38 (or channel 39) of the current advertising interval will be entirely within the scanner’s scan window on channel 38 (or channel 39), i.e., the scanner discovers the advertiser on channel 38 (or channel 39). The discovery latency is defined as the delay from the start of the advertiser’s first advertising interval to the time when a discovery occurs.
To compute the discovery latency, we build a two-dimensional discrete-time Markov chain. Denote a state of the Markov chain as , , . Here represents the time offset of the advertiser’s advertising interval, and represents the mode index of the advertiser. Define absorbing state as a state that discovery happens. State is an absorbing state if () because at the state, the scanner will discover the advertiser on channel 37. Similarly, State is also an absorbing state if with (or with ) because at the state, the scanner will discover the advertiser on channel 38 (or channel 39). Fig. 2 shows states of the Markov chain, including absorbing states for channel 37, 38, and 39, and other states (called transient states).

We sample the state of the system over each advertising interval of the advertiser. The state evolution forms a two-dimensional discrete-time Markov chain. Fig. 3 shows the transition probability graph of the two-dimensional discrete-time Markov chain. For an absorbing state , its transition probability is to itself, and is to any other state, as shown in Fig. 3(a). For a transient state :
-
•
If (i.e., the advertiser works in PDA mode), the time offset of the next advertising interval is , and the mode index of the next advertising interval is . In other words, the next state is , as shown in Fig. 3(b).
-
•
If , it means that the advertiser is in RDA mode. Recall that the pseudo-random component () of the advertising interval is an integer random variable that is uniformly distributed within range . So the time offset of the next advertising interval can be , , , or , each with probability of , and the mode index of the next advertising interval will be , as shown in Fig. 3(c).
Let denote transition probability from state to , and denote the expected number of transitions for the Markov chain to evolve from state to an absorbing state. We have
(4) |
Based on (4), we can calculate for each state . Then the expected discovery latency of the scanner, denoted as , is given as
(5) |
IV Expected Discovery Latency of DRA Mode with Multiple Advertisers
In this section, we analyze the discovery performance of DRA with multiple advertisers. Consider a target scanner, a target advertiser, and a number of surrounding advertisers. All the advertisers adopt DRA mode. Recall that for a DRA-mode advertiser, the in PDA mode and the mean of in RDA mode are equal and are called the AIP of the advertiser.
Consider the two-dimensional Markov chain for the target scanner to discover the target advertiser. Suppose an absorbing state is achieved, i.e., on an advertising channel, an Adv PDU of the target advertiser (called the target Adv PDU) is completely included within a scan window of the target scanner. If one surrounding advertiser (called colliding advertiser) also transmits Adv PDU on that advertising channel and the Adv PDU overlaps with the target Adv PDU, a collision occurs, and we call the absorbing state a collided absorbing state. So the Markov chain will continue to evolve from the collided absorbing state to next states. If the target and colliding advertisers have different AIPs, then the collision is called a non-persistent collision, because it is likely that when the system enters the next absorbing state, the colliding advertiser will not collide with the target advertiser again. However, if the target and colliding advertisers have the same AIP and both work in PDA mode, then the collision will continue for a period of time. The collision may be resolved when either the target or the colliding advertiser enters RDA mode, thanks to the pseudo-random delay component of the advertising interval in RDA mode. We call this kind of collision temporary persistent collision. Next, we analytically derive the expected discovery latency with possible collisions.
Denote the AIP of the target advertiser as . Among all surrounding advertisers, totally advertisers have their AIPs different from , called group-1 advertisers, and totally advertisers have their AIPs being equal to , called group-2 advertisers. For the group-1 advertisers, denote their AIPs as . So if a group-1 advertiser collides with the target advertiser, it is a non-persistent collision. If a group-2 advertiser collides with the target advertiser, it is a temporary persistent collision.
Consider an absorbing state of the two-dimensional Markov chain for the target scanner to discover the target advertiser. At the absorbing state, the probability that the th group-1 advertiser collides with the target advertiser is , and the probability that a group-2 advertiser collides with the target advertiser is . So overall, the probability of no collision at the absorbing state is
(6) |
If a collision happens at the absorbing state, the absorbing state is a collided absorbing state. Next we discuss what happens if the system enters a collided absorbing state, say state . So, the system should treat as a transient state and push it to the next state, say , according to the transition probability graph shown in Fig. 3(b) and 3(c). Denote as the number of transitions from collided absorbing state to the next absorbing state.
If , the next state only has one option as shown in Fig. 3(b), and we have , with . If , the next state has options as shown in Fig. 3(c), as with , with . So we have
Thus, the average number of transitions from a collided absorbing state to the next absorbing state is given as
(7) |
Here the term is due to the fact that the collided absorbing state could be any one of the totally absorbing states of the Markov chain.
Denote as the expected duration from a collided absorbing state to discovery (i.e., to an absorbing state with no collision). Then, the expected discovery latency for the target advertiser is given as
(8) |
with given in (5). Next we derive an expression of .
Denote and as the expected duration from a collided absorbing state that is caused by a collision with a group-1 advertiser and a group-2 advertiser, respectively, to the discovery of the target advertiser. We have
(9) |
with being the probability that a collided absorbing state is caused by a collision with a group-1 advertiser.
From a collided absorbing state caused by a collision with a group-1 advertiser, it takes (on average) transitions to reach the next absorbing state ( given in (7)). If the next absorbing state does not have collision (with probability ), then discovery happens; otherwise, we need duration to reach discovery. Thus, we have
(10) |
If a collided absorbing state is caused by a collision with a group-2 advertiser, this collision is a temporary persistent collision. Suppose the temporary persistent collision happens when the mode indexes of the target advertiser and the colliding advertiser is and , respectively, , . So, it takes the target advertiser transitions such that the target advertiser enters RDA mode. Similarly, it takes the colliding advertiser transitions such that the colliding advertiser enters RDA mode. Since the added random delay (with mean value of 5 ms) in RDA mode is much larger than (no more than 800 s [4]), once the target advertiser or the colliding advertiser enters RDA mode, it is considered that the temporary persistent collision has been resolved. Before either advertiser enters RDA mode, any absorbing state for the target advertiser will be a collided absorbing state. Thus, the Markov chain for the target advertiser will re-enter collided absorbing state(s) times ( being the floor function). Denote as the expected duration for re-entering those collided absorbing states, we have
(11) |
Thus, we have
(12) |
V Performance Evaluation
We use a customized C++ simulator to simulate expected discovery latency of our proposed DRA mode and compare with our analytical expressions of the expected discovery latency. In simulation, advertisers use a data rate of 1 Mbps to broadcast non-connectable undirected advertising PDUs, i.e., ADV NONCONN IND. We set s and s, as indicated in [4]. For RDA mode, the pseudo-random delay is an integer random variable that is uniformly distributed over the interval from 0 to s. As suggested by [4], we set s and s in all simulation, unless otherwise specified. Each simulated value is the average of 1,000,000 simulation runs.
We first study the performance of DRA mode with a single advertiser. Fig. 4 shows the analyzed and simulated expected discovery latency of DRA mode when the advertiser’s AIP ( and the mean of ) changes from 20,000 s to 590,000 s. It is seen that with different values of , our analytical results that are calculated by (5) and the simulated values match well, which verifies the correctness of our analysis model. For comparison purpose, the simulated expected discovery latency of PDA mode with different AIP () and RDA mode with different AIP (the mean of ) are also shown in Fig. 4. As expected, DRA’s expected discovery latency is in between those of the PDA and RDA. DRA’s performance is closer to that of RDA when is small. As increases, the performance of DRA is approaching to that of PDA.
Next, we study the performance of DRA mode with interference by surrounding advertisers. The AIP of the target advertiser is set to . For each surrounding advertiser, its AIP is uniformly selected from . Fig. 5 shows the analyzed and simulated expected discovery latency when all advertisers adopt DRA mode and the number of surrounding advertisers ranges from 10 to 100. It is seen that the analytical and simulation results match well. For comparison, we also simulate the cases when all advertisers adopt PDA and when all advertisers adopt RDA. The simulated expected discovery latency values are also shown in Fig. 5. Note that when all advertisers adopt PDA, if the target advertiser collides with a surrounding advertiser whose AIP is also , then the collision will be persistent (i.e., the two advertisers will collide forever), and the discovery latency will become infinite. In particular, when the number of surrounding advertisers changes from 10 to 100 (with step size 5), the probability of persistent collision in our simulation is 1.19%, 2.07%, 2.49%, 3.38%, 4.24%, 4.66%, 5.49%, 6.30%, 6.78%, 7.61%, 8.34%, 8.78%, 9.43%, 10.32%, 10.68%, 11.39%, 12.31%, 12.64%, and 13.42%, respectively. Thus, in Fig. 5, for the PDA curve (i.e., all advertisers adopt PDA), each simulated value is the average of the simulation runs in which a persistent collision does not happen. It can be seen that, when persistent collision does not happen, PDA has the lowest discovery latency. RDA does not suffer persistent collision, but has the largest discovery latency. Our proposed DRA achieves a better tradeoff between PDA and RDA. In other words, DRA does not suffer persistent collision, and has lower expected discovery latency than RDA.
VI Conclusions
In this paper, we propose the DRA, to take the advantages of both PDA and RDA. We develop an analytical model for DRA mode based on a two-dimensional discrete-time Markov chain, and analyze the expected discovery latency of DRA for a single-advertiser case and for a multiple-advertiser case. It is shown that DRA can achieve excellent tradeoff between low discovery latency and robustness to collisions.
References
- [1] Bluetooth SIG. Specification of the Bluetooth System. 02 December 2014. Core Version 4.2. [Online]. (Available: https://www.bluetooth. com/specifications/archived-specifications)
- [2] Bluetooth SIG. Specification of the Bluetooth System. December 2016. Core Version 5.0. [Online]. (Available: https://www.bluetooth.com/specifications/bluetooth-core-specification/)
- [3] J. Liu, C. Chen, and Y. Ma, “Modeling neighbor discovery in Bluetooth low energy networks,” IEEE Commun. Lett., vol. 16, no. 9, pp. 1439–1441, Sep. 2012.
- [4] Z. Shen, Q. Yang, and H. Jiang, “Multichannel neighbor discovery in Bluetooth low energy networks: Modeling and performance analysis,” IEEE Trans. Mob. Comput., vol. 22, no. 4, pp. 2262-2280, Apr. 2023.
- [5] W. S. Jeon, M. H. Dwijaksara, and D. G. Jeong, “Performance analysis of neighbor discovery process in Bluetooth low-energy networks,” IEEE Trans. Veh. Technol., vol. 66, no. 2, pp. 1865–1871, Feb. 2017.
- [6] B. Luo, J. Xu, and Z. Sun, “Neighbor discovery latency in bluetooth low energy networks,” Wirel. Networks, vol. 26, no. 3, pp. 1773–1780, Apr. 2020.
- [7] K. Cho, W. Park, M. Hong, G. Park, W. Cho, J. Seo, and K. Han, “Analysis of Latency Performance of Bluetooth Low Energy (BLE) Networks,” Sensors, vol. 15, no. 1, pp. 59–78, Dec. 2015.
- [8] C. Julien, C. Liu, A. L. Murphy, and G. Pietro Picco, “BLEnd : Practical Continuous Neighbor Discovery for Bluetooth Low Energy,” in Proc. Int. Conf. Inf. Processing in Sensor Networks (IPSN) 2017, pp. 105–116.

