Mobile Ad Hoc Network Simulation Using NS2: ANUSHA REDDY (T150228560)
Mobile Ad Hoc Network Simulation Using NS2: ANUSHA REDDY (T150228560)
Simulation Parameters
Mobility Models
Programming Languages
Traffic Generation
NS2 System
Conclusion
References
Project Guide
G. M. WALUNJKAR
CONTENTS
1 Scenario Creation
2 Simulation Parameters
3 Mobility Models
4 Programming Languages
5 Traffic Generation
6 NS2 System
7 Conclusion
8 References
LITERATURE SURVEY
BUILDING SCENARIO
Scenario:-
To address networking issues like protocol interaction,
congestion control, effect of network dynamics,
scalability etc it is neccesssary to carry simulations on the
right kind of scenario.
It should not be limited to the topology size, density
distribution, traffic generation, network dynamics etc.
The NS Scenario Generator can be used to create random
scenarios for simulation.
It consists of:
Topology generator, Agent generator and Routing
generator
ANUSHA REDDY (T150228560) Mobile Ad hoc Network Simulation using NS2
Scenario Creation
Simulation Parameters
Mobility Models
Programming Languages
Traffic Generation
NS2 System
Conclusion
References
SIMULATION
PROGRAMMING A SIMULATION
CONFIGURING PARAMETERS
Mobility Models:-
The performance of a protocol for an ad-hoc network is
evaluated by testing them under reasonable conditions,
particularly including the group of the mobile nodes, the
data traffic and communication range.
The changes in speed and direction should occur within
reasonable time slots.
CLASSIFICATION
Types:
Mobility metrics(spatial dependence, relative speed and
geographic restrictions)
Connectivity graph metrics(no. of link changes, link
duration, path duration and availability)
Protocol performance metrics (throughput and routing
overhead)
GRAPHICAL ANALYSIS
CB Overhead Vs Speed
INTEGRATION OF OTcl,C++
Use Configuration, setup, or one time simulation quickly exploring no. of scenarios(Packets)
Feature1 TAT (run sim, find and fix bug, recompile)slower Iteration time (change model and re-run) is more important
Features of Tcl:-
1. Every data types can be manipulated as strings.
2. Completely dynamic, class-based object structure 3. Tcl has
advanced features such as meta-classes etc filters.
4. All commands defined by Tcl will create error messages when
the usage is incorrect.
5. Extensibility using C, C++, Java, and Tcl and cross-platform
usage eg., Windows API; UNIX, Linux, Macintosh, etc.
CREATING CONNECTION
Traffic Creation
set src [new Application/FTP/Telnet/CBR]
*src attach-agent *Src-agent
Parameterize, Start and Stop a Traffic Source
set src [new Application/Traffic/CBR]
*src attach-agent *Src-agent
*src set interval 40ms
*src set packetSize 500
*ns at 10.0 “*src start”
*ns at 100.0 “*src stop”
ARCHITECTURE
The NS-2 architecture comprises of five parts:
Event scheduler, Network components, Tclcl, OTcl library,
Tcl 8.0 script language
Why NS2?
A network environment for Ad-Hoc Networks
Wireless channel modules (e.g.802.11)
Routing along multiple paths
Mobile hosts for wireless cellular networks
Features:
NS2 is an object-oriented Network Simulation tool
Discrete event driven network simulator
Works at packet level
Uses Tcl as its scripting language
WORKING OF NS2
1. Define Network topology, load, output files in Tcl Script
2.To run, $ ns simple network.tcl
3. Internally, NS2 instantiates C++ classes based on the tcl scripts
4. Output is in form of trace files
5. NAM :- NS2 Visualization Tool
6. Xgraph:- NS2 Analysis Tool
CONCLUSION I
CONCLUSION II
REFERENCES I
REFERENCES II
REFERENCES III
REFERENCES IV
REFERENCES V
[11] Neha Singh, Prof. Rajeshwar Lal Dua, Vinita Mathur ”Net- work
Simulator NS2-2.35” International Journal of Advanced Research in
Computer Science and Software Engineering.