Energy Efficient Routing Protocol in Sensor Networks Using Genetic Algorithm
Abstract
:1. Introduction
2. Related Work
3. Proposed Algorithm
3.1. Problem Statement
3.2. Proposed Method
3.3. Fitness Function
4. Methodology
- Initialization: In this step, we set our assumptions for the needed parameters:
- ➢
- Genes: This is the number of sensor nodes in a path before any data communication takes place,
- ➢
- PopSize: This is the population size which is a set of all available routes between two end nodes,
- ➢
- Pc: This is the probability where a couple of routes may be crossed over,
- ➢
- Pm: This is the probability where a node in one route may be mutated,
- ➢
- SurvivorSel: This is the survivor selection rule where a route can be considered as an accepted alternative based on its fitness score,
- ➢
- GensNochange: This is the termination of the route search process where the array of available routes is sorted descendingly using the fitness values. At this stage, the optimized array has no further change.
- Fitness: We apply this function twice. Firstly, all routes returned by AOMDV are evaluated through the fitness function in Equation (1). Secondly, other routes generated through crossover and mutation phases are examined through this function to assess its efficiency as potential accepted route.
- Selection: Using the FF values, some of the AOMDV generated routes will be excluded to save the processing time needed for the next crossover and mutation. In doing this, the elitism method [32] is used where routes with small fitness scores will be removed from the selected routes pool. In other words, a route where its nodes have low energy will be excluded from the population of the parent routes where the crossover and mutation phases are applied. Therefore, the population will only represent elites which are the available routes with the minimum number of nodes and highest residual energy.
- Crossover: In this step, every couple of routes are paired and crossed over using the probability Pc. Nodes are switched between each pair of routes with high fitness scores. The range of Pc is between 0.45 and 1 [32]. Pc is selected to be 0.5 in our simulation as it was indicated in [33] that it works perfectly with a large population size.
- Mutation: This phase is applied on the routes generated by AOMDV and crossover. In this step, the node order is altered in the same route using the probability Pm. The range of Pm is between 0.001 and 0.5 [33]. In our simulation, Pm is selected to be 0.1 as it is commonly used by researchers [33]. New routes generated by crossover and mutation are assessed in the survivor select phase.
- Survivor selection: Each route generated by crossover and mutation phases is considered as a new child. If the fitness of the child is greater than the scores of its parents, then this child route will be added to the array of potential efficient routes; otherwise, this child route will be dropped. Optimized routes array is accordingly sorted and the route selected is the one with the highest fitness level. Other routes are alternatives that will be likely used whenever the selected route’s nodes become faulty or move out of the network area.
- AOMDV protocol returns an array of routes (PopSize) based on the minimum number of hops (Genes). PopSize is the set of the parent routes where the GA will be applied to generate new child routes as explained below,
- FF based on the minimum consumed energy of nodes involved in the PopSize is evaluated. Using the elitism method, routes with low fitness levels are dropped and only consider remaining routes as parents to be used in the GA,
- Employ the crossover process over the elitism parent routes to generate new child routes through using Pc.
- Employ mutation process on the parent and child routes using Pm,
- Employ the FF again on every child route that can be considered as a potential route if its fitness score is higher than its parent routes fitness and this is the SurvivorSel in this step,
- Store all the potential parent and child routes in an efficient routes array E,
- Sort entries of array E in descending manner where the efficient route is the one with the highest fitness. Other routes in E will be utilized when the selected route fails because of channel disconnection or faulty nodes.
Algorithm 1 Routing Protocol Algorithm |
1: INPUT: size of the network |
2: OUTPUT: Efficient array of routes |
3: Assumptions: |
4: Size: number of nodes |
5: Efficient_Paths: E [] |
6: Pc = 0.5 |
7: Pm =0.1 |
8: Presnt_route = P, Old_route = O, New_route = N |
9: F(x) = Fitness Function (Min of energy consumption) for all nodes of each route x |
10: PopSize: Population of routes xs returned by AOMDV |
11: POP_F = Apply F(x) on routes of PoSize |
12: while (POP_F) |
13: Crossover (P, O, Pc) |
14: Mutation (P, O, C, Pm) |
15: if (FM ≥ FP)&(FM ≥ FO) then |
16: E [] = x |
17: else |
18: Drop x |
19: end if |
20: end while |
21: return routes array in E [] |
- R1: S, C, E, F, D
- R2: S, B, E, A, D
- R3: S, G, E, A, D
- R4: S, C, E, A, D
- R5: S, B, E, F, D
5. Simulation, Parameters and Metrics
- is the performance value of the calculated metric for our protocol,
- is the performance value of the calculated metric for other protocols,
- ∑ is the summation over the range from i = 1 to the number of x-axis points of the metric y.
- represents the simulation time in which the data packet ith delivered.
- denotes the simulation time when the packet ith sent.
- and n is the number of data packets delivered.
6. Results and Discussion
6.1. Comparison with Genetic Algorithm-Based Protocols
6.2. Comparison with Non-Genetic Algorithm-Based Protocols
7. Protocols Analysis
8. Conclusions
Author Contributions
Funding
Acknowledgments
Conflicts of Interest
References
- Femila, L.; Beno, M.M. Optimizing Transmission Power and Energy Efficient Routing Protocol in MANETs. Wirel. Pers. Commun. 2019, 106, 1041–1056. [Google Scholar] [CrossRef]
- Saritha, V.; Krishna, P.V.; Alagiri, I.; Viswanatham, V.M.; Obaidat, M.S. Efficient Multipath Routing Protocol with Quality of Service for Mobile Ad Hoc Networks. In Proceedings of the 2018 IEEE International Conference on Communications (ICC), Kansas City, MO, USA, 20–24 May 2018; pp. 1–6. [Google Scholar]
- Al-Zahrani, F.A. On Modeling Optimizations and Enhancing Routing Protocols for Wireless Multihop Networks. IEEE Access 2020, 8, 68953–68973. [Google Scholar] [CrossRef]
- He, S.; Xie, K.; Chen, W.; Zhang, D.; Wen, J. Energy-Aware Routing for SWIPT in Multi-Hop Energy-Constrained Wireless Network. IEEE Access 2018, 6, 17996–18008. [Google Scholar] [CrossRef]
- Xu, C.; Xiong, Z.; Zhao, G.; Yu, S. An Energy-Efficient Region Source Routing Protocol for Lifetime Maximization in WSN. IEEE Access 2019, 7, 135277–135289. [Google Scholar] [CrossRef]
- Fu, X.; Fortino, G.; Pace, P.; Aloi, G.; Li, W. Environment-fusion multipath routing protocol for wireless sensor networks. Inf. Fusion 2020, 53, 4–19. [Google Scholar] [CrossRef]
- Liu, X.; Wu, J. A Method for Energy Balance and Data Transmission Optimal Routing in Wireless Sensor Networks. Sensors 2019, 19, 3017. [Google Scholar] [CrossRef] [Green Version]
- Feng, W.; Wang, F.; Xu, D.; Yao, Y.; Xu, X.; Jiang, X.; Zhao, M. Joint Energy-Saving Scheduling and Secure Routing for Critical Event Reporting in Wireless Sensor Networks. IEEE Access 2020, 8, 53281–53292. [Google Scholar] [CrossRef]
- Kaur, M.; Singh, L.M. Energy optimization in Manet using enhanced routing protocol. Int. J. Eng. Res. 2016, 5, 578–581. [Google Scholar]
- Mahdipour, E.; Rahmani, A.M.; Aminian, E. Performance evaluation of destination-sequenced dis-tance-vector (dsdv) routing protocol. In Proceedings of the 2009 International Conference on Future Networks, Bangkok, Thailand, 7–9 March 2009; pp. 186–190. [Google Scholar]
- Jabbar, W.A.; Saad, W.K.; Ismail, M. MEQSA-OLSRv2: A multicriteria-based hybrid multipath protocol for energy-efficient and QoS-aware data routing in MANET-WSN convergence scenarios of IoT. IEEE Access 2018, 6, 76546–76572. [Google Scholar] [CrossRef]
- Deepa, J.; Sutha, J. A new energy based power aware routing method for MANETs. Clust. Comput. 2019, 22, 13317–13324. [Google Scholar] [CrossRef]
- Parekh, V.A.; Wandra, K.H. Performance Evaluation of AODV and AOMDV Routing Protocols in MANET. Int. J. Adv. Res. Comput. Sci. 2013, 4. [Google Scholar] [CrossRef]
- Najafi, G.; Gudakahriz, S.J. A Stable Routing Protocol based on DSR Protocol for Mobile Ad Hoc Networks. Int. J. Wirel. Microw. Technol. 2018, 8, 14–22. [Google Scholar] [CrossRef] [Green Version]
- Kuo, W.-K.; Chu, S.-H. Energy Efficiency Optimization for Mobile Ad Hoc Networks. IEEE Access 2016, 4, 928–940. [Google Scholar] [CrossRef]
- Agrawal, A.M.; Dalu, S. Energy Efficient Algorithms for Mobile Ad Hoc Networks. In Proceedings of the 2018 International Conference on Research in Intelligent and Computing in Engineering (RICE), San Salvador, El Salvador, 22–24 August 2018; pp. 1–6. [Google Scholar]
- Marina, M.; Das, S. On-demand multipath distance vector routing in ad hoc networks. In Proceedings of the Ninth International Conference on Network Protocols (ICNP 2001), Riverside, CA, USA, 11–14 November 2001; pp. 14–23. [Google Scholar]
- Das, S.K.; Tripathi, S. Intelligent energy-aware efficient routing for MANET. Wirel. Netw. 2018, 24, 1139–1159. [Google Scholar] [CrossRef]
- Elhoseny, M.; Yuan, X.; Yu, Z.; Mao, C.; El-Minir, H.K.; Riad, A.M. Balancing energy consumption in het-erogeneous wireless sensor networks using genetic algorithm. IEEE Commun. Lett. 2014, 19, 2194–2197. [Google Scholar] [CrossRef]
- Mehboob, U.; Qadir, J.; Ali, S.; Vasilakos, A. Genetic algorithms in wireless networking: Techniques, ap-plications, and issues. Soft Comput. 2016, 20, 2467–2501. [Google Scholar] [CrossRef] [Green Version]
- Wei, X.; Yang, H.; Huang, W. A Genetic-Algorithm-Based Optimization Routing for FANETs. Front. Neurorobot. 2021, 15, 81. [Google Scholar] [CrossRef]
- Cao, Y.; Wu, M. A Novel RPL Algorithm Based on Chaotic Genetic Algorithm. Sensors 2018, 18, 3647. [Google Scholar] [CrossRef] [Green Version]
- Alsaqour, R.; Kamal, S.; Abdelhaq, M.; Al Jeroudi, Y. Genetic Algorithm Routing Protocol for Mobile Ad Hoc Network. Comput. Mater. Contin. 2021, 68, 941–960. [Google Scholar] [CrossRef]
- Bhardwaj, A.; El-Ocla, H. Multipath Routing Protocol Using Genetic Algorithm in Mobile Ad Hoc Networks. IEEE Access 2020, 8, 177534–177548. [Google Scholar] [CrossRef]
- Wang, T.; Zhang, G.; Yang, X.; Vajdi, A. Genetic algorithm for energy-efficient clustering and routing in wireless sensor networks. J. Syst. Softw. 2018, 146, 196–214. [Google Scholar] [CrossRef]
- Baroudi, U.; Bin-Yahya, M.; Alshammari, M.; Yaqoub, U. Ticket-based QoS routing optimization using genetic algorithm for WSN applications in smart grid. J. Ambient. Intell. Humaniz. Comput. 2018, 10, 1325–1338. [Google Scholar] [CrossRef]
- Kong, L.; Pan, J.-S.; Snášel, V.; Tsai, P.-W.; Sung, T.-W. An energy-aware routing protocol for wireless sensor network based on genetic algorithm. Telecommun. Syst. 2018, 67, 451–463. [Google Scholar] [CrossRef]
- Radhika, M.; Sivakumar, P. Energy optimized micro genetic algorithm based LEACH protocol for WSN. Wirel. Netw. 2021, 27, 27–40. [Google Scholar] [CrossRef]
- Singh, A.R.; Devaraj, D.; Banu, R.N. Genetic algorithm-based optimisation of load-balanced routing for AMI with wireless mesh networks. Appl. Soft Comput. 2018, 74, 122–132. [Google Scholar] [CrossRef]
- Choudhary, R.; Sharma, P.K. An efficient approach for power aware routing protocol for MANETs using genetic algorithm. In Emerging Trends in Expert Applications and Security; Springer: Singapore, 2019; pp. 133–138. [Google Scholar]
- Trivedi, V.B.; Nayak, P. Modified AODV using genetic algorithm to minimize energy consumption in MANET. Int. J. Innov. Technol. Explor. Eng. 2019, 8, 525–530. [Google Scholar]
- Du, H.; Wang, Z.; Zhan, W.E.I.; Guo, J. Elitism and distance strategy for selection of evolutionary algo-rithms. IEEE Access 2018, 6, 44531–44541. [Google Scholar] [CrossRef]
- Hassanat, A.; Almohammadi, K.; Alkafaween, E.; Abunawas, E.; Hammouri, A.; Prasath, V.B.S. Choosing Mutation and Crossover Ratios for Genetic Algorithms—A Review with a New Dynamic Approach. Information 2019, 10, 390. [Google Scholar] [CrossRef] [Green Version]
- Saluja, M.A.K.; Darg, M.S.A. A Detailed Analogy of Network Simulators NS1, NS2, NS3 and NS4. Int. J. Future Revolut. Comput. Sci. Commun. Eng. 2017, 3, 291–295. [Google Scholar]
- Diratie, E.; Sharma, D.; Al Agha, K. Energy Aware and Quality of Service Routing Mechanism for Hybrid Internet of Things Network. Computers 2021, 10, 93. [Google Scholar] [CrossRef]
- Pantazis, N.A.; Vergados, D.D.; Miridakis, N.I.; Vergados, D.J. Power control schemes in wireless sensor networks for homecare e-health applications. In Proceedings of the 1st International Conference on PErvasive Technologies Related to Assistive Environments, Athens, Greece, 16–18 July 2008; pp. 1–8. [Google Scholar]
- Majd, N.E.; Ho, N.; Nguyen, T.; Stolmeier, J. Evaluation of Parameters Affecting the Performance of Routing Protocols in Mobile Ad Hoc Networks (MANETs) with a Focus on Energy Efficiency. In Digital Economy: Complexity and Variety vs. Rationality; Springer International Publishing: Cham, Switzerland, 2019; pp. 1210–1219. [Google Scholar]
- Dener, M. WiSeN: A new sensor node for smart applications with wireless sensor networks. Comput. Electr. Eng. 2017, 64, 380–394. [Google Scholar] [CrossRef]
Parameters | Values |
---|---|
Simulator | Network Simulator 2 |
Simulation Node | 150 |
Interface Type | Phy/Wireless |
Channel | Wireless Channel |
Mac Type | MAC/IEEE 802.11 |
Queue Type | Queue/DropTail/Priqueue |
Queue Length | 201 packets |
Antenna Type | Omni Antenna |
Propagation Type | TwoRay Ground |
Initial Energy | 1000 J |
Size of Packet | 512 bytes |
Protocol Algorithm | DSR, AODV, EPAR, GA_AOMDV, EPAR_BFS |
Traffic | TCP/CBR |
Energy (in Joules)/Protocol | |||
---|---|---|---|
No of Node | GA-AOMDV | LEACH-GA | GA-AODV |
100 | 130.22 | 145.11 | 155.23 |
150 | 156.26 | 174.13 | 188.08 |
200 | 192.20 | 214.18 | 229.64 |
250 | 234.49 | 261.32 | 281.73 |
300 | 283.11 | 319.63 | 347.16 |
350 | 341.05 | 370.62 | 398.30 |
Sum | 1337.33 | 1484.99 | 1600.14 |
Saving % | 11.04 | 19.65 |
Throughput (Mbps)/Protocol | |||
---|---|---|---|
Node | GA-AOMDV | LEACH-GA | GA-AODV |
100 | 2.45 | 2.33 | 2.05 |
150 | 2.61 | 2.45 | 2.19 |
200 | 2.91 | 2.65 | 2.34 |
250 | 3.03 | 2.83 | 2.56 |
300 | 3.22 | 2.98 | 2.68 |
350 | 3.54 | 3.21 | 2.88 |
Sum | 17.76 | 16.45 | 14.7 |
Gain % | 7.96 | 20.82 |
Energy (in Joules)/Protocol | |||||
---|---|---|---|---|---|
No. of Nodes | AODV | GA-AOMDV | DSR | EPAR | EPAR-BFS |
20.00 | 185.34 | 163.42 | 180.72 | 173.87 | 168.29 |
40.00 | 269.61 | 193.39 | 264.58 | 197.52 | 196.73 |
60.00 | 351.48 | 279.57 | 327.59 | 296.74 | 287.62 |
80.00 | 402.73 | 303.48 | 361.37 | 327.63 | 309.74 |
100.00 | 487.68 | 314.51 | 467.54 | 382.38 | 344.52 |
120.00 | 507.81 | 385.48 | 487.93 | 419.46 | 401.36 |
140.00 | 573.72 | 403.92 | 503.67 | 497.23 | 447.58 |
150.00 | 578.59 | 447.57 | 513.85 | 502.63 | 476.61 |
Sum | 3356.96 | 2491.34 | 3107.25 | 2797.46 | 2632.45 |
Saving % | 35 | 25 | 13 | 6 |
Packet Delivery Ratio (in %)/Protocol | |||||
---|---|---|---|---|---|
No. of Nodes | AODV | GA-AOMDV | DSR | EPAR | EPAR-BFS |
20.00 | 82.12 | 96.35 | 83.59 | 88.24 | 90.83 |
40.00 | 78.34 | 92.48 | 80.13 | 84.75 | 88.29 |
60.00 | 73.75 | 91.35 | 78.52 | 80.51 | 84.11 |
80.00 | 68.41 | 90.83 | 76.68 | 78.25 | 82.75 |
100.00 | 67.28 | 89.21 | 75.32 | 76.48 | 81.85 |
120.00 | 66.82 | 85.65 | 71.78 | 74.35 | 80.27 |
140.00 | 63.56 | 83.28 | 68.71 | 70.13 | 79.42 |
150.00 | 61.34 | 82.54 | 65.29 | 69.39 | 78.69 |
Sum | 561.62 | 711.69 | 600.02 | 622.10 | 666.21 |
Gain % | 27 | 19 | 15 | 7 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Patel, J.; El-Ocla, H. Energy Efficient Routing Protocol in Sensor Networks Using Genetic Algorithm. Sensors 2021, 21, 7060. https://doi.org/10.3390/s21217060
Patel J, El-Ocla H. Energy Efficient Routing Protocol in Sensor Networks Using Genetic Algorithm. Sensors. 2021; 21(21):7060. https://doi.org/10.3390/s21217060
Chicago/Turabian StylePatel, Jatinkumar, and Hosam El-Ocla. 2021. "Energy Efficient Routing Protocol in Sensor Networks Using Genetic Algorithm" Sensors 21, no. 21: 7060. https://doi.org/10.3390/s21217060
APA StylePatel, J., & El-Ocla, H. (2021). Energy Efficient Routing Protocol in Sensor Networks Using Genetic Algorithm. Sensors, 21(21), 7060. https://doi.org/10.3390/s21217060