Abstract
In many surveillance sensor networks, sensors are scheduled to work in a duty-cycled mode (i.e., periodically switching between active states and sleeping states) in order to prolong the network lifetime. The duty-cycled mode saves sensors' energy but brings other issues. In surveillance applications (e.g., forest fire alarm or intruder detection), it is desired to report detected events to the sink node as soon as possible. However, the duty-cycled mode may increase the data delivery latency. In this paper, we study minimum-delay routing in duty-cycled surveillance sensor networks. As the minimum-delay routes are time dependent (i.e., they change with time) in duty-cycled sensor networks, routing becomes a challenging task. We propose a distributed routing algorithm to find the minimum-delay routes at any time from all nodes to the sink node. Further, all minimum-delay routes can be found in one execution of our routing algorithm. We further provide a distributed route maintenance algorithm for finding the minimum-delay routes when the network dynamically changes. We theoretically prove the correctness of the proposed algorithm, and extensive simulation results show that the performance of our algorithm outperforms other existing algorithms.
1. Introduction
Wireless sensor networks (WSNs) have been used in many surveillance applications such as traffic monitoring, forest fire detection, and target tracking. Typically, in surveillance system, sensors (or nodes) detect events and then report the events to the base station (or the sink node). To build long-term operating surveillance systems, sensors are expected to work for months or even years, but they only have limited battery energy. For example, the battery of a sensor can only last for a few days if running continuously. One viable technique is to schedule sensors switching between active mode and sleeping mode, while active sensors perform surveillance tasks. Energy-efficient scheduling algorithms [1–7] are proposed in the literature to prolong network lifetime, as well as to guarantee event detection. In these algorithms, sensors are scheduled to be active for a period of time and then to sleep for another period of time, which forms a duty-cycled WSN.
As pointed out by [8], the effectiveness of a surveillance system lies in two aspects: accurately detecting events and timely reporting the events. The second aspect is highly related to routing problem. Routing in WSNs has been extensively studied and many routing algorithms or protocols are proposed. The research on routing evolves from early flooding-based protocols to location-based routing protocols (with the help of localization methods [9, 10]) and to state-of-the-art gradient-based routing protocols [11]. Collection tree protocol (CTP) [12] and routing protocol for low-power and lossy networks (RPL) [13] are two well-known gradient-based routing protocols. CTP uses expected transmissions (ETX) as the gradient that indicates the expected number of transmissions needed for the packet to reach the sink node. Therefore, the major objective of CTP is to reduce energy consumption. RPL provides a framework in which multiple gradient metrics (e.g., energy and latency) can be combined to meet different application requirements. However, RPL does not provide solution for minimizing the packet delivery latency for the duty-cycled sensor networks.
In this paper, we focus on minimum-delay routing in duty-cycled surveillance sensor networks. In many surveillance applications (e.g., forest fire alarm or intruder detection), it is desired to report detected events to the sink node as soon as possible. Recently, several routing algorithms [14–17] have been proposed in the literature to minimize the packet delivery latency. The work in [15] studies minimum-delay routing problem for the network where each node works in low-duty-cycled and asynchronous modes; that is, each node works only one slot in a cycle, and it can independently select its working slots and cycle length. This network model, however, is not suited for surveillance systems as sensors have to cooperate to fulfil the surveillance tasks, and thus, they should work according to some scheduling algorithms. The most related work to ours is [16], which aims to find minimum-delay routes for a pair of nodes in a sensor-target surveillance system. The proposed algorithm, called optimal-PML, starts route discovery procedure by flooding route requests in the whole network. Although this method is valid in highly dynamic networks, it suffers from huge message cost as well as time cost (see Section 7).
The duty-cycled mode saves sensors' energy and prolongs network lifetime but also brings other issues. First, the duty-cycled mode may increase the data delivery latency because a node may have to wait for its next-hop node to wake up and receive its packets. Second, both the packet delivery latency and the next-hop node vary with time; that is, they are time dependent. We give a simple example to illustrate these facts.
Figure 1(a) shows the topology of a simple WSN, and Figure 1(b) gives the active or working period of each sensor determined by a given scheduling algorithm. The network lifetime is divided into cycles, and each cycle consists of 10 slots. Suppose that node B detects an event and wants to send a packet to sink node at the starting time of slot 8. It can send the packet to node D at slot 8 since node D is working at that time, and then, node D can forward the packet to node F at slot 9. Finally, the packet is sent to the sink node by node F at slot 10. The packet delivery latency is 3 slots as each transmission costs one slot. Now, consider that node B fails to transmit the packet at slot 8 and retransmits it at slot 9. At that time, node D goes to sleep and it will wake up at slot 5 in the next cycle, which means that node B has to wait 6 slots. Assume that node B wakes up and sends the packet to node D at slot 5 in the next cycle. When node D receives the packet, it also has to wait one slot (i.e., at slot 6), and then, sends the packet to node F at slot 7. The sink node will receive the packet from node F at slot 8, and the packet delivery latency is 10 slots. Figure 2 shows the minimum delay vectors from each node to the sink. It can be seen that the minimum packet delivery latency varies with time, and finding the minimum-delay routes for all nodes at any time becomes a challenging task in duty-cycled WSNs.

An example of a duty-cycled WSN: (a) network topology; (b) working slots of nodes in a cycle.

The minimum delays and next hops for the nodes in the duty-cycled network shown in Figure 1.
In this paper, we propose a distributed routing algorithm to find the minimum-delay routes at any time from all nodes to the sink node. Similar to the well-known Bellman-Ford algorithm, each node updates its routing table according to the routing information of its neighbors, and the routing table eventually converges to the optimal values including the minimum delay and corresponding next hop at any time. In addition, route discovery procedure is implemented in asynchronous mode, and all minimum-delay routes can be found in one execution of our routing algorithm. We further provide a distributed route maintenance algorithm for finding the minimum-delay routes when the network dynamically changes. We theoretically prove the correctness of the proposed algorithm and show that the execution of our algorithm will terminate in finite time, and at the end of execution, all routing tables converge to the optimal values. Extensive simulation results show that the performance of our algorithm outperforms other existing algorithms.
It is worth noting that in other research fields such as robotics fields, routing problem is also studied in [18], and in automatic control field, some problems other than routing are studied in [19, 20] when the network changes dynamically.
The rest of the paper is organized as follows. In the next section, we discuss related work. Section 3 gives the network model and problem formulation. Sections 4 and 5 present our routing algorithm and route maintenance algorithm, respectively. Some problems are discussed in Section 6. Performance evaluation is provided in Section 7, followed by conclusions in Section 8.
2. Related Work
To prolong network lifetime, sensors switch between active and sleeping modes, which forms a duty-cycled WSN. Recently, duty-cycled WSNs have attracted a lot of attention. The research efforts are on data collection [21], data forwarding [22], load balancing [23], and routing [14–17, 24]. In this section, we focus on routing problem and some related research efforts.
The work in [14] studies delivering data with a guaranteed communication delay bound, which is important for many surveillance applications. To achieve this goal, methods are devised from the temporal (time) and spatial (space) perspectives. Specifically, the temporal scheme decreases the communication delay by adding more working slots to sensors, and the spatial scheme addresses this issue by adding a minimum number of sinks. Hybrid spatiotemporal scheme is also presented to achieve balance between cost and energy efficiency. In this paper, we are also concerned about delivering data to the sink as soon as possible, but we consider a different problem: given a duty-cycled network which is determined by a surveillance scheduling algorithm, how to find the minimum-delay routes from each node to the sink at any time?
The minimum latency routing problem is studied in [15]. It is assumed that sensors work in low power listening (LPL) mode: each sensor periodically wakes up to listen to the wireless channel, checking whether a sensor wants to send packets to it. Further, the checking intervals of nodes can be different. A distributed routing algorithm is proposed to find the minimum latency routes from all nodes to the sink node. Note that LPL mode may not be suitable for surveillance sensor networks because it does not take surveillance task into account. Moreover, in [15], minimum latency routes from a node to the sink are found only for the time points when it wakes up. In other words, the minimum-delay route is undetermined if a node wants to send a packet at a time between two consecutive wake-up time points (e.g., retransmitting a packet or having more packets to be sent in the buffer). Since the checking interval may be long (e.g., 500 ms or 1000 ms), the packet delivery latency may increase a lot because the minimum latency route is time dependent.
The work in [16] investigates routing in intermittently connected sensor networks. It is assumed that each sensor has a working period and a sleeping period in a cycle according to application-driven scheduling schemes (e.g., target coverage scheduling). We adopt the same network model used in [16]. To find a minimum latency route from the source to the destination for a given time, a route request (RREQ) is sent by the source, and the nodes who receive the RREQ forward the RREQ to its neighbors. The first RREQ arriving at the destination will be acknowledged by the destination, and the path the RREQ goes through will be taken as the minimum latency route. Based on this route discovery process, two proactive algorithms are proposed, where one attempts to minimize the call number of route discovery process, and the other tries to reduce the time cost for finding minimum latency route. It can be seen that the route discovery process is like a flooding in the network. Moreover, the minimum latency routes found by it is only optimal for a specific time point. Since the minimum latency route from the source to the destination is time dependent, the route discovery process has to be invoked multiple times. Unlike [16], we target at developing a distributed routing algorithm to find the minimum-delay routes at any time from all nodes to the sink node. Further, all minimum-delay routes can be found in one execution of our routing algorithm.
3. Network Model and Problem Formulation
Consider a WSN whose topology is denoted by
Assume that the network lifetime is divided into cycles and each cycle is further divided into several time slots. A given surveillance scheduling algorithm switches sensors between active and sleeping states. At any time slot, when a sensor node is in active mode, it can perform the surveillance tasks and communicate with other nodes. When a sensor node is in sleeping mode, it turns off its sensing device and radio transceiver. Here, we do not consider the case that the power of sensing device and radio transceiver can be separately controlled because sensors are usually tiny, cheap, and integrated devices. This assumption is also adopted in [1, 3, 5, 16, 17].
To simplify discussion, we assume that each cycle consists of T slots and each node i has one working period in each cycle, denoted by
A node can receive packets at its working slots, while it can either send packets at its working slots, or wake up at its sleeping slots to send packets. The latter assumption ensures that a node can transmit its packets to its neighbors since they may work at its sleeping periods. The sink is assumed to be in receiving state all the time. These assumptions are the same as those in [16, 22].
Assume that a packet is sent only at the starting time of a slot, and receiving and acknowledging of the packet can be complemented in the slot. The link delays in duty-cycled WSN are time dependent. Suppose that node i wants to send a packet which is available at slot t to node j. There are two cases: (1) node j works at slot t; (2) node j does not work at slot t. For the first case, node i can transmit the packet without waiting, and the link delay is the transmission delay that is one slot. For the second case, node i has to wait for node j to wake up, say at slot
Having link delays, we can calculate the node-to-sink delays as follows. Suppose that node i sends a packet at slot t along the route (or path)
Since there may be several routes with the same delay, to simplify discussion, the minimum delay route for node i at slot t is defined to be: (1) the route which has the minimal delay among all routes from node i to sink s; or (2) the route which has the minimal number of hops among the routes satisfying condition (1); or (3) the route whose sequence is the smallest in lexicographical order among the routes satisfying the above two conditions.
4. Routing in Duty-Cycled Networks
In this section, we present our distributed routing algorithm and prove its correctness.
4.1. Algorithm Description
To simplify discussion, we assume that each node i maintains a routing table that consists of two parts:
Suppose that node j is a neighbor of node i, denoted by
Based on (1), we design a minimum-delay routing algorithm (MDR) for duty-cycled WSNs. Similar to well-known Bellman-Ford algorithm, each node updates its routing table according to the routing information of neighbors, and it eventually converges to the optimal values including the minimum delay and corresponding next hop for each slot t in a cycle. In MDR, nodes exchange routing information by sending route message (RMSG). This procedure is implemented in asynchronous mode: once a node changes its routing table, it will inform all its neighbors of the new delays to the sink, and its neighbors update their routing tables accordingly. The routing algorithm will end up execution when there are no updates. The sketch of MDR is as follows.
Step 1.
Initialize the routing table of each node: for the sink s,
Step 2.
Sink s sends a RMSG to each neighbor.
Step 3.
For each node i except sink s
upon receiving a RMSG from its neighbor node j, it updates its routing table; if there is routing update, sends a RMSG to each neighbor; otherwise, it ignores the received RMSG from node j.
Step 4.
MDR finishes when there are no RMSGs.
The route message (RMSG) is illustrated in Figure 3(a) and contains the following fields.
Source: the ID of the sender. Destination: the ID of the receiver. Seq: the sequence number of this RMSG. Entry Num: the number of route entries in the payload of the RMSG. Payload: contains variable number of time interval route entires (the format of which is shown in Figure 3(b) and will be explained later).

