NS2 Thesis is discrete event simulator targeted for network research. NS2 simulator is mainly focused on designing wired, wireless and satellite protocols. In addition to this TCP, UDP, multicast, Unicast protocols can also be designed by using NS2 simulator. In NS2 simulator physical activities are translated to events. Each and every event are queued and processed in the order of their scheduled occurrences where the time progresses as the events are processed.
The preprocessing steps of NS2 simulator are traffic and topology generations. After that we need to trace and analyze the network behavior. The NS2 simulator uses two languages for its implementation. They are C++ and OTcl. Here C++ is used to give topological detail and complete control on fast simulation. OTcl is used to setup the simulation, configuration and occasional actions. OTcl is mainly used for fast writing and changing. The main advantage of using NS2 simulator is fast writing of simulation script which can simulate in discrete environment.
The NS2 Thesis is Cheap- Does not require costly equipment. Complex scenarios can be easily tested. Results can be quickly obtained more ideas can be tested in a smaller time frame. NS2 simulator supports all type of protocols. It supports for all platforms. Modularity is provided for all situation of simulation. The NS2 simulator is very Popular for creating network simulation environment.
NS2 Thesis requires basic manual C++ memory management functions. A packet consists of 2 distinct regions; one for headers, and the second stores payload data. NS2 simulator never frees memory used to store packets until the simulation terminates, it just reuses the allocated packets repeatedly. NS2 simulator comes with a package called NAM (Network Animator), it’s a Tcl based animation system that produces a visual representation of the network described.
The general process of creating a simulation can be divided into several steps: