
TCL_ERROR: it implies does not complete successfully. TCL_OK: it denoted command completes successfully What are the return commands are used in ns2: This is the sample code for creating random traffic in wireless network. Step4 Setting Simulation time and schedules Step0 Declare Simulator and setting output file Steps involved in creating scenario file: Network topology, transmission time, using protocol etc are defined in scenario file.NS2 use Tcl language for creating simulation scenario file.NS2 is an object oriented simulator, written in C++, with an OTcl interpreter as a frontend.NS2 is a discrete event simulator targeted at networking research.



In this section we are going to discuss about the basics of ns2.Example program for network simulator 2.Ns2 is a open source software and can be freely downloaded and utilized for Research Purpose.
