Re: [ns] R: Turn Nodes on/off

2006-06-23 Thread Gilles Bertrand

Hi,

You may add -g to the compilation options (gcc -g ...). This can be done
in the Makefile.in file. Then you will be able to launch the gdb
debugger on ns executable file by:

 gdb ns

In the opened interpreter use the following commands:

 r the_name_of_my_script.tcl
 bt

And gdb will provide you with the last system calls before the
segmentation fault, allowing you to locate the source of the error.

Mit freundlichen Grüßen, with kind regards, cordialement,

--
Gilles BERTRAND
Institut National des Télécommunications (GET)- Universität Stuttgart
Tel: +33 (0) 3 29 63 22 08
--


Marco Fiore a écrit :
 Hi,
 
 assuming that violación de segmento translates into segment 
 fault, this error is very often caused by a NULL pointer. I.e. look 
 into your code for pointers, and check that you never fall in the case 
 p-something, where p is NULL.
 
 regards,
 
 Marco Fiore
 
 Messaggio 
 originale
 Da: [EMAIL PROTECTED]
 Data: 21-giu-2006 4.11 PM
 A: ns-
 [EMAIL PROTECTED]
 Ogg: [ns] Turn Nodes on/off


 We have a system 
 working and now we are trying to introduce an node on/off
 file. 
 Unfortunately we are the following errors: 


 Load File onoff1 
 complete.
 NS-2 STARTS Simulation of prueba2.tcl

 Violación de 
 segmento


 Can any one help us??




[ns] Integrate NS-2 with real network

2006-06-23 Thread [EMAIL PROTECTED]

Hi!

I need help about integrate NS-2 into a real network.
I would like that a real client communicates with a node within the simulator 
or with another node external to the simular (eg. a server). I saw the emulator 
extension, and now I can use ns-2 as a gateway, but I don't know how make 
real-simulator network communication (can I assign a real IP address to a 
simulated node? I read that I can't...).
I would appreciate any suggestion/link/idea/code!!

Thanks,
 Paolo Carpo



[ns] pareto and exponetial sources: what is the actual bitrate generated

2006-06-23 Thread Gilles Bertrand

dear Ns-users,

I am modelling some traffic with Pareto and Exponential Applications.  But I
notice that the bit rate that is really generated by these Applications is
different from the one specified in rate_ variable. For example if I specify
a bitrate of 100kb/s, a on/time of 10ms a off time of 10ms my Exponential
Application generates onlyt 88.9 kb/s .

I have seen that the generated bitrate depends on the on and off time but I
would like to know how.

many thanks for your help.

Mit freundlichen Grüßen, with kind regards, cordialement,

--
Gilles BERTRAND
Telecom INT - University of Stuttgart
--


[ns] run AODV

2006-06-23 Thread mohamed abdrabou

Hallo

I am a new user for NS2 and I use ns-allinone-2.29.
Can anyone help me .. How can i run AODV code?

thanks



Re: [ns] Wired thru BS to Wireless and vice versa

2006-06-23 Thread Hai Nam

On 6/23/06, Varrian Hall [EMAIL PROTECTED] wrote:

 Hello,
I have been racking my brain trying to figure out how to simulate a
 mobile using communicating to a node in a wired domain through a base
 station.  Please assist with this issue.  Nothing I'm trying is working.

 thanks,

This tutorial about wired cum wireless simulations might help :-)
http://www.isi.edu/nsnam/ns/tutorial/nsscript6.html


-- 
Hai-Nam NGUYEN
Elève 3A SLR, ENST Bretagne
2 rue de la Châtaigneraie, 35576 Cesson Sévigné
Site web: http://www.jcisio.com



Re: [ns] R: Turn Nodes on/off

2006-06-23 Thread Hai Nam

On 6/23/06, Gilles Bertrand [EMAIL PROTECTED] wrote:

 Hi,

 You may add -g to the compilation options (gcc -g ...). This can be done
 in the Makefile.in file. Then you will be able to launch the gdb
 debugger on ns executable file by:

  gdb ns

 In the opened interpreter use the following commands:

  r the_name_of_my_script.tcl
  bt

 And gdb will provide you with the last system calls before the
 segmentation fault, allowing you to locate the source of the error.


Hello,

[sorry for this off-topic post]
Where do you run ns ? When I run gdb ns in the tcl script folder,
then r example.tcl (in fact I do all that in ddd), they says that
file nn.ext not found like this (in French):
=
0x0817059b in hdr_cmn::pop_src_rt() (this=0x89d4a38) at packet.h:531
531 packet.h: Aucun fichier ou répertoire de ce type.
in packet.h
=

The same problem that I can't put a breakpoint or step outside the
main program. How can you do so that gdb knows where to look for
included files ?

Regards,


-- 
Hai-Nam NGUYEN
Elève 3A SLR, ENST Bretagne
2 rue de la Châtaigneraie, 35576 Cesson Sévigné
Site web: http://www.jcisio.com



Re: [ns] R: Turn Nodes on/off

2006-06-23 Thread Gilles Bertrand

Chao Hai,

well to the best of my knowledge, gdb should not have to knwo where to look
for the files as it is launched on an executable. What is is used for is to
know in which function the problem happens. Then you should know in which
file you have implemented this function (else a grep command could help a
lot ;o) ).

have you had a look at the line 531 of packet.h (probably located in folder
/ns-allinone.../ns-version/common) ?

Ho I almost forgot: i am french so if you wanna discuss this topic off-line
in french, you may e-mail me.

Regards,

--
Gilles BERTRAND
Telecom INT - University of Stuttgart
--

2006/6/23, Hai Nam [EMAIL PROTECTED]:

 On 6/23/06, Gilles Bertrand [EMAIL PROTECTED] wrote:
 
  Hi,
 
  You may add -g to the compilation options (gcc -g ...). This can be done
  in the Makefile.in file. Then you will be able to launch the gdb
  debugger on ns executable file by:
 
   gdb ns
 
  In the opened interpreter use the following commands:
 
   r the_name_of_my_script.tcl
   bt
 
  And gdb will provide you with the last system calls before the
  segmentation fault, allowing you to locate the source of the error.
 

 Hello,

 [sorry for this off-topic post]
 Where do you run ns ? When I run gdb ns in the tcl script folder,
 then r example.tcl (in fact I do all that in ddd), they says that
 file nn.ext not found like this (in French):
 =
 0x0817059b in hdr_cmn::pop_src_rt() (this=0x89d4a38) at packet.h:531
 531 packet.h: Aucun fichier ou répertoire de ce type.
 in packet.h
 =

 The same problem that I can't put a breakpoint or step outside the
 main program. How can you do so that gdb knows where to look for
 included files ?

 Regards,


 --
 Hai-Nam NGUYEN
 Elève 3A SLR, ENST Bretagne
 2 rue de la Châtaigneraie, 35576 Cesson Sévigné
 Site web: http://www.jcisio.com



[ns] Indoor and outdoor parameters

2006-06-23 Thread Sasan Sahraei

All,

When using shadowing propagation model setting

path loss to 2 (range 2 to 3.7) and standard deviation to 3 (range 2 to 3)
mainly suites an indoor environment.

Propagation/Shadowing set pathlossExp_  2.0
Propagation/Shadowing set std_db_   3.0

my questions are:

1. Is the above accurate?
2. If so, how can I define path loss and standard deviation to suite for
an outdoor simulated environment?

Thanks,
Sasan



Re: [ns] R: Turn Nodes on/off

2006-06-23 Thread Hai Nam

On 6/23/06, Gilles Bertrand [EMAIL PROTECTED] wrote:

 well to the best of my knowledge, gdb should not have to knwo where to look
 for the files as it is launched on an executable. What is is used for is to
 know in which function the problem happens. Then you should know in which
 file you have implemented this function (else a grep command could help a
 lot ;o) ).


Thanks, ok it's now clear for me that gdb doesn't know directory
structure of source files. I asked this question just because I don't
like the error file not found of gdb ^_^ packet.h is a file that
I've modified ;-)

