Energy-Efficient Routing Protocol For WSN Based On Relay Node
Energy-Efficient Routing Protocol For WSN Based On Relay Node
DOI: 10.54021/seesv5n2-140
Mohammed Kaddi
Doctor in Electrical Engineering
Institution: LDDI Laboratory, Faculty of MSMCS, University of Adrar
Address: Adrar, Algeria
E-mail: [email protected]
Ramadhan Masmoudi
Doctor in Electrical Engineering
Institution: LDDI Laboratory, Faculty of Science and Technology, University of Adrar
Address: Adrar, Algeria
E-mail: [email protected]
Mohammed Omari
Doctor in Computer Science
Institution: Computer Science and Engineering Department, American University
of Ras Al Khaimah
Address: Ras Al Khaimah, United Arab Emirates
Email: [email protected]
ABSTRACT
Due to miniaturization constraints and manufacturing costs, wireless sensor
networks (WSN) sensor nodes are generally outfitted with restricted resources
concerning computing capability, energy, data storage capacity, and data delivery
rate. These constraints encourage a significant portion of the research issues in
WSNs, particularly the energy constraint, which is a fundamental issue. This paper
suggests an innovative routing protocol that optimizes energy use called RNS_A-
star, which combines a routing algorithm using a relay node and an improved
heuristic for the A-star algorithm. The RNS_A-star protocol first applies a data
routing algorithm using a relay node, which allows either using a relay node or
simply sending the intra-cluster data to the CH. Then, the A-star algorithm is used
to construct a multi-hop routing route between the CHs and the base station (BS)
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 1
in order to find the best path for reducing energy consumption during data
transmission. Simulation results show that the suggested RNS_A-star protocol
performs better than ECO-BAT, LEACH-IACA, and LEACH protocols regarding
energy conservation and extending network lifetime.
RESUMO
Devido às restrições de miniaturização e aos custos de fabricação, os nós de
sensores das redes de sensores sem fio (WSN) geralmente são equipados com
recursos restritos em termos de capacidade de computação, energia, capacidade
de armazenamento de dados e taxa de entrega de dados. Essas restrições
incentivam uma parte significativa das questões de pesquisa em WSNs,
especialmente a restrição de energia, que é uma questão fundamental. Este artigo
sugere um protocolo de roteamento inovador que otimiza o uso de energia
chamado RNS_A-star, que combina um algoritmo de roteamento usando um nó
de retransmissão e uma heurística aprimorada para o algoritmo A-star. O
protocolo RNS_A-star aplica primeiro um algoritmo de roteamento de dados
usando um nó de retransmissão, o que permite usar um nó de retransmissão ou
simplesmente enviar os dados intra-cluster para o CH. Em seguida, o algoritmo A-
star é usado para construir uma rota de roteamento de vários saltos entre os CHs
e a estação base (BS) a fim de encontrar o melhor caminho para reduzir o
consumo de energia durante a transmissão de dados. Os resultados da simulação
mostram que o protocolo RNS_A-star sugerido tem um desempenho melhor do
que os protocolos ECO-BAT, LEACH-IACA e LEACH no que diz respeito à
conservação de energia e ao aumento da vida útil da rede.
RESUMEN
Debido a las limitaciones de la miniaturización y a los costes de fabricación, los
nodos sensores de las redes inalámbricas de sensores (WSN) suelen estar
equipados con recursos restringidos en cuanto a capacidad de cálculo, energía,
capacidad de almacenamiento de datos y velocidad de entrega de datos. Estas
limitaciones fomentan una parte importante de los problemas de investigación en
las WSN, en particular la limitación energética, que es una cuestión fundamental.
Este artículo propone un innovador protocolo de enrutamiento que optimiza el uso
de la energía denominado RNS_A-star, que combina un algoritmo de enrutamiento
que utiliza un nodo repetidor y una heurística mejorada para el algoritmo A-star. El
protocolo RNS_A-star aplica en primer lugar un algoritmo de enrutamiento de datos
mediante un nodo de retransmisión, que permite utilizar un nodo de retransmisión
o simplemente enviar los datos intracluster al CH. A continuación, se utiliza el
algoritmo A-star para construir una ruta de encaminamiento multisalto entre los CH
y la estación base (BS) con el fin de encontrar el mejor camino para reducir el
consumo de energía durante la transmisión de datos. Los resultados de la
simulación muestran que el protocolo RNS_A-star propuesto funciona mejor que
los protocolos ECO-BAT, LEACH-IACA y LEACH en cuanto a conservación de
energía y extensión de la vida útil de la red.
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 2
1 INTRODUCTION
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 3
routing methods. The first approach utilizes a relay node, while the second
employs an A-star algorithm. The objective is to reduce energy usage during data
transmission inside and between clusters.
The paper's primary contributions, as stated in the previously mentioned
ideas, are:
• in our data routing algorithm, we place a strong emphasis on the role of the
relay node. This node plays a crucial part in data transmission within the
clusters, significantly enhancing the efficiency of the process. This
emphasis on the relay node's function reassures the effectiveness of our
proposed protocol;
• to find the most efficient path between the CHs and reduce energy
dissipation when transmitting data directly from each CH to the BS, we
employ a multi-hop routing strategy. This strategy is built using the A-star
algorithm, a powerful tool for minimizing energy consumption during
transmission operations. This emphasis on the energy-saving benefits of
the A-star algorithm instills a sense of optimism in the audience about the
potential impact of our proposed protocol.
Simulation findings show that the proposed RNS_A-star protocol performs
better regarding network energy conservation and lifetime extension than ECO-
BAT, LEACH-IACA, and LEACH protocols.
The subsequent sections of this work are structured as follows. Section 2
provides a contextual overview of our research. Section 3 contains a presentation
of several relevant works. Section 4 provides a detailed explanation of the protocol
we are proposing. Section 5 introduces the utilized system model. Section 6
provides an assessment of the proposed contribution's performance through the
simulation results analysis. Section 7 serves as the concluding part of our article,
highlighting many opinions.
2 BACKGROUND
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 4
The A star algorithm, developed by Hart, Nilsson, and Raphael (Hart;
Nilsson; Raphael, 1968), is a highly efficient algorithm for determining the path with
the minimum cost in a graph with weighted edges 𝐺 = (𝑉, 𝐸) starting from a
specific vertex 𝑣𝑠 toward a specific vertex 𝑣𝑑 . 𝑉 represents the collection of vertices
(i.e. 𝑉 = {𝑣1 , . . . , 𝑣𝑁 } for 𝑁 vertices) and 𝐸 represents the collection of edges (i.e.
𝐸 ⊆ 𝑉 × 𝑉). If (𝑣𝑖 , 𝑣𝑗 ) ∈ 𝐸, then 𝑖 ≠ 𝑗. The technique employs a best-first search
approach. It explores the most probable candidate, represented by the current
vertex 𝑣𝑐 , while discarding proven inferior solutions. The candidate with the highest
likelihood is the vertex 𝑣𝑐 that has the minimum sum of the real costs starting from
the initial vertex 𝑣𝑠 , 𝑔(𝑣𝑠 , 𝑣𝑐 ), and the charges h(𝑣𝑐 , 𝑣𝑑 ) estimated for reaching the
destination vertex, i.e., with the minimum value for (equation 1):
3 LITERATURE OVERVIEW
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 5
Raghavendra P. G. E. et al. (G E; M N, 2021) proposed a relay-based
cooperative routing protocol (RBCRP) to increase the lifespan network and reduce
sensor energy dissipation. This protocol estimated a routing path based on energy
consumption and Channel Quality Indicators (CQI). The relay nodes determine the
channel quality. The suggested work was evaluated against the existing routing
protocols Selection Election Protocol (SEP) and LEACH. The simulation results of
the suggested study, RBCRP, outperformed the other two existing procedures in
terms of performance.
Pabani J. K. et al. (Pabani et al., 2022) introduced a routing strategy that
adjusts to modifications in the network architecture, preventing the need for
repeated transmissions that could negatively impact its overall efficiency. The
protocol was designed to consume minimal energy and a fuzzy hierarchical
analysis method was applied to it within a multiple-criterion assessment
framework. This allows for intelligent routing decisions to be made based on
specific objectives, criteria, and available alternatives. In order to determine the
next node on the route, various comparison matrices are employed, including the
distances to the BS, the hops number, and the neighbors’ number. The simulation
findings indicate that the suggested setup exhibits similar behavior to other
established routing strategies for underwater sensor networks that utilize fuzzy
schemes, such as the SPRINT protocol (Hyder et al., 2019).
Choosing relay nodes is an approach for making decisions considering
multiple criteria problems. Regarding this, Bilandi N. et al. (Bilandi; Verma; Dhir,
2021) introduced a hybrid approach that combines the order preference by
similarity to the Ideal solution strategy with the Analytic Hierarchy Process (AHP)
to solve the relay node selection issue. When performing the trials in a scenario
involving a wireless body area network with 10 distinct nodes. The suggested
method demonstrated a substantial enhancement in performance by enhancing
network sustainability through improved energy efficiency in instantaneous health
surveillance. The proposed strategy resulted in an 8% decrease in total energy
usage compared to AHP.
In order to increase the effectiveness of mobile robots, Yin et al. (Yin et al.,
2024) creatively enhanced the conventional A-star algorithm. The heuristic
function of the standard A-star technique was improved by integrating the slope
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 6
and scaling factor of the line connecting the node to the starting point and the
endpoint. This was done to increase the evaluation function. In addition, they
implemented the approach of bidirectional search to calculate the midpoint's
coordinates based on the starting and end points' coordinates. Simultaneously,
this method allows for traversing the pathways connecting the intermediate point
to the target and start points. Subsequently, the authors enhanced the path by
evaluating the junction of the linkages connecting nodes with impediments, thereby
eliminating unnecessary nodes. After removing unnecessary nodes, the cubic
uniform B-spline curve was implemented to achieve path smoothing. The
experiment's results, obtained by testing several requirements and circumstances,
showed that the improved A-star algorithm had greater search efficiency and
visited fewer nodes compared to both the bidirectional A-star algorithm and the
conventional A-star method. In summary, the simulation studies confirmed the
practicality of the enhanced A-star algorithm, which is more suitable for the
requirements of actual medical testing facilities for mobile robots.
Fransen K. et al. (Fransen; Van Eekelen, 2023) introduced an enhanced
heuristic for the A star algorithm, which could identify the path with the geometric
network's least expensive, including turning costs. Their heuristic had been
demonstrated to be both monotone and acceptable. Furthermore, their algorithm
yielded a more accurate approximation of the actual expenses in contrast to
previous heuristics documented in the literature, resulting in quicker identification
of the lowest-cost option with fewer repetitions. A reduction of up to 68% in the
mean number of iterations, considering the weights assigned to each iteration
required to locate a single vertex in the lowest-cost path, was attained, contingent
upon the chosen input parameters.
In order to enhance an energy-efficient routing protocol for WSN, S.
Jayapraba et al. (Jayapraba, 2020) recommended utilizing the A-star algorithm.
They introduced a novel architecture to enhance the performance of WSN. The
proposed routing system improved network performance by efficiently transferring
data packets over the shortest route. The high correlation efficiency between buffer
capacity and the minimal number of hops determined the optimal path for the
remaining energy of the following sensor node. Unlike the A-star and fuzzy logic
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 7
protocol, the outcomes of the simulation showed that the suggested system
enhances the presence of the network.
4 PROPOSED PROTOCOL
Our contribution seeks to reduce the size of the energy gap issue, increase
energy efficiency, and lengthen the life of WSN. Its foundation is an algorithm
that is applied at the sink level and is centrally managed. Three phases make up
our approach: the clustering phase, the data routing phase, and the data
transmission phase.
𝑝
1 𝑖𝑓 𝑛 ∈ 𝐺
𝑇(𝑛) = {1−𝑝(𝑟 𝑚𝑜𝑑 )
𝑝 (3)
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
where:
𝒑 is the CH probability.
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 8
4.2 DATA ROUTING PHASE
Within a cluster, every normal node (NORN) can transmit its detected data
directly to its CH or by using a relay node (RN) belonging to the same cluster. A
sensor node can only be used as a relay if two conditions are verified:
• its remaining energy is greater than a given threshold.
• the total energy consumed on the NORN-RN-CH path is lower than that
consumed on the direct NORN-CH path.
Algorithm 1 below describes how the intermediate node is chosen for intra-
cluster communication.
Algorithm 1: Pseudocode data routing algorithm using a relay node for communication within a
cluster
each NORN node broadcasts an RTS data to inform its neighbors within the same cluster;
For each node i in the same cluster receiving the RTS data do
if (𝐸𝑖 > 𝐸𝑠threshold && 𝐸𝑁𝑂𝑅−𝐶𝐻 > 𝐸𝑁𝑂𝑅−𝑁𝑅−𝐶𝐻 ) then
Reply with a CTS packet;
else
cancel the connection and discard the RTS packet;
End if;
End for;
if (no CTS packet received) then
Direct transmission to the CH;
else
Calculate the distance between this NORN and each node sent a CTS packet;
Select the closest node as the RN node;
Data transmission to the RN;
end if;
end.
Source: Authors.
After routing the data from each node to its own CH, the BS runs our second
suggested algorithm to ascertain the most efficient route between the various CHs.
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 9
To minimize energy consumption when transmitting data directly from CHs to the
BS, we propose an energy-efficient technique based on the A star algorithm (Hart;
Nilsson; Raphael, 1968) to construct a chain connecting the different CHs. This
chain allows the create multi-hop data routing between CHs. We have based on
two parameters that directly influence energy consumption: the distance between
the nodes and the remaining energy of each sensor node.
Firstly, based on the Euclidean distance, the node farthest from the BS is
selected as the starting node. The node identifies and allows communication
between its neighbors. Any node inside the communication radius can be
considered the node's neighbor.
Our second suggested fitness function is another factor of our contribution's
efficacy, which includes the parameter g(n). This parameter, which is the cost for
node n, is determined by the remaining energy and traffic load. The following
equation (4) shows how to calculate the parameter g(n).
𝐸 (𝑛)
ℎ(𝑛) = 𝛽(min(𝑑(𝑛, 𝑖))) + 𝛾 (𝐸 𝑟 ) (4)
𝑖𝑛𝑖 (𝑛)
where:
min(𝑑(𝑛, 𝑖)) is the minimum distance between node n (the current node) and the other
nodes,
𝐸𝑟 (𝑛) represents the residual energy of node n,
𝐸𝑖𝑛𝑖 (𝑛) refers to the initial energy, 𝛽 and 𝛾 are the constant values used to evaluate the two
sub parameters of ℎ(𝑛).
where:
𝑑𝑖𝑠 (𝑖, 𝐵𝑆) represents the distance between the evaluated candidate node and BS.
𝑚𝑜𝑦 (𝑑(𝑛, 𝑖)) is the average distance between node n and the other nodes.
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 10
The candidate node with the highest power, the lowest traffic load, and the
shortest path (fewest hops) is chosen as the optimal node for data transmission to
the BS. These characteristics are crucial for balancing energy consumption and
distributing network load evenly among all nodes to extend the network's lifetime.
The function F(n) can be evaluated based on the parameters h(n) and g(n),
which were previously specified in equations (4) and (5). The node n with the
lowest value is the one we select. To find the best route, the objective function 𝑓(𝑛)
in equation (6) is used.
Base Station
Internet
Source: authors.
Using TDMA scheduling, the CH assigns time slots for each CH node to
communicate during intra-cluster data transmission based on the average node
number in each group. Next, to transfer the data to the BS, each CH combines
the data it has received with its collected data. The data will then be delivered
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 11
in multiple hops between the various CHs and the SB via the optimal path
identified to connect them.
The flowchart shown in Figure 2 illustrates the different steps of our
contribution.
Source: authors.
5 SYSTEM MODEL
Our system model uses both the radio energy model and the network
model. The model's network focuses on grouping the sensor into clusters by
choosing the best CHs using LEACH protocol, selecting relay node and forming
a chain that links the various CHs. In contrast, the radio energy model
determines how much energy is used for data aggregation, transmission, and
reception processes.
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 12
5.1 NETWORK MODEL
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 13
where:
𝐸𝑇𝑋 is the energy used by the transmitter to convey a packet of 𝐿 bits over a distance of 𝑑
meters.
𝐸𝑒𝑙𝑒𝑐 (𝐿, 𝑑) is the energy required to transport a single bit both ways over 𝑑 meters.
𝐿 is the size of the transmission packet.
The energy for signal amplification (free space and multiple routes) is
represented by 𝜀𝑓𝑠 and ε𝑚𝑝 .
The distance at which the amplification factors begin to shift is known as 𝑑0
The formula for 𝑑0 is as follows:
𝜀
𝑑0 = √ε 𝑓𝑠 (8)
𝑚𝑝
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 14
6.1 SIMULATION PARAMETERS
This evaluation metric is the energy still available within the network in each
iteration. The total residual energy of these four protocols is measured in following
Figure 3.
Source: authors.
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 15
Figure 3 demonstrates a consistent trend: for all four protocols, the residual
energy declines with an increase in the number of iterations. This is primarily due
to the energy used by the sensor nodes for both transmission and reception
operations. However, our suggested RNS_A-star protocol stands out, maintaining
a more regular energy consumption pattern. This unique feature results in a
significantly higher total residual energy in each iteration for RNS_A-star,
approximately 18 Joules after 1000 rounds. In contrast, ECO-BAT, LEACH-IACA,
and LEACH retain less energy—roughly 15 Joules, 4 Joules, and 1 Joule,
respectively. All nodes of ECO-BAT, LEACH-IACA, and LEACH die after the
1700th iteration. However, the proposed RNS_A-star still has around 2 J of
residual energy. This indicates the superior longevity of RNS_A-star, making it an
ideal choice for applications requiring extended operation without recharging. —
suggesting that they are better suited for networks where initial high performance
is less critical than sustained performance over time.
Network lifetime is defined as the number of iterations from the start of the
protocol execution to the First Node Dead (FND), Half Nodes Dead (HND), and
Last Node Dead (LND). We examine the network lifetime for the protocols cited
above in Table 2 and Figure 4.
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 16
Figure 4. FND, HND and LND comparison over iteration number
Source: authors.
In Table 2 and Figure 4, the metrics of FND, HND, and LND show that our
suggested protocol, RNS_A-star, outperforms ECO-BAT, LEACH-IACA, and
LEACH because it loses its first node around iteration number 1060, fifty percent
of the nodes by iteration number 1500, and its final node by iteration number 2000.
This exceeds the other three protocols' FND, HND, and LND values . The results
of these three indicators for our approach are superior to those of ECO-BAT,
LEACH-IACA, and LEACH in that order.
Source: authors.
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 17
Figure 5 shows that the number of live nodes decreases for the four
protocols because, after each iteration, the nodes exhaust their energy and
become unusable, unable to receive or send data packets. However, the number
of live nodes over iterations is higher in our proposed RNS_A-star protocol than in
ECO-BAT, LEACH-IACA, and LEACH. All nodes of ECO-BAT, LEACH-IACA, and
LEACH die after the 1700th iteration. However, the proposed RNS_A-star still has
33 lived nodes. This suggests that successful CH rotation, balanced energy
distribution among nodes, and the created inter-cluster path may be responsible
for RNS_A-star 's energy management efficacy.
Source: authors.
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 18
6.2.5 Number of packets received at the BS
Source: authors.
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 19
for prolonging the network lifetime and boosting stability. Secondly, the network
lifetime is analyzed and evaluated through the FND, HND, and LND metrics, and
RNS_A-star once again proves to be the most reliable protocol. It extends the
lifetime to reach the last dead node stage, far beyond the capabilities of ECO-BAT,
LEACH-IACA, and LEACH. It also significantly delays the death of the first node
and keeps over 50% of the network's nodes alive much longer than other protocols.
This longer network lifespan is particularly useful for networks installed in
hazardous areas, where continuous data collection and monitoring depends on a
network's ability to operate continuously without experiencing node death. Then,
RNS_A-star demonstrates improved performance with a significant improvement
in the number of live nodes in each iteration compared to ECO-BAT, LEACH-IACA,
and LEACH. The number of live nodes demonstrates RNS_A-star's efficient
control of node energy. Lastly, regarding network throughput, the RNS_A-star
approach performs better than the ECO-BAT, LEACH-IACA, and LEACH
protocols. This shows an ideal Quality of Service (QoS) during packet transfer and
increased operating efficiency.
Because of its many benefits in energy management, lowering node
mortality, improving data transmission, and extending network longevity, the
proposed RNS_A-star protocol is a model protocol for high-stakes applications that
need little maintenance and excellent reliability.
7 CONCLUSION
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 20
performance is the best regarding network remaining energy, network lifetime,
number of alive nodes, energy consumption, and the number of packets received
at the BS. This result is attributable to the efficiency of our protocol, which
combined a data routing algorithm based on relay node selection and an improved
A-star algorithm using the novel fitness function.
This research has the potential to assist society and academia in
implementing our suggested protocol in actual experiments for efficiently routing
data within a wireless sensor network in order to extend the network's lifespan.
The limits of our study include the fact that our proposed objective function
only considers the residual energy of nodes and the distance between sensors.
Additionally, our protocol is designed to work exclusively in static networks. In our
upcoming work, we will study the applicability of the RNS_A-star protocol in mobile
sensor networks. To better the functionality of the proposed RNS_A-star protocol,
we plan to incorporate more parameters into the fitness function to improve our
proposed protocol's effectiveness.
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 21
REFERENCES
FRANSEN, K.; VAN EEKELEN, J. Efficient path planning for automated guided
vehicles using A* (Astar) algorithm incorporating turning costs in search heuristic.
International Journal of Production Research, v. 61, n. 3, p. 707–725, 1 fev.
2023.
HART, P.; NILSSON, N.; RAPHAEL, B. A Formal Basis for the Heuristic
Determination of Minimum Cost Paths. IEEE Transactions on Systems
Science and Cybernetics, v. 4, n. 2, p. 100–107, 1968.
KADDI, M.; BANANA, A.; OMARI, M. ECO-BAT: A New Routing Protocol for
Energy Consumption Optimization Based on BAT Algorithm in WSN.
Computers, Materials & Continua, v. 66, n. 2, p. 1497–1510, 2021.
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 22
KHAN, M. A.; HUSSAIN, S. Energy Efficient Direction-Based Topology Control
Algorithm for WSN. Wireless Sensor Network, v. 12, n. 03, p. 37–47, 2020.
MUSTAFA HILAL, A. et al. Echo Location Based Bat Algorithm for Energy
Efficient WSN Routing. Computers, Materials & Continua, v. 71, n. 3, p. 6351–
6364, 2022.
Studies in Engineering and Exact Sciences, Curitiba, v.5, n.2, p. 01-23, 2024 23