Abstract
In wireless sensor networks (WSNs), periodical sleeping scheme on sensor nodes is an effective way to save energy. However, it will hinder the capability of the network to provide real-time data reporting due to relay node being sleep. Motivated by this, we propose an adaptive scheduling and routing scheme for guaranteeing dynamic end-to-end delay requirement while minimizing the energy consumption. First of all, we utilize an optimal wake-up scheduling algorithm to achieve the initial wake-up schedules and routes and design an adaptive adjustment algorithm. When the end-to-end delay requirement of a region changes, our proposed adaptive adjustment algorithm can locally adjust the wake-up schedules or the routing tables of the nodes which are the nearest ones to the source node, so as to minimize energy consumption and the impact on other regions while guaranteeing the new end-to-end delay requirement of the region. Through experiments in a real wireless sensor network and extensive simulations, we can get that the proposed scheme can conserve at least 20% energy consumption comparing to other existing adjustment algorithms, and its performance approaches that of the optimal solution.
1. Introduction
Due to the vast potential applications, large-scale wireless sensor networks (WSNs) are widely used in environmental monitoring, battlefield detection, water level monitoring, and so on. Since sensor nodes are small devices with limited resources, in particular battery power (or energy), it is therefore crucial to reduce energy consumption of those nodes in order to achieve a longer network lifetime. Periodical sleeping scheme on sensor nodes is an effective way to save energy in the context of WSNs. However, due to the presence of sleep-awake scheduling, when a node needs to report data, it has to wait for its next-hop node to wake up. When the next-hop node is receiving data, it will encounter the same problem. As a result, end-to-end delay may uncontrollably increase, and hence the system may be unacceptable in many applications requiring real-time response.
Let us see an example of data reporting process in an industrial temperature monitoring system. At the beginning, the entire network has a same delay requirement. When we pay more attention to region A since its temperature exceeds a threshold, we may increase the data collecting and reporting frequency so as to get more detailed information there, and thus the delay requirement of this region A will be accordingly shortened. Such change on delay requirement can also be triggered by event detection. The node that detects the event or quickly reports is called trigger node. To meet the new end-to-end delay requirement of the region A, the optimal solution is to find some necessary adjustments near the trigger node while keeping other nodes unchanged. The adjustments include changes on route and sleep schedule. In most environmental monitoring WSNs, for prolonging the system lifetime, we usually set a long sleeping interval when the environment changes smoothly. Only when the sensing data is not in reasonable range or exceeds the pre-setting threshold, we shorten the sleep time in the event area and increase the reporting frequency, so as to reduce the end-to-end delay and hence ensure the rapid response of events. Wang et al. [1] proposed a dynamic duty cycle control approach that decomposed the end-to-end delay guarantee problem into a set of single-hop delay guarantee problems along the path of each data flow in a network. When the end-to-end delay requirement changed, the authors solved this problem by feedback. The problem they studied is similar to ours, but their solution needs recalculating all the single-hop delays and rescheduling all the nodes on the data flow path.
The algorithm proposed in [2] can provide the optimal wake-up scheduling algorithm for minimizing energy consumption and limiting the maximum end-to-end delay simultaneously. We use it to get the initial wake-up schedules and routes and name it as Initial Algorithm in this paper. The challenge is to find an adaptive scheduling and routing adjustment algorithm for guaranteeing dynamic end-to-end delay requirement while minimizing energy consumption and the impact on other regions, when the delay requirement of a region A changes. Towards this end, we do some exploratory research, which is named as Adaptive Adjustment Algorithm. The proposed adjustment algorithm merely modifies the route path and duty cycle of those nodes which transmit or relay the data from trigger node, so as to minimize the energy consumption of the additional data and minimize the impact on the other paths. The brief procedure is as follows: all relay nodes on the path from trigger node to the sink will be processed one by one. We first search all the nodes in the communication range of the current relay node and find whether there is an agent node that can meet the new end-to-end delay requirement. If there is such an agent node, the current relay node just needs to change its route to the agent node. If none of them meets the new delay requirement, we firstly use adaptive adjustment algorithm to change the duty cycle and increase the wake-up frequency of the current relay node, then find an agent node around the current relay node again. This procedure will be repeated on the path from the trigger node to the sink till finding a suitable agent node. In the adaptive adjustment algorithm, we calculate the new wake-up frequency based on the energy consumption of all nodes on the path, the energy consumption of the current relay node, and the new end-to-end delay requirement. If the new wake-up frequency exceeds an upper threshold, we let the node stop sleeping since frequently switching between sleep and working states shall bring more energy consumption [3]. We also prove that the adaptive adjustment algorithm can guarantee the optimal assignment of frequency to achieve the optimum distribution of energy. In general, a distributed algorithm is more flexible for WSNs than a centralized one [4]. So, we implement the algorithm in a distributed way. The contributions of the proposed scheme are summarized as follows.
It makes the nodes automatically adapt to the new delay requirements when events happen.
It minimizes energy consumption and the impact on other paths while guaranteeing dynamic end-to-end delay requirement in a region.
With the increasing scale of nodes, the energy consumption of the proposed algorithm is constantly close to the optimal algorithm.
It has good stability for all kinds of tree-topology networks.
The rest of this paper is organized as follows. Section 2 surveys the related works from the literature. In Section 3, we give the problem description. The initial algorithm is summarized in Section 4. In Section 5, we detail the proposed scheduling and routing scheme and the adaptive adjustment algorithm. In Section 6, we describe detailed procedure in a real wireless sensor network. Section 7 illustrates simulation results for the proposed method and shows its performance. Section 8 concludes the paper.
2. Related Work
To shorten the end-to-end delay in WSNs, many literatures have focused on how to trade off between energy consumption and end-to-end delay caused by sleep. In S-MAC protocol [5], sensor nodes were divided into different virtual clusters. All the sensor nodes in a same virtual cluster adopted same sleep scheduling policy for energy saving. However, delay will increase with the increase of the number of transmission hops. In literatures [6–8], DMAC protocol and some improved DMAC protocols were proposed; these protocols greatly reduce delay while saving energy consumption. The shortcoming is that they cannot guarantee end-to-end delay due to retransmission incurred by data loss. Meanwhile, they were effective to unidirectional data flow while the reverse data flow will lead to greater delay. Q-MAC [9] can balance the tradeoff between energy consumption and the sleeping delay in query-based sensor networks by predicting nodes’ wake-up time using query commands. The authors of [10] presented and evaluated a packet scheduling policy and routing algorithm called RACE that inherently accounts for time constraints. However, both Q-MAC and the sleep scheduling in [10] only aimed to minimize but not guarantee the end-to-end delay. The authors of [11] proposed a methodology to provide a time-division cluster scheduling (TDCS) mechanism. The objective is to meet all end-to-end deadlines of a predefined set of time-bounded data flows while minimizing the energy consumption of the nodes by setting the TDCS period as long as possible. In literature [12], a solution was provided to the joint control problem of how to optimally control the system parameters of the sleep-wake scheduling protocol and the anycast packet-forwarding protocol to maximize the network lifetime, subject to a constraint on the expected end-to-end packet-delivery delay. The authors of [13] proposed a novel sleep scheduling method to reduce the delay of alarm broadcasting from any sensor node in WSNs. However, the sleep scheduling mentioned above was lack of flexibility when new tasks are added into the original schedule.
Other researchers worked on the delay guaranteed scheduling and routing strategies. In [14], the authors proposed delay guaranteed routing and MAC protocol (DGRAM) which was a TDMA-based protocol designed to provide deterministic delay guarantee in energy-efficient manner. Another tree-based delay guaranteed and energy efficient MAC protocol (TDGEE) was proposed in [15]. TDGEE was a cross-layered TDMA-based MAC protocol, which was energy efficient and delay guaranteed based on the tree topology. Unfortunately, both of them are TDMA-based and need carefully slot computation, so they may bring extra synchronization overheads. The authors of [2] proposed an algorithm for maximizing the lifetime of a sensor network while guaranteeing an upper bound on the end-to-end delay. It was mainly based on different wake-up frequency distributions of node in a network. However, the algorithm should take wake-up frequency distribution of all the nodes as a priori knowledge. Therefore, it cannot adapt to the case that the wake-up frequency of reporting sensor node has to change due to more precise observation requirement. Indeed, the aim of our study is how to quickly adjust the wake-up schedule or the routing table with minimum energy cost so as to satisfy the new delay requirement.
3. Problem Description
In many WSNs, sensor nodes collect information of the environment continuously, and then these data are transmitted to the sink through a chain of relay nodes. We call the sensor nodes as source nodes, which only collect the data instead of forwarding data for other nodes. When the source node periodically reports data, the reporting delay must be less than or equal to the reporting cycle. In WSNs, delay mainly consists of three parts: transmission delay, processing delay, and sleep delay. To maximize network lifetime, the sleep cycle is usually set as long as possible, for example, several seconds or above, so the transmission delay and the processing delay can be ignored. Hence, the upper boundary of the end-to-end delay depends on cumulative sleep delay. On the other hand, even if the data reporting cycle is less than the sleep cycle, the data cannot be sent because the node is in sleep state when reporting cycle arrives. Therefore, it is reasonable to set the sleep cycle equal to the reporting cycle. As a result, the upper boundary of the reporting end-to-end delay is the cumulative sleep delay, and its lower boundary is the reporting cycle of source node. So, we set the reporting cycle equal to the end-to-end delay in order to minimize the energy consumption while guaranteeing the end-to-end delay. Hence, we usually set the reporting cycle equal to the delay requirement in practice, and the two terms are used interchangeably in this paper.
When a WSN begins running, the entire network has same delay requirement; this is static scheduling phase, and initial schedule and route of each node should be calculated in order to minimize the energy while guaranteeing a fixed end-to-end delay. Due to the dynamic change of environment, the reporting cycle of a region needs change due to more precise observation requirement; this is dynamic scheduling phase. To meet new end-to-end delay requirement of the region, we can recalculate the schedule and route of each node according to the method in static scheduling phase. However, the solution will improve the energy consumption of the entire network because the wake-up frequency of each node rises, and this makes the network consume much more extra energy. In dynamic scheduling phase, we can consider two kinds of solutions. One solution is to adjust the wake-up frequency of each node along the original path from the source node to the sink node. Because the energy consumption of wake-up is greater than that of sending one packet [16], we hope to adjust the smallest number of nodes on the original routing path. Therefore, the main work of the paper is to find an optimal solution to make the minimal adjustment in order to maximize the reduction of the extra energy consumption.
The optimal solution is to make local adjustment on the original routing path; for example, as shown in Figure 1, source node