(a) The RMSG format; (b) a time interval route entry format.
The RMSG sent by node i contains source and destination IDs and a sequence number which is incremented by one with each transmitted RMSG. The minimum delay known so far is contained in the payload of RMSG. Instead of sending the whole delay vector
We further divide the working period of each node into two kinds of time intervals based on the following analysis. For node i, comparing
The first case says that a packet sent by node i at slot
The second case says that the minimum delay of a packet will decrease by one slot from slot t to
The transition from the first case to the second case may incur a sudden delay change, which is indicated by the third case. We still take node B in Figure 2(b) as an example. The minimum delay from node B to the sink at slot 8 is 3, while it suddenly changes to 10 at slot 9.
Based on the above analysis, we define two types of time intervals, that is, Type 0 and Type 1. A time interval
Now, we divide the working period
routing table and working period (1) generate a time interval route entry r (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) break (15) ⊳ generate a route entry r for the time interval (16) (17) (18) (19)
In MDR algorithm, before sending a RMSG, each node calls Procedure 1 so that time interval route entries are attached to the RMSG. For example, given the minimum delays shown in Figure 2, the RMSG sent by node F contains one route entry
When node i receives a RMSG from node j, it will update its routing table as shown in Procedure 2. Suppose that the RMSG from node j has κ time interval route entries, that is,
κ time interval route entries that is, they are sorted in increasing order by their starting slot. (1) ⊳ compute the minimum delay of each slot k if using node j as the next hop (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16) (17) (18) (19) (20) (21) (22) (23) ⊳update routing table (24) (25) (26) (27)
An Example. In Figure 1, assume the sink starts MDR algorithm at slot 1, and sends a RMSG with one route entry
4.2. Correctness
Proposition 1.
In a duty-cycled WSN with the cycle length of T slots, if each node, say i, has fixed one or more working periods in all cycles, then it follows that
the minimum delay for the packet sent by node
i
at slot
t
is a periodic function with
T
; that is,
to estimate the minimum delays for each slot
t
,
We have Proposition 1 part (a) because each node repeats its working mode from one cycle to another, and thus, the minimum delay from a node to the sink at slot t is a periodic function with cycle length T. In duty-cycled WSN, each node only receives packets at its working slots, which means that the transmission is receiver-based. So, to compute the minimum delay for the packet sent by node i at slot t, node i only needs the delays associated with its neighbors' working slots, which can be derived from the routing entries contained in the RMSGs sent by its neighbors. Therefore, we have Proposition 1 part (b).
Suppose that the topology of a wireless sensor network
Theorem 2.
Suppose that time is divided into cycles with the length of T slots and each node has fixed working periods in all cycles. Further, assume that the transmitted packet can be correctly received by the receiver in finite time, and there is no topological change during the execution of MDR algorithm. Then, the execution of MDR algorithm will terminate in finite time. At the end of execution, each node obtains the minimum delay to the sink and corresponding next hop for a packet which is ready to be sent at each slot of a cycle.
Proof.
Consider any node i at slot t,
Next we show nodes in route P sequentially achieve their minimum latency in backward direction. Denote
5. Route Maintenance in Duty-Cycled Networks
The routes determined by MDR may not be optimal if the network dynamically changes (e.g., a node is added to the network, a node changes its working periods, or a node fails). Recomputing the minimum-delay routes is not a trivial task because (1) when a topological change happens, say a node failure, it is hard to know which nodes will be affected by this event as each node only has its next-hop information in its routing table; (2) even if node j tells node i that it has been affected by the event and node j is a next hop node of node i for some time slots, node i cannot make sure that it is also affected since the routes are time dependent; and (3) moreover, even if all minimum-delay routes of node i must go through node j who has been affected by the event, it is still possible that not all routes at all time slots will be affected.
For example, in Figure 1, suppose that node C fails, which affects node D since node C is its next hop (e.g., the minimum delay at slot 1 from node D to the sink will be 8 slots instead of 4 slots). Now, suppose that node D informs node B that it has been affected by the failure of node C. Node B finds that node D is the next hop for all time slots, thereby jumping to a conclusion that all routes are invalid. In fact, node B is not affected by the failure of node C at all. This is because all minimum-delay routes from node B to sink go through node D and then node F to the sink.
All the above issues are features of route maintenance in duty-cycled WSNs, which are different from traditional route maintenance. Moreover, like routing information protocol (RIP), MDR is a distributed distance-vector algorithm, and it also suffers from the well-known problems of counting-to-infinity and routing-table loops in route maintenance. The work in [25] studies this problem and provides four sufficient conditions for designing loop-free routing algorithms. Although the methods proposed in [25] cannot be directly applied to solve our problem, we are inspired by one of the four sufficient conditions, that is, distance increase condition (DIC), whereby designing MDR maintenance algorithm. DIC says if a node detects an increase in the distance of a neighbor, then it must maintain its current next hop. Otherwise, it can update its distance value and the next hop.
Note that different types of topological changes have different impacts on the delays. For example, when a node joins the network, then the minimum delays from nodes to sink can further decrease as the added node provides more options for routing. However, when a node fails, the minimum delays from nodes to sink may increase or remain unchanged. A more complex case is when a node changes its working periods. For this case, the minimum delays from nodes to sink may increase, decrease, or remain unchanged. So, the route maintenance algorithm should be able to handle all these cases.
We design a unified framework for route maintenance to handle all above cases. MDR maintenance algorithm consists of three phases and uses four maintenance messages, that is, INFORM, QUERY, REPLY, and UPDATE. These four maintenance messages have the same format with RMSG, as shown in Figure 3. The goal of the first phase is to identify all route entries that are affected by the topological change. After the first phase, the nodes who are affected by the topological change send queries to thier neighbors to obtain their routing tables. When a node receives all neighbors' routing tables, it updates its routing table and goes into the third phase. The last phase is similar to MDR procedure: if there are routing updates, send an update message to each neighbor; otherwise, ignore the received update message. Note that for the case of a node insertion, MDR maintenance algorithm goes directly to the last phase (according to DIC) since delays cannot increase, while the maintenance for other cases (e.g., a link failure, change of working period of a node, and a node failure) includes three phases.
Procedure 3 gives the main operations of MDR maintenance algorithm. We take a node failure as an example to describe the process. Suppose that node k fails, which is detected by its neighbor, node j. Node j checks if there are route entries which use node k as next hop. If there are some, node j sets the delays of these entries to infinity and sends an INFORM that carries the information of its current routing table to each neighbor.
Suppose that node i receives the INFORM sent by node j, and it also checks whether node j is the next hop in its routing table. If node j is not the next hop for all time slots, node i simply drops the INFORM. Otherwise, node i backs up its routing table and temporarily sets the delays of the entries related to node j to infinity. Node i then calls Procedure 2 to update its routing table. After that, node i compares this routing table with the backup one. If there are some entries whose delays are not infinity in backup routing table but become infinity in newly computed routing table, then node i can be sure that these routing entries are affected by the node failure.
A node, say node i, who is affected by the failure of node k goes into the second phase when finishing the first phase. Node i sends a QUERY to each neighbor, and its neighbor responds with a REPLY. After receiving all REPLYs from its neighbors, node i updates its routing table based on the received routing information. If there exist route updates (i.e., delay decrease for some time slots), node i goes into the third phase and sends an UPDATE to each neighbor.
It can be seen that, in the first phase, the delay of a node at any slot is not allowed to decrease, and all affected routes will be identified, and their corresponding delay values are set to infinity. The rationale of MDR maintenance algorithm is to first increase the delays of the routes at any time slot, which satisfies DIC condition, and then, nodes start the converge process (i.e., decreasing delays), similar to that of MDR.
6. Discussion
In our network model, we assume that sensors' states (active or sleeping) are predefined by a given surveillance scheduling algorithm. In fact, jointly designing scheduling and routing algorithms is a better way to guarantee the effectiveness of a surveillance sensor network. In a surveillance sensor network, sensors collaborate with each other to fulfill the surveillance tasks, which requires time synchronization among nodes. Furthermore, time synchronization is also needed to implement slotted transmissions. Fortunately, time synchronization protocols such as FTSP [26] can provide sufficient accuracy without much communication overhead. Our routing algorithm is capable of finding minimum latency routes for all nodes at any time, but it cannot guarantee that the packet can be successfully transmitted along the minimum latency route because the wireless communication link is unreliable. Nevertheless, the minimum-delay routing tables will help a node make a decision about the time of retransmission. For example, if the minimum delays to the sink do not change or change smoothly in some period of time, the node can select a neighbor and/or a time slot when the estimated link quality is acceptable. In contrast, if the minimum delay will increase suddenly, the node may take a risk and transmit the packet even if the estimated link quality is low. There is a tradeoff between routing optimality and maintenance cost in route maintenance. Obviously, it is not energy efficient for a node to start a route maintenance when it finds that the delays of its routes increase by a few slots due to a topological change (e.g., a link failure). For this case, the node can simply forward the packets along suboptimal routes. In real applications, to save energy, nodes perform route maintenance only when there is a big change of the routing tables.
7. Performance Evaluation
Extensive simulations are carried out over a customized C++ simulator to evaluate the performance of proposed algorithms. We design three sets of simulations. In the first set of simulation, we want to show that optimal-PML algorithm in [16] cannot be directly applied to solve many-to-one routing problem as running it for each node will incur large time cost as well as message cost. Small-scaled WSNs are randomly deployed in a 500 m × 500 m area. The cycle length
Comparison between MDR and optimal-PML on time cost and message cost.
In the second set of simulation, we select two routing algorithms for comparison: one is shortest path (SP) routing algorithm which represents traditional routing algorithm and the other is fast time-dependent shortest path (FTSP) algorithm proposed in [15] (introduced in Section 2).
We first compare MDR with SP in terms of expected packet delivery latency. We consider a scenario where 500 sensors are randomly deployed in a 1000 m × 1000 m area. To simulate the effect of duty cycle on expected packet delivery latency, we set duty cycle 𝒟 to be 0.4, 0.2, and 0.1, respectively. The cycle length
Figure 4 compares the expected packet delivery latency of MDR and SP. It can be seen that MDR has an obvious advantage over SP as SP does not take the duty cycle into account. When duty cycle

Comparison between MDR and SP on expected packet delivery latency.
We also compare MDR with FTSP algorithm. We modify FTSP algorithm so that it can be applied in our context. FTSP exchanges delay vectors between neighbor nodes, and it runs in rounds which is implemented by a β-synchronizer [27]. We set

Comparison between MDR and FTSP on time cost.

Comparison between MDR and FTSP on bytes sent per node.
In the last set of simulation, we perform MDR maintenance algorithm for four types of topological changes, that is, a node insertion, change of working period of a node, a link failure, and a node failure. The number of nodes is 500 and

CDF of the time cost of MDR maintenance algorithm.

CDF of the message cost of MDR maintenance algorithm.
8. Conclusions
In this paper, we address the problem of routing in duty-cycled surveillance sensor networks. We propose a distributed routing algorithm which can find the minimum-delay routes from all nodes to sink in one execution. Extensive simulation results show that the performance of our algorithm outperforms other existing algorithms. We further provide a distributed route maintenance algorithm for finding the minimum-delay routes when the network dynamically changes. Our future work includes jointly designing scheduling and routing algorithms so as to improve the effectiveness of surveillance sensor networks.
Footnotes
Acknowledgments
This work is supported by the National Natural Science Foundation of China under Project 61172069, the Natural Science Basic Research Plan in Shaanxi Province of China (Program no. 2011JM8029), and 111 Project (no. B08038).
