NS HowTo
From ResiliNetsWiki
Contents |
How-To Use ns at ITTC
To use the generic ns installation located at /tools/ns2/resilinets-ns
- Open Terminal Client on the Linux Machine and Logon to ITTC
- Add the following script to your .bash_profile under the root
- SSH onto any of the machines at ITTC like benchmark etc..
PATH=$PATH:/tools/ns2/resilinets-ns/ns-allinone-2.31/bin:/tools/ns2/resilinets-ns/ns-allinone-2.31/tcl8.4.14/unix:/tools/ns2/resilinets-ns/ns-allinone-2.31/tk8.4.14/unix:/tools/ns2/resilinets-ns/tracegraph202/ export setenv LD_LIBRARY_PATH=/tools/ns2/resilinets-ns/ns-allinone-2.31/otcl-1.13:/tools/ns2/resilinets-ns/ns-allinone-2.31/lib:/tools/ns2/resilinets-ns/tracegraph202/bin/glnx86 export setenv TCL_LIBRARY=/tools/ns2/resilinets-ns/ns-allinone-2.31/tcl8.4.14/library alias ns=/tools/ns2/resilinets-ns/ns-allinone-2.31/bin/ns
- Restart the Terminal Client
- Open Terminal Client on the Linux Machine and Logon to ITTC
- Add the following script to your .bashrc or .bash_profile under the root
- SSH onto any of the machines at ITTC like benchmark etc..
PATH=$PATH:/projects/resilinets/shared/resilinets_ns2.31/ns_svn/ns-allinone-2.31/bin:/projects/resilinets/shared/resilinets_ns2.31/ns_svn/ns-allinone-2.31/tcl8.4.14/unix:/projects/resilinets/shared/resilinets_ns2.31/ns_svn/ns-allinone-2.31/tk8.4.14/unix export setenv LD_LIBRARY_PATH=/projects/resilinets/shared/resilinets_ns2.31/ns_svn/ns-allinone-2.31/otcl-1.13:/projects/resilinets/shared/resilinets_ns2.31/ns_svn/ns-allinone-2.31/lib, export setenv TCL_LIBRARY=/projects/resilinets/shared/resilinets_ns2.31/ns_svn/ns-allinone-2.31/tcl8.4.14/library alias ns=/projects/resilinets/shared/resilinets_ns2.31/ns_svn/ns-allinone-2.31/bin/ns
- Restart the Terminal Client
Steps to run ns / nam from a windows XP machine
- Download and install cygwin with all the x11 and ssh packages
- start cygwin shell
- type "startxwin.bat" in cygwin shell. This will open a x-window
- From the x-window ssh to the machine you want to connect to
ssh -Y user@machine.com
- Go to your ns-2 directory and run simulation.