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
Marc Greis' Tutorial for the UCB-LBNL-VINT Network Simulator ns
NS2 Simulation Tests
Paper:
- An Adaptive Polling Algorithm for PCF Mode of 802.11 Wireless LANs - Xuanming Dong, Pravin Varaiya, and Anuj Puri
Software:
- Linux 6.2 + NS 2.1b8a + PCF support patch
Geography:
- AP connected to a wired node via a 10 mbps Ethernet link.
- The wireless LAN consists of the AP and 10 wireless stations.
- All stations and the AP are close enough to receive signals from each other. In addition, all stations don't move around.
Traffic:
- 10 CBR flows from 10 different stations to the wired node through the AP.
- These CBR flows send packets at rates of 200 packets per second with packet size 1000 bytes.
- These flows are started one by one with a 2 second interval. They last 20 seconds and terminate.
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: