1 Introduction

There are primarily two types of wireless network models- one with fixed infrastructure and another without any infrastructure. In a fixed infrastructure network, there is a central coordinator called Access Point (AP) through which communication between nodes is performed. The disadvantage of this type of model is the large overhead of keeping the routing tables. In the network having no infrastructure, there is no central coordinator for communication between the nodes and is called Mobile Ad Hoc Networks (MANETs). Thus, MANET is defined as a network that is a group of mobile nodes and operates without a central coordinator. There are no specific topology and nodes can enter and quit the network and transfer the messages at any time. MANETs have remarkable features such as—multi-hop routing, self-creation, self-organization, self-administration, self-directed terminal and dynamic network topology. Because of these exclusive features, MANETs are used for military operations, recuse operations, business works, classrooms and conferences. However, due to limited resource availability, lack of authorization facilities, self-configuring, self-healing and the dynamic nature of network topology, MANETs have some specific issues like routing, multicasting, improving Quality of Service (QoS) constraints and security, which have made it very popular in the research area.

Multicasting is the network's capability of group communication. Copies of a single message from the source node/nodes are forwarded to a set of destinations specified by a single address [1]. In multicasting, there is a group of nodes interested in sharing a particular data. Any node can join or leave the group at any time and a node may be a member of more than one group. i.e. the membership of the group is dynamic. There is no restriction on the location and number of nodes in a group. Multicast Routing (MR) saves bandwidth by avoiding re-transmission of data and reducing RO. Searching the optimal path between a source node and a group of destinations and provisioning QoS constraints like maximum PDR, minimum E2ED and minimum RO has become necessary to support real-time-based applications such as video conferencing and audio conferencing and webcasting. However, due to MANET's large size and dynamic nature, the MR problem is a challenging issue for communication networks and contributes to NP-complete in nature. Routing algorithms are classified into three classes:—reactive, proactive and hybrid routing algorithm. The traditional routing protocols Ad Hoc On-Demand Distance Vector (AODV) [2], Destination-Sequenced Distance-Vector Routing (DSDV) [3], Dynamic Source Routing (DSR) [4], Optimized Link State Routing Protocol (OLSR) [5] and ZRP [6] are not suitable for large and dynamic networks due to increasing the computational complexity [7,8,9,10].

Due to increasing the number of terminals in the network day by day, the communication process has become complex. In this scenario, the complexity in multicast routing is also rises and becomes a prime concern to the research community. The researchers have developed several techniques; out of them, Swarm-based multicast routing protocols received more attention to find the optimal routes in large and complex networks [11, 12]. Therefore, a novel attempt can be made by developing swarm-based multicast routing or hybridized swarm-based multicast routing. Hybrid ACO-PSO Meta-Heuristic (HAPM) along with dynamic queue to improve the QoS algorithm have been proposed to solve the multicast routing problem. The paper is systematized as follows: Sect. 2 briefly introduces AODV, ACO, and PSO methods. Section 3 discusses various related routing protocols that are currently in use. The proposed work's design process is described in Sect. 4. The simulation tool's basis and performance indicators are described in Sect. 5.

2 Background

2.1 AODV

Ad hoc On-Demand Distance Vector Routing (AODV) [2] is a routing protocol used by mobile nodes in the ad hoc network having the following features:-

  1. 1.

    It adopts the flooding mechanism of DSR [4] for route finding and route repair by using Route Request packets (RREQ), Route Reply Packets (RREPs) and Route Errors (RERRs).

  2. 2.

    It adopts the sequence number (Seq_N) procedure of DSDV [3] to avoid old/broken loops.

When the route is requested in the network, the source node relays the RREQ to all its neighbors to find the destination node. The destination node sends the RREP to the source node after receiving RREQ. The source node then begins forwarding the data through the chosen route to the destination node. Each node contains a routing table for storing data about routes. The following entries are there in the routing table:-

  1. 1.

    Destination ID to identify the destination node.

  2. 2.

    Destination Seq_N to avoiding routing loops.

  3. 3.

    Hop Count (Hc) to reach the destination.

  4. 4.

    Lifetime to detect link failure by using Route Error (RERR) packets.

AODV [13] offers quick adaptation to highly dynamic topologies to give better performance than other traditional routing protocols. However, the performance degrades as the network size increases and thus inappropriate for large size networks.

2.2 ACO

Ant colony optimization (ACO) [14] is a famous swarm intelligence approach based on the food-seeking behavior of ants. Ants deposit a particular quantity of a chemical substance (named as pheromone) which serves as a route marker for the successor ants. Initially, ants select a random path between nest and food. They can discharge a variable amount of pheromone trails on their ways. On the premise of deposited secretion quantity, the newer ant selects the optimal path having higher secretion concentration that is the shortest path among all remaining alternative paths. The concentrations of the pheromone of the shortest path are more than that of all other remaining paths.

2.3 PSO

Particle swarm optimization (PSO) is a computational method based on swarm intelligence algorithm. It was suggested by Kennedy and Eberhart in [15], arising from two different concepts: the idea of swarm intelligence centered on the observation of swarming activities by certain types of animals (such as birds and fish) and the field of evolutionary computation. PSO has been applied to several real-life problems due to its unique searching mechanism and easy implementation. PSO uses agents called particles, which form a swarm flying in search space looking for the best solution. A brief overview of the preceding works considering one or two QoS constraints for searching the optimal route in MANET is presented in next section. We present an overview of existing conventional ACO and PSO-based routing methods.

3 Related Works

Perkins and Bhagwat [3] proposed DSDV routing protocol that provides the shortest path. However, it consumes a large amount of bandwidth and extra routing overhead. Johnson and Maltz [4] proposed DSR routing protocol that is not suitable for large and dynamic networks due to high overhead. Perkins and Royer [2] suggested AODV, suitable for the dynamic network but consumed more bandwidth. Hass and Pearlman [6] proposed ZRP, which reduces the routing overhead. Jacquet et al. [5] proposed OLSR, which also reduces routing overhead. However, all these traditional routing algorithms are not suitable for large and dynamic networks due to computational complexity. Recently, researchers show their interest in using swarm intelligence (SI) for routing in MANET. Ant colony optimization (ACO) [14], particle swarm optimization (PSO) [15], bacterial foraging optimization and artificial bee colony (ABC) are examples of swarm intelligence.

Di Caro and Dorigo [16] proposed AntNet, which takes more time to propagate routing information. Gunes et al. [17] proposed ARA routing algorithm that reduces routing overhead only in low mobility. Hussein and Saadawi [18] presented ARAMA routing algorithm, which considers only delay and hop counts as QoS constraints. Di Caro et al. [19] proposed AntHocNet routing algorithm, which generates high overhead. Asokan et al. [20] proposed ADSR routing algorithm, which generates more routing overhead than DSR. Osagie et al. [21] presented PACONET routing algorithm where PDR is the same as compared to AODV. Wang et al. [22] proposed HOPNET routing algorithm, which produces less routing overhead. Deepalakshmi and Radhakrishnan [23] presented AMQR routing algorithm, which considers PDR, E2ED, RO as QoS constraints. Venkata et al. [24] proposed QAMR routing overhead, which generates more RO than AODV. Al-Ani and Seitz [25] proposed QoRA routing protocol, which consumes more bandwidth and energy. Ziqiang et al. [26] presented PSO based multicast routing algorithm, which produces a multicast tree having minimum cost. Manoj et al. [27] proposed HACOPSO hybrid routing protocol, which produces a multicast tree having the minimum cost and satisfies QoS constraints. Girgis et al. [28] designed a tree-growth based ACO (TGACO) algorithm, which includes delay and jitter as cost function for the multicast tree. Nassir and Abdelghani [29] designed bio-inspired OLSR routing protocols based on GA. It improves the protocol performances in terms of PLR, NRL and E2ED. CSO-AODV [30] routing protocol based on enhancing the Cuckoo Search (CS) technique gives better result in terms of PDR, packet drops, and overhead. Enhanced-Ant-AODV [31] uses combining AODV and ACO ideas to improve QoS constraints and provide better results than AODV, DSR, and Enhanced- DSR in terms of PDR, throughput, and delay.

