Help Page for WAN & LAN Project Spring'04
last updated 03/23/2004

 


Before you question anything, make sure you have read documents listed below.

Now I assume that you understand what you need to do in general. This page will help you build a simulation model using ns. (Note: for any other simulators, you might send question to me directly)


First, you need to know what ns provide you. Read the document below.


Next, draw the picture of the network topology you want to simulate. Draw the components and connect them together. Put all the agents you need on each node.

Now, you have everything you need. Start writing scripts.

Testing


If you come this far, you are ready to do what the project ask you to do.

Building


Running Simulations

$nohup nice ns parameters >/dev/null &


Writing the Report


For those of you, who want to modify c code, this is the procedure.

  1. run script "mknslink" in ns directory (this will create the source tree which link to the ns directory, and create a copy of ns in your directory)
    After this process, you should have myns directory which contains all directories linked to the source tree. Check the ns in myns/ns-2.27/ directory whether it is your ( you can check by ls -l)
  2. make a directory in the source directory ("myns/ns-2.27") and create files (.cc and .h) as you want in that directory 
  3. modify the Makefile: add your objects to OBJ_CC variable ie. the source file is  ns-2.27/myobj/test.cc --> add "myobj/test.o" to that variable 
  4. remake as you wish (type make in the ns-2.27) directory
  5. setup your variable PATH to include your ns in the path instead of the default one

(Note that for the instruction how to build c++ objects, read the manual of ns: creating a new agent or from Marc tutorial: creating a new protocol)

(For telecom students, this process has not worked yet. I am working on it. I will let you know when I finish.)


Send me question!