Network Simulator Version 2, also known as NS-2. NS-2 is an event driven packet level network simulator developed as part of the VINT project (Virtual Internet Testbed).
Numerous state of the art simulation tools are available for network research. Among the available simulators, NS-2 is the widely used and highly recognized open source network simulator.
The simulation behavior of NS-2 is highly trusted within the research community. It is a dependable and realistic discrete event based simulator tool and proves to be more practicable. It is primarily designed based on OSI model to support wired networks. CMU wireless extension of NS2 extensively supports wireless network.
J2EE (Java 2 Platform, Enterprise Edition) is a Java platform designed for the mainframe-scale computing typical of large enterprises.
J2EE simplifies application development and decreases the need for programming and programmer training by creating standardized, reusable modular components and by enabling the tier to handle many aspects of programming automatically.
Extension to the existing protocols or modeling a new Protocol in NS2 can be done in the following aspects. The protocols are developed as C++ files, and the dependent files are modified in the NS-allinone package.
The directory structure of the newly added files is mentioned in Makefile. Then NS is rebuilt using Linux utility tool make. Simulation can be carried out by mentioning the newly developed protocol in the TCL configuration file.
AWK script can be applied to process the trace file. The results from the execution of AWK script can be plotted as Xgraph in NS2 for the purpose of self or comparative protocol analysis.