In the multicast routing, finding the optimal path between source node to destination nodes also needs to meet the QoS constraints like maximum PDR, minimum E2ED, minimum Hc, minimum routing overhead, and maximum throughput. However, large and dynamic network and a combination of two or more QoS constraints, multicast routing problem has become NP-hard problem. Various routing protocols have been developed, but they are not suitable for such this type of network.

Table 1 presents the chronological summary of references used in the literature review.

Table 1 Chronological summary of references used in the literature review

4 Design Methodology

ACO and PSO are two of the most successful swarm intelligence approaches. Because of their self-organizing behavior, optimal path discovery, multipath support and topological change adaptability. ACO and PSO-based multicast routing protocols are appropriate and flexible. The ACO method is more resilient, but the PSO algorithm is a global minimization approach that produces faster results and needs fewer algorithm parameters. That’s why, in order to address the multicast routing problem, we are combining ACO and PSO.

The proposed hybrid ACO-PSO Meta-Heuristics (HAPM) is the output of the fruitful hybridization of the two most popular swarm-based algorithms ACO and PSO in combination with AODV for multicast routing problem. The proposed HAPM routing algorithm improves the quality of service (QoS) of the MANET.

4.1 Pseudo-Code for Searching Fresh Route

The flowchart of the proposed HAPM routing method for searching the fresh route is shown in Fig. 1. In pseudo-code 1, input Zn mobile nodes, Si and ri is the source node and destination node respectively. Apply AODV algorithm initially searches the fresh routes by sending Route Request packets (RREQ) to their adjacent nodes. After getting routes, ACO calculates the probability of each link to select the link having a higher probability than all other connected links to the same node. ACO is the pheromone-based communication where ants deposit pheromone along their routes. This pheromone value is calculated in every intermediate node based on the number of receiving ant packets by neighbour nodes and finally select the path based on higher pheromone value. ACO uses the following Eq. (1) to calculate the probability of the edge to move. After selecting the path having higher probability, ACO uses trust-based path selection based on threshold packet delivery to avoid the collision and congestion problem in the network. When the data delivery by a node is higher than 70% it means that the node is trusted and there is less chance of collision and congestion. But, on the other hand, if the data delivery by a node is less than the threshold then discards that path.

$${\text{p}}_{{{\text{si}}}}^{{\text{k}}} = \frac{{{\text{no of ant e}}_{{{\text{si}}}} }}{{\text{total ants}}}$$
(1)

where Pksi probability where ant k select edge si, esi link between sth node to ith node.

Fig. 1
figure 1

Schematic diagram of the proposed HAPM approach for route search

4.2 Pseudo-Code for Route Break

The flowchart of the proposed HAPM routing method for searching the routes when there is a link break as shown in Fig. 2. In pseudo code 2, after selecting the route, PSO is applied to enhance the network's reliability. When the links break during the data communication, PSO searches the new routes for route re-establishment. When the selected paths break, PSO uses a local search method based on minimum delay (E2ED) and minimum hop count (Hc). Due to less dropping of packets during the re-establishment of routes, the execution time of the proposed HAPM does not overburden even the use of hybridization. PSO uses the following Eq. (2) to calculate gbest.

$$g_{best} = min \, ( \left( {e_{si} } \right) \, \& \, min \, ({\text{H}}_{{\text{c}}} \left( {e_{si} } \right))$$
(2)

where esi Link between sth node to ith node, gbest: Global best position among all particles, E2ED: End-to-End Delay, Hc: Hop Count.

Fig. 2
figure 2

Schematic diagram of the proposed HAPM approach for route break

In this proposed method, Queuing mechanism and acknowledgment-based data rate changing are also used after a little bit of modification. The queue method sets the queue size dynamically based on data arrival in the concerned node. Another technique is acknowledgment-based data delivery to control the flow while the data-sending rate is higher and data drop in between routes. When the source node does not get any acknowledgment from the destination nodes, the source node starts to search the new routes after waiting three times of Round Trip Time (RTT). In the other case, when the source node gets dynamic time acknowledgment from the destination nodes, the source node computes the acknowledgment delay difference and sets the new data rate. The new data rate is inversely proportional to the delay, and thus the proposed work improves the network quality of service (QoS) in MANETs.

The fitness function of HAPM routing method is evaluated by a function that includes PDR, E2ED, and hop count QoS constraints. Fitness function is formulated as:

$$f_{e} = \frac{1}{PDR > 70 \% } + {\text{E}}2{\text{ED}}_{min} + {\text{Hc}}_{min}$$
(3)

where fe Fitness function, PDR Packet Delivery Ratio, E2ED End-to-End Delay, Hc Hop Count.

It is needed to minimize the objective function \(f_{e}\), to improve the QoS by maintaining high PDR, low delay and low hop count.

figure c
figure d

5 Performance Evaluation

5.1 Simulation Background

Numerous simulation tools are available to implement Manet's environment, such as OPNET, NS-2, OPNET++ , GloMoSini, NETSIM and QualNet. The simulator selector depends on the type of networks and protocols supported by that particular simulator. Here, the NS-2 simulator is used to compare the efficiency of MANET routing protocols, which is an open-source simulator developed in C++ and OTCL languages.

Six different network topologies having 50, 60, 70, 80, 90 and 100 nodes are considered for simulation. The available literature also considered the same range of nodes as shown in Table 1. Initially, nodes are randomly placed within the square simulation area of size 1000*1000 sq. m. Nodes move randomly in the simulation area. The total simulation time considered is 480 s. The network pause time is set from 0 to 10 s. Other simulation parameters are shown in Table 2.

Table 2 Simulation parameters

5.2 Performance Measuring Parameters

In this paper, QoS parameters and time complexity are considered to analyze the efficiency of the proposed HAPM multicast routing technique. Considered QoS constraints PDR, E2ED, Hc, RO and TP are discussed in Sects. 5.2.15.2.5 respectively and time complexity is discussed in Sect. 5.2.6.

5.2.1 Packet Delivery Ratio (PDR) (%)

PDR depends on how many packets are sent (Sp) and how many packets are received (Rp). Sp depends on two factors: data rate and path availability. Sp can be used to calculate the efficiency of the routing protocols. The source nodes send more packets in the network when the data rate of the link is high and more paths are available between source nodes and destination nodes. Rp depends on three factors- path availability, queue utilization and bandwidth. The destination nodes get more packets as there are more routes between the source node and destination nodes, proper utilization of buffer queue occurs at intermediary nodes and endpoint nodes, and choose the paths having maximum bandwidth than other paths. PDR is measured as the ratio of entire packets received (Rp) by the receiver to the total packets sent (Sp) by the sender node. PDR is used to calculate the efficiency of the routing protocols. For an efficient routing protocol, PDR should be maximum.

$$PDR \, = \frac{\sum Rp}{{\sum Sp}}*100$$
(4)

5.2.2 End-to-End Delay (E2ED) (ms)

E2ED is the cumulative estimated time to transmit data to the destination nodes successfully. It depends on four factors- communication link, the queuing process of data, channel availability, re-transmission of data packets and link break. E2ED is used to calculate the efficiency of the routing protocols. For an efficient routing protocol, E2ED should be minimum.

$${\text{i.e.}}\quad E2ED \, = \, TD \, + \, Prop\_D \, + \, PD \, + \, QD$$
(5)

where TD Transmission Delay, Prop_D Propagation Delay, PD Processing Delay, QD Queuing Delay.

5.2.3 Hop Count (Hc)

Hc is the basic measurement of the distance in the network. It is the cumulative number of intermediate nodes through which the data has to travel to the destination node. Hc is used to calculate the efficiency of the routing protocols. For an efficient routing protocol, Hc should be minimum.

$${\text{H}}_{{\text{c}}} = \frac{THc}{{Rpackets}}$$
(6)

where THc Total Hop counts, Rpackets Total successfully received packets by the receiver.

5.2.4 Routing Overhead (RO)

RO is the ratio of total packets sent (Sp) to the total control packets sent (Cp). It depends on four factors- Delay, frequent node motion, network congestion and link breakage. RO is used to calculate the efficiency of the routing protocols. For an efficient routing protocol, RO should be minimum.

$$RO \, = \frac{Sp}{{Cp}}$$
(7)

5.2.5 Throughput (TP) (Mbps)

TP is the rate at which data reaches the destination nodes from the sender nodes. It depends on some factors like- Change in topology, network congestion, delay, packet loss. TP is used to calculate the efficiency of the routing protocols. For an efficient routing protocol, TP should be maximum. Mathematically TP can be represented as-

$$TP \, = \frac{Total\, data\, received }{{Transmission\, time}}$$
(8)

5.2.6 Time Complexity

We have extracted the simulation time for analysis of the time complexity. As the algorithm used is randomized, the exact time complexity is hard to achieve.

6 Result and Discussion

6.1 PDR Analysis

Table 3 and Fig. 3 represent the results of PDR for ACO, PSO, Hybrid ACO-PSO, Enhanced-Ant-AODV, CSO-AODV and proposed HAPM routing models with six networks topologies 50, 60, 70, 80, 90 and 100 nodes. From Fig. 3, we observe that PDR increases with the network size for all the methods and the PDR of HAPM are much superior as related to other considered methods The PDR in HAPM is improved by 20, 11, 8, 2 and 0.6% from ACO, PSO, hybrid ACO-PSO, Enhanced-Ant-AODV and CSO-AODV respectively.

Table 3 PDR (%) values of considered algorithms
Fig. 3
figure 3

PDR of considered algorithms with varying node

6.2 E2ED Analysis

Table 4 and Fig. 4 show the results of E2ED for ACO, PSO, Hybrid ACO-PSO, Enhanced-Ant-AODV, CSO-AODV and proposed HAPM routing models with six networks topologies 50, 60, 70, 80, 90 and 100 nodes. From Fig. 4, we observe that E2ED decreases as the network size increases for all the cases. The performance of the proposed HAPM is better as compared to others for E2ED analysis. Delay is also reduced by 54, 47, 40, 49, and 30% from ACO, PSO, hybrid ACO-PSO, Enhanced-Ant-AODV and Cuckoo Search CSO-AODV respectively.

Table 4 E2ED (ms) values of considered algorithms
Fig. 4
figure 4

E2ED of considered algorithms with varying nodes

6.3 Hc Analysis

Table 5 and Fig. 5 show the results of Hc for ACO, PSO, Hybrid ACO-PSO, Enhanced-Ant-AODV, CSO-AODV and proposed HAPM routing models with six networks topologies 50, 60, 70, 80, 90 and 100 nodes. From Fig. 5, we observe that Hc decreases as the network size increases The Hc of proposed HAPM and Hybrid ACO-PSO are almost the same. Hop Count has also been reduced by 90, 87 and 83% from ACO, PSO and Enhanced-Ant-AODV and CSO-AODV respectively.

Table 5 Average hop count values of considered algorithms
Fig. 5
figure 5

Hop count of considered algorithms with varying nodes

6.4 RO Analysis

Table 6 and Fig. 6 show the results of RO for ACO, PSO, Hybrid ACO-PSO, Enhanced-Ant-AODV, CSO-AODV and proposed HAPM routing models with six network topologies 50, 60, 70, 80, 90 and100 nodes. From Fig. 6, we observe that RO of ACO, PSO, Hybrid ACO-PSO, and HAPM increases as just the number of nodes tends to rise. The routing overhead of the proposed HAPM is minimum among all the others. Routing overhead is reduced by 49, 41, 23, 10 and 17% from ACO, PSO, hybrid ACO-PSO, Enhanced-Ant-AODV and CSO-AODV respectively.

Table 6 Routing overhead values of considered algorithms
Fig. 6
figure 6

Routing overhead of considered algorithms with varying nodes

6.5 Throughput Analysis

Table 7 and Fig. 7 show the results of throughput for ACO, PSO, Hybrid ACO-PSO, Enhanced-Ant-AODV, CSO-AODV and proposed HAPM routing models with six networks topologies 50, 60, 70, 80, 90 and 100 nodes. From Fig. 7, we observe that throughput of ACO, PSO, Hybrid ACO-PSO and HAPM increases as the number of nodes increases. The proposed HAPM presents better performance than ACO and PSO methods in terms of throughput. Throughput of HAPM is 40, 28, 11, 8 and 36 more than ACO, PSO, hybrid ACO-PSO, Enhanced-Ant-AODV and CSO-AODV respectively.

Table 7 Throughput (Mbps) values of considered algorithms
Fig. 7
figure 7

Throughput of considered algorithms with varying nodes

6.6 Time Complexity

Table 8 and Fig. 8 show the execution time for ACO, PSO, Hybrid ACO-PSO, Enhanced-Ant-AODV, CSO-AODV and proposed HAPM routing models with six network topologies 50, 60, 70, 80, 90 and 100 nodes. From Fig. 8, we observe that the execution time of Hybrid HAPM is more than ACO and PSO but less than Hybrid ACO-PSO. The time complexity is comparable to other considered algorithms. The hybridization does not overburden the time complexity in our implementation.

Table 8 Execution time (ms) of considered algorithms
Fig. 8
figure 8

Execution time of considered algorithms with varying nodes

7 Conclusion

The novelty of this work is the efficient hybridization of the two most popular swarm-based algorithms ACO and PSO in combination with AODV for solving the multicast routing problem without increasing the complexity. The main contribution of this work is-

  1. 1.

    Appropriate use of conventional routing technique AODV that can perform very well for the static network, for broadcast in the initial phase.

  2. 2.

    The use of great optimizer ACO that explores better paths in less time, to choose the optimal route with the trust-based path feature as presented in Sect. 4.

  3. 3.

    The use of PSO for selecting alternative paths is based on the minimum delay and minimum hop count to provide remedies in case of a link break.

The number of ants decides the probability of selecting the paths in ACO. When the link breaks, PSO uses minimum delay and minimum hop count to calculate gbest and select the efficient node with low velocity to provide new routes. The efficiency of the proposed HAPM multicast routing is calculated by five QoS constraints namely PDR, E2ED, Hc, routing overhead and throughput and compared to ACO, PSO and Hybrid ACO-PSO, Enhanced-Ant-AODV and CSO-AODV. From the result and discussion section, we can conclude that out of the considered algorithms, the proposed HAPM routing algorithm gives better performance. The results confirm that the PDR and throughput of the proposed algorithm is increased by 20% and 8% respectively than Enhanced-Ant-AODV, which ranks better than other considered techniques. The delay, routing overhead and hop count of the proposed HAPM is reduced by 49%, 10%, and 83% respectively than Enhanced-Ant-AODV. This work can be extended in the future to support some other QoS constraints like privacy and security.