This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

A Hybrid Advertising Mode for Device Discovery
in Bluetooth Low Energy Networks

Zhong Shen, Hai Jiang, Rongfei Fan, and Hongxing Guo Z. Shen is with the School of Telecommunications Engineering, Xidian University, Xi’an 710071, China, and is also with Guangzhou Institute of Technology, Xidian University, Guangzhou, Guangdong 510555, China (e-mail: [email protected]). H. Jiang is with the Department of Electrical and Computer Engineering, University of Alberta, Edmonton, AB, Canada T6G 2V4 (e-mail: [email protected]). R. Fan is with the School of Cyberspace Science and Technology, Beijing Institute of Technology, Beijing 100081, P. R. China (e-mail: [email protected]). H. Guo is with the School of Computer Science and Technology, Huazhong University of Science and Technology, Wuhan 430074, China (e-mail: [email protected]).
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.

Refer to caption
Figure 1: BLE scanning and advertising.

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 τ\tau. After transmitting an Adv PDU on one advertising channel, the advertiser will wait for duration δ\delta 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 TsT_{s} duration (called scan interval). In specific, there is a scan window with duration TwT_{w} 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 T^a\hat{T}_{a}, is the summation of a fixed duration TT_{\ell} and a pseudo-random duration TdT_{d}, while the advertising interval in PDA, denoted by TaT_{a}, 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., TwT^aT_{w}\geq\hat{T}_{a}). 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 mm advertising intervals of an advertiser, the advertiser works in PDA mode for m1m-1 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 TaT_{a}, is deterministic. For RDA mode, however, the advertising interval, denoted by T^a\hat{T}_{a}, is a random variable consisting of a fixed duration T{T_{\ell}} and a pseudo-random duration TdT_{d}. As per BLE specification, TdT_{d} is uniformly distributed within the range 0 ms to 10 ms. Without loss of generality, we consider TdT_{d} as an integer random variable that is uniformly distributed within range {0,1,2,,r}\{0,1,2,...,r\}.

DRA is a hybrid mode combining PDA mode with advertising interval TaT_{a} and RDA mode with advertising interval T^a\hat{T}_{a}, in which the mean of T^a\hat{T}_{a} is equal to TaT_{a}. Define TaT_{a} and the mean of T^a\hat{T}_{a} as AIP of a DRA-mode advertiser. The main idea of DRA mode is as follows. Among every mm advertising intervals (with mm being a design parameter for DRA), the advertiser works in PDA for the first m1m-1 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 ii (m1i0m-1\geq i\geq 0). The mode index of the next advertising interval will be (i+1)modm(i+1)\bmod m. For an advertising interval with a nonzero mode index, PDA is used (i.e., the advertising interval is TaT_{a}). For an advertising interval with mode index being zero, RDA is used (i.e., the advertising interval is T^a\hat{T}_{a}).

III Expected Discovery Latency of DRA Mode with a Single Advertiser

Refer to caption
Figure 2: States of the two-dimensional discrete-time Markov chain for DRA mode.

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 t0t_{0}, as shown in Fig. 1. After time instant t0t_{0}, the mode index of the first complete advertising interval is assumed to be 1. So the subsequent advertising intervals have mode index 2,3,,m1,0,1,22,3,...,m-1,0,1,2.... Denote tjt_{j} as the moment at which the jth advertising interval begins. tjt_{j} 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 tjt_{j} and the time instant at which the scanner starts to scan channel 37 right before tjt_{j}. The initial time offset is the time offset of the first advertising interval, denoted by ϕ\phi, 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 TsT_{s} time units, as shown in Fig. 1. Recall that the three advertising channels are scanned in turn. Thus, the scanner’s scan cycle has 3Ts3T_{s} time units, as shown in Fig. 1, and the time offsets of the advertiser’s advertising intervals range from 0 to 3Ts13T_{s}-1 time units. Initially, the time offset of the first advertising interval is ϕ\phi. The time offset of the second advertising interval is (ϕ+Ta)mod3Ts(\phi+{T_{a}})\bmod 3{T_{s}} if the mode index of the first advertising interval is not zero, or is (ϕ+T^a)mod3Ts(\phi+\hat{T}_{a})\bmod 3{T_{s}} 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 TwτT_{w}-\tau, 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 Tsτδ{T_{s}}-\tau-\delta to (Tsτδ)+Twτ({T_{s}}-\tau-\delta)+T_{w}-\tau (or from 2(Tsτδ)2({T_{s}}-\tau-\delta) to 2(Tsτδ)+Twτ2({T_{s}}-\tau-\delta)+T_{w}-\tau), 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 (x,y)(x,y), x{0,1,,3Ts1}x\in\{0,1,\cdots,3{T_{s}}-1\}, y{0,1,,m1}y\in\{0,1,\cdots,m-1\}. Here xx represents the time offset of the advertiser’s advertising interval, and yy represents the mode index of the advertiser. Define absorbing state as a state that discovery happens. State (x,y)(x,y) is an absorbing state if x{0,1,,ω}x\in\{0,1,\cdots,\omega\} (ωTwτ\omega\triangleq{T_{w}}-\tau) because at the state, the scanner will discover the advertiser on channel 37. Similarly, State (x,y)(x,y) is also an absorbing state if x{O,O+1,,O+ω}x\in\{{O^{\prime}},O^{\prime}+1,\cdots,{O^{\prime}}+\omega\} with OTsτδ{O^{\prime}}\triangleq{T_{s}}-\tau-\delta (or x{O′′,O′′+1,,O′′+ω}x\in\{{O^{\prime\prime}},O^{\prime\prime}+1,\cdots,{O^{\prime\prime}}+\omega\} with O′′2(Tsτδ){O^{\prime\prime}}\triangleq 2({T_{s}}-\tau-\delta)) 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).

Refer to caption
Figure 3: Transition probability graph of the two-dimensional discrete-time Markov chain.

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 (x,y)(x,y), its transition probability is 11 to itself, and is 0 to any other state, as shown in Fig. 3(a). For a transient state (x,y)(x,y):

  • If y0y\neq 0 (i.e., the advertiser works in PDA mode), the time offset of the next advertising interval is (x+Ta)mod3Ts(x+{T_{a}})\bmod 3{T_{s}}, and the mode index of the next advertising interval is (y+1)modm(y+1)\bmod m. In other words, the next state is ((x+Ta)mod3Ts,(y+1)modm)\big{(}(x+{T_{a}})\bmod 3{T_{s}},(y+1)\bmod m\big{)}, as shown in Fig. 3(b).

  • If y=0y=0, it means that the advertiser is in RDA mode. Recall that the pseudo-random component (TdT_{d}) of the advertising interval T^a\hat{T}_{a} is an integer random variable that is uniformly distributed within range {0,1,2,,r}\{0,1,2,...,r\}. So the time offset of the next advertising interval can be (x+T)mod3Ts(x+{T_{\ell}})\bmod 3{T_{s}}, (x+T+1)mod3Ts(x+{T_{\ell}}+1)\bmod 3{T_{s}}, \cdots, or (x+T+r)mod3Ts(x+{T_{\ell}}+r)\bmod 3{T_{s}}, each with probability of 1r+1\frac{1}{{r+1}}, and the mode index of the next advertising interval will be (y+1)modm(y+1)\bmod m, as shown in Fig. 3(c).

Let p(x,y),(x,y){p_{(x,y),({x^{\prime}},{y^{\prime}})}} denote transition probability from state (x,y)(x,y) to (x,y)(x^{\prime},y^{\prime}), and μ(x,y){\mu_{(x,y)}} denote the expected number of transitions for the Markov chain to evolve from state (x,y)(x,y) to an absorbing state. We have

