Professional Documents
Culture Documents
An Energy Efficient Routing Protocol For Wireless Sensor Networks Using A-Star Algorithm
An Energy Efficient Routing Protocol For Wireless Sensor Networks Using A-Star Algorithm
An Energy Efficient Routing Protocol For Wireless Sensor Networks Using A-Star Algorithm
Ali Ghaffari
ABSTRACT
Sensors are regarded as significant components of electronic devices. In most applications of wireless sensor
networks (WSNs), important and critical information must be delivered to the sink in a multi-hop and energy-efficient
manner. Inasmuch as the energy of sensor nodes is limited, prolonging network lifetime in WSNs is considered to be
a critical issue. In order to extend the network lifetime, researchers should consider energy consumption in routing
protocols of WSNs. In this paper, a new energy-efficient routing protocol (EERP) has been proposed for WSNs using
A-star algorithm. The proposed routing scheme improves the network lifetime by forwarding data packets via the
optimal shortest path. The optimal path can be discovered with regard to the maximum residual energy of the next
hop sensor node, high link quality, buffer occupancy and minimum hop counts. Simulation results indicate that the
proposed scheme improves network lifetime in comparison with A-star and fuzzy logic(A&F) protocol.
Keywords: Wireless sensor networks (WSNs), network lifetime, energy efficiency, A-star.
1. Introduction
optimal path and the energy hole problem together Moreover, in line with the parameter of free buffer,
impact on the life time of WSNs. As a result of those nodes which have more free buffer should
these two problems, the network will be partitioned be selected so as to avoid traffic load and hence
and the WSN will not be able to accomplish its excessive energy consumption. We carried out
intended critical function. The major problem in extensive simulations in MATLAB to evaluate the
such routing protocols is that they minimize total performance of the proposed EERP algorithm.
energy consumption at the expense of non-uniform Simulation results indicated that EERP algorithm
energy drainage in the network. has better performance than A&F [9] in term of
network lifetime.
As regard the above-mentioned important
challenges in WSNs, improving network lifetime is The rest of the paper is organized as follows:
considered to be a crucial challenge for such section 2 presents the related work on improving
networks and should definitely be taken into account network lifetime. Section 3 introduces and
in the design of routing protocol. discusses the proposed scheme. Section 4
describes the simulation of EERP and the
In line with the mentioned purpose for enhancing performance evaluation. Finally, section 5
network lifetime, the following parameters should concludes the paper.
be taken into consideration: i) energy consumption
balancing, ii) load balancing, iii) the selection of the 2. Related Works
shortest path, and iv) reducing packet
retransmission with concern to packet reception Network partitioning which is caused by the energy
rate. In this paper, we have proposed a new hole problem in WSNs and unbalanced energy
energy-efficient routing protocol (EERP) to consumption are regarded as critical challenges in
maximize network lifetime of WSNs using an WSNs and hence will affect the network lifetime of
optimal aggregated cost function and A* algorithm. WSNs in routing protocols. Thus, prolonging
network lifetime in WSNs has received significant
consideration. In recent years, energy-efficient
routing algorithms have been proposed to enhance
the network lifetime of WSNs. In this section, we
will review the literature on improving and
prolonging WSNs' lifetime.
scheduling for each sensor node. In [12], the 3..The proposed energy-efficient routing
authors introduced a novel sleep-scheduling algorithm
method called VBS (Virtual Backbone Scheduling).
VBS uses overlapped backbones which work In this study, we used A* algorithm to find the
alternatively to prolong the network lifetime [12]. In optimal path from the source node to the
this work, only backbones forward data and the destination node (base station) with regard to
remaining nodes turn off their radios in order to some parameters of sensor nodes such as
conserve and save energy. The backbone-node residual energy, packet reception rate (PRR) and
selection is in a rotation scheme that balances the node buffer state. In order to find the optimal path,
energy consumption of all nodes. the sink node should be aware of the criteria of
each node. Thus, at the initial phase, each node
Alshavi et al. in [12] proposed a new routing must send its aforementioned parameters to the
protocol to increase WSNs' lifetime and balance sink node. In the remaining round, if the sensor
energy consumption using a combination of fuzzy node has data to send toward the sink node, it will
approach and A-star algorithm. In their proposed append its parameters to the data packet. Based
method, each node has to send their criteria to the on the gathered parameters, the sink node must
sink in each round to determine routing schedule determine and broadcast the routing schedule to
which will result in more packet congestion; hence, each sensor node [9]. Then, A* algorithm will
the inevitable consequence is higher consumption search for the optimal path from the source node
of energy and packet dropping. In [5], a new routing to the destination node. If the residual energy of
algorithm was proposed which used A* algorithm to sensor node is less than the energy threshold
find the optimal path from the source node to the value (Eth), that node cannot participate in the
sink node based on node’s minimum energy level. If routing process and hence will not send its
the energy level of each node is less than the parameters to the base station. The network load
threshold level that node will not participate in the will be balanced with regard to the threshold value
routing operation. In [13], the authors proposed an of the energy, and as a result, the network lifetime
efficient routing protocol, called relative identification will be enhanced.
and direction-based sensor routing (RIDSR), which
sorted out the routing loop problem and selected a A* algorithm uses the method of best-first search
shorter distance for the routing process. They also and finds an optimal path from the initial node to
proposed a new energy-efficient algorithm, referred the destination node[14]. It includes two lists, an
to as enhanced relative identification and direction- OPEN list and a CLOSED list. It creates a tree
based sensor routing (ERIDSR) [13] which structure of sensor nodes. The OPEN list is a
combined a triangle rule to determine a sensor node priority queue and keeps track of those nodes
in order to save more energy. that need to be examined while the CLOSED list
keeps track of nodes that have already been
Hence, having reviewed the literature related to examined [14]. A* algorithm uses a distance-plus-
increasing the network lifetime of WSNs, we can cost heuristic function of node , to determine
conclude that taking important parameters such as the order in which the search visits nodes in the
node’s residual energy, path’s hop count and tree. This heuristic function is a sum of two
balancing data transmission among multiple paths functions as follows [14].
into account can remarkably improve the network
lifetime. In this paper, we selected optimal and (1)
shortest path between source and sink based on
parameters such as node’s residual energy, free Where, is the cost from the source node to
buffer and link quality between sensor nodes. We the current node n and is an admissible
use A* algorithm [14] to select optimal path with heuristic estimate of the distance from n to the
attention to above mentioned parameters. destination node.
In the proposed scheme, the value of function parameters, e.g., position, battery state, free
is equal to the node cost of node n. Our intention is buffer, link quality, etc. This can be ensured via the
to forward data packets to the next neighbour node execution of a HELLO protocol such as in [15, 16].
which has higher residual energy, higher free We assume that each node knows the position of
buffer, and higher packet reception rate. To achieve sink node. The sink node broadcast its position to
this, we made use of aggregated weight of the all sensor nodes in the network.
above-mentioned routing parameters. Here, we
define the aggregated weight of a next neighbour For updating packet reception rate, we use EWMA
node as the sum of normalized weights of its [12] as follows
routing metrics as follows:
(3)
(2)
Where, is waiting parameter and the value for
Where, and are residual and initial function can be calculated as follows:
energy of node n respectively. In addition,
and are the number of transmitted and (4)
received packets respectively. and
referred to the number of free and initial buffer of
node respectively. In "Eq. 2", , and are Where, is the minimum hop count from
weight parameters and . The results node to the destination node. In order to compute
of our extended simulation, performed in MATLAB the minimum hop count from node to the sink
7.10, indicated that setting including , node, we must calculate the distance between
and produces the best possible results. node and sink node via euclidean distance
formula as follows:
The parameter of node cost is related to the linear
combination of three normalized metrics. The first (5)
parameter is includes normalized residual energy
which illustrates the residual energy of the next Where, is equal to the Euclidian distance
neighbouring node . This parameter is aimed to between the node and sink node. Moreover, the
ascertain that the sensor nodes' energy hop count from node to the sink node can be
consumptions are balanced. Energy load must be calculated as follows:
evenly distributed among all the sensor nodes in
order to prolong the network lifetime. The second (6)
parameter is called normalized number of received
packets in node. This metric corresponds with the
packet reception rate of the next node. In other Where, is the average distance between
words, maximizing this metric is equal to maximizing the node and its one hop neighbouring nodes ( ).
the packet transmission efficiency. As a result of On the basis of "Eqs. 2 and 6", we can calculate
taking this metric into account, the majority of the the value of evaluation cost function, Thus, for
probability and hence this will prevent the choosing the optimal path, we will select that node
retransmission of data packets which will which has the maximum evaluation function. The
significantly reduced the amount of energy value of can be used to obtain the optimal path.
consumption in the node. The third parameter
stands for the magnitude of the available free buffer 4. Performance Evaluation
at the next neighbouring candidate, node this
parameter plays the remarkable role in the proper In this papaer, the simulation of EERP was
distribution of traffic load. The packet will be sent to conducted in MATLAB 7.10 and the results were
the next node which has the maximum free buffer. compaerd with those of A&F[9] in terms of average
remaining energy and number of alive nodes.
Each source or intermediated node needs to know There exists twenty actors in the network for
its neighboring nodes and their current generating the data which are initially deployed in
the network as a random state. Radio signal range routing protocol evaluation in WSN [6]. According
of actors was assumed as 30m and the current to this model, the energy consumed for tranmitting
position of the actors is changed by RWP [17] and receiving k-bit data can be calculated as
every 100 rounds. follows [6]:
Parameter Value
Initial energy/J 5
Eelec [nj/bit] 50
2
amp[pj/bit/m ] 100
The impact of the number of transmission packets reduction of the average remaining energy. This is
on the average remaining energy in two simulated because EERP considers nodes' packet reception
protocols is illustrated in Fig. 2. It needs to be noted rate, remaining energy and nodes buffer state with
that the position of the sink was in two different minimum hop count path. The figure indicates that
spots, that is, at the top right corner, (200m, 200m), the proposed scheme is superior to A&F[9] method
and at the center of the simulated area (100m, in term of saving nodes energy.
100m).The purpose of changing the location of the
sink node was to examine and compare the Furthermore, the Fig. 3 shows that the number of
performance of the two methods. The simulation alive nodes in EERP is more than the other method
results in Fig. 2 indicated that the average because the low consumption of energy results in
remaining energy of the nodes in the EERP is more an increase in the number of alive nodes. The
than that of A&F[9] method under the conditions of difference in the simulation results of the two
the two scenarios. The generation of much more compared methods is very tangible and noticeable
redundant packets in A&F[9] method leads to the when number of transmission packets is low.
4.5 5
4
4
3.5
EERP EERP
3 3
2.5
2 2
1.5
1 1
0.5
0
0
(a) (b)
Figure 2. Average remaining energy; (a) Sink in [200, 200]. (b) Sink in [100, 100].
60
Number of alive Nodes
A&F 60
Number of alive Nodes
50 A&F
EERP 50
40 EERP
40
30 30
20 20
10 10
0 0
(a) (b)
Figure 3. Number of alive nodes; (a) Sink in [200, 200]. (b) Sink in [100, 100].
Furthermore, as the simulation results in Fig. 4 (b) packets. If the number of transmission packets in
indicates, the average remaining energy of nodes the network is low, consequently, the performance
in the EERP is higher than A&F[9]; the reason for of the simulated packets will be very sensible.
this is that, in the proposed approach, the number
of transmitted packets by the nodes is lower than It is noteworthy that when the sink is located at the
that of the A&F[9] method. Furthermore the center of the area, the energy consumption will be
explanation for the superiority of the proposed reduced and as a result the average remaining
method to the A&F[9] method is that load energy increases. Unlike the position of the sink at
balancing and routing schedule managing in this the top corner of the area, when the sink is located
method is more efficient than A&F[9]. at the center, the distance between the nodes and
the sink will be notably shorter; consequently, the
Fig. 5 shows that number of alive nodes in EERP is consumption of the energy will be reduced and the
higher than that of A&F[9] due to the low network lifetime will be expanded; moreover, the
consumption of energy of nodes for transmitting the number of alive nodes will increase.
1.8 2.5
Average Remaining Energy (J)
(a) (b)
Figure 4. Average remaining energy as a function of initial energy; (a) Sink in [200, 200]. (b) Sink in [100, 100].
45
35 40 A&F
Number of alive Nodes
Number of alive Nodes
A&F
30 35 EERP
EERP
25 30
20 25
20
15
15
10 10
5 5
0 0
0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Initial Energy (J) Initial Energy (J)
(a) (b)
Figure 5. Number of alive nodes as a function of initial energy; (a) Sink in [200, 200]. (b) Sink in [100, 100].
References [12] Y. Zhao, J. Wu, F. Li, and S. Lu, "On maximizing the
lifetime of wireless sensor networks using virtual
[1] I. F. Akyildiz, W. Su, Y. Sankarasubramaniam, and E. backbone scheduling," Parallel and Distributed Systems,
Cayirci, "Wireless sensor networks: a survey," Computer IEEE Transactions on, vol. 23, pp. 1528-1535, 2012.
networks, vol. 38, pp. 393-422, 2002.
[13] C.-E. Weng and T.-W. Lai, "An energy-efficient
[2] A. Ghaffari and A. Rahmani, "Fault tolerant model for routing algorithm based on relative identification and
data dissemination in wireless sensor networks," in direction for wireless sensor networks," Wireless
Information Technology, 2008. ITSim 2008. International personal communications, vol. 69, pp. 253-268, 2013.
Symposium on, 2008, pp. 1-8.
[14] J. Yao, C. Lin, X. Xie, A. Wang, and C.-C. Hung,
[3] A. Ghaffari, A. Rahmani, and A. Khademzadeh, "Path planning for virtual human motion using improved
"Energy-efficient and QoS-aware geographic routing A* star algorithm," in Information Technology: New
protocol for wireless sensor networks," IEICE Electronics Generations (ITNG), 2010 Seventh International
Express, vol. 8, pp. 582-588, 2011. Conference on, 2010, pp. 1154-1158.
[4] S. M. Adam and R. Hassan, "Delay aware Reactive [15]-D. Djenouri and I. Balasingham, "Traffic-
Routing Protocols for QoS in MANETs: a Review," differentiation-based modular QoS localized routing for
Journal of Applied Research and Technology, vol. 11, wireless sensor networks," Mobile Computing, IEEE
pp. 844-850, 2013. Transactions on, vol. 10, pp. 797-809, 2011.
[5] K. Rana and M. Zaveri, "A-star algorithm for energy [16] A. Mahapatra, K. Anand, and D. P. Agrawal, "QoS
efficient routing in wireless sensor network," in Trends in and energy aware routing for real-time traffic in wireless
Network and Communications, ed: Springer, 2011, pp. sensor networks," Computer Communications, vol. 29,
232-241. pp. 437-445, 2006.