This website is preserved for historical and scholarly reference and is no longer actively maintained.

This page documents the ns2 setup for CPSC854 Spring 2009.  The material in the page is organized as follows:




Account information:


ssh to darkhelmet.cs.clemson.edu using the account cpsc852 .  From there ssh to LinuxVM1 or LinuxVM3 using account teamx

Team/Accounts:

LinuxVM1
team1 Arpan
team2 Venkat
team3 (messed up)
team4 Rakesh
team5  Gayetri

LinuxVM3
team11 Bo
team12 (messed up)
team13 Vijay
team14 (Srikanth)
team 15 (unused)


Basic information on ns2

Once you login to an ns2 system,  issue a 'gons'.  This alias issues a cd to your base ns2 directory.  For example, on team15 a gons puts you here:

team15@LinuxVM3 ~/ns-allinone-2.33/ns-2.33 $ pwd
/home/cpsc854/team15/ns-allinone-2.33/ns-2.33


Install directions

(note: the tar.gz packages that are needed are located on darkhelmet in the cpsc852 account.  Please do not release this code to others unless you have permission from me to do so)

1.download the file  ns-allinone-2.33.tar.gz    and issue
gzip -d ns-allinone-2.33.tar.gz
tar -xf ns-allinone-2.33.tar
cd ./ns-allinone-2.33
./install      (this runs for 15-45 minutes)


2.Edit .bashrc and add these lines (and then logout and log back in so they take effect)

 export PATH=".:/tools:/tools/scripts:/scripts:/bin:/sbin:/usr/bin:/usr/sbin:${PATH}"
 alias gons='cd ~/ns-allinone-2.33/ns-2.33'
 alias got='cd ~/ns-allinone-2.33/ns-2.33/clemsonScripts/docsisValidation'
 alias goc='cd ~/ns-allinone-2.33/ns-2.33/mac/docsis'
 export LD_LIBRARY_PATH=/home/ns2-33/ns-allinone-2.33/otcl-1.13:/home/ns2-33/ns-allinone-2.33/lib
 export TCL_LIBRARY=/home/ns2-33/ns-allinone-2.33/tcl8.4.1846

Note that team accounts use the TCL installation in the /home/ns2-33.  If this is your own machine you would point to your own account.


3.Issue a 'gons'.    Issue a 'pwd' -  become familiar with the directories....this is your ns2 home directory.

4.Unpack our clemson code patches.  download and cp the file   SyncBackup-12-18-2008.tar.gz
 to this directory (your ns home directory).  Unpack.  To check, issue 'cd ./mac/docsis' and you should see the docsis source code.


5.Issue a 'gons' and make the following changes to the Makefile:


*Remove the '-DTCP_DELAY_BIND_ALL' from the following line
DEFINE  = -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_     H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DS     MAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test

*Add the following object files to the list (the new files are in red)

  tcp/tcp.o tcp/tcp-sink.o tcp/udp-sink.o tcp/tcp-reno.o \
  tcp/tfrc.o tcp/tfrc-sink.o mobile/energy-model.o apps/ping.o apps/loss_monitor.o tcp/tcp-rfc793edu.o \
    mac/channel.o mac/mac.o mac/ll.o mac/mac-802_11.o \
    mac/docsis/channelMgr.o mac/docsis/channelTimers.o mac/docsis/docsisMonitor.o \
    mac/docsis/serviceFlowMgr.o mac/docsis/serviceFlowObject.o mac/docsis/ListElement.o mac/docsis/ListObj.o\
    mac/docsis/medium.o mac/docsis/packetListElement.o mac/docsis/packetMonitor.o \
    mac/docsis/reseqFlowListElement.o mac/docsis/reseqMgr.o mac/docsis/schedulerObject.o\
    mac/docsis/serviceFlowListElement.o mac/docsis/macPhyInterface.o\
    mac/docsis/mac-docsis-state-machine.o mac/docsis/mac-docsisbase.o mac/docsis/channel-muxer.o\
    mac/docsis/channelProperties.o mac/docsis/configMgr.o mac/docsis/mac-docsiscm.o mac/docsis/mac-docsiscmts.o mac/docsis/mac-docsistimers.o \
    mac/mac-802_11Ext.o \


6. After you make these changes,
make clean
make depend
make
//and then NEVER issue a 'config' or 'install' in any directory in ns2.

.Issue a 'got'  and this places you in a directory with example DOCSIS scripts.  The docs directory
contains readme files with some useful details of the DOCSIS model.

team11@LinuxVM3 ~/ns-allinone-2.33/ns-2.33/clemsonScripts $ ls
common  docs  docsisValidation  wiredExamples

7.In the home ns2, create a subdirectory ./ns-cpsc854 and unpack/install  the CPSC854 examples (ns-cpsc854.tar.gz). 

FAQ

What installation of ns2 are we using?

We are using the latest ns2-33 release. 

What are the 'Clemson code patches' ?

For the most part this represents our DOCSIS simulation model. There are other minor code changes that we have made that must be walked into any new ns2 release.  Note that our DOCSIS code is going through significant development - we expect a major release to be available by the end of the Spring 2009 semester.


Where is the Clemson 802.11e code?
Currently this code is in an older ns2 release (ns2.28).  We are moving our code to the current ns2.33 release.

Where is the Clemson WiMAX code ?
Currently this code is in an older ns2 release (ns2-28).  We plan to move this code to the current ns2.33 release.





last updated 1/25/2009