1 Introduction

A wireless sensor network (WSN) typically consists of tens to hundreds or thousands of relatively small nodes, each equipped with a sensing device. Most sensor networks use wireless communication, and the nodes are often battery powered. Their limited resources, restricted communication capabilities, and constrained power consumption demand that efficiency be high on the list of design criteria [1]. As a result of the advances in wireless communication and electronics technologies, wireless sensors are getting smaller, cheaper, and more powerful. Due to the fast development of the microprocessor, sensor and transceiver, there is great applications foreground about WSNs. Also since we often use these networks in rough and inaccessible environments such as battlefields, volcanoes, forests and so on, normally there is low possibility to change or recharge the defective or dead nodes. Hence, the main difference between WSNs and other classic wireless networks is that WSNs are hypersensitive and vulnerable to energy [2].

The limit energy is the key issue influencing WSNs performance. So, how to use the limit energy of WSNs to maximize the life of WSNs becomes the all-important problem of routing design [3]. Most of the routing algorithms for sensor networks require location information for sensor nodes. In most cases location information is needed in order to calculate the distance between two particular nodes so that energy consumption can be estimated [4]. Therefore, location information can be utilized in routing data in energy efficient way.

A family of ant colony optimization (ACO) algorithms has been successfully applied to solve some routing problems in WSN [5]. Over the last two decades, ant colony optimization has emerged as a leading Meta heuristic method for the solution of combinatorial optimization problems [4].

In this paper, we proposed a routing algorithm for wireless sensor network based on ant colony optimization with special parameters. The main objective of the algorithm is to maximize the network lifetime by carefully defining link cost as a function of node remaining energy and the required transmission energy using that link. We call the proposed algorithm as life time aware routing algorithm for wireless sensor networks (LTAWSN) and compare it with energy aware ant colony routing algorithms for the routing of wireless sensor networks (EAACA) that presented in [6], ant colony optimization-based location-aware routing algorithm for wireless sensor networks (ACLR) that presented in [5, 7], and traditional ant colony routing algorithm ACA, and see that proposed algorithm reduce consumption of energy in comparison of these routing algorithms, obtains more balanced transmission among the node, therefore extends the network lifetime.

The rest of this paper is organized as follows. In Sect. 2, some of the recent researches about ant colony routing algorithm in wireless sensor networks are presented. In Sect. 3, the proposed approach is described. Section 3 represents the simulation parameters. Section 4 discusses about the simulation results and finally Sect. 5 concludes the paper.

2 Related work

Some of the recent researches about ant colony routing algorithm in wireless sensor networks are presented as follows:

The authors in [5] proposed a routing algorithm for wireless sensor networks using ant colony optimization that present a comparison of two ant colony-based routing algorithms, taking into account current amounts of energy consumption under different scenarios and reporting the usual metrics for routing in wireless sensor networks.

In [6], the authors proposed an energy aware ant colony algorithm for the routing of wireless sensor networks that when the ant chooses the next node, not only the distance of sink node, but also the residual energy of next node and the path of the average energy are taken into account. This algorithm was compared with traditional ACA algorithm and gets more improvement in balance the energy consumption of nodes and extends the network life time.

In [8], the authors proposed a fair comparison of low energy adaptive clustering hierarchy (LEACH) and ant colony applied on LEACH on the basis of the death of first node in the wireless sensor networks and is shown that when the ant colony algorithm is applied on existing LEACH protocol, the network lifetime has improved.

In [9] first, a grade table is build and referred to generate several possible routing paths. Then the ACO explores these paths to reduce the power consumption of the nodes.

In [10] each node calculates the amount of its own energy level and then sums up the energy level of the remaining network. With the help of this comparison the node decides whether to become the cluster head or not for that round. The nodes with higher energy are more likely to become cluster heads. The drawback of this approach is that it requires extra communication of nodes with base station which in turn needs more energy.

In [11] the authors proposed an energy-efficient ant-based routing algorithm (EEABR) for flat and location awareness architectures. In this proposal, the ants look for less energy consuming path meanwhile reducing the size of the ants during the communication among nodes.

In [7] the authors proposed the called ant colony optimization-based location-aware routing algorithm (ACLR) which is a flat and location awareness algorithm. It fuses the residual energy and the global and local location information of nodes, to define the probability to select the next node for the ants.

In [12] the authors proposed an ant colony optimization algorithm and apply it to energy control and congestion control on wireless sensor network route. In this algorithm, the pheromone and the energy of the node are combined to affect the pheromone consent ration in optimization path, which can avoid network congestion and fast consume of energy of individual node. Then it can prolong the lifecycle of the whole network.

The authors in [13] are proposed a predication mode routing algorithm based on ACO (PRACO) to achieve the energy-aware data-gathering routing structure in wireless sensor networks. This algorithm checks the load factor in heuristic factor and proposes a novel pheromone updating rule. In this algorithm artificial ants can foresee the local energy state of networks and the corresponding actions could be adaptively taken to enhance the energy efficiency in routing construction.

The authors in [14] proposed a new energy efficient routing algorithm for wireless sensor networks consisting routing and clustering phases. The simulation results showed that this algorithm in comparison of other algorithms extends network lifetime and reduce energy consumption. However, in this paper the dynamic scenario and fault tolerant aspects of the sensor network had not considered by the authors.

A particle swarm optimization based routing algorithm which maximizes the lifetime of the wireless sensor networks is represented in [15]. The main idea of this approach is minimizing the energy consumption of gateways near to the base station and distributing the routing load over them. The proposed approach are compared with two other algorithm based on number of dead sensor nodes, standard deviation of remaining energy of cluster heads and number of data packets received by the base station.

A cluster based approach for extending the network lifetime is proposed in [16]. In this paper also new coverage importance cost metrics CI for different application coverage problems are introduced. The simulation results are shown that this approach compared with previous protocols can construct a reasonable clustering network topology with lower energy consumption and better coverage performance that extend the network lifetime.

“The authors in their paper [17] propose a method based on a hybrid genetic algorithm and aims to accomplish the establishment of a maximal number of connections with the minimal number of isochronous channels. The authors in [18] present a comprehensive list of major known security threats within a cognitive radio network (CRN) framework.

The authors in [19] provide an overview of topology control techniques. In their work existing topology control techniques is classified into two categories: network coverage and network connectivity. The possibility of exploiting partially overlapped channels (POCs) by introducing a novel game theoretic distributed CA algorithm is explored in [20]. The proposed algorithm in this paper outperforms both the conventional orthogonal channel approach and the recent heuristic CA algorithms using POC.

A novel QoE-driven channel allocation scheme for SUs and cognitive radio networks (CRN) base station (BS) is proposed in [21]. In this paper, the historical QoE data under different primary channels (PCs) are collected by the SUs and delivered to a Cognitive Radio Base Station (CRBS). The authors in [22] propose a survey aiming at revealing insights into the following three key questions: First, what are the meaningful algorithm design problems for DC-WSNs? Second, which problems have been studied and which have not? And finally, what are the essential techniques behind the existing solutions?

The authors in [23] survey the state-of-the-art routing metrics for cognitive radio networks. They start by listing the challenges that have to be addressed in designing a good routing metric for cognitive radio networks. The authors in [24] investigate the fundamental performance limits of medium access control (MAC) protocols for particular multi-hop, RF-based wireless sensor networks and underwater sensor networks.

To combat against attacks on encrypted protocols, the authors in [25] propose an anomaly-based detection system by using strategically distributed monitoring stubs (MSs). The proposed approach focuses on both Detection and trace back in the MS level. A novel compressive data collection scheme for wireless sensor networks is proposed in [26]. The authors adopt a power-law decaying data model verified by real data sets and then propose a random projection based estimation algorithm for this data model. An online, multi-objective optimization (MO) algorithm to efficiently schedule the nodes of a wireless sensor network (WSN) and to achieve maximum lifetime is proposed in [27].

The authors in [28] propose MAPCloud as a hybrid, tiered cloud architecture consisting of local and public clouds. They show how it can be leveraged to increase both performance and scalability of mobile applications. The authors in [29] propose the use of a computational intelligence approach—a reinforcement learning algorithm (RLA)—for optimizing the routing in asynchronous transfer mode (ATM) networks based on the private network-to-network interface (PNNI) standard. A cellular computing model in the slime mold physarum polycephalum is proposed in [30] to solve the Steiner tree problem which is an important NP-hard problem in various applications, especially in network design.

The authors in [31] argue that by carefully considering spatial reusability of the wireless communication media, onw can tremendously improve the end-to-end throughput in multi-hop wireless networks. The authors in [32] present an overview of body area networks, and a discussion of BAN communications types and their related issues. They also provide a detailed investigation of sensor devices, physical layer, data link layer, and radio technology aspects of BAN research.

The authors in [33] study the properties of trust, propose objectives of IoT trust management, and provide a survey on the current literature advances towards trustworthy IoT. A new approach to the design of S-model ergodic reinforcement learning algorithms is introduced in [34].The authors in [35] propose a directional routing and scheduling scheme (DRSS) for green vehicle DTNs by using Nash Q-learning approach that can optimize the energy efficiency with the considerations of congestion, buffer and delay.

The paper [36] is analyzed the security problems of three layers of IoT containing perception layer, transportation layer and application layer, separately. The authors in [37] consider the assignment strategy with topology preservation by organizing the mesh nodes with available channels, and aim at minimizing the co-channel interference in the network. A novel prediction-based data collection protocol is proposed in [38], in which a double-queue mechanism is designed to synchronize the prediction data series of the sensor node and the sink node, and therefore, the cumulative error of continuous predictions is reduced.

A multi-constrained QoS multicast routing method using the genetic algorithm using the available resources and minimum computation time in a dynamic environment is proposed in [39].The study presented in [40] propose a novel vehicular clustering scheme integrating hierarchical clustering on the basis of classical routing algorithm. Simulation results show that the new scheme efficiently mitigates the hot spot problem in WSN and achieves much improvement in network lifetime and load balance compared to the old algorithm which is Direct, LEACH and DCHS. The authors in [41] exploits a biological model of physarum to design a novel biology-inspired optimization algorithm for MEP.

A reliable multicast protocol, called CodePipe, with energy-efficiency, high throughput and fairness in lossy wireless networks is proposed in [42].The notion of multi-objective path selection in mobile ad hoc networks (MANET) using an evolutionary fuzzy cost function to deliberately compute cost adaptively is described in [43].A reliable multicast protocol, called CodePipe, with advanced performance in terms of energy-efficiency, throughput and fairness in lossy wireless networks is proposed in [44].The work in [45] stems from the insight that, recent research efforts on open vehicle routing (OVR) problems, an active area in operations research, are based on similar assumptions and constraints compared to sensor networks.

The article [46] presents an overview of current standards and research activities in internet of things (IoT) field in both industry and academia. The authors in [47] investigate the application of compressed sensing (CS) to data collection in wireless sensor networks aiming at minimizing the network energy consumption through joint routing and compressed aggregation. The authors in [45] proposed both a centralized heuristic to reduce its computational overhead and a distributed heuristic to make the algorithm scalable for large-scale network operations. They also develop EDAL to be closely integrated with compressive sensing, an emerging technique that promises considerable reduction in total traffic cost for collecting sensor readings under loose delay bounds.

Various remarkable techniques toward green mobile networks are listed in [48]. The authors mainly target mobile cellular networks in their article. The authors in [49] exploit cross-layer optimization techniques that extend dynamic source routing (DSR) to improve its routing energy efficiency by minimizing the frequency of recomputed routes. The authors in [50] study the routing games in general networks where each player selfishly selects a path that minimizes the sum of congestion and dilation of the player’s path. In article [51], a novel hierarchical data aggregation method using compressive sensing (HDACS) is presented, which combines a hierarchical network configuration with compressive sensing (CS).

The authors in [52] consider an alternative, highly agile approach called backpressure routing for delay tolerant networks (DTN), in which routing and forwarding decisions are made on a per-packet basis. Finally, in [53], the protocols and application of delay tolerant networks is discussed.”

Compared with presented works in this area, the proposed method in this paper uses two energy parameters in its competency function. The first competency function captures the remaining energy levels of neighborhood nodes in next-hop selection process, while the second one focuses on the consumed amount of energy in each neighborhood node. Since, the proposed ant colony optimization based algorithm takes more attention to energy parameters leading to prolonging the lifetime of the network.

3 The proposed ACO based routing algorithm (LTAWSN)

In this section, we want to propose the idea behind LTAWSN algorithm. First, a traditional ant colony optimization based routing algorithm for WSNs is presented. Next, EAACA algorithm is presented. Finally, the LTAWSN routing algorithm is proposed that tries to provide further improvements in energy consumption and extends the network lifetime.

3.1 Basic ACO based routing for WSNs (ACA)

Wireless sensor networks (WSN) can be represented by a weighted undirected connectivity-graph G (V, E).Where V is the set of sensor nodes and E is the set of links between these nodes. Any node in WSN area has a set of neighbors that are placed in wireless communication coverage of the node. We use the Euclidean distance for calculate the distance between two node in WSN area. The Euclidean distance between i and j, is calculated by:

$$d_{ij} = \sqrt {(x_{i} - x_{j} )^{2} + (y_{i} - y_{j} )^{2} } .$$
(1)

where \(i = \left( {x_{i} ,y_{i} } \right),j = \left( {x_{j} ,y_{j} } \right)\).

Ant-based routing algorithm use ant-like control packets to discover routes between pairs of nodes and to optimize existing routing information. These ants are query packets that try to establish all valid paths from source node to the destination node. The algorithm assumes that the sensor network has only a single sensor destination and makes use of two kinds of ants, forward ants that travel from the source node to the destination node, exploring new paths and gathering information, and backward ants, that travel back to the sources from the destination to update the information in each sensor node as they move [5, 6, 12, 13, 54, 55]. They do this work with release pheromone to established path. Pheromone values determine how ants originating at a source node, and bound for a destination node will move from one node to the next along a multi hop path. In each travels each of forward ants must select next-hop node from neighbor candidate list to establish its paths. The neighbor candidate list for each node is comprised of nodes that are placed in wireless communication coverage of the node. The probability of an ant moving from any current node i to another one j in traditional ACO based routing algorithm is given by [5, 7, 55]:

$$P_{ij}^{k} (t) = \frac{{[\psi_{ij} (t)]^{\alpha } \times [\varepsilon_{ij} (t)]^{\beta } }}{{\sum\limits_{{s_{l} \in C(s_{i} )}} {[\psi_{il} (t)]^{\alpha } \times [\varepsilon_{il} (t)]^{\beta } } }}.$$
(2)

where \(P_{ij}^{k} (t)\) is the transfer packet probability of node i to another one j for ant k in time t, \(\psi_{ij} (t)\) is the density of pheromone accumulated on the path segment i and j by ants in time, \(\varepsilon_{ij} (t)\) is the information of searching for that path segment, and α, β are the two constant exponents associated with the algorithm. The location function, \(\varepsilon_{ij} (t)\) proposed by traditional routing algorithm is defined as follows [5, 7, 55]:

$$\varepsilon_{ij} = \frac{1}{{d_{ij} }}$$
(3)

where d ij is the Euclidean distance between node i and node j. If the ant finds the destination node, a path between source node and destination node is established. Then the destination node generates a response packet (backward ant). The backward ant goes back to the sending node along the reverse path, and release pheromone while it returns. The pheromone \(\psi_{ij} (t)\), will be update at the end of each searching period in the way of [5, 7, 55]:

$$\psi_{ij} (t + 1) = (1 - \rho ) \times \psi_{ij} (t) +\Delta \psi_{ij} (t).$$
(4)

where ρ is the pheromone evaporation factor, and \(\rho \in (0,1)\), and \(\Delta \psi_{ij} (t)\), is the pheromone increment on the route between node i and node j in the current round travel, That is sum of released pheromone by ant k in wireless link between node i and node j:

$$\Delta \psi_{ij} = \sum\limits_{k = 1}^{n} {\Delta \psi_{ij}^{k} }$$
(5)

\(\Delta \psi_{ij}^{k}\) in the traditional algorithm, if ant k choose (i, j) is defined as follows [5, 7, 55]:

$$\Delta \psi_{ij}^{k} = \frac{A}{{L^{k} }}.$$
(6)

where L k is the length of path founded by ant k and A is a constant. This algorithm repeats until certain number of iteration for certain number of ants. This loop performed until algorithm reaches a certain number of iterations for certain number of ants.

3.2 An energy aware ant colony algorithm for routing of wireless sensor networks (EAACA)

In EAACA [6], for calculating the packet transfer probability to the next hop neighbor, the residual energy of node is considered. Ants are launched from a source node and move towards destination node, hopping from one node to the next. Ant k in node i choose the next node j to move to, according to a probabilistic decision rule:

$$P_{ij}^{k} (t) = \frac{{[\psi_{ij} (t)]^{\alpha } \times [\mu_{ij} (t)]^{\beta } }}{{\sum\limits_{{s_{l} \in C(i)}} {[\psi_{il} (t)]^{\alpha } \times [\mu_{il} (t)]^{\beta } } }}.$$
(7)

where\(P_{ij}^{k} (t)\), \(\psi_{ij} (t)\) are transfer packet probability and pheromone metric, respectively. \(\eta_{ij} (t)\) is the energy function proposed by EAACA and is defined as follows:

$$\mu_{ij} = \frac{1}{{E - e_{j} \left( t \right)}}$$
(8)

where E is the initial energy of nodes and e j (t) is the actual energy of node j in time t.

In EAACA, the pheromone \(\psi_{ij} (t)\), will be update at the end of each searching period in the way of [6]:

$$\psi_{ij} (t + 1) = (1 - \rho ) \times \psi_{ij} (t) + \frac{{\Delta \psi_{ij} (t)}}{{\omega .hop_{{count_{k} }} }}$$
(9)

where \(hop_{{count_{k} }}\) represents the number of nodes that ant k visited them in network from source node to destination node that is equal to L k in traditional algorithm and \(\omega\) is a constant.

EAACA, not only considers the distance of paths, but also consider the energy level of paths [6]; so, the pheromone concentration is improved as follow [6]:

$$\Delta \psi_{ij} = c \times (hop_{\hbox{max} } - hop_{{count_{k} }} ) \times E_{{avg_{k} }} .$$
(10)

where \(hop_{\hbox{max} }\) represents the maximum allowed number of hops for ants in network, \(hop_{{count_{k} }}\) represents the number of hops for ant k in network from source node to destination node (the number of nodes visited by ant k), c is a constant and \(E_{{avg_{k} }}\) is average energy of nodes that ant k is visited them.

In EAACA algorithm, is assumed that, the concentration of pheromone cannot be reducing to zero or negative value and pheromone become no lower than default value [6]. During the process of finding path to destination node, default value of pheromone ensures that every neighbor could be the next node [6].

3.3 An ant colony optimization based routing algorithm for extends network lifetime in wireless sensor networks (LTAWSN)

In this section, we propose an ant colony based routing algorithm with special parameters in competency function that try to reduce energy consumption of network nodes and also obtains more balanced transmission among the node and prolong the network lifetime. Low energy consumption and long lifetime are the most basic conditions for good performance of WSNs. Therefore, it is very necessary to put the factor of energy consumption into routing design.

In our schemes we aim at building a system that would ensure that total energy dissipation is divided equally among all the nodes of the network. In order to optimize of the routing quality and the energy consumption, it is need to achieve the tradeoff between route hops and the energy consumption.

In LTAWSN algorithm, the neighbor candidate list for each node is comprised of nodes that are placed in wireless communication coverage of the node and also are nearer to destination node in comparison of current node.

Since energy metric is one of the important parameter in competency function, we use two energy metrics in this function that each of them has owns definition. At the other hands, based on this fact that the nearer node to destination node in neighbor candidate list for each current node, with higher probability, can reach to destination node with lower number of hops, we consider a spatial parameter in probability function of LTAWSN algorithm. This parameter considers distance of candidate list nodes to destination node and nodes that are nearer to destination node, with higher probability are selected. The probability function of LTAWSN algorithm for choice of the next-hop node in current travel is made to this probabilistic decision rule:

$$P_{ij}^{k} (t) = \frac{{[\psi_{ij} (t)]^{\alpha } \times [\eta_{ij} (t)]^{\beta } \times [\eta^{\prime}_{ij} (t)]^{\gamma } \times [\varepsilon_{ij} (t)]^{\delta } }}{{\sum\limits_{{s_{l} \in C(i)}} {[\psi_{il} (t)]^{\alpha } \times [\eta_{il} (t)]^{\beta } \times [\eta^{\prime}_{il} (t)]^{\beta } \times [\varepsilon_{il} (t)]^{\delta } } }}.$$
(11)

where \(P_{ij}^{k} (t)\), \(\psi_{ij} (t)\) are transfer packet probability and pheromone metric, respectively, \(\alpha ,\beta ,\gamma ,\delta\) are the control parameters and \(\eta_{ij} (t)\) is the first energy metric that has the following definition:

$$\eta_{ij} (t) = \frac{{e_{j} (t)}}{{\sum\limits_{{s_{l} \in C(i)}} {e_{l} (t)} }}$$
(12)

This equation cause that the node with higher energy level in candidate list, has higher probability to selection. \(\eta^{\prime}_{ij} (t)\) is the second energy metric that defines as follow:

$$\eta^{\prime}_{ij} (t) = \frac{{\left( {E - e_{j} (t)} \right)^{ - 1} }}{{\sum\limits_{j \in C(i)} {\left( {E - e_{j} (t)} \right)^{ - 1} } }}$$
(13)

the distance between node consumption of energy in candidate list, has higher probability to selection. These two parameters in competency function of LTAWSN algorithm ensure that total energy dissipation is divided equally among all the nodes of the network.

In most routing algorithms location information is needed in order to calculate the distance between two particular nodes so that energy consumption can be estimated. Therefore, location information can be utilized in routing data in an energy efficient way. The location function proposed in LTAWSN, ε ij is defined by:

$$\varepsilon_{ij}^{{}} = \frac{{d_{jd} }}{{\sum\limits_{{s_{l} \in C(i)}} {d_{ld} } }}.$$
(14)

where d jd is the distance between node j (that is in candidate list of node i) and destination node d. This equation cause that the nearer node to destination node in neighbor candidate list, has higher probability for selection as a next-hop node in current travel.

If there is not any next-hop neighbor to select, then ant k returns to the previous-hop node and that node is added to the contraindication list of the ant k.

After all ants have completed their tour, each ant deposits a quantity of pheromone given in this equation:

$$\Delta \psi_{ij}^{k} = \frac{{\left( {hop_{\hbox{max} } - hop_{{count_{k} }} + \upsilon } \right)^{1.5} \times E_{{avg_{k} }} }}{{hop_{{count_{k} }} }}.$$
(15)

where \(hop_{\hbox{max} }\), \(hop_{{count_{k} }}\) and \(E_{{avg_{k} }}\) have the same meaning as that of (10). The amount of pheromone on each connection of the nodes in LTAWSN algorithm is defined as (4).

In this algorithm, we also assume that, the concentration of pheromone cannot be reducing to zero or negative value and pheromone become no lower than default value.

After definition of design issue of proposed algorithm, LTAWSN algorithm is defined as follow:

figure c

4 Simulation results

For all algorithms WSN nodes are deployed in certain area uniformly. The parameters used in stimulation, are shown in Table 1. In this table, R is the wireless communication radius of sensors, ρ is pheromone evaporation rate, \(\psi_{ij} (0)\) is the initial pheromone level for every pair of adjacent nodes, E is the initial energy of nodes, Et is the energy consumption per bit transmitted and Er is the energy consumption per bit received. On the assumption that, m sensor nodes are randomly laid in the monitor area of the simulation model and the value of m is among 125–300, analyses of simulation results.

Table 1 Simulation parameters for the network with size of 100 × 100 m2

The parameters values of ACA algorithm is: \(\alpha = 1,\beta = 1\), ACLR is: \(\alpha = 1,\beta = 1,\gamma = 1\). The parameters values of EAACA algorithm established as follow: \(\alpha = 1.5,\beta = 1.5\) and parameters values of the proposed algorithm established as follow: \(\alpha = 1.5,\beta = 1.5,\gamma = 1.5,\delta = 2,\vartheta = 0.001\).

The simulation mainly compares new proposed routing algorithm LTAWSN, with the EAACA routing algorithm, ACLR routing algorithm and traditional ACO routing ACA in the average energy consumption of the network.

The average energy consumption metric refers to the total used energy in the network in the progress of finding the optimal route from the source node to the destination node. To be fair in the comparison, we use the energy consumption per bit that is shown in [56], for the transmitting and receiving data in each node.

Average energy consumption is the basic standards to measure the merits of routing algorithms [5]. The result of energy consumption for independent experiments of these algorithms, that each performs on networks with different nodes is shown in Fig. 1. The lifetime of these networks are shown in Fig. 2.

Fig. 1
figure 1

Average energy consumption for the network with size of 100 × 100 m2

Fig. 2
figure 2

Network lifetime for the network with size of 100 × 100 m2

To show validity of the proposed algorithm, two simulations with different network size are presented. The result of energy consumption for the network with another topology (size of 200 × 200) is represented in Fig. 3. Also, Fig. 4 depicts the result of energy consumption for another network size (size of 500 × 500) and topology. The parameters used in these two simulations are shown in Tables 2 and 3 respectively.As represented in Fig. 3, in this simulation the number of nodes has varied from 200 to 400 nodes. In Fig. 4, the number of nodes is considered from 330 to 550 nodes. The simulation results indicate that average energy consumption is reduced in the proposed method. Simulation results indicate that the proposed method has the best performance in all investigated topologies. It can be seen that the average energy consumption of nodes in proposed algorithm is lower than that of EAACA, ACLR and ACA algorithms. The energy consumption of the network is saved to extend the network lifetime. Therefore, proposed algorithm makes the network live longer and has higher reliability.

Fig. 3
figure 3

Average energy consumption for the network with size of 200 × 200 m2

Fig. 4
figure 4

Average energy consumption for the network with size of 500 × 500 m2

Table 2 Simulation parameters for the network with size of 200 × 200 m2
Table 3 Simulation parameters for the network with size of 500 × 500 m2

5 Conclusion

In this paper, we propose a new ACO based routing algorithm that use spatial parameters in its competency function and a new pheromone update operator was designed to integrate energy consumption and hops into routing choice. In our schemes we aim to build a system that would ensure that total energy dissipation is divided equally among all the nodes of the network. The results are shown that this new proposed algorithm in comparison of EAACA, ACLR and ACA routing ACO based algorithm obtains more balanced transmission among the node, also can reduce the energy consumption of the routing and, therefore extends the network lifetime and increase the system efficiency.