Firefly Algorithm
Firefly Algorithm
Sp– 6 / 2017
ABSTRACT
Mobile Adhoc Networks (MANETs) have no definite structure but rather they are
dynamic with numerous wireless mobile nodes that connect with one and other in the absence
of a centralized control system. A MANET has a dynamic structure made of mobile devices
that are interconnected through wireless links. Routing protocols play a major role in
transmitting information through the network and has two important categories namely
unipath and multipath. This work assesses the working of an on-demand multipath routing
protocol called as the Adhoc On-demand Multipath Distance Vector routing (AOMDV). This
work suggests energy aware Firefly Algorithm (FA) and it is regarded as the one among the
meta-heuristic method built to resolve optimization problems utilizing the simulation of
behavior of the fireflies. A number of research works have proven the high standard and the
accuracy of the outputs of the optimization methods solved by FA. Many of these
developments and applications are analysed and summarised in this work.
1. INTRODUCTION
hoc routing protocol that permits the node to identify multi hop paths to other nodes within
the network. This concept of MANET is known infrastructure less networking. It is called so
as routing among nodes is dynamically developed to build their own network on the fly [1].
The MANET is a group of self-governing mobile users, who correspond with each
other using slow wireless link. Due to the dynamic nature of nodes, there is a rapid variation
in network topology. These types of networks can operate independently or can be linked to
well- built internet. A few important features of MANETs are limited bandwidth, varied
capacity links; limited energy functions, limited physical security, dynamic network structure
as well as routing updates on regular basis [2].
Proactive protocols depend upon routing tables which lists known destinations.
Consequently, there is reduced overhead control traffic generated by the proactive routing as
the packets are transmitted through known routes. To achieve this, the routing tables should
be regularly updated. Therefore, there is wastage of bandwidth as the memory is used and
regular transmission of update messages from the nodes to its neighbours. So, proactive
routing is not applicable for extremely dynamic networks as it is essential to regularly update
routing tables for every change in network topology. Subsequently, the overhead control
messages increase in number leading to poor network performance during heavy loads [4].
The other name for reactive routing protocol is demand routing protocol. This
protocol allows identifying routes as and when required. Route discovery is initiated by nodes
base on demand. The route cache is seen by the source node sees to identify the route from
the source to destination. Suppose, if route is unavailable then it sets off route discovery
process. Route discovery as well as maintenance is the two important components of on-
demand routing protocols. In reactive protocols, the routes are maintained due to the
acknowledgement mechanism of the protocol. The route discovery system permits reactive
protocols to add latency to the network. There is added latency due to each intermediate node
present in the route discovery procedure. As a result there is reduced overhead routing but the
network has increased latency. Therefore, such protocols are applicable to conditions which
demand low overhead routing [5, 6].
The exchange between proactive and reactive protocols is termed as Hybrid Routing
Protocol. Proactive protocol has minimal latency and huge overhead whereas it is other way
in reactive protocol. Hence a hybrid protocol is proposed to surmount the drawbacks of both
proactive as well as reactive routing protocols. By using hybrid routing protocol in a network,
there is less overhead issues and avoidance of latency as it utilizes route discovery
mechanism of reactive protocol as well as the table maintenance mechanism of proactive
protocol. Hence, hybrid protocol can be applied to large networks which have a huge number
of nodes. Such wide networks are split into set of zones in which reactive approach is used to
perform routing inside and proactive is used for the outside zone.
These networks offer data accessibility and services without consider geographical
location.
Higher flexibility.
The Unipath Routing Protocols is appropriate for Ad Hoc Networks as these methods
use only a single path at a time to the destination even if a number of good paths are
available. Many of the routing protocols have unipath or operate on unipath mode. Open
Shortest Path First (OSPF) is the frequently utilized routing which works in a unipath mode.
Equal-cost multipath routing can be enabled or turned on in the approach. Every protocol
follows route discovery as well as maintenance. Route discovery is a procedure wherein the
source node initially identifies a route or several routes to transmit packets to a given
destination as and when required. In route maintenance the source forwards packets along the
route. There is a possibility for the routes to brake while transmitting packets as the nodes
tend to move away or go down. Such routes are rebuilt. The procedure of identifying route
breakage as well as rebuilding it is known route maintenance [8].
Several paths between the source and the destination may be identified by employing
multipath routing. With the help of these paths the dynamic and unpredictable nature of
MANETs can be compensated and QoS can be supported. Multipath based routing protocols
may determine node and link disjoint or non-disjoint routes. The other name for node disjoint
routes is totally disjoint routes. It does not have common nodes or links. The link disjoint
routes have common nodes but there is no common links. Non-disjoint routes may have both
common nodes as well links. In non-disjoint routes there are lower aggregate resources when
compared to disjoint routes. This is due to sharing of links and nodes in non-disjoint routes. It
is easy to discover non-disjoint routes as there are no limitation for the routes to be node or
link disjoint. This feature makes it highly beneficial. In QoS routing, the subset of path,
which satisfies the needs of QoS are only chosen [9].
The multipath routing protocols operate in the following steps:i) Route Discovery that
finds more than one path nodes disjoint, link disjoint or non-disjoint routes among source and
destination, ii) Traffic Allocation: on selecting the routes among source and destination, the
source node must choose a set of paths to the destination to send information to the
destination through the chosen paths and iii) Path Maintenance: the paths must be regenerated
once the initial path is discovered. This is to remove link or node failures, which might
happen due to time and node mobility [10].
The merits of multiple paths are load balance, fault-tolerance as well as higher
aggregate bandwidth. Balance of load may be attained dispersing the traffic along multiple
routes. This helps in removingobstruction as well as blockage. From the viewpoint of fault
tolerance perspective, multipath routing may offer route resilience. For instance, node S
transmits similar packets in all the three paths then D will receive the packet if there is no
failure in any of the three paths. Besides using multiple paths to send similar packets, it is
also used in providing fault tolerance during route failures [11].
This procedure is taken as the basis to record a path among the intermediate nodes. As
this path discovers the route, it is known as reverse path. Every node transmits RREQ
message to every neighbour, such that a single node is a recipient of multiple copies of the
original RREQ message. On creating a RREQ message, a unique id is designated. Likewise,
on receiving the RREQ the node ensures for the id as well the address of the initiator.
Suppose, the request was previously processed then it ignores the message. The node that
possesses the information regarding the path to the destination transmits RREP message to
neighbour node, which had sent the RREQ message. A similar procedure is followed by the
neighbour. It is possible as a result of reverse path. Later, the RREP message traverses
backward utilizing reverse path. If the RREP message arrives at the initiator, the route is
enabled for the initiator to transmit data packets.
The merits of AODV are: The AODV procedure is generally a flat routing protocol
thereby do not require any inner organizational technique to tackle the routing procedure. In
AODV the routes are created based on demand while the destination sequence numbers are
applied for finding the recent route to the destination. There is a low connection setup delay.
There are no loops in AODV protocols and also it avoids counting to infinity problem. The
AODV Disadvantages are: It may lead to heavy control overhead and there is unwanted
utilization of bandwidth[13].
It is important to have Loop Free Paths and the essential conditions for Loop freedom
are-
Sequence number rule: A node having multiple paths should maintain similar
destination sequence number.
Route advertisement rule: A route shorter than the previously advertised route must
not be advertised.
Route acceptance rule: A route longer than the previously advertised route must not
be accepted.
Route Update Rules: Every node holds a variant namely ‘advertised hop count’ for
every destination in order to maintain multi- paths without any loops. During the time of first
advertisement, the value of the variant is defined as the length of the ‘longest’ obtainable path
up to the destination. The alternate path to the destination is denoted by the received duplicate
route advertisement (like RREQ, RREP). Re-initialization of next hop count and list takes
place after accepting route advertisement. By accepting paths with less hop count, it is
possible to achieve loop freedom. Subsequently, route_list replaces next hop, which denotes
multiple next hops corresponding to their hop counts. The advertised_hopcount field is
revised by node i for a destination d every time a route advertisement is transmitted to d.
The duplicate copies of RREQ are not abandoned in AOMDV but instead every
packet is verified whether or not it offers a node-disjoint path to the source. For instance, in
node-disjoint paths, the available RREQs must reach through several neighbours of the
source. It can be validated with the first hop field in the RREQ packet as well as the first
hop_list for the RREQ packets at the node.
Computation of Disjoint Paths: Unlike the source, there is a different method at the
destination where the determined paths are link-disjoint. The link disjoint property can be
maintained by having paths with distinctive next and last hops. Using this it is possible to
identify whether the two paths via downstream neighbours are link disjoint.
This study suggests to extend the well-known AOMDV and energy aware FA that
reduces energy consumption through the route. Section 2 gives related work in literature;
Section 3 discusses methodology. Section 4 gives the outputs and discussion and section 5
concludes the paper.
2. LITERATURE REVIEW
Zhou et al., [16] suggested AOMDV on the basis of Node State (NS- AOMDV). The
state of the node improves the performance of AOMDV in choosing the main path. In route
discovery procedure, the routing update rule evaluates the node weight of every path as well
as arranges the path weight in descending order in route list. It also selects the path that
possesses the greatest path weight for transmitting information. In addition, NS-AOMDV
utilizes the technology of RREQ packet delay forwarding as well as energy threshold to
simplify network traffic, to restrict the RREQ broadcast storm as well shun low energy nodes
from establishing the path. From the outputs it is clear that NS-AOMDV can largely
influence the packet delivery rate in the network, improve through put as well normalize
overhead routing in condition such as dynamic network topology and huge loads.
Allalili et al., [17] proposed a modern technique for load balance. It is based on left
over energy of nodes and is used to disperse the traffic consistently among the nodes of the
network. This method exploits the multipath routing protocol AOMDV that characterizes
link-disjoint paths among the source as well as the destination in each route discovery.
Additionally, there is Energy metric for Load Balancing (ELB-AOMDV).A comparison was
carried out between the performance of ELB-AOMDV and LBAOMDV.
Hoolimath et al., [18] presented a routing protocol based on the termite activity in
nature, called Optimized-Termite (Opt-Termite). The idea of stigmergy for self-organization
is used to decrease the control packet overhead. The main objective of Opt-Termite is to
balance load for optimization. Opt-Termite is used to choose a route having fewer numbersof
mobile nodes with regard to traffic to reach the destination. The routing information at every
node is subjected to movement of packets while the routing table gets updated accordingly.
Multiple paths can be used. Every packet is routed arbitrarily without any dependence. Opt-
Termite is executed in ns-2 and a comparison was made among the performance of the
proposed method and conventional routing protocol AODV. The results show that Opt-
Termite has better performance.
given by the energy factor with which the performance of AOMDV along with energy based
AOMDV (E-AOMDV) can be calculated. Though E-AOMDV has restricted lifespan, it has
enhanced routing when compared to AOMDV excluding the energy factor. The improved
performance of the suggested method can be deduced from the performance matrices. It is
noted that it has good performance within its restricted lifetime.
Mallapur& Patil [21] suggested and developed a route stability that has its basis on
demand multipath routing protocol for MANETs. It is known as Stable Backbone based
Multipath Routing Protocol (SBMRP). It improves the link quality and used in selecting
stable paths among the nodes. This method works to select the candidate nodes as well as to
construct routing backbone for the selected stable paths established from the sources to the
destination node. In order to verify the suggested method, simulations were carried out
utilizing Network Simulator 2 (NS-2). The outputs illustrate that the SBMRP performs better
when compared to other available routing protocols by considerably minimising route
discovery. It is also improves packet delivery ratio and constructs backbone paths between
source and destinations to extend the lifetime of nodes.
Mehta & Gupta [22] introduced the execution evaluation of routing protocol DSDV as
well as AOMDV in the perspective of sensor networks by assuming that static nodes are
acquainted. NS-2 is used to simulate the algorithm. The outputs put forth the distinguished
routing performance of the algorithm under different conditions and pool its performance
with AOMDV in the discourse addressed. Further this work, analyses DSDV as well as
AOMDV algorithm when utilized for MANETs.
Kukreja et al., [23] extended Dynamic Source Routing (DSR) protocol known as
Energy Efficient Secure Dynamic Source Routing (EESDSR). This algorithm is inspired by
the distributed trust model that is effective as well power aware in enhancing the security of
DSR protocol. This method can spot out the nodes that exhibit malicious behaviours such as
gray-hole, malicious topology change behavior, dropping data packets as well as dropping
control packets. Monitoring system can be applied to MANETs since it concentrates on
power saving and has distributed nature that can be adapted to dynamic network topology.
NS-2 is employed to examine the proposed routing protocol. The EESDSR protocol was
subjected to many simulations and to prove it has better performance than other standard
DSR protocol.
Gulati& Kumar [24] presented a Stable Energy efficient QoS based Congestion and
Delay aware Routing (SEQCDR) Protocol for a valuable QoS support. The method utilizes
several parameters of signal strength, queue length, drain rate as well as delay to improve the
system performance. The protocol offers efficient load balance at the node and identifies a
stable path among the source and destination by enduring the delay requirement. The
experimental output reveals that the suggested SEQCDR protocol can perform better than
AODV with regard to packet delivery ratio, throughput, routing overhead and average end to
end delay.
Yang & Sun [25] introduced an AODV Multipath Routing Protocol with Path
Selection Entropy (AODVM-PSE).The standard multipath extension on AODV (AODVM)
was weighed against AODVM-PSE and it is found that AODVM-PSE can assign the
development of several paths to the destination node as well as makes it algorithmically
simple. Consequently it improves the performance of packet delivery, average end-to-end
delay as well as control packets ratio acquired at intermediate nodes. The experimental results
show that the functional advantages of the suggested AODVM-PSE against AODVM in most
movement scenarios.
3. METHODOLOGY
Here Sr represents the minimal power level needed for exact packet reception while
Secth gives the power incorporated to overcome the issue of unbalanced connectionscaused
by channel fluctuations.
The optimal path can be identified by calculating the value of P as given below:
The optimum route can be evaluated by utilizing P value as given above. From the
available paths, the path with maximum P value is chosen as the optimal route to transmit the
data packets. In the above equation, RE is the Residual Energy on the route while Powertx is
the transmission power.
Residual Energy Calculation: Ever node has a remaining energy after transmitting
the packets. This energy is given by RE and is determined by the formula given below.
RE EI Ec (t )
Here EI represents initial energy of a node while EC(t) is energy utilized by a node
after time t. Total Energy Consumption (TEC) of all nodes is given by the below equation.
Yang in 2008 built FA, which is one among the modern swarm intelligence technique.
This is a type of stochastic, nature-inspired, meta-heuristic protocol used to solve the
toughest optimization problems along with NP-hard problems. The protocol is
stochastic i.e. it makes use of randomization by searching for a set of solutions. The
algorithm derives its inspiration from the flashing lights of fire-flies in nature. The
term heuristic denotes `to find' or `to discover solutions by trial and error'. It is not
certain that optimal solution can be determined within a short period of time [27].
Lastly, meta-heuristic signifies 'higher level' in which the search procedure followed
in the protocols is subjective to the exchange among randomization as well as local
search. In the firefly protocol, the `lower level' (heuristic) focuses on the generation of
fresh solutions in a given search space and hence the suitable solution is selected for
survival. Conversely, the search procedure is enabled by randomization to get away
from getting trapped in local optima. The candidate solution is enhanced by local
search till the changes are noticeable i.e., the solution is placed in local optimum.
Using crossover it is possible to combine the building blocks from various solutions.
Likewise even search depends on crossover. It signifies that if both the parents have
similar same value for the variant then even the offspring will have same value as the
parents for that variant.
It hedges against bad luck in the primary positions or decisions that it takes.
The optimization problems and especially the NP hard problems can be resolved
utilizing the efficient nature inspired protocols. This work offers an innovative method for
dimensionality reduction based on FA. FA takes inspiration from the biochemical as well as
social characteristics of real fireflies. Real fireflies generate a brief and periodic flash, which
is used to attract their mating partners as well as acts as a protective warning mechanism. FA
devises this flashing behaviour with the objective function of the problem to be optimized.
Threebasic rules are used to formulate FA (3) the fireflies are unisex by nature such that they
attract each other not considering their sex. (2) Attractiveness is proportional to brightness
and it decreases as distance increases between two flies. Therefore, the fly with less
brightness moves toward the brighter one. If it doesn’t find a brighter fly it moves in arbitrary
motion. (3) The landscape of the objective function is used to determine the brightness of a
firefly [31]. The basic FA algorithm consists of:
xi , i=1,2,........,n
The fundamental FA assumes the existence of n fireflies that are
primarily located at random locations in the space while intensity i of each firefly is related to
the objective function.
f ( x ), i.e. I f ( x )
The firefly with highest flash intensity attracts the other firefly i.e. Ii>Ij, j=1,2…n, j≠i.
Attractiveness or the brightness of firefly differ with the distance among firefly i and firefly j
rij d ( xi , x j )
i.e. .Further ,the light intensity I reduces with the distance from its source and it
is even absorbed in the air. So, the fireflies are only seen for a limited distance.
The light intensity also termed as attractiveness is inversely related to the specific
distance r from the light source. Therefore, light as well as attractiveness decrease with
increase in distance [32].
2
I (r ) I 0 e r
Where,
I=light intensity,
I0
=light intensity at initial or original light intensity,
=the light absorption coefficient
2
0e r
Where,
0 =Attractiveness at r is 0
The distance between two fireflies may be defined through Cartesian distance
d
rij | xi x j | k 1
( xi ,k x j ,k )2
Firefly i gets attracted to the most attractive firefly j, the measure is given by
rij2
xi 0e ( xtj xit ) i , xit 1 xi
xi
In equation, the initial term represents attraction. It is the restriction when the value tends
become invariable
0 . Otherwise it can be stated as, random position of a firefly that
eases the process of completing the global search. If tending to infinity or too large (
then there is decrease in attractiveness and brightness. So the fire-flies move arbitrarily. FA
can be implemented in these two asymptotic behaviours. The second term represents
START
No
Iteration
maximum?
Yes
Print results
END
Merits of FA: The factors responsible for FA to be wide-spread and efficient are given
below:
FA ignores historical individual best as well as explicit global best. Due to this, the
setbacks of premature convergence can be reduced. Further, it avoids velocities and so
the issues related to velocities in Particle Swarm Optimization (PSO) gets removed
automatically.
The proposed FA-AOMDV is simulated to evaluate packet delivery ratio, average end
to end delay and average number of hops to sink. The performance of FA-AOMDV is
compared with AOMDV. Simulation is conducted using varying number of nodes
(25,50,75,and 100) and network size is 1200 sq m. The transmission range of node is 250 m
and the traffic type is constant bit rate. Tables 1 and Figures 2 to 4 in this study explains
result value and graph respectively for packet delivery ratio, average end to end delay and
Average Number of hops to sink.
1
PACKET DELIVERY RATIO
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
25 50 75 100
NUMBER OF NODES
AOMDV FF-AOMDV
From the table 1 and figure 2, it can be observed that the FF-AOMDV method
increased Packet Delivery Ratio by 9.92%, 5.24%, 7.28% and 8.64% when compared with
AOMDV method with 25, 50, 75 and 100 number of nodes.
0.0025
AVERAGE END TO END DELAY
0.002
0.0015
IN SECOND
0.001
0.0005
0
25 50 75 100
NUMBER OF NODES
AOMDV FF-AOMDV
From the table 1 and figure 3, it can be observed that the FF-AOMDV method
decreased Average End to End Delay in second by 37.66%, 35.27%, 33.87% and 40.31%
when compared with AOMDV method with 25, 50, 75 and 100 number of nodes.
8
7
AVERAGE NUMBER OF
6
HOPS TO SINK
5
4
3
2
1
0
25 50 75 100
NUMBER OF NODES
AOMDV FF-AOMDV
From the table 1 and figure 4, it can be observed that the FF-AOMDV method
reduced Average Number of hops to sink by 11.85%, 20.39%, 30.78% and 31.19% when
compared with AOMDV method with 25, 50, 75 and 100 number of nodes.
5. CONCLUSION
the performance of FA-AOMDV is compared against AOMDV. From the output, it is clear
that FA-AOMDV improves packet delivery ratio as well as minimises end to end delay.
REFERENCES
11. Mueller, S., Tsang, R. P., &Ghosal, D. (2004). Multipath routing in mobile ad hoc
networks: Issues and challenges. In Performance tools and applications to networked
systems (pp. 209-234). Springer Berlin Heidelberg.
12. Vanaja, K., &Umarani, D. R. (2011). An analysis of single path aodv vs multipath
aomdv on link break using ns-2. International Journal of Electronics and Computer
Science Engineering.
13. Kaur, H., Sahni, V., &Bala, M. (2013). A Survey of Reactive, Proactive and Hybrid
Routing Protocols in MANET: A Review. network, 10, 11.
14. Giri, A., Prithviraj, J., & Verma, A. (2012). Analysis of unipath and multipath routing
protocols in mobile Adhoc networks. Gyan Ganga Institute of Tech. India.
15. Kukreja, B., &Kambhra, S. (2014). Performance Comparison of Routing Protocols in
MANET. International Journal of Computer Science and Network Security (IJCSNS),
14(8), 108.
16. Zhou, J., Xu, H., Qin, Z., Peng, Y., & Lei, C. (2013). Ad Hoc On-Demand Multipath
Distance Vector Routing Protocol Based on Node State. Communications and
Network, 5(03), 408.
17. Allalili, M. A., Maaza, Z. M., Kies, A., &Belbachir, R. DISTRIBUTED TRAFFIC
BY LOAD-BALANCING APPROACH FOR AOMDV IN AD-HOC NETWORKS.
18. Hoolimath, P. G., Kiran, M., & Reddy, G. (2012, July). Optimized Termite: A bio-
inspired routing algorithm for MANET's. In Signal Processing and Communications
(SPCOM), 2012 International Conference on (pp. 1-5). IEEE.
19. Shaukat, U., & Anwar, Z. (2014). A fast and scalable technique for constructing
multicast routing trees with optimized quality of service using a firefly based genetic
algorithm. Multimedia Tools and Applications, 1-27.
20. Sharma, B. P., Chugh, S., & Jain, V. (2014, April). Energy Efficient Load Balancing
Approach to Improve AOMDV Routing in MANET. In Communication Systems and
Network Technologies (CSNT), 2014 Fourth International Conference on (pp. 187-
192). IEEE.
21. Mallapur, S., & Patil, S. R. (2014, April). Route stability based on demand multipath
routing protocol for Mobile Ad Hoc Networks. In Communications and Signal
Processing (ICCSP), 2014 International Conference on (pp. 1859-1863). IEEE.
22. Mehta, A., & Gupta, A. (2014, February). Retrospection and comparison of Dsdv and
Aomdv routing protocols in Manet using Ns-2. In Issues and Challenges in Intelligent