More and more about NS-2

Showing posts with label NIST. Show all posts
Showing posts with label NIST. Show all posts

NIST Wimax patch for NS-2.31

Download: NS-2.31 + NIST Wimax patch

Article obtained from: http://bestkid.pixnet.net/blog/post/15075795

Install ns-allinone-2.31

1. download ns-allinone-2.31 http://sourceforge.net/project/showfiles.php?group_id=149743&package_id=169689

2. Move ns-allinone-2.31.tar.gz to C:\cygwin\home\user

3. Start cygwin , tar zxvf ns-allinone-2.31.tar.gz

4. cd ns-allinone-2.31

5. ./install

6. Modify .bashrc file of C:\cygwin\home\user by inserting the following at the end of the file:

export NS_HOME=`pwd`/ns-allinone-2.31

export PATH=$NS_HOME/tcl8.4.14/unix:$NS_HOME/tk8.4.14/unix:$NS_HOME/bin:$NS_HOME/ns-2.31:$PATH

export LD_LIBRARY_PATH=$NS_HOME/tcl8.4.14/unix:$NS_HOME/tk8.4.14/unix:$NS_HOME/otcl-1.13:$NS_HOME/lib:$LD_LIBRARY_PATH

export TCL_LIBRARY=$NS_HOME/tcl8.4.14/library


7. after exit cygwin , restart cygwin ,with the command: ns , to test if ns install successfully.


Install wimax module and ns-2.31 patch

1. Can be downloaded from the blog or obtained from http://w3.antd.nist.gov/seamlessandsecure.shtml | Software Tools

Note: contains patch for ns-2.31. See documentation for the list of modifications. Use the request form to download the file.

The downloaded file is ns-nist-wimax.tgz
Copy the file to C:\cygwin\home\user

2. Start cygwin then unpacked the tarball with command: tar zxvf ns-nist-wimax.tgz

3. Then, with command: tar zxvf prerelease041707.tgz
After decompress completed, you will find patch-ns-2.31-041707 patch file.

4. Copy patch-ns-2.31-041707 to C:\cygwin\home\user\ns-allinone-2.31 folder

5. cd ns-allinone-2.31

6. patch -p0
patch-ns-2.31-041707.patch

Read More......

Error free NIST mobility NS2.29 installation

Download: patch_nist_mobility

Download: ns-nist-mob.tgz

1. Extract the patch and insert the patch file in ns-2.29 folder.
2. Patch the folder with the command:
patch -p1 -i ns2_NIST_mobility.patch
3. Compile the whole ns-2.29 with the command:
./install

Special thanks to Mr Johann M. Márquez Barja for providing the patch.
***************************************************************
To install NIST mobility....
II- Version
This source files provided is for ns-2.29.


III- Installation
The mobility package is a complete ns-2.29 directory, not a patch.
Unzip and untar the source file:
tar -zxf ns-nist-mob.tgz
this will extract another compressedf file to unzip and untar:
tar -zxf ns-2.29-nist-mob-022707.tgz (this will uncompress a complete ns-2.29 directory)

Note: we have a generic name (ns-nist-mob.tgz) for download purposes. This file contains a compressed file with the release date to better keep track of the different versions.


IV- Compilation options
After extracting the ns-2.29 directory, you need to recompile the code. To do so, execute "make clean; ./configure ; make" in the ns-2.29 directory.
To debug the wimax code, edit the Makefile and add the -DDEBUG_WIMAX switch in the DEFINE entry.


V- Running examples
Examples of scenarios using homogeneous and heterogeneous handovers are located in the tcl/hsntg directory.
The scripts have been updated to run properly.

Read More......