Wireless Communication Technologies

WCTG

Wireless Communications
Technologies Group

WCTG Home

Wireless Ad Hoc Networks Home

Projects

People



ns FOR WIRELESS NETWORK SIMULATION


The network simulator (ns) v. 2 was developed by UCB, LLNL, Xerox PARC, USC/ICI, and is currently maintained by USC/ISI.  It is an object-oriented, discrete event simulator that is particularly useful for simulating TCP/IP networks.  ns also has wireless network models and a network animator (nam) tool.  It is freely distributed, and all source code, C++ and Object Tcl (OTcl), is available.  This page provides instructions on getting started with ns.
 



USING NS2

WCTG has ns version 2.1.8ba installed on seal.antd.nist.gov. seal is a single processor PC running Linux.  To run ns on seal, do the following:

  • log onto seal using ssh: ssh sealtelnet is disabled on seal, so you must use ssh.
  • Set the DISPLAY environment variable so that you can see X window graphics.
    • If using the bash shell, type export DISPLAY=<your-system-name>:0
    • If using csh, type: setenv DISPLAY <your-system-name>:0
  • Add the following to your PATH environment variable:
    • bash: export PATH=/usr/local/ns2/bin:$PATH
    • csh: setenv PATH  /usr/local/ns2/bin:$PATH
  • To check that your environment is set properly:
    • type ns. A % prompt should appear.  Type exit to quit.
    • type nam.  The nam console window should appear.
  • You are now ready to run ns.

 DOCUMENTATION AND TUTORIAL
Project Contact

For inquiries regarding this project, contact Tim Hall.