[ns] Simulating RSSI in ns-2

2011-05-16 Thread Alexandra

Hello!


I need to test a localization algorithm for wifi networks that uses RSSI
readings for ranging. Is there a way I can do this with ns-2? I have RSSI in
field measurements for a small number of nodes and I would like to test my
algorithm on a scenario that has a more considerable number of nodes.
Is there a way I can accomplish this with ns-2? Does it offer simulated RSSI
values?

Many thanks!


[ns] simulating a new protocol similar to AODV

2006-06-22 Thread Alexandra Cioroianu

Hello ns-users!
 As i have read in the mailing list 2 days ago, Xinhao Yu has made a new 
protocol , a clone of AODV. I have tried to do the same, as i'm trying to make 
a new protocol, a bit different from an existing one. I have compiled my 
sources after making the changes descrobed in the tutorial and at the end of 
the output i get the messages:
 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 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen-gen/setdest'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen-gen/setdest'
 make[1]: Entering directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/dec'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/dec'
 make[1]: Entering directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/epa'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/epa'
 make[1]: Entering directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/nlanr'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/nlanr'
 make[1]: Entering directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/ucb'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/ucb'
  Could this be some sort of error or warning?I see no error here.  Is there 
anything else to be done? 
 After compiling, i have tried to make a simulation with this new protocol, but 
i get this error:
 ns:
 [code omitted because of length]
 : invalid command name Agent/MYPROTO
 while executing
 Agent/MYPROTO instproc init args {
 
 $self next $args
 }
 
 Please, explain me what is wrong! I need an answer as soon as possible. I must 
make it work! Sorry for all the bothering.
 Regards, ALexandra
 


Alexandra Cioroianu


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.


[ns] error when simulating a new MANET protocol

2006-06-16 Thread Alexandra Cioroianu

Hello ns users!
 I have managed to compile the sources for a new MANET protocol; the 
compilation seems successful, but there are some specifications(not errors):
 make[1]: Entering directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen-gen/setdest'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen-gen/setdest'
 make[1]: Entering directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/dec'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/dec'
 make[1]: Entering directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/epa'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/epa'
 make[1]: Entering directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/nlanr'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/nlanr'
 make[1]: Entering directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/ucb'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory 
`/home/alexandra/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/ucb'
 
  I have made a protocol similar to DSDV. The next step is to make simulations 
with this protocol, but i get some errors:
  (_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  0;# disable random motion
 
 set r [$node_(...
 (file 50nodes_myproto_p25.tcl line 135)
 What might be the problem? Please, anyone knows about this? Am i doing 
something wrong? 
 Regards, Alexandra
 


Alexandra Cioroianu


-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.


[ns] how to complete the Makefile for a new protocol?

2006-06-15 Thread Alexandra Cioroianu

Hello ns users!
 I'm working on the implementation of a new routing protocol and i want to 
modify the code for the DSDV protocol. I have made some changes and now i want 
to edit the Makefile by adding the object files inside the OBJ_CC variable. The 
problem is i can't find the OBJ_CC variable i have ns-2.29 on Mandriva. 
 How can i go on wih my work? Please tell me how to edit the Makefile. Any help 
will be apreciated. Thank you in advance!
 Regards, Alexandra
 


Alexandra Cioroianu

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[ns] jitter in a new MANET routing protocol

2006-06-14 Thread Alexandra Cioroianu

Hello everybody!
 I'm working with ns-2.29 on Mandriva 2006 and i'm working on a new protocol 
implementation, following the tutorial Implementing a New Manet Unicast 
Routing Protocol in NS2 by Francisco Ros and Pedro Ruiz. 
 At the paragraph 4.3.5 it shows the implementation of send_protoname_pkt() 
function and it shows how to send a packet introducing some jitter. My question 
is: why do they introduce jitter? Is it absolutely necessary? Could the packet 
be sent without jitter and how? I know that jitter is the variation in time 
between packets ariving. isn't it more efficient to send packets at a 
constant interval?
 Please someone explain this to me, it is VERY IMPORTANT. Thank you in advance!
 Regards, Alexandra
 


Alexandra Cioroianu

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[ns] examples of TORA tcl scripts

2006-05-31 Thread Alexandra Cioroianu

Hello everybody!
 i have written before about the failed TORA simulation, but i haven't found 
any solution for my problem.
 Does anyone have an example of a TORA simulation that works? Please, this is 
essential for my project. Anything would be useful.Thank you in advance!
 Regards, Alexandra
 


Alexandra Cioroianu


-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.


[ns] problem with TORA simulation

2006-05-29 Thread Alexandra Cioroianu

Hello everybody!
 I'm trying to run a simulation using the TORA protocol and I have made the 
necessary changes to the tora.h and tora.cc file. 
  In tora.cc i have added the lines:
  if (strcmp(argv[1], port-dmux) == 0) {
if ((obj = TclObject::lookup(argv[2])) == 0) {
  fprintf(stderr, %s: %s lookup of %s failed\n, __FILE__, argv[1], 
argv[2]);
  return TCL_ERROR;
}
port_dmux_ = (NsObject *) obj;
return TCL_OK;
  }
  in the toraAgent::command(int argc, const char*const* argv) function.
  In the tora.h file, i have added the NsObject * port_dmux_ as a private 
member. But I get the following error:
 (_o17 cmd line 1)
 invoked from within
 _o17 cmd port-dmux _o32
 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 _o17 line 2)
 (SplitObject unknown line 2)
 invoked from within
 $agent port-dmux $dmux_
 (procedure _o14 line 11)
 (Node/MobileNode add-target-rtagent line 11)
 invoked from within
 $self add-target-rtagent $agent $port
 (procedure _o14 line 23)
 (Node/MobileNode add-target line 23)
 invoked from within
 $self add-target $agent $port
 (procedure _o14 line 15)
 (Node attach line 15)
 invoked from within
 $node attach $ragent [Node set rtagent_port_]
 (procedure _o3 line 72)
 (Simulator create-wireless-node line 72)
 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
 
 set r [$node_($...
 (file 50nodes_tora_p0.tcl line 145)
 
  What other modifications should i make? I really hope someone can help me. 
  Thank you in advance!
  Regards. Alexandra


Alexandra Cioroianu


-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.


[ns] failed simulation with TORA protocol

2006-05-22 Thread Alexandra Cioroianu


Hello everybody!
 I'm trying to simulate a 50 nodes wireless scenario using the TORA 
protocol; i have made the same scenario for the other protocols(DSR, DSDV, 
AODV) and it worked. But for the tora script, i get some errors:
 INITIALIZE THE LIST xListHead
 
 (_o17 cmd line 1)
 invoked from within
 _o17 cmd port-dmux _o32
 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 _o17 line 2)
 (SplitObject unknown line 2)
 invoked from within
 $agent port-dmux $dmux_
 (procedure _o14 line 11)
 (Node/MobileNode add-target-rtagent line 11)
 invoked from within
 $self add-target-rtagent $agent $port
 (procedure _o14 line 23)
 (Node/MobileNode add-target line 23)
 invoked from within
 $self add-target $agent $port
 (procedure _o14 line 15)
 (Node attach line 15)
 invoked from within
 $node attach $ragent [Node set rtagent_port_]
 (procedure _o3 line 72)
 (Simulator create-wireless-node line 72)
 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
 
 set r [$node_($...
 (file 50nodes_tora_p0.tcl line 144)
  
 Can anyone help me about this problem? Are there special settings i 
must do for the TORA tcl script? Or can anyone provide me some example 
scripts with this protocol? Any help will be appreciated! Thank you in 
advance.
 Regards, Alexandra
 


Alexandra Cioroianu


-
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.


Re: [ns] Usual Mistake

2006-05-04 Thread Alexandra Cioroianu

Hello Hamid!
 I think the first expression would be correct if $bw1 was expressed in bits, 
not octets(8 bits/8=1 Byte, not 8 bits*8=1 byte). But since the packets' sizes 
are measured in bytes(octets), i think that 8 is not necessary anymore, the 
measuring unit will result in MBps without multipying with 8.
 Regards, Alexandra

hamid reza [EMAIL PROTECTED] wrote: 
Hi All,
Most  people used below instruction for calculating a
bandwidth 
#Calculate the bandwidth (in MBit/s) and write it to
the files
puts $grfd $now [expr $bw1/$time*8/1024/1024] [expr
$bw2/$time*8/1024/1024] [expr $bw3/$time*8/1024/1024]

But I Think The Correct one is :
#Calculate the bandwidth (in MBit/s) and write it to
the files
puts $grfd $now [expr $bw1*8/$time/1024/1024] [expr
$bw2/$time*8/1024/1024] [expr $bw3/$time*8/1024/1024]

I did this on ns
set  x 5;
set  y 2;
puts   [expr $x/$y*8/2/2];
output :4
but
set  x 5;
set  y 2;
puts   [expr $x*8/$y/2/2];
output: 5

Whay is your ideas?

Best Regards
Hamid Reza


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.


[ns] wireless scenarios with 50 nodes

2006-05-02 Thread Alexandra Cioroianu

Hello everybody!
 I'm trying to simulate a 50 nodes wireless scenario using each of the AODV, 
DSDV and DSR protocols, on the same scenario. I need to simulate the same 
scenario using 25, 30 and 40 sources among the 50 nodes. After each simulation 
i should plot the throughput, delay and packet delivery ratio with xgraph. 
Concerning this situation, i have 2 questions:
 1)How can i change the number of sources(as i told before, i work on the same 
wireless configuration)? Do i have to change them manually in the tcl script 
and then rerun it or is there a simpler way, with the grep command or 
something similar?
 2)After running the simulation, from the information in the .tr files i should 
plot with xgraph. From the configuration i have now, with 25 sources, i get too 
many trace files... and i have to plot throughput(for example) for the 
whole configuration GLOBALLY, not for each pair souce node-destination node. 
How can i do this?
 
 I hope the description of my situation is clear enough. Please tell me how can 
i solve these problems? If someone can help me with any explanation or example 
or any link for examples, i would appreciate it very much.
 Thank you in advance!
 Alexandra
 
 

-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1cent;/min.


[ns] tracing a 50 nodes aodv simulation

2006-04-17 Thread Alexandra Cioroianu

Hello everybody!
 I have forgotten to attach the tcl script at my email 2 days ago.If someone 
knows about this  problem (graphical representation of the bandwidth, delay, 
packet delivery ratio, traffic with xgraph) please help me.Any help will be 
appreciated.
 Regards, Alexandra



Alexandra Cioroianu


-
Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just 2¢/min 
with Yahoo! Messenger with Voice.

[ns] tracing a 50 nodes aodv simulation

2006-04-15 Thread Alexandra Cioroianu

Hello ns users!
 I'm using ns2.29 and i want to make a simulation of a 50 nodes MANET scenario, 
using AODV as the routing protocol. I want to get an xgraph representation of 
the bandwidth, packet delivery ratio, traffic(number of packets, routing tables 
sent between nodes) and delay. My tcl file is in the aodv directory and i have  
written the finish and record procedures for xgraph, but i get the 
segmentation fault error and i can't figure out what's wrong...
 Here is the attached tcl file. If someone has done something similar or knows 
about this, please tell me what's wrong and how can i fix it. How to analize 
the trace file and get the data that i need? How can i make the graphical 
representation of the packet delivery ratio, traffic and delay?
 Please help!
 Regards, Alexandra


-
Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! 
Messenger with Voice.

[ns] question about wireless-dsdv-newnode.tcl

2006-04-11 Thread Alexandra Cioroianu

Hello ns users!
 I am using ns 2.29 on Mandriva 2006 and i'm trying to run a simulation with 50 
nodes using the DSDV routing protocol, in order to obtain a graphic 
representation of the parameteres. I have begun with the 
wireless-dsdv-newnode.tcl script in the ns-allinone-2.29/ns-2.29/tcl/ex 
directory. I have copied the script in the ns-2.29/tcl/mobility directory, 
because the tcl script uses a file from the mobility directory.When i try to 
run the script, a get the error message:
 num_nodes is set 50
 
 (_o16 cmd line 1)
 invoked from within
 _o16 cmd random-motion 0
 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 _o16 line 2)
 (SplitObject unknown line 2)
 invoked from within
 $node_($i) random-motion 0 
 invoked from within
 if { [string compare $opt(rp) dsr] == 0} {
 for {set i 0} {$i  $opt(nn) } {incr i} {
 dsr-create-mobile-node $i
 }
 } elseif { [string compare $op...
 (file wireless-dsdv-newnode.tcl line 176)
 
 Anybody can help me solve the problem? 
 And another question related to this script:assuming i'll run the script and 
get the trace file, how can i use the data in the trace file to get a graphical 
representation of the packet delivery ratio and other parameters, using xgraph?
 Any sugestion would help me very much...please give me a hint.
 Thank you in advance!
 Alexandra
 

-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.


[ns] a comparison between the wireless routing protocols

2006-04-03 Thread Alexandra Cioroianu

Hello ns users!
 I,m working with ns 2.29 in Mandriva 2006 and i need to make a comparison 
between the  existing wireless routing protocols(DSDV, AODV, DSR...). I thought 
about creating Xgraph files that would show the traffic, delay, speed...,but i 
don't know what topologies to use to be relevant. Shall i start with the 
examples in the tutorial?
 Has anyone made this before or anyone knows some steps to be followed? Any 
ideas, sugestions would help me.
 Thank you in advance!
 Regards, Alexandra
 

-
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.


[ns] error reading file cbr-3-test

2006-03-30 Thread Alexandra Cioroianu

Hello everybody!
 I am having a problem trying to run wireless1.tcl and i get this error message:
 couldn't read file ../mobility/scene/cbr-3-test: no such file or directory
 while executing
 source.orig ../mobility/scene/cbr-3-test
 (uplevel body line 1)
 invoked from within
 uplevel source.orig [list $fileName]
 invoked from within
 if [$instance_ is_http_url $fileName] {
 set buffer [$instance_ read_url $fileName]
 uplevel eval $buffer
 } else {
 uplevel source.orig [list $fileName]
 ...
 (procedure source line 8)
 invoked from within
 source $val(cp)
 (file wireless1.tcl line 121)
  
 What is the problem with cbr-3-test file?
 What changes do i need to make to the tcl file?
 If someone knows about this,please tell me.Thank you in advance.
 Regards, Alexandra
 


Alexandra Cioroianu


-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.


[ns] how can i run a wireless simulation?

2006-03-27 Thread Alexandra Cioroianu


Hello ns users!
 I have ns-2.29 on Mandriva 2006. I am trying to run the first wireless 
script from Marc Greis' tutorial. This is what is written in the 
tutorial:
  At the end of the simulation run, trace-output file simple.tr is 
created. As we have turned on the AgentTrace and RouterTrace we see DSDV 
routing messages and TCP pkts being received and sent by Router and Agent 
objects in node _0_ and _1_.
 
 As i have seen from the first simulations,i am supposed to see the 
modeled topology in nam.Is this true about wireless simulations?I 
understood that the file simple.tr is the result of running the script,but 
how can i see the topology,the packets etc in nam? 
 I want to make a comparison between the existing protocols,but i need 
some xgraph files in order to compare the performance of the 
protocols(when i say comparison, i mean from the point of view of the overhead, 
speed, packet drop...).How can i do that?
 Thank you in advance!
 Regards, Alexandra
 

-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.


[ns] Problem running wireless script

2006-03-26 Thread Alexandra Cioroianu

Hello everybody!
 I am trying to run the first wireless script, simple-wireless.tcl and i get a 
starnge error,ahich i can't solve.Here is the output:
 num_nodes is set 2
 invalid command name -topoInstance
 while executing
 -topoInstance $topo \ 
 (file simple-wireless1.tcl line 97)
 
 Anybody knows how this can be solved?Please, i need a quick answer.It's quite 
urgent,i need this for my graduation project.
 Regards, Alexandra
 

-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.


[ns] problems running the simple-wireless.tcl script

2006-03-21 Thread Alexandra Cioroianu

Hello ns users!
 I have downloaded the script simple-wireless.tcl but i have problems running 
it. When i type  ns simple-wireless.tcl,i get the next message:
 num_nodes is set 2
 invalid command name -topoInstance
 while executing
 -topoInstance $topo \
  -agentTrace ON \
  -routerTrace ON \
  -macTrace OFF \
  -movementTrace OFF 
 (file simple-wireless.tcl line 89)
 
 I have made the changes that David Lefuste told  someone  to do in this  
script(i remember  that somebody  asked a similar question about this script 
few days ago),but i still have this problem.
 Please,i need a quick answer,as fast as possible.Thank you in advance!
 Regards, Alexandra
 

-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze.