Virtual Lab-Routing in MANET
Virtual Lab-Routing in MANET
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.
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.
NS2 can be installed in Linux environment [2]. Installation steps are given below.
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
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
Table 1: AODV
Packet Delivery Ratio(PDR) Throughput
No of nodes
% %
20 78 85
30 79 86
40 78 85
50 79 85
Table 2: DSR
Packet Delivery Ratio(PDR) Throughput
No of nodes
% %
20 79 86
30 80 85
40 80 85
50 81 86
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/