Skip to main content

Sample Files for Network Simulator 2

There are some example or sample files stored in the ns2 software itself
1. it is available in the following path

  • /opt/ns-allinone-2.31/ns-2.33/tcl/ex
  • the files can be running by issuing the command ns filename.tcl (only .tcl files can bu running using the command ns)
  • execute the command ns wireless-mitf.tcl (this will create two files in the same folder wireless_mitf.nam and
  • nam files means Network Animator Files, these files can be executed by nam wireless_mitf.nam
  • the Trace files can be executed by xgraph which is an inbuilt tool in NS2.
  • But Tracegraph is a third party tool which will take .tr files as the source file and various waveforms will be plotted


  1. Sir,
    I m in search of Tracegraph Analyser but is not available on net, can you help me for it or attach it to my mail for my project work related to performance of AODV.
    Thanking you in anticipation.

  2. dear nilesh, check your mail

  3. Sir,

    I am new to this ns2, i am doing a project which need aodv routing. Can you provide some material for learning.



  4. sir,
    i couldnt download tracegraph and related MATLAB files from the net. i need it for my research work. could you please attach it to my mail.

    thanks in advance

  5. Pradeep Kumar .D12 August 2011 at 11:25

    Sir I have got the tracegraph and mglinstaller.exe file and it has also created the bin folder with the win32 folder inside it containing all the .dll files. But even after adding the path of this folder in the environment variables it still gives an error and not able to rectify this. Can you please help me out in this and tell me how to add the path in Windows7 without any errors. Thank you.

  6. I tried to install ns2 in Ubuntu 11.04, I gave error. please give proper link(step) to install ns2


Post a comment

Popular posts from this blog

Implementing a new system call in Kernel version 2.6.32

A system call is used by application or user programs to request service from the operating systems. Since the user programs does not have direct access to the kernel whereas the OS has the direct access. OS can access the hardware through system calls only.The following files has to be modified for implementing a system call/usr/src/linux- set of files to be createdCreate a new directory newcall/ inside the path “/usr/src/linux-” Create new files Makefile, newcall.c and put them in the /usr/src/linux- folder Create new user files (in any folder of Linux) to test the system call
testnewcall.c, testnewcall.h (created in /home/pradeepkumar) syscall_table_32.S Find the file /usr/src/linux- and add the following line at the end

Installing TexLive 2019 in Ubuntu 18.04

Installation of TexLive 2019 in Linux (Ubuntu 18.04 LTS)
TeX (Tech)

Installation of TexLive 2019

Please watch the video for full installation

I used .iso file to download, the Total size is 3.3GB for Linux,

and i used the torrent file to download, it took me just 20 min to download the entire .iso file

Extract the .iso file to a folder and open a terminal

$] sudo ./install-tl
(it goes into a terminal mode, which is faster compared to the GUI Mode)

$] sudo ./install-tl -gui
after the installation, set the PATH, MANPATH and INFOPATH as suggested by LATEX

export PATH=$PATH:/usr/local/texlive/2019/bin/x86_64-linux
export MANPATH=/usr/local/texlive/2019/texmf-dist/doc/man
export INFOPATH=/usr/local/texlive/2019/texmf-dist/doc/info

put these lines in to the /home/pradeepkumar/.bashrc

$] gedit /home/pradeepkumar/.bashrc
We have installed TexLive 2019 and texstudio.

To install texstudio

$] sudo apt install texstudio
The look and feel of TexStudio looks like this image.

texlive, it install everyt…

How to Access MOODLE in Intranet and Internet

When Moodle is accessed either in Intranet or internet, there will not be any issue. But occasions when the MOODLE Site has to be accessed both in the intranet and in the Internet, here is a simple trick
Server Used: IBM Blade Servers
Operating system: Windows Server 2008
Moodle Version: 2.4
WAMP Server is used.
Number of Users: 3000 (Students) + 200 (Faculty)
Open the config.php from ~/moodle/config.php
include these lines
$CFG->wwwroot = 'http://'.$server_id.'/vitcc';
$CFG->dataroot  = 'C:\\wamp\\moodledata';
before the following line
$CFG->directorypermissions = 07xx;
Restart the WAMP Server and you can Check MOODLE Site both in Internet and Intranet.

The above Image tells the intranet Link and the internet link can be opened outside the campus network