Docsity

Energy and Latency Efficient DAC Tree Construction in Wireless Sensor Networks, Papers of Cross-Cultural Communication

Toggle sidebar
bg1
Spanning tree based algorithms for low latency and
energy efficient data aggregation enhanced convergecast
(DAC) in wireless sensor networks
S. Upadhyayula, S.K.S. Gupta
*
Department of Computer Science and Engineering, Fulton School of Engineering, Arizona State University, Tempe, AZ 85287, United States
Received 28 February 2005; received in revised form 26 March 2006; accepted 22 April 2006
Abstract
Many wireless sensor networks (WSNs) employ battery-powered sensor nodes. Communication in such networks is
very taxing on its scarce energy resources. Convergecast – process of routing data from many sources to a sink – is com-
monly performed operation in WSNs. Data aggregation is a frequently used energy-conversing technique in WSNs. The
rationale is to reduce volume of communicated data by using in-network processing capability at sensor nodes. In this
paper, we address the problem of performing the operation of data aggregation enhanced convergecast (DAC) in an energy
and latency efficient manner. We assume that all the nodes in the network have a data item and there is an a priori known
application dependent data compression factor (or compression factor), c, that approximates the useful fraction of the total
data collected.
The paper first presents two DAC tree construction algorithms. One is a variant of the Minimum Spanning Tree (MST)
algorithm and the other is a variant of the Single Source Shortest Path Spanning Tree (SPT) algorithm. These two algo-
rithms serve as a motivation for our Combined algorithm (COM) which generalized the SPT and MST based algorithm.
The COM algorithm tries to construct an energy optimal DAC tree for any fixed value of a(= 1 c), the data growth
factor. The nodes of these trees are scheduled for collision-free communication using a channel allocation algorithm.
To achieve low latency, these algorithms use the b-constraint, which puts a soft limit on the maximum number of children
a node can have in a DAC tree. The DAC tree obtained from energy minimizing phase of tree construction algorithms is re-
structured using the b-constraint (in the latency minimizing phase) to reduce latency (at the expense of increasing energy
cost). The effectiveness of these algorithms is evaluated by using energy efficiency, latency and network lifetime as metrics.
With these metrics, the algorithms’ performance is compared with an existing data aggregation technique. From the exper-
imental results, for a given network density and data compression factor cat intermediate nodes, one can choose an appro-
priate algorithm depending upon whether the primary goal is to minimize the latency or the energy consumption.
2006 Elsevier B.V. All rights reserved.
Keywords: Convergecast; Spanning trees; Data aggregation; Energy-efficiency; Wireless sensor networks
1570-8705/$ - see front matter 2006 Elsevier B.V. All rights reserved.
doi:10.1016/j.adhoc.2006.04.004
*
Corresponding author. Tel.: +1 480 965 3806; fax: +1 480 965 2751.
E-mail addresses: [email protected] (S. Upadhyayula), [email protected] (S.K.S. Gupta).
Ad Hoc Networks xxx (2006) xxx–xxx
www.elsevier.com/locate/adhoc
ARTICLE IN PRESS
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17

Partial preview of the text

Download Energy and Latency Efficient DAC Tree Construction in Wireless Sensor Networks and more Papers Cross-Cultural Communication in PDF only on Docsity!

Spanning tree based algorithms for low latency and

energy efficient data aggregation enhanced convergecast

(DAC) in wireless sensor networks

S. Upadhyayula, S.K.S. Gupta *

Department of Computer Science and Engineering, Fulton School of Engineering, Arizona State University, Tempe, AZ 85287, United States

Received 28 February 2005; received in revised form 26 March 2006; accepted 22 April 2006

Abstract

Many wireless sensor networks (WSNs) employ battery-powered sensor nodes. Communication in such networks is very taxing on its scarce energy resources. Convergecast – process of routing data from many sources to a sink – is com- monly performed operation in WSNs. Data aggregation is a frequently used energy-conversing technique in WSNs. The rationale is to reduce volume of communicated data by using in-network processing capability at sensor nodes. In this paper, we address the problem of performing the operation of data aggregation enhanced convergecast (DAC) in an energy and latency efficient manner. We assume that all the nodes in the network have a data item and there is an a priori known application dependent data compression factor (or compression factor), c, that approximates the useful fraction of the total data collected. The paper first presents two DAC tree construction algorithms. One is a variant of the Minimum Spanning Tree (MST) algorithm and the other is a variant of the Single Source Shortest Path Spanning Tree (SPT) algorithm. These two algo- rithms serve as a motivation for our Combined algorithm (COM) which generalized the SPT and MST based algorithm. The COM algorithm tries to construct an energy optimal DAC tree for any fixed value of a (= 1  c), the data growth factor. The nodes of these trees are scheduled for collision-free communication using a channel allocation algorithm. To achieve low latency, these algorithms use the b-constraint, which puts a soft limit on the maximum number of children a node can have in a DAC tree. The DAC tree obtained from energy minimizing phase of tree construction algorithms is re- structured using the b-constraint (in the latency minimizing phase) to reduce latency (at the expense of increasing energy cost). The effectiveness of these algorithms is evaluated by using energy efficiency, latency and network lifetime as metrics. With these metrics, the algorithms’ performance is compared with an existing data aggregation technique. From the exper- imental results, for a given network density and data compression factor c at intermediate nodes, one can choose an appro- priate algorithm depending upon whether the primary goal is to minimize the latency or the energy consumption. Ó 2006 Elsevier B.V. All rights reserved.

Keywords: Convergecast; Spanning trees; Data aggregation; Energy-efficiency; Wireless sensor networks

1570-8705/$ - see front matter Ó 2006 Elsevier B.V. All rights reserved. doi:10.1016/j.adhoc.2006.04.

Ad Hoc Networks xxx (2006) xxx–xxx www.elsevier.com/locate/adhoc

  1. Introduction

One important function of many wireless sensor networks (WSNs) is to gather data from hostile or remote environments. It is expected of such net- works to work untended for a long duration. Due to limited energy resources, the above requirements put constraints on the energy usage. Examining var- ious functionalities of sensor networks, communica- tion can be singled out as one function that devours big share of the energy resources. A review of the lit- erature suggests that many attempts have been made to minimize energy consumption during com- munication [1–7]. The process of routing data from all the nodes to one node (called a sink node) is called a convergecast. In WSNs the energy cost for transmitting data far exceeds the cost of process- ing it [19]. Data aggregation is an energy conserva- tion technique which tries to reduce the volume of data communicated by collecting local data at inter- mediate nodes and forwarding only the result of an aggregation operation, such as min and max, towards the sink node. Since a convergecast opera- tion usually follows a broadcast operation [6], the path taken by a broadcast packet is also used for aggregating data in the convergecast. However, research shows that performing data aggregation along this routing path is not energy efficient [5]. In [6], authors study the general data aggregation problem and propose several (suboptimal) data aggregation techniques. The general data aggrega- tion problem is – given m sources and one sink in a n node network (m < n), find a minimum weight subgraph that includes all sources. This is a well known NP-complete problem, known as the Steiner Tree Problem (STP) [8]. There are many approxima- tion algorithms for solving STP [9–13]. From sensor networks’ perspective, in the literature there are sev- eral heuristic approaches to solve this problem [6,7]. The problem addressed in this paper is an impor- tant special case of the general data aggregation problem in which all the nodes in the network are source nodes. We refer to the task of collecting data from all the nodes in the network while performing data aggregation at intermediate nodes as a DAC (Data Aggregation enhanced Convergecast) opera- tion. Some heuristics addressing efficient implemen- tations of DAC operations are presented in [14,15]. Performance metrics vary depending on the system requirements. Energy, latency [5–7,15], reliability [5,15] and network lifetime [3,14] are few that are found in the literature. Node placement models

were studied to find their effect on energy consump- tion in WSNs [6,16]. This paper addresses the problem of optimal implementation of DAC operations incorporating constraints such as data compression at intermediate nodes. Data compression factor c 2 [0, 1] is used to denote the effectiveness of aggregation in reducing the data volume in comparison to the volume of the input data at an intermediate node. Under these con- straints, this paper presents solutions for minimum energy data aggregation with emphasis on reducing the latency. Two algorithms are proposed, one based on Minimum Spanning Tree (MST) and another based on Shortest-Path spanning Tree (SPT), to motivate the combined SPT–MST (COM) algorithm which generalizes the MST and the SPT algorithm and tries to construct energy optimal DAC trees for all values of a (= (1  c)), the data growth factor. In order to ensure collision-free data aggrega- tion, the nodes are scheduled using a combined Code-Division Multiple Access (CDMA) and Time-Division Multiple Access (TDMA) based channel allocation algorithm. Latency of the pro- posed algorithms is improved by introducing a con- cept called b-constraint. This rule places an upper (soft) limit on the number of children each node in the tree can have. This limit is soft in the sense that b-constraint is violated in cases where there is a risk of a node being left out of the tree. The performance of the algorithms is tested against some of the existing techniques [5,14,15] on randomly generated graphs. Network lifetime is also observed as a by-product while running these algorithms. Empirical observations are made with regards to answering questions such as – given a network of source nodes and data growth factor (a), the tree constructed by which algorithm is rec- ommended? and, what is the suggested value for b? The paper is organized as follows. In Section 2, a formal definition of the problem this paper deals with is presented. It also identifies the performance metrics used in this work. In Section 3, system model used in the paper is given. In Section 4, the tree construction and channel allocation algorithms are explained. Section 5 describes the simulation environment and Section 6 discusses the experimen- tal results. The paper is concluded in Section 7.

  1. Problem description and design goals

In this paper, we address the problem of constructing energy and latency efficient DAC trees

2 S. Upadhyayula, S.K.S. Gupta / Ad Hoc Networks xxx (2006) xxx–xxx

power of a node is assumed to be sufficiently large so as to reach every other node in the network, a node employs power control techniques to use sig- nal strength which is sufficient to reliably communi- cate with its parent node. Every node generates a constant sized data packet (k units). Each node is assigned a time slot during which it has to transmit its data. Communication is assumed to be done in time slots. Every node in the network is equipped with only one transceiver. Therefore, multiple recep- tions by a node in the same time slot is not possible. In addition to time slots, the nodes use CDMA codes for communication. When a node is not communicating, it goes to power-save mode, thereby expending negligible amount of energy in running the transceiver circuitry. The scheduling algorithm assumes that a node does not transmit until it receives data from all its children. All the nodes in the network use a fixed compression factor while collecting data. In this paper, DAC operation is evaluated in terms of latency of a round of DAC operation. A round is defined as the collection of one data unit from every node in the network and delivering the resulting aggregated data to the sink node. The latency of one round of DAC operation is the time taken starting from the first data packet transmission along the tree till the last data packet reception by the sink. In every round, each parent in the tree will wait till it receives data from all its children. A node after participating in a round of a DAC can immediately participate in its next round.

3.2. Energy model

Let Eelec be the electrical energy required to run the circuitry in the transceiver. The following gen- eric model is used to account for the energy con- sumed during communication. If a node i is transmitting k bits of data to a node j, then the amount of energy spent in this process by node i, ETx(i, j, k), and node j, ERx(j, k), is given as:

E (^) Txði; j; kÞ ¼ Eelec  k þ Eampði; jÞ  k; and E (^) Rxðj; kÞ ¼ Eelec  k;

ð 2 Þ

where Eamp(i, j) is the minimum amplification energy per bit required to reliably transmit data from node i to node j (measured in nJ/bit). The value of ampli- fication energy required between any two nodes de- pends upon the radio communication channel characteristics. In many works, Eamp (i, j) is approx-

imated using a distance based formula Eamp(i, j) = amp · dist(i, j)k, where amp is the amplification energy required to transmit a bit a unit distance, dist(i, j) is the distance between nodes i and j, k is a positive integer typically having values, depending on the communication medium, from 2 to 4 [3,4]. The formula in Eq. (2) is very general and encom- passes non-distance based models for energy consumption. For example, the Eamp (i, j) can be assigned the value obtained from actual in-field measurements conducted by the two nodes i and j. Note that, we are assuming that the nodes employ power control in order to optimize power expended for communication and to minimize interference to other concurrent communication. The total energy needed to transmit k bits of data from node i to node j would be denoted by E(i, j, k), where Eði; j; kÞ ¼ E (^) Txði; j; kÞ þ E (^) Rxðj; kÞ: ð 3 Þ Nodes are assumed to have two states: a high energy consuming on state and a low energy consuming sleep state. A node is in on state only when it is either sending or receiving data. For sake of simplic- ity, we assume that the energy consumed in the sleep state is negligible. Slot duration are expressed in units of time duration for transmitting one bit. If a slot is of duration of B bits and the node is only on for receiving or transmitting k bits then it is assumed to spend energy required for transmitting or receiving only k bits instead of B bits.

3.3. b-constraint

Consider any two nodes i and j having a common parent p. If one of these nodes (say node i) has a greater number of children than the other node, then the parent node p may have to wait for a longer duration before receiving messages from node i. If these nodes have roughly the same number of chil- dren (i.e. the tree is roughly balanced), then it is likely that both node i and node j will be prepared to transmit data at the same time and node p will have to be awake for a shorter duration to collect data from all its children. This is advantageous from the perspective of energy consumption minimization since nodes have to be in high energy consuming on state for a shorter duration. 1 For this purpose a new constraint called the b-constraint is introduced:

(^1) Nodes are assumed to enter a low energy-consumption sleep state whenever they are not sending or receiving data.

4 S. Upadhyayula, S.K.S. Gupta / Ad Hoc Networks xxx (2006) xxx–xxx

Definition 1 (b-Constraint). A node cannot have more than b children unless an intended child node is likely to be left out from the DAC tree.

The b-constraint ensures that a (almost) balanced DAC tree is constructed while ensuring that all the node are included in the tree. Note that, in the resulting DAC tree, some nodes can have fewer than b children and some other nodes may have more than b children. However, in a dense sensor network most of the nodes will have exactly b children – resulting in an almost balanced tree. Define a = 1  c as the data growth factor. This term gives an indication of the rate at which the data grows as it moves up the tree. Rest of the paper uses a and c interchangeably. Theoretically, for a fixed a, the value of b for which latency achieves optimal value is discussed in the following section.

3.4. Data latency

Latency is defined as the time required from the start of data transmission by the first source till the last packet is received by the sink in one round of a DAC. The communication in this model takes place using variable length time slots. On the entire tree, the length of a time slot is variable. However, the transmission slot length of the nodes at a partic- ular level in a tree is fixed (as described below). As it will be seen later in the paper (Section 4.5), this assumption simplifies contention-free channel allo- cation. Note that a parent node’s reception time slots are determined by the transmission time slots of its children, i.e., a parent node is scheduled to be listening (on an appropriate channel) whenever its children node are scheduled to transmit. In this work, the length of the transmission time slot for a node at level i is defined as follows:

Definition 2 (Length of a time slot at level i). It is the length of time required to transmit the largest size data packet from any level i node to its parent at level (i + 1) in the DAC tree.

For instance, consider a DAC tree of the height h with the root node at level h and the leaf nodes at level 1. And let all the leaves have a unit of data (say of size k) to transmit. Therefore, the length of the transmission time slot for the level 1 is k unit. Further, let fn (^) i 1 ; n (^) i 2 ; n (^) i 3 ;.. .g represent nodes at level i and fd (^) i 1 ; d (^) i 2 ; d (^) i 3 ;.. .g represent the size of data they have to transmit to their respective parents at level i + 1. Then the length of the time slot for this trans-

mission is given by the time to transmit a data of size D (^) i, where D (^) i ¼ maxfd (^) i 1 ; d (^) i 2 ; d (^) i 3 ;.. .g: ð 4 Þ Define Li to be the time required for level i nodes to finish transmitting data to the next level. Assuming that bi is the maximum number of children any node at level i + 1 has in a given DAC tree, we have Li P bi D (^) i; ð 5 Þ since each parent has to wait for receiving data from all its b children. For a DAC tree of height h, the total latency Latency is defined as:

Latency ¼

Xh^1

i¼ 1

Li: ð 6 Þ

For example consider a complete b-ary tree. 2 The latency of a round of DAC operation for a given complete b-ary tree can be calculated as follows. For a tree with height (or level) h, the (maximum) data size at level i, 1 6 i < h, is given as

D (^) i ¼ k 1 þ ðabÞ þ ðabÞ^2 þ    þ ðabÞði^1 Þ

h i ;

¼ k

ðabÞi^  1 ðabÞ  1

ð 7 Þ

For instance,

  • At level 1 the largest packet size = k (= D 1 )
  • At level 2 the largest packet size = k[1 + (ab)] (= D 2 )
  • At level 3 the largest packet size = k[1 + (a- b) + (ab)^2 ] (= D 3 ) -...
  • At level h  1 the largest packet size = k[1 + (ab) + (ab) 2 +    + (ab)h^2 ] (= D (^) h 1 )
  • According to the system model, the root node is the sink node and does not sense or transmit any data itself therefore D (^) h is not defined.

In the case of complete b-ary tree:

Latency P kb

Xh^1

i¼ 1

ðabÞi^  1 ðabÞ  1

; ð 8 Þ

P kb

ðabÞ  1

ðabÞh^  ðabÞ ðabÞ  1

 ðh  1 Þ

ð 9 Þ

(^2) A complete b-ary tree is a b-ary tree in which all leaves are at the same level and all the internal nodes have b children.

S. Upadhyayula, S.K.S. Gupta / Ad Hoc Networks xxx (2006) xxx–xxx 5

time slot assigned to a node indicates when to trans- mit its data to its parent node. Concurrently, the parent node will wake up from sleep state to receive data from its children during this time slot.

4.1. Tree construction

A node can directly transmit its sensed data to the base station (sink node) or route it through other nodes. Examining the energy model in Section 3, it can be concluded that multi-hop routing of data will result in energy savings whenever single hop communication involves transmission over long distances. Hence, in this work, a tree based approach is adopted to solve the problem of con- vergecast. It is easy to see that a tree based approach can represent both single hop and multi-hop com- munications. Following are some of the basic defini- tions we use in tree construction algorithms:

Definition 3. Let path from u to v, p(u, v) = {u 0 , u 1 , u 2 ,... , u (^) n} be defined as "i, 1 6 i 6 n,

p[u (^) i 1 ] = u (^) i, where u 0 = u and u (^) n = v, and p[u (^) i] indicates parent node of u (^) i.

Definition 4. Weight of a node u, denoted as d[u], is defined as follows:

d½uŠ ¼

cost of the ðknownÞ shortest path from base station to u – SPT algorithm; cost of shortest link connecting node u to MST – MST algorithm:

Note that (1) d[u] is used as the key value of u when placing the node in a priority queue, (2) ‘‘shortest’’ is in terms of energy cost, and (3) the link costs (weights) are assumed to be symmetric, i.e. w(i, j) = w(j, i), implying that the path costs are also symmetric. We now motivate our algorithm for tree con- struction (COM) by first presenting two tree con- struction algorithms: one based on the Minimum Spanning Tree (MST) algorithm and the other based on the Single Source Shortest Path (SPT) algorithm. Conditions (values of a and b) are given under which performance of each of these algo- rithms is optimum in terms of energy. Then we pres- ent the Combined SPT and MST algorithm, referred to as COM, which works for any value of a.

4.1.1. Rationale for SPT approach Since each node in the network has some bits to transmit to the base station, it can be viewed as a network with (n  1) sources and one sink (n nodes in the network). If the compression factor is 0% (a = 1), then it can be interpreted that the entire data sensed by each node travels to the base station. Let the energy expended for each packet be the sum of energy spent by every node involved in its trans- mission from the source to the base station. From the energy model in Section 3, it can be concluded that shorter the path traveled by the packet and lesser the number of hops, lower is the energy expended. SPT constructs trees based on this notion. A node in a SPT is at a shortest-distance away from the root node. Since, weight on the edges in the graph represents energy for communication, SPT also accounts for the number of hops between a node and the base station. Therefore, SPT based approach is used for tree construction when a = 1. Energy spent by a node in communication also depends on the amount of data it is transmitting.

Table 1 Notations for tree construction algorithms

Notations Definitions Initial value

S {vjv 2 V(T), where T is the tree} ; s Root node Input w(u, v) Weight on edge connecting u and v

Input

PQ Priority Queue of the nodes keyed by their d values

Adj[u] Adjacent nodes of u Input Child[u] List of child nodes of u ; d[u] Weight of path to node u 1 if u 5 s from base station (for SPT algorithm)

0 otherwise

Minimum weight of any edge connecting

1 if u 5 s

node u to the tree (for MST algorithm)

0 otherwise

dist[u, v] Distance between node u and v – p[u] Parent node of u NULL P[u] Sorted list of alternate parent nodes for node u

;

a Data growth factor Input c Data compression factor 1  a C(u) Time slot for transmission assigned to node u

U

b jChild[u]j 6 b Input TðuÞ Transmission code of node u 0 RðuÞ Reception code of node u 0 PðiÞ fuju 2 V ½GŠ and RðuÞ 6 ¼ ig ; CðiÞ fuju 2 V ½GŠ and TðuÞ 6 ¼ ig ; L Set of leaf nodes Input {1,... , H} Set of allowed CDMA codes Input

S. Upadhyayula, S.K.S. Gupta / Ad Hoc Networks xxx (2006) xxx–xxx 7

Contribution of a node b at height j to the amount of data transmitted by its ancestor node at height i, (i < j) is given by (a)jik, where k is the number of bits transmitted by b. For 0% compres- sion (a = 1), it can be observed from Eq. (7) that the data transmitted by any node in the tree will travel, uncompressed, along the tree to the base station. Hence, the energy consumed for delivering the data packet originating at a node will be mini- mized if it is routed to the base station along the shortest (minimum energy) path from the node to the base station. Clearly, to minimize the energy cost for the entire DAC operation, the path traveled by a packet from every node should be minimized. This is achieved by a SPT.

4.1.2. Rationale for MST approach Consider a DAC scenario with 100% (a = 0) compression. In this case, a packet transmitted by any node does not exist after one hop. To spend least energy in transmitting a packet, a node should transmit it to its closest (by weight) neighbor (towards the sink node). Total energy consumed in this type of model is given by:

ETotal ¼ k 

X

8ðu;vÞ2T

wðu; vÞ; ð 10 Þ

where k is a constant packet traveling along the graph, w(u, v) is the weight of the link between nodes u and v, and T is the DAC tree. In Eq. (10), ETotal is minimized only when

P

8ðu;vÞ2T wðu;^ vÞ^ is minimized. This is the problem of finding a minimum (edge- weight) spanning tree.

4.2. SPT based algorithm

The first tree construction algorithm is based on the concept of single source shortest path algorithm. This paper uses Dijkstra’s SPT algorithm for this problem. Due to reasons given in Section 3, a con- straint is put on the number of children per node in the tree (called the b-constraint). b is an input to the algorithm. If an intended child node is likely to be left out of the tree due to the b-constraint, then it is overlooked. This is to ensure that all the nodes in the network are included in the DAC tree. The notations used in this algorithm is explained in Table 1. Algorithm 4 is a two-phase algorithm. In the first phase, it constructs a Dijkstra’s Single Source SPT which minimizes energy for communication. In the second phase, it restructures the tree trying to

balance it so as to reduce latency. By constructing a balanced tree there is a greater chance of multiple simultaneous transmissions, thereby reducing latency. However, a restructured tree may not show any improvement in latency. In such cases, the behavior of network lifetime is observed to find an explanation for this behavior. For b P jVj Algorithm 4 behaves similar to the Dijkstra’s Single Source SPT. It is well-known that upon termination of Dijkstra’s Single Source Short- est path algorithm with source node s on a graph G(V, E), the resulting predecessor subgraph Gp = (Vp, Ep), where Vp = {v 2 V : p[v] 5 NULL} [ {s} and Ep = {(p[v], v) 2 E : v 2 Vp  {s}} induced by p values is a shortest-path tree rooted at s [18].

Algorithm 1. Relax(TYPE, u, v)

Algorithm 2. AdjustTree(u)

1: if TYPE = SPT 2: if d[v] > d[u] + E(u, v, k) 3: d[v] = d[u] + E(u, v, k) 4: p(v) = u 5: P[v] = P[v] [ {u} 6: if TYPE = MST 7: if d[v] > E(u, v, k) 8: d[v] = E(u, v, k) 9: p(v) = u 10: P[v] = P[v] [ {u} 11: if TYPE = COM 12: if d[v] > a (^) * d[u] + E(u, v, k) 13: d[v] = a (^) * d[u] + E(u, v, k) 14: p(v) = u 15: P[v] = P[v] [ {u}

1: C = ; /* C is a stack / 2: push(C, u) 3: while (C 5 ;) 4: u = pop(C) 5: for each v 2 Child(u) 6: push(C, v) 7: p = p(u) 8: if (u 5 s) / s is base station */ 9: if (jChild(p)j > b) 10: find t 2 P(u) such that jChild(t)j < b 11: p(u) = t 12: Child(p) = Child(p)  {u} 13: Child(t) = Child(t) [ {u}

8 S. Upadhyayula, S.K.S. Gupta / Ad Hoc Networks xxx (2006) xxx–xxx

Algorithm 5 is the MST based algorithm for DAC tree construction. Similar to the SPT based algorithm, it has two phases: (1) Energy Minimiza- tion Phase: that constructs an MST tree, and (2) Latency Minimizing Phase that tries to adjust the number of children a node has in accordance with b constraint. Working of MST based tree construction algo- rithm is explained using Fig. 3. Tree resulting from Energy Minimizing Phase of Algorithm 5 is given by Fig. 3(b). Energy consumed by this tree to perform one round of DAC is 44 nJ/bit (with Eelec and Eamp values as mentioned earlier). Fig. 3(c) of this figure is the product of AdjustTree algorithm. Fig. 3(d) is the end result of the MST based tree construction algorithm. Latency due to the tree in Fig. 3(b) is 4

time units. Imposing b-constraint with b = 2 will give a tree whose communication latency is 3 time units. There is an improvement in latency to 3 time units with the energy trade off of 1 nJ/bit. The AdjustTree algorithm rearranges the parent pointers of each node in the network to satisfy the b-constraint. Note that for b P jVj and a = 0, Algorithm 5 results in minimum energy for aggregating data dur- ing convergecast. That is because for the above assumption, AdjustTree algorithm will make no changes to the tree constructed by Algorithm 5. The tree obtained in such a case is an MST which ensures that the sum of the weights on edges con- necting the nodes is minimum. Note that, for 0 < a < 1, neither of the algorithms guarantee minimum energy consumption for the DAC operation.

4.4. Combined SPT–MST algorithm

In this section, we present the combined SPT– MST algorithm which builds a DAC tree for all

E B

C D F D

B S D S

Code 2

1 2 3 4 5 6 7

Code 1

Time Slots (f) Transmission schedule of (d)

E (^) DC D F (^) D

B S (^) D S

1 2 3 4 5 6 7 8

Code 2

Code 1

Time Slots

0

C F

7 5

E

B D

4

5

6 5

4

2 2

6

(a)

s

(1, Φ, 2) (1, Φ, 3) (c)

0

C F

7 5

E

B D

(^5 )

7 5

10 11

5

11

s (Φ, 2, Φ)

(2, Φ, 1) (^) (2, 1, 4)

(1, Φ, 1) (1, Φ, 1) (2, Φ, 1) (2, Φ, 2)

(1, 1, 2) (1, 2, 3)

(Φ, 1, Φ)

(d)

0

C F

7 5

E

B D

(^5 )

7 5

10 11

5

12

s

α = 1 β = 2 Energy = 45 nJ (^) Latency = 7 units

(1, Φ, 1)

(2, Φ, 1)

(1, Φ, 2) (1, Φ, 3)

(2, 1, 4)

(Φ, 2, Φ)

(b)

0

C F

7 5

E

B D

6

7

(^11 10 )

5

6

s

SPT Energy = 44 nJ Latency = 8 units

(e) Transmission schedule of (b)

5

Fig. 2. Example of SPT based algorithm. The three tuple indicate (Transmission Code, Reception Code, Time Slot), the value of U indicates that no code has been assigned, and the value within each circle is the d[ ] value for that node.

8: if v 2 PQ and w(u, v) < d[v] 9: Relax(MST, u, v) 10: 11: /Latency Minimizing Phase/ 12: AdjustTree(s) 13: AdjustWeight(MST, s)

10 S. Upadhyayula, S.K.S. Gupta / Ad Hoc Networks xxx (2006) xxx–xxx

values of a. The change that is needed for SPT to operate as the Combined SPT–MST algorithm (COM) is in the relaxation operation (see lines 12– 13 of Algorithm 1). For a = 1 the relaxation opera- tion is same as that used in the original Dijkstra’s SPT algorithm and for a = 0 the relaxation opera- tion is same as the original Prim’s MST algorithm. In the following we motivate the algorithm. We begin with the following definition:

Definition 5. Assuming path p(u, v) = {u 0 , u 1 ,... , u (^) l}, u 0 = u and u (^) l = v, define

ECðpðu; vÞ; k; aÞ  Eðu 0 ; u 1 ; kÞ þ aEðu 1 ; u 2 ; kÞ

þ    þ al^1 Eðu (^) l 1 ; u (^) l; kÞ

Xl

i¼ 1

ai^1 Eðu (^) i 1 ; u (^) i; kÞ: ð 11 Þ

EC(p(u, v), k, a) corresponds to the energy expended for delivering node u’s contribution to the aggre- gated data of (its ancestor) node v along the (DAC tree) path p(u, v) assuming that the size of data originating at node u is k bits and the data compression factor is (1  a). Specifically, for a = 1 the EC( ) path metric is same as the shortest- path metric used by SPT. COM is a greedy algorithm. At every step, it adds to the DAC tree a node which has minimum esti- mate of EC( )-value (d-value) path to a node in the partial DAC tree. Since COM constructs an acyclic graph which covers all the nodes in the network, it constructs a tree. However, it should be noted that the DAC tree constructed by COM’s Energy Mini- mizing phase may not optimal for the intermediate value of a, i.e. when 0 < a < 1. However, our

(a)

0

4

5

5

(^5 6 )

7 8

8

B (^) C D

E (^) F

s

(1, Φ, 1) (2, Φ, 1)

(2, Φ, 2)

(2, 1, 3)

(Φ, 1, Φ)

(1, 2, 4)

(c)

0

4

5

5 5

7

B (^) C D

E (^) F

4

5 5

(^55)

s

E B C S

F C D CB C

(^1 2 3 )

Code 1

Code 2

Time Slots

(e) Transmission schedule of (b)

E B

F C

C S

D C

B C

Code 2

Code 1

1 2 3 4 Time Slots

Transmission schedule of (d)

(f)

Energy = 45 nJ Latency = 3 units

(1, Φ, 1) (2, Φ, 1)

(2, Φ, 2)

(1, 1, 2)

(Φ, 1, Φ)

(1, 2, 3)

(d)

0

4

5

5 5

7

B (^) C D

E (^) F

4

5 5

(^75)

α = 0 β = 2

s

(1,Φ, 1) (2, Φ, 1)

(2, 1, 3) (2, Φ, 2)

(Φ, 1, Φ)

(1, 2, 4)

(b) MST

0

4

5

5

5 5

B (^) C D

E (^) F

5 5

5 5

4

s

Energy = 44 nJ Latency = 4 units

Fig. 3. Example of MST based algorithm. The three tuple indicate (Transmission Code, Reception Code, Time Slot).

S. Upadhyayula, S.K.S. Gupta / Ad Hoc Networks xxx (2006) xxx–xxx 11

4.6. Complexity analysis

The SPT based tree construction algorithm begins by calling Initialize(G,s). Its running time is OðV Þ. Algorithm 1 takes constant time for execution. In Algorithm 4 if PQ is implemented as an array, then Extract_min operation takes OðV Þ. Since the while loop runs for OðV Þ, total num- ber of Extract_min operations are OðV 2 Þ. Each edge in the adjacency list Adj[u] is relaxed exactly once in the algorithm. So, Algorithm 1 is executed a total of jEj times. Thus, the running time of the algorithm without AdjustTree, Initialize(G, s) and AdjustWeight code is OðV 2 þ EÞ. This is the running time of the Energy Minimizing Phase of the SPT based tree construction algorithm. In AdjustTree algorithm, the while loop runs exactly once for each node. The running time of the algorithm is same as the running time of lines 8–10 which is OðV Þ. Therefore, the complexity of AdjustTree algorithm is OðV 2 Þ. AdjustWeight algo- rithm executes once for every node in the network. The for loop runs for OðbÞ times. The complexity of the AdjustWeight algorithm is OðbV Þ. Therefore, the complexity of Algorithm 4 is OðV 2 þ E þ bV Þ. It should be noted that the OðV 2 Þ is the complex- ity of AdjustTree algorithm in the worst case scenario. For every node u in the tree, entire list P(u) may not be always scanned. Moreover, not all nodes may be present in P(u). However, tight bound on the complexity of AdjustTree algorithm does not improve the overall complexity of Algo- rithm 4 because of the complexity of Energy Mini- mizing Phase. The run time complexity of MST based tree con- struction algorithm can be determined on similar lines as the SPT based algorithm. Initialize will take OðV Þ time. The while loop runs for OðV Þ time. Extract_min operation takes OðV Þ time due to array implementation of PQ. The for loop will run for OðEÞ times because each edge is visited only once. The AdjustTree, as stated above, will take OðV 2 Þ in worst case scenario. AdjustWeight algo- rithm will take OðbÞ time. Running time of this algo- rithm, therefore, is OðV 2 þ E þ bV Þ. Run time complexity of NodeInfo algorithm is OðV Þ, because a node can have at most all other nodes in its adjacency list. Algorithm 7 runs at least once for every node in the network. If the parent of a node is receiving on a channel, then the node will check if it can transmit on that channel. Line 7 per- forms this check which, in the worst case, takes

OðV Þ. If the parent of a node has decided on recep- tion channel then the node examines which CDMA code it should choose to avoid interference. Lines 12–15 performs this check which, in the worst case, takes OðV HÞ. Rest of the code takes constant time. Therefore, the runtime of the algorithm is OðV 2 HÞ.

  1. Simulation environment

The simulations are based on the input network graphs generated with varying node densities, num- ber of nodes and b value. In this work, node density is considered as number of nodes per unit area. The underlying assumption in this definition is that there cannot be more than one node per unit area. Node density is computed as nostotal area:^ nodes  100. Therefore, 100% node density corresponds to one node per unit square area and 10% node density corresponds to one node per 10 unit square area. For simulations, networks with node density varying from 10% to 80% in the increments of 10% are considered. For each node density, network with sizes varying from 50 nodes to 300 nodes are generated. The value of b, an input to tree construction algorithm, is varied from 1 to 3. From the numerous trial graphs gener- ated, it was observed that typically, most of the nodes in MST and SPT will have no more than three children. Therefore increasing b greater than 3 will not help attain significant latency gain. Another simulation test was performed with b > jVj. The reason for taking such inputs is to observe the performance of the proposed algorithm on sparse and small networks to dense and large networks while varying b for each configuration. The number of codes (H) used is 3. The reason is that during our trial runs, we did not see significant improvement in the latency by increasing H beyond

  1. The energy model used is r^2 energy model and the performance of the proposed algorithms is tested against Pegasis [14] for the above inputs. Perfor- mance was measured using the following metrics: total energy consumption, latency and network life

Fig. 4. Working of Pegasis.

S. Upadhyayula, S.K.S. Gupta / Ad Hoc Networks xxx (2006) xxx–xxx 13

time. For a given node density and network size, input data was randomly generated, and algorithms tested. This simulation was performed for 50 differ- ent random graphs (for each set of inputs) and the average performance was measured. Values of parameters used in Eq. (2) are, Eelec = 50 nJ/bit,

amp =100 pJ/bit/m 2. These parameters are same as those used in [3]. Communication range of each node is set to 15 m. The results for lifetime are obtained for the 95% confidence interval. The reason for choosing Pegasis for comparison was its network longevity and better performance

Fig. 5. Table summarizing the experimental results.

14 S. Upadhyayula, S.K.S. Gupta / Ad Hoc Networks xxx (2006) xxx–xxx

Fig. 6 (continued )

16 S. Upadhyayula, S.K.S. Gupta / Ad Hoc Networks xxx (2006) xxx–xxx

Fig. 7. Behavior of Pegasis, COM, MST-based and SPT-based algorithm for a = 50%.

S. Upadhyayula, S.K.S. Gupta / Ad Hoc Networks xxx (2006) xxx–xxx 17

Fig. 8. Behavior of Pegasis, COM, MST-based and SPT-based algorithm for a = 100%.

S. Upadhyayula, S.K.S. Gupta / Ad Hoc Networks xxx (2006) xxx–xxx 19

Fig. 8 (continued )

20 S. Upadhyayula, S.K.S. Gupta / Ad Hoc Networks xxx (2006) xxx–xxx