Abstract
In past decades, to achieve energy-efficient communication, many MAC protocols have been proposed for wireless sensor networks (WSNs). Particularly, asynchronous MAC protocol based on low power listening (LPL) scheme is very attractive in duty-cycled WSNs: it reduces the energy wasted by idle listening. In LPL scheme, a sensor node wakes up at every polling interval to sample the channel. If the channel is busy, the sensor node will stay in wake-up mode for receiving the data packet. Otherwise, it goes to sleep and saves power. However, wrong choice of polling interval in LPL scheme causes unexpected energy dissipation. This paper focuses on the polling interval adaptation strategy in LPL scheme with the aim of maximizing energy efficiency, defined as the number of packets delivered per energy unit. We propose a novel polling interval adaptation algorithm based on stochastic learning automata, where a sensor node dynamically adjusts its polling interval. Furthermore, our simulation results demonstrate that the polling interval asymptotically converges to the optimal value.
1. Introduction
In recent years, wireless sensor networks (WSNs) have been developed and implemented to realize automated home system, combined with consumer electronics technologies [1]. The design principle of such a system is very simple: the low-cost sensor nodes with low-power processing, narrow communication range, and small battery size are scattered in a sensing field. Therefore, it is unreasonable to replace or recharge the batteries of sensor nodes. For example, a real-time intrusion detection system detects the humidity and transmits an alert message to a remote base station, that is, a sink, immediately [2]. In this application, it is desirable to retain for long operational time of sensor node, but the network lifetime is substantially constrained due to the limited capacity of the battery.
Recently, a number of research efforts have been undertaken to save power of sensor node in communication activities. The main direction of these researches is duty-cycling which reduces power wasted through idle listening, that is, the time spent in wake-up mode with receiving any radio packets. Note that idle listening is a dominant reason that drains the energy of sensor node [3–5]. In duty-cycled WSNs, the sensor node alternates between sleep mode and wake-up mode to reduce energy consumption caused by idle listening. The sensor node wakes up in small portion of operating time and it goes to sleep in most of time. The transition between sleep mode and wake-up mode is decided by a predefined schedule. In sleep mode, the sensor node turns off its radio to save power. In wake-up mode, the sensor node turns on its radio to communicate with its neighbors. If the sensor node has a packet destined to its neighbors or it is an intended receiver, it transmits or receives a data packet in wake-up mode.
Low power listening (LPL) scheme has motivated recent advances in asynchronous MAC protocol design for duty-cycled WSNs. In [6, 7], the authors introduced the concept of LPL scheme in a perspective of duty-cycled WSNs to reduce the idle listening, where a sender transmits a C-sized preamble to a receiver which is supposed to wake up at every polling interval C for preamble detection. In B-MAC [6], a sender transmits a long preamble to make its neighbors wake up before transmitting a data packet. Upon detecting the preamble, all neighbors keep wake-up mode until the transmission of data packet has been finished. However, B-MAC inherently suffers from the excessive long preamble accompanied with the transmission of data packet and the overhearing of nonintended receivers. X-MAC [7] has been proposed as an enhanced LPL scheme fixing the drawbacks of B-MAC. X-MAC adopts a series of short preambles to avoid overhearing. In X-MAC, a sender transmits a short preamble and waits for a response from a receiver for a short time as shown in Figure 1. And the sensor node samples the channel when it wakes up. If it is the intended receiver, upon receiving the short preamble, it replies with ACK to trigger the transmission of data packet. Otherwise, it goes to sleep, to avoid overhearing. As compared with synchronous MAC protocols such as S-MAC [3] and T-MAC [4], these asynchronous MAC protocols have the advantage of not requiring any time synchronization among sensor nodes.

