Abstract
Many researchers have analyzed sources of uncertainty in synchronization protocols for wireless sensor networks. However, very few researchers perform this work in depth, and failed to discover comprehensive characteristics since they worked with only one or two measurement intervals. To overcome this problem, extensive measurements were conducted and analyzed to find the characteristics of the sources according to various measurement intervals. Using the characteristics, a new media access control protocol, WideMAC, was designed to support a wide range of duty cycles for various applications. The transmission node in WideMAC calculates the wakeup time of the reception node before transmitting a packet and adaptively estimates the synchronization error size according to the synchronization interval from seconds to hours. To track the reception node’s wakeup time for synchronization, WideMAC uses two estimation algorithms that estimate the wakeup time and the upper bound of the total timing error. Accurate estimation of the wakeup time results in a significant amount of energy saving at the transmission node. Finally, through extensive performance evaluations in a testbed, WideMAC confirmed that it can significantly outperform existing state-of-the-art protocols.
Introduction
Wireless sensor networks (WSNs) have an attractive emerging technology that can support a myriad of services involving environmental monitoring, sensing, and data collection. In particular, WSNs are playing an increasingly important role in monitoring applications such as automatic metering reading or advanced metering infrastructure. 1
Since it is prohibitively expensive or even infeasible to replace batteries of WSN nodes in many environments, it is important that the network remains operational for a long period (i.e. have a long “lifetime”). Given the unique traits of monitoring applications, a wireless sensor media access control (MAC) protocol should be designed differently from other ad hoc or wireless MAC protocols, explicitly considering its particular characteristics.
One of the most effective ways to increase the lifetime of a WSN node is to put it into sleep mode periodically but this causes an additional problem, that is, how to find the wakeup time of the reception (RX) node. To solve this problem, there exist two approaches that are classified into synchronous and asynchronous types.
Synchronous MAC protocols such as S-MAC 2 and T-MAC 3 are computationally expensive and consume a significant amount of energy in exchanging control packets between neighbor nodes to ensure synchronization of nodes according to a sleep-wake timetable. In this way, the transmission (TX) node wastes very little energy during its transmission period because it knows the exact wakeup schedule of each neighboring node. Nonetheless, synchronous MAC protocols waste energy due to the large synchronization overhead, especially for low-traffic applications. These problems get exacerbated when individual clocks have random amounts of drift depending on various environmental factors.
In contrast, asynchronous MAC protocols such as X-MAC 4 and RI-MAC 5 do not waste energy on periodic synchronization. However, their main drawback lies at the other end of the spectrum. The TX node spends considerable energy to find the wakeup time of each neighbor when it has a packet to transmit. Hence, they could waste a significant amount of energy, especially in low duty-cycle environments. To mitigate this problem, hybrid approaches such as SCP-MAC 6 and WiseMAC 7 have been introduced. However, they do not fully exploit the characteristics of sources for uncertainty, thus their improvements are limited.
As understanding the exact characteristics of sources of uncertainty is essential to finding the fundamental solution to these problems, there have been many related research efforts. These mainly analyzed the characteristics with only a few fixed measurement intervals because their targets are periodic synchronization protocols. With limited previous work, it is difficult to discover the comprehensive characteristics of uncertainty sources.
In this research, the characteristics of sources for uncertainty were extensively measured according to various measurement intervals. Through analyzing the relation between the clock drift size and the measurement interval, it was found that the ratio of the synchronization error to the synchronization interval can be modeled by a linear function without serious errors. Using this result, a new WSN MAC protocol named WideMAC was designed to use two estimation algorithms that estimate the wakeup time and the upper bound of the total timing error.
When WideMAC has a packet to send, it estimates the upper bound of the error size based on the history of the synchronization interval and error size. With the obtained tight upper bound, the TX node can transmit a data packet within a short wakeup period, thus saving a significant amount of transmission energy. By adopting the recursive estimation algorithm in So et al., 8 the memory requirement of WideMAC is very low. Therefore, WideMAC can run on most WSN node platforms due to its low memory requirement.
It supports aperiodic transmission as well as periodic transmission. Against most existing protocols that suffer from significant energy consumption in the ultra-low duty-cycled environments, WideMAC shows extremely low energy consumption even in the very low duty-cycled environments. Thanks to these features, it can support various applications such as infrequent event detection or monitoring with very long transmission intervals from seconds to hours.
The remainder of this article is organized as follows. In section “Related work,” related work is briefly described, and the measurement results for the relative clock drift variation are shown in section “Relative clock drift analysis.” In section “WideMAC protocol,” the proposed protocol is described in detail. Evaluation results are presented in section “Performance evaluation” by comparing the performance of the proposed MAC protocol with those of existing state-of-the-art protocols. In section “Conclusion,” the main results of the article are summarized and the conclusion is presented.
Related work
Clock drift
Oscillators or crystals that run individual clocks have different clock speeds within a margin of error that depends on the cost of each oscillator. Furthermore, the clock speed of each node can change due to clock drift that may depend on various environmental factors. This results in a serious problem for sensor communications since the TX node does not exactly know when the RX node wakes up.
A simple solution to this is to use a global positioning system (GPS) module or a very accurate clock (e.g. an atomic clock). However, these solutions are too expensive or energy inefficient. For example, a GPS device is not only expensive but also consumes about 30 to 360 times more power than a radio chip. 9 Currently, a more practical approach is to use a synchronization protocol to predict and adjust each clock experiencing drift.
As clock accuracy and characteristics are important for a wide variety of applications, there have been many researches in this area. These studies have found that clock drift can be caused by various environmental factors such as temperature and humidity, as well as software and hardware architectures.10,11 They also found that the distribution of the clock drift rate follows Gaussian.12,13
However, most previous research focused on the clock drift at a fixed measurement interval because the goal was to develop periodic synchronization protocols. Thus, these results cannot show the relation between the clock drift and the measurement intervals, which is important in the context of event monitoring applications.
Wakeup time estimation algorithm
The wakeup time estimation algorithm determines the total energy consumption of WSN MAC protocols, thus, it should be carefully designed according to the requirements of upper layers such as node lifetime and a sleep period. According to the way to obtain the wakeup time, MAC protocols can be classified into three types: asynchronous, synchronous, and hybrid.
In asynchronous MAC protocols, a TX node should find an RX node’s wakeup time before packet transmission by hearing or sending beacon packets repeatedly over one sleep period. 14 X-MAC 4 and RI-MAC 5 are famous protocols that belong to this category.
Generally, the amount of energy consumption is proportional to the packet transmission rate and the wakeup interval. Since an asynchronous MAC protocol does not use a synchronization algorithm, its implementation is very simple, but it consumes a higher energy for transmission than a synchronous MAC protocol. Hence, it is effective only for applications with infrequent packet generation and a high duty cycle.
Synchronous MAC protocols require many control packets and consume a large portion of the wakeup period for synchronization.2,15 Each node can send packets to destinations without worrying about clock drift and thus easily support control plane functions of the upper layer such as route recovery.
Wakeup time estimation algorithms in synchronization protocols can be broadly classified into three types, that is, linear regression, phase-locked loop, and bounded drift model–based approach.
16
Linear regression finds the clock speed ratio
where
Phase-locked loop (PLL) is originally designed to maintain the local oscillator in the same phase and frequency as the reference signal by applying a correction signal to the oscillator. The input of PLL is the difference between the actual sample and the fitted value. It detects its slope and offset by using the proportional–integral (PI) controller. PLL needs less memory than linear regression, but requires a longer time for convergence. 18
The bounded drift model–based estimation algorithm is one of the simplest algorithms, but very practical in terms of implementation. In this model, the clock drift rate is assumed to be bounded by the maximum clock drift rate (MCDR) denoted as
where the interval is
The well-known protocols to use this algorithm are SCP-MAC and WiseMAC.6,7 They operate in an asynchronous manner at first and then synchronously uses the estimation of the wakeup time of the RX node based on the last successful transmission and the MCDR. Hence, they are called hybrid protocols. Since this algorithm requires only two values of the last wakeup time and the sleep period, and uses a very simple algorithm to calculate the margin size, it can be used for most off-the-shelf WSN node platforms.
However, the linear regression and PLL require long-precision floating point numbers and a large memory size, which can be a burden in low-cost WSN nodes. Moreover, the bounded-drift model can be used for both aperiodic and periodic synchronous protocols, while linear regression and PLL are usually used for periodic synchronization protocols.
The energy consumption of the TX node in the bounded-drift model is determined by the MCDR and not by the sleep period. As the amount of the total energy consumption is inversely proportional to the sleep period, the network lifetime can be prolonged by lowering the duty cycle.
Periodicity of synchronization
Most synchronization protocols use a fixed synchronization interval, thus they are called periodic synchronization protocols. There are a few protocols that do not require any fixed synchronization intervals, which are classified as aperiodic synchronization protocols. A well-known aperiodic synchronization protocol is post-facto synchronization developed by Elson et al. 21 It requires some nodes to broadcast synchronization pulses that help other nodes synchronize with each other.
Relative clock drift analysis
The most important process of a WSN MAC protocol for an ultra-low duty-cycle environment is to estimate when the RX node wakes up without consuming much energy. However, as mentioned earlier, in practice, this is difficult to accomplish because the clock drift of a node changes according to various factors.11,12
In this section, experimental scenarios are presented and the measurement results are analyzed for the relative clock drift based on various measurement intervals. The packet reception and transmission times at MAC layers of the TX and RX nodes are measured, respectively, and the relative clock drift from these measurements is calculated.
Most existing research calculates the absolute clock drift from the difference between each node’s clock and GPS time. 12 These experiments are useful to obtain the characteristics of the clock drift incurred by the oscillator or crystal.
However, the relative clock drift, which occurred between the RX and TX nodes, is our focus. The experiments were performed to observe the relative clock drift characteristics of nodes located in the outdoor environment. In the experiments, three node types such as TelosB, 22 MICAz, 23 and HMote 24 were used. For every node type, 11 nodes were used.
For easy description, some terminologies similar to those in Sundararaman et al.
25
are defined, where
The time represented by a node’s clock when the reference node time is given. If the current reference node time is
The difference of the estimated relative time, that is,
The ratio of the relative clock drift to the interval, that is,
Relative clock drift measurements
In the experiments, all the nodes are static and the TX node periodically sends a time-stamp message containing its clock counter to 10 RX nodes within its transmission range as shown in Figure 1. Whenever each RX node receives the message, it calculates the relative clock drift rate between the TX and RX nodes, and updates the statistics stored in the memory.

Topology for the relative clock drift measurement: (a) time-stamp message broadcasting and (b) data gathering.
After all transmissions are completed, each RX node sends its collected data to the TX node and the TX node forwards the gathered data to the PC via USB cable. Eight message intervals were used for experiments, and each interval is denoted by
where |·| is the absolute value operator. The maximum relative clock drift determines the margin size, that is, the upper bound for the synchronization error. For example, if the margin size is set to a larger value than the maximum relative clock drift, the TX node can synchronize with the RX node without failure.
In addition, the MCDR is a very important factor as it mainly affects the energy consumption of the synchronization protocols. If the synchronization energy consumption is defined as the energy wasted to learn the wakeup time of the RX node, the estimation error in the clock drift rate directly affects the energy consumption for synchronization. Intuitively, synchronization energy consumption is proportional to the maximum relative clock drift rate (energy consumed by actual data transmission can be ignored because the traffic generation rate is low in WSN). Then, the total synchronization energy consumption for a given duration
where
The experiments were performed for 14 days in an outdoor environment. Experimental results only for TelosB are presented because those for MICAz and HMote show similar qualitative results.
Relative clock drift measurement results
The measurement results for the relative clock drift are given in Figure 2 with respect to some selected time-stamp message intervals. Figure 2 shows that Gaussian distribution works only for large intervals against the previous study results that claim Gaussian distribution of the relative clock drift size. 12 If the interval is smaller than or equal to 1 min, the distribution of the relative clock drifts exhibits a very different form.

Maximum relative clock drift distribution according to the time-stamp message interval: (a) 0.25 s, (b) 1 s, (c) 1 min, (d) 4 min, and (e) 1 h.
Most WSN nodes adopt a clock source such as a 32 KHz-oscillator. Thus, clock errors due to the coarse granularity always exist and the size is small but fixed regardless of the interval size. Moreover, a packet is generally handled by a specific task for transmission in a WSN node. If the interval size decreases, the more frequent packet transmission causes higher processor load resulting in increased scheduling delay and variations. 11 Thus, these errors caused by coarse granularity or scheduling overhead dominate the overall relative clock drift when the interval is small.
For further investigation, Figure 3 shows the measured maximum relative clock drift and rate according to the message interval. The line marked with empty circles represents the MCDR (

Maximum relative clock drift and rate of experimental results, where
In Figure 3(a), the size of the maximum relative clock drift increases with the interval. It is obvious that it has more chances of the environmental change such as temperature and humidity occurs if the interval is larger. However, it is almost fixed for intervals less than 1 min due to the errors caused by clock granularity and scheduling delay.
On the contrary, the maximum relative clock drift rate decreases rapidly with the interval in Figure 3(b). equation (3) and Figure 3(b) imply that periodic synchronization may not be optimal in terms of energy consumption. It is advantageous to perform synchronization when the TX node has a packet for saving energy.
WideMAC protocol
In this section, WideMAC is proposed to achieve a very low energy consumption and support a wide range of duty cycles. WideMAC uses simple estimation algorithms and requires a very small size of memory. Due to these features, it can be implementable on most existing node platforms. It efficiently supports very long traffic intervals, that is, seconds to hours, and the overall energy consumption decreases with the interval.
It adopts a hybrid approach similar to WiseMAC to remove the periodic synchronization overhead. It uses an adaptive estimation algorithm to find an exact error margin to improve the energy efficiency. The estimation algorithm exploits the relation between error size and synchronization interval from Figures 3(a) and 4.

Maximum relative clock drift in linear scale for Figure 3(a).
When WideMAC initializes or loses synchronization, it operates similar to X-MAC 4 that uses a small-sized packet called preamble to find the wakeup time of the RX node. The RX node replies with a preamble acknowledgment (ack) and waits for a data packet. If the TX node receives the ack, it sends a data packet to the RX node. Otherwise, the preamble will be retransmitted.
After the TX node discovers the wakeup time of the RX node, WideMAC does not send preambles when a packet transmission request arrives. Instead, it estimates the wakeup time and the timing error size for the RX node. After the estimation, it sends preambles only within the estimated range of the wakeup time for the RX node. Therefore, it can significantly decrease the energy consumption.
Motivation
According to Figures 3(a) and 4, the maximum relative clock drift can be modeled by
where
If
tn: The earliest wakeup time of RX node to receive a packet from TX node in terms of TX node’s clock when TX node has the
mn: Margin size.
en: Error size of the estimated wakeup time, that is,
T: The wakeup interval time of RX node in terms of RX node’s clock.
Wakeup time estimation
The TX node can find the exact wakeup time of the RX node, that is,
where
where
Since each term in equation (7) is expressed in a recursive form, the computational cost is very small. The overall procedures for the relative clock speed estimation is presented as follows (Figure 5).

Clock speed ratio and the time offset estimation.
Error margin estimation
The purpose of margin estimation is to find the minimum margin size for synchronization for successfully transmitting a packet. For synchronization with a fixed interval, the margin size can be easily estimated. In contrast, for synchronization with varying intervals, the margin size estimation is very complicated.
As mentioned earlier, the maximum error size, that is, maximum relative clock drift, increases linearly proportional to the interval size, thus expressed as equation (4). If a sensor node has no information about
where

Maximum relative clock drift estimation.
only if
The estimator has a new input only when the obtained new error size
Performance evaluation
In this section, experimental results for the proposed MAC protocol are presented. To evaluate the performance, four types of MAC protocols including WideMAC were implemented using TelosB 22 and TinyOS 26 as follows.
Maximum clock drift based MAC protocol: It estimates the margin size with the MCDR, which is exactly the same with WiseMAC. The margin size,
Multiple fixed interval (MFI)-based MAC protocol: Since the margin estimation for a fixed interval is simple, it uses multiple fixed margin sizes to support aperiodic margin estimation. Thus, the total range of intervals is divided into
Rate adaptive synchronization (RATS) protocol: It calculates the sampling window size and estimates the average error size so that the synchronization error remains bounded within the pre-defined maximum error size,
Each configuration of the considered protocols is shown in Table 1. The field of “stored variables” indicates the total number of variables maintained at each RX node to estimate the margin size. Since the other protocols except for the MFI-based protocol require very small sizes of memory, they have no difficulty in supporting any WSN node platforms.
Algorithms and configurations in experiments.
The energy consumption of the RX node is mainly defined by the wakeup time interval. However, the energy consumption of the TX node is affected by many factors such as duty cycle and traffic rate. Therefore, the total energy consumption of the TX node is measured every 10 h for performance evaluation. Experiments were performed with six pairs of RX and TX nodes in the same outdoor environment for 100 h, where TX nodes send packets to RX nodes according to the four inter-packet time distributions, respectively, for each experiment shown in Table 2.
Inter-packet time distribution.
In each experiment, the preamble packet size is 8 bytes and its transmission interval is 0.26 ms. 4 Since the packet retransmission is disabled, the packet is dropped if wakeup time estimation is failed. All the algorithms except for the MCDR-based MAC protocol use the recursive estimation algorithm to find the wakeup time of the RX node.
Fixed inter-packet time case
For a fixed inter-packet time, the MCDR-based MAC protocol has almost the same energy regardless of elapsed time since its margin size is determined by the inter-packet time. As shown in Figure 7, when the interval is 1 min, MCDR(0.1) consumes 86% less energy compared with MCDR. When the interval is 1 h, MCDR(0.1) consumes almost 90% lower energy than MCDR as expected since MCDR(0.1) has a margin size 10 times smaller than that of MCDR.

Average ratio of the energy consumption for TX node of each protocol to that of MCDR when the fixed inter-packet time is used: (a) inter-packet time = 1 min, (b) inter-packet time = 30 min, and (c) inter-packet time = 1 h.
When the interval is fixed, the MFI-based MAC protocols, that is, MFI(2) and MFI(1.2), show almost the same performance regardless of
RATS protocol requires explicit synchronization which consumes additional energy. As the inter-packet time increases, the overall energy consumption of RATS decreases. However, due to the overhead of explicit synchronization, the performance of RATS can be degraded in terms of the high estimation failure and low packet delivery ratio even if it consumes the same energy compared to competitors.
For the small interval, all the adaptive algorithms need almost 60–70 h to obtain stable margin values as shown in Figure 7(a). It implies that infrequent but abrupt changes in timing information occur. For medium and large intervals, that is, for 30 min and 1 h, they require 50 and 40 h until margins converge, respectively. It is obvious that the larger interval generates the larger margin size. Since the increased margin is less affected by the abrupt change in clock drifts, the convergence time can be reduced.
All the protocols experience similar failure rates regardless of interval size. Thus, failure rates only occur when the inter-packet time is 1 min as shown in Figure 8(a). As shown in the figure, only MCDR always estimated correctly without any failure during evaluation. Other protocols except for RATS failed to estimate the wakeup time only one time but no estimation failure happened after they obtained converged margin sizes. MFI(1.2) and MFI(2) use only one sub-range if the inter-packet time is fixed so they should provide the same performance.

Estimation failure rate when the fixed inter-packet time is used: (a) inter-packet time = 1 min, (b) inter-packet time = 30 min, and (c) inter-packet time = 1 h.
When the inter-packet time is 1 min, RATS shows a 5% failure rate which is the highest compared to other protocols. Although RATS adaptively calculates the window size and synchronization interval, it also relies on pre-defined configuration values such as
Table 3 shows the total packet delivery ratio for each protocol. Since packet delivery ratio is proportional to packet transmission delay and energy consumption, it is a very important factor. As shown in the table, WideMAC achieves a very high delivery ratio. Although it does not aim at periodic data transmission, it shows that WideMAC can support a low energy consumption and high delivery ratio simultaneously.
Total packet delivery ratio when the fixed inter-packet time is used.
Exponentially distributed inter-packet time case
In this experiment, the TX node issues packet transmission requests according to the exponential distribution. Since the packet transmission interval is not fixed, it is possible to investigate the performance of protocols in more realistic environments. Two exponential distributions were used and their average intervals are 1 min and 1 h, respectively. As shown in Figure 9, the results are quite different from the fixed interval cases.

Average ratio of the energy consumption for TX node of each protocol to that of MCDR when an exponentially distributed inter-packet time is used: (a) inter-packet time = 1 min, (b) inter-packet time = 30 min, and (c) inter-packet time = 1 h.
When the average interval is 1 min, MCDR(0.1) consumes the smallest energy as shown in Figure 9. However, it cannot deal with abrupt changes in clock drift. This leads to high estimation failure as shown in Figure 10(a) that shows the estimation failure rate of each algorithm. The average failure rate in MCDR(0.1) is 1.7% which is much higher than 0.4%, 0.1%, and 0% for MFI(1.2), MFI(2), and WideMAC, respectively. The failure rates of all the algorithms except for MCDR(0.1) and RATS converge to 0%, but only WideMAC achieves 0% estimation failure rate for all experiment time. When the average packet interval is 1 h, MCDR(0.1) significantly consumes energy more than other adaptive algorithms. This shows a limitation in using a constant margin regardless of traffic intervals and clock drifts.

Estimation failure rate when an exponentially distributed inter-packet time is used: (a) inter-packet time = 1 min, (b) inter-packet time = 30 min, and (c) inter-packet time = 1 h.
When the average packet interval is 1 min, MFI(1.2) uses a very small amount of energy, but its estimation failure rate fluctuates and becomes higher compared to other adaptive algorithms. Although a smaller size of each sub-range leads to a more exact margin estimation, it requires a lot of
In Figure 10, for the small interval, 1 min, WideMAC shows the second best performance except for MCDR(0.1) which has a very high estimation failure rate, and for the large average interval, 1 h, it outperforms all the other protocols except RATS which shows the worst estimation failure rate.
RATS shows the worst performance for the small interval due to non-optimal parameters and explicit synchronization. For medium and large intervals, it tends to generate very small margins. Therefore, it shows a poor packet delivery ratio although it consumes less energy compared to other protocols as shown in Table 4.
Total packet delivery ratio when the exponentially distributed inter-packet time is used.
Table 4 shows that WideMAC obtains the low delivery ratio for large interval. However, packets were lost only before the margin size converged, while other adaptive protocols suffered from packet drop after converged. When the average interval is 1 h, the margin size of WideMAC fluctuates as in the early stage of the experiment until the elapsed time is 30 h. This happens because WideMAC requires a large number of
Conclusion
Wireless monitoring is a very important application for WSNs. However, existing WSN MAC protocols do not meet the energy needs of such an application. In this article, various clock drift characteristics were extensively analyzed through experiments and an on-demand synchronous MAC, called WideMAC, was designed to carefully exploit the real clock drift characteristics. This scheme adopts two estimation algorithms to keep track of the wakeup time of the RX node. These algorithms provide a precise estimation of both the relative clock drift and the total timing error bound, which results in significant transmission energy savings at the TX node.
The empirical results show that WideMAC reduces the energy consumption by 90%, when compared to maximum clock drift based protocols, and provides a stable and fast margin estimation, when compared to other adaptive protocols. They also confirm that WideMAC supports a wide range of duty cycles without performance degradation. Therefore, the proposed scheme is widely applicable and suitable for any application that requires very low energy consumption.
Footnotes
Academic Editor: Poh Kit Chong
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 Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education, Science and Technology (NRF-2014R1A1A103 8306).
