[ns] Reg Timer Handler Functions

2010-03-28 Thread jaya vignesh



Hi,
I would like to know the functioning of timer handler functions like resched 
and handle?? What is use of these?
Also, in my routing code, when i attach any traffic to my node like [cbr(0) 
start] in my tcl, automatically i should invoke a beaconing procedure function, 
where that particular node for which the cbr traffic is attached should send 
the beacon packet to find the satisfactory neighbor based on beacon reply.
Any sample flow to explain how to obtain the node for which the cbr traffic is 
attached.? 
Thanks,
Jayavignesh 

Your Mail works best with the New Yahoo Optimized IE8. Get it NOW!.


  Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! 
http://downloads.yahoo.com/in/internetexplorer/


[ns] Fwd: SUB: Reg getting this NS2 code working

2010-03-28 Thread Venkata Ramana

Hello Everyone,

I am interested in knowing how to get this code working ... all it has are
folders and each folder containing different .cc C++ Files and .h Header
files.
I want to know what procedure i should follow to get this code up and
running ... i downloaded the code from the following link.

http://www.matthewjmiller.net/files/cs497ig_paper_code.tar.gz

It involves concepts on adding a protocol to the NS2 OCTL objects i guess.
I'm not so knowledgeable.
If any expert programmer can help me, i would appreciate it. Thank you.

Regards,
Venkata


Re: [ns] Fwd: SUB: Reg getting this NS2 code working

2010-03-28 Thread Teerawat Issariyakul


Hi Venkata,

If you are new to NS2, I suggest you to read the following blog.

http://www.ns2ultimate.com/post/434349586/for-ns2-newbies

It provides the fundamental steps in learning NS2.

Best Regards,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http://www.t-issariyakul.blogspot.com
http://www.ece.ubc.ca/~teerawat



On 3/28/2010, Venkata Ramana ramana.venkat...@gmail.com wrote:


Hello Everyone,

I am interested in knowing how to get this code working ... all it has are
folders and each folder containing different .cc C++ Files and .h Header
files.
I want to know what procedure i should follow to get this code up and
running ... i downloaded the code from the following link.

http://www.matthewjmiller.net/files/cs497ig_paper_code.tar.gz

It involves concepts on adding a protocol to the NS2 OCTL objects i guess.
I'm not so knowledgeable.
If any expert programmer can help me, i would appreciate it. Thank you.

Regards,
Venkata




Re: [ns] Reg Timer Handler Functions

2010-03-28 Thread Teerawat Issariyakul


Hi Jaya,

It's hard to explain the concept of the timer without knowing what event
scheduler is, and how it works. But I am going to give you quick answer.

Timer is used when you want to delay something. An example is TCP
retransmission timer, which will trigger TCP to retransmit the packet
after a given delay. Timer has interfaces to set (schedule), reset
(reschedule), and cancel.

I will blog about the event scheduler soon at my blog

www.ns2ultimate.com

(The current blog topic is routing modules and classifiers)

Anyway if you are in hurry you can have a look at chapters 4 and 12 in
the following books.

T. Issaraiyakul and E. Hossain, “Introduction to Network Simulator NS2”,
Springer 2009. Here is the link

http://www.amazon.com/gp/product/0387717595?ie=UTF8amp;tag=ns2ultteeiss-20amp;linkCode=as2amp;camp=1789amp;creative=9325amp;creativeASIN=0387717595

You may also find lecture notes and other resource at the following
website: http://www.ece.ubc.ca/~teerawat/NS2.htm

Best Regards,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http://www.t-issariyakul.blogspot.com
http://www.ece.ubc.ca/~teerawat




n 3/28/2010, jaya vignesh jayavignes...@yahoo.co.in wrote:




Hi,
I would like to know the functioning of timer handler functions like resched 
and handle?? What is use of these?
Also, in my routing code, when i attach any traffic to my node like [cbr(0) 
start] in my tcl, automatically i should invoke a beaconing procedure 
function, where that particular node for which the cbr traffic is attached 
should send the beacon packet to find the satisfactory neighbor based on 
beacon reply.
Any sample flow to explain how to obtain the node for which the cbr traffic is 
attached.? 
Thanks,
Jayavignesh 

Your Mail works best with the New Yahoo Optimized IE8. Get it NOW!.


  Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! 
 http://downloads.yahoo.com/in/internetexplorer/




[ns] Problem with using ./configure command in ns2 while recompiling ns2

2010-03-28 Thread The Learner


Hi all.
I am facing problem with using ./configure command in ns2.
Here is waht I get,

dee...@deepti-laptop:~/ns-allinone-2.34/ns-2.34$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... no
checking if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... yes
checking if STL works without any namespace... no
checking if STL works with namespace std... yes
checking should use STL... yes
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl8.4... -L../lib -ltcl8.4
checking for init.tcl... ../lib/tcl8.4
checking for http.tcl... ../lib/tcl8.4/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.4.18... no
checking for tclsh8.4... ../bin/tclsh8.4
checking for tk.h... -I../include
checking for libtk8.4... -L../lib -ltk8.4
checking for tk.tcl... ../lib/tk8.4
checking for otcl.h... -I../otcl-1.13
checking for libotcl1.13... -L../otcl-1.13 -lotcl
checking for tclcl.h... -I../tclcl-1.19
checking for libtclcl... no
checking for tcl2c++... /usr/bin
configure: error: Installation of tclcl seems incomplete or can't be found
automatically.
Please correct the problem by telling configure where tclcl is
using the argument --with-tclcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tclcl=no.


How do I check if the installation of tclcl is done or not?
And if yes, what is the path//?
If not, then how do I install it?

Thank You,
The Learner
-- 
View this message in context: 
http://old.nabble.com/Problem-with-using-.-configure-command-in-ns2-while-recompiling-ns2-tp28060659p28060659.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] problem in installing xgraph 12.1

2010-03-28 Thread Manoj srivatsav

Hi all,
when i tired installing xgraph 12.1 on fedora 12.. i get the following error
when i execute the make command... ./configure excutes without any errors..

[ma...@localhost xgraph-12.1]$ make
gcc -DHAVE_CONFIG_H -I. -I. -I.-g-c dialog.c
dialog.c: In function ‘make_msg_box’:
dialog.c:780: warning: passing argument 2 of ‘getline’ from incompatible
pointer type
/usr/include/stdio.h:653: note: expected ‘size_t * __restrict__’ but
argument is of type ‘char *’
dialog.c:780: error: too few arguments to function ‘getline’
dialog.c: In function ‘getline’:
dialog.c:899: error: argument ‘lptr’ doesn’t match prototype
/usr/include/stdio.h:653: error: prototype declaration
dialog.c:899: error: number of arguments doesn’t match prototype
/usr/include/stdio.h:653: error: prototype declaration
make: *** [dialog.o] Error 1

plz some one help..

thanks..
manoj


[ns] Multipath routing problem

2010-03-28 Thread waqar haq

hi

i m writing a routing Algo. for the wired network
i have write most of the code and now working with load balancing issue

i have formulated it and have also write the code

but problem is after sensing a congestion in a network or getting link
utilization high

it calls my method madd-routes which add multiple routes for load balancing
but the problem is that

it only shift the traffic for once

i have found that ns2 send traffic in round robin when multipath_ is set to
1
as define in ns notes


what would be the problem???


here is the code snippet

Agent/rtProto/SLRA instproc madd-route {peerAddr dst check nodeid} {
$self instvar nextHop_


global multi
puts check $check
set node_ [$self id2handle $nodeid]
set dest_ [$self id2handle $dst]



puts for subnet $dst the link is $peerAddr
set ns_ [Simulator instance]
set nullAgent_ [$ns_ set nullAgent_]
set a [$dest_ set address_]
set b [$ns_ link $node_ $peerAddr]




lappend target_list $b


if { $check == 1 } {
if { $nextHop_($dest_) !=  } {
$node_ delete-route [$dst id] $nextHop_($dst) $nullAgent_
}
$node_ add-routes $dst $target_list
$node_ set multipath_ 1
set $multi 1
}


# check is use to to check whehter all routes are added in terget list and
is #controlled in c++


[ns] youssef salal

2010-03-28 Thread john peter

I’m 30. But I already had problems with sexual activity. My friend advised me 
OnlineS_site and it has improved my life. 
http://cedricjoulie.com/go.my.friend.htm