Abstract
Designing a Wireless Sensor Network (WSN) to achieve a high Quality of Service (QoS) (network performance and durability) is a challenging problem. We address it by focusing on the performance of the 802.15.4 communication protocol because the IEEE 802.15.4 Standard is actually considered as one of the reference technologies in WSNs. In this paper, we propose to control the sustainable use of resources (i.e., energy consumption, reliability and timely packet transmission) of a wireless sensor node equipped with photovoltaic cells by an adaptive tuning not only of the MAC (Medium Access Control) parameters but also of the sampling frequency of the node. To do this, we use one of the existing control approaches, namely the viability theory, which aims to preserve the functions and the controls of a dynamic system in a set of desirable states. So, an analytical model, describing the evolution over time of nodal resources, is derived and used by a viability algorithm for the adaptive tuning of the IEEE 802.15.4 MAC protocol. The simulation analysis shows that our solution allows ensuring indefinitely, in the absence of hardware failure, the operations (lifetime duration, reliability and timely packet transmission) of an 802.15.4 WSN and one can temporarily increase the sampling frequency of the node beyond the regular sampling one. This latter brings advantages for agricultural and environmental applications such as precision agriculture, flood or fire prevention. Main results show that our current approach enable to send more information when critical events occur without the node runs out of energy. Finally, we argue that our approach is generic and can be applied to other types of WSN.
1 Introduction
Agricultural and Environmental monitoring applications are essential for society. Generally in this type of application, the system must be able to provide quickly, over long time periods (from 1 to 5 years depending on the characteristics of the application) without human intervention, information about physical phenomena occurring in its close environment [1]. Today, Wireless Sensor Network (WSN) is used as an automatic data acquisition and transmission system in several agricultural monitoring applications. Indeed, the WSNs are autonomous systems at low cost, which do not necessarily require a pre-existing infrastructure. In addition, they are easy to deploy, even on isolated monitoring areas with impossible or difficult human being access. However, this type of network is composed of nodes called wireless sensor nodes, which usually have limited resources in terms of power transmission, processing capacity, collected data storage and energy. These inherent constraints have influenced many research issues in the field. For some kinds of wireless sensor platforms, data storage limitation can be overpassed by the use of a flash memory support such as a microSD card. However, energy constraint is still important for most of the WSN platforms. Indeed, the energy efficiency, by extension the network lifetime, is a major concern in the case of a deployment in inaccessible monitoring areas where it is often impossible to recharge or replace batteries of the wireless sensor nodes after depletion. This can be problematic in term of energy conservation especially for long duration applications as those of cacao crops where the information gathering takes about two years (i.e the harvest duration). The system must be self-energized given the long duration of the harvest. So, a smart and sustainable management of these resources is essential to meet the lifetime of WSN and the quality of service required by the application. Despite an energy supply from external sources (e.g., by solar panel), consumption management in WSN may still be problematic. For example, energy produced by a “renewable” source as a solar panel may be consumed more rapidly than it is produced, especially in Nordic countries with low solar radiation [2]; electricity generated by a solar photovoltaic (PV) system (i.e., total PV area and battery capacity) depends especially on variable meteorological conditions such as solar radiation, ambient temperature and wing speed. Differences in solar radiation levels also exist in continental climate areas between summer and winter seasons. In addition, the higher the energy efficiency is, higher will be the packet delay, and therefore does not meet the requirements of low-delay applications (e.g., emergency applications). In addition, the inherent hardware constraints (bandwidth, storage and memory capacities) of a wireless sensor node can cause large latencies and high packet loss and therefore a low level of communication Quality of Service (QoS) if the network density or the traffic is high. Classically, the network density corresponds to the number of nodes per surface unit. In a star topology network, it represents the maximum number of nodes that compete among themselves in order to communicate with the gateway or “sink node”. For example, in order to regulate more closely the crop needs in pesticides, fertilizers and irrigation, agriculture application may demand a high collection of information (soil and/or the growth of plants), i.e., a high sampling frequency. This may cause high latencies and packet losses resulting in low level of QoS. Thus, designing such network and, more specifically, the protocols to achieve high QoS (network performance and durability) is a challenging task.
Many WSN management schemes have been proposed to meet this issue. Most contributions have focused on possible network architecture and/or the development of software components (operating systems [3, 4], network layer [5–7], MAC layer [8–14] and PHY layer [15]) adapted to the limited resources of sensor nodes. However, this solution may cause major problems (e.g., failure handling, synchronization and inter-node communication) if the policies of management resources associated with each software component are very different and even opposed, especially in the heterogenous WSNs.
For improving the network performance, it is important to use a common method for the whole WSN to manage its energy resources. It is the goal of our approach that is different and complementary to those proposed in the scientific literature. The network performance can be evaluated through different metrics such as the robustness, the similarity [16] or complexity. In our study, we choose to evaluate the network performance through its reliability and packet delays. More precisely, we specify, at the start of each simulation, a required QoS based on a minimum reliability and maximum delay. Using this network performance criteria, the study focuses on how the viability theory operates, using its associated controls, in order to achieve or not this required QoS level. We propose in this paper to control the sustainable use of resources (i.e., energy consumption) of a wireless sensor node by an adaptive tuning of the MAC parameters (macMinBE, macMaxCSMABackoffs and macMaxFrameRetries). We also propose to adjust the offered load per node with the parameter (λ) of the sampling frequency in order to meet, in real-time, agricultural and environmental application requirements. In these application topics, measurements can be collected at different frequencies in order to determine, for example, optimal quantities of agricultural inputs (fertilizers, irrigation, pesticides, etc.). For example, when the temperature in a forest increases roughly, the node could benefit of this (viability evaluated) “extra energy” to provide critical information about these environmental phenomenum at higher frequencies and, after, it could come back to a normal activity state and continue its tasks. In many environmental systems (forest, river, crop), monitoring plays a key-issue in order to cope with extreme events (forest fires, flood, etc.). In such cases, the sampling rate has to be increased in order to have a maximum of information for decision-makers. This sampling rate may also yield a full discharge of the battery. The purpose is therefore to find strategies that enable to send a maximum of information and to keep the node operationnal in the long-term. Sampling frequencies are also very specific to a given application. In addition, it is recognized and shown previously in [17] that the offered load per node helps to significantly enhance the performances (high reliability, low packet delay, low energy consumption per node) in large networks. In this paper, we assume that a wireless sensor node has a renewable energy source such as a solar panel. Note that even with this external energy supply, consumption and power management in WSN may still be problematic because of low solar radiation observed, for example, in Nordic countries.
To achieve our goal, we use one of the existing control approaches, namely the viability theory [18]. A description of the viability theory is given in section 3.4. It aims at providing the operating policies adapted to the applications contraints in terms of lifetime duration, reliability and packet delay. We have chosen the viability theory because it is conducive to the WSN management that requires: i) tradeoffs between energy, reliability and packet delay; ii) adaption to the current WSN state according to its nodes resources. For example, low energy consumption and a high reliability may require significant packet delay that does not meet the needs of low-delay applications (e.g., emergency applications). Moreover, energy produced by a “renewable” source as a solar panel may be consumed more rapidly than it is produced. So, the balance between the consumed and produced energies according to the expected performance can be achieved through the viability theory.
The application of the viability theory relies on the definition, by the manager, of an analytical model describing the dynamics of the resources or their evolution over time and of a constraint space (i.e., a set of desirable states) where the resources of a wireless sensor node have to be confined. Finally, WSN are subjected to surprises and hazards and it seems to be unrealistic to integrate an optimization algorithm that can be adapted to all possible states of the WSN: it will require to perform a new optimization at each new state of the WSN. Monitored phenomena can also require dynamic sampling frequencies (e.g., rain events in vineyard).
The outcomes of the viability theory rely on a control map, that can be aggregated, that enables the adaption of the energy consumption according to the new state of the WSN. It yields more flexibility that classical optimization algorithm and consumes less energy in terms of computations. Moreover, unlike other approaches (some related to optimizations), the viability theory recommendations could be embedded inside a wireless sensor node. Thus, remote intelligent system that provides to the nodes their operating frequencies is not necessary. So, in this paper, we discuss the analytical model describing the dynamics of the resources and then we seek to find operating policies (i.e., the controls) to be applied at the appropriate time on a wireless sensor node to preserve its viability (i.e., to maintain sustainably the dynamics of the system within its space of constraints).
In a first section, we present the related work of WSN management. We especially focus on the need of flexible and adaptive tools, one of our motivations for this study. We then present our specific WSN and the associated model, that has been previously developed. This model is then nested in the mathematical formulation of the viability problem applied to a wireless sensor node. Numerical results are analyzed and discussed in terms of controls and adaption. Conclusion and future perspectives are given in the last section.
2 From optimal to adaptive and viable management of WSN
In the literature, many papers targeted to assess and to improve the performance of WSN. Many schemes have been proposed to meet this issue. Most contributions, in this context, have focused on operating systems [3, 4], network layer [5–7] MAC layer [8–14] and PHY layer [15]. In this section, we give an overview of the related work on WSN management based on MAC layer.
Most reseach works [8–10] have focused on the development of MAC layers to address this issue. In [8], the authors designed a MAC protocol to guarantee and increase the reliable delivery of the high quality data (e.g., real-time data) under low energy consumption and low transmission delay. It uses a service differentiation mechanism based on a spatial correlativity model of nodes and on the perceived data by the nodes in order to select nodes close to the information and prioritize their high quality data in the access channel. The authors in [9] proposed an adaptive QoS-aware MAC protocol for WSNs with heterogeneous traffic. This protocol uses a hybrid channel access method by combining the strength of both contention-based and contention-free MAC protocols. It adjusts the behavior of its channel access method depending on network traffic loads to ensure high channel utilization and low latency. Moreover, it uses a traffic prioritization mechanism to provide efficient and fair delivery of both real-time and best-effort traffic. In [10], the authors designed a network stack (PHY, MAC and Network layers) for precision agriculture to minimize energy consumption at the transceiver. The MAC layer uses a wake-up synchronization scheme between sender and receiver to reduce energy consumption. It uses a short pulse for wake-up signal. The PHY layer uses multiple power modes (drowsy and ping modes) during the wake up synchronization phase of the communication. The Network layer balances the energy depletion over the nodes in the network. Upon receiving a packet, a node has to choose, as next hop, the node with the maximum remaining energy level among neighbours closer to the sink node. Moreover, the role of the sink node is rotated among the corner nodes of the monitoring field. Note that a poorly designed layer could cause problems (e.g., failure handling, synchronization and inter-node communications) and degrade WSN performance. So, the new layer should be properly modelled and written in such a way that it is easily portable to different hardware platforms with minimal changes.
Contrary and in complement to previous ones, some works [11, 12, 14] focused on the adaptive tuning of MAC parameters, particularly those of the IEEE 802.15.4 Standard [19]. This Standard is usually developed and proposed by each WSN OS manufacturer (e.g., TinyOS [3] and Contiki OS [4]), and thus is properly managed by each of these OSs. Moreover, the tuning of IEEE 802.15.4 MAC parameters does not require any modification of the IEEE 802.15.4 Standard and can be easily implemented on different OSs and hardware platforms. The authors of [20] showed that the performance (reliability, scalability and timeliness) of the 802.15.4 MAC is very poor when the number of contending nodes is high. However, this poor performance is not due to the Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA) algorithm used by the MAC protocol to regulate the channel access, but is caused by the default parameter setting suggested by the Standard [14, 17, 21]. Indeed, it is known that the IEEE 802.15.4 may have poor performances in terms of power consumption, reliability and delay, unless the MAC parameters are properly selected [17, 22]. Many strategies for tuning the IEEE 802.15.4 MAC parameters algorithm are considered in [11, 12, 14]. The authors in [11] introduce a service differentiation mechanism of packet transmission for improving the performance of the IEEE 802.15.4 slotted CSMA/CA MAC for time critical events (e.g., the alarms). The frames are categorized into high and low priority queues by adequately tuning the values of the CSMA/CA parameters: the minimum backoff exponent (macMinBE), the maximum backoff exponent (aMaxBE) and the initial value of the contention window (CWinit). The goal of this paper is to reduce queuing delays of high priority traffic but not of all traffic. However, energy efficiency, which is an important issue in WSN, has not been investigated. In addition, acknowledgements are not used and other CSMA/CA parameters (such as the maximum number of backoffs macMaxCSMABackoffs and the maximum number of retries aMaxFrameRetries) affecting the behavior of slotted CSMA/CA have not been considered.
The IEEE 802.15.4 MAC unreliability problem in single-hop networks is emphasized in [12] under CSMA/CA parameters and others parameters (packet generation rate, packet size, packet error rate). They showed that the set of the MAC parameters to values beyond the maximum ones allowed by the IEEE 802.15.4 Standard helps to guarantee a delivery ratio of 100% (or very close to 100%) in some application scenarios. However, such setting leads to high latency and high energy consumption for large networks (e.g., > 40 nodes) compared to the default parameter values (i.e., defined in the Standard) or to the standard parameter set (i.e., higher values compliant with the Standard). Moreover, no adaptive mechanism for tuning (optimal or not) the IEEE 802.15.4 MAC parameters has been proposed in this paper. The authors in [14] proposed a distributed and adaptive algorithm which optimally adjusts the CSMA/CA parameters of the IEEE 802.15.4 Standard called macMinBE, macMaxCSMABackoffs and macMaxFrameRetries, described more precisely in the following. This algorithm was based on an analytical model of the beacon-enabled version (i.e., the slotted CSMA/CA) of IEEE 802.15.4 Standard proposed in [13]. This model gives the approximated analytical expressions of reliability, delay and power consumption of a node within a single-hop topology. Moreover, this model estimates the channel sensing probabilities (i.e., the busy channel probabilities α and β during the first and the second clear channel assessment (CCA) and the channel access probability τ) based on the physical layer measurements. This reduces drastically the computational complexity caused by the system of non-linear equations formed by α, β and τ. The focus of their algorithm is on the IEEE 802.15.4 optimization problem of power consumption, thus extending the WSN lifetime, while guaranteeing reliability and delay constraints in the packet transmission. The solution of this optimization problem gives the optimal MAC parameters values (macMinBE, macMaxCSMABackoffs and macMaxFrameRetries). The checking for the optimal MAC parameters occurs at each update of channel sensing probability, i.e., at each sensing state of node (each aUnitBackoffPeriod = 80 bits equivalent to 0.32 ms for the update of τ and when a node stays in the first Clear Channel Assessment (CCA) and second CCA for the update of α and β, respectively). This high update frequency of channel estimation, especially if the traffic is large, leads to frequent checking and potentially changes of optimal MAC parameters, and therefore to an extra non-negligible energy consumption (computation and memory storage).
Most existing contributions, based on the adaptive tuning of MAC layer parameters, concentrated on maximizing the reliability and minimizing the delay of delivered packets. This is suitable for real-time applications, but not for monitoring applications, such as agricultural application requiring specific sampling frequencies at different times. So, rather than investigate the energy optimization problem as in [14], we propose in this paper to control the sustainable use of resources (i.e., energy consumption, reliability and packet delay) of a wireless sensor node by an adaptive tuning of the IEEE 802.15.4 MAC parameters:
macMinBE, minimum value of the backoff exponent in the CSMA/CA algorithm, symbolized by m0
macMaxCSMABackoffs, maximum number of backoffs attempts of the CSMA/CA algorithm before declaring a channel access failure, symbolized by m
macMaxFrameRetries, maximum number of retries allowed after a transmission failure, symbolized by n
Unlike existing contributions, where the sampling frequency (λ) is an input, we also propose to control (λ) in order to meet the agriculture and environment application requirements. In agriculture, the collection frequency of observations is very important, for example, in the characterization of the different phases of a plant development (e.g., lifting, tillering, stem elongation, flowering and maturity). Since the growth of a plant is different during these phases, the monitoring of the plant requires different sampling frequencies at an unknown date and during an unknown period. Thus, there may be an increase in frequency from one phase to another. However, a higher sampling frequency of sensor nodes may cause significant energy consumption and poor QoS leading to violations of the application requirements. Hence, the sampling frequency must be a design parameter that needs to be adjusted to meet the application requirements. In addition, it is recognized and shown in [17] that the offered load per node helps to significantly enhance the performances (high reliability, low packet delay, low energy consumption per node) in large networks.
In this paper, we assume that a wireless sensor node has a renewable source such as a solar panel. Our goal is to find the required balance between the energy consumed by the operations done by the wireless sensor node and the one produced by this renewable source. This will allow using as long as possible, in the absence of hardware failure, the WSN for new applications, especially in isolated areas. To achieve our goal, we use one of the existing control approaches, namely the viability theory [18], see section 3.4. The purpose is to adapt WSN management in order to keep a suitable reliability and delay of packets transmission while ensuring to keep enough energy for long-term use.
3 Defining dynamics, controls and objectives of WSN management
3.1 Statement of the problem
Designers of WSNs are grappling with how to integrate uncertainty into their policies of energy consumption. Indeed, failure of a wireless sensor node is mainly due to hazards and surprises. In this context, designers need tools that enable flexible and adaptive management of the energy consumption, especially when WSNs are subjected to environmental changes. Therefore we propose to use an adaptive management of energy consumption, reliability and delay in the transmissions of WSN. Adaptive management aims at managing the system according to the current state of the WSN. Such adaptive management is used in environmental systems where hazards and uncertainties are important (see [23, 24] for such examples of adaptive management). However, adaptive management requires: 1) a controlled dynamical model of WSN; 2) tools for defining suitable controls according to the state and the dynamics of WSN. Both issues are described in what follows.
3.2 Dynamics
3.2.1 Energy
Wireless Sensor Networks (WSNs) have typically little or no fixed infrastructure as compared with wired network. So, their operations require an intelligent management of their resources to meet the lifetime expected by the deployed application. Moreover, node’s energy is generally the most critical. To estimate or control the lifetime of a node, by extension, that of the WSN, it is necessary to know at a given time the remaining energy of a node. The energy evolution of a node in discrete time, defined by a time interval dt of 0.2, can be written as follows:
| (1) |
Where the term E(t) is the remaining energy of a node at time t. The energy Esol is the average external energy produced by the solar panel (an expression is given in the first item of this Section 3.2.1). It is used to partially mitigate the limitation of energy of a wireless sensor node. In our study case, we assume that Esol is constant and does not depend on time and a set of other parameters symbolized by pWSN. Econ is the average energy consumption of a node at time t with a set pWSN of other parameters. The set pWSN includes parameters related to different network protocol layers of a node (i.e., mainly the physical (PHY), MAC and application layers), to the environment and to device characteristics. Indeed, in most WSNs, the nodes communicate with low power and consequently the radio links are very unreliable. This can lead to losses that may be due to the unpredictable and harsh nature of communication channels, i.e., the PHY layer (bandwidth, data/bit rate, encoding, modulation, etc.). Moreover, the shadowing and fading effects of wireless channel due to environment characteristics (ambient temperature, presence of obstacles, monitoring area) and the noise floor related to radio devices (heterogeneity and location) influence the signal strength and thereafter the link reliability. The MAC layer (contention window, buffer size, etc.) affects the network performance and the energy consumption because it is responsible for establishing communications for data transfers and also for the allocation of communication resources between the contending nodes. The application layer (e.g., sampling frequency, data frame size, etc.) affects the MAC layer and allows estimating the level of network congestion and also the energy resources. An analytical model of Econ has been proposed in [17] and in [25] and recalled in the second item of this Section 3.2.1 for the sake of simplicity. In what follows, for the sake of clarity, we remove the parameter t from the equations, keeping in mind that the parameters of the WSN depend on time. Then we will define among the WSN parameters those that we can control and therefore that evolve in time.
Energy produced by a solar panel
The performance of a solar photovoltaic (PV) system depends upon several factors namely: the characteristics (type and size) of the solar panel, solar radiation, the inclination of the PV module relative to full sun, the ambient temperature, the wind speed, etc. The average electrical energy produced by a PV panel during a time T is given as follows:
| (2) |
Where Psol is the electrical power produced by a PV panel [2]:
| (3) |
with
| (4) |
| (5) |
| (6) |
where η is the instantaneous efficiency of the PV module; η0 is the PV module efficiency at reference temperature and γ is the temperature coefficient for photovoltaic conversion efficiency (in %/°C); the values of η0 and γ are obtained from the PV characteristic curves given in the specification sheet of the manufacturer; Pmax is the typical peak power produced by the PV module at Standard Test Conditions (STC), i.e., a cell temperature of 25°C, a illumination of 1000 W/m2 at spectral distribution of an Air Mass (AM) 1.5. Imax and Vmax are the current and the voltage corresponding to the peak power Pmax of the PV module; VOC is the open-circuit voltage and ISC is the short-circuit current; FF is the fill factor which gives an idea of the quality of the PV module. Pin is the incident power of solar radiation which is on average equal to 1000 W/m2; S is the active surface area (in m2) of the PV module, i.e., the total surface area of the PV cells receiving solar radiation; Tcell is the PV cell temperature; Tref is the reference temperature (25°C); G is the effective solar irradiance (in W/m2) on the PV cell which does not correspond to the reference solar irradiance Gsol coming directly from the sun; the effective irradiance G decreases according to the sun position of the factor cos(α) where α is the angle of incidence;
The PV cell temperature Tcell varies depending on the irradiance G and the ambient temperature Ta of 19°C according to the relationship [26, 27]:
| (7) |
where Tfn (in °C) is the nominal operating cell temperature (NOCT) for a solar irradiation of 800 W/m2, an ambient temperature of 20°C, and a wind speed of 1 m/s. The value of Tfn is given by the manufacturer. The parameters values of the PV module are presented in Table 1.
Table 1. Parameters of the PV module.
| Variable | Definition | Value |
|---|---|---|
| S | Active surface of the PV module | 0.075m × 0.24m |
| Pin | Average incident power of solar radiation | 1000W/m2 |
| Vmax | Voltage corresponding to the peak power of the PV module | 7.2V |
| Imax | Current corresponding to the peak power of the PV module | 0.10A |
| γ | Temperature coefficient for photovoltaic conversion efficiency | −0.43%/°C). |
| Tref | Reference temperature | 25°C |
| Tfn | Nominal operating cell temperature (NOCT) for a solar irradiation of 800 W/m2, an ambient temperature of 20°C, and a wind speed of 1 m/s | 46°C |
| Ta | Ambient temperature | 19°C |
| Gsol | Reference solar irradiance coming directly from the sun | 249W/m2 |
| α | Angle of incidence of PV panel | 45°C |
| Number of hours of sun per year | 1898 |
Energy consumption of a wireless sensor node
The energy consumption model is described in detail previously in [17] [25]. This model is obtained through a Markov Chain modeling the slotted binary exponential backoff process of the IEEE 802.15.4 proposed in [13]. This model takes into account energy dissipation of the radio unit and also of the processing and the sensor units in order to capture more faithfully the lifetime of a wireless sensor node. The total energy consumption of a node represented by the variable Econ is the energy consumed by the basic units of a node i.e., the sensing, the processing and the radio units denoted respectively by the variables: Esensor_unit, Eμc_unit, ERF_unit. Then, the total energy consumption of a node, as described in detail previously in [17] [25], is given as follows:
| (8) |
The energy consumption of the transmission unit ERF_unit is expressed as follows:
| (9) |
| (10) |
| (11) |
| (12) |
| (13) |
Where Pi, Psc, Pt, Pr, Pw and Psp are the power consumption of the RF unit in idle-listen state, channel sensing state, transmitting state, receiving state, wake-up state and sleep states during the backoff stages, respectively. x is the busy channel probability; y is the probability of unsuccessful packet transmission; more specifically, y is the probability that a packet, after successfully accessing the channel, is lost (e.g., collisions); m0 is the minimum value of backoff exponent; m is the maximum number of backoff stages; n is the maximum number of retries; L0 is the length of the idle-queue state without generating packets; L1 (an expression is proposed in [28]) is the packet copying delay between the microcontroller and the radio transceiver; α and β are the busy channel probabilities during the first and the second Clear Channel Assessment (CCA) and τ is the channel access probability (Eqs (1) to (3) in [29]); p0 is the steady state probability that the queue is empty (an estimation is proposed in [29]); L is the length of the data frame in unit backoff periods and Lack is the length of ACK frame; N is the number of neighbouring stations; b0,0,0 is the state where the state variables of the backoff stage counter, the backoff counter and the retransmission counter are equal to 0 (an approximation is proposed in [13]); Pfail is the transmission failure probability; Pcol is the collision probability and Pe is the transmission error probability due to PHY layer constraints; Sb is the time unit.
The energy Esensor_unit dissipated by a node upon activation of its sensing unit during time unit Sb can be defined as follows:
| (14) |
Where Pon_sensing(i) and Poff_sensing(i) are respectively the power consumption related to the sensor i when it is active or not; Pon_ADC and Poff_ADC are respectively the ADC power consumption when it is active or not; is the total duration of the measurement phase of the sensor board; Nsensing is the number of active sensors on the board; tsensing(i) is the time response of the physical measure associated with the active sensor i; λ denotes the sensing frequency of sensor node.
The energy consumption of the processing unit Eμc_unit, i.e., the energy dissipated by a node upon activation of its data processing unit can be expressed as follows:
| (15) |
Where Pon_μc and Poff_μc are the power consumption when it is respectively active or idle, respectively; the term corresponds to data processing stage (i.e., collection and manipulation of data) over 802.15.4 Backoff time Sb; Ncycle is the average number of cycles per second according to the microcontroller speed FμC and the software running on the wireless sensor node; the term λSb tmeasure corresponds to the collection of physical measurements performed by sensing units.
3.2.2 Reliability and delay
The maximization of the network lifetime could significantly degrade other network performance (e.g., the communication reliability of a node, the packet delay, etc.) expected by WSN applications. Hence, it is necessary to find a trade-off between the requirements of applications and also the inherent constraints of wireless sensor nodes. Indeed, the bandwidth and memory limitations can cause large latencies and high packet loss, and therefore a low level of Quality of Service (QoS) if the network density is high. So, we propose to include in the dynamical system of a node, the average reliability (i.e., the successful frame delivery ratio) of a node and the average packet delay represented by the states R and D, respectively. The dynamic equations representing the reliability (i.e., the probability of a good frame reception) and the packet delay (i.e., the average waiting time to receive a frame) of a node have been proposed in [29], described in detail previously in [25], and given as follows:
| (16) |
| (17) |
with
| (18) |
Where pk is the probability of having full buffer (Eq 6 in [29]), Pcf is the probability that the packet is discarded due to channel failure and Pcr is the probability that the packet is discarded due to retry limits, L is the payload size, x is the busy channel probability (see Eq 10) and y is the probability of an unsuccessful packet transmission (see Eq 11); more specifically, y is the probability that a packet, after successfully accessing the channel, is lost (e.g., collisions); m is the maximum number of backoff stages and n is the maximum number of retries in IEEE 802.15.4 slotted CSMA/CA MAC; λ denotes the sensing frequency of a sensor node.
3.3 Controls
To control the use of the wireless sensor node resources, a number of recommendations or action policies through controllers must be applied to the node to maintain the dynamic of its system in a constraint set. However, it is important to first identify the controllers, which affect both the dynamics of a node described in Eqs 22, 23 and 24, i.e., the available energy (lifetime), the reliability and the packet delay of a wireless sensor node. This study was conducted in detail in [17] under MAC parameters (m0, m, n) where m0 denotes the minimum value of the backoff exponent in the Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA) algorithm, m represents the maximum number of backoffs that this same algorithm will attempt before declaring a channel access failure and n denotes the maximum number of retries allowed after a transmission failure. The study of [17] was focused on the parameters of the MAC and the application layers. Indeed, the MAC layer helps to achieve good network performance and energy saving given that it is responsible for establishing communication for data transfers and also for the allocation of communication resources between the contending nodes. For example, it is known that IEEE 802.15.4 may have poor performances in terms of power consumption, reliability and delay [22], unless the MAC parameters are properly selected. Moreover, the application layer affects the MAC layer and allows estimating the level of network congestion and also the energy resources. The authors in [17] have shown that especially in small networks, the MAC parameters (m0, m) are the main keys for reliability, packet delay and energy consumption of a node in the beacon-enabled slotted CSMA/CA of IEEE 802.15.4 Standard. However, in large networks, the setting of MAC parameters (m0, m) do not allow to ensure a good average reliability with a low average packet delay and lower average consumption. The offered load per node could be properly tuned through, for example, the sampling frequency (symbolized by the variable λ) in order to obtain such performances. So, m0, m and uλ are the controllers chosen to preserve the viability of a node with uλ controlling the time variation of the sampling frequency. Indeed, we suppose that the node can act on its sampling frequency according to its remaining energy level in order to see the effects of the sampling frequency on the lifetime of node. We have therefore the following three controls that may evolve in time:
| (19) |
| (20) |
| (21) |
where V and Lλ are the maximum velocity and the length of the growth rate of inputs of the sampling frequency, respectively. Note that the parameter V is used to control the window of uλ. A wider window (i.e., a wider V) will increase the system reactivity. The consideration of these controls in the Eqs (1, 16 and 17) gives new dynamics:
| (22) |
| (23) |
| (24) |
| (25) |
3.4 Using the viability theory for managing WSN systems
3.4.1 Defining adaptive management of WSN
In a WSN environment subject to uncertainties (wireless communication and hardware failures), Designers need tools that enable flexible and adaptive management of the energy consumption, especially when WSNs are subjected to environmental changes. Rather than managing for a single, optimal state, users have to manage their wireless sensor node within a range of acceptable outcomes while avoiding failure and keeping flexibility in their policy of energy consumption. Users should therefore gain by using tools that enable them to find not the optimal policy but to find a policy that avoid energy failure. We argue that viability theory [18] is a suitable tool for managing the wireless sensor node’s energy in order to avoid its energetic failures, especially when the WSN is subjected to unexpected environmental changes (fires, flood, etc.). These environmental changes can have an impact in the energy production of the renewable sources and require higher acquisition frequencies. Indeed, agricultural and environmental phenomena can generate events that need more data acquisition to well-understand them.
The viability theory aims to preserve some qualities of a dynamical system that evolves in a set of desirable states. These desirable states have to be defined beforehand in order to avoid the wireless sensor node failure. In our case, the set of the desirable states that avoid the failure is called “viability kernel” [18, 30, 31]. This theory has been successfully used for tackling environmental management issues such as forestry and fishery management [23, 31] or for managing bird community in farmland [32] or for climate change [33]. This theory handles two issues:
Defining the desirable states of the use of a wireless sensor node
Considering all the energy policies instead of one optimal policy
In this article, we seek to focus on defining “viable” energy management while keeping the following desirable states that is a minimum reliability of node communication and a maximum packet transmission delay. These desirables states are mathematically symbolized by K. In the viability framework, an important innovation is to introduce controls to explicitly account for the possibility to act on the system. In this framework, controls are not fixed beforehand. Instead, the goal is to find relevant management strategies (not necessarily “optimal” according to a certain criterion) that will maintain indefinitely the system into its state constraints K. In our case, we suppose that we can change the values of the sampling frequency and the setting of some MAC parameters (m and m0). In discrete time, this means that, at each time step, there is a set of possible controls that one must choose from. One objective of the viability theory is to determine which are the set of the desirable states of our WSN, denoted K, for which the dynamics can keep the WSN properties. This objective to keep relevant system properties is achieved through management strategies i.e., by choosing suitable values of m(t), m0(t) and uλ(t) at each time step. The set of all the states for which there is a control strategy such that the system can be maintained at all times inside the set of desirable states is called the viability kernel Viab(K). The viability kernel Viab(K) is composed of all initial states of the system for which there is at least a sequence of controls (m(t), m0(t), uλ(t)) which influences the evolution of the WSN at time t and allows the system to stay in this same viability kernel. In discrete time, it can be formally defined as the set of initial states for which there exists a trajectory that does not leave K:
| (26) |
Within the viability kernel, the system is maintained in a desirable state for so long as it is not disturbed. The computation of a viability kernel also yields the set of controls which maintain the system viable, which are called the viable controls. Thus, it incorporates the impacts of management policies, and implicitly optimizes them.
The purpose of this work is to study alternative solutions to optimization-based solutions. Indeed, using “classical” optimisation methods, at every node state change, requires more resources that a wireless sensor has. For some problems, even a single computer is not sufficient to obtain a result in acceptable time. The idea is therefore not to optimize the system but to find all strategies that enables to comply with the constraints. Theoretically, the viability set could, in turn, be integrated in a wireless sensor: it is possible to increase the sampling rate until this viability boundary. As shown in Fig 1, from the initial state, a wireless sensor node can adapt its sampling frequency to follow “Nominal trajectory A”. This trajectory belongs to the part (under the green line) of the viability kernel (the green area under the blue line) where the energy consumed for sampling is less than the available energy. However, the node can “switch” to the “Viable Trajectory C” with higher sampling frequencies in order to better follow the changes in the monitored phenomenon (e.g., a flood on a watershed). Even if the sampling energy is higher than the available one, staying in the viability kernel implies that, at each step, there exists a set of controls that will maintain the node in a viable state. As we can see, the “Optimal trajectory B” also belongs to the viability kernel.
Fig 1. Illustration of the viability theory.
3.4.2 Defining the desirable states and the control
The objective is to maintain in a desired state the evolution of the system described by Eqs 22 to 25 and to define mathematically the constraint set K. We assume that the node is working when its remaining energy exceeds a given threshold Emin, i.e., the positive variable E satisfies:
| (27) |
We assume that the objective of the communication reliability of a node is reached when the positive variable R is higher than a minimum reliability Rmin:
| (28) |
We also assume that the objective of the packet transmission delay is reached when the positive variable D is below the acceptable delay Dmax:
| (29) |
We assume that the sampling frequency λ of node is a positive variable, which satisfies:
| (30) |
4 Results and discussions
In this section, we study the viability of the dynamical system (described by Eqs 22 to 25) of a node into a star (i.e., single-hop) topology WSN (composed of N wireless sensor nodes) by using the viability algorithm proposed in [34]. The node investigated here is a Libelium Waspmote microsensor [35] rather than another (as Micaz [36], etc.) because of two reasons. Firstly, the Libelium Waspmote device encompasses sensor boards such as the agriculture board, which allows monitoring multiple environmental parameters (e.g., air temperature and humidity, soil moisture, leaf wetness and atmospheric pressure, etc.) for agricultural and environmental applications. Secondly, the Libelium Waspmote device has high power consumption. So, it is important to adopt a dynamical energy management policy with the objective of extending its durability after the deployment.
Note that the analytical models Econ, R and D (see Eqs 8, 16 and 17) which are used to analyze the dynamics (Eqs 22 to 25) are those of a wireless sensor node into a star topology (i.e., single-hop) network under the beacon-enabled slotted CSMA/CA of IEEE 802.15.4 Standard in non-saturation mode with acknowledged uplink (communications are from wireless sensor nodes to a personal area network coordinator) and limited buffers. These analytical models provide a more precise computation of the average communication reliability, the average delay and the average energy consumption of a node because they take into account parameters, such as those related to: the network density, the offered load per node, the medium access control (MAC), the effects of PHY layer (the shadowing and fading effects of wireless channel due to environment characteristics, the noise floor related to radio devices, the modulation and encoding mechanisms used by the radio to send data over the wireless channel, etc.), etc.
Tables 2–4 presents the parameters of the model described by Eqs 22 to 25. The following sections present the results of the viability kernel of the set K of state constraints denoted Viab(K) and of the trajectories from K into Viab(K) governed by a set of admissible controls. Results are presented for a node into a star topology network of 100 nodes. We have achieved an extensive set of simulations in which we do vary several variables such as:
Table 2. Set of state constraint K (see Eqs 22 to 25).
| Variable | Definition | Value |
|---|---|---|
| Emax | Maximum viability constraint on the remaining energy of a node | Maximum energy of a battery: Ebattery = 30636 J |
| Emin | Minimum viability constraint on the remaining energy of a node | 20% of Emax = 6127.2 J |
| Rmin | Minimum viability constraint on the reliability of a node | {0.9; 0.95; 0.99} |
| Dmax | Maximum viability constraint on the packet delivery delay | {0.02; 0.05; 0.07} s |
| λmin | Minimum viability constraint on the sampling frequency of a node | 0.1 packets/s |
| λmax | Maximum viability constraint on the sampling frequency of a node | 0.5 packets/s |
Table 4. Set of parameters P (see Eqs 22 to 25).
| Variable | Definition | Value |
|---|---|---|
| Esol | Energy produced by the solar panel during a slot. A slot is defined by a time unit Sb = 0.32 ms | [2; 10] μJ/slot |
| Econ | Map that computes the average energy consumption of a node | They depend on λ(t), m0, m and others fixed parameters (related to physical layer, network size, packet size, etc.) whose values are provided in [17] |
| R | Map that computes the average reliability of node | Same note as for Econ |
| D | Map that computes the average packet delivery delay of node | Same note as for Econ |
the energy produced by a solar panel during a time unit Sb (i.e., the backoff time unit in beacon-enabled slotted CSMA/CA of IEEE 802.15.4 Standard, Sb = 0.32 ms): Esol = 2 μJ/slot to 10 μJ/slot;
the minimum reliability of a node: Rmin = {0.9; 0.95; 0.99};
the maximum packet delay: Dmin = {0.02; 0.05; 0.07} seconds.
Table 3. Set of admissible controls U (see Eqs 22 to 25).
| Variable | Definition | Value |
|---|---|---|
| m0,min | Minimum viability control on the parameter m0 of the MAC layer | 2 |
| m0,max | Maximum viability control on the parameter m0 of the MAC layer | 8 |
| mmin | Minimum viability control on the parameter m of the MAC layer | 0 |
| mmax | Maximum viability control on the parameter m of the MAC layer | 5 |
| V | Maximal admissible velocity of inputs of sampling frequency | [0; 9] |
| Lλ | Maximal length of the growth rate of inputs of sampling frequency |
4.1 Equilibria
Viability implies that the trajectory of the evolution z(.) must remain always confined in a constrained set. In some cases, evolution could converge to stable states when t ↦ +∞. In this case, viability is partly linked to stationarity of the system, i.e., the existence of a set of fixed viable points called equilibria where the evolution arriving at these points remains inert. Thus, in this section, we seek to identify the viable stationary points zeq = (Eeq, Req, Deq, λeq) for a later analysis of our results in the next sections:
| (31) |
Fig 2 presents the value of the sampling frequency inputs (λ) that satisfies Eq 31 in function of the solar energy (Esol) for different minimum reliability (Rmin) and maximum delay (Dmax) values. When Esol = 2 μJ/slot, we note in Fig 2 that there is no value λeq that satisfies Eq 31. However, λeq exists and increases as Esol increases (≥ 4 μJ/slot) and whatever Rmin and Dmax. Indeed, the contribution of the solar panel is enough to compensate the energy dissipated in the node. In addition, the higher the value of Esol is, higher will be the value of λeq for ΔE/Δt = 0 because in communication theory and computer science, the amount of energy dissipated in the wireless sensor node depends mainly on the amount of information (during stages of sensing, processing and transmission). We can see in Fig 2 that for a given Esol (≥ 4 μJ/slot), only Dmax has an influence on the value of λeq because λeq varies and increases with an increase of Dmax whatever Rmin (≥ 90%). Indeed, when the delay constraint is less critical with a high reliability, the power consumption decreases, and subsequently the sampling frequency should be larger so that the difference between the energy produced by the solar panel and the energy dissipated in the node is null (i.e., ΔE/Δt = 0). This explains the variation of λeq with an increasing Dmax. However, the value of λeq remains stable even with an increasing Rmin for a given Dmax as shown in Fig 2 because the power consumption is almost similar as Rmin increases, and it does not require a larger value of sampling frequency for ΔE/Δt = 0.
Fig 2. Sampling frequency input (λeq) that satisfies Eq 31 vs. solar energy for different Dmax and Rmin.
No solution when: (1) Esol = 2 μJ/slot and (2) Esol = 10 μJ/slot, Dmax = 50 ms and Rmin = 99%.
Table 5 shows the largest admissible sampling frequency in function of the minimum reliability Rmin, and the maximum delay Dmax required by an application. We note in this table that the largest of λ-values decreases as Rmin increases or Dmax decreases. Indeed, the authors in [17] have shown that, in large networks, the offered load per node (i.e., the product of sampling frequency and data frame size) is a key parameter on network performance and nodal energy consumption. Moreover, the maximum offered load per node should be lower in order to have a higher reliability with lower packet delay. So, we can say that Rmin and Dmax have an impact on the viability kernel and also on the trajectories of viable states as they affect the sampling frequency inputs (λ).
Table 5. Largest sampling frequency inputs λ (in packets/s) for different values of Rmin and Dmax.
| Min reliability (Rmin) | Max Delay (Dmax) | Largest frequency (λ) |
|---|---|---|
| 90% | 50 ms | λmax = 0.5 |
| 90% | 70 ms | λmax = 0.5 |
| 95% | 50 ms | 0.468 |
| 95% | 70 ms | λmax = 0.5 |
| 99% | 50 ms | 0.348 |
| 99% | 70 ms | 0.428 |
4.2 Viability kernels
This part is devoted to the experimentation per simulation of the viability kernel of a dynamical system of a node into a personal area network (PAN) for a given application scenario requiring a minimum reliability (Rmin) and a maximum packet delivery delay (Dmax). Our aim is to determine all the states from which there exists at least one trajectory satisfying Eqs 22 to 25 remaining in K (Eqs 27 to 30) until time T. To better analyze the dynamical system, we observe it in spaces in two and three dimensions.
4.2.1 Viability kernel in 2-dimensional space (E, λ)
Fig 3 shows the evolution of the surface of the viability kernel (the blue shape) according to the intensity (VLλ) of the time variation of the sampling frequency inputs. The viability kernels on this Figure are cuttings in a two-dimensional space (E, λ), with K = [Emin;Ebatt] × [λmin;λmax], of the dynamical system described in Eqs 22 to 25 by using values Rmin = 0.99, Dmax = 50 ms, Esol = 6 μJ/slot. On this Figure, the x-axis and y-axis indicate the remaining nodal energy and the sampling frequency, respectively. We can see that the percentage of the kernel viability increases with VLλ. Indeed, an increase of VLλ allows a greater decrease of the sampling frequency inputs and of the energy consumption of a node, and therefore an increase of the remaining nodal energy. So, more VLλ is large, higher will be the number of viable points whose the initial remaining node energy and the initial sampling frequency tend towards Emin and λmax, respectively. This explains an increase of the surface of the viability kernel as VLλ increases. Thus, as shown in Fig 3, the increase of viability kernel will enable the node to send packets with a sampling frequency larger than the sampling frequency equilibrium λeq (0.205 packets/s in this configuration; Note that 0.205 is the equilibrium value of the sampling frequency (λ) that satisfies Eq 31 for Rmin = 0.99, Dmax = 50 ms and Esol = 6 μJ/slot as shown in Fig 2) without violating application constraints in terms of lifetime, reliability and packet delay.
Fig 3. Viability kernels in 2-dimensional space (E, λ) of four-dimensional viability problem described in Eqs 22 to 25 by using values Dmax = 50 ms, Rmin = 0.99, Esol = 6 μJ/slot.
The kernel viability is the blue shape into the constraint space (bordered by a black rectangle). The sampling frequency equilibrium in this configuration is λeq = 0.205 packets/s (see Fig 2).
4.2.2 Viability kernel in 3-dimensional space (E, D, λ)
Fig 4 presents the percentage of the viability kernel under different values of parameters (Esol, Rmin). Rmin = {0.9; 0.95; 0.99} takes three values corresponding to different application requirements and Esol takes five different values in the interval [2; 10] μJ/slot corresponding to five solar panels with different sizes. The viability kernels percentage presented on this Fig 4 are cuttings in the three-dimensional space (E, D, λ) from Rmin of a kernel viability of four-dimensional viability problem described in Eqs 22 to 25. The maximal intensity of the time variation of the sampling frequency inputs is VLλ = 0.024. The maximum delay Dmax is set to 50 ms. The volume of these viability kernels is presented in Fig A in S1 File, where the x-axis, y-axis and z-axis indicate the remaining nodal energy, the packet delivery delay and the sampling frequency, respectively. We can see in Fig 4 that the viability kernel is empty when Esol ≤ 3 μJ/slot because the contribution of the solar panel is not enough to compensate the energy dissipated in the node (i.e., ΔE/Δt < 0). However, when Esol ≥ 4 μJ/slot, the viability kernel is a non-empty subset of the set of state constraints (i.e., 0 < Viab(K) < K). Indeed, for Esol ≥ 4 μJ/slot, there is at least one of λ-values of the constraint space which satisfy the inequality ΔE/Δt > 0 because the sampling frequency equilibrium (λeq) exists (see Fig 2). Moreover, when Esol increases, larger will be the λ-values associated with the lowest E-values which satisfy the inequality ΔE/Δt > 0 because λeq increases with Esol as shown in Fig 2. It is for this reason that the viability kernel increases with an increasing of Esol whatever Rmin as shown in Fig 4. We also notice that the viability kernel degrades as the required minimum reliability Rmin increases and Esol ≥ 4 μJ/slot. Higher the value of Rmin is, lower will be the sampling frequency to ensure this minimum reliability and a maximum packet delivery delay Dmax (see Table 5) and thus lower will be the number of λ-values meeting these requirements (see Fig A in S1 File). This explains the decrease of the viability kernel with an increase of Rmin as shown in Fig 4.
Fig 4. Percentage of the viability kernel in the 3-dimensional space (E, D, λ) vs. solar energy for Dmax = 50 ms, VLλ = 0.024 and different values of Rmin.
4.2.3 Viability kernel in 3-dimensional space (E, R, λ)
Fig 5 presents the evolution of the viability kernel percentage under different parameters (Esol, Dmax). Dmax takes three values (20, 50 and 70 ms) corresponding to different application requirements and Esol takes five different values in the interval [2; 10] μJ/slot corresponding to five solar panels with different sizes. The viability kernels presented on this Fig 5 are cuttings in the three-dimensional space (E, R, λ) from Dmax of a kernel viability of four-dimensional viability problem described in Eqs 22 to 25. The maximal intensity of the time variation of the sampling frequency inputs is VLλ = 0.024. The minimum reliability Rmin is set to 99%. The volume of these viability kernels is presented in Fig B in S1 File, where the x-axis, y-axis and z-axis indicate the remaining nodal energy, the communication reliability of the node and the sampling frequency, respectively. We can see in this Fig 5 that the viability kernel is empty when Dmax = 20 ms even with an increase of Esol. This is due to the chosen value of λmin. For a star topology WSN of 100 nodes, λmin = 0.1 packets/s does not ensure both a low packet delay smaller than 20 ms and a reliability higher than 99%. This has been shown in [17] that the sampling frequency per node should be lower when the network is denser in order to have both a high reliability and a low packet delay. We also notice in Fig 5 that, for a given value of Dmax (e.g., 50 ms and 70 ms), the viability kernel increases slowly and remains stable (its value depends on Dmax) even with an increasing of Esol. This is because for a given Dmax, the higher frequency sampling (represented by λD) associated with Rmin is smaller than λmax (see Fig B in S1 File) and is reached when Esol = 4 μJ/slot (see Fig 5). So, higher the solar energy is, closer to λD will be the higher sampling frequency associated to Emin. As λD is low, the viability kernel increases slowly when Esol increases. We also note in Fig 5 that the viability kernel increases as Dmax increases. Higher the value of Dmax is, higher can be the sampling frequency to respect this maximum packet delivery delay and a minimum reliability Rmin (see Table 5) and thus larger will be the number of λ-values meeting these requirements (see Fig B in S1 File). This explains the increase of the viability kernel as Dmax increases (see Fig 5).
Fig 5. Percentage of the viability kernel in the 3-dimensional space (E, R, λ) vs. solar energy for Rmin = 99%, VLλ = 0.024 and different values of Dmax.
4.3 Trajectories
Fig 6 shows trajectories starting from a viable state x = (E = 20000 J, D = 20 ms, λ = 0.02 packets/s) using Dmax = 50 ms, VLλ = 0.024, Rmin = 99% and Esol = {4; 6; 8} μJ/slot where the x-axis, y-axis and z-axis indicate the remaining nodal energy, the packet delivery delay and the sampling frequency, respectively. We note that the trajectory grows up to a border, make a turn and move along the border until it reaches an area where it loops. So, the trajectory starting from initial state x is cyclic and no stable whatever the value of Esol. Indeed, the stability is obtained when λ = λeq (∼0.2906 packets/s for Rmin = 99% and Dmax = 50 ms as shown in Fig 2). However, all the λ-values (51 values in our study case and the length between two close values is ) inside the constraint space [λmin; λmax] = [0.1; 0.5] packets/s of λ do not equal to λeq. This explains the cyclic effect and allows sending packets to sampling frequencies larger than λeq. We also observe in Fig 6 that the higher the value of Esol is, larger will be the cycle because the viability kernel is larger and the number of λ-values which satisfy the inequality ΔE/Δt > 0 is larger as shown Table 5.
Fig 6. Trajectories in 3-dimensional space (E, D, λ) starting from a viable state x = (E = 20000 J, D = 20 ms, λ = 0.22 packets/s) controlled by Eqs 22 to 25 for Dmax = 50 ms, Rmin = 99%, Esol = {4; 6; 8} μJ/slot, VLλ = 0.024.
Fig 7 shows for different VLλ, trajectories in a 3-dimensional space (E, D, λ) starting from a viable state x = (E = 20000 J, D = 20 ms, λ = 0.02 packets/s) using Dmax = 50 ms, Rmin = 99% and Esol = 6 μJ/slot. The x-axis, y-axis and z-axis indicate the remaining nodal energy, the packet delivery delay and the sampling frequency, respectively. For the sake of clarity, the trajectories starting from the same viable state x are also represented in a 2-dimensional space (E, λ) as shown in Fig 8. We note that the trajectory starting from initial viable state x finally reaches a cyclic area. The cycle is faster when the intensity VLλ is high because of larger decrease and increase of the sampling frequency inputs. Indeed, from a high sampling frequency, when the remaining nodal energy is low, a large decrease is needed in order to maintain the dynamic of the system within the viability kernel. We also observe in Fig 7 that, the maximum sampling frequency (λmax_cycle) of this cyclic area increases with an increasing VLλ and is larger than λeq (0.205 packets/s in this configuration as shown in Fig 8; Note that 0.205 is the value of the sampling frequency (λ) that satisfies Eq 31 for Dmax = 50 ms, Rmin = 99% and Esol = 6 μJ/slot as shown in Fig 2). This is due to the fact that, when VLλ increases, the percentage of the kernel viability increases as explained in the section 4.2.1. This shows the importance of the viability theory because a node can send packets with a sampling frequency larger than λeq without violating application constraints in terms of lifetime, reliability and packet delay.
Fig 7. Trajectories in 3-dimensional space (E, D, λ) starting from a viable state x = (E = 20000 J, D = 20 ms, λ = 0.22 packets/s) controlled by Eqs 22 to 25 for Dmax = 50 ms, Rmin = 99%, Esol = 6 μJ/slot, VLλ = {0.008; 0.024; 0.048}.
Fig 8. Trajectories in 2-dimensional space (E, λ) starting from a viable state x = (E = 20000 J, λ = 0.22 packets/s) controlled by Eqs 22 to 25 for Dmax = 50 ms, Rmin = 99%, Esol = 6 μJ/slot, VLλ = {0.008; 0.024; 0.048}.
Fig 9 shows trajectories starting from two viable states x1 = (E = 20000 J, D = 20 ms, λ = 0.02 packets/s) and x2 = (E = 30636 J, D = 20 ms, λ = 0.22 packets/s) using Dmax = 50 ms, Rmin = 99%, VLλ = 0.024, Esol = 6 μJ/slot. The x-axis, y-axis and z-axis indicate the remaining nodal energy, the packet delivery delay and the sampling frequency, respectively. We note that the initial nodal energy has no impact on the trajectory because the trajectory finally loops in the same area regardless of the initial node energy as shown in Fig 9. However, as shown in Fig 10, the initial nodal energy has an influence on the cost of a trajectory (i.e., distance between the trajectory followed by the system and the objective or the constraints imposed on it: maintaining the property before time T). Indeed, the higher the initial nodal energy is, later will be the next change controls to meet the objectives (see Fig 10d and 10f) and therefore lower will be the cost associated to a trajectory. We can also see in Fig 10c that a node can send packets to sampling frequencies (up to λmax_cycle = 0.324 packets/s as shown in Fig 8b) larger than λeq (0.205 packets/s in this configuration as shown in Fig 2) while durably using its resources and preserving the dynamics of the system within the viability kernel, hence the contribution of the viability theory.
Fig 9. Trajectories in 3-dimensional space (E, D, λ) starting from two viable states x1 = (E = 20000 J, D = 20 ms, λ = 0.22 packets/s) and x2 = (E = 30636 J, D = 20 ms, λ = 0.22 packets/s) controlled by Eqs 22 to 25 for Dmax = 50 ms, Rmin = 99%, Esol = 6 μJ/slot, VLλ = 0.024.
Fig 10. Evolution of dynamics and controls starting from two viable states x1 = (E = 20000 J, D = 20 ms, λ = 0.22 packets/s) and x2 = (E = 30636 J, D = 20 ms, λ = 0.22 packets/s) controlled by Eqs 22 to 25 for Dmax = 50 ms, Rmin = 99%, Esol = 6 μJ/slot, VLλ = 0.024.
Fig 11 shows trajectories starting from two viable states x1 = (E = 20000 J, D = 20 ms, λ = 0.22 packets/s) and x2 = (E = 20000 J, D = 20 ms, λ = 0.412 packets/s) using Dmax = 50 ms, Rmin = 99%, VLλ = 0.072, Esol = 10 μJ/slot and where the x-axis, y-axis and z-axis indicate the remaining nodal energy, the packet delivery delay and the sampling frequency, respectively. Note that in this configuration where Dmax = 50 ms, Rmin = 99% and Esol = 10 μJ/slot, there is no equilibrium point as shown in Fig 2 because for all λ-values which satisfy Dmax and Rmin, the contribution of this solar panel of 10 μJ/slot is enough to compensate the energy consumption of node (i.e., ΔE/Δt > 0). In our study case, this equilibrium point xeq is obtained when Deq ∈ [50; 70] ms and λeq ∈ [0.35; 0.4] packets/s. So, the equilibrium point xeq is outside the kernel viability and space constraints although λeq ∈ [0.35; 0.4] ⊂ [λmin; λmax] packets/s because Deq ∈ [50; 70] ⊄ [0; Dmax] ms. We see in Fig 11 that the trajectories x1 (case where λ < λeq) and x2 (case where λ > λeq) eventually reach a same point (E = Emax = 30636 J, D = 49.692 ms, λ = 0.348 packets/s) even without an equilibrium point. Indeed, the value λ = 0.348 packets/s corresponds to the largest admissible sampling frequency for Rmin = 99% and Dmax = 50 m as shown in Table 5. Moreover, for a solar panel of 10 μJ/slot, ΔE/Δt > 0 when λ = 0.348 packets/s. It is for this reason that, for all λ-values, the remaining nodal energy E reaches the maximum energy Emax of a battery (30636 J for a Lithium-ion battery of 2300mA with 3.7V nominal voltage). Thus, we can see that the initial sampling frequency of a node has no impact on the trajectory. In addition, in the absence of an equilibrium point, it has no significant influence on the cost of the trajectory because the controls remain constant.
Fig 11. Trajectories in 3-dimensional space (E, D, λ) starting from two viable states x1 = (E = 20000 J, D = 20 ms, λ = 0.22 packets/s) and x2 = (E = 20000 J, D = 20 ms, λ = 0.412 packets/s) controlled by Eqs 22 to 25 for Dmax = 50 ms, Rmin = 99%, Esol = 10 μJ/slot, VLλ = 0.072.
5 Conclusion and perspectives
In this paper, we have investigated the performance of IEEE 802.15.4 Wireless Sensor Network (WSN). We have assumed that a wireless sensor node has a renewable energy source such as a solar panel. Despite this external energy supply, consumption and power management in WSN is still problematic because energy produced by a renewable source is generally consumed more rapidly than it is produced. So, in this paper, we have proposed an adaptive tuning of the MAC parameters (macMinBE, macMaxCSMABackoffs and macMaxFrameRetries) and the offered load per node in order to find the required balance between the energy consumed by the node’s operations and that produced by this renewable source, which durably guarantee the expected application requirements in terms of communication reliability and packet delay. To achieve this goal, we have used the viability theory which is a control approach. Firstly, we have proposed an analytical model describing the dynamic (evolution over time) of the energy, the communication reliability and the packet transmission delay. Then, we seek to find operating policies or controls (i.e., MAC parameters and offered load per node) to be applied at the appropriate time on a wireless sensor node in order to preserve its viability (i.e., to durably maintain its activity within a space of desired constraints).
The numerical results have shown that our solution allows ensuring indefinitely, without considering hardware failure, the operations (lifetime duration, communication reliability and packet transmission delay) of a large star topology 802.15.4 WSN composed of 100 nodes. This is beneficial for new applications deployed in isolated areas. In addition, with our viability approach, a node can send packets with a sampling frequency much higher than the equilibrium one without violating application constraints in terms of lifetime, reliability and packet delay. This is very important for real agricultural and environmental applications because wireless sensor nodes can be equipped with solar panels with better suited sizes, saving space (and even money) by a good initial choice while keeping extra energy in case of unforecasted situations. Moreover, compared to an optimization scheme as in [14], our approach allows reducing the extra energy consumption caused by the computation and the storage in memory of controls. Indeed, in our approach, controls are kept constant as long as the viability of the system is not threatened, i.e., as long as the performances of the node are inside the viability kernel. Even we specifically applied our current approach to the IEEE 802.15.4 WSN, we argue that our approach is easily transferable to other types of WSN.
As future works, we plan to include in our adaptive scheme the dynamic of the external energy supply from a solar panel since the solar irradiation varies over time. As in many wireless applications, the operations of a node could be disturbed by certain elements (e.g., the environment, the obstacles, the changes in the node’s vicinity due to adding, deleting and loss of nodes, etc.). Thus, we propose to explore the resilence approach for ensuring the expected Quality of Service (QoS) after a disturbance. Resilience that is based on the viability framework, is the capacity of a system to undergo disturbance and maintain its functions and controls in the set of viability constraints [37]. We also intend to implement our operating policies derived from the viability and resilience approaches on a real WSN platform.
Supporting information
(PDF)
Acknowledgments
This research is partly supported by the grant of Auvergne region and the grant of the European Regional Development Fund (ERDF).
Data Availability
All relevant data are within the paper and its Supporting Information files.
Funding Statement
This research is partly supported by the grant of Auvergne region (www.auvergne.fr/) and the grant of the European Regional Development Fund (ERDF): http://ec.europa.eu/regional_policy/en/funding/erdf/.
References
- 1. Akyildiz IF, Su W, Sankarasubramaniam Y, Cayirci E. Wireless sensor networks: a survey. Computer Networks. 2002;38(4):393–422. 10.1016/S1389-1286(01)00302-4 [DOI] [Google Scholar]
- 2. Sukamongkol Y, Chungpaibulpatana S, Ongsakul W. A simulation model for predicting the performance of a solar photovoltaic system with alternating current loads. Renewable Energy. 2002. October;27(2):237–258. 10.1016/S0960-1481(02)00002-2 [DOI] [Google Scholar]
- 3. Levis P, Madden S, Polastre J, Szewczyk R, Whitehouse K, Woo A, et al. TinyOS: An Operating System for Sensor Networks In: Weber W, Rabaey J, Aarts E, editors. Ambient Intelligence. Springer; Berlin Heidelberg; 2005. p. 115–148. [Google Scholar]
- 4.Dunkels A, Gronvall B, Voigt T. Contiki—a lightweight and flexible operating system for tiny networked sensors. In: Local Computer Networks, 2004. 29th Annual IEEE International Conference on; 2004. p. 455–462.
- 5.Kone CT, David M, Lepage F. Multi-channel Clustering Algorithm for Improving Performance of Large-scale Wireless Multi-sink Sensor Networks. In: Proceedings of the 6th International Wireless Communications and Mobile Computing Conference. IWCMC’10. ACM; 2010. p. 691–695.
- 6. Al-Nabhan N, Al-Rodhaan M, Al-Dhelaan A. Cooperative Approaches to Construction and Maintenance of Networks’ Virtual Backbones for Extreme Wireless Sensor Applications. Sensors Journal, IEEE. November 2014;14(11):3782–3790. 10.1109/JSEN.2014.2329735 [DOI] [Google Scholar]
- 7. Zhang D, Li G, Zheng K, Ming X, Pan ZH. An Energy-Balanced Routing Method Based on Forward-Aware Factor for Wireless Sensor Networks. IEEE Transactions on Industrial Informatics. February 2014;10(1):766–773. 10.1109/TII.2013.2250910 [DOI] [Google Scholar]
- 8. Zhang D, Zhao CP, Liang YP, Liu ZJ. A new medium access control protocol based on perceived data reliability and spatial correlation in wireless sensor network. Computers & Electrical Engineering. 2012;38(3):694–702. Available from: http://www.sciencedirect.com/science/article/pii/S0045790612000389. 10.1016/j.compeleceng.2012.02.016 [DOI] [Google Scholar]
- 9. Souil M, Bouabdallah A, Kamal AE. Efficient QoS provisioning at the MAC layer in heterogeneous wireless sensor networks. Computer Communications. 2014;43:16–30. Available from: http://www.sciencedirect.com/science/article/pii/S0140366414000565. 10.1016/j.comcom.2014.02.003 [DOI] [Google Scholar]
- 10. Sahota H, Kumar R, Kamal A. A Wireless Sensor Network for Precision Agriculture and Its Performance. Wirel Commun Mob Comput. 2011. December;11(12):1628–1645. Available from: 10.1002/wcm.1229. [DOI] [Google Scholar]
- 11.Koubaa A, Alves M, Nefzi B, Song YQ. Improving the IEEE 802.15.4 Slotted CSMA/CA MAC for Time-Critical Events in Wireless Sensor Networks. In: Proceedings of the Workshop of Real-Time Networks (RTN 2006), Satellite Workshop to ECRTS 2006; 2006. p. 574–579.
- 12. Anastasi G, Conti M, Di Francesco M. A Comprehensive Analysis of the MAC Unreliability Problem in IEEE 802.15.4 Wireless Sensor Networks. IEEE Transactions on Industrial Informatics. 2011;7(1):52–65. 10.1109/TII.2010.2085440 [DOI] [Google Scholar]
- 13.Park P, Di Marco P, Soldati P, Fischione C, Johansson KH. A generalized Markov chain model for effective analysis of slotted IEEE 802.15.4. In: IEEE 6th International Conference on Mobile Adhoc and Sensor Systems (MASS’09); 2009. p. 130–139.
- 14. Park P, Di Marco P, Fischione C, Johansson KH. Modeling and Optimization of the IEEE 802.15.4 Protocol for Reliable and Timely Communications. Parallel and Distributed Systems, IEEE Transactions on. March 2013;24(3):550–564. 10.1109/TPDS.2012.159 [DOI] [Google Scholar]
- 15. Ma Z, Zhang D, Liu S, Song J, Hou Y. A novel compressive sensing method based on SVD sparse random measurement matrix in wireless sensor network. Engineering Computations. 2016;33(8):2448–2462. Available from: http://www.emeraldinsight.com/doi/abs/10.1108/EC-09-2015-0269. [Google Scholar]
- 16. Emmert-Streib Frank and Dehmer Matthias and Shi Yongtang. Fifty years of graph matching, network alignment and network comparison. Information Sciences. 2016;346–347: 180–197. [Google Scholar]
- 17. Kone CT, De Sousa G, Mathias JD. Energy-network performance trade-off in a slotted IEEE 802.15.4 network with acknowledged uplink transmissions. Int J Sen Netw. 2015. May;17(4):263–277. 10.1504/IJSNET.2015.069581 [DOI] [Google Scholar]
- 18. Aubin JP. Viability Theory. Cambridge, MA, USA: Birkhäuser Boston Inc; 1991. [Google Scholar]
- 19.Part 15.4: Wireless medium Access Control (MAC) and Physical Layer (PHY) Specifications for Low-Rate Wireless Personal Area Networks (WPANs). 2006.
- 20.Yedavalli K, Krishnamachari B. Enhancement of the IEEE 802.15.4 MAC protocol for scalable data collection in dense sensor networks. In: 6th International Symposium on Modeling and Optimization in Mobile, Ad Hoc, and Wireless Networks and Workshops. WiOPT 2008; 2008. p. 152 –161.
- 21. Willig A. Recent and Emerging Topics in Wireless Industrial Communications: A Selection. IEEE Transactions on Industrial Informatics. 2008;4(2):102–124. 10.1109/TII.2008.923194 [DOI] [Google Scholar]
- 22. Pollin S, Ergen M, Ergen S, Bougard B, Der Perre L, Moerman I, et al. Performance Analysis of Slotted Carrier Sense IEEE 802.15.4 Medium Access Layer. IEEE Transactions on Wireless Communications. 2008;7(9):3359–3371. 10.1109/TWC.2008.060057 [DOI] [Google Scholar]
- 23. Mathias JD, Bonté B, Cordonnier T, DeMorogues F. Using the Viability Theory to Assess the Flexibility of Forest Managers Under Ecological Intensification. Environmental Management. 2015;56(5):1170–1183. 10.1007/s00267-015-0555-4 [DOI] [PubMed] [Google Scholar]
- 24. Mathias JD, Lade S, Galaz V. Multi-level policies and adaptive social networks—a conceptual modeling study for maintaining a polycentric governance system. International Journal of the Commons. 2017; in press. [Google Scholar]
- 25. Kone Cheick Tidjane and Hafid Abdelhakim and Boushaba Mustapha. Performance Management of IEEE 802.15.4 Wireless Sensor Network for Precision Agriculture. IEEE Sensors Journal. 2015;15:5734–5747. 10.1109/JSEN.2015.2442259 [DOI] [Google Scholar]
- 26. Lorenzo E. Solar electricity: engineering of photovoltaic systems. James & James Science Publishers; 1994. [Google Scholar]
- 27. Markvart T. Solar Electricity. John Wiley & Sons, Chichester; 1994. [Google Scholar]
- 28. Park P, Di Marco P, Fischione C, Johansson KH. Parallel and Distributed Adaptation of the IEEE 802.15.4 Protocol for Reliable and Timely Communications KTH, Tech. Rep.; 2011. Available from: http://www.ee.kth.se/~pgpark/papers/TRITA_EE_20110502.pdf. [Google Scholar]
- 29.Zayani MH, Gauthier V, Zeghlache D. A Joint Model for IEEE 802.15. 4 Physical and Medium Access Control Layers. In: 7th International Wireless Communications and Mobile Computing Conference (IWCMC). Istanbul, Turkey; 2011. p. 814–819.
- 30. Rougé C, Mathias JD, Deffuant G. Extending the viability theory framework of resilience to uncertain dynamics, and application to lake eutrophication. Ecological Indicators. June 2013; 29:420–433. 10.1016/j.ecolind.2012.12.032 [DOI] [Google Scholar]
- 31. Brias A, Mathias JD, Deffuant G. Accelerating viability kernel computation with CUDA architecture: application to bycatch fishery management. Computational Management Science. 2016;13:371–391. 10.1007/s10287-015-0246-x [DOI] [Google Scholar]
- 32. Tichit M, Doyen L, Lemel JY, Renault O, Durant D. A co-viability model of grazing and bird community management in farmland. Ecological Modelling. August 2007;206(3–4):277–293. 10.1016/j.ecolmodel.2007.03.043 [DOI] [Google Scholar]
- 33. Mathias Jean-Denis and Anderies John Marty and Marco Janssen. On our rapidly shrinking capacity to comply with the planetary boundaries on climate change. Scientific Reports—Nature. 2017; in press. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34. Saint-Pierre P. Approximation of the viability kernel. Applied Mathematics & Optimization. March 1994;29(2):187–209. 10.1007/BF01204182 [DOI] [Google Scholar]
- 35. Libelium Comunicaciones Distribuidas S L. Waspmote Technical Guide. Libelium Comunicaciones Distribuidas S.L; 2012. Available from: http://www.libelium.com/. [Google Scholar]
- 36. Crossbow Technology Inc. Crossbow motes and Stargate-Xscale; 2007. Available from: http://www.xbow.com. [Google Scholar]
- 37. Gunderson LH, Holling CS, editors. Panarchy: understanding transformations in human and natural systems. Island Press, Washington, D.C., USA; 2002. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
(PDF)
Data Availability Statement
All relevant data are within the paper and its Supporting Information files.











