Ant-like Mobile Agents - NS2 Patch

This is a recipe for installing my NS2-patch which contains all the files I have chanced in NS2 to enable simulations of ant-like mobile agents. (Misc. simulation scenario scripts and tools are also included).

Note: My ns2-patch is based on and hence includes both the Active Network patch from the PANAMA project and the MPLS patch made by Gaeil Ahn.

  • Download the ns-allinone-2.1b6 i.e. version 2.1b6 of NS2, from the NS2 web site archives
  • Extract everything from ns-allinone-2.1b6.tar.gz
  • Download my (latest) ns2-patch: ant-like_agents_ns2-patch.tar.gz
  • Move into the ns-allinone-2.1b6 directory and extract all files from the ns2-patch.
  • Run "./install"
  • Optional: To enable debugging of ns (using for instance "ddd") move into the ns-2.1b6 subdirectory and run

    ./configure --enable-debug --with-tcl=../tcl8.0.4 --with-tk=../tk8.0.4 --with-otcl=../otcl-1.0a5 --with-tclcl=../tclcl-1.0b9; make clean; make

Potential pitfalls:

  • A script embedded in Makefile.in in the ns-2.1b6 subdirectory assumes a utility called "tempfile" is installed. "tempfile" creates a temporary file and returns the file name. If "tempfile" (or similar) is not available, replace TMPFILE=`tempfile`; with e.g. TMPFILE="tmp.tmp;" in Makefile.in and reconfigure/recompile ns by executing the line given above.
  • Make sure your gcc compiler is of version 2.95. New versions of gcc seem create a lot of errors when compiling ns-allinone-2.1b6.
  • You might have to apply the tclPosixStr.patch patch as indicated in the installation instructions of ns-allinone-2.1b6.
  • The ant patch uses STL (Standard Template Library). There might be some path confusion in some of the #include statments which include STL functionality.

Innholdstrek
Redaktor: Otto Wittner, Kontaktadresse: wittner@q2s.ntnu.no, Last modified: Thu Apr 14 10:59:11 CEST 2005