Best regards,

-- 
Hai-Nam NGUYEN
Elève 3A SLR, ENST Bretagne
2 rue de la Châtaigneraie, 35576 Cesson Sévigné
Site web: http://www.jcisio.com



Re: [ns] R: Turn Nodes on/off

2006-06-23 Thread Shafiq Hashmi

Hi all,

That would be a bad idea if you go offline to discuss this topic or any 
other topic by which others can benefit as well. At least I learned from 
this discussion ;-)

Regards



- Original Message - 
From: Gilles Bertrand [EMAIL PROTECTED]
To: Hai Nam [EMAIL PROTECTED]
Cc: ns-users@ISI.EDU
Sent: Friday, June 23, 2006 9:57 AM
Subject: Re: [ns] R: Turn Nodes on/off



 Chao Hai,

 well to the best of my knowledge, gdb should not have to knwo where to 
 look
 for the files as it is launched on an executable. What is is used for is 
 to
 know in which function the problem happens. Then you should know in which
 file you have implemented this function (else a grep command could help a
 lot ;o) ).

 have you had a look at the line 531 of packet.h (probably located in 
 folder
 /ns-allinone.../ns-version/common) ?

 Ho I almost forgot: i am french so if you wanna discuss this topic 
 off-line
 in french, you may e-mail me.

 Regards,

 --
 Gilles BERTRAND
 Telecom INT - University of Stuttgart
 --

 2006/6/23, Hai Nam [EMAIL PROTECTED]:

 On 6/23/06, Gilles Bertrand [EMAIL PROTECTED] wrote:
 
  Hi,
 
  You may add -g to the compilation options (gcc -g ...). This can be 
  done
  in the Makefile.in file. Then you will be able to launch the gdb
  debugger on ns executable file by:
 
   gdb ns
 
  In the opened interpreter use the following commands:
 
   r the_name_of_my_script.tcl
   bt
 
  And gdb will provide you with the last system calls before the
  segmentation fault, allowing you to locate the source of the error.
 

 Hello,

 [sorry for this off-topic post]
 Where do you run ns ? When I run gdb ns in the tcl script folder,
 then r example.tcl (in fact I do all that in ddd), they says that
 file nn.ext not found like this (in French):
 =
 0x0817059b in hdr_cmn::pop_src_rt() (this=0x89d4a38) at packet.h:531
 531 packet.h: Aucun fichier ou répertoire de ce type.
 in packet.h
 =

 The same problem that I can't put a breakpoint or step outside the
 main program. How can you do so that gdb knows where to look for
 included files ?

 Regards,


 --
 Hai-Nam NGUYEN
 Elève 3A SLR, ENST Bretagne
 2 rue de la Châtaigneraie, 35576 Cesson Sévigné
 Site web: http://www.jcisio.com

 




Re: [ns] R: Turn Nodes on/off

2006-06-23 Thread Gilles Bertrand

Hi Shafiq,

you are right, I know :o) This suggestion was done in case more detailled
and very specific help was required, which is not the case :o)

Regards,

--
Gilles BERTRAND
Telecom INT - University of Stuttgart
--

2006/6/23, Shafiq Hashmi [EMAIL PROTECTED]:

 Hi all,

 That would be a bad idea if you go offline to discuss this topic or any
 other topic by which others can benefit as well. At least I learned from
 this discussion ;-)

 Regards



 - Original Message -
 From: Gilles Bertrand [EMAIL PROTECTED]
 To: Hai Nam [EMAIL PROTECTED]
 Cc: ns-users@ISI.EDU
 Sent: Friday, June 23, 2006 9:57 AM
 Subject: Re: [ns] R: Turn Nodes on/off


 
  Chao Hai,
 
  well to the best of my knowledge, gdb should not have to knwo where to
  look
  for the files as it is launched on an executable. What is is used for is
  to
  know in which function the problem happens. Then you should know in
 which
  file you have implemented this function (else a grep command could help
 a
  lot ;o) ).
 
  have you had a look at the line 531 of packet.h (probably located in
  folder
  /ns-allinone.../ns-version/common) ?
 
  Ho I almost forgot: i am french so if you wanna discuss this topic
  off-line
  in french, you may e-mail me.
 
  Regards,
 
  --
  Gilles BERTRAND
  Telecom INT - University of Stuttgart
  --
 
  2006/6/23, Hai Nam [EMAIL PROTECTED]:
 
  On 6/23/06, Gilles Bertrand [EMAIL PROTECTED] wrote:
  
   Hi,
  
   You may add -g to the compilation options (gcc -g ...). This can be
   done
   in the Makefile.in file. Then you will be able to launch the gdb
   debugger on ns executable file by:
  
gdb ns
  
   In the opened interpreter use the following commands:
  
r the_name_of_my_script.tcl
bt
  
   And gdb will provide you with the last system calls before the
   segmentation fault, allowing you to locate the source of the error.
  
 
  Hello,
 
  [sorry for this off-topic post]
  Where do you run ns ? When I run gdb ns in the tcl script folder,
  then r example.tcl (in fact I do all that in ddd), they says that
  file nn.ext not found like this (in French):
  =
  0x0817059b in hdr_cmn::pop_src_rt() (this=0x89d4a38) at packet.h:531
  531 packet.h: Aucun fichier ou répertoire de ce type.
  in packet.h
  =
 
  The same problem that I can't put a breakpoint or step outside the
  main program. How can you do so that gdb knows where to look for
  included files ?
 
  Regards,
 
 
  --
  Hai-Nam NGUYEN
  Elève 3A SLR, ENST Bretagne
  2 rue de la Châtaigneraie, 35576 Cesson Sévigné
  Site web: http://www.jcisio.com
 



[ns] MACs for wireless sensor networks

2006-06-23 Thread John

 Hello:
Besides S-MAC, are there any other popular MACs such as the B-MAC available
for NS2?

Thanks for your help
 John


[ns] Problem with SMAC when running ns2 with a clustering protocol as a routing agent

2006-06-23 Thread Kiran Anna

Hello Everyone,
  
 I am currently trying to add a clustering protocol to the existing protocol 
stack of the wireless node in ns2. The final modified stack consists of 
clustering layer right below the routing layer. I did make all the necessary 
modifications in the ns2 code and tried to run the simulation. For some reason, 
the simulation doesnt run to it finish time. I dont see any errors but ns2 just 
quits after running for a part of the finish time. I thought there might be 
some memory problems or errors in the stack connections due to the modications 
I made. 
  
 So, I took a fresh ns2 and implemented a basic clustering protocol as a 
routing protocol following the existing AODV implementation. There are no 
traffic sources and all my current implementation does is broadcasts clustering 
hello packets upto a maximum of 2 hops. My simulation runs completely to the 
finish time when I use 802.11 at the MAC layer. But it doesnt run to the finish 
time when SMAC is used. Could anyone help me with this problem. Do you think 
there is a problem with the clustering protocol or SMAC? I would appreciate any 
insight into this problem. The script file and the outputs are pasted below.
  
 Ns2 version: ns2.27
OS: Suse 9.0
Other Info:
Applied the nrl's sensor sim patch to ns2. but in current simulation I 
havent used nrl's features.
 
  Regards
  Kiran Anna
  PhD student,
  University of Central Florida, 
  Orlando, FL-32826
 
 SMAC:
 
 This is a multi-channel sensor network test program.
 Starting Simulation...
 
 NOTE: SMAC is running with sleep-wakeup cycles on. Please make sure to run yr 
applications AFTER the nodes get sync'ed which is about 40sec for the default 
settings.
 
 num_nodes is set 26
 Sent SYNC from 5.at 17.182000
 Sent SYNC from 11.at 18.615000
 Sent SYNC from 0.at 20.044000
 Sent SYNC from 19.at 20.044000
 Sent SYNC from 22.at 21.477000
 Sent SYNC from 16.at 22.906000
 Sent SYNC from 17.at 22.906000
 Sent SYNC from 24.at 24.337000
 Sent SYNC from 23.at 24.337000
 Sent SYNC from 8.at 25.768000
 Sent SYNC from 6.at 25.768000
 Sent SYNC from 25.at 27.199000
 Sent SYNC from 3.at 27.199000
 Sent SYNC from 9.at 28.63
 Sent SYNC from 16.at 30.061000
 Sent SYNC from 15.at 30.069000
 Sent SYNC from 21.at 31.493000
 Sent SYNC from 4.at 32.929000
 Sent SYNC from 2.at 34.354000
 Sent SYNC from 24.at 34.354000
 Sent SYNC from 6.at 35.788000
 Sent SYNC from 13.at 37.216000
 Sent SYNC from 11.at 37.216000
 Sent SYNC from 2.at 38.647000
 Node3 chooses itself as cluster head at 40.01
 Node#3 sending senCluster Hello at 40.01
 Node5 chooses itself as cluster head at 40.01
 Node#5 sending senCluster Hello at 40.01
 Node7 chooses itself as cluster head at 40.01
 Node#7 sending senCluster Hello at 40.01
 Node13 chooses itself as cluster head at 40.01
 Node#13 sending senCluster Hello at 40.01
 Node18 chooses itself as cluster head at 40.01
 Node#18 sending senCluster Hello at 40.01
 Node25 chooses itself as cluster head at 40.01
 Node#25 sending senCluster Hello at 40.01
 Node#3 LL sending down a broadcast packet at 40.01
 Node#3 LL sending the packet to the IFQueue at 40.01
 Node#5 LL sending down a broadcast packet at 40.01
 Node#5 LL sending the packet to the IFQueue at 40.01
 Node#7 LL sending down a broadcast packet at 40.01
 Node#7 LL sending the packet to the IFQueue at 40.01
 Node#13 LL sending down a broadcast packet at 40.01
 Node#13 LL sending the packet to the IFQueue at 40.01
 Node#18 LL sending down a broadcast packet at 40.01
 Node#18 LL sending the packet to the IFQueue at 40.01
 Node#25 LL sending down a broadcast packet at 40.01
 Node#25 LL sending the packet to the IFQueue at 40.01
 PRIQUEUE receiving SENCLUSTER packet and adding at the front of the queue at 
40.010025
 PRIQUEUE sending a packet down to MAC LAYER at 40.010025
 PRIQUEUE receiving SENCLUSTER packet and adding at the front of the queue at 
40.010025
 PRIQUEUE sending a packet down to MAC LAYER at 40.010025
 PRIQUEUE receiving SENCLUSTER packet and adding at the front of the queue at 
40.010025
 PRIQUEUE sending a packet down to MAC LAYER at 40.010025
 PRIQUEUE receiving SENCLUSTER packet and adding at the front of the queue at 
40.010025
 PRIQUEUE sending a packet down to MAC LAYER at 40.010025
 PRIQUEUE receiving SENCLUSTER packet and adding at the front of the queue at 
40.010025
 PRIQUEUE sending a packet down to MAC LAYER at 40.010025
 PRIQUEUE receiving SENCLUSTER packet and adding at the front of the queue at 
40.010025
 PRIQUEUE sending a packet down to MAC LAYER at 40.010025
 Sent SYNC from 8.at 40.078000
 Node#5 LL recved a packet and sending to classifier at 40.188000
 Node#2 LL recved a packet and sending to classifier at 40.188000
 Node#8 LL recved a packet and sending to classifier at 40.188000
 Node#9 

[ns] Sending packets from different flows to a destination via two different paths

2006-06-23 Thread Nicholas Loulloudes

Hello,

I have created two nodes in ns2 which are connected to each other using two
links.

I have created also two different UDP flows on n0 (source node) to be
transmitted to n1 (destination node).

Is it possible to have packets belonging to flow 1 routed from one link and
packets belonging to flow 2 routed from the other link?

Thank you in advance?

-- 
Nicholas Loulloudes

Postgraduate at Communication Networks and Software.

BSc in Computer Science.