A sensor network (the routing paths to the sink node are marked by thick lines).
Subsequently, we briefly introduce Initial Algorithm [2] in static scheduling phase and propose an adaptive and distributed algorithm in dynamic scheduling phase.
4. Initial Algorithm
Because no node needs source node to forward data, the source nodes will not affect the end-to-end delays of other nodes. As a result, the authors of [2] modeled a network by simplifying the original tree topology into a corresponding T-tree that ignores all the source nodes. In the corresponding T-tree
Algorithm 1.
Initial Scheduling and Routing Algorithm.
Calculate frequency division in the T-tree. The function Calculate-Frequency-Division(v) receives a node v and returns the delay Set Assign frequencies to each node in the T-tree. The function Assign-Frequencies(
This algorithm can guarantee that the delay on each path from the leaf to the sink is less than or equal to the end-to-end delay requirement. For example, there is a path
Besides, this algorithm has the following characteristics.
The reporting delay on each path from the leaves to the root is equal, and those paths are fixed.
The reporting cycle on each path from the leaves to the root is equal to the delay requirement.
The reporting delay from a leaf to a relay node is inversely proportional to the energy consumption of the subtree rooted at the relay node.
Now, let us see the energy consumption according to the Initial Algorithm when the reporting cycle is
In the previous equations,
5. Adaptive Adjustment Algorithm
5.1. Problem Formulation
Using the Initial Algorithm, the entire network has same transmission delay which is equal to the tolerant delay. When there is an emergency or users want to quickly obtain data in a region, for example, the reporting cycle in the region A needs to be changed to
Firstly, let us study the extra cost when the reporting cycle of some nodes becomes
In the previous equations,
According to (3) and (6), the second part in (8) is
Since
According to (2) and (5), we have
As a result, we can obtain
Bring the results of (7), (9), and (11) into (8) we have
or
Here,
subject to:
The adaptive adjustment problem is NP-hard, so we shall propose the heuristic algorithm to attain the suboptimal solution locally with limited computation. Before discussing the heuristic algorithm, we first study the lower boundary of the optimal solution and use it as the standard to verify the performance of the adjustment algorithms.
5.2. The Lower Boundary of Optimal Solution
According to the objective function (14), the ideal conditions are
Therefore, the key challenge here is to select the minimum number of nodes to be adjusted and reassign wake-up frequency for them.
5.3. Optimal Assignment Theory
For presenting the adaptive adjustment algorithm, we first describe and prove an optimal assignment theory which is used in the algorithm.
Theorem 2.
Proof.
We have
Since A and B are constants,
Substituting (16) into
5.4. Adaptive Adjustment Algorithm
Definition 3.
In a WSN, the communication set of node v denoted as
Algorithm 4.
Adaptive Adjustment Algorithm.
Search all the nodes in the communication set Set the required delay Calculate the new frequency of current node Modify the required delay to If the node is sink, the algorithm ends. Otherwise, send an adjustment message with parameters d and C to the next relay node on the reporting path. When a relay node receives such an adjustment message, repeat
We use optimal assignment theory proved in Section 5.3 to determine the new frequencies of the relay nodes on the path. According to Theorem 2, we should know how many relay nodes need to adjust their frequencies. However, the number of nodes that should be adjusted will vary with the conditions (i.e. topology, delay requirement, and trigger node). Here, we study the worst case that all the relay nodes on the original path from
Hence, we get the optimal energy assignment theory as Corollary 5.
Corollary 5.
Let
According to Corollary 5, we summarize the adaptive adjustment algorithm as Algorithm 4.
6. Adaptive Scheduling and Routing Procedure
6.1. Initialization Procedure
In the initialization procedure, we design two types of messages: the upstream message “Info” and the downstream message “Notify.” Via “Info,” children nodes report their own control parameters including coefficient factor B to their parent nodes. Through “Notify,” parent node sends its own control parameters (including frequency f and delay d) to its children nodes. Figure 2 illustrates the workflow of the initialization procedure. In Figure 2, s is a sensor node,

The workflow of the initialization procedure.
Step 1.
All the source nodes collect data according to a predefined cycle
Step 2.
Step 3.
The total energy of the tree rooted at
Step 4.
Sink node a receives the coefficient factors B of its children nodes and calculates
Step 5.
Step 6.
6.2. Adjustment Procedure
In the adjustment procedure, we design four types of messages. “Adjust” is an upstream message which tells its next-hop node to be adjusted, including necessary control parameters. When a node wants the delay information of agent candidate nodes in the communication range, it sends a “Search” message to those nodes. Then, those nodes will return “ACK” messages with their delays to the sink node.
Figure 3 shows an example of the adaptive adjustment procedure. In Figure 3,

The workflow of the adaptive adjustment procedure.
Step 1.
Source node s initializes the required delay
Step 2.
The router
Step 3.
When the neighbor node
Step 4.
Step 5.
When a router node
Step 6.
When the sink node receives the “Adjust” message, it calculates a new wake-up frequency
For example, in Figure 3,
7. Simulation and Analysis
We use a large number of simulation experiments to verify the performance of the adaptive scheduling and routing adjustment algorithm and study how various factors impact the algorithm performance.
7.1. Simulation Environment
We use C language to establish the simulation platform. In the simulation environment, there are N nodes in an area of
The proposed algorithm will be compared with the global adjustment algorithm, the lower boundary of optimal solution, and the local adjustment algorithm. The global adjustment algorithm will follow the smallest end-to-end delay of all regions as a global end-to-end delay to adjust the wake-up frequency. In the lower boundary of optimal solution, only the routes are adjusted, but all the wake-up frequencies are not adjusted, and it also neglects the additional communication overhead for routing modification.
In the local adjustment algorithm, all the wake-up frequencies of the nodes on the path increase to
7.2. Impact of Network Scale N
In this set of simulation, the communication radius is
Figure 4 shows the relationship between the energy consumption and the network scale in the four algorithms. In Figure 4, the energy consumption of the global adjustment algorithm increases much faster with the increase of network scale compared with the other three algorithms. So, the global adjustment algorithm is unacceptable, while the energy of the other three algorithm is comparable. Next, we further study the relationship of the local algorithm, the proposed algorithm, and the lower boundary of optimal solution.

Energy of different node scale.
Figure 5(a) shows that the proposed algorithm and the lower boundary of optimal solution are similar in slope, but the local adjustment algorithm is larger than others. It demonstrates that the energy consumption of the proposed algorithm is the lowest growth. Meanwhile, from Figure 5(b) we can see that the ratio significantly decreases with the increase of network scale. This shows that the proposed algorithm is constantly close to the lower boundary of optimal solution with the increase of network scale.

Energy of different node scale.
Table 1 shows average energy consumption, maximum energy consumption gap, and ratio of them in the same node scale and different topologies. According to the data given in Table 1, the energy consumption gap of any topology is within
Fluctuate energy of different network scales.
7.3. Impact of New Reporting Cycle
The network scale N is

Energy consumption in different
Figure 6 shows that the energy consumption of the proposed algorithm is very close to the boundary of optimal algorithm when
7.4. Impact of Communication Radius
In this set of simulation, the network scale N is 500 and the new reporting cycle
Figures 7(a), 8(a), and 9(a) show the wake-up time in three topologies. In these three topologies, the wake-up times of both the local adjustment algorithm and the boundary of optimal algorithm keep constant and look like the upper and lower bounds of the proposed algorithm. That means that the proposed algorithm can significantly reduce the wake-up time through adaptive adjustment and therefore reduce the extra energy consumption.

Wake-up time and extra energy in topology 1.

Wake-up time and extra energy in topology 2.

Wake-up time and extra energy in topology 3.
The wake-up time of the proposed algorithm is ladder-like down and approaches the boundary of optimal algorithm when the communication radius increases from
Although the wake-up time of the proposed algorithm reduces with the increase of the communication radius, it does not mean the larger the communication radius is, the less the energy consumes. Figures 7(b), 8(b), and 9(b) show the extra energy consumption of the path in three topologies. We can see that with any kind of topology, the extra energy of the local adjustment algorithm and communication radius follows square rule. But the extra energy of the proposed algorithm and communication radius obeys a piecewise linear relationship. Meanwhile it hops down at some points. The reason of hopping down is same as above. The reason of the linear relationship is that the proposed algorithm uses the nearby nodes of the path as agent nodes so as to reduce extra energy. Comparing the proposed algorithm with the local adjustment algorithm, the lager the communication radius is, the bigger gap between them will be. In different networks, it is possible that nodes have different communication radiuses. Figures 7(b), 8(b), and 9(b) show that the extra energy when radius is
8. Conclusions
In this paper, the scheduling and routing strategies for end-to-end delay guarantee in WSNs have been studied. Firstly, we use the optimal wake-up frequency distribution algorithm proposed in [2] to initialize the wake-up schedule of nodes and guarantee the initial end-to-end delay. In the case that the end-to-end delay requirement of a region changes, we propose an adaptive adjustment algorithm to locally adjust the wake-up schedule or the routing table with the minimum energy cost while satisfying the new delay requirement. Then, we propose the detailed procedure in a real wireless sensor network. We simulate the algorithm over random sensor networks with different tree topologies and investigate the energy consumption of the network. The simulation results show that the adaptive adjustment algorithm can minimize energy consumption while guaranteeing the delay requirement. In the future work, we plan to take into account remaining energy of nodes when the frequency increases in order to balance the energy consumption of the entire network.
Footnotes
Acknowledgments
This work is partly supported by the Major National Science and Technology Projects (no. 2012ZX03005008); the National Natural Science Foundation of China under Grant nos. 61272520, 61370196, and 61070205; the Research Fund for the Doctoral Program of Higher Education under Grant no. 20110005110007.