The time diagram of XMAC.
In LPL scheme, the best performance can be obtained by appropriately selecting the polling interval C which is a key parameter in determining energy used to communicate between sensor nodes. The optimal polling interval heavily depends on traffic loads of the sensor node. In low traffic loads, a large polling interval takes advantage of saving energy of sensor node, while a relatively small polling interval consumes less energy spent for communication between sensor nodes in high traffic loads. Also, the polling interval must be adapted during runtime since traffic condition may not be known a priori [8]. If a priori assumption about traffic loads is not accurate, energy of sensor node will be wasted and the intended goal of application cannot be achieved. For instance, electronic security system which is installed in home detects suspicious objects. To achieve this requirement, sensor nodes should be in sleep mode for most of the time when there are no events of interest.
Recently, there have been a few studies on polling interval adaptation in duty-cycled WSNs. The representative technique employed by existing polling interval adaptation schemes such as [9, 10] guesses the traffic condition based on previous results of channel sampling. Note that this approach is referred to as Dynamic LPL (DLPL) scheme. In DLPL scheme, the sensor node obtains information about the number of consecutive busy (idle) sampling and dynamically adjusts the polling interval by adopting the following. The polling interval is increased after U idle polling. Similarly, D consecutive busy pollings induce a decrease of polling interval. This approach is simple and intuitive but has some problems. Most importantly, it can make a scheme either too aggressive or too conservative depending on U and D. For example, BoostMAC [9] which employs
In this paper, we propose a stochastic polling interval adaptation algorithm based on learning automata technique, where a sensor node dynamically adjusts its polling interval according to the probability distribution of selecting the polling intervals and selects the optimal polling interval by learning. In the proposed algorithm, we adopt energy efficiency, which is defined as the number of packets delivered per energy unit, to update the probability distribution associated with the polling intervals. Additionally, our evaluations verify that the proposed algorithm makes the polling interval converge to the optimal value.
Our main contributions are summarized as follows.
We consider the problem of runtime adaptation of polling interval in duty-cycled WSNs. Fixed polling interval may degrade the performance of LPL scheme when traffic loads are not known a priori. We investigate the problem of adapting the polling interval via stochastic learning automata. To the best of our knowledge, our work is the first attempt to provide a learning automation based solution for adaptation of polling interval in duty-cycled WSNs. We propose a novel polling interval adaptation algorithm which dynamically adjusts the polling interval, and the polling interval asymptotically converges to the optimal value. Our simulation results show that the proposed algorithm converges toward the optimal value.
The reminder of this paper is organized as follows: In Section 2, we present a review of some previous related work. Section 3 describes the proposed polling interval adaptation algorithm based on stochastic learning automata. Section 4 discusses the simulation results, and we conclude this paper in Section 5.
2. Related Work
In this section, we overview current researches on MAC protocol design in duty-cycled WSNs.
Basic LPL scheme, that is, B-MAC [6] which uses a long preamble to establish rendezvous between a sender and its receiver, has overhearing problem. In B-MAC, since the sender does not indicate the intended receiver of the packet, all neighbor nodes must wait for finishing the long preamble. To solve this problem, several works [7, 11, 12] adopt an aggressive short preamble to replace the long preamble, which divides into a series of short packets. In place of the long preamble, SpeckMAC-B [11] uses the wake-up packet, and B-MAC+ [12] sends the chunks which contain information about remaining chunks before transmitting the data packet. Note that the authors of [12] also presented an extension of B-MAC+ that adapts the polling interval of the transceiver to the traffic loads experienced by different sensors [13]. Therefore, the sensor node which receives the early preamble can sleep during waiting for the data packet. Other approaches [7, 14] reply with an early ACK for stopping the transmission of excessive short preamble. The sender transmits a series of short preambles including ID of intended receiver. ACK sent in response to the short preamble triggers the transmission of data packet.
In duty-cycled WSNs, static approach which adopts a fixed polling interval cannot be adapted to various network conditions. To overcome this problem, several works [9, 13, 15–20] allow dynamically changing sensor's polling interval. The role of these polling interval adaptation mechanism is to select the optimal polling interval according to traffic loads of sensor node. PMAC [15] adopts an adaptive duty-cycled scheme, instead of having a fixed duty cycle as in S-MAC, to improve energy efficiency. PMAC allows the sensor node to adaptively determine the sleep-wake up schedules based on its own traffic and the traffic patterns of its neighbors. Dynamic LPL (DLPL) scheme [9, 16] is a widely adopted and well-known polling interval adaptation algorithm. This works as follows: if U consecutive samplings are idle, the sensor node increases its polling interval; if D consecutive busy samplings are busy, the polling interval is increased. In BoostMAC [9], changes of polling interval in sensor node are accomplished by using AIMD (Additive Increase/Multiplicative Decrease) mechanism in response to the results of channel sampling. Also, in [16], the authors presented a Markov model which evaluates the performance of DLPL scheme in terms of energy consumption. The analytical model enables us to investigate the effect of the up/down threshold (U and D)—these parameters determine how long a sensor node should stay at a certain polling interval before it concludes the traffic condition has changed—on the performance of DLPL scheme. Obviously, DLPL scheme is easy to deploy, but it may produce unnecessary fluctuations or cannot react quickly to traffic changes according to up/down threshold. Meanwhile, the queue state is a useful information for guessing the network condition implicitly. In [17, 18], the authors proposed an adaptive control mechanism based on the queue management where the controller changes the polling interval dynamically by constraining the queue length. Similarly, TA-MAC [19] adjusts sleep interval adaptively according to state of sending/receiving buffer, traffic loads, and battery lifetime. In [20], the authors presented a cross-layer design approach for joint optimization at the MAC and routing layers. To address this challenge, they proposed an adaptation of listening modes according to local state of each sensor, and it enables the sensor node to learn listening mode of its neighbors in order to ensure correct data delivery.
Learning automata have been applied to study a wide range of solving optimization problems in wireless networks. In [21], the authors adopted a stochastic learning automata model to find the optimal channel selection for secondary users in cognitive radio networks. Since primary user's traffic patterns are unknown and unpredictable, they claim that the secondary users must select the statistically optimal channel which maximizes the probability of successful transmission and propose an estimator automata model to pursue global optimum with minimal number of iterations. In [22], the authors proposed a novel congestion control algorithm based on learning automata in healthcare WSNs. The primary objective of this approach is that the processing rate in sensor node is equivalent to the transmitting rate. In each sensor node, better data rate may be chosen on the basis of past experience with congestion with the other data rates. In [23], the authors adjusted the threshold parameters of Auto Rate Fallback (ARF) in IEEE 802.11 WLANs using learning automata.
3. Stochastic Polling Interval Adaptation
3.1. Learning Automata
At the beginning, learning automata techniques were introduced to find a solution in control literatures. Recently, they have been recognized as one of the most powerful methods to select the best action in a stochastic environment. And they have been adopted to solve the stochastic optimal control problems in a wide range of research fields.
The purpose of stochastic learning automata which keep track of possible actions and their probabilities is to maximize the expected reward or to minimize the expected penalty based on the response of possible actions. In learning process, an action from finite set of possible actions is applied to a stochastic environment, and then learning system records a response associated with an action as depicted in Figure 2. The response reflects the condition of the stochastic environment. Learning can be described as follows.

Overview of learning automata.
Let us denote the finite set of possible actions as
As previously mentioned, a wireless sensor network is a part of stochastic environments where traffic loads are not known a priori. In our work, we formulate the problem of polling interval adaptation as an environment that stochastic learning automata select the best action.
3.2. The Proposed Algorithm
Motivated by the above discussion, we devise a control algorithm of maximizing the expected reward for selecting the polling interval C.
Now let us describe the basic operation of our proposed algorithm, which aims to converge to the optimal action, that is, selecting the optimal polling interval. We consider that a sensor node selects the polling interval in K polling intervals,
Remark 1.
Our algorithm operates at receiver-side. If the sensor which acts as the sender has the data packet to transmit regardless of its operation mode (sleep or wake-up mode), it operates in wake-up mode immediately and transmits a series of short preambles to check whether an intended receiver wakes up. Therefore, when the sensor acts as the sender, it does not affect our algorithm.
The sensor node selects the polling interval in each decision time. We denote by
In our learning model, the following measures are considered:
Simulation properties.
We define
Next, let R: the resolution parameter of learning automaton, that is, a positive number, which has property that it determines the stepsize on the basis of probability vector P; F: the predefined convergence threshold; M: the maximum value of energy efficiency.
In the following, we develop the proposed algorithm based on stochastic learning automata. According to our proposed algorithm, the sensor node processes its observation and updates probabilities of selecting the polling intervals based on the response before selecting the new polling interval. Indeed, in our algorithm, the probability of selecting the optimal polling interval is increased while the probabilities of others are decreased. Additionally, our algorithm achieves asymptotic convergence.
Algorithm 2.
(
1) Initialization
Set Initialize Select the polling interval Set Start to sample the channel with Maintain the current polling interval
(
2) At time t
Compute Update the accumulated energy efficiency, Update Compute nth element in the deterministic estimation vector For Find the optimal polling interval Update probability vector P as follows: Set If Otherwise, select the new polling interval according to
In our algorithm, the update of probability vector P depends on the deterministic reward vector D and the random number R. Initially, during a few iterations, the sensor node selects the polling interval mainly depending on random number R. This implies that all of polling intervals have the chance to be selected as the optimal value. Note that like other learning automata based optimization methods, the computational complexity of our algorithm depends on the number of possible actions, K. Therefore, our algorithm requires time complexity
Theorem 3.
The proposed polling interval adaptation algorithm is ϵ-optimal for stationary duty-cycled WSNs. For any arbitrarily small
4. Simulation Results
In order to evaluate the effectiveness of our proposed algorithm, we performed extensive simulation experiments. We employ a single sender-receiver pair in order to monitor receiver's polling interval according to its variable traffic load defined by node topological distance from the sink. Note that the sensor nodes near the sink have more traffic loads and shorter polling interval than those far away from the sink. The results of simulation showed that our algorithm dynamically adjusts the polling interval according to probabilities of polling intervals to adopt traffic condition and then tracks the optimal polling interval.
In the simulation, we assume that the sensor node has seven polling intervals (
In Figure 3, we show the trajectory of polling interval with respect to the optimal value at run time. It illustrates that the proposed algorithm adjusts the polling interval. In initial period, the polling interval is fluctuated. Also, our algorithm accommodates the fluctuation, and the polling interval 4 (160 msec) is more often selected than other polling intervals at around the 20th iteration. Note that the polling interval 4 (160 msec) is the optimal value where it achieves minimal energy consumption in simulation experiments. Correspondingly, it can be seen that the polling interval converges within 50 iterations as depicted in Figure 3.

Trajectory of polling interval.
In the proposed algorithm, the probability of selecting a polling interval is updated to search the optimal value. In Figure 4, the seven curves represent the probability of each polling interval and each point in the curve results from each iteration at runtime. In initial period, the probabilities of polling intervals are equal and selecting polling interval is dependent on randomness. As shown in Figure 4, our proposed algorithm increases the choice probability of selecting the optimal polling interval, that is, polling interval 4 (160 msec), at every iteration, and achieves convergence towards the optimal polling interval.

Updating history of probability vector P.
Furthermore, Figure 5 compares the proposed algorithm with DLPL scheme. Here as well, we use fixed up/down threshold

Total energy consumption.
5. Conclusion
To achieve energy efficient communication in duty-cycled WSNs, one of major issues of MAC protocol design is dynamic adaptation of polling interval against network conditions. Additionally, control algorithm is adapted at runtime in response to local observation for each polling interval.
In this paper, we proposed a novel stochastic polling interval adaptation algorithm to tackle this issue. To the best of our knowledge, this paper is the first attempt to apply stochastic learning automata for control of polling interval in practice. In our algorithm, the sensor node dynamically adjusts its polling interval based on response which is the number of packets delivered per energy unit. Using simulation experiments, we observe that our proposed algorithm can adjust the polling interval to converge to the optimal value gradually.
Footnotes
Conflict of Interests
The author declares that there is no conflict of interests regarding the publication of this paper.
