Research on Multi-Constraint QoS Routing Based on Improved Whale Algorithm
Abstract
1. Introduction
- An improved multipath DSR routing algorithm (WDSR) was designed based on the DSR protocol. A calculation method for the link overlap degree has been developed. Under the principle of minimum hop count in the DSR protocol, the path with the minimum hop count is taken as the main path. According to the designed overlap calculation method, two paths with the lowest overlap degree and the smallest hop count are selected as auxiliary paths, thereby achieving multi-path routing and improving the performance and QoS of the mobile AD hoc network.
- To further enhance the network performance of the WDSR routing algorithm when the network congestion is high, based on the WDSR algorithm, by improving the convergence factor in the whale algorithm and introducing inertia weight, a multipath QoS routing algorithm (YWDSR) based on the improved whale optimization algorithm is proposed.
2. Materials and Methods
2.1. QoS Routing Mathematical Model
2.2. Improved Multipath DSR Routing Algorithm
2.2.1. Stability Analysis of Multipath
2.2.2. Multipath Selection Strategy
- Calculation of Link Overlap Degree
- 2.
- Multipath Selection Strategy
- (1)
- If the routing cache of the intermediate node contains a path to the destination node, the RREQ packet continues to be forwarded along this path, and the intermediate node does not need to return the RREP message to the source node.
- (2)
- Intermediate nodes refuse to forward RREQ messages that have already recorded the addresses of intermediate nodes to avoid forming routing loops.
- (3)
- The destination node should receive RREQ messages as much as possible within the specified time, select the path with the minimum hop count as the master path, calculate the link overlap degree between other paths and the master path, and choose the two paths with the lowest overlap degree as the slave paths. If there is more than one path, choose the one with the fewest hops.
2.3. QoS Routing Algorithm Based on Improved Whale Optimization Algorithm
2.3.1. Whale Optimization Algorithm
- (1)
- Bubble Net attack
- (2)
- Search for prey
2.3.2. Adaptability of WOA
2.3.3. Improved Whale Optimization Algorithm
- Convergence Factor
- 2.
- Inertia weight
- 3.
- Fitness function
- (1)
- Time delay:
- (2)
- Bandwidth:
- (3)
- Packet loss rate:
- (4)
- Hop count
- 1.
- Initialization stage.- (1)
- Start: Initiate the algorithm process.
- (2)
- Initialize the population: Randomly generate a set of initial solutions (whale individual positions) to cover the solution space and serve as the search starting point.
- (3)
- Calculate fitness: Use the objective function to evaluate the “advantages and disadvantages” of each individual.
 
- 2.
- Iterative optimization stage.- (1)
- Update parameters: Adjust key parameters of the algorithm.a: Decreasing in the form of piecewise functions, the control search mode shifts from “global exploration” to “local development”.
- (2)
- Behavioral selection (hunting strategy);p is a random number in [0, 1]. Select “encircle the prey” or “spiral update” based on p.p < 0.5 (encircling development stage): Then judge (|A| < 1). If it is satisfied, perform the encircling behavior, gather towards the optimal individual according to Formula (17), and converge towards the current optimal solution.p ≥ 0.5 (exploration stage): Perform spiral update and expand the search range using the spiral curve according to Formula (21).
 
- 3.
- Selection of the best and iterative termination.- (1)
- Calculate the new fitness: After updating the position, recalculate the individual fitness.
- (2)
- Update the optimal solution: If the fitness of the new individual is better than the historical optimum, replace the optimal solution and record the position.
- (3)
- Determine the termination condition: Check whether the number of iterations t has reached its maximum value.
 
2.3.4. Improvement of Data Structure
- Data Structure of RREP Messages
3. Results
3.1. Performance Analysis of WDSR Algorithm
3.2. Performance Analysis of the YWDSR Algorithm
4. Discussion
- Design and Performance of the WDSR Algorithm
- 2.
- Design and Performance of the YWDSR Algorithm
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Zeng, F.; Zhao, N.; Li, W. Joint interference optimization and user PAtisQAction improvement for multicast routing and channel assignment in wireless mesh networks. Clust. Comput. 2019, 22, 15059–15072. [Google Scholar] [CrossRef]
- Jing, Z. Research on QoS Routing Security Algorithm Based on QAODV Protocol. In Proceedings of the 4th International Conference on Intelligent Structure and Vibration Control (ISVC 2014), Chongqing, China, 25–28 July 2014; Institute of Remote Sensing and Digital Earth, Chinese Academy of Sciences: Beijing, China, 2014; pp. 245–250. [Google Scholar]
- Poojary, S.; Pai, M.M.M. Multipath Data Transfer in Wireless Multimedia Sensor Network. In Proceedings of the 2010 International Conference on Broadband, Wireless Computing, Communication and Applications, Fukuoka, Japan, 4–6 November 2010; IEEE: New York, NY, USA, 2010; pp. 379–383. [Google Scholar]
- Krogmann, M.; Heidrich, M.; Bichler, D.; Barisic, D.; Stromberg, G. Reliable, Real-Time Routing in Wireless Sensor and Actuator Networks. ISRN Commun. Netw. 2011, 2011, 1–8. [Google Scholar] [CrossRef]
- Sarangi, S.; Kar, S. Mobility Aware Routing with Partial Route Preservation in Wireless Sensor Networks. Ubiquitous Comput. Commun. J. 2011, 6, 848–856. [Google Scholar]
- Ben-Othman, J.; Yahya, B. Energy efficient and QoS based routing protocol for wireless sensor networks. J. Parallel Distrib. Comput. 2010, 70, 849–857. [Google Scholar] [CrossRef]
- Rahat, A.A.M.; Everson, R.M.; Fieldsend, J.E. Evolutionary Multi-Path Routing for NetworkLifetime and Robustness in Wireless Sensor Networks. Ad Hoc Netw. 2016, 52, 130–145. [Google Scholar] [CrossRef]
- Krishna Kishore, K.; Rajesh Kumar, P. Comprehensive Analysis of PAPR Reduction in OFDM, UFMC and Signal Scrambling UFMC Technique using Shuffled Frog Leaping Algorithm. IETE J. Res. 2023, 69, 272–283. [Google Scholar]
- Ghaemi, Y.; Ocla, E.H. Time delay-based routing protocol using genetic algorithm in vehicular Ad Hoc networks. Clust. Comput. 2024, 28, 146. [Google Scholar] [CrossRef]
- Rama, R.A.; Patyananda, R.; Valli Kumari, V. Multipath selection based on fractional cuckoo search algorithm for QoS aware routing in MANET. Sens. Rev. 2019, 39, 218–232. [Google Scholar]
- He, J.; Teng, Z.; Zhang, F. Research on Power Control Routing Algorithm for Wireless Sensor Networks Based on Ant Colony Optimization. Wirel. Pers. Commun. 2024, 137, 1119–1139. [Google Scholar] [CrossRef]
- Palman, M.F.; Lehmoud, M.A.A.; Joda, A.F. Adaptation of the Ant Colony Algorithm to Avoid Congestion in Wireless Mesh Networks. J. Cyber Secur. Mobil. 2023, 12, 785–812. [Google Scholar]
- Suresh Kumar, M.; Sathish Kumar, G.A. Enhanced ant colony optimization algorithm for packet delivery with improved energy efficiency in wireless sensor networks. J. Intell. Fuzzy Syst. 2023, 44, 7909–7917. [Google Scholar] [CrossRef]
- Dorathy, I.E.P.; Chandrasekaran, M. Ant-based Energy Efficient Routing Algorithm for Mobile Ad hoc Networks. Intell. Autom. Soft Comput. 2022, 33, 1423–1438. [Google Scholar] [CrossRef]
- Wang, W.; Tong, G. Multi-path unequal clustering protocol based on ant colony algorithm in wireless sensor networks. IET Netw. 2020, 9, 56–63. [Google Scholar] [CrossRef]
- Chen, K.; Hu, X. Relay Routing Method Based on Genetic Adaptive Ant Colony System Algorithm. J. Cent. South Univ. (Nat. Sci. Ed.) 2013, 44, 571–579. [Google Scholar]
- Jinglun, S. An Independent Multipath Routing Algorithm in Ad hoc Networks. Comput. Eng. 2003, 29, 14–15. [Google Scholar]
- Wang, L.; Zhang, L. Multipath Source Routing in Wireless Ad hoc Networks. In Proceedings of the 2000 Canadian Conference on Electrical and Computer Engineering, Halifax, NS, Canada, 7–10 May 2000; Volume 1, pp. 79–83. [Google Scholar]
- Yang, X.; Fan, Z.; Min, G. In the satellite network SDN based multipath routing algorithm research. J. Mod. Inf. Technol. 2025, 9, 1–4. [Google Scholar] [CrossRef]
- Zheng, S. Research on QoS Routing Protocol and NS2 Simulation in Ad Hoc Networks. Master’s Thesis, Wuhan University of Technology, Wuhan, China, 2008. [Google Scholar]
- Mirjalili, S.; Lewis, A. The whale optimization algorithm. Adv. Eng. Softw. 2016, 95, 1–67. [Google Scholar] [CrossRef]










| Meta-Heuristic Algorithm | PSO | GA | GWO | 
|---|---|---|---|
| Core search mechanism | Speed-position update | Cross-mutation | Hierarchical leadership | 
| The shortcoming of adaptability | It is prone to fall into local optimum | High computing cost | The dynamic topology has weak adaptability | 
| The shortcoming of adaptability is the novelty of WOA | Two-stage search: Global exploration in the early stage and local fine-tuning in the later stage | Location updates only require fine-tuning of path nodes, with low computational costs | There is no fixed individual leader. Dynamic following is the best, and the response speed is fast | 
| Type (8 Bits) | Length (8 Bits) | Identification (16 Bits) | 
|---|---|---|
| Destination (32 bits) | ||
| Max-Delay | Min-bandwidth | |
| Accumulated Delay | Accumulated Bandwidth | |
| Address [1] (32 bits) | ||
| Address [2] (32 bits) | ||
| …… | ||
| Type (8 Bits) | Length (8 Bits) | L | Identification (16 Bits) | 
|---|---|---|---|
| Address [1] (32 bits) | |||
| Address [2] (32 bits) | |||
| Address [3] (32 bits) | |||
| …… | |||
| Fitness (32 bits) | |||
| Parameters | Parameter Numeric Value | 
|---|---|
| Node movement speed | 0, 5, 10, 15, 20, 25 (m/s) | 
| Data stream type | CBR | 
| Node send packet speed | 5 (packets/s) | 
| Packet size | 512 bytes | 
| Number of nodes that can be connected | 25 | 
| Bandwidth | 2 Mbps | 
| Simulation Time | 500 s | 
| Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. | 
© 2025 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
Niu, Y.; Shan, D. Research on Multi-Constraint QoS Routing Based on Improved Whale Algorithm. Appl. Sci. 2025, 15, 11592. https://doi.org/10.3390/app152111592
Niu Y, Shan D. Research on Multi-Constraint QoS Routing Based on Improved Whale Algorithm. Applied Sciences. 2025; 15(21):11592. https://doi.org/10.3390/app152111592
Chicago/Turabian StyleNiu, Yansheng, and Dongri Shan. 2025. "Research on Multi-Constraint QoS Routing Based on Improved Whale Algorithm" Applied Sciences 15, no. 21: 11592. https://doi.org/10.3390/app152111592
APA StyleNiu, Y., & Shan, D. (2025). Research on Multi-Constraint QoS Routing Based on Improved Whale Algorithm. Applied Sciences, 15(21), 11592. https://doi.org/10.3390/app152111592
 
        


 
       