Abstract
A group of wireless moving/still nodes establishes the mobile ad hoc network (MANET) that forms a temporary network. There does not exist any centralized access points, infrastructure, or centralized administration for controlling the network. Routing is the process of exchanging the data/control packets to achieve communication among moving nodes. Routing is the biggest challenge in MANET for finding a path between the communicating nodes. Swarm intelligence introduces various protocols based on the moving nature of living creatures to solve the optimization problems like routing. Ant colony algorithm is a specific type of subset of techniques of swarm intelligence in which simple ants have the capability to solve complex problems by the property of cooperation among them. One autonomous ant performs limited, specialized tasks, but the colonies of ants at large exhibit a global intelligent behavior. Stigmergy is the process of indirect communication shown by the ants for exchanging the data. Each ant continuously deposits chemical substance known by the name of pheromone on the path where ant traverses. Other ants have the capability to sense this chemical when they move over a particular path. The routing algorithm based on the ant’s behavior is well scalable, adaptive, and efficient in practice.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
Since the start of the 1970s, the use of wireless networks has increased. Presently, two alternatives exists for mobile wireless networks. One of the alternative is infrastructured networks, i.e., networks that have fixed and wired gateways. The router which helps to perform the routing is called a base station [1]. A mobile node in such networks joins to the nearest base station in its transmission range for communication to other nodes. Another category of wireless network is the infrastructure-less network which is also known as an ad hoc network. There is no fixed route in ad hoc network; all the participating nodes can be connected dynamically in any topological manner [2]. All the moving nodes in such networks act as routers that search and sustain the paths to other moving nodes. Such temporary networks can be used in meetings, search-and-rescue operations in crises or situations where persons need to transmit the information quickly, and data acquisition operations in inhospitable terrains [3].
Because the nodes establish a temporary way of communication without having any pre-installed infrastructure. Almost all the intermediate nodes involve in relaying traffic generated as a result of communication. So, such types of network are sometimes also known as mobile multi-hop ad hoc networks [4].
Exchanging data packets between the two nodes is called the process of routing. As there is no fixed path due to moving nodes, therefore the routing possesses a challenge to the MANET. It means it is difficult to identify the stable path between the source and the destination [5]. The frequent breakup and establishing the new path make routing a difficult task in MANETs. Therefore, it always requires choosing an efficient routing protocol.
There are three categories of routing protocol in MANET, i.e., proactive routing, reactive routing, and hybrid routing. All the nodes in proactive routing always maintain a routing table which contains the path to every other node in network. In reactive routing, there is not pre-existing routing table but the routes are established when there is requirement of communication between two nodes. The hybrid routing is the mixture of the two routing techniques [6].
The traditional process of routing requires the whole network route information for path selection process. The algorithm in such protocols places huge overheads on updating of routing information when there is change in network system. This is because the routes are established and break frequently due to moving nodes. Congestion also presents challenge in routing [7].
To astound the presented drawback as stated above, adaptive and distributive routing algorithms are needed to be proposed. There are many optimization techniques like genetic algorithms, cuckoo search, and particle swarm optimization [8, 9]. One of the techniques with such a property is centered on ant colony optimization (ACO) algorithm. The ACO routing which is the result of the nature of swarm intelligence is a distributive multi-agent system. Intelligent swarms such as honey bees or ants can adapt their deeds smoothly in the environment where they are living. By the application of the distributive routing scheme, the problems presented previously can be avoided and the overall performance will be improved.
Biologically distributed ant colonies while having the simplicity of their components exhibit highly structured social organization. As an effect of this, colonies of ants can achieve astonishing results in complicated responsibilities that could not be achieved by a single ant. The fundamental principle followed by the ant routing algorithm is that the ants lay pheromone (a chemical) while roaming in search of food. While searching food, ants travel on path which have high pheromone concentration leading to high probability [10]. It was also revealed experimentally which shows the pheromone trail behavior, and this ultimately laid the foundation for the emergence of the shortest path [11].
For illustrating the ant behavior, the experiment of the double bridge was also conducted where ants require to select from the two different paths of different lengths. As can be seen in Fig. 1 (a) that in the beginning, the different ants explore all possible routes to their destination [12]. After passing a few times, it can also be seen in Fig. 1 (b) that now most of the ants take the shortest path to the food location, while some remaining ants still explore other non-optimal routes. Marco Dorigo presented this double-bridge experiment, and this is also the copyright for his work [4, 5, 13]. We have only referred to this experiment for showing the behavior of ants when there is the availability of multiple paths between the nest source and destination food source [14].
2 Ant Algorithm for Solving Routing Problem
The ant colony optimization algorithm can be categorized into the following steps for solving the routing problem:
-
Probability of a move:
When multiple links may lead toward the destination, the link that has the highest value of probability \(p_{i\Psi }^{k}\) is selected as the next node on which the ant/data/control packet can move to reach the destination. The value of probability \(p_{i\Psi }^{k}\) ranges from 0 to 1. The probability value is equal to 0 for all moves which are infeasible [15,16,17]. The probability is calculated as shown in Eq. (1)
Parameter α is used to define the comparative importance of the attractiveness of the pheromone trail. α is a user-defined parameter and normally ranges from (0 ≤ α ≤ 1):
-
Trail update:
At each iteration, the pheromone trail is increased on the favorable paths as shown in Eq. (2) which means the paths which are selected by the ants for traversal. It is because of the ant’s property to lay down pheromone while moving [18, 19]. The trail on other paths is decreased (which are not selected).
where ρ is the coefficient defined by the user for pheromone and Δτιψ is the summation of the contributions of the trail by all the ants that make use of move τιψ for constructing the solution.
-
Attractiveness and Trail
For any ant k, the probability \(p_{i\Psi }^{k}\) is calculated while traversing from node i toward state ψ and depends on the combination of two values [20, 21]:
-
1.
As computed by approximately heuristic indicating the a priori desirability of the ant movement, the attractiveness η is calculated.
-
2.
The value of pheromone trail level τ of the move that indicates competently it has been present in the past to make that particular move.
3 ACO Pseudocode
The pseudocode for the ant algorithm which is stated above [22] can be written as follows. It is already illustrated parameter-wise in the above section.
1. (Initialization)
Assign the initial value to parameters \(\tau_{i\Psi }\) , \(\Delta \tau_{i\Psi }\) for all i and Ψ
2. (Construction)
for every ant k do
repeat
Compute \(\Delta \tau_{i\Psi }\), \(\tau_{i\Psi }\).
choose the next move based on path with high probability add the selected path to the path of k-th ant till the k-th ant has finished with ıts solution
end do
3. (Updating the Pheromone Trail)
For every ant on the path move ( \(i\Psi\) ) do
compute Δ \(\tau_{i\Psi }\) and apprise the pheromone on selected paths
4. (Condition of the Termination)
If end of the condition is not achieved then move to step 2.
4 Flowchart for ACO Routing
When a source has data to be sent to the destination, a proper procedure is applied to calculate the path to the destination [23]. The following algorithm illustrates the steps for calculating the optimizing path between the source and the destination. The population of ants is created according to the required number of necessary iterations. Every any is launched in a new iteration to find the optimal path. That ant evaluates the better solution according to the present parameter. Each checks whether the termination criteria are reached or not. If it is reached, then we can say that solution has been found. If the condition is not met, then the ant moves on the path depending on the pheromone with a higher probability. The ant deposits the pheromone while moving on the path selected as part of the algorithm. The path is selected from the available paths with the least value of distance and a higher value of pheromone. The pheromone is evaporated on the unfavorable paths, and it is deposited on the favorable paths by the ants passing from this path [24]. When the termination condition is achieved, then the algorithm gives the required solution; otherwise, it moves toward following the same steps as stated above (Fig. 2).
5 Running Simulations
For executing a specific scenario
Run the script:
./Run Scenario.bat scenario
./Run Directory seed < -cache >
In the above command, the script is executing with the scenario stored in the file “Scenarioo.bat”. The sample is stored in Run Directory. The value of the seed can be practiced to set the seed value of the random number generators. The value in the cache option can be used to assign the modified version of the program for ACO-MANET. It also facilitates the extended caching value in place of the original ACO-MANET value. This procedure can be used to initiate/call the other procedural scripts for setting up the directory structures and for generating the new movement files (if that is not existing previously) and executing the simulation scenario for the given simulation.
As an example, for the sake of running the conf scenario in the environment of ACO-MANET, we need to run the following command:
./ RunScenario.Bat Conf Run0 2 -Cache
Similarly, the file of movement will be stored in:
ACOtools/ACOMotion/run0/conf.motion
The file in which trace information is to be stored in:
ACOtools/ACOTraces/run0/original/conf.tr
For examining the output from the generated trace file can be run as:
Awk-fACO-tools/eval.awkACO-tools/ACO-traces/run0/original/conf.tr
In the above algorithm, the agents based on the ants constantly go on updating the routing tables after iteration from each ant and according to the states of the network. Two improvements are proposed by using the term blocking probability in the above-stated algorithm which was not present in the traditional routing algorithms. The first advantage of ant-based algorithm is that the availability of the path can be searched within no times by using the routing tables. This will reduce the delay in the network setup considerably. The second advantage of this algorithm is that it is flexible because it can adjust the number of ants while calculating the probability on each node by ants to achieve a better result in terms of performance. Therefore, it can be said that the new ant-based algorithm is highly adaptive and robust.
6 Results Received After Simulations
The proposed ant-based algorithm is executed along with other traditional algorithms of MANETs like AODV, DSR, and DSDV.
The results after the simulation have shown that the ant-based algorithm performs better than AODV, DSR, and DSDV. More packets were sent when packets are sent using an ant algorithm which is also shown in Fig. 3. Figure 4 shows that a lesser number of packets are dropped while using the ant algorithm as compared to other traditional algorithms.
7 Conclusion and Future Work
Because of the absence of a centralized installed infrastructure, mobile ad hoc networks are flexible. Nowadays, highly sophisticated devices are used for getting an increased level of applications using which can be seen as the future of wireless transmission technologies. However, routing is one of the main challenges in MANETs which is happening due to the movement of nodes. In this paper, an ant-based routing algorithm for mobile ad hoc networks has been proposed. We are also planning to focus our future studies on reducing the overheads caused due to the maintenance of routes. Many techniques that are proposed using an ant-based routing algorithm are emerging better to find the globally best solution in terms of routing. It is found that due to the movement of nodes, the links become unstable, and also due to limited resources, it becomes difficult to manage the routes leading to link failure in traditional routing algorithms, whereas ant-based algorithms can easily handle such types of issues in a better way. Ant-based algorithms are found to produce better results which can also be seen in the figures shown in the result section.
References
Cauvery NK, Viswanatha KV (2008) Enhanced ant colony based algorithm for routing in mobile ad hoc network. World Acad Sci Eng Technol 30–35
Dressler F, Akan OB (2010) A survey on bio-inspired networking. Art Publ Elsev Comput Netw 54(6):881–900
Dorigo M, Blum C (2005) Ant colony optimization theory: a survey. Theor Comput Sci 344(2–3):243–278
Kaur H, Singh G (2017) TCP congestion control and its variants. Adv Comput Sci Technol 10(6):1715–1723
Caro GD, Dorigo M (1998) AntNet: distributed Stigmergic control for communication networks. J Artif Intell Res 9
Caro GD, Dorigo M (1998) Ant colonies for adaptive routing in packet-switched communications networks. In: Paper presented at the proceedings 5th parallel problem solving from nature, Amsterdam
Sengottaiyan N, Somasundaram R, Arumugam S (2009) A modified routing algorithm for reducing congestion in wireless sensor networks. Eur J Sci Res 35(4):529–536. ISSN 1450-216X
Tiwari S, Singh G (2022) Optimizing job scheduling problem using improved GA+CS algorithm. In: International conference on innovative computing and communications (ICICC-2022), Lecture notes in network and systems (Springer), pp 291–297
Phonsa G, Singh G (2022) A combinatory novel approach for detection of interested area from images. In: International conference on innovative computing and communications (ICICC-2022), Lecture notes in network and systems (Springer), pp 327–334
Sharma S, Singh G, Kaur A (2014) Study based comparison of multi-path routing protocols in MANETs. In: The proceedings 2nd international conference on futuristic trends in engineering and management 2014 and In online journal “International Journal of Computer Science and Communication, pp 191–196
Gunes M, Spaniol O (2003) Ant-routing-algorithm for mobile multi-hop ad-hoc networks pp 120–138
Kaur A, Dhaka VS, Singh G (2016) Casting multipath behaviour into OANTALG to improve QoS. In: IEEE Explore international conference on computing for sustainable global development, pp 2076–2081
Kaur A, Singh G, Gupta R (2020) Path stability evaluation and controlled broadcast provision with A-AOMDV-CSE. In: International conference on intelligent communication and computational research (ICICCR-2020) Available at ELSEVIER SSRN: https://ssrn.com/abstract=3565848, pp 1–9
Correia F, Vazal T, Lobo VJ (2009) Models for pheromone evaluation in ant systems for mobile ad-hoc networks. In: 2009 First international conference on emerging network intelligence, pp 85–90
Sharma S, Singh M, Singh G (2012) Realistic inspection of proposed Ant algorithm with Antnet algorithm using NS-2. Int J Res IT Manage Eng 2(6):146–156
Singh R, Singh DK, Kumar L (2011) Performance evaluation of ACO based on demand routing algorithm for mobile ad hoc networks. Int J Eng Sci Tech 3(3):1809–1815
Singh A, Dhaka VS, Singh G (2016) Comparative analysis of dynamic path maintenance routing protocols for mobile ad-hoc networks. Ind J Sci Technol 9(28):1–6
Karunkuzhali D, Prasad M, Singh G, Kaur A, Periasamy JK, Ramprabu G (2020) Traffic analysis in vehicular Adhoc networks using flow and network level analysis. Microproc Microsys
Batla N, Kaur A, Singh G (2014) Congestion control techniques in TCP: a critique. In: The proceedings of 3rd national conference of advances and research in technology (ART-2014), pp 45.1–45.5
Kumar A, Singh R (2011) Mobile ad hoc networks routing optimization techniques using swarm intelligence. Int J Res IT & Manage 2231–4334
Gupta R, Singh G, Kaur A (2021) Assessment of performance metrics for fusion network. Kuwait J Sci 48(3):1–7
Di Caro G, Ducatelle F, Gambardella LM (2004) AntHocNet: an ant-based hybrid routing algorithm for mobile ad hoc networks. In: Proceedings of parallel problem solving from nature (.PPSN VIII), vol 3242 of LNCS, Springer-Verlag, pp 461–470
Gupta R, Singh G (2019) An improved hybrid algorithm for improving quality parameters in MANETs. Int J Sustainable Agricul Manage Informat 5(4):262–269
Sabari A, Duraiswamy K (2009) Multiple constraints for ant based multicast routing in mobile ad hoc networks. J Comput Sci 5(12):1020–1027
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Kaur, A., Singh, G., Singh, A., Gupta, R., Singh, G. (2024). Ant-Based Algorithm for Routing in Mobile Ad Hoc Networks. In: Hassanien, A.E., Castillo, O., Anand, S., Jaiswal, A. (eds) International Conference on Innovative Computing and Communications. ICICC 2023. Lecture Notes in Networks and Systems, vol 731. Springer, Singapore. https://doi.org/10.1007/978-981-99-4071-4_28
Download citation
DOI: https://doi.org/10.1007/978-981-99-4071-4_28
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-99-4070-7
Online ISBN: 978-981-99-4071-4
eBook Packages: EngineeringEngineering (R0)