SlideShare a Scribd company logo
1 of 10
Download to read offline
RAMCO INSTITUTE OF TECHNOLOGY
Dept. of Computer Science and Engineering
Rajapalayam, Tamilnadu, India
Virtual Lab
Routing In Mobile Ad hoc Networks
http://vlabs.iitkgp.ernet.in/ant/7/
Prepared By
Dr.M.Kaliappan., M.E.,Ph.D.
Associate Professor
Date: 16.03.2019
Topic: Network simulator on Mobile Ad-hoc Networks
1. Objectives:
 Make the students to design and simulate Mobile Ad-hoc Network in graphically using
Network Simulation tool(NS-2)
 Analysis performance of various routing protocols such as DSR and AODV.
2. Network simulator.
The Network simulator2 (NS2) designed to simulate and design mobile Adhoc network that
views graphically. It shows the network traffic (packet movement) visually and how the packets
transferred from source node to destination node. Students can visualize the mobility of the nodes
for MANET simulation. We can design both wired and wireless networks with various network
protocols such as DSR, AODV, and DSDV, etc. Also, we perform analytical studies using network
performance metrics such as packet delivery ratio, end-to-end delay, and throughput. This gives
research insights and motivation to do research in this domain. We can install NS2 Linux
environment.
The following link is used to access the virtual lab.
http://vlab.co.in/ // URL for Virtual lab
http://vlabs.iitkgp.ernet.in/ant/7/ // URL for MANET simulation
This virtual lab is designed and implemented by IIT Kharagpur, India. This simulation supports
various computer networks such as Local Area Network, Satellite Network, Wi-Fi Network,
WiMAX Network, Mobile Ad-hoc Network, Wireless Sensor Network, Bluetooth Network,
and ZigBee Network.
3. Manual
3.1 Introduction.
The prime goal of this simulation is setup MANET with various routing protocols like
AODV, DSR, and DSDV. The simulation is written by TCL script [2]. The network performance
is analyzed by trace file. The trace file is generated automatically after the simulation is completed.
The trace file contains all activities that happened during the simulation and it recorded all the data
based on the event. This simulation shows the MANET setup, how a packet is transferred from
source to destination, what happens if the network gets disrupted, and how new routing path is
constructed after disruption or topology changes or node dead. This simulation is set up with four
mobile nodes and performs packet transfer and acknowledgment, route disruption and new route
formation. This simulation contains an introduction, theory, simulation, self-evaluation, procedure,
exercises and references section to get the insight of routing in MANET.
3.2 Instructions to perform a simulation experiment.
 Visit to the following URL to perform a simulation for Routing in MANET.
http://vlabs.iitkgp.ernet.in/ant/7/
 This page contains five tabs such as Introduction, theory, Simulation, Self-evaluation,
procedure, exercise and references to perform the MANET simulation.
 Select the simulation tab.
 Click button 1 to setup a MANET with four nodes. It shows how nodes form a network
automatically and perform packet transformation from node1 to node 4 with
acknowledgment. Figure 1 shows the simulation view.
.
 Figure1 : Simulation view of four nodes
 Then, Click button 2. It describes and shows a packet transformation when disruption of
routing path between node 1 to node2. Here, when node2 moved out of the coverage, new
routing path will be constructed between node 1 and node 2 without node2. Figure 2 shows
the route disruption scenario.
Figure 2: Node mobility.
New routing path (path: Node1 – node 4 – node 3) will be constructed automatically when
node2 moves out of the transmission range. Figure 3 shows the packet transformation through new
routing path and figure 4 shows the how acknowledgment packet transfer from destination
node(node3) to the source node (node1).
Figure 3: Packet transformation through new route.
Figure 4: Acknowledgement packet transformation
3.3 NS-2 INSTALLATION
NS2 can be installed in Linux environment [2]. Installation steps are given below.
 Copy ns-allinone-2.34.tar.gz package to /root folder
 Right click & do extract here
 It will create ns-allinone-2.34 folder
 Open the terminal and go to ns-allinone-2.34 folder
 cd /root/ ns-allinone-2.34
 To install type the command
 ./install
 Open another terminal : set the environment variable open the /etc/profile file
 gedit /etc/profile
 Enter these variable in end of profile
 export PATH=$PATH
 export LD_LIBRARY_PATH=
 export TCL_ LIBRARY=
Copy the value of PATH, LD_LIBRARY_PATH, and TCL_LIBRARY environment variables and
paste it in /etc/profile file.
3.3.1 Example:
 set the environment variable
 export PATH=$PATH:/root/ns-allinone- 2.34/tcl8.4.15/unix:/root/ns-allinone-
2.34/tk8.4.15/unix: /root/ns-allinone-2.34/bin
 export LD_LIBRARY_PATH=/root/ ns-allinone-2.34/lib: /root/ns-allinone-
2.34/otcl-1.13
 export TCL_ LIBRARY=/root/ns-allinone-2.34/tcl8.4.15/library
3.4 Frequent Ask Questions and answers.
1. How nodes can be increased in simulation?
2. How can set the node property and routing protocol in same MANET scenario?
3. How can we analyse the performance of the MANET?
4. How can develop, design and implement new protocol for our research?
3.4.1 Answer
1. How nodes can be increased in simulation?
We write a TCL script in NS2 for MANET simulation. We can increase number of nodes
using the following scripts.
#Create six nodes
for {set i 0} {$i < 6} {incr i} {
set n($i) [$ns node]
}
#Create links between the nodes
for {set i 0} {$i < 6} {incr i} {
$ns duplex-link $n($i) $n([expr ($i+1)%7]) 1Mb 10ms
DropTail
}
#Code for creating specific number of nodes
for {set i 0 } {$i < val(nn)}{incr i} {
set node_($i) [$ns_ node]
}
#Define a node position randomly
for {set i 0}{$i < $val(nn)}{incr i}{
$ns_ initial_node_pos $node_($i) 30
}
2. How can set the node property and routing protocol in same MANET scenario?
The following TCL scripts used to node setting and routing protocol for MANET.
# node configuration
$ns_ node-config - adhocRouting AODV
- llType LL 
- macType Mac/802_11 
- ifqType $qtype 
- ifqLen 50 
- antType Antenna/OmniAntenna 
-propType Propagation/TwoRayGround 
- phyType Phy/WirelessPhy 
- channelType Channel/WirelessChannel
- topoInstance $topo 
- agentTrace ON 
- routerTrace ON 
- macTrace OFF
3. How can we analyse the performance of the MANET?
The performance metrics such as hop-count, packet delivery ratio and end-to-end delay used
to analyses the MANET performance. The simulation result provides a trace file that contains the
activities of each node based on the event. The trace file format is as follows.
s –t 163.001503520 –Hs 0 –Hd -2 –Ni 0 –Nx 300.00 –Ny 500.00 –Nz
0.0 –Ne -1.000000 –Nl AGT –Nw --- –Ma 0 –Md 0 –Ms 0 –Mt 0 –Is
0.0–Id 2.0 –It cbr –Il 200 –If 1 –Ii 77 –Iv 32 –Pn cbr –Pi 32 –Pf 0 –Po 0
Field 0: Event type
 s:send r:receive d:drop f:forward
Field 1: General tag
 -t: time
Field 3: Next hop info
 -Hs: id for this node
 -Hd: id for next hop towards the destination
Field 4: Node property type tag
 Ni: node id
 Nx –Ny –Nz: node’s x/y/z coordinate
 Ne: Node energy level
 Nl: trace level, such as AGT, RTR, MAC
 Nw: reason for the event
Field 5: Packet info at MAC level
 Ma: duration
 Md: dest’s Ethernet address
 Ms: src’s Ethernet address
 Mt: Ethernet type
Field 6: Packet information at IP level
 Is: source address, source port number
 Id: dest address, dest port number
 It: packet type
 Il: packet size
 If: flow id
 Ii: unique id
 Iv: TTL value
Field 7:
 Packet info at “Application level” which consists of the type of application like
ARP, TCP, and Adhoc routing protocols like DSDV, DSR, AODV etc. The field
consists of a leading –P and the list of tags for different applications.
Then, write an awk script that takes data from trace file and give the report for performance metrics
such as packet delivery ratio, throughput, etc.
Case 1
1. Varying number of mobiles nodes
The protocols behavior such as packet delivery ratio and throughput can be analyzed by
varying the number of nodes in the given topology area.
Table 1: AODV
No of nodes
Packet Delivery Ratio(PDR)
%
Throughput
%
20 78 85
30 79 86
40 78 85
50 79 85
Table 2: DSR
No of nodes
Packet Delivery Ratio(PDR)
%
Throughput
%
20 79 86
30 80 85
40 80 85
50 81 86
3.5 Reflection Report
 All the students worked and make a simulation for MANET in a virtual lab comfortably
because it contains click and view strategies.
 Students get clear fundamental knowledge of forming Adhoc networks and how packets
are transferred from source to destination.
 Students worked with joyfully because of visualization blow in their mind.
 Simulation with varying nodes taken a long time. Given the lecture, the period is not
enough to complete the simulation with various scenarios. Next time, I need to pre-plan
for this kind of lecture in advance and allotted more time because it gives more insights
to MANET and it is core content of the course.
 I assisted to slow learners to complete the simulation in their systems.
 I faced a lot of issues to install NS2 in our lab and students’ laptop.
 I conducted this virtual lab exercise and simulation with varying nodes for all 51
students (whole class). I felt that few students not comfortable to work with simulation
in our lab. In the future, I will plan to conduct this exercise for a small group that will
provide more information to students.
 All the students are given good feedback and some of the students preferred their final
year project in this field
3.6 Conclusion
This MANET simulation provides simple ad-hoc network formation and network protocol
behaviors. Also, it gives excellent procedure and visualizes for MANET. This virtual lab does not
provide performance analysis procedures and implementation. The presented simulation of
MANET promotes students self-learning capabilities.
References:
1. http://www.jgyan.com/ns2/awk%20scripts%20for%20ns2%20result%20analysis.php
2. https://www.isi.edu/nsnam/ns/tutorial/
3. http://nile.wpi.edu/NS/

More Related Content

Similar to Virtual lab - Routing in Mobile Adhoc Networks

Final Report(Routing_Misbehavior)
Final Report(Routing_Misbehavior)Final Report(Routing_Misbehavior)
Final Report(Routing_Misbehavior)Ambreen Zafar
 
WiMAX implementation in ns3
WiMAX implementation in ns3WiMAX implementation in ns3
WiMAX implementation in ns3Mustafa Khaleel
 
Performance evaluation of ns2 and omnet++ simulators for aodv protocol in manet
Performance evaluation of ns2 and omnet++ simulators for aodv protocol in manetPerformance evaluation of ns2 and omnet++ simulators for aodv protocol in manet
Performance evaluation of ns2 and omnet++ simulators for aodv protocol in maneteSAT Publishing House
 
Performance evaluation of ns2 and omnet++ simulators for aodv protocol in manet
Performance evaluation of ns2 and omnet++ simulators for aodv protocol in manetPerformance evaluation of ns2 and omnet++ simulators for aodv protocol in manet
Performance evaluation of ns2 and omnet++ simulators for aodv protocol in maneteSAT Journals
 
Network simulator 2 a simulation tool for linux
Network simulator 2 a simulation tool for linuxNetwork simulator 2 a simulation tool for linux
Network simulator 2 a simulation tool for linuxPratik Joshi
 
A Survey On Secure Cooperative Bait Detection Approach For...
A Survey On Secure Cooperative Bait Detection Approach For...A Survey On Secure Cooperative Bait Detection Approach For...
A Survey On Secure Cooperative Bait Detection Approach For...Jennifer Perry
 
Analysis of Random Based Mobility Model using TCP Traffic for AODV and DSDV M...
Analysis of Random Based Mobility Model using TCP Traffic for AODV and DSDV M...Analysis of Random Based Mobility Model using TCP Traffic for AODV and DSDV M...
Analysis of Random Based Mobility Model using TCP Traffic for AODV and DSDV M...ijsrd.com
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentIJERD Editor
 
Migrating packet dropping in mobile ad hoc network based on modified ack-base...
Migrating packet dropping in mobile ad hoc network based on modified ack-base...Migrating packet dropping in mobile ad hoc network based on modified ack-base...
Migrating packet dropping in mobile ad hoc network based on modified ack-base...Alexander Decker
 
D03601023026
D03601023026D03601023026
D03601023026theijes
 

Similar to Virtual lab - Routing in Mobile Adhoc Networks (20)

Final Report(Routing_Misbehavior)
Final Report(Routing_Misbehavior)Final Report(Routing_Misbehavior)
Final Report(Routing_Misbehavior)
 
WiMAX implementation in ns3
WiMAX implementation in ns3WiMAX implementation in ns3
WiMAX implementation in ns3
 
Performance evaluation of ns2 and omnet++ simulators for aodv protocol in manet
Performance evaluation of ns2 and omnet++ simulators for aodv protocol in manetPerformance evaluation of ns2 and omnet++ simulators for aodv protocol in manet
Performance evaluation of ns2 and omnet++ simulators for aodv protocol in manet
 
Performance evaluation of ns2 and omnet++ simulators for aodv protocol in manet
Performance evaluation of ns2 and omnet++ simulators for aodv protocol in manetPerformance evaluation of ns2 and omnet++ simulators for aodv protocol in manet
Performance evaluation of ns2 and omnet++ simulators for aodv protocol in manet
 
Cisco Activity
Cisco ActivityCisco Activity
Cisco Activity
 
Network simulator 2 a simulation tool for linux
Network simulator 2 a simulation tool for linuxNetwork simulator 2 a simulation tool for linux
Network simulator 2 a simulation tool for linux
 
A Survey On Secure Cooperative Bait Detection Approach For...
A Survey On Secure Cooperative Bait Detection Approach For...A Survey On Secure Cooperative Bait Detection Approach For...
A Survey On Secure Cooperative Bait Detection Approach For...
 
Chapter 4 v6.11
Chapter 4 v6.11Chapter 4 v6.11
Chapter 4 v6.11
 
978-3-659-82929-1
978-3-659-82929-1978-3-659-82929-1
978-3-659-82929-1
 
REPORT_INTERNSHIP
REPORT_INTERNSHIPREPORT_INTERNSHIP
REPORT_INTERNSHIP
 
opnet lab report
opnet lab reportopnet lab report
opnet lab report
 
Analysis of Random Based Mobility Model using TCP Traffic for AODV and DSDV M...
Analysis of Random Based Mobility Model using TCP Traffic for AODV and DSDV M...Analysis of Random Based Mobility Model using TCP Traffic for AODV and DSDV M...
Analysis of Random Based Mobility Model using TCP Traffic for AODV and DSDV M...
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
June 28 Presentation
June 28 PresentationJune 28 Presentation
June 28 Presentation
 
Migrating packet dropping in mobile ad hoc network based on modified ack-base...
Migrating packet dropping in mobile ad hoc network based on modified ack-base...Migrating packet dropping in mobile ad hoc network based on modified ack-base...
Migrating packet dropping in mobile ad hoc network based on modified ack-base...
 
1
11
1
 
D03601023026
D03601023026D03601023026
D03601023026
 
Ijcatr04041022
Ijcatr04041022Ijcatr04041022
Ijcatr04041022
 
Report_Ines_Swayam
Report_Ines_SwayamReport_Ines_Swayam
Report_Ines_Swayam
 
NP-lab-manual.docx
NP-lab-manual.docxNP-lab-manual.docx
NP-lab-manual.docx
 

More from Ramco Institute of Technology, Rajapalayam, Tamilnadu, India

More from Ramco Institute of Technology, Rajapalayam, Tamilnadu, India (20)

AD3251-Data Structures Design-Notes-Tree.pdf
AD3251-Data Structures  Design-Notes-Tree.pdfAD3251-Data Structures  Design-Notes-Tree.pdf
AD3251-Data Structures Design-Notes-Tree.pdf
 
AD3251-Data Structures Design-Notes-Searching-Hashing.pdf
AD3251-Data Structures  Design-Notes-Searching-Hashing.pdfAD3251-Data Structures  Design-Notes-Searching-Hashing.pdf
AD3251-Data Structures Design-Notes-Searching-Hashing.pdf
 
Neural networks using tensor flow in amazon deep learning server
Neural networks using tensor flow in amazon deep learning serverNeural networks using tensor flow in amazon deep learning server
Neural networks using tensor flow in amazon deep learning server
 
Mobile Computing-Unit-V-Mobile Platforms and Applications
Mobile Computing-Unit-V-Mobile Platforms and ApplicationsMobile Computing-Unit-V-Mobile Platforms and Applications
Mobile Computing-Unit-V-Mobile Platforms and Applications
 
CS8601 mobile computing Two marks Questions and Answer
CS8601 mobile computing Two marks Questions and AnswerCS8601 mobile computing Two marks Questions and Answer
CS8601 mobile computing Two marks Questions and Answer
 
Mobile computing Unit III MANET Notes
Mobile computing Unit III MANET NotesMobile computing Unit III MANET Notes
Mobile computing Unit III MANET Notes
 
Unit II -Mobile telecommunication systems
Unit II -Mobile telecommunication systemsUnit II -Mobile telecommunication systems
Unit II -Mobile telecommunication systems
 
Mobile computing unit-I-notes 07.01.2020
Mobile computing unit-I-notes 07.01.2020Mobile computing unit-I-notes 07.01.2020
Mobile computing unit-I-notes 07.01.2020
 
Flipped class collaborative learning-kaliappan-rit
Flipped class collaborative learning-kaliappan-ritFlipped class collaborative learning-kaliappan-rit
Flipped class collaborative learning-kaliappan-rit
 
Web services-Notes
Web services-NotesWeb services-Notes
Web services-Notes
 
Building Service Oriented Architecture based applications
Building Service Oriented Architecture based applicationsBuilding Service Oriented Architecture based applications
Building Service Oriented Architecture based applications
 
Innovative Practice-ZigSaw
Innovative Practice-ZigSaw Innovative Practice-ZigSaw
Innovative Practice-ZigSaw
 
SOA unit-3-notes-Introduction to Service Oriented Architecture
SOA unit-3-notes-Introduction to Service Oriented ArchitectureSOA unit-3-notes-Introduction to Service Oriented Architecture
SOA unit-3-notes-Introduction to Service Oriented Architecture
 
Innovative practice -Three step interview-Dr.M.Kaliappan
Innovative practice -Three step interview-Dr.M.KaliappanInnovative practice -Three step interview-Dr.M.Kaliappan
Innovative practice -Three step interview-Dr.M.Kaliappan
 
Service Oriented Architecture-Unit-1-XML Schema
Service Oriented Architecture-Unit-1-XML SchemaService Oriented Architecture-Unit-1-XML Schema
Service Oriented Architecture-Unit-1-XML Schema
 
IT6801-Service Oriented Architecture-Unit-2-notes
IT6801-Service Oriented Architecture-Unit-2-notesIT6801-Service Oriented Architecture-Unit-2-notes
IT6801-Service Oriented Architecture-Unit-2-notes
 
Innovative Practice-Think-pair-share-Topic: DTD for TV schedule
Innovative Practice-Think-pair-share-Topic: DTD for TV scheduleInnovative Practice-Think-pair-share-Topic: DTD for TV schedule
Innovative Practice-Think-pair-share-Topic: DTD for TV schedule
 
IT6801-Service Oriented Architecture- UNIT-I notes
IT6801-Service Oriented Architecture- UNIT-I notesIT6801-Service Oriented Architecture- UNIT-I notes
IT6801-Service Oriented Architecture- UNIT-I notes
 
Soa unit-1-well formed and valid document08.07.2019
Soa unit-1-well formed and valid document08.07.2019Soa unit-1-well formed and valid document08.07.2019
Soa unit-1-well formed and valid document08.07.2019
 
Soa unit-1-xml namespaces 09.07.2019
Soa unit-1-xml namespaces 09.07.2019Soa unit-1-xml namespaces 09.07.2019
Soa unit-1-xml namespaces 09.07.2019
 

Recently uploaded

Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 

Recently uploaded (20)

Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 

Virtual lab - Routing in Mobile Adhoc Networks

  • 1. RAMCO INSTITUTE OF TECHNOLOGY Dept. of Computer Science and Engineering Rajapalayam, Tamilnadu, India Virtual Lab Routing In Mobile Ad hoc Networks http://vlabs.iitkgp.ernet.in/ant/7/ Prepared By Dr.M.Kaliappan., M.E.,Ph.D. Associate Professor Date: 16.03.2019
  • 2. Topic: Network simulator on Mobile Ad-hoc Networks 1. Objectives:  Make the students to design and simulate Mobile Ad-hoc Network in graphically using Network Simulation tool(NS-2)  Analysis performance of various routing protocols such as DSR and AODV. 2. Network simulator. The Network simulator2 (NS2) designed to simulate and design mobile Adhoc network that views graphically. It shows the network traffic (packet movement) visually and how the packets transferred from source node to destination node. Students can visualize the mobility of the nodes for MANET simulation. We can design both wired and wireless networks with various network protocols such as DSR, AODV, and DSDV, etc. Also, we perform analytical studies using network performance metrics such as packet delivery ratio, end-to-end delay, and throughput. This gives research insights and motivation to do research in this domain. We can install NS2 Linux environment. The following link is used to access the virtual lab. http://vlab.co.in/ // URL for Virtual lab http://vlabs.iitkgp.ernet.in/ant/7/ // URL for MANET simulation This virtual lab is designed and implemented by IIT Kharagpur, India. This simulation supports various computer networks such as Local Area Network, Satellite Network, Wi-Fi Network, WiMAX Network, Mobile Ad-hoc Network, Wireless Sensor Network, Bluetooth Network, and ZigBee Network.
  • 3. 3. Manual 3.1 Introduction. The prime goal of this simulation is setup MANET with various routing protocols like AODV, DSR, and DSDV. The simulation is written by TCL script [2]. The network performance is analyzed by trace file. The trace file is generated automatically after the simulation is completed. The trace file contains all activities that happened during the simulation and it recorded all the data based on the event. This simulation shows the MANET setup, how a packet is transferred from source to destination, what happens if the network gets disrupted, and how new routing path is constructed after disruption or topology changes or node dead. This simulation is set up with four mobile nodes and performs packet transfer and acknowledgment, route disruption and new route formation. This simulation contains an introduction, theory, simulation, self-evaluation, procedure, exercises and references section to get the insight of routing in MANET. 3.2 Instructions to perform a simulation experiment.  Visit to the following URL to perform a simulation for Routing in MANET. http://vlabs.iitkgp.ernet.in/ant/7/  This page contains five tabs such as Introduction, theory, Simulation, Self-evaluation, procedure, exercise and references to perform the MANET simulation.  Select the simulation tab.  Click button 1 to setup a MANET with four nodes. It shows how nodes form a network automatically and perform packet transformation from node1 to node 4 with acknowledgment. Figure 1 shows the simulation view. .  Figure1 : Simulation view of four nodes
  • 4.  Then, Click button 2. It describes and shows a packet transformation when disruption of routing path between node 1 to node2. Here, when node2 moved out of the coverage, new routing path will be constructed between node 1 and node 2 without node2. Figure 2 shows the route disruption scenario. Figure 2: Node mobility. New routing path (path: Node1 – node 4 – node 3) will be constructed automatically when node2 moves out of the transmission range. Figure 3 shows the packet transformation through new routing path and figure 4 shows the how acknowledgment packet transfer from destination node(node3) to the source node (node1). Figure 3: Packet transformation through new route.
  • 5. Figure 4: Acknowledgement packet transformation 3.3 NS-2 INSTALLATION NS2 can be installed in Linux environment [2]. Installation steps are given below.  Copy ns-allinone-2.34.tar.gz package to /root folder  Right click & do extract here  It will create ns-allinone-2.34 folder  Open the terminal and go to ns-allinone-2.34 folder  cd /root/ ns-allinone-2.34  To install type the command  ./install  Open another terminal : set the environment variable open the /etc/profile file  gedit /etc/profile  Enter these variable in end of profile  export PATH=$PATH  export LD_LIBRARY_PATH=  export TCL_ LIBRARY= Copy the value of PATH, LD_LIBRARY_PATH, and TCL_LIBRARY environment variables and paste it in /etc/profile file.
  • 6. 3.3.1 Example:  set the environment variable  export PATH=$PATH:/root/ns-allinone- 2.34/tcl8.4.15/unix:/root/ns-allinone- 2.34/tk8.4.15/unix: /root/ns-allinone-2.34/bin  export LD_LIBRARY_PATH=/root/ ns-allinone-2.34/lib: /root/ns-allinone- 2.34/otcl-1.13  export TCL_ LIBRARY=/root/ns-allinone-2.34/tcl8.4.15/library 3.4 Frequent Ask Questions and answers. 1. How nodes can be increased in simulation? 2. How can set the node property and routing protocol in same MANET scenario? 3. How can we analyse the performance of the MANET? 4. How can develop, design and implement new protocol for our research? 3.4.1 Answer 1. How nodes can be increased in simulation? We write a TCL script in NS2 for MANET simulation. We can increase number of nodes using the following scripts. #Create six nodes for {set i 0} {$i < 6} {incr i} { set n($i) [$ns node] } #Create links between the nodes for {set i 0} {$i < 6} {incr i} { $ns duplex-link $n($i) $n([expr ($i+1)%7]) 1Mb 10ms DropTail }
  • 7. #Code for creating specific number of nodes for {set i 0 } {$i < val(nn)}{incr i} { set node_($i) [$ns_ node] } #Define a node position randomly for {set i 0}{$i < $val(nn)}{incr i}{ $ns_ initial_node_pos $node_($i) 30 } 2. How can set the node property and routing protocol in same MANET scenario? The following TCL scripts used to node setting and routing protocol for MANET. # node configuration $ns_ node-config - adhocRouting AODV - llType LL - macType Mac/802_11 - ifqType $qtype - ifqLen 50 - antType Antenna/OmniAntenna -propType Propagation/TwoRayGround - phyType Phy/WirelessPhy - channelType Channel/WirelessChannel - topoInstance $topo - agentTrace ON - routerTrace ON - macTrace OFF 3. How can we analyse the performance of the MANET? The performance metrics such as hop-count, packet delivery ratio and end-to-end delay used to analyses the MANET performance. The simulation result provides a trace file that contains the activities of each node based on the event. The trace file format is as follows. s –t 163.001503520 –Hs 0 –Hd -2 –Ni 0 –Nx 300.00 –Ny 500.00 –Nz 0.0 –Ne -1.000000 –Nl AGT –Nw --- –Ma 0 –Md 0 –Ms 0 –Mt 0 –Is 0.0–Id 2.0 –It cbr –Il 200 –If 1 –Ii 77 –Iv 32 –Pn cbr –Pi 32 –Pf 0 –Po 0
  • 8. Field 0: Event type  s:send r:receive d:drop f:forward Field 1: General tag  -t: time Field 3: Next hop info  -Hs: id for this node  -Hd: id for next hop towards the destination Field 4: Node property type tag  Ni: node id  Nx –Ny –Nz: node’s x/y/z coordinate  Ne: Node energy level  Nl: trace level, such as AGT, RTR, MAC  Nw: reason for the event Field 5: Packet info at MAC level  Ma: duration  Md: dest’s Ethernet address  Ms: src’s Ethernet address  Mt: Ethernet type Field 6: Packet information at IP level  Is: source address, source port number  Id: dest address, dest port number  It: packet type  Il: packet size  If: flow id  Ii: unique id  Iv: TTL value Field 7:  Packet info at “Application level” which consists of the type of application like ARP, TCP, and Adhoc routing protocols like DSDV, DSR, AODV etc. The field consists of a leading –P and the list of tags for different applications. Then, write an awk script that takes data from trace file and give the report for performance metrics such as packet delivery ratio, throughput, etc.
  • 9. Case 1 1. Varying number of mobiles nodes The protocols behavior such as packet delivery ratio and throughput can be analyzed by varying the number of nodes in the given topology area. Table 1: AODV No of nodes Packet Delivery Ratio(PDR) % Throughput % 20 78 85 30 79 86 40 78 85 50 79 85 Table 2: DSR No of nodes Packet Delivery Ratio(PDR) % Throughput % 20 79 86 30 80 85 40 80 85 50 81 86 3.5 Reflection Report  All the students worked and make a simulation for MANET in a virtual lab comfortably because it contains click and view strategies.  Students get clear fundamental knowledge of forming Adhoc networks and how packets are transferred from source to destination.  Students worked with joyfully because of visualization blow in their mind.  Simulation with varying nodes taken a long time. Given the lecture, the period is not enough to complete the simulation with various scenarios. Next time, I need to pre-plan for this kind of lecture in advance and allotted more time because it gives more insights to MANET and it is core content of the course.  I assisted to slow learners to complete the simulation in their systems.  I faced a lot of issues to install NS2 in our lab and students’ laptop.  I conducted this virtual lab exercise and simulation with varying nodes for all 51 students (whole class). I felt that few students not comfortable to work with simulation
  • 10. in our lab. In the future, I will plan to conduct this exercise for a small group that will provide more information to students.  All the students are given good feedback and some of the students preferred their final year project in this field 3.6 Conclusion This MANET simulation provides simple ad-hoc network formation and network protocol behaviors. Also, it gives excellent procedure and visualizes for MANET. This virtual lab does not provide performance analysis procedures and implementation. The presented simulation of MANET promotes students self-learning capabilities. References: 1. http://www.jgyan.com/ns2/awk%20scripts%20for%20ns2%20result%20analysis.php 2. https://www.isi.edu/nsnam/ns/tutorial/ 3. http://nile.wpi.edu/NS/