Date Added: May 2012
A Wireless Sensor Network (WSN) consists of spatially distributed autonomous sensors to monitor physical or environmental conditions. There are many challenges for a sensor network from hardware point of view, to produce low cost and tiny sensor nodes so that energy dissipation is less. Energy is the scarcest resource of WSN nodes, and it determines the lifetime of WSNs. Algorithms and protocols are required to address issues such as lifetime maximization, robustness and fault tolerance and self configuration. Simulation of algorithms can be done using custom platform, network simulators like OPNET, NetSim, and NS2 can be used to simulate wireless sensor network. Here in this paper, the authors will be taking into account an overview of ns2, its installation in ubuntu, and its scripting.