[ns] setdest error!!!

2007-07-25 Thread Saleemsheikh


hi,

i got this error when i genrate any of wireless sceneario uder
~ns2.29/indep-utils/cmu-scene-gen/setdest


$ ./setdest -n 100 -p 50.0 -s 2.0 -t 100.0 -x 500 -y 500 > scene-100-test 
assertion "speed != 0.0" failed: file "setdest.cc", line 595
Aborted (core dumped)


Can any one know this & would like to help me in this regard.


Regards,
Saleem
-- 
View this message in context: 
http://www.nabble.com/setdest-error%21%21%21-tf4149505.html#a11804628
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Enqueque packets

2007-07-25 Thread Raphael

Hi NS-users,

I want to emulate an udp application using tcl scripts.

Since the packets do not have constant size I cannot use CBR. I intented
to use a Agent/UDP. the send method and enqueue the packets to the link
queue. As far as I understand the docu this can be done with C++ using
the enque method. Is it possible to use this method from inside the tcl
scripts?

To make things clear. I want to send a bursts of udp packets, all
packets with different size varing from 10-80bytes. Immediately after
packet one I want to send packet two, ..., pause, next burst.

I tried to use
$ns at 5.0 "$udp send 10 pk1"
$ns at 5.0 "$udp send 11 pk2"
$ns at 5.0 "$udp send 23 pk1"

but in this case all messages will be send at (nearly) the same time...
(which is correct, but not what I want)

Any advice how to use the queue mechanism or any other "workaround"
would be fine..

Thx in advance

Raphael



[ns] printf ns2 default output

2007-07-25 Thread borges

where does printf prints ? I'm doing printf(stderr,..) to print at screen,
but I want to know how to change the defaul output.

Thanks in advance
Alex



[ns] multicast path problems

2007-07-25 Thread rubenjy


Hello everyone

I used multicast protocol to sent data.
node1 connects node2 and node3.
I set up 2 multicast group in node1.
when multicast groups started sending multicast data.
all data sent to node2.

how to set (or modify) group1 send data to node2
,and group2 send data to node3.

can anybody help me?
regards, 
-- 
View this message in context: 
http://www.nabble.com/multicast-path-problems-tf4147462.html#a11798569
Sent from the ns-users mailing list archive at Nabble.com.



[ns] 802.11g in ns 2.28

2007-07-25 Thread Will Spearman

Hello all,

I would like to implement 802.11g in ns-2.28. I have found many
discussions of this on the web such as:

http://web.syr.edu/~dchen02/FAQ.txt

However, the directions I have found are a little unclear. Some of the
variables mentioned such as DSSS_CWMin only occur within files that
don't seem to be used in 802.11. Can someone who has done this before
give me some advice, or clear up the above mentioned directions? Any
help is MUCH appreciated.

Will



Re: [ns] ns 2.2x installing problem

2007-07-25 Thread Sampath N Ranasinghe

Hi ,
I include below information regarding the patching of ns-2.28 for the 
new version of the bash obtained from a website a few months back.

-
Hi,

Yeah, I successfully installed ns-allinone-2.29.2 on FC5 but after
slightly modifying the whole package. First, I updated the Tcl and Tk
sources to the 8.4.13 (you can grab a copy from sf.net). Then you'll
have to modify the configure files (Tcl, Tk, OTcl and TclCL) in this way:

cp -v configure{,.orig}
sed "s/relid'/relid/" configure.orig > configure



I hope this information will be useful

Kind Regards,
Sampath






Elahe Alipour wrote:
> Hello everyone
>   
> I installed ns 2.31 without any problem on centos5. but now I have a problem 
> on installing ns allinone 2.28.
> At first i received this error: 
>   
> *"checking system version (for dynamic loading)... ./configure: line
> 7624: syntax error near unexpected token ')'
> ./configure: line 7624: ' OSF*)'
> tcl8.3.2 configuration failed! Exiting ...
> Tcl is not part of the ns project. Please see www.Scriptics.com to see
> if they have a fix for your problem."
>
>   and I found a solution in Internet:
>   
> "The problem lies in how bash 3.1.x and 4.x.x parse the configure file. This
> will simply pass through bash 3.0.x and lower versions. So in order to make
> things work changed the following lines 
>   
> tcl: file tcl8.x.x/unix/tcl.m4.
> tk: file tk8.x.x/unix/tcl.m4.
> otcl: file otcl-1.x/configure.in.
>
>   to:
>
>   system=MP-RAS-`awk ' { print $3 } '/etc/.relid` 
>   
> Now after changing the configuration files you will have
> to delete older configure file and any cache if it exists in the respective
> folders. After that do not forget to run autoconf from command line in the
> respective folders to generate a fresh configure file." 
>   
> i change the three above files then i run autoconf (without deleting any 
> configuration file!) 
>   
> [EMAIL PROTECTED] unix]# autoconf
>   
> and i saw this error:
>
>   "configure.in:199: error: do not use LIBOBJS directly, use AC_LIBOBJ (see 
> section `AC_LIBOBJ vs LIBOBJS' If this token and others are legitimate, 
> please use m4_pattern_allow. See the Autoconf documentation."
>   
> and now i don't now how to solve this. 
>   
> can anybody help me? 
> regards, 
>   
> [EMAIL PROTECTED]
>
>
>
> -
> Boardwalk for $500? In 2007? Ha! 
> Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
>
>   

-- 
Sampath N. Ranasinghe
PhD Student
Centre for Telecommunications Research
Department of Electronic Engineering
King's College London
United Kingdom. 

Email: [EMAIL PROTECTED]
Tel  : +44 (0) 20 7848 2889



Re: [ns] serialization in ns-2

2007-07-25 Thread Sampath N Ranasinghe

Hi,
I have actually dabbled with the concept of serializing objects for 
transmission over network in ns2. In my experience serialization of 
objects for transmission over a network is a complicated process. So 
instead of actually serializing the object itself I create a serialized 
version of it the form of a packet. The packet contains all the 
information required to instantiate the object on the receiving end 
without actually serializing and encapsulating the object itself. 
Something similar to below :

Object a = new Object;
char * sObj = a->serialise();
..
..
Encapsulate sObj inside a packet
..
..

send(packet)


Hope this helps.

Kind Regards,
Sampath



Kwnstantina Palla wrote:
> Hello !
> i was searching through the mailing-list in order to find something similar
> but i didn't. So i would appreciate it if anyone gave me an answer.
> Is it possible to serialize an object (class instance) in order to send it
> through the network? (wireless).
> Has anyone tried something like that?
> I googled a lot, but it seems that serialization is pretty tough.
> I found that some libraries might be needed in order to extend c++ with such
> feature. (I found libraries like "boost" libraries).
> However i am afraid that then i would have to tackle with compatibility
> issues.
> I would really appreciate any help!
>
>   

-- 
Sampath N. Ranasinghe
PhD Student
Centre for Telecommunications Research
Department of Electronic Engineering
King's College London
United Kingdom. 

Email: [EMAIL PROTECTED]
Tel  : +44 (0) 20 7848 2889



Re: [ns] problem configuring ns-2.

2007-07-25 Thread Arturo Lev Servin

fdouglas wrote:
> Hello,
> 
>  I am trying to configure the NS-2.26 in a AMD64 machine with Ubuntu.
> When I type ./configure I got the following message:
> 
> ...
> checking for libtcldbg... no
> checking dmalloc... not requested with --with-dmalloc
> checking for perl... /usr/lib
> not version 5.002
> checking for perl5... /usr/lib
> not version 5.002
> perl version 5.002 not found
> configure: warning: Perl5 not found; test scripts will not run succesfully.
> checking for ANSI C header files... (cached) yes
> ...
> 
> I have Perl version 5.8.8 installed. I tryied the same ./configure in
> another machine, a notebook with ubuntu too and it worked fine.
> 
> Someone know this bug??? Why it does not recognize my Perl
> installation???
> 
> Regards,
> 
> Frank Douglas
> Federal University of Amazonas
> Manaus - Brasil
> 

   May be you have the perl libraries in some place different than
"/usr/lib".

-as