Next Article in Journal
How Uncertain Information on Service Capacity Influences the Intermodal Routing Decision: A Fuzzy Programming Perspective
Next Article in Special Issue
IPv6 Convergence for IoT Cyber–Physical Systems
Previous Article in Journal
Algorithms for Optimization of Processor and Memory Affinity for Remote Core Locking Synchronization in Multithreaded Applications
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Inspired from Ants Colony: Smart Routing Algorithm of Wireless Sensor Network

by
Saleh Bouarafa
1,*,
Rachid Saadane
2 and
Moulay Driss Rahmani
1
1
LRIT, Associated Unit to CNRST (URAC No 29), Faculty of Sciences, Mohammed V University in Rabat, B.P.1014 RP Rabat, Morocco
2
SIRC/LAGeS-EHTP, Hassania School of Public Labors Km 7 EI Jadida Road, B.P 8108 Casablanca Morocco, Morocco
*
Author to whom correspondence should be addressed.
Information 2018, 9(1), 23; https://doi.org/10.3390/info9010023
Submission received: 14 December 2017 / Revised: 11 January 2018 / Accepted: 17 January 2018 / Published: 22 January 2018
(This article belongs to the Special Issue Machine to Machine Communications and Internet of Things (IoT))

Abstract

:
In brief, Wireless Sensor Networks (WSNs) are a set of limited power nodes, used for gathering the determined data of an area. Increasing the lifetime is the main challenge to optimize WSNs routing protocols, since the sensors’ energy in most cases is limited. In this respect, this article introduces a novel smart routing algorithm of wireless sensor networks, consisting of stable nodes randomly dispersed, and this approach is inspired from ant colonies. The proposed algorithm takes into consideration the distance between two nodes, the chosen path length and the nodes’ residual energy so as to update the choice probability of the next node among the neighbouring nodes, contrary to several routing algorithms; on the one hand, the nodes are aggregating data of their predecessors and sending to all to their successors; on the other hand, the source is almost always changed in each iteration. Consequently, the energy consumption is balanced between the nodes. Hence, the network lifetime will be increased. Detailed descriptions and a set of simulation using Matlab is provided to measure the network lifetime and the energy consumed by nodes of the proposed approach are presented. The replications’ consequences of simulations prove the success of our future routing algorithm (SRA).

1. Introduction

In recent years, smaller electronics devices have appeared, so much so that the different wireless networks have emerged. The improvement of data rates and the reduction of energy consumption are the challenges to improve these networks. Higher data rates are required as internet access becomes more popular. That is why, the allocation of more bandwidth, or the processing of advanced signals with spectral efficiency are required. As a matter of fact, the major problem in wireless networks was still the energy consumption [1]. Some emerging wireless network applications are designed to require low data rates. Therefore, the energy consumption concern is greater than that of the high data rates. The wireless sensor network is another type of emerging wireless network where low power consumption is more critical than high data rates. Actually, wireless sensor networks have become a growing field of research and application, with the advancement of information technology [2,3,4,5,6,7]. A sensor array is composed of numbers of sensor nodes scattered randomly in certain regions. These sensor nodes have detection, communication, calculation and power functions [8,9,10,11]. WSNs have been applied in many different applications such as vehicle tracking system, traffic monitoring, medical applications, etc. With built-in detection parts in the nodes, a WSN can monitor and collect information or data in the deployed area. Collected data packets deliver source nodes to the single receiving node, which will cost energy. WSNs give prominence to more simple deployment and good flexibility of devices. With the fast technological development of sensors, which will greatly improve the efficiency and reliability of infrastructure systems, WSNs will evolve into the key technology for Internet of Things (IoT). Among the main concerns related to applications of IoT is extending the battery life of Machine to Machine (M2M) mobile devices to make the IoT system work for a longer period. As a result, in the vast mass of applications of the Internet of Things, energy-efficient communication and stable energy supply have become the priority objectives in the allocation of resources [12]. Several protocols have been implemented—for example, the cluster-based LEACH (Low Energy Adaptive Clustering Hierarchy) [8], which is based on cluster and Directed Diffusion (DD). ACO (Ant Colony Optimization) is a widespread meta-heuristic approach to solving combinatorial optimization problems such as the asymmetric travelling salesman problem, vehicle routing, WSN routing, etc. This algorithm is inspired by the behaviour of ant colonies. Due to the limited power supply, maximizing the lifetime of a WSN is crucial for the performance of the routing protocol. In this article, ACO is adopted and improved to design an intelligent routing algorithm to maximize the lifetime of a WSN. The remainder of the paper is planned as follows. Firstly, Section 2 presents the ant colony optimization algorithm: the ant system and the ant colony system. Secondly, Section 3 describes the algorithm proposed. Thirdly, the results of the simulation are offered and discussed in Section 4. Finally, Section 5 concludes the paper.

2. Ant Colony Optimization Algorithm

Ant colony optimization [13] works in an iterative way. A number of ants are used at each iteration. AS or ant system is the first algorithm in the ACO algorithm category. In the last few decades, there has been a lot of research that uses the ant colony such as: elitist strategy for ant system (EAS), AS_rank, Max-Min AS, or ant colony system (ACS) [14]. In AS, after ants have made their tours, in the process of looking for food, each ant puts out pheromones to form pheromone tracks. After the ants deposit the pheromones, the pheromone parts evaporate over time. Hence, the shorter crossed route by an ant, will have more amount of deposited pheromone. Generally, each ant chooses with more probability the road with more pheromone. So, the long paths receive less pheromones than the short path. The ACS improves AS by making the introduction of a local update of pheromones in the process of building the tour. All the ants perform the update of local pheromone after each construction step. At the end of each iteration, only one ant applies the update of the off-line pheromone, which can be either the best iteration, or the best one so far. The resolution regulation used by the ants throughout the creation procedure is an added essential divergence among ACS and AS. As a matter of fact, ACS use the rule of pseudo random proportional. In our article we will add the residual energy parameter. Hence, an arc belonging to a short path and having more residual energy for these two edges will be more likely to be chosen than the other edges even if they are too short because they have less residual energy.

3. Proposed Algorithm

This part describes our Smart Routing Algorithm (SRA): that all the nodes communicate with each other, if the first node detects an event it will look for its successor, it broadcasts the request message. If a neighbour node receives that request message, it will store the ID of the sender in its list-neighbour firstly and then broadcast its own power and receiver ID and its positioning (x,y) as a response, and then wait for an acknowledgement, if the acknowledgement is received. Hence, these nodes, sender and receiver, are connected and can communicate between them. When all the recipients finish doing the same thing, the node that will send data has its neighbours list, it calculates the probability, p i , j , for each candidate j belongs to the list of neighbouring nodes, and then executes line 7 to line 14 of Algorithm 1 for choosing its next best node and sends data to it. After that, the next node receives data, aggregates it with its own and sends all data , using the SRA (Smart Routing Algorithm), to its successor, and this process is repeated until the data arrives at the base station. The first iteration is counted when the data arrives at the base station. This mechanism is repeated until some number of iterations; in our case, we stop at 50 iterations (the nodes are all alive).
The probability that node i sends to node j is given by Equation (1):
p i , j = ( τ i , j ) α · ( η i , j ) β · ( E r e s ( i ) ) γ · ( E r e s ( j ) ) δ ( τ i , j ) α · ( η i , j ) β · ( E r e s ( i ) ) γ · ( E r e s ( j ) ) δ ,
where:
  • τ i , j is the pheromone amount on edge ( i , j ) ,
  • η i , j is is the opportunity of the edge ( i , j ) ,
  • α is a variable to adjust the effect of τ i , j ,
  • β is a variable to adjust the effect of η i , j ,
  • E r e s ( i ) is the residual energy of node i,
  • E r e s ( j ) is the residual energy of node j,
  • γ is a variable to adjust the effect of E r e s ( i ) ,
  • δ is a variable to adjust the effect of E r e s ( j ) .
The pheromone quantity is renewed and applied to the retraced arcs (backtracking) as shown in the Equation (2):
τ i , j = ( 1 ϱ ) τ i , j + Δ τ i , j ,
where:
  • ϱ is the evaporation rate of pheromones,
  • Δ τ ( i , j ) is the amount of pheromone put, generally offered by:
    Δ τ ( i , j ) = 1 L , if   node   i   sends   data   to   node   j , 0 , otherwise ,
where:
  • L is the length of the path,
    The opportunity of the edge ( i , j ) is given by this equation
    η ( i , j ) = 1 δ ( i , j ) .
In this work, the WSN nodes send collaboratively their captured data to the sink. We employ the dissipation energy model [15,16] = as shown in Figure 1. In this figure, E T ( x ) ( k , δ ) is the energy expended for the transmission of k bits along a distance δ , and E R x is the energy expended to receive a k-bit of data. The element E e l e c depends on modulation, filtering, digital coding, and the spreading of the signal [16]. This element is the energy dissipated per bit to work both the receiver and the transmitter circuits.
Algorithm 1: Smart Routing Algorithm (SRA)
Information 09 00023 i001
The energy expended by the radio sender is offered in Equation (5) and by the receiver in Equation (6). Equation (7) is the power needed to aggregate data:
E t ( x ) ( k , δ ) = k . E e l e c + k . E f s . δ 2 if   δ < δ 0 , k . E e l e c + k . E m p . δ 4 if   δ δ 0 ,
E R x = k . E e l e c ,
E a g r = k . E D A ,
where:
  • δ is the distance among the sender and the addressee,
  • E f s and E m p are the amplifier energy, for the first, in the free space model, and, for the second, in the multipath model.
If δ is below a threshold δ 0 , then the parameters δ 2 and E f s are used; otherwise, the elements δ 4 and E m p are employed. The value of the threshold δ 0 is shown in [17], and presented in Equation (8):
δ 0 = E f s E m p .
In this paper, the first sensor that will send its data takes the value 1, the second takes the value 2, and so on until reaching the base station. These numbers given by the path will be followed along each iteration, using SRA: 1 is the first node that will transmit its data, the number 2 will receive the data of 1, aggregate with its own data and will then send all to node 3. The sensors will receive the data of their predecessors, aggregate with their own data and then send the whole to their successors. This is will repeat until the base station. The routing follows a path that will be chosen using SRA as dynamically. Using Equations (5)–(8), it is possible to adjust for each sensor, 1 to 25, its consumed energy during iterations in Equation (9).
E i t e r ( i ) = k . ( i 1 ) . ( E e l e c + E D A ) + k . i . ( E e l e c + E f s . δ 2 ) if   δ < δ 0 , k . ( i 1 ) . ( E e l e c + E D A ) + k . i . ( E e l e c + E m p . δ 4 ) if   δ δ 0 ,
where:
  • i is the sensor number.
The average energy consumed in a network at each iteration, Equation (10), is the sum of energy consumed by each sensor up to this iteration divided by the number of sensors participating in this network:
E a v g i t e r = 1 / n · i = 1 n E i t e r ( i ) ,
where:
  • n is the number of participating sensors in this network.
The total consumed energy by a sensor, Equation (11), is the energy consumed until the last iteration:
E t o t a l i t e r ( i ) = i t e r = 1 i t E i t e r ( i ) .
The average consumed energy of network, Equation (12), is the total energy consumed by all sensors divided by sensor number:
E a v g = 1 / n · i = 1 n E t o t a l i t e r ( i ) .

4. Simulation Results

The energy consumption obtained by each sensor is calculated and then the results are plotted. These figures are obtained, each sensor sends data to its chosen neighbour using the SRA algorithm, the sensor aggregates the data of its predecessor and sends all data to its successor. This procedure is repeated until aggregated data reaches the base station. Whole simulations depend on this coming protocol: we consider 25 nodes of wireless sensor networks arbitrarily dispersed over an area of 25 m × 25 m. The base station is in the middle. Furthermore, we neglect the effect caused by signal collision and interference in the wireless channel. On account of limited energy of nodes, during the simulations, the energy diminishes when a node sends or receives data and whenever it aggregates data. In case a node runs out of energy, it can’t send or receive data. Therefore, it will be ignored in the network in future iterations. The parameters shown in Table 1 are used in our simulations.
As seen in Figure 2, we distribute the sensors in a random way and we position the base station in the middle of the surface.
We can see in Figure 3, Figure 4, Figure 5 and Figure 6 that in each iteration a node that will start the transmission is not necessarily the same; it changes from one iteration to another. If a node wants to transmit the data, it looks for its successor according to its probability, which we have seen in Equation (1); likewise, the other nodes do the same thing until the data arrive at the base station.
From iterations 1 to 15, Figure 3, we see that the minimum path is 253.2010 m and the maximum path is 369.8450 m.
From iterations 16 to 20, Figure 4, we see that the minimum path is 290.5974 m and the maximum path is 349.5204 m.
From iterations 21 to 35, Figure 5, we see that the minimum path is 262.4805 m and the maximum path is 370.5428 m.
From iterations 31 to 45, Figure 6, we see that the minimum path is 272.8723 m and the maximum path is 346.5317 m.
We see in Figure 3, Figure 4, Figure 5 and Figure 6 that the path chosen during these iterations is not always the smallest path even if the network knows the smallest way because the residual energy of the nodes has also been taken into account. The source is also not always the same because the goal of our paper is to balance the energy consumption in all the nodes.
In Figure 7, the energy consumed by each sensor increases almost equitably for all sensors.
In Figure 8, the residual energy of each sensor decreases almost equitably for all sensors.
In the Figure 9, we have increasingly sorted the energy consumption of each sensor to obtain these comparable results:
The total energy consumed by each sensor is almost identical to the average energy consumed: 0.3757 j.
In Figure 10, we have decreasingly sorted the residual energy of each sensor to obtain these comparable results:
The residual energy of each sensor is almost the same as the average residual energy: 0.1242 j, the difference between the average value and the maximum and minimum values, respectively, are: 0.07079 j and 0.06663 j.

5. Conclusions

In this article, we have proposed a Smart Routing Algorithm (SRA), and the latter establishes a dynamic routing of homogeneous wireless sensor networks; indeed, it is based on the pheromone of nodes and their probability to be chosen. At first, we have reviewed the ant colony optimization and presented our proposed algorithm using some universally used parameters to evaluate the effectiveness of a given approach. We have distributed an arbitrary 25 sensors with 0.5 j initial energy for all nodes, and we have put the sink in the middle, we have validated the proposed approach (SRA) and we have evaluated its performance based on a set of simulations. The simulations have shown that all nodes can be alive for up to 50 iterations without any dead nodes, and sent a total 1250 messages, so the consumption differences between them are very few. Then, using algorithm SRA, the wireless sensor networks will have a long lifetime.
In future work, we will use heterogeneous networks to solve this very small difference of consumption between the nodes.

Author Contributions

S.B. researched the bibliographic, formulated the problem, conceived and developed the proposed idea, implemented the simulations, obtained and organized the results, analysed the data and wrote the first and the final version of the paper. R.S. proposed the idea (to optimize the consumption of energy by using the ant colony), validated the organization of the simulations and provided comments on the writings. M.D.R. supervised the work, validated the tests of simulations and corrected the English.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

WSNWireless Sensor Network
SRASmart Routing Algorithm
ACOAnt Colony Optimization
LEACHLow Energy Adaptive Clustering Hierarchy
DDDirected Diffusion
EASElitist Ant System
Max-Min AsMaximum and Minimum Ant System
AS-RankRank-Based Ant System
ACSAnt Colony System
ASAnt System
IoTInternet of Things
M2MMachine to Machine

References

  1. Bouarafa, S.; Saadane, R.; Aboutajdine, D. Reduction of Energy Consumption in WSN Using the Generalized Pythagorean Theorem. In Proceedings of the 5th International Conference on Multimedia Computing and Systems (ICMCS), Marrakech, Morocco, 29 September–1 October 2016; p. 720. [Google Scholar]
  2. Deng, Z.; Wang, G.J.; Ma, Z. A Leaping Based Routing Protocol with Load Balancing Support in Wireless Sensor Network. Chin. J. Sens. Actuators 2009, 22, 407–412. [Google Scholar]
  3. Stutzle, T.; Dorigo, M. A short convergence proof for a class of ACO algorithms. IEEE Trans. Evol. Comput. 2002, 6, 358–365. [Google Scholar] [CrossRef]
  4. Boondirek, A.; Triampo, W.; Nuttavut, N. A Review of Cellular Automata Models of Tumor Growth. Int. Math. Forum 2010, 5, 3023–3029. [Google Scholar]
  5. Tome, T.; Drugowich de Felicio, J.R. Probabilistic Cellular Automata Describing a Biological Immune System. Phys. Rev. E 1996, 3976–3981. [Google Scholar] [CrossRef]
  6. Sloot, P.; Chen, F.; Boucher, C. Cellular Automaton Model of Drug Therapy for HIV Infection. In Proceedings of the 5th International Conference on Cellular Automata for Research and Industry (ACRI 02), Geneva, Switzerland, 9–11 October 2002; pp. 282–293. [Google Scholar]
  7. Bouarafa, S.; Saadane, R.; Rahmani, M.D. Study of Energy Consumption in Wireless Sensor Networks Using S-Rhombus, S-Square and S-Circle Deployment. Int. J. Adv. Res. Comput. Sci. 2017, 7, 402–410. [Google Scholar]
  8. Singh, S.K.; Singh, M.P.; Singh, D.K. A Survey of Energy-Efficient Hierarchical Cluster-Based Routing in Wireless Sensor Networks. Int. J. Adv. Netw. Appl. 2010, 2, 570–580. [Google Scholar]
  9. Khandani, A.E.; Abounadi, J.; Modiano, E.; Zheng, L. Cooperative Routing In Static Wireless Networks. IEEE Trans. Commun. 2007, 55, 2185–2192. [Google Scholar] [CrossRef]
  10. Ibrahim, A.S.; Han, Z.; Liu, K.J.R. Distributed Energy-Efficient Cooperative Routing in Wireless Networks. IEEE Trans. Wireless Commun. 2007, 7, 3930–3941. [Google Scholar] [CrossRef]
  11. Kang, I.; Poovendran, R. Maximizing Static Network Lifetime Of Wireless Broadcast Ad Hoc networks. In Proceedings of the IEEE International Conference On Communications, Anchorage, AK, USA, 11–15 May 2003; pp. 2256–2261. [Google Scholar]
  12. Tsiropoulou, E.E.; Mitsis, G.; Papavassiliou, S. Interest-aware energy collection & resource management in machine to machine communications. Ad Hoc Netw. 2018, 68, 48–57. [Google Scholar]
  13. Yan, J.F.; Gao, Y.; Yang, L. Ant Colony Optimization for Wireless Sensor Networks Routing. In Proceedings of the 2011 International Conference on Machine Learning and Cybernetics, Guilin, China, 10–13 July 2011. [Google Scholar]
  14. Dorigo, M.; Birattari, M.; Stiitzle, T. Ant Colony Optimization. IEEE Comput. Intell. Mag. 2006, 1, 28–39. [Google Scholar] [CrossRef]
  15. Ikki, S.; Ahmed, M.H. Performance Analysis of Cooperative Diversity Wireless Networks over Nakagami-m Fading Channel. IEEE Commun. Lett. 2007, 11, 334–336. [Google Scholar] [CrossRef]
  16. Chang, J.H.; Tassiulas, L. Maximum Lifetime Routing in Wireless Sensor Networks. IEEE/Acm Trans. Netw. 2004, 12, 609–619. [Google Scholar] [CrossRef]
  17. Heinzelman, W.B.; Chandrakasan, A.P.; Balakrishnan, H. An application-specific protocol architecture for wireless microsensor networks. IEEE Trans. Wireless Commun. 2002, 1, 660–670. [Google Scholar] [CrossRef]
Figure 1. Radio energy dissipation model, adopted from [17].
Figure 1. Radio energy dissipation model, adopted from [17].
Information 09 00023 g001
Figure 2. The sink in the middle and the nodes are scattered arbitrarily.
Figure 2. The sink in the middle and the nodes are scattered arbitrarily.
Information 09 00023 g002
Figure 3. The constructed paths in iterations 1–15.
Figure 3. The constructed paths in iterations 1–15.
Information 09 00023 g003
Figure 4. The constructed paths in iterations 16–20.
Figure 4. The constructed paths in iterations 16–20.
Information 09 00023 g004
Figure 5. The constructed paths in iterations 21–35.
Figure 5. The constructed paths in iterations 21–35.
Information 09 00023 g005
Figure 6. The constructed paths in iterations: 36–50.
Figure 6. The constructed paths in iterations: 36–50.
Information 09 00023 g006
Figure 7. Energy consumption by each node in each iteration.
Figure 7. Energy consumption by each node in each iteration.
Information 09 00023 g007
Figure 8. Residual energy of each sensor for 50 iterations.
Figure 8. Residual energy of each sensor for 50 iterations.
Information 09 00023 g008
Figure 9. Energy consumed by each sensor for 50 iterations.
Figure 9. Energy consumed by each sensor for 50 iterations.
Information 09 00023 g009
Figure 10. Residual energy of each sensor for 50 iterations.
Figure 10. Residual energy of each sensor for 50 iterations.
Information 09 00023 g010
Table 1. Radio characteristics used in our simulations.
Table 1. Radio characteristics used in our simulations.
ParameterValue
E e l e c 50 nJ/bit
E f s 10 pJ/bit/m 2
E m p 0.0013 pJ/bit/m 4
E 0 0.5 J
k4000 bits
E D A 50 nJ/bit/message
d 0 88 m
α 4
β 2
γ 2
δ 4
ρ 0.02
initial value of τ i , j 0.0001
initial value of η i , j 0.0001

Share and Cite

MDPI and ACS Style

Bouarafa, S.; Saadane, R.; Rahmani, M.D. Inspired from Ants Colony: Smart Routing Algorithm of Wireless Sensor Network. Information 2018, 9, 23. https://doi.org/10.3390/info9010023

AMA Style

Bouarafa S, Saadane R, Rahmani MD. Inspired from Ants Colony: Smart Routing Algorithm of Wireless Sensor Network. Information. 2018; 9(1):23. https://doi.org/10.3390/info9010023

Chicago/Turabian Style

Bouarafa, Saleh, Rachid Saadane, and Moulay Driss Rahmani. 2018. "Inspired from Ants Colony: Smart Routing Algorithm of Wireless Sensor Network" Information 9, no. 1: 23. https://doi.org/10.3390/info9010023

APA Style

Bouarafa, S., Saadane, R., & Rahmani, M. D. (2018). Inspired from Ants Colony: Smart Routing Algorithm of Wireless Sensor Network. Information, 9(1), 23. https://doi.org/10.3390/info9010023

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop