More and more about NS-2

Actual Coverage Range in NS-2

Actual Coverage Range = square of 2*distInterference_centred in the reception node

PS: Information extracted from mailing list. Hopefully will be useful in later work.

Read More......

Installing INET Framework into OMNET++

Download: Inet Framework
Download: Inetmanet Framework

To install:
You should have a working OMNeT++ installation, version 4.0 or later.
It must be compiled with dynamic NED loading enabled (WITH_NETBUILDER=yes setting).

1. Make sure your OMNeT++ installation works OK (e.g. try running the samples)
and it is in the path (to test, try the command "which nedtool").

2. Change to the INET directory.

3. Type "make" to build the inet executable (debug version). Use "make MODE=release" to build release version.

Problem:
-lpcap is not found

Solution:
yum install libpcap-devel

Problem:
make: warning: Clock skew detected. Your build may be incomplete.

Solution:

   cd directory
# Remove output files
make clean
# Put timestamps on all files equal to current time
find . -exec touch {} \;
# Rebuild all output files
make

Finally, try running the demo simulations. Change into examples/ and type
"./rundemo".

Problem:
Error during startup: Cannot load library '../../../src//libinet.so': ../../../src//libinet.so: cannot open shared object file: No such file or directory.

For INET:
Solution:
SELinux blocks the library from running. Free the library with the command:
chcon -t textrel_shlib_t '/home/user/inet/out/gcc-debug/src/libinet.so'

For INETMANET:
The problem occurs due to "makefile"

1. Copy everything from "Makefile_dll" and replace all of "Makefile"

2. Execute "buildMakefiles" shell file with the command: sh buildMakefiles

3. Finally, compile with the command: make

4. You probably need this as last step:
chcon -t textrel_shlib_t '/home/user/inetmanet/out/gcc-debug/src/libinet.so'

Then you should be able to run the demo in the examples;
./rundemo

Read More......

Subversion of NS-MIRACLE+NS-MIRACLE 2.0 Beta

Download the latest NSMIRACLE: Subversion NS-MIRACLE

Download Beta version: NS-MIRACLE 2.0 Beta

The NS-MIRACLE codebase is kept on a subversion repository. In particular, the development version of nsmiracle is available at this URL:

https://telecom.dei.unipd.it:/tlcrepos/nsmiracle-dev/trunk

The above mentioned subversion repository provides read-only access for guest users using the following account:


username: nsmiracle-dev-guest
password: nsmiracleguest

As an example, using the svn command line client you can check out the latest development version using the guest account by typing the following command and add in the path to be copied to at the trail of the command:


svn co --username nsmiracle-dev-guest --password nsmiracleguest https://telecom.dei.unipd.it:/tlcrepos/nsmiracle-dev/trunk /home/username/nsmiraclerep


NSMIRACLE SVN repository Installation procedures:

1. Go to the "main" directory
command:
cd main
2. Execute the autogen.sh
command:
sh autogen.sh
3. Configure script will be generated and do the following:
command:
./configure --with-ns-allinone=/home/username/ns-allinone-2.33 --prefix=/home/username --disable-static --with-dei80211mr=/home/username/ns-allinone-2.33/dei80211mr-1.1.4
4. command:
make
5. command:
make install

NSMIRACLE ADDONS installation procedure:
1. Go to the "addons" directory and access to the addon need to be install
command:
cd addons
cd addontobeinstall
2. Execute the autogen.sh
command:
sh autogen.sh
3. Configure script will be generated and do the following:
command:
./configure --with-ns-allinone=/home/username/ns-allinone-2.33 --prefix=/home/username --disable-static --with-nsmiracle=/home/username/nsmiracledir/main
4. command:
make
5. command:
make install

PS:
Error occured during "./configure" of addons:
1. configure: error: Could not find boost graph header files, please install the boost graph library.
Solution:
yum install -y boost-devel
yum install boost

Error occured during "make" of addons:
1. error:
/usr/include/boost/pending/relaxed_heap.hpp:102: error: 'CHAR_BIT' was not declared in this scope
Solution:
This is a bug in the standard header. Apparently, an include of is missing in that header. Adding the following header to the problematic code fix the problem.

#include // for CHAR_BIT

Read More......

Installing NS-MIRACLE to NS-2.33

Download: NS-MIRACLE-1.2.2
Download: Paper on NS-MIRACLE-1.2.2

NS-MIRACLE: Multi-InteRfAce Cross-Layer Extension library for the Network Simulator

NS-MIRACLE is a set of libraries designed to enhance the functionalities provided by the Network Simulator ns2. It provides an efficient and embedded engine for handling cross-layer messages and, at the same time, enables the coexistance of multiple modules within each layer of the protocol stack. For instance, multiple IP, link layers, MACs or physical layers can be specified and used within the same node. The NS-MIRACLE framework facilitates the implementation and the simulation of modern communication systems in ns2; moreover, due to its modularity, the code will be portable, re-usable and extensible.


Installation of NS-MIRACLE:

1. Unpack the nsmiracle package at /home/username and cd into the newly created directory:
Command:
tar xzf nsmiracle-1.2.2.tar.gz
cd nsmiracle-1.2.2

2. In the /nsmiracle-1.2.2, do the following:
Command:
./configure --with-ns-allinone=/home/username/ns-allinone-2.33 --prefix=/home/username --disable-static --with-dei80211mr=/home/username/ns-allinone-2.33/dei80211mr-1.1.4

3. After that, execute as following:
Command:
make
make install

4. Lastly, check that your installed NS-MIRACLE is working by running the example found in /home/username/nsmiracle-1.2.2/samples
Command:
cd samples
ns link_with_errors_cbr.tcl

You should get the result as shown if NS-MIRACLE is installed successfully:
Simulating........................................done!
Packet Error Ratio : 0.050000
Throughput : 68360.897567
Tracefile : /tmp/link_with_errors_cbr.tcl.tr


NOTE:
  • remember to adapt all paths to your needs, unless you're using /home/username.
  • make sure that the tests run by ./configure have been successful, in particular the tests for ns-allinone
  • after running make install, make sure that the path in which library have been installed is in your LD_LIBRARY_PATH environment variable.
Ref. page: http://telecom.dei.unipd.it/pages/read/58/

Read More......

Install OMNET++ 4.0 at FEDORA 10

Download:

Pre-installation:
Install the items in the following list in FEDORA 10. You must be 'root' to execute the following command:

yum install tcl
yum install tcl-devel
yum install tk
yum install tk-devel
yum install blt
yum install gcc
yum install gcc-c++
yum install byacc
yum install bison
yum install flex
yum install make
yum install swig
yum install zlib-devel
yum install java-1.6.0-openjdk-plugin
yum install automake
yum install autoconf

Installation of OMNET++ 4.0:

Download the source package and copy the omnetpp file to where you want to install it.
Extract the package by the command:
tar zxvf omnetpp-4.0rc2-src.tgz

Add the following line to your startup file (.bashrc or .bash_profile):
export PATH=$PATH:~/omnetpp-4.0/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/omnetpp-4.0/lib

Access into the newly created directory:
cd omnetpp-4.0

Install with command:
./configure

Locate .bash_profile (eg. /home/user/.bash_profile) and include the following line into it:
export TCL_LIBRARY=/usr/share/tcl8.5

After that, at the omnetpp-4.0 directory too, type this command:
make

After compilation completed, you can try the samples, for eg:
cd ~/omnetpp-4.0/samples/dyna
./dyna

To start omnet++ IDE, use the command:
omnetpp

Read More......

My current dilemma....

I am using NS-MIRACLE, the extension of NS-2 in order to create multi technology nodes. My intention is to create nodes with two interfaces, which are UMTS interface and WLAN interface respectively.

For long I have been analyzing the sample codes in NS-MIRACLE, but still I am unable to create my dual interface nodes yet. HELP!~~ @ @

Read More......

Prevent FEDORA 10 from always log out

Check your screensaver setting:
system|preferences|look and feel|screensaver|untick all

Check your power management setting:
system|preferences|system|power management|On AC power, set to never for all

Read More......

Set the screen resolution of FEDORA 10 in VMWARE

Change by doing the following at FEDORA 10
system| preferences| hardware| screen resolution

and choose your desire resolution, then click "apply" and "ok".

Read More......

Installing NS-2 in Fedora 10

Download: ns-allinone-2.33

I have used VMWARE with Fedora 10 to install NS-2 for my convenience. The steps are as below:

Pre-installation NS-2:
1. Make sure FEDORA 10 is updated completely at the autoupdate.
2. Have the following install at TERMINAL. You must be the "root" to do this:
yum install autoconf
yum install automake
yum install gcc-c++
yum install libX11-devel
yum install xorg-x11-proto-devel
yum install libXt-devel
yum install libXmu-devel
yum install tk
yum install tcl
yum install make
yum install perl
yum install gnuplot


Installation for NS-2 in FEDORA 10:
1. Unzipped NS-2.33 file:
tar -xvzf ns-allinone-2.33.tar.gz
2. Go into ns-2.33 directory:
cd ns-allinone-2.33
3. Install ns-2.33
./install
4. Set environment:
gedit ~/.bashrc

Replace the following to your .bashrc file, double check your own installation path and version. Set the environment at "cd /home/username" as a user and not the "root":

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# User specific aliases and functions

# LD_LIBRARY_PATH
OTCL_LIB=/home/ellysoo/ns-allinone-2.33/otcl-1.13
NS2_LIB=/home/ellysoo/ns-allinone-2.33/lib
X11_LIB=/ellysoo/X11R6/lib
USR_LOCAL_LIB=/home/ellysoo/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB


# TCL_LIBRARY
TCL_LIB=/home/ellysoo/ns-allinone-2.33/tcl8.4.18/library
USR_LIB=/ellysoo/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/ellysoo/ns-allinone-2.33/bin:/home/ellysoo/ns-allinone-2.33/tcl8.4.18/unix:/home/ellysoo/ns-allinone-2.33/tk8.4.18/unix
NS=/home/ellysoo/ns-allinone-2.33/ns-2.33/
NAM=/home/ellysoo/ns-allinone-2.33/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM

5. If your environment is set properly, you should be able to run the command "ns" and get the result "%".

6. Validate your ns as followed:
./validate

Read More......