μ(x,y)=0,if(x,y)isanabsorbingstate,μ(x,y)=1+x=03Ts1y=0m1p(x,y),(x,y)μ(x,y),if(x,y)isatransientstate.\displaystyle\begin{array}[]{l}{\mu_{(x,y)}}=0,{{\rm{~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}if~{}}}(x,y){\rm{~{}is~{}an~{}absorbing~{}state}}},\\ {\mu_{(x,y)}}=1+\sum\limits_{{x^{\prime}}=0}^{3{T_{s}}-1}{\sum\limits_{{y^{\prime}}=0}^{m-1}{{p_{(x,y),({x^{\prime}},{y^{\prime}})}}}}{\mu_{({x^{\prime}},{y^{\prime}})}},\\ {{\rm{~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}if~{}}}(x,y){\rm{~{}is~{}a~{}transient~{}state}}}.\end{array} (4)

Based on (4), we can calculate μ(x,y){\mu_{(x,y)}} for each state (x,y)(x,y). Then the expected discovery latency of the scanner, denoted as XX, is given as

X=Ta3Ts×mx=03Ts1y=0m1μ(x,y).X=\frac{T_{a}}{{3{T_{s}}\times m}}\sum\limits_{x=0}^{3{T_{s}}-1}{\sum\limits_{y=0}^{m-1}{{\mu_{(x,y)}}}}. (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 TaT_{a} in PDA mode and the mean of T^a\hat{T}_{a} 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 TaT_{a}. Among all surrounding advertisers, totally N1N_{1} advertisers have their AIPs different from TaT_{a}, called group-1 advertisers, and totally N2N_{2} advertisers have their AIPs being equal to TaT_{a}, called group-2 advertisers. For the N1N_{1} group-1 advertisers, denote their AIPs as Ta,1,Ta,2,,Ta,N1T_{a,1},T_{a,2},...,T_{a,N_{1}}. 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 iith group-1 advertiser collides with the target advertiser is 2τTa,i\frac{2\tau}{T_{a,i}}, and the probability that a group-2 advertiser collides with the target advertiser is 2τTa\frac{2\tau}{T_{a}}. So overall, the probability of no collision at the absorbing state is

Pno-col=[i=1N1(12τTa,i)](12τTa)N2.P_{\text{no-col}}=\left[\prod\limits_{i=1}^{N_{1}}{(1-\frac{{2\tau}}{{T}_{a,i}})}\right](1-\frac{2\tau}{T_{a}})^{N_{2}}. (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 (x,y)(x,y). So, the system should treat (x,y)(x,y) as a transient state and push it to the next state, say (x,y)(x^{\prime},y^{\prime}), according to the transition probability graph shown in Fig. 3(b) and 3(c). Denote K(x,y)K_{(x,y)} as the number of transitions from collided absorbing state (x,y)(x,y) to the next absorbing state.

If y0y\neq 0, the next state (x,y)(x^{\prime},y^{\prime}) only has one option as shown in Fig. 3(b), and we have K(x,y)=1+μ(x,y)K_{(x,y)}=1+\mu_{(x^{\prime},y^{\prime})}, with x=x+Tamod3Ts,y=(y+1)modmx^{\prime}=x+T_{a}\bmod 3T_{s},~{}y^{\prime}=(y+1)\bmod m. If y=0y=0, the next state (x,y)(x^{\prime},y^{\prime}) has r+1r+1 options as shown in Fig. 3(c), as (x0,y),(x1,y),,(xr,y)(x^{\prime}_{0},y^{\prime}),(x^{\prime}_{1},y^{\prime}),...,(x^{\prime}_{r},y^{\prime}) with xj=x+T+jmod3Ts,y=y+1modmx^{\prime}_{j}=x+T_{\ell}+j\bmod 3T_{s},~{}y^{\prime}=y+1\bmod m, with j{0,1,2,,r}j\in\{0,1,2,...,r\}. So we have

K(x,y)=1r+1j=0r(1+μ(xj,y)).K_{(x,y)}=\frac{1}{r+1}\sum_{j=0}^{r}(1+\mu_{(x^{\prime}_{j},y^{\prime})}).

Thus, the average number of transitions from a collided absorbing state to the next absorbing state is given as

γ=13(ω+1)m(x,y) is absorbing stateK(x,y).\gamma=\frac{1}{3(\omega+1)m}\sum_{\text{$(x,y)$ is absorbing state}}K_{(x,y)}. (7)

Here the term 13(ω+1)m\frac{1}{3(\omega+1)m} is due to the fact that the collided absorbing state (x,y)(x,y) could be any one of the totally 3(ω+1)m3(\omega+1)m absorbing states of the Markov chain.

Denote HH 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

X+(1Pno-col)HX+(1-P_{\text{no-col}})H (8)

with XX given in (5). Next we derive an expression of HH.

Denote H1H_{1} and H2H_{2} 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

H=P1H1+(1P1)H2H=P_{1}H_{1}+(1-P_{1})H_{2} (9)

with P1=i=1N12τTa,ii=1N12τTa,i+N22τTaP_{1}=\frac{\sum_{i=1}^{N_{1}}\frac{2\tau}{T_{a,i}}}{\sum_{i=1}^{N_{1}}\frac{2\tau}{T_{a,i}}+N_{2}\frac{2\tau}{T_{a}}} 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) γ\gamma transitions to reach the next absorbing state (γ\gamma given in (7)). If the next absorbing state does not have collision (with probability Pno-colP_{\text{no-col}}), then discovery happens; otherwise, we need duration HH to reach discovery. Thus, we have

H1=γTa+(1Pno-col)H.H_{1}=\gamma T_{a}+(1-P_{\text{no-col}})H. (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 uu and vv, respectively, u{0,1,,m1}u\in\{0,1,\cdots,m-1\}, v{0,1,,m1}v\in\{0,1,\cdots,m-1\}. So, it takes the target advertiser (mu)(m-u) transitions such that the target advertiser enters RDA mode. Similarly, it takes the colliding advertiser (mv)(m-v) 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 2τ2\tau (no more than 800 μ\mus [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) min{mu,mv}γ\left\lfloor{\frac{{\min\{m-u,m-v\}}}{{{\gamma}}}}\right\rfloor times (\lfloor\cdot\rfloor being the floor function). Denote R{R} as the expected duration for re-entering those collided absorbing states, we have

R=γ×Tam2u=0m1v=0m1min{mu,mv}γ.R=\frac{{{\gamma}\times{T_{a}}}}{{{m^{2}}}}\sum\limits_{u=0}^{m-1}{\sum\limits_{v=0}^{m-1}{\left\lfloor{\frac{{\min\{m-u,m-v\}}}{{{\gamma}}}}\right\rfloor}}. (11)

Thus, we have

H2=R+γTa+(1Pno-col)H.H_{2}=R+\gamma T_{a}+(1-P_{\text{no-col}})H. (12)

From (9), (10), and (12), we have

H=γTa+(1P1)RPno-col.H=\frac{\gamma T_{a}+(1-P_{1})R}{P_{\text{no-col}}}. (13)

Thus, the expected discovery latency for the target advertiser is given as in (8), with HH given as (13).

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 τ=376\tau=376 μ\mus and δ=437\delta=437 μ\mus, as indicated in [4]. For RDA mode, the pseudo-random delay TdT_{d} is an integer random variable that is uniformly distributed over the interval from 0 to 10,000μ10,000\ \mus. As suggested by [4], we set Ts=310,000μT_{s}=310,000\ \mus and Tw=10,375μT_{w}=10,375\ \mus 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 (TaT_{a} and the mean of T^a\hat{T}_{a}) changes from 20,000 μ\mus to 590,000 μ\mus. It is seen that with different values of mm, 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 (TaT_{a}) and RDA mode with different AIP (the mean of T^a\hat{T}_{a}) 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 mm is small. As mm 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 170ms170{\rm ms}. For each surrounding advertiser, its AIP is uniformly selected from {100ms,170ms,250ms}\{100{\rm ms},170{\rm ms},250{\rm ms}\}. 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 170ms170{\rm ms}, 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.
Refer to caption
Figure 4: Expected discovery latency in DRA mode, PDA mode, and RDA mode with a single advertiser.
Refer to caption
Figure 5: Expected discovery latency in DRA mode, PDA mode (when persistent collision does not happen), and RDA mode with multiple advertisers.