SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 08 | Aug-2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1014
AntHocNet Routing Algorithm for Mobile Ad Hoc Networks
Arockia Panimalar.S 1, Prateeksha.S.R2, Ansu Rodrigues3, Selshya.S4
1 Assistant Professor, Department of BCA & M.Sc SS, Sri Krishna Arts and Science College, Coimbatore, India
2,3,4 III BCA, Department of BCA & M.Sc SS, Sri Krishna Arts and Science College, Coimbatore, India
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - The paper provides a new routing algorithm
named AntHocNet for Mobile AdhocNetworks(MANETs). Itis
a kind of networks where all nodes are mobile and they
communicate with each other via wireless connections. It is
based on analysis of AntHocNet routing algorithm and Ant
Colony Optimization Routing (ACOR) algorithm. It consists of
both reactive and proactive components. In a reactive path
setup phase, multiple paths are set up between the source and
destination of a data session, and during the course of the
communication session, ants proactively test existing paths
and explore new ones. The main aim is to design an ant based
routing algorithm for Ad hoc network. The work is completed
partially and still new additions are required to make it a
complete routing protocol.
Key Words: Ad hoc, MANETs, AntHocNet, Routing
Protocol
1. Introduction
MANETs are a cluster of mobile nodes in communication
without using fixed infrastructure. Figure 1 shows the Real
ant’s search for food from Source (S) to Destination (D).
Forward Ants (FA) search for food from S to D whereas,
Backward Ants (BA) searches from D to S. When ants travel
they discharge a chemical called pheromone. They find the
shortest path using the high probability of pheromone. FA
and BA are control packets used to amend the routing tables
and disperse information about the traffic in the network.
Fig 1: Ants take the shortest path from source to
destination
In recent years several ant based routing protocols are
implemented, such as Probabilistic Emergent Routing
Algorithm (PERA), AntHocNet, and Ant-Colony-Based
Routing Algorithm (ARA). Ant based routing algorithm for
MANETs can react to dynamic changes and solves problems
locally. It finds the shortest path from S to D. It provideshigh
number of routes, reliable connections, and controls
updating and broadcasting. It combines a Reactive Route
Discovery (RRD) [1] with proactive route maintenance and
recovery process. Routing data is savedinpheromonetables
and routing tables. In RRD [2] the source node creates a
reactive forward ant. This is a control packet that has a goal
to find a path from S to an assigned D. Ant contains the
address of S and D. It proceeds through the network. It
collects a list of nodes it has visited from S to D. If routing
data is available, the node chooses a next hop for the ant
probabilistically, based on the different pheromone values
associated with next hops for D. At the destination the
reactive FA is transformed into the BA, if at least one copy of
the FA is received. The first Ant is accepted and converted in
to BA. Remaining copies are discarded [3]. Proactive path
maintenance serves to update and extend the availability of
routing data. It has two sub processes, pheromone diffusion
and proactive sampling. Pheromone diffusion periodically
disperses quality of information. This field of pheromone is
indicated in the virtual pheromone values in the pheromone
tables of the nodes.
Section 2 briefs about the various routing algorithms.
Section 3 gives the approach of implementing a new routing
protocol and
Section 4 concludes the paper.
2. Various Routing Approaches
A. Demand Routing Approach
Demand routing approach for multi hop Ad hoc networks is
proposed. It is based on swarm Intelligence and Ant Colony
Optimization (ACO) metaheuristic. Route discovery
generates optimal path for data packets. Path maintenance
exhausts periodically and retains optimal path when the
topology is changed in Ad hoc Networks.Existing routes may
fail or new paths are generated.
B. Ant Routing Algorithm
Ant routing algorithm for mobile Ad hoc networks (ARAMA)
is proposed. It solves the routing problemin MANETanditis
a dynamic routing algorithm with controlled overheads in
the network.
C. Ant Based Ad hoc Routing Protocols
Ant Based Ad hoc Routing Protocols is the best solution for
the routing algorithm for solving the routing problems in
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 08 | Aug-2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1015
MANETs with controlled overheads. This algorithm can use
different quality of service parameters in optimization.
Exploring and tables updating is done on demand, which
minimize the overheads. This technique provides the
redundant paths between source and destination.
D. AntHocNet and ACO routing algorithm on
MANETs
AntHocNet and ACO routing algorithm on MANETs are
discussed. It associates both reactive setup and proactive
maintenance. In simulation tests authors prove that
AntHocNet has a performance gain over the Ad hoc On-
Demand Distance Vector (AODV) routing protocol. Increase
in Delivery ratio, average end-to-end delay, and average
jitter are observed.
3. Implementing a New Protocol for NS2
Initially, we createa current sampleMANETroutingprotocol
called Antrouteproto. Consider that Antrouteproto is a
proactive routing protocol that requires sending out some
control packetsperiodically.Intheroutingtable, information
is stored in each entry in the form of destination and next
hop addresses. Then weconfiguretheAntrouteprotorouting
protocol similar to AntHocNet. We add and modify the delay
table in Antrouteproto in header and source files.
Antrouteproto routing protocol is compiled successfullybut
when we run a test simulation the packets are not
successfully transmitted. The trace file is generated but the
routing table is empty throughout the simulation. The same
simulation file works on AntHocNet, AODV, and Dynamic
Source Routing (DSR). Various modules of implementation
and changes are shown as below.
A. File Structure
1Antrouteproto.h defines all needed timers and routing
agents that perform protocol’s functionality.
2. Antrouteproto.ccimplementsall timers,routingagent and
Tcl hooks.
3. Antrouteproto_pkt.h defines all packets. Antrouteproto
protocol needs to exchange among nodes in the MANET.
4. Antrouteproto_rtable.h defines our own routing table.
5.Antrouteproto_rtable.cc shows the routing table
implementation.
6. Delay_table.h defines generation of our own delay table.
7. Delay_table.cc is delay table implementation.
B. Class Structure
This is the main class to implement the routing protocol.
Agent’s shows endpoints at the network layer. Agent class
connects with Tcl script, which is adequate to handle our
routing protocol. We create an agent to implement a routing
protocol by inheriting from Agent class of ns2.34. Routing
agent consists of internal state and a routing table. Internal
state maintains a new class or as a collection of attributes.
Routing table is a new class, Antrouteproto_rtable. Timer
Class is everything related to timing like some periodic
updating of routing table or discardinganyroutesaftersome
time using timer class. Trace Class is writing to a trace file
about what happened in the simulation. Debug function is
used to print a debug messages.
C. Packet Types
This defines the packet structure. Packet class stores all the
defined packets as an array of unsigned charswherepackets
fields are saved. To access our defined packet, we define in
our header, an offset property which will find where the
packet is.
D. The Routing Agent
A new Antrouteproto class havingattributes andfunctionsis
defined. Header files included packet header, Agent base
class, Packet class, and Timer Handler base class. A port
classifier object is a node that consists of an address
classifier and a port classifier. Port Classifier class, used for
passing packets up to upper layers, recv to call whenever
agent receives a packet either from upper layer agent like
UDP or TCP or from some other node. A Port classifierobject
consists of an address classifier anda portclassifier.Another
important attribute is the Trace object. It is used to produce
logs to be store in the trace file.
E. Timer
It has expire method performing two tasks
i. Sends a new control packet.
ii. Reschedule the timer itself
F. Constructor
The constructor implementation and calling the constructor
is started as a base class passingPT_ANTROUTEPROTOasan
argument. It is used to classify control packets sent and
received by this routing agent. We bind accessible_var as a
Boolean attribute that can be read and written from Tcl. To
bind this variable as an integer, we must use the bind
function instead of bind bool. We save the address of agent
using the accessible_var_ from Tcl interface. Antrouteproto
obtained from Agent base class, has two functions recv and
command. recv is called at any time the agent receives a
packet. This can occur when the node itself is generating a
packet or when it is receiving one from another node. The
command function is invoked from Tcl.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 08 | Aug-2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1016
recv_Antrouteproto_pkt method
The recv_Antrouteproto_pkt is invoked by recv when a
Antrouteproto packet is received and gets the IP header and
the Antrouteproto's header as defined in
Antrouteproto_pkt.h. RT_PORT as defined in
common/packet.h is the routing port with value 255. We
check the source and destination port to be RT_PORT
process. These packets according to protocol specifications
release the resources Packet::free (p).
send_Antrouteproto_pkt method
It is called by custom timer function expire. When it expires
we allocate the packet using allocpkt function. This function
is defined for all agents.
reset_Antrouteproto_pkt_timer method
It consists of packet sending timer.Thiscanrescheduleitself.
forwarddata ()
The forward data function chooses whether a packet has to
be delivered to the upper layer agents or to be forward to
other node. In case if packet is broadcasted, then next hop
will be field accordingly. The implementation returns
IP_BROADCAST when there is no route to destination
address and we drop the packet with a debug message
G. The Routing Table
The routing table can be implemented as a different class or
as any other data structure. For each entry in routing table,
there exists information to store like destination address,
next hop, cost, etc. etc. Here, we are storing only the
destination address and the corresponding next hop in the
routing table using Hash Table. The routing table class
determines the routing table according to the need and any
data structure can be used to define functions likeaddentry,
rm_entry, clear or print.
H. The Delay Table
We can implement the delay table in Antrouteproto routing
protocol as a different class or any other data structure. For
each entry in delay table, there might be packet information
like destination address, source address, flow id and delay.
4. Conclusion
In this paper we have presented some of the steps in the
design of the ant based routing protocol foradhoc networks.
The routing protocol is based on the Anthocnet routing
protocol. The implementation is not complete but we have
presented some of the changes required to different files. By
simulations we analyze that the Antrouteproto can create
the routing table and the trace file is generated, but routing
table is printed empty throughout the simulation.
5. Future Enhancement
In future, the routing table for Antrouteproto routing
protocol can be implemented using delay table without
empty routing table. The work includes making
Antrouteproto a hybrid routing protocol which reduces the
overhead of Anthocnet.
6. References
[1] Hussein, Osama H., Tarek N. Saadawi, and Myung Jong
Lee. "Probability routing algorithm for mobile ad hoc
networks' resources management."
[2] Gunes, Mesut, Udo Sorges, and Imed Bouazizi. "ARA-the
ant-colony based routing algorithm for MANETs."
International Conference on. IEEE, 2002.
[3] Al Maghayreh, Eslam, et al. "Bees_ Ants Based Routing
Algorithm." International ConferenceonIntelligentSystems,
Modelling and Simulation.
[4] Garg, Dweepna, and Parth Gohil. "Ant Colony Optimized
Routing for Mobile Ad Hoc Networks (MANET)."
International Journal of SmartSensorsandAdHocNetworks
[5] Hussein, O., and T. Saadawi. "Ant routing algorithm for
mobile ad-hoc networks (ARAMA)."
[6] Ladhake, S. A., and Shradha A. Thakare. "A review: ant
based ad hoc routing protocols." International Journal of
Emerging Technology and Advanced Engineering .
[7] Di Caro, Gianni, Frederick Ducatelle, and Luca Maria
Gambardella. "AntHocNet: an ant-based hybrid routing
algorithm for mobile ad hoc networks." International
Conference on Parallel Problem Solving from Nature.
Springer Berlin Heidelberg, 2004.
[8] Ros, Francisco J., and Pedro M. Ruiz. "Implementing a
new manet unicast routing protocol in ns2." Dept. of
Information and Communications Engineering University of
Murcia (2004).

More Related Content

What's hot (19)

PDF
En33838844
IJERA Editor
 
PDF
Paper id 21201449
IJRAT
 
PDF
Extensive Reviews of OSPF and EIGRP Routing Protocols based on Route Summariz...
IJERA Editor
 
PDF
Destination Aware APU Strategy for Geographic Routing in MANET
Editor IJCATR
 
PDF
A018120105
IOSR Journals
 
PPTX
Lte rach configuration and capacity
Young Hwan Kim
 
PDF
Az26337342
IJERA Editor
 
PDF
Ijcnc050204
IJCNCJournal
 
PDF
Par petal ant routing algorithm for
IJCNCJournal
 
PPTX
Network Layer
reshmadayma
 
PDF
P ERFORMANCE C OMPARISON OF R OUTING P ROTOCOLS IN M OBILE A D H OC N E...
ijujournal
 
PDF
Performance comparison of routing protocols in mobile ad hoc networks
ijujournal
 
PDF
D010231821
IOSR Journals
 
PPTX
RACH Procedures
Issa Haidar
 
PDF
Welcome to International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
PDF
Survey of Modified Routing Protocols for Mobile Ad-hoc Network
ijsrd.com
 
PDF
Experiment of Routing Protocol AODV (AdHoc On-demand Distance Vector)
IJMER
 
PPTX
LTE RACH Procedure
Aalekh Jain
 
En33838844
IJERA Editor
 
Paper id 21201449
IJRAT
 
Extensive Reviews of OSPF and EIGRP Routing Protocols based on Route Summariz...
IJERA Editor
 
Destination Aware APU Strategy for Geographic Routing in MANET
Editor IJCATR
 
A018120105
IOSR Journals
 
Lte rach configuration and capacity
Young Hwan Kim
 
Az26337342
IJERA Editor
 
Ijcnc050204
IJCNCJournal
 
Par petal ant routing algorithm for
IJCNCJournal
 
Network Layer
reshmadayma
 
P ERFORMANCE C OMPARISON OF R OUTING P ROTOCOLS IN M OBILE A D H OC N E...
ijujournal
 
Performance comparison of routing protocols in mobile ad hoc networks
ijujournal
 
D010231821
IOSR Journals
 
RACH Procedures
Issa Haidar
 
Welcome to International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Survey of Modified Routing Protocols for Mobile Ad-hoc Network
ijsrd.com
 
Experiment of Routing Protocol AODV (AdHoc On-demand Distance Vector)
IJMER
 
LTE RACH Procedure
Aalekh Jain
 

Similar to Anthocnet Routing Algorithm for Mobile Ad Hoc Networks (20)

PDF
Performance Evaluation of Artificial Ant Colony using Zone Based Routing Appr...
IRJET Journal
 
PDF
Paper id 2120147
IJRAT
 
PDF
IRJET- Performance Improvement of Wireless Network using Modern Simulation Tools
IRJET Journal
 
PDF
C OMPARISON OF AODV AND ANTHOCNET IN S TATIC W IRELESS N ETWORK
IJCI JOURNAL
 
PDF
Implementation of Optimized Ant Based Routing Algorithm for Manet
IRJET Journal
 
PDF
Simulation of Route Optimization with load balancing Using AntNet System
IOSR Journals
 
PDF
Routing of traffic sensors in intelligent transportation system
eSAT Journals
 
PDF
Performance Evaluation of Routing Protocols in University Network
ijtsrd
 
PDF
An efficient ant optimized multipath routing in wireless sensor network
Editor Jacotech
 
PDF
Robustness Analysis of Buffer Based Routing Algorithms in Wireless Mesh Network
Association of Scientists, Developers and Faculties
 
PDF
Float-based Pipeline Monitoring Network
Editor IJCATR
 
PDF
IRJET- Comparative Study of Reactive Routing Protocols in MANET: A Review
IRJET Journal
 
PDF
Analyzing performance of zrp by varying node density and transmission range
Alexander Decker
 
PPT
My Final Year B.Tech Research Project
Eeshan Srivastava
 
PDF
Understanding Network Routing Problem and Study of Routing Algorithms and Heu...
IRJET Journal
 
PPTX
Network layer new
reshmadayma
 
PDF
13 48-1-pb
Editor IJARCET
 
PPTX
Network layer u3
IndrajaMeghavathula
 
PDF
Route optimization in manets with aco and ga
eSAT Publishing House
 
Performance Evaluation of Artificial Ant Colony using Zone Based Routing Appr...
IRJET Journal
 
Paper id 2120147
IJRAT
 
IRJET- Performance Improvement of Wireless Network using Modern Simulation Tools
IRJET Journal
 
C OMPARISON OF AODV AND ANTHOCNET IN S TATIC W IRELESS N ETWORK
IJCI JOURNAL
 
Implementation of Optimized Ant Based Routing Algorithm for Manet
IRJET Journal
 
Simulation of Route Optimization with load balancing Using AntNet System
IOSR Journals
 
Routing of traffic sensors in intelligent transportation system
eSAT Journals
 
Performance Evaluation of Routing Protocols in University Network
ijtsrd
 
An efficient ant optimized multipath routing in wireless sensor network
Editor Jacotech
 
Robustness Analysis of Buffer Based Routing Algorithms in Wireless Mesh Network
Association of Scientists, Developers and Faculties
 
Float-based Pipeline Monitoring Network
Editor IJCATR
 
IRJET- Comparative Study of Reactive Routing Protocols in MANET: A Review
IRJET Journal
 
Analyzing performance of zrp by varying node density and transmission range
Alexander Decker
 
My Final Year B.Tech Research Project
Eeshan Srivastava
 
Understanding Network Routing Problem and Study of Routing Algorithms and Heu...
IRJET Journal
 
Network layer new
reshmadayma
 
13 48-1-pb
Editor IJARCET
 
Network layer u3
IndrajaMeghavathula
 
Route optimization in manets with aco and ga
eSAT Publishing House
 
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
PDF
Kiona – A Smart Society Automation Project
IRJET Journal
 
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
PDF
Breast Cancer Detection using Computer Vision
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
Kiona – A Smart Society Automation Project
IRJET Journal
 
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
Breast Cancer Detection using Computer Vision
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Ad

Recently uploaded (20)

PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PPTX
Thermal runway and thermal stability.pptx
godow93766
 
PPTX
Green Building & Energy Conservation ppt
Sagar Sarangi
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPTX
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
PPT
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
PDF
Unified_Cloud_Comm_Presentation anil singh ppt
anilsingh298751
 
PPTX
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
PDF
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
PPTX
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
PPTX
Day2 B2 Best.pptx
helenjenefa1
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PPTX
Introduction to Neural Networks and Perceptron Learning Algorithm.pptx
Kayalvizhi A
 
DOC
MRRS Strength and Durability of Concrete
CivilMythili
 
PPTX
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
PPTX
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
PPTX
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
Thermal runway and thermal stability.pptx
godow93766
 
Green Building & Energy Conservation ppt
Sagar Sarangi
 
Design Thinking basics for Engineers.pdf
CMR University
 
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
Unified_Cloud_Comm_Presentation anil singh ppt
anilsingh298751
 
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
Day2 B2 Best.pptx
helenjenefa1
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
Introduction to Neural Networks and Perceptron Learning Algorithm.pptx
Kayalvizhi A
 
MRRS Strength and Durability of Concrete
CivilMythili
 
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 

Anthocnet Routing Algorithm for Mobile Ad Hoc Networks

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 08 | Aug-2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1014 AntHocNet Routing Algorithm for Mobile Ad Hoc Networks Arockia Panimalar.S 1, Prateeksha.S.R2, Ansu Rodrigues3, Selshya.S4 1 Assistant Professor, Department of BCA & M.Sc SS, Sri Krishna Arts and Science College, Coimbatore, India 2,3,4 III BCA, Department of BCA & M.Sc SS, Sri Krishna Arts and Science College, Coimbatore, India ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - The paper provides a new routing algorithm named AntHocNet for Mobile AdhocNetworks(MANETs). Itis a kind of networks where all nodes are mobile and they communicate with each other via wireless connections. It is based on analysis of AntHocNet routing algorithm and Ant Colony Optimization Routing (ACOR) algorithm. It consists of both reactive and proactive components. In a reactive path setup phase, multiple paths are set up between the source and destination of a data session, and during the course of the communication session, ants proactively test existing paths and explore new ones. The main aim is to design an ant based routing algorithm for Ad hoc network. The work is completed partially and still new additions are required to make it a complete routing protocol. Key Words: Ad hoc, MANETs, AntHocNet, Routing Protocol 1. Introduction MANETs are a cluster of mobile nodes in communication without using fixed infrastructure. Figure 1 shows the Real ant’s search for food from Source (S) to Destination (D). Forward Ants (FA) search for food from S to D whereas, Backward Ants (BA) searches from D to S. When ants travel they discharge a chemical called pheromone. They find the shortest path using the high probability of pheromone. FA and BA are control packets used to amend the routing tables and disperse information about the traffic in the network. Fig 1: Ants take the shortest path from source to destination In recent years several ant based routing protocols are implemented, such as Probabilistic Emergent Routing Algorithm (PERA), AntHocNet, and Ant-Colony-Based Routing Algorithm (ARA). Ant based routing algorithm for MANETs can react to dynamic changes and solves problems locally. It finds the shortest path from S to D. It provideshigh number of routes, reliable connections, and controls updating and broadcasting. It combines a Reactive Route Discovery (RRD) [1] with proactive route maintenance and recovery process. Routing data is savedinpheromonetables and routing tables. In RRD [2] the source node creates a reactive forward ant. This is a control packet that has a goal to find a path from S to an assigned D. Ant contains the address of S and D. It proceeds through the network. It collects a list of nodes it has visited from S to D. If routing data is available, the node chooses a next hop for the ant probabilistically, based on the different pheromone values associated with next hops for D. At the destination the reactive FA is transformed into the BA, if at least one copy of the FA is received. The first Ant is accepted and converted in to BA. Remaining copies are discarded [3]. Proactive path maintenance serves to update and extend the availability of routing data. It has two sub processes, pheromone diffusion and proactive sampling. Pheromone diffusion periodically disperses quality of information. This field of pheromone is indicated in the virtual pheromone values in the pheromone tables of the nodes. Section 2 briefs about the various routing algorithms. Section 3 gives the approach of implementing a new routing protocol and Section 4 concludes the paper. 2. Various Routing Approaches A. Demand Routing Approach Demand routing approach for multi hop Ad hoc networks is proposed. It is based on swarm Intelligence and Ant Colony Optimization (ACO) metaheuristic. Route discovery generates optimal path for data packets. Path maintenance exhausts periodically and retains optimal path when the topology is changed in Ad hoc Networks.Existing routes may fail or new paths are generated. B. Ant Routing Algorithm Ant routing algorithm for mobile Ad hoc networks (ARAMA) is proposed. It solves the routing problemin MANETanditis a dynamic routing algorithm with controlled overheads in the network. C. Ant Based Ad hoc Routing Protocols Ant Based Ad hoc Routing Protocols is the best solution for the routing algorithm for solving the routing problems in
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 08 | Aug-2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1015 MANETs with controlled overheads. This algorithm can use different quality of service parameters in optimization. Exploring and tables updating is done on demand, which minimize the overheads. This technique provides the redundant paths between source and destination. D. AntHocNet and ACO routing algorithm on MANETs AntHocNet and ACO routing algorithm on MANETs are discussed. It associates both reactive setup and proactive maintenance. In simulation tests authors prove that AntHocNet has a performance gain over the Ad hoc On- Demand Distance Vector (AODV) routing protocol. Increase in Delivery ratio, average end-to-end delay, and average jitter are observed. 3. Implementing a New Protocol for NS2 Initially, we createa current sampleMANETroutingprotocol called Antrouteproto. Consider that Antrouteproto is a proactive routing protocol that requires sending out some control packetsperiodically.Intheroutingtable, information is stored in each entry in the form of destination and next hop addresses. Then weconfiguretheAntrouteprotorouting protocol similar to AntHocNet. We add and modify the delay table in Antrouteproto in header and source files. Antrouteproto routing protocol is compiled successfullybut when we run a test simulation the packets are not successfully transmitted. The trace file is generated but the routing table is empty throughout the simulation. The same simulation file works on AntHocNet, AODV, and Dynamic Source Routing (DSR). Various modules of implementation and changes are shown as below. A. File Structure 1Antrouteproto.h defines all needed timers and routing agents that perform protocol’s functionality. 2. Antrouteproto.ccimplementsall timers,routingagent and Tcl hooks. 3. Antrouteproto_pkt.h defines all packets. Antrouteproto protocol needs to exchange among nodes in the MANET. 4. Antrouteproto_rtable.h defines our own routing table. 5.Antrouteproto_rtable.cc shows the routing table implementation. 6. Delay_table.h defines generation of our own delay table. 7. Delay_table.cc is delay table implementation. B. Class Structure This is the main class to implement the routing protocol. Agent’s shows endpoints at the network layer. Agent class connects with Tcl script, which is adequate to handle our routing protocol. We create an agent to implement a routing protocol by inheriting from Agent class of ns2.34. Routing agent consists of internal state and a routing table. Internal state maintains a new class or as a collection of attributes. Routing table is a new class, Antrouteproto_rtable. Timer Class is everything related to timing like some periodic updating of routing table or discardinganyroutesaftersome time using timer class. Trace Class is writing to a trace file about what happened in the simulation. Debug function is used to print a debug messages. C. Packet Types This defines the packet structure. Packet class stores all the defined packets as an array of unsigned charswherepackets fields are saved. To access our defined packet, we define in our header, an offset property which will find where the packet is. D. The Routing Agent A new Antrouteproto class havingattributes andfunctionsis defined. Header files included packet header, Agent base class, Packet class, and Timer Handler base class. A port classifier object is a node that consists of an address classifier and a port classifier. Port Classifier class, used for passing packets up to upper layers, recv to call whenever agent receives a packet either from upper layer agent like UDP or TCP or from some other node. A Port classifierobject consists of an address classifier anda portclassifier.Another important attribute is the Trace object. It is used to produce logs to be store in the trace file. E. Timer It has expire method performing two tasks i. Sends a new control packet. ii. Reschedule the timer itself F. Constructor The constructor implementation and calling the constructor is started as a base class passingPT_ANTROUTEPROTOasan argument. It is used to classify control packets sent and received by this routing agent. We bind accessible_var as a Boolean attribute that can be read and written from Tcl. To bind this variable as an integer, we must use the bind function instead of bind bool. We save the address of agent using the accessible_var_ from Tcl interface. Antrouteproto obtained from Agent base class, has two functions recv and command. recv is called at any time the agent receives a packet. This can occur when the node itself is generating a packet or when it is receiving one from another node. The command function is invoked from Tcl.
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 08 | Aug-2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1016 recv_Antrouteproto_pkt method The recv_Antrouteproto_pkt is invoked by recv when a Antrouteproto packet is received and gets the IP header and the Antrouteproto's header as defined in Antrouteproto_pkt.h. RT_PORT as defined in common/packet.h is the routing port with value 255. We check the source and destination port to be RT_PORT process. These packets according to protocol specifications release the resources Packet::free (p). send_Antrouteproto_pkt method It is called by custom timer function expire. When it expires we allocate the packet using allocpkt function. This function is defined for all agents. reset_Antrouteproto_pkt_timer method It consists of packet sending timer.Thiscanrescheduleitself. forwarddata () The forward data function chooses whether a packet has to be delivered to the upper layer agents or to be forward to other node. In case if packet is broadcasted, then next hop will be field accordingly. The implementation returns IP_BROADCAST when there is no route to destination address and we drop the packet with a debug message G. The Routing Table The routing table can be implemented as a different class or as any other data structure. For each entry in routing table, there exists information to store like destination address, next hop, cost, etc. etc. Here, we are storing only the destination address and the corresponding next hop in the routing table using Hash Table. The routing table class determines the routing table according to the need and any data structure can be used to define functions likeaddentry, rm_entry, clear or print. H. The Delay Table We can implement the delay table in Antrouteproto routing protocol as a different class or any other data structure. For each entry in delay table, there might be packet information like destination address, source address, flow id and delay. 4. Conclusion In this paper we have presented some of the steps in the design of the ant based routing protocol foradhoc networks. The routing protocol is based on the Anthocnet routing protocol. The implementation is not complete but we have presented some of the changes required to different files. By simulations we analyze that the Antrouteproto can create the routing table and the trace file is generated, but routing table is printed empty throughout the simulation. 5. Future Enhancement In future, the routing table for Antrouteproto routing protocol can be implemented using delay table without empty routing table. The work includes making Antrouteproto a hybrid routing protocol which reduces the overhead of Anthocnet. 6. References [1] Hussein, Osama H., Tarek N. Saadawi, and Myung Jong Lee. "Probability routing algorithm for mobile ad hoc networks' resources management." [2] Gunes, Mesut, Udo Sorges, and Imed Bouazizi. "ARA-the ant-colony based routing algorithm for MANETs." International Conference on. IEEE, 2002. [3] Al Maghayreh, Eslam, et al. "Bees_ Ants Based Routing Algorithm." International ConferenceonIntelligentSystems, Modelling and Simulation. [4] Garg, Dweepna, and Parth Gohil. "Ant Colony Optimized Routing for Mobile Ad Hoc Networks (MANET)." International Journal of SmartSensorsandAdHocNetworks [5] Hussein, O., and T. Saadawi. "Ant routing algorithm for mobile ad-hoc networks (ARAMA)." [6] Ladhake, S. A., and Shradha A. Thakare. "A review: ant based ad hoc routing protocols." International Journal of Emerging Technology and Advanced Engineering . [7] Di Caro, Gianni, Frederick Ducatelle, and Luca Maria Gambardella. "AntHocNet: an ant-based hybrid routing algorithm for mobile ad hoc networks." International Conference on Parallel Problem Solving from Nature. Springer Berlin Heidelberg, 2004. [8] Ros, Francisco J., and Pedro M. Ruiz. "Implementing a new manet unicast routing protocol in ns2." Dept. of Information and Communications Engineering University of Murcia (2004).