[ns] LEACH for ns2

2009-03-16 Thread Douglas Restrepo


Hi Forum...

Can some body tell me if there are some implementation of LEACH for NS2.

Thankyou



  




[ns] where i can download NS3

2009-01-27 Thread Douglas Restrepo

Hi forum...

why the size of ns2.29 is 68Mb and the ns3 is only 1.1Mb

where i can download the ns3 full version? or what i have to install the ns3 
version

Thankyou


  




[ns] what is most stable version of NS2

2009-01-16 Thread Douglas Restrepo

Hi NS2 forum...

Can some body tell me what is the most stable version of NS2.

I have to do a project with the LEACH protocol and I'd like work with a good 
version of NS2.

Thank you.


  



[ns] use tcl variable in c

2008-11-25 Thread Douglas Restrepo

Hello

How can i get the value of a tcl variable since mi code in C???

For example

if i need to use the variable val(nn) in my code, so

if(val(nn) == 3)
{
   something
}

how can i do it.


Thanks



  



[ns] how to use the beacon's

2008-11-23 Thread Douglas Restrepo

Hi forum

Can some body tell me what is the best way to synchronize nodes with beacons.

I don't know what is the best parameter to do it

for example, if i have this conf.


$ns_ at 0$node_(32) NodeLabel \PAN Coordinator\
$ns_ at 0$node_(32) sscs startPANCoord 0//how 
i have to config this parameters
$ns_ at 0[$node_(32) agent 255] boot-sink 1


for {set i 0} {$i  32} {incr i} {
$ns_ at [expr $i * 0.050]$node_($i) sscs startDevice//and 
here for the others nodes
$ns_ at [expr $i * 0.050][$node_($i) agent 255] boot
}



Thankyou


  



[ns] how use the sleep mode

2008-11-12 Thread Douglas Restrepo

Hello

Im working in a new protocol for wireless sensor networks (in 802.15.4), and in 
the simulation im not using beacon.

can some body tell how to put a node in sleep mode???

its posibble put a node in sleep mode without use a beacon???


i know that there are some functions in the code for 802.15.4, but i don't how 
to use it

thanks for your help



  



[ns] Rv: how to synchronize nodes

2008-11-11 Thread Douglas Restrepo

Hello...


1. Some body can tell me how to synchronize nodes
2. and ...how to put them in sleep mode.

thank you very much


  



[ns] how to stop the mac traffic

2008-11-07 Thread Douglas Restrepo

Hi NS2 people...

I'm working in a simulation con 101 nodes (wireless - 802.15.4) and the 
simulation is OK, the problem is when i consult the trace file .tr.

for example, if i suspend the cbr traffic in the simulation, the whole trace 
contains only MAC traces (s, r and d packets), and each transmission consumes 
energy. So that...

a node with initial energy   -   100

if i simulated 400 seconds without cbr traffic (nothing), the final energy is 
80. and 
if i simulated 400 seconds with 300 seconds of cbr traffic the final energy is 
79.

so that, i don't understand how is possible consumes the same energy with and 
without traffic.


My question is, why the MAC layer is always sending packages, even without 
having a traffic of the others layer in the network???
this mac transmissions consume a lot of energy.

i appreciate your cooperation.

Thanks for your help.


  



[ns] how to stop the mac traffic

2008-11-07 Thread Douglas Restrepo

Hi NS2 people...

I'm working in a simulation con 101 nodes (wireless - 802.15.4) and the 
simulation is OK, the problem is when i consult the trace file .tr.

for example, if i suspend the cbr traffic in the simulation, the whole trace 
contains only MAC traces (s, r and d packets), and each transmission consumes 
energy. So that...

a node with initial energy   -   100

if i simulated 400 seconds without cbr traffic (nothing), the final energy is 
80. and 
if i simulated 400 seconds with 300 seconds of cbr traffic the final energy is 
79.

so that, i don't understand how is possible consumes the same energy with and 
without traffic.


My question is, why the MAC layer is always sending packages, even without 
having a traffic of the others layer in the network???
this mac transmissions consume a lot of energy.

i appreciate your cooperation.

Thanks for your help.



  



[ns] Set energy for a node

2008-10-31 Thread Douglas Restrepo

Hello



I have a question.

I need to set the energy for a specific node in a specific time. for example

$ns_ at time_x $node_(32) energy=10

How can id do it?

Thank you


  



[ns] Rv: Set energy for a node

2008-10-28 Thread Douglas Restrepo

Hello


I have a question.

I need to set the energy for a specific node in a specific time. for example

$ns_ at time_x $node_(32) energy=10

How can id do it?

Thank you


  



[ns] Set energy for a node

2008-10-28 Thread Douglas Restrepo

Hello



I have a question.

I need to set the energy for a specific node in a specific time. for example

$ns_ at time_x $node_(32) energy=10

How can id do it?

Thank you


  



[ns] nam file

2008-10-14 Thread Douglas Restrepo

Hi...

1. Can somebody tell me if it's possible add some lines to the nam file.

  For example, at time 5.0 some node receive a CBR packet, then i add to 
the nam file

  n -t time -s 0 -S DLABEL -l [hola mundo] -L 



2. Im working with wireless nodes, and would like to know if its possible to 
draw lines among each node, and so, see the conection among the parent's nodes.

Thanks for help me


  



[ns] nam file

2008-10-14 Thread Douglas Restrepo

Hi...

1. Can somebody tell me if it's possible add some lines to the nam file.

  For example, at time 5.0 some node receive a CBR packet, then i add to 
the nam file

  n -t time -s 0 -S DLABEL -l [hola mundo] -L 



2. Im working with wireless nodes, and would like to know if its possible to 
draw lines among each node, and so, see the conection among the parent's nodes.

Thanks for help me



  



[ns] Trace file

2008-10-08 Thread Douglas Restrepo

Hello

I'm parsing the trace files of my simulation. In this file i have...

s -t 0.00032 -Hs 0 -Hd -1 -Ni 0 -Nx 76.43 -Ny 3.83 -Nz 0.00 -Ne 49.82 
-Nl MAC -Nw --- -Ma 0 -Md  -Ms 0 -Mt 0 
N -t 0.000320 -n 40 -e 49.59
N -t 0.000320 -n 38 -e 49.59
N -t 0.000320 -n 31 -e 49.59
N -t 0.000320 -n 97 -e 49.59
N -t 0.000320 -n 87 -e 49.59
N -t 0.000320 -n 47 -e 49.59
N -t 0.000320 -n 7 -e 49.59
N -t 0.000320 -n 30 -e 49.59
r -t 0.000768017 -Hs 40 -Hd -1 -Ni 40 -Nx 77.37 -Ny 8.83 -Nz 0.00 -Ne 49.59 
-Nl MAC -Nw --- -Ma 0 -Md  -Ms 0 -Mt 0 
r -t 0.000768017 -Hs 38 -Hd -1 -Ni 38 -Nx 79.86 -Ny 7.79 -Nz 0.00 -Ne 49.59 
-Nl MAC -Nw --- -Ma 0 -Md  -Ms 0 -Mt 0 
r -t 0.000768023 -Hs 31 -Hd -1 -Ni 31 -Nx 76.02 -Ny 10.73 -Nz 0.00 -Ne 
49.59 -Nl MAC -Nw --- -Ma 0 -Md  -Ms 0 -Mt 0 
r -t 0.000768025 -Hs 97 -Hd -1 -Ni 97 -Nx 76.12 -Ny 11.29 -Nz 0.00 -Ne 
49.59 -Nl MAC -Nw --- -Ma 0 -Md  -Ms 0 -Mt 0 
r -t 0.000768029 -Hs 87 -Hd -1 -Ni 87 -Nx 70.42 -Ny 10.22 -Nz 0.00 -Ne 
49.59 -Nl MAC -Nw --- -Ma 0 -Md  -Ms 0 -Mt 0 
d -t 0.653008023 -Hs 9 -Hd -1 -Ni 9 -Nx 72.17 -Ny 42.24 -Nz 0.00 -Ne 49.965910 
-Nl MAC -Nw APS -Ma 0 -Md  -Ms d -Mt 0 
r -t 0.653008025 -Hs 91 -Hd -1 -Ni 91 -Nx 70.38 -Ny 43.97 -Nz 0.00 -Ne 
49.965912 -Nl MAC -Nw --- -Ma 0 -Md  -Ms d -Mt 0 
s -t 0.66560 -Hs 8 -Hd -1 -Ni 8 -Nx 9.06 -Ny 64.45 -Nz 0.00 -Ne 49.965263 
-Nl MAC -Nw --- -Ma 0 -Md  -Ms 8 -Mt 0 



I can understand what is the first symbols, s (sent), d (drop), r(received), 
but i don't know what meaning the N.

N -t 0.000320 -n 40 -e 49.59



can some body help me with this??

Thankyou


  



[ns] Modify the struct hdr_lrwpan

2008-07-28 Thread Douglas Restrepo

Hello

Im trying to send some data since the phy layer until the upper layers. I want 
to add a value in the psdu (packet) to take it in my routing protocol.

My question is: is there some problem if I add some fields to the hdr_lrwpan 
(p802_15_4pkt.h) struct? this field will modify the size of the struct;  will 
there be problems in the packet's transmission to the upper layers?

TK.



  ¿No te gusta tu dirección de correo?
Consigue una que te guste de verdad - millones de direcciones de correo 
disponibles en Yahoo!
http://es.docs.yahoo.com/mail/nueva_direccion.html



[ns] tiene el ns2 el 802.15.4 incluido???

2008-06-26 Thread Douglas Restrepo

Hola a todos.

Tengo una inquietud con respecto al simulador, y es...

ahora estoy trabajando con simulador ns2, y he instalado un paquete que 
descargue desde la pagina http://ees2cy.engr.ccny.cuny.edu/zheng/pub/ , que al 
parecer es para trabajar con 802.15.4.

lo que no se, es si el simulador como tal (o en sus ultimas versiones) tiene el 
802.15.4 incluido, o de hecho el paquete que he descargado es la unica forma de 
gastar el 802.15.4?



Gracias por su colaboracion.


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.




[ns] what happen with this error...

2008-06-19 Thread Douglas Restrepo

Dear all

Excuse me for my questions, but i'm going crazy trying to install my new 
protocol. i have read the nsrt-howto.pdf. and when I install it. and put make 
in the console i get

...
 diffusion3/ns/diffagent.o diffusion3/ns/diffrtg.o diffusion3/ns/difftimer.o 
diffusion3/filter_core/filter_core.o diffusion3/filter_core/iolog.o 
diffusion3/filter_core/iostats.o diffusion3/lib/main/attrs.o 
diffusion3/lib/main/events.o diffusion3/lib/main/iodev.o 
diffusion3/lib/main/iohook.o diffusion3/lib/main/timers.o 
diffusion3/lib/main/message.o diffusion3/lib/main/tools.o 
diffusion3/apps/gear_examples/gear_common.o 
diffusion3/apps/gear_examples/gear_receiver.o 
diffusion3/apps/gear_examples/gear_sender.o 
diffusion3/apps/rmst_examples/rmst_sink.o 
diffusion3/apps/rmst_examples/rmst_source.o 
diffusion3/apps/ping/1pp_ping_sender.o diffusion3/apps/ping/1pp_ping_receiver.o 
diffusion3/apps/ping/2pp_ping_sender.o diffusion3/apps/ping/2pp_ping_receiver.o 
diffusion3/apps/ping/ping_common.o diffusion3/apps/ping/push_receiver.o 
diffusion3/apps/ping/push_sender.o diffusion3/filters/gear/gear_attr.o 
diffusion3/filters/gear/gear.o
 diffusion3/filters/gear/gear_tools.o diffusion3/filters/misc/log.o 
diffusion3/filters/misc/srcrt.o diffusion3/filters/misc/tag.o 
diffusion3/filters/rmst/rmst.o diffusion3/filters/rmst/rmst_filter.o 
delaybox/delaybox.o packmime/packmime_HTTP.o packmime/packmime_HTTP_rng.o 
packmime/packmime_OL.o packmime/packmime_OL_ranvar.o packmime/packmime_ranvar.o 
gen/version.o gen/ns_tcl.o gen/ptypes.o  common/win32.o \
emulate/net-ip.o emulate/net.o emulate/tap.o emulate/ether.o 
emulate/internet.o emulate/ping_responder.o emulate/arp.o emulate/icmp.o 
emulate/net-pcap.o emulate/nat.o emulate/iptap.o emulate/tcptap.o 
emulate/inet.o  -L/root/ns/ns-allinone-2.31/tclcl-1.19 -ltclcl 
-L/root/ns/ns-allinone-2.31/otcl-1.13 -lotcl -L/root/ns/ns-allinone-2.31/lib 
-ltk8.4 -L/root/ns/ns-allinone-2.31/lib -ltcl8.4 -lnsl -lpcap -ldl -lm -lm
for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec 
indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr 
indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done
make[1]: Entering directory 
`/root/ns/ns-allinone-2.31/ns-2.31/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/root/ns/ns-allinone-2.31/ns-2.31/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory 
`/root/ns/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/root/ns/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/dec'
make[1]: Entering directory 
`/root/ns/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/root/ns/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/epa'
make[1]: Entering directory 
`/root/ns/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/root/ns/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory 
`/root/ns/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/root/ns/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/ucb'
admin:~/ns/ns-allinone-2.31/ns-2.31 #

later when I try to compile some tcl file, i get this error

[code omitted because of length]
: invalid command name Simulador
while executing
Simulador instproc create-MYPROTO-agent { node } {#
set ragent [new Agent/MYPROTO [$node node-addr]]   #
$self at 0.0 $ragent start#
$node set ragen...
manotas:~/ns/ns-allinone-2.31/ns-2.31 #



and i have reviewed my code, and is ok. but I don't know what refer this error.


thanks, thanks again.



  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.



[ns] how to use/install a new protocol???

2008-06-17 Thread Douglas Restrepo

hello

as i said previously, i am working in a new protocol (made in C) and now i want 
to install this protocol over ns to make a call in this way

set val(rp)aodv

i have copied my files in the ns directory but when i compile some tcl file i 
have a lot of error,

i must to compile some additional code or i only have to copy my cc and h files 
to the ns directory???


because when i put 

set val(rp) my_protocol

i get a lot of mistakes, it is just like to usesset val(rp) x (where x 
is  any  word) 


i think that i don't have my protocol linked with the ns.

What i have to do?

Thanks

--

hola

estoy trabajando en un nuevo protocolo, y ahora quiero instalarlo en ns para 
poder llamarlo desde mis archivos en la forma

set val(rp)aodv

tengo que compilar algun codigo adicional o solo tengo que copiar los archivos 
cc y h al directorio ns???

cuando declaro

set val(rp) my_protocol

obtengo muchos errores, es como si declarara set val(rp) x (donde x es 
cualquier palabra)

tengo que enlazar mi protocolo con el ns2???

que tengo que hacer?

Gracias


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.



[ns] Rv: PLEASE: ... help with compilation

2008-06-11 Thread Douglas Restrepo



- Mensaje reenviado 
De: Douglas Restrepo [EMAIL PROTECTED]
Para: ns ns-users@isi.edu
Enviado: miércoles, 11 de junio, 2008 19:16:08
Asunto: PLEASE: ... help with compilation

Dear all.

I am trying to compile my code but always get this error.

###
num_nodes is set 101

(_o14 cmd line 1)
invoked from within
_o14 cmd addr
invoked from within
catch $self cmd $args ret
invoked from within
if [catch $self cmd $args ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error error when calling class $cls: $args $...
(procedure _o14 line 2)
(SplitObject unknown line 2)
invoked from within
_o14 addr
(eval body line 1)
invoked from within
eval $node addr $args
(default arm line 2)
invoked from within
switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 $node start-dsr
}
AODV {
set ragent [$self cre...
(procedure _o3 line 11)
(Simulator create-wireless-node line 11)
invoked from within
_o3 create-wireless-node
(eval body line 1)
invoked from within
eval $self create-wireless-node $args
(procedure _o3 line 23)
(Simulator node line 23)
invoked from within
$ns_ node
(for body line 2)
invoked from within
for {set i 0} {$i  $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0  ;# disable random motion
}
(file simulacion.tcl line 129)
###

this is the code what i have in the line 129

# Node creation
129: for {set i 0} {$i  $val(nn) } {incr i} {
130:set node_($i) [$ns_ node]
131:$node_($i) random-motion 0;# disable random motion
132: }


this always refer to me at the line 129, but i don't know why?

Somebody has idea about this kind of error?


i hope yours can help me.

Thankyou



  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.



[ns] how to call function PD_DATA_indication

2008-06-06 Thread Douglas Restrepo

Hello

I am trying to call the function PD_DATA_indication (void 
Phy802_15_4::PD_DATA_indication(UINT_8 psduLength,Packet *psdu,UINT_8 
ppduLinkQuality)) 

which is in the file p802_15_4phy.cc, to get the ppduLinkQuality value.


can anyone tell me how to call this function since mi tcl code and my c code?

is the same call the value ppduLinkQuality that wph-ppduLinkQuality?




thanks everyone, tk


PD: sorry for this questions, but this simulator in tcl is new for me.



  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.



[ns] it's possible to get lqi???

2008-05-28 Thread Douglas Restrepo

Hello...

I'm working in a new protocol (i'm using ns 2.31, and 802.15.4). But i need to 
know/get the value of LQI. When i'm parsing the traces files i can see the 
packets dropped for LQI. for example

D 40.185642829 _21_ MAC  LQI 0 AODV 55 [0  1d 800] --- [29:255 
-1:255 20 0] [0x2 11 6 [45 15] [67 16]] (REQUEST)
D 40.185642829 _17_ MAC  LQI 0 AODV 55 [0  1d 800] --- [29:255 
-1:255 20 0] [0x2 11 6 [45 15] [67 16]] (REQUEST)
D 40.185642829 _45_ MAC  LQI 0 AODV 55 [0  1d 800] --- [29:255 
-1:255 20 0] [0x2 11 6 [45 15] [67 16]] (REQUEST)
D 40.185876330 _13_ MAC  LQI 0 AODV 55 [0  21 800] --- [33:255 
-1:255 20 0] [0x2 11 6 [45 15] [67 16]] (REQUEST)
D 40.185876330 _53_ MAC  LQI 0 AODV 55 [0  21 800] --- [33:255 
-1:255 20 0] [0x2 11 6 [45 15] [67 16]] (REQUEST)

but i need to know this value since my code simulation.

Is possible do it? how?

thanks for your help.


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.



[ns] Get Link Quality Detection - LQD

2008-05-27 Thread Douglas Restrepo

Hi all

I am working in a new protocol (over 802.15.4), this is made in c++; now, i'm 
an trying to get LQD since my code but i don't know how can i get this value?

can somebody tell me anything about this?

thank's for your help.

;-)

PD:  i'm working with ns-2.31


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.