IEEE 802.11 Wireless LAN Simulation


Simulation Tool: Network Simulator 2

Network Simulator 2 (NS2) is a discrete event simulator targeted at networking research. NS2 provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.

NS2 began as a variant of the REAL network simulator in 1989 and has evolved substantially over the past few years. In 1995 NS2 development was supported by DARPA through the VINT project at LBL, Xerox PARC, UCB, and USC/ISI. Currently NS2 development is supported through DARPA with SAMAN and through NSF with CONSER, both in collaboration with other researchers including ACIRI. NS2 has always included substantial contributions from other researchers, including wireless code from the UCB Daedelus and CMU Monarch projects and Sun Microsystems.

NS2 is an object oriented simulator, written in C++, with an OTcl interpreter as a frontend. The simulator supports a class hierarchy in C++ (also called the compiled hierarchy), and a similar class hierarchy within the OTcl interpreter (also called the interpreted hierarchy). The two hierarchies are closely related to each other; from the user's perspective, there is a one-to-one correspondence between a class in the interpreted hierarchy and one in the compiled hierarchy. The root of this hierarchy is the class TclObject. Users create new simulator objects through the interpreter; these objects are instantiated within the interpreter, and are closely mirrored by a corresponding object in the compiled hierarchy. The interpreted class hierarchy is automatically established through methods defined in the class TclClass. User instantiated objects are mirrored through methods defined in the class TclObject. There are other hierarchies in the C++ code and OTcl scripts; these other hierarchies are not mirrored in the manner of TclObject.

Simple scenarios should run on any reasonable machine; however, very large scenarios benefit from large amounts of memory. Additionally, NS2 requires the following packages to run: Tcl, Tk, OTcl and TclCL.


NS2 Related Resources

The Network Simulator - ns-2

NS by Example

Marc Greis' Tutorial for the UCB-LBNL-VINT Network Simulator ns

Trace graph - network simulator ns trace files analyser

NS-2 Trace Formats

OTcl - MIT Object Tcl


NS2 Simulation Tests

Paper:

Software:

Geography:

Traffic:

Polling algorithm patch files:

TCL files:

Trace data - 1: (Part of trace files)

Trace data - 2: (Part of trace files)

Result - Successful Poll Rate vs. Time:

Result - Aggregate Throughput vs. Time: