You are on page 1of 11

www.ietdl.

org
Published in IET Wireless Sensor Systems
Received on 6th March 2011
Revised on 17th May 2012
doi: 10.1049/iet-wss.2011.0146

ISSN 2043-6386

Optimal data aggregation tree in wireless sensor


networks based on intelligent water drops algorithm
D. Chinh Hoang R. Kumar S. Kumar Panda
Department of Electrical and Computer Engineering, National University of Singapore 4, Engineering Drive 3,
117576, Singapore
E-mail: eleskp@nus.edu.sg

Abstract: Energy conservation is an important aspect in wireless sensor networks (WSNs) to extend the network lifetime.
In order to obtain energy-efcient data transmission within the network, sensor nodes can be organised into an optimal data
aggregation tree with optimally selected aggregation nodes to transfer data. Various nature-inspired optimisation methods
have been shown to outperform conventional methods when solving this problem in a distributed manner, that is, each sensor
node makes its own decision on routing the data. In this study, a novel optimisation algorithm called intelligent water drops
(IWDs) is adopted to construct the optimal data aggregation trees for the WSNs. Further enhancement of the basic IWD
algorithm is proposed to improve the construction of the tree by attempting to increase the probability of selecting optimum
aggregation nodes. The computational experiment results show that the IWD algorithm is able to obtain a better data
aggregation tree with a smaller number of edges representing direct communication between two nodes when compared with
the well-known optimisation method such as ant colony optimisation. In addition, the proposed improved version of the IWD
algorithm provides better performance in comparison with the basic IWD algorithm for saving the energy of WSNs.

1 Introduction considered to be an effective technique [6]. Redundancy in


raw data can be eliminated at aggregation points. Only
Wireless sensor networks (WSNs) consist of a large number application-specic information is retrieved and forwarded
of autonomous nodes equipped with sensing components, to the BS [6]. Therefore the number of data packets
wireless communication abilities and processor with limited received at the BS is signicantly reduced, resulting in
computational capability, memory storage and energy energy savings and bandwidth conservation.
resource [1]. WSNs are used for distributed and cooperative Optimal data aggregation can be identied in terms of total
sensing of physical phenomena and events of interest. They energy consumption for transferring data from the sensors to
can be employed for a wide range of applications in the BS. The construction of such an optimal aggregation
both civilian and military scenarios, including military structure is dependent on the network topology, the location
surveillance, medical healthcare systems, environmental of sources and the aggregation function. The popular
monitoring, target tracking and so on. Usually, sensor nodes routing protocols, that couple with data aggregation
in the network are left unattended after being deployed over techniques, can be classied into two groups based on the
the eld of interest. Finite energy sources like batteries or network architecture: cluster-based and tree-based
ultracapacitors, used to power these sensor nodes, are protocols [7].
hardly replaced or recharged. Meanwhile, WSNs useful The cluster-based protocols such as LEACH [8, 9], HEED
lifetime needs to be prolonged in order to maintain its [10], FCM [11] and so on group sensor nodes into clusters,
operation. Therefore energy-efcient strategies of routing utilise data aggregation techniques at the cluster head level
data within the WSN are required for energy conservation to gather data from cluster members, then send the
of the networks [2]. compressed data to the BS. These protocols premise that
The conventional routing algorithms such as AODV [3], every sensor node can send packets to the BS in a single
DSR [4] and TORA [5] transfer data within the network hop. This assumption limits the size of the network as
through the shortest routes. As sensor nodes are deployed the limitation of sensor nodes communication range.
densely in the environmental eld, information collected by In addition, it restricts the controllability of the transmission
the nodes in their mutual neighbourhood may be highly power, since further nodes have to consume more energy to
correlated and therefore redundant. Wastage of energy and transfer the packet to the BS.
high trafc load are the prices to be paid for transmitting In this paper, the second category of the network
duplicate data from source nodes to a base station (BS). architecture, that is, tree-based protocols, are focused on.
In order to solve these issues and optimise the energy These protocols organise sensor nodes into a tree where
consumed for communication, data aggregation is data aggregation is performed at intermediate nodes, which

282 IET Wirel. Sens. Syst., 2012, Vol. 2, Iss. 3, pp. 282 292
& The Institution of Engineering and Technology 2012 doi: 10.1049/iet-wss.2011.0146
www.ietdl.org
are located at the junctions of tree branches. The aggregated employed to solve classical problems like travelling salesman
data packets are later routed to the root node, that is, the problem (TSP), N-Queens and multiple knapsacks problems
BS. The tree-based protocols are suitable for applications, [21]. It can be also used to solve optimisation problems in
that involve in-network data aggregation [6]. Examples other applications, for example, robot path planning [22] and
of the applications can be forest re detection, safety automatic multilevel thresholding for image segmentation
monitoring in industrial plants and so on where the [23]. The results show that the IWD is capable of obtaining
measurement provides the most useful information about near-optimal solution for all these complicated problems in a
the safety conditions. One of the main objectives of the nite number of iterations, and in some cases it performs
tree-based protocols is to optimise the construction of a data better than ACO. Therefore IWD has better balance between
aggregation tree in terms of energy efciency. This optimal diversication and intensication, and it may have a higher
aggregation tree is recognised as NP-hard [12], which is chance to nd the optimal or near-optimal route.
equivalent to the Steiner tree, weighted set cover The basic IWD algorithm forms the aggregation tree with
problem [13]. the re-enforcement of attracting other water drops in the
Directed diffusion (DD) [14] is a typical data-centric next round of tree construction at the aggregation node
routing paradigm for sensor networks that relays data from where two branches of the tree join. However, this has
the source to the destination via the established shortest limitation when no aggregation node is found during the
path. In this protocol, data from different sources are earlier rounds. Thus, a modication of the basic model
opportunistically aggregated. This method is not efcient IWD algorithm is proposed in this paper in order to
due to the fact that randomly selected aggregation nodes effectively apply the method for solving the data
may be far away from the sources. aggregation optimisation problem. For the purpose of
Greedy incremental tree (GIT) is an approximation algorithm enhancing the probability of nding the destination or
for nding optimal aggregation trees based on DD, that is aggregation node, the attraction for new IWDs is performed
proposed to establish an energy-efcient path in [15]. at all nodes that have been visited by an IWD along the
Krishnamachari et al. [13] compare shortest path tree, centre route from one source to the destination, that is, the BS.
at the nearest source and a modied version of GIT to This paper is organised as follows: Section 2 describes the
manifest the advantage of data aggregation and to demonstrate system model and the problem of optimising the data
enhanced methods for constructing the aggregation tree. aggregation tree. Section 3 introduces the basic model
Misra and Mandal [16] apply the ant colony algorithm to of the IWD algorithm. Section 4 presents the construction
solve the data aggregation problem. Ant colony optimisation of the data aggregation tree using the IWD algorithms
(ACO) algorithm [17, 18] proposed by Dorigo et al. is a and the modication of the original IWD algorithm
well-known swarm intelligent approach which mimics the for the enhancement of aggregation tree construction.
foraging behaviour of the ant society. These ants deposit Computational experiment results are provided in Section
pheromone on the ground in order to mark some favourable 5. Finally, the conclusions are presented in Section 6.
path that should be followed by the other members of the
colony. This approach is utilised in [16] to determine the
optimal paths from different sources to the BS, data packets 2 System models and problem of optimal
are aggregated at the nearest relay nodes to the sources. Liao data aggregation tree
et al. [19] proposed an improvement of achieving optimal
data aggregation tree in WSNs using ACO by extending the A WSN with a number of sensor nodes randomly and densely
search region around the routing paths, and thus increasing deployed in an area is considered. It is assumed that every
the probability of nding aggregation nodes. These works sensor node, which has a unique identity, is stationary and
have shown how to outperform the conventional methods in powered by a nite energy source with the same initial
terms of energy conservation. energy capacity. There are three types of sensor nodes
In the present work, the problem of constructing the optimal dened in this network: source nodes, relay nodes and a
data aggregation tree of a densely deployed WSN to route data BS. Each node can send packets to its neighbouring nodes
from different sources to a BS is considered. The aggregation within its limited communication range as shown in
tree is optimised by nding the aggregation nodes nearer to Fig. 1a. Whenever a source node needs to send data to the
the sources and minimising the total number of edges BS, it has to nd a route formed by a set of relay nodes to
representing the direct communicating connection between the transfer data. The relay node, that receives data from
two nodes. A novel nature-inspired optimisation algorithm, different sources or is at the junction of different routes, is
called intelligent water drop (IWD), is adopted with the an aggregation node as illustrated in Fig. 1b. This node
expectation that the optimal or near-optimal tree is achieved. gathers data, combines all of the packets received into a
This nature-inspired approach may provide a suitable single packet and then forwards the concise data packet to
mechanism for routing data in distributed systems like WSNs. the next relay node or the BS.
The algorithm was rst proposed by S. H. Hosseini [20], In order to save the total energy consumption of the WSN,
which imitates the dynamics of river systems and the the number of data packets relayed in the network need to be
behaviour of water drops when they are moving in the river reduced. This means the number hops on the routes from the
such as the variation of velocity, the change of soil in the bed sources to the destination should be minimised. Furthermore,
of the river, the change of the ow direction and so on. The the aggregation nodes of these routes need to be as near as
IWD algorithm changes the amount of soil on the paths that possible to the sources in order to perform data aggregation
water drops traversed. This variation depends on the velocity at an early stage of transferring data. The WSN can be
and the soil carried by the water drop, and it can be increased represented as a directed graph G (V, E), where V is the
or decreased to attract or obstruct other water drops. This set of sensor nodes with |V| n is the number of sensor
variation is different from the ACO algorithm, in which the nodes, and E (u, v)|(u, v [ V ), d(u, v) R) denotes the
pheromone is only increased to attract more or fewer ants set of edges connected nodes in their mutual
following the discovered routes. The IWD algorithm has been neighbourhood, d(u, v) is the Euclidean distance between

IET Wirel. Sens. Syst., 2012, Vol. 2, Iss. 3, pp. 282292 283
doi: 10.1049/iet-wss.2011.0146 & The Institution of Engineering and Technology 2012
www.ietdl.org

Fig. 1 Deployment of sensor nodes in the environment eld and the data aggregation scheme within the network
a Deployment of sensor nodes
b Data aggregation scheme

nodes u and v and R is the communication range of every 3 Principles of intelligent water drops
node in V. The set S s [ V is dened as the group of algorithm
source nodes, s that would generate data to send to the BS,
and the node, b is the destination node for the data to reach, In large sensor networks, nding optimal aggregation tree is
which is the BS. The optimisation problem mentioned an NP-hard problem. To solve this problem, IWDs
above can be dened as: nding a subset Gagg (Vagg , algorithm, a nature-inspired optimisation method, is
Eagg) , G with Vagg , V which is the set of all the source adopted. This algorithm is inspired by the observation of
nodes and selected relay nodes and Eagg , E which is the natural water ow in the rivers formed by a swarm of water
set of edges that connect the nodes in Vagg and the BS b in drops [20]. The swarm of water drops nd their own way to
order to the lakes or oceans even though it has to overcome a
number of obstacles in its path. Without the presence of
 these obstacles, the water drops tend to be pulled straight
minimise (hsv + hvb ) (1)
s[S,v[Vagg
towards the destination by the gravitational force. However,
being blocked by different kinds of obstacles and
constraints, there exist lots of twists and turns in the real
where hsv and hvb are the number of hop count from source path of the river. The interesting point is that the path of the
node, s to aggregation node, v, and from the aggregation river, constructed by the ow of water drops, seems to be
node v to the BS b, respectively, Vagg . S. optimised in terms of distance from the source to the
In other words, if the length of the route is calculated as the destination under the constraints of the environment. By
number of edges, the objective of this optimisation problem is mimicking the features of water drops and obstacles of the
to minimise the number of edges connected nodes from all environment, the IWD algorithm uses a population of water
sources to the destination in the network. By constructing drops to construct paths and obtain the optimal or
such an optimal data aggregation tree, the total energy near-optimal path among all these paths over time. The
consumption of transmitting data within the network can be environment represents the optimisation problem needed to
minimised. be solved. A river of IWDs looks for an optimal route for
In this work, the data packet loss during the transmission is the given problem.
not considered. The time of network operation is discrete and Hosseini [21] presented the basics of the IWD algorithm,
dened by the number of runs. During each run, a data then applied it to solve different optimisation problems.
aggregation tree is constructed, all the sources transfer data As described in [21], an IWD model is proposed with two
to the BS through this tree. In order to evaluate the energy important parameters:
efciency of the proposed algorithm, the rst-order energy
model presented in [8] is used to compute the total energy The amount of soil it carries or its soil load, soilLoadIWD.
consumption of the network. In this model, the amount of The velocity at which it is moving, velIWD.
energy, ETx consumed by a single node to transmit a k-bit
message over a distance d is calculated by using (2). The values of these two parameters may change as the IWD
Meanwhile, to receive this k-bit message, the energy ows in its environment from the source to a destination.
consumption, ERx of the node is calculated by using (3) [8]. An IWD moves in discrete nite-length steps and updates
its velocity by an amount DvelIWD when it changes the
ETx = Eelec k + 1amp k d 2 (2) position from point i to point j as follows

ERx = Eelec k (3) av


DvelIWD = (4)
bv + cv [soil(i, j)]2
where Eelec is the energy required to operate the transmitter or
receiver electronic circuitry and 1amp is the energy where soil(i, j) is the soil on the bed of the edge between two
consumption for the transmitter amplier. points i and j; av , bv and cv are pre-dened positive parameters

284 IET Wirel. Sens. Syst., 2012, Vol. 2, Iss. 3, pp. 282 292
& The Institution of Engineering and Technology 2012 doi: 10.1049/iet-wss.2011.0146
www.ietdl.org
for the IWD algorithm. The relationship between velocity and function g(soil(i, j)) is used to shift the soil(i, j) of the edge
the amount of soil of the edge is decided by av and cv , connecting point i and point j towards a positive value and
meanwhile bv is a small number used to prevent the is described below
singularity problem. Equation (4) indicates that the rate of
changing the velocity, DvelIWD is dependent on the soil of
the edge, that is, edge with more soil provides more g(soil(i, j))
resistance to the water ow that results in a smaller
increment in velocity and vice versa. Thus, the velocity at soil(i, j) if min (soil(i, l)) 0
lvc(IWD)
time (t + 1), velIWD
(t+1) is given by
=
soil(i, j) min (soil(i, l)) otherwise
lvc(IWD)

velIWD
(t+1) = velIWD
(t) + Dvel IWD
(5) (11)

where velIWD
(t) is the velocity of the IWD at time t.
The amount of soil removed from the bed of edge (i, j) is A uniform random distribution is used to generate a random
inversely proportional in a non-linear manner to the time number which can be compared with this probability in
needed for the IWD to move from point i to point j and can order to decide which is the next location that the IWD will
be calculated by using (6) move to.
For a given problem, an objective or quality function is
as needed to evaluate the tness value of the solutions. A set
Dsoil(i, j) = (6) of IWDs can be utilised and work together to nd
bs + cs [time(i, j; velIWD )]2
the optimal solution. The function q(.) is denoted as the
quality function and T IWD is a solution founded by an
where as , bs and cs are pre-dened positive parameters for the IWD. When all the IWDs have constructed their solutions,
IWD algorithm. as and cs dene the relationship between the one iteration can be considered complete. At the end of
amount of soil and the period of time IWD takes to move the iteration, the current iteration best solution T IB is
through the edge (i, j), and bs is a small number used to calculated by
avoid the singularity problem. Meanwhile, the duration of
time is calculated by the simple laws of physics for linear
motion. The time spent by the IWD to move from point i to
T IB = arg max q(T IWD ) (12)
j with velocity velIWD is given by IWDs

HUD(i, j)
time(i, j; velIWD ) = (7) Equation (8) updates the soil of each edge whenever an IWD
max (1v ; velIWD )
traverses through a particular path based on the current
amount of soil of the edge and the current velocity of the
where a local heuristic function HUD(i, j) has to be dened
IWD. The soil is updated in (8) by using local information
for a given problem to measure the undesirability of an
at each edge of the tree, and thus it may result in a local
IWD to move from point i to point j, 1v is the threshold of
optimum. In order to increase the opportunities of nding
velocity to avoid the negative value of velIWD. Equations
the global optimum, the amount of soil on the edges of the
(6) and (7) represent the assumption that the water drop
current iteration best solution T IB is updated according to
which moves faster or spends less time to pass from point i
the goodness of the solution after the iteration is complete
to point j can gather more soil than the one which has a
and the overall knowledge of the solution is acquired.
slower velocity.
Equation (13) can be used to update the soil(i, j) belonging
Once the IWD moves from point i to point j, the following
to the current iteration best solution T IB
formulae are used to calculate the updated soil of the edge and
the soil load of the IWD, respectively.
soil(i, j) = (1 + rIWD )soil(i, j)
soil(i, j)(t+1) = (1 rn ) soil(i, j)(t) rn D soil(i, j) (8)
1
rIWD soilLoadIWD
IB ,
(t+1) = soilLoad(t) + D soil(i, j)
soilLoadIWD IWD
(9) (NIB 1)

where rn is the local soil updating parameter, which is chosen (i, j) [ T IB (13)
from [0,1], and Dsoil(i, j) is calculated in (6).
To present the behaviour of an IWD that prefers the easier
where soilLoadIWD
IB represents the soil of the current iteration
edge or the edge with less soil on their beds, the edge
best IWD when it reaches the destination, NIB is the
selection of an IWD is based on the probability, p(i, j;
number of nodes in the solution T IB and rIWD is the
IWD), dened as follows which is inversely proportional to
global soil updating parameter which is chosen from [0, 1].
the amount of soil on the available edges.
The rst term on the right-hand side of (13) is the
amount of soil that remains from the previous
f (soil(i, j))
p(i, j; IWD) =  (10) iteration. Meanwhile, the second term of the right-hand side
kvc(IWD) f (soil(i, k)) of (13) represents the quality of the current solution,
obtained by the IWD. This way of updating the soil
where f (soil(i, k)) (1(1s + g(soil(i, j)))). The constant 1s is assists the reinforcement of the best-iteration solutions
a small positive number to prevent singularity. The set gradually, and thus, the IWDs are guided to search near
vc(IWD) denotes the group of nodes that the IWD should good solutions with the expectation of nding the global
not visit to satisfy the constraints of the problem. The optimum.

IET Wirel. Sens. Syst., 2012, Vol. 2, Iss. 3, pp. 282292 285
doi: 10.1049/iet-wss.2011.0146 & The Institution of Engineering and Technology 2012
www.ietdl.org
4 Data aggregation using the IWD algorithm Table 1 Message format of an IWD packet

4.1 Constructing an aggregation tree with the IWD Pkt_Type SN S_ID P_ID HCtoS IWD_vel IWD_soilLoad
algorithm

The original IWD algorithm is used to solve the classical TSP packet. The eld SN is the selected node which receives
in order to nd the shortest path that connects all the cities in the packet. S_ID is the identity of the source node
the problem exactly once, returning to the rst city [20]. In the generating this packet. P_ID is the identity of the previous
problem of constructing the optimal data aggregation tree for node. HCtoS contains the hop count from the current node,
WSNs, the IWD algorithm can be adopted in a similar way. that the IWD is locating, to the source node. The last two
However, different from the TSP problem where an IWD elds represent the parameters of the IWDs: IWDs
travels via all the nodes to establish a circle, several IWDs velocity, IWD_vel and soil load, IWD_soilLoad. The initial
originate from the data sources simultaneously to search for value of IWDs velocity and soil load is set by the
the paths to reach the BS. These paths join and form an constants InitVel and 0, respectively, at the source nodes.
aggregation tree which is a near-optimal solution of the This value changes when the IWD packet travels through
problem described in Section 2. The basic idea is that each the network.
IWD either tries to nd the shortest path to reach the Initially, the BS oods its identity throughout the network.
destination, or nds the nearest aggregation nodes and Each node in the network receiving this packet broadcasts to
terminates. Each sensor node maintains a table in its its neighbourhood. The hop count to the BS of a node is
memory storage that contains the information of its updated if it receives the packet from a neighbour which
neighbours identities and the amount of soil assigned to has a smaller hop count to the BS than its current hop
each edge connecting it to the neighbouring nodes. Initially, count subtracting one.
the same amount of soil is assigned to every edge, which The IWD algorithm proposed for the WSNs illustrated in
connects two nodes in their mutual neighbourhood. Fig. 2 is described in the following steps:
The algorithm updates the soil of each edge along the route
to the BS whenever an IWD traverses. The better route,
including a smaller number of hops from the source to the Step 1: Each source node initialises its IWD data packet. The
destination, has less amount of soil left and thus attracts initial value of this amount of soil is soil(i, j) InitSoil and
more IWDs in the next round of search. the initial velocity of an IWD is InitVel.
The format of the packet carried by the IWDs is shown in Step 2: Each IWD data packet located at node i selects the
Table 1 to provide the information to update the soil of the next hop j from its neighbouring table by generating a
routes visited. In this packet, the eld Pkt_Type indicates random number and comparing with the probability
the type of the packet which is a control packet or a data calculated with (10). In order to eliminate the selection of

Fig. 2 Flowchart of the IWD algorithm for constructing data aggregation tree in WSNs

286 IET Wirel. Sens. Syst., 2012, Vol. 2, Iss. 3, pp. 282 292
& The Institution of Engineering and Technology 2012 doi: 10.1049/iet-wss.2011.0146
www.ietdl.org
nodes, which is further away from the BS, an additional term, of soil is removed from the edge (i, j). Otherwise, no
hd(i, j), is included into f (soil(i, j)) as follows change of the amount of soil is applied.

1 Step 7: Once the IWD data packet reaches the BS or an


f (soil(i, j)) = hb (i, j) (14) aggregation node, it terminates the search process.
1s + g(soil(i, j)) d
Otherwise, it repeats from Step 2 to select the next hop.
At the aggregation node v, the amount of soil in each edge
where hd(i, j) is the hop count from node j to the BS adding (u, v), where u is a neighbour of v, is updated as follows.
one and b is a parameter which determines the relative The aggregation node v broadcasts an update soil packet to
inuence of hd(i, j). all the neighbouring nodes except the parent node which is
Step 3: Node j receiving the IWD data packet updates the the previous one sending data to v. This packet contains the
velocity of the IWD by using (5) total of hop count from all the sources to v and from v to
Step 4: When node j receives an IWD packet, it builds a the BS. Each of these neighbouring nodes in turn will
reaction table which consists of ve parts: create a new IWD which has the velocity of InitVel and
soil load of 0. The IWD velocity and soil load are
S_ID: source node id calculated by using (5) and (9). Then, they are applied in
P_ID: previous node id (8) to update the soil(u, v).
HCtoS: hop count from node j to the source node Step 8: The network operation repeats from step 1 to 7 in
order to collect data for a number of iterations. For each
The S_ID and P_ID elds of the reaction table are the same iteration, after the data aggregation tree, rooted at the BS
values as those in the IWD packet. This information is used to and containing all the source nodes, is constructed by the
extend the search region, that follows a mechanism proposed IWD algorithm, the BS computes the total hop count of the
in [19] in order to increase the probability of nding the data aggregation tree. If the total hop count is smaller than
intersection of the routing paths. HCtoS or the table is the best value evaluated so far, the soil of all edges in the
obtained by adding one to the HCtoS value in the IWD aggregation tree is updated one more time by using (13).
packet. However, if the S_ID already exists in the record of
node j, the reaction table only updates if the new HCtoS is This basic IWD algorithm as explained above is able to
smaller than the old one. construct a data aggregation tree with a minimum number
After updating the reaction table with the new information of hop count. The algorithm increases the probability of
of the IWD data packet, the node broadcasts an extended nding the best aggregation node by updating the amount
packet in one hop communication to its neighbours. of soil for the neighbour of the aggregation node once it is
This packet has the same format as the IWD packet except found. Thus, in the next round, there is a higher chance that
that the data eld and the elds of the IWD properties are one IWD moves through this aggregation node when this
empty. The neighbouring nodes in turn update their reaction IWD reaches its neighbourhood. However, there exist cases
table accordingly. when an IWD cannot nd any nodes that are visited by
other IWDs, thus, the route established by this IWD does
Step 5: The amount of soil removed from the edge (i, j) is not have any common point in the middle with others.
computed by using (6). The undesirability of an IWD to As illustrated in Fig. 3a, the routes from the source node s1
move from node i to node j, HUD(i, j), in this equation is and the source node s2 to the BS, b only join together at b.
dened as follows The attraction of joining together for other IWDs is only
 performed at the BS that is far away from these sources.
HUD(i, j) = hskj + hdj (15) Therefore the probability of nding an aggregation node
k[Rj which is near to the sources is less. Higher energy is
required for transmitting data from the sources to the BS,
where Rj is the set of source nodes that are included in the because of fewer chances of constructing an optimal
reaction table of node j, hskj is the hop count from node j to aggregation tree.
source node k and hdj is the hop count from node j to the
destination or the BS. Hence, the time spent by the IWD to 4.2 Improvement of the IWD algorithm for
travel from node i to node j is directly proportional to the searching the aggregation nodes
total hop count to all the source nodes and to the BS. If this
total hop count is small, the time to travel is also small In order to increase the probability of reaching an aggregation
which results in a larger amount of soil being removed node for other IWDs, an IWD should update the amount of
from the edge (i, j). soil for the neighbours of all the nodes along the route it
Step 6: The value of IWD_soilLoad in the IWD data packet is creates instead of only updating the amount of soil for the
updated by using (9). The soil of the edge is calculated by neighbours of the aggregation nodes as shown in Fig. 3b.
using the following equation modied from (8) Whenever a node v receives an IWD data packet, it
broadcasts an update soil packet to its neighbourhood. Each
soil(i, j) = (1 rn ) soil(i, j) rn (1 + hdi neighbour node u uses the information in this packet to
update the soil(u,v) in the same way as presented in Step 7
hdj )D soil(i, j) (16) of the algorithm in Section 4.1. This approach is expected
to enhance the chance of bringing the aggregation nodes
closer to the sources after fewer runs so that the data can be
The term (1 + hdi 2 hdj ) is added in order to eliminate the aggregated and thus a higher energy efciency is achieved.
edge which lets the IWD move further away from the BS. For example, an IWD packet containing data originates
If the hop count from node i to the BS is larger than that of from source node S1 and needs to nd a route to the BS b.
node j, node j is closer to the BS. As a result, more amount When it moves from a relay node i to another node j, in

IET Wirel. Sens. Syst., 2012, Vol. 2, Iss. 3, pp. 282292 287
doi: 10.1049/iet-wss.2011.0146 & The Institution of Engineering and Technology 2012
www.ietdl.org

Fig. 3 Process of routing data from source nodes to the destination or BS with and without improvement
a Routing data without applying improvement
b Routing data with applying improvement of updating soil throughout the route

order to update the amount of soil in node js neighbourhood, Table 2 Simulation parameters
it broadcasts an update soil packet. The value of soil(i, j) is
updated as in (8). For the other neighbour node k of j, if its Parameters Values Description
hop count to the BS is less than that of node j, the amount N 300 number of sensor nodes
of soil of the edge (k, j) will not be updated. Otherwise, S 530 number of source nodes
node k generates a new IWD with soil load zero and R 10 12 m communication range
velocity is set to InitVel. The velocity of this IWD is later Eelec 50 nJ/bit transceiver electronics
updated as below 1amp 0.1 nJ/bit/m2 transmitter amplifier
ctrlPkt 8 byte length of control packet
av
velIWD = InitVel + (17) dataPkt 250 byte length of data packet
bv + cv [soil(k, j)]2 Einit 0.5 J initial energy of each node

Thus the amount of soil will be removed from the edge (k, j) is
Table 3 IWD algorithm parameters
as
Dsoil(k, j) = (18) Parameters Values Description
bs + cs (((HUD(k, j))/(velIWD )))
InitSoil 10 000 initial soil of each edge
The soil of the edge (k, j) is updated by the following formula InitVel 200 initial velocity of an IWD
av , bv , cv 1, 0.01, 1 velocity updating parameters
as , bs , cs 1, 0.01, 1 soil updating parameters
soil(k, j) = (1 rn ) soil(k, j) rn (1 + hdk 1s 0.01
hdj )D soil(k, j) (19) 1v 0.0001 positive velocity threshold
rn 0.9 local soil updating parameter
By repeating this process for all of the nodes along the route rIWD 0.9 global soil updating parameter
that the IWD packet from the source node S1 traverses to b 20
reach the BS b, the probability of being chosen as an
aggregation node for all these nodes is increased
proportionally to their hop count to the BS and all these square area 100 100 m2. All the sensor nodes have the
nodes have the potential to become an aggregation node. same communication range, R; the source nodes collect data
IWD packets originating from other source nodes tend periodically and send towards a single destination node, that
to select the nodes of the route from S1 to b as the next hop is the BS, located at coordinates (10 m,10 m) of the
to pass the data when they move in the neighbourhood deployment eld as shown in Fig. 1a.
of this route. Since the number of potential aggregation
nodes is also enlarged, there is a high chance for an IWD to Case 1: Comparative study of total energy consumption
encounter a node, which has been visited by another IWD.
The rst computational experiment compares the total
5 Computational experiments energy consumption for transferring information within the
WSN after the same number of runs for different
In this section, the simulation results of the basic and algorithms. The test results shown in Figs. 4a c are
improved IWD algorithms are presented and compared with obtained with 100 runs for a WSN of N 300 sensor
the performance of ACO implemented in [19]. The nodes. Comparisons are made for the networks with
simulation parameters are given in Table 2. different number of source nodes.
The initial settings of the parameters used in the IWD and Fig. 4a shows the energy consumption of the WSNs for
improved IWD algorithms are shown in Table 3. These values transmitting data packets when using ACO, IWD and
are chosen as the same ones used in [21]. improved IWD algorithms. It is observed that the WSN
During the computational experiments, a WSN with a using IWD consumes less energy than the network with
number of N sensor nodes are randomly deployed in a ACO, and improved IWD is able to further enhance energy

288 IET Wirel. Sens. Syst., 2012, Vol. 2, Iss. 3, pp. 282 292
& The Institution of Engineering and Technology 2012 doi: 10.1049/iet-wss.2011.0146
www.ietdl.org

Fig. 4 Total energy consumption for transferring information within the network
a Total energy consumption for transferring data packets
b Total energy consumption for transferring control packets
c Overall total energy consumption of the network

conservation when compared with these two. This is due to number of source nodes increases, the amount of data
the fact that a smaller number of hops are involved in the transferred within the network is more. Thus, by applying
data transfer with IWD and improved IWD when compared the IWD and improved IWD, more amount of energy for
with ACO. For example, when the number of source nodes transmitting data packets is saved, since the formation data
chosen is 20, the amounts of energy consumed for aggregation tree is enhanced and more data is aggregated.
transmitting data packets by using IWD and improved IWD This energy saving surpasses the cost of optimising the
algorithms are 1.83% and 18.21%, respectively, less than aggregation tree, that is, the energy consumed to transmit
that of the WSN using ACO. control packets. Fig. 4c shows that the total energy
The total energy consumption of transmitting and receiving consumption of the network when using the IWD algorithm
control packets is shown in Fig. 4b. Compared with ACO, the is less than that of ACO and the result achieved by the
amount of energy used for control packets in the WSN with improved algorithm is the least, especially with the larger
IWD algorithm is slightly smaller. The reason is that the number of source nodes. For example, when the number of
data aggregation tree obtained by the IWD converges to a source nodes is 20, the percentages of the total amount of
solution which contains a fewer number of relay nodes and energy saved by using the IWD and the improved IWD
thus, a smaller number of control packets are required. algorithms are 1.99 and 5.38% when compared with ACO,
Fig. 4b also shows that the network with the improved respectively.
algorithm of IWD consumes the most energy for control
packets. This consequence is due to the fact that more Case 2: Comparative study of average energy consumption
control packets are needed to update the soil of the edge in
the neighbourhood of the route founded by the IWDs. The next experiment investigates the average amount of
Sensor nodes in the neighbourhood have to consume more energy consumption for each source node to transfer data to
energy to receive these update soil packets. In addition, the BS. The measurement is carried out for the network
when the number of source nodes is small, that means there using ACO, IWD and the improved algorithm of the IWD
are fewer data routes connected from the sources to the with a network of N 300 and a communication range
destination, there is not much difference among the results R 12 m. The results of ACO, IWD and improved IWD
obtained by all the algorithms. In this case, the ratio are shown in Figs. 5a c, respectively.
between the cost of constructing the tree and the energy After the rst run, the average energy consumption is
consumption saved in data transfer is high. When the almost constant for the different number of source nodes.

IET Wirel. Sens. Syst., 2012, Vol. 2, Iss. 3, pp. 282292 289
doi: 10.1049/iet-wss.2011.0146 & The Institution of Engineering and Technology 2012
www.ietdl.org

Fig. 5 Average energy consumption of the network when using different algorithms
a ACO algorithm
b IWD algorithm
c Improved IWD algorithm

This happens due to the fact that the data aggregation tree is
randomly constructed, thus the average energy spent for each
source node to transfer data is equal to networks with various
number of source nodes. After the 10th, 20th and 30th runs of
the network operation, the aggregation tree is gradually
optimised. With a higher number of source nodes, there is
more amount of data aggregated in the optimal tree. Hence,
the total amount of data transferred within the network is
decreased which results in the reduction of average energy
consumption per source node. It can be seen that with the
number of source nodes of 30, the average energy
consumption per source node with improved IWD is the
least as compared with that with basic IWD and ACO
algorithms.

Case 3: Comparative study of the network lifetime


Fig. 6 Comparison of network lifetime with different algorithms
The network lifetime is studied in this computational
experiment. The network lifetime is dened as the
maximum number of runs of network operation until the and 952, respectively. This is due to the result of more
rst node runs out of energy. Fig. 6 shows the maximum aggregation nodes found, which are nearer to the sources,
number of runs when different algorithms are used for the and the less energy consumed by the BSs neighbouring
same network deployment with N 300 and R 12 m. nodes for receiving only the aggregated data.
The network lifetime is slightly better with IWD and
signicantly enhanced with its improved version when Case 4: Investigation of the aggregation tree construction
compared with. ACO. For example, with the number of
source nodes of 30, the lifetimes of the networks with Figs. 7a d illustrate the data aggregation tree constructed
ACO, IWD and improved IWD algorithms are 831, 880 after 1, 10, 20 and 30 rounds of operation, respectively.

290 IET Wirel. Sens. Syst., 2012, Vol. 2, Iss. 3, pp. 282 292
& The Institution of Engineering and Technology 2012 doi: 10.1049/iet-wss.2011.0146
www.ietdl.org

Fig. 7 Formation of the data aggregation tree after different number of runs
a One run
b Ten runs
c Twenty runs
d Thirty runs

In this simulation, N 300 sensor nodes are used, number of Table 4 Total number of hop count in the optimal data
source nodes, S is 10 and communication range of each sensor aggregation trees
node, R is 12 m. After a number of rounds, the optimal data
aggregation tree is constructed. Source nodes are able to Number of ACO IWD Improved
transmit data towards the BS through the best route; data source nodes algorithm algorithm IWD
are aggregated and fused at the optimum aggregation nodes. algorithm
The simulation is run 30 times with the same network hcb hcave hcb hcave hcb hcave
deployment to investigate the performance of the
algorithms. The best total number of hop count, hcb , and 5 28 31.7 28 30.3 24 25.3
the average total number of hop count in the data 10 45 52.7 44 51.6 42 45.5
aggregation tree, hcave , found by using the proposed 15 55 62 52 61.7 48 55.1
algorithms and ACO in all the simulation runs are shown in 20 65 70 65 69.7 57 60.4
Table 4. With the different number of source nodes, the 25 73 75.3 73 74.3 62 64.3
performance of the basic IWD algorithm is slightly better 30 84 85.7 83 84.3 72 73.8
than the ACO algorithm, the data aggregation trees with
fewer number of hops are constructed with the IWD.
Moreover, the results obtained by the improved IWD investigated. The WSNs of 300 nodes and the different
outperform both the IWD and the ACO algorithms. When number of source nodes are taken into account. Simulations
the number of source nodes is 30, the average total number are carried out for 500 runs for each number of source
of hop count with improved IWD is 12.45 and 13.88% less nodes. The average time taken for each run of the
than the IWD and ACO, respectively. The best value with simulation by each algorithm is shown in Table 5.
improved IWD is 13.25% less than the IWD and it is It is evident in the results that the computational time is
14.29% smaller when compared with ACO. almost same for the IWD and the ACO algorithms, and it
Case 5: Complexity analysis takes a bit longer time for improved IWD during the
simulation. With the number of source nodes of 30, the
In order to analyse the complexity of the algorithms, the computation time with improved IWD and IWD are 2.85
computational time taken by each algorithm is also and 0.29%. This is due to the fact that there are more IWDs

IET Wirel. Sens. Syst., 2012, Vol. 2, Iss. 3, pp. 282292 291
doi: 10.1049/iet-wss.2011.0146 & The Institution of Engineering and Technology 2012
www.ietdl.org
Table 5 Average computational time, in (seconds), per iteration 2 Akkaya, K., Younis, M.: A survey on routing protocols for wireless
taken by different algorithms sensor networks, Ad Hoc Netw., 2005, 3, pp. 325 349
3 Perkins, C., Belding-Royer, E., Das, S.: Ad hoc on-demand distance
Algorithms Number of source nodes vector (AODV) routing. IETF. RFC 3561, July 2003
4 Johnson, D.B., Maltz, D.A., Hu, Y.C.: The dynamic source routing
protocol for mobile ad hoc networks (DSR). IETF. RFC 4728,
5 10 15 20 25 30
February 2007
ACO algorithm 0.0153 0.0205 0.0249 0.0327 0.0330 0.0350 5 Park, V.D., Scott Corson, M.: A performance comparison of the
temporally-ordered routing algorithm and ideal link-state routing.
IWD algorithm 0.0153 0.0209 0.0252 0.0328 0.0332 0.0351
IETF Internet Draft, July 2001
improved-IWD 0.0157 0.0219 0.0265 0.0340 0.0347 0.0360 6 Rajagopalan, R., Varshney, P.K.: Data-aggregation techniques in
algorithm sensor networks: a survey, IEEE Commun. Surv. Tutor., 2006, 8, (4),
pp. 4863
7 Fan, K.-W., Liu, S., Sinha, P.: Structure-free data aggregation in
required to update the soil of the edges connected to the sensor networks, IEEE Trans. Mob. Comput., 2006, 6, (8),
pp. 929942
neighbouring nodes with the main routes relaying data. 8 Heinzelman, W.R., Chandrakasan, A., Balakrishnan, H.: Energy-
However, the difference is insignicant; the improved IWD efcient communication protocol for wireless microsensor networks.
does not impose much extra computational burden and the Proc. 33rd Annual Hawaii Int. Conf. on System Sciences, January
computational time is slightly higher and comparable with 2000, 2, p. 10
that of the IWD and the ACO algorithms. 9 Heinzelman, W.B., Chandrakasan, A.P., Balakrishnan, H.: An
application-specic protocol architecture for wireless microsensor
networks, IEEE Trans. Wirel. Commun., 2002, 1, pp. 660 670
6 Conclusion 10 Younis, O., Fahmy, S.: HEED: a hybrid, energy-efcient, distributed
clustering approach for ad hoc sensor networks, IEEE Trans. Mob.
In this paper, the IWD algorithm is investigated to solve the Comput., 2004, 3, pp. 366 379
11 Hoang, D.C., Kumar, R., Panda, S.K.: Fuzzy c means clustering
problem of optimal data aggregation trees for WSNs. The protocol for wireless sensor networks. Proc. of Int. Symp. on
computational experiment results show that improved IWD Industrial Electronics, July 2010, pp. 3477 3482
and IWD algorithms can achieve good results comparable 12 Al-Karaki, J., Ul-Mustafa, R., Kamal, A.: Data aggregation in
with the ACO algorithm in terms of energy efciency. By wireless sensor networks exact and approximate algorithms.
using the IWD algorithm, the number of edges of the Workshop on High Performance Switching and Routing (HPSR),
2004, pp. 241 245
aggregation tree is reduced, and thus the overall network 13 Krishnamachari, L., Estrin, D., Wicker, S.: The impact of data
consumed less energy. Further improvement of the original aggregation in wireless sensor networks. Proc. 22nd Int. Conf. on
IWD algorithm is carried out by updating the soil of the Distributed Computing Systems Workshops, 2002, pp. 575 578
sensor nodes neighbourhood when the routes are 14 Intanagonwiwat, C., Govindan, R., Estrin, D., Heidemann, J., Silva, F.:
Directed diffusion for wireless sensor networking, IEEE/ACM Trans.
established in order to increase the chance of selecting Netw., 2003, 11, (1), pp. 2 16
optimal aggregation nodes. Although the cost of 15 Intanagonwiwat, C., Estriu, D., Govindan, R., Heidemann, J.: Impact of
constructing the optimal trees, that is, energy consumption network density on Data Aggregation in wireless sensor networks.
for transferring control packets, is increased, the total Proc. 22nd Int. Conf. on Distributed Computing Systems Workshops,
energy consumption of the network with improved IWD 2002, pp. 457 458
16 Misra, R., Mandal, C.: Ant-aggregation: ant colony algorithm for
algorithm is still less than that with the ACO and the IWD optimal data aggregation in wireless sensor networks. Int. Conf. on
algorithms. In addition, in all investigated scenarios, better Wireless and Optical Communications Networks (IFIP), 2006, p. 5
aggregation trees of the WSNs with smaller number of hop 17 Dorigo, M., Gambardella, L.M.: Ant colony system: a cooperative
count are obtained with the improved IWD algorithm, learning approach to the traveling salesman problem, IEEE Trans.
Evol. Comput., 1997, 1, (1), pp. 53 66
meanwhile insignicant computational time is added. 18 Dorigo, M., Birattari, M., Stutzle, T.: Ant colony optimization
The achievement of energy conservation as shown results in articial ants as a computational intelligence technique, IEEE
longer lifetime of the networks with IWD and further Comput. Intell. Mag., 2006, 1, pp. 2839
enhancement of the lifetime with improved IWD algorithm. 19 Liao, W.H., Kao, Y., Fan, C.M.: Data aggregation in wireless sensor
networks using ant colony algorithm, J. Netw. Comput. Appl., 2008,
31, (4), pp. 387401
7 Acknowledgment 20 Hosseini, S.H.: Problem solving by intelligent water drops, IEEE
Congr. Evol. Comput. (CEC), Singapore, 2007, pp. 3226 3231
This research is supported in part by a grant from SERC 21 Hosseini, S.H.: The intelligent water drops algorithm: a nature-inspired
A-STAR under the IEDS project. swarm-based optimization algorithm, Int. J. Bio-Inspired Comput.,
2009, 1, (1/2), pp. 71 79
22 Duan, H., Liu, S., Lei, X.: Air robot path planning based on intelligent
8 References water drops optimization, IEEE IJCNN, 2008, pp. 13971401
23 Hosseini S.H.: Optimization with the nature-inspired intelligent water
1 Akyildiz, I.F., Su, W., Sankarasubramaniam, Y., Cayirci, E.: Wireless drops algorithm, Wellington Pinheiro dos Santos: Evolutionary
sensor networks: a survey, Comput. Netw., 2002, 38, pp. 393422 Computation, Vienna, Intech, 2009

292 IET Wirel. Sens. Syst., 2012, Vol. 2, Iss. 3, pp. 282 292
& The Institution of Engineering and Technology 2012 doi: 10.1049/iet-wss.2011.0146

You might also like