Monday, April 07, 2008

Class reference with the code - documented.

if ur looking to study and understand the various classes present in the ns2. This site has everything with the class hierarchy. Nearly all the protocol dependency are covered. with the data types and member functions.... marco... everything is avaliable.

ns2 mailing list

throughout my project i had great help from the ns2 mailing list. the entire mails have been archived in a forum called as nabble disclosing its address below. Give a search in that. And u might find remedy for ur problem. inside that softwares... in softwares network simulator 2

its exact address is this

installation of tracegraph in windows

today for analyzing my outputs i had to install tracegraph in windows. As my tracegraph installation in linux failed. And i couldnt recover from it. So i decided to go for the installation in windows itself.

So i downloaded the tracegraph binaries for windows from this url

The i found that i needed matlab libraries for the tracegraph to work. So i downloaded the libraries called as mglinstaller.exe and did a simple installation and set the path as.


the then click on tracegraph.exe inside the unzipped folder. and the tracegraph would work.

lots of ns2 useful links

hi these are some of the useful ns2 links which i found. This page has such a lot of collections that u can get everything from there itself. No need to search.

Sunday, April 06, 2008

Saturday, April 05, 2008

Keep ur eyes open -- U might over look something

he he.... ha ha.. this is what iam like when i think of what i just got to know today in ns2. I lost few days of work trying to set the path.. i was so dumb few months ago that i just struggled to see my first ns2 program running. and seeing something in the animator.

But today i went to my other counterpart department in college the cse department. where i found people running multiple instances of ns2. i was curious to find out.

U will really laugh if u know. It was so basic i just overlooked it.

They interpreted their program directly by placing there programs inside the ns-allioneXXXXX/bin folder and they used

./ns .tcl by moving inside that folder in the terminal...

Friday, April 04, 2008

material ns2 and aodv

hi people,
this is some material which i collected for my project. Hope this is useful for u. I have loads of material will put that all up.

Creating a networ topology with ease - TCL File

Do you have any problems with the creation of the tcl scenario and traffic files. Then u can use this jar file which can help u place ur nodes easily. I discovered this from my friends and it was very helpful to me. You will really love this jar file.

Thursday, April 03, 2008

ns2 manual for ur help

the ns2 manual is really great for wired.. it has some good features for wireless also hope this is useful to u

otcl and c++ linkage

how to pass messages from tcl to c++ this tutorial will help u

aodv manet ns2

if ur looking to modify aodv in ns2 and learn abt aodv folders everything in ns2 this tutorial would be of great help to u

this thesis just opened up my mind to ns2

Good tutorial to ns2

this is one of the famous tutorials for ns2 i learnt a lot from this tutorial

this is for wired mostly but there some section of it for wireless.

Saturday, January 26, 2008

Friday, January 25, 2008

ns2 architecutre

ns2 Architecture

ns2 tutorial simple

this is a simple ns2 tutorial which i had. would be helpful for u.


ns2 manual

This is a ns2 manual with all the syntax, tokens needed.

ns2 manual

D Day-Installing ns2

The day finally came when i needed to install the ns2 simulator.

I was a bit afraid finally did it with out much hiccups.

u can download ns2 version 2.31 from the this link

remember the entire package would be available as allinone (ALL in One).

downloading that proved to be better for me than the individual packages.

the download text looks like this in that page.

Getting everything at once

Ns-allinone is a package which contains equired components and some optional components used in running ns. The package contains an "install" script to automatically configure, compile and install these components. After downloading, run the install script. If you haven't installed ns before and want to quickly try ns out, ns-allinone may be easier than getting all the pieces by hand.

Currently the package contains:

  • Tcl release 8.4.14 (required component)
  • Tk release 8.4.14 (required component)
  • Otcl release 1.13 (required component)
  • TclCL release 1.19 (required component)
  • Ns release 2.31 (required component)
  • Nam release 1.13 (optional component)
  • Xgraph version 12 (optional component)
  • CWeb version 3.4g (optional component)
  • SGB version 1.0 (?) (optional component, builds sgblib for all UNIX type platforms)
  • Gt-itm gt-itm and sgb2ns 1.1 (optional component)
  • Zlib version 1.2.3 (optional, but required should Nam be used)

Currently, ns-allinone works on Unix systems and under Cygwin for Windows 9x/2000/XP. If you have problems with allinone, we encourage you to build it from its pieces.

Download source:

Important:Please check the bug fixes after you finish installation! .

so download that..

installing ns2

u need to untar the files as u download it.

the files would be downloaded on to the desktop of ur fedora operating system.

then open the terminal ">" the greater arrow is used to represent terminal

> su root

(switch to the root )

> cp ns-allinone-2.31.tar /opt/

( this will copy the ns2 to the opt folder

>cd /opt/

( u will go to the opt directory)

>tar -xvf ns-allinone-2.31.tar

(this will untar ur file and create a directory ns-allinone-2.31)

>cd ns-allinone-2.31.tar/

( u get inside the ns2 directory)


( this will install the ns2 simulator)


(this will validate ur ns2)

> vi /opt/bashrc

(press i and type this or paste this)

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

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ns-allinone-2.31/otcl-1.13:/opt/ns-allinone-2.31/lib

export TCL_LIBRARY=$TCL_LIBRARY:/opt/ns-allinone-2.31/tcl8.4.14/library

(press esc (plus) : (colon) then press the keys wq )

Simple ns2 emulation program

>cd /opt/ns-allinone-2.31/ns-2.31/tcl/ex

>ns wireless-demo-csci694.tcl

>nam 694demo.nam

ur first nam out put hurray the ns2 is working...

Requirements for ns2

ns2 works only on linux platforms so u need to have linux.

i chose to install fedora core 8 as it was the latest.

u can download fedora 8 from this site.

The installation screen shots of fedora 8

The screen shots credits is softpedia.

Why ns2?

hi world,
Everyone would always run around in the start of their final year for a project. But i got my project with out even thinking of it. My project guide. Gave me the domain and said iam going to do the project in Ad hoc networks. This happened some 14 months back. I was so weak in wired networks itself thinking of wireless networks made my spine chill.
So with no other choice i started working Ad hoc networks got to know abt "some concepts" upto now.

Net proved to be so useful for me. I used to do random search occasionally that itself proved to be informative querying session. I wasnt that much committed with my project. only in the final stages i got a clear idea of what i am going to do.

To simulate the environment we need a software called as ns2 which helps in creating a virtual environment for us.

ns2 is a great tool thought i dont know much about it. Learning that tool itself gives me immense pleasure as people regard it as very difficult. and iam one of the rare species who knows it.