The file “simple.tcl” is under <NS Root>/ns-allinone2.33/ns 2.33/simple-wireless.tcl . cd into the directory and run in terminal as “./ns filename.tcl” to run the simulation. The simulation will generate a trace file named “filename.tr”. The simulation will also generate a animation file “filename.nam” .
In order to observe the performance of the network we need to run those two files.
Running .tr and .nam file:
Run the .nam under the directory nam-1.33 . It will show the network structure and flow of signals.
Run the .tr file under the directory Xgraph-12.1. It will show the performance graph.