Abstract
During the initial deployment time, wireless sensors continually search their neighbors. The neighbor discovery is not an one-time event because the network topology can be changed anytime due to node mobility and failure. The neighbor discovery protocol helps sensor nodes to find neighboring sensors within their communication range. This study proposes a novel neighbor discovery protocol called the prime-number-assisted block-based neighbor discovery protocol, which intelligently changes the sensor schedules based on the greater common divisor of two sensors’ discovery cycle lengths. For example, for two sensors whose duty cycles are different, if the lengths of their discovery schedules are relatively prime, the prime-number-assisted block-based neighbor discovery protocol simply uses the balanced incomplete block design–based neighbor discovery protocol without adding any additional active slots; otherwise, it changes the original balanced incomplete block design–based schedule using a prime number. In this study, we compare the performances of prime-number-assisted block-based neighbor discovery protocol and other recently proposed neighbor discovery protocols (U-Connect, Disco, SearchLight, and Hedis) using a TOSSIM simulator. The experimental results confirm the superiority of prime-number-assisted block-based neighbor discovery protocol over other neighbor discovery protocols in terms of discovery latency and energy consumptions.
Introduction
In wireless sensor networks (WSNs), sensor nodes are typically battery-powered, and the replacement of the battery may not be practical. So, each sensor turns on and off its radio module in order to reduce the energy consumption. However, a sensor cannot effectively determine when to communicate with its neighbors until it receives neighbor’s radio On/Off schedule. Therefore, a protocol for exchanging sensor’s radio On/Off pattern information is required.
A Neighbor Discovery Protocol (NDP) determines sensor’s sleep/wake schedule that is appropriate for a given duty cycle. By using the sleep/awake schedule, a sensor node determines when to turn its radio module on or off. Another important property of NDPs is that they must guarantee the existence of a specific point of time for any pair of neighboring nodes to be active simultaneously so that they can communicate with each other at this rendezvous moment.
In a symmetrical mode, all sensors operate at the same duty cycle. In contrast, in the asymmetrical duty cycle mode, the duty cycles of two neighbors are considered to be heterogeneous. The applications of WSNs have various traffic and monitoring requirements, and a set of neighboring sensors may operate with different duty cycles. Consequently, the capability of supporting both symmetric and asymmetric duty cycle modes is strongly desired.
The Balanced Incomplete Block Design (BIBD)–based NDP is known as an optimal solution for neighbor discovery in terms of the worst-case discovery latency for a given duty cycle. 1 However, the BIBD-based NDP is only applicable to WSNs with a symmetrical duty cycle mode.
To address the problem of the incompatibility of the BIBD-based NDP in an asymmetrical duty cycle environment, the prime-number-based NDP Prime Block Design (PBD) 2 adds mandatory wake-up slots when the slot indexes are multiple of the selected prime number. These additional active slots allow two neighboring sensors with different duty cycles to communicate with each other. However, due to the additional wake-up slots, PBD increases the energy consumption.
In this article, we propose a variation of the BIBD-based NDP, called the prime-number-assisted block-based neighbor discovery protocol (PNB-NDP) that supports both the symmetrical and asymmetrical duty cycle modes. The key contributions of this article are as follows. First, we proved that, when the lengths of two BIBD-based discovery schedules used by two neighbors are relatively prime, there always exists overlapping active slots between two sensors without having any additional active slot. Second, when the lengths of two BIBD-based discovery schedules used by two neighbors are not relatively prime, the proposed protocol guarantees the existence of overlapping active slots between any pair of sensors by adding mandatory prime-based wake-up slots to the schedule of only one sensor. Finally, by implementing several representative NDPs as well as PNB in the TOSSIM simulator and Power TOSSIM Module, we conducted a simulation study. The results of our experiments show that the proposed PNB-NDP outperforms other NDPs in terms of energy efficiency and discovery latency.
The article is structured as follows: in the “Related work” section, we summarize the representative NDPs in the literature. The “Background and problem statement” section discusses the relationship between BIBD and discovery schedule, and shows the problems of BIBD in asymmetric WSNs. “The PNB-NDP” section elaborates a new neighbor discovery approach called PNB-NDP. The “Experimental analysis” section presents the results of our experimental study. Finally, the conclusion and future works are discussed in the “Conclusion” section.
Related work
There are many NDPs proposed for sensor networks in the literature. We categorize the representative NDPs in the literature into the following three groups: BIBD-based NDPs, matrix-based NDPs, and prime-number-based NDPs.
In matrix-based NDPs, discovery schedules are derived from an
Another popular approach to construct a discovery schedule is using prime numbers. We categorize this scheduling construction approach as prime-number-based NDPs in this article. Note that most prime-based NDPs naturally support both symmetric and asymmetric operations because adding active slots at the slot prime indexes always have a rendezvous point (a common active slot) between any two sensors. This property is conferred by the Chinese Remainder Theorem (CRT). 6 Two popular NDPs based on prime numbers are Disco 7 and U-Connect. 8 In Disco, each sensor randomly chooses a prime number to build its discovery schedule. When two neighboring sensors choose distinct prime numbers, there always exist common active slots between two discovery schedules because two selected prime numbers are relatively prime. Unlike Disco, U-Connect uses a single prime number to build discovery schedules. To construct a new discovery schedule, U-Connect adds active slots up to half of the cycle length and adds periodic active slots using a prime number. The main drawback of the prime-based NDPs is the discovery latency. The worst-case discovery latency of prime-based NDPs is the product of two prime numbers. Therefore, if a pair of sensors uses a large prime number for building their discovery schedules, the worst-case discovery latency between these two neighboring sensors would increase significantly.
The last category of NDPs is BIBD-based NDPs that constructs sensor schedules through block designs. 1 Constructing neighbor discovery schedules using block designs was initially introduced for networks with a homogeneous duty cycle (symmetric networks), and it was proved that the BIBD-based approach produces an optimal solution for the neighbor discovery problem in a symmetric network. However, it might be unsuitable for heterogeneous WSN applications due to the lack of supporting asymmetric neighbor discovery operations. To overcome this problem, we proposed several NDPs such as OR-based 9 and XOR-based 10 NDPs. However, these approaches require a number of additional active slots, which increases the energy consumption during the neighbor discovery phase.
Recently, PBD has been proposed in Lee et al. 2 However, to support both symmetric and asymmetric configurations, PBD always adds an extra active slot into the original BIBD-based NDP, which again increases the energy consumption. In this article, we propose a novel NDP called the PNB-NDP. Unlike PBD, PNB-NDP removes the need for adding active slots in most scenarios. More precisely, if the length of discovery cycles of potential neighbors is relative prime, PNB-NDP just uses the original BIBD-based schedule without having any additional active slot. This article extends the results of our previous study, 11 where we analyzed the relation between PBD and greatest common divisor (GCD) of the lengths of discovery cycles.
Background and problem statement
In this section, we introduce how the BIBD blocks are used for neighbor discovery in WSNs, and analyze the inherent problem of BIBD-based NDPs.
Relation between block designs and discovery schedules
Block designs are combinatorial structures inherent in many mathematical contexts and used in various fields such as experimental design, finite geometry, software testing, cryptography, and algebraic geometry. 12 Among the block designs, the BIBDs are most suitable for NDP due to their structure properties shown below.
Next, we give two definitions of combinatorial block designs, then define the relation between block design and sensor schedule.
BIBD is a well-studied block design for WSNs. BIBD is defined as follows.
|
Each block contains exactly
Every pair of distinct points is contained in exactly
For instance, suppose that the set
In the BIBD theory, the BIBD is symmetric if the number of blocks equals to the cardinality of the universal set. It was proven that there exists a
Sensor nodes can be either active or sleep. During the neighbor discovery phase, they continually switch between active and sleep modes. In this article, we use a binary string to represent a neighbor discovery schedule. The binary number “1” corresponds to the active slot where a sensor turns its radio on, and “0” represents the sleep slots where the radio is off. The sensor schedules are represented by sequences of binary numbers as shown in
For example, suppose that block

An example of a schedule using block design.
Unless the crystal clocks in a WSN are fully synchronized, each sensor turns on the radio module at different times. That is, in an asynchronous WSN, there is some skew of the clocks in the network, and the beginnings of each discovery cycle are not perfectly aligned. For example, if the block-
During the discovery phase, sensor nodes independently find neighboring sensors using the discovery schedule
Problem of BIBD-based scheduling
The BIBD-based NDP protocol provides an optimal solution for a sensor network with asymmetric duty operations.
8
For example, we assume a sensor network environment in which sensors do not know neighbor’s discovery schedules. In other words, sensor nodes

Problem of symmetric BIBD.
As shown in the previous example, a discovery scheduling algorithm based on a symmetric BIBD does not always guarantee the existence of a common active slot in an asymmetric WSN. Thus, in the next section, we propose a new protocol that solves the asymmetric problem of the BIBD-based NDP.
The PNB-NDP
This section elaborates the proposed NDP for asymmetric WSNs, called PNB-NDP, that intelligently decides when to add an additional active slot. The proposed NDP first builds a discovery schedule using the BIBD-NDP for a given duty cycle. Then, it compares the lengths of two discovery schedules with two given duty cycles to determine the need of additional active slots.
Let
Let the solution of the above congruence equations be
Next, we consider that sensor nodes
where
Thus, there exist common elements in
As shown in Figure 2, if
Before considering the case where
The theorem below states that when the GCD of the cycle lengths of any pair of schedules is not 1, the block-based schedule
The schedule of
If both schedules have zero clock drift (i.e.
By CRT, two schedules
Let us give an example of the location of the additional slots for the case in Figure 2. Note that the block

Common active slot of prime-number-assisted block-based NDP.
The cycle length of PNB-NDP depends on whether the sensor nodes are supported by a prime number. Assume the discovery cycles of two neighboring sensors are derived from two symmetric BIBDs
In terms of the worst-case scenarios,
Active ratio and worst-case latency of each NDP.
PNB-NDP: prime-number-assisted block-based neighbor discovery protocol.
Experimental analysis
This section compares the proposed NDP with recent NDPs (U-Connect, Disco, SearchLight, and Hedis) in an experimental environment. For this purpose, the following experimental matrices are constructed:
Worst-case discovery latency: the amount of time required for all sensor nodes to find their neighboring sensors.
Number of active slots: the total number of active slots until the end of the discovery phase while node operating in an asymmetric environment.
Energy consumption: total energy consumption during the discovery phase.
TOSSIM 14 and NS-2 15 are widely used simulation platforms for WSN studies. The key difference between NS-2 and TOSSIM is that NS-2 mainly deals with packet-level network simulation, whereas TOSSIM covers bit-level TinyOS sensor network environment. Our simulation study was conducted using TOSSIM rather than NS-2. This is because TOSSIM simulates not only the network but also the execution of each node—the distributed nature of sensor networks. 16 For the performance comparison, we implemented the proposed PNB-NDP scheme, two prime-number-based NDPs (U-Connect and Disco), and two matrix-based NDPs (SearchLight and Hedis) in TOSSIM. 14 To measure the energy consumption during the discovery phase, we integrated the Power TOSSIM Module 17 into the TOSSIM simulator. For radio communications, we assumed that the sensor nodes were equipped with the CC2420 radio module. 18 The channel access scheme was based on CSMA/CA.19,20 For the network topology, we randomly deployed 50 sensor nodes within a 100 m × 100 m field. The duration of a discovery slot was set to 15 ms, and each sensor toggled its radio module on and off over the duration of each slot based on the assigned discovery schedule.
For representative duty cycles (1%, 2%, 5%, and 10%), we obtained suitable parameters for each NDP. The active and cycle lengths and parameters of each NDP are listed in Tables 2 and 3, respectively.
Active and cycle length comparison of each NDP.
PNB-NDP: prime-number-assisted block-based neighbor discovery protocol.
Parameters of NDP.
PNB-NDP: prime-number-assisted block-based neighbor discovery protocol; BIBD: balanced incomplete block design.
To evaluate the impact of duty cycles on the discovery latency during asymmetric operations, we considered six duty cycle pairs: (10%, 5%), (10%, 2%), (10%, 1%), (5%, 2%), (5%, 1%), and (2%, 1%).
Figure 4 shows the worst-case discovery latencies of U-Connect, Disco, SearchLight, Hedis, and PNB-NDP. In this figure, the

Worst-case discovery latency of the NDPs at asymmetric WSNs.
For the worst-case discovery latency, we consider the maximum distance between two common active slots. In PNB-NDP, the existence of the common active slots between two sensors is guaranteed as shown in Theorem 1. Furthermore, the PNB-NDP structure of the sensor schedule uses the BIBD-based NDP, which minimizes the number of active slots for a given duty cycle. By intelligently adding up to one active slot within a cycle, PNB-NDP produces highly efficient discovery schedules for asymmetric WSNs. In contrast, during the discovery phase, U-Connect uses a larger number of total active slots than other algorithms to detect neighboring sensor nodes. This is because U-Connect picks a very large prime number to build a discovery schedule for a given duty cycle, and, as a result of that, the length of the worst-case discovery latency gets extremely large. Like U-Connect, Disco also constructs sensor schedules based on two different prime numbers. Thus, Disco needs lots of total active slots during the entire discovery phase.
Figure 5 shows the energy consumptions of the sensor nodes during the discovery phase measured by PowerTOSSIM.
17
The

Average energy consumption for asymmetric duty operations.
The energy performance of Disco is poor because this scheme constructs discovery schedules using two different prime numbers, and it increases the total discovery cycle length significantly (recall that the cycle length in Disco is the product of two prime numbers). Note that the worst-case discovery latency is proportional to the length of the discovery cycle. Overall, PNB-NDP outperformed both matrix-based and prime-number-based NDPs by virtue of the efficiency of the BIBD-based NDP operations.
Conclusion
This study proposes a novel NDP called PNB-NDP, which uses symmetric BIBDs for neighbor discovery in both symmetric and asymmetric WSNs. The proposed approach intelligently determines whether to add an active slot or not based on the lengths of two BIBD schedules, and the overhead for supporting asymmetric WSNs is insignificant.
Owing to the optimality of the BIBD-based schedules and the smart insertion of additional active slots, PNB-NDP outperforms existing NDPs (such as U-Connect, Disco, SearchLight, and Hedis) for asymmetric WSNs. In our simulation study, the performances of the various NDPs are compared using the TOSSIM simulator. According to the results of the simulation study, the discovery latency and energy consumption of PNB-NDP are substantially lower than those of other NDPs.
For the future work, we plan to combine the proposed algorithm with recent advanced technologies such as artificial intelligence (AI). For example, the selection of efficient blocks from the list of existing block designs 12 for NDP is not straightforward. Therefore, using AI techniques, we would be able to recommend a set of near-optimal block designs that can be used for neighbor discovery with a given set of configuration parameters.
Footnotes
Handling Editor: Salvatore Serrano
Authors’ note
Woosik Lee is now affiliated with Research Center, Social Security Information Service, Seoul, Republic of Korea.
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This research was supported by the Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education (2018R1D1A1B07048675).
