[ns] measuring battery power
hi ns-users, how can i measure the remaining battery power of a mobile node? meeta
[ns] what is invalid command PLevels and how to install semi package
*hello friends, i want to simulate various wireless scenario, i m using semipackage ns-afedcf i don't know how to install it in ns-2.31.here some lines of tcl script main.tcl of package to access different wireless scenario:* # Set defaults; its important to set defaults before parsing # command line arguments, so that defaults can be overridden set modeDCF;# mode for this test DCF/PCF set pcf_period0;# CFP period for pcf mode set pcf_duration0;# CFP duration for pcf mode set endtime15.0;# duration of the simulation set title_snenario-test;# default title for the scenario set idea_mac0;# default cleverness of mac ;# 0 - normal ;# 1 - persistent slotting ;# 0 - PDCF set val(chan)Channel/WirelessChannel;# Channel Type set val(prop)Propagation/TwoRayGround;# radio-propagation model set val(netif)Phy/WirelessPhy;# network interface type set val(mac)Mac/802_11;# MAC type set val(ifq)Queue/DropTail/PriQueue;# interface queue type set val(ll)LL;# link layer type set val(ant)Antenna/OmniAntenna;# antenna model set val(ifqlen)50;# max packet in ifq set val(rp)DSDV;# set val(x)50 set val(y)50 Phy/WirelessPhy set CPThresh_2000 Phy/WirelessPhy set per_0.0 Mac/802_11 set bandwidth_36Mb PLevels set max_plevels_8 PLevels set plevels_8 MAC_MIB set RTSThreshold_3000 MAC_MIB set ShortRetryLimit_7 MAC_MIB set LongRetryLimit_4 PHY_MIB set MinimumBandwidth_6Mb PHY_MIB set SlotTime_0.09 PHY_MIB set SIFS_0.16 PHY_MIB set PreambleLength_ 20 ;#20us PHY_MIB set PLCPHeaderLength_ 4;#4us PHY_MIB set CCATime_ 3 ;#4us PHY_MIB set RxTxTurnaroundTime_ 1 ;#1us PHY_MIB set CWMin_031 PHY_MIB set CWMax_01023 PHY_MIB set CWMin_131 PHY_MIB set CWMax_11023 PHY_MIB set CWMin_215 PHY_MIB set CWMax_231 PHY_MIB set CWMin_37 PHY_MIB set CWMax_315 PHY_MIB set CWMin_40 PHY_MIB set CWMax_40 PHY_MIB set CWMin_50 PHY_MIB set CWMax_50 PHY_MIB set CWMin_60 PHY_MIB set CWMax_60 PHY_MIB set CWMin_70 PHY_MIB set CWMax_70 PHY_MIB set Aifsn_02 PHY_MIB set Aifsn_11 PHY_MIB set Aifsn_21 PHY_MIB set Aifsn_31 PHY_MIB set Aifsn_40 PHY_MIB set Aifsn_50 PHY_MIB set Aifsn_60 PHY_MIB set Aifsn_70 PHY_MIB set BackoffThresh_0 1 ;# 1 enable the dynamic threshold for priority 0, 0 disable PHY_MIB set BackoffThresh_1 1 ;# 1 enable the dynamic threshold for priority 1, 0 disable PHY_MIB set BackoffThresh_2 1 ;# 1 enable the dynamic threshold for priority 2, 0 disable PHY_MIB set BackoffThresh_3 1 ;# 1 enable the dynamic threshold for priority 3, 0 disable PHY_MIB set BackoffThresh_4 1 ;# 1 enable the dynamic threshold for priority 4, 0 disable PHY_MIB set BackoffThresh_5 1 ;# 1 enable the dynamic threshold for priority 5, 0 disable PHY_MIB set BackoffThresh_6 1 ;# 1 enable the dynamic threshold for priority 6, 0 disable PHY_MIB set BackoffThresh_7 1 ;# 1 enable the dynamic threshold for priority 7, 0 disable #PHY_MOB set CWPFactor_02;# 1 for linear, 2 default (binary exponential) # ### # Usage if {$argc 1} { puts stderr usage: ns $argv0 scenario \[list of options\] puts stderroptions: puts stderr varName=varValue puts stderr vectorName=value0,value1,value2... puts stderroption example: puts stderr num_nodes=15 exit 1; } ### # Load up the scenario; allow it to override the above defaults set scenario [lindex $argv 0] set num_nodes [lindex $argv 1] set random_num [lindex $argv 2] puts % set scenario $scenario puts Running scenario $scenario puts num_nodes $num_nodes source $scenario-scenario.tcl ### # Parse remaining command line arguments to override any defaults ### # Setup other vars puts Creating $num_nodes nodes # cookie appended to scenario name for filenames that are created if {[info exists cookie]} { set
Re: [ns] example simulation static wireless
ok, don't occurs the error, but to serves this line? $ns_ initial_node_pos $node_($i) 20 thanks very much 2009/4/16 Mark Kosinski kosins...@ainfosec.com: Hello, You're missing one line of code. To make this work you need to add the following line to your for loop. $ns_ initial_node_pos $node_($i) 20 The above line of code is to be the last line of code in the for loop you have shown here in your email. Sincerely, Mark -Original Message- From: ns-users-boun...@isi.edu [mailto:ns-users-boun...@isi.edu] On Behalf Of Gisane Michelon Sent: Thursday, April 16, 2009 9:35 AM To: Luís Barreto; ns-users@ISI.EDU Subject: Re: [ns] example simulation static wireless I already tryed but haven't. I am try to make, however occurs the following error: node 1 not definded... node 2 not defined...node 3 not defined... my function that define nodes is: for {set i 0} {$i $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } and position initial modilenodes is: $node_(0) set X_ 5.0 $node_(0) set Y_ 2.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 490.0 $node_(1) set Y_ 285.0 $node_(1) set Z_ 0.0 $node_(2) set X_ 150.0 $node_(2) set Y_ 240.0 $node_(2) set Z_ 0.0 $node_(3) set X_ 105.0 $node_(3) set Y_ 210.0 $node_(3) set Z_ 0.0 Need something more to define node statics? thanks 2009/4/16 Luís Barreto lmcbarr...@gmail.com: HI, You can find one in the ns directory, in ns-xxx/tcl/ex! Where xxx is the version! Regards, Luís On Thu, Apr 16, 2009 at 2:02 PM, Gisane Michelon gisan...@gmail.com wrote: Somedoby has um simple example of simulation static wireless network ? Already tried very but didn't find. Ane
[ns] wireless sensor network emulator
Hi all, I'm a master degree student looking for an emulator for wireless sensor network than can collaborates with ns2 anyone can guide me to one? Thanks in advance -- Regards, Sahar Mostafa
Re: [ns] example simulation static wireless
This is just for defining node size in nam visualization! Luís On Fri, Apr 17, 2009 at 1:18 PM, Gisane Michelon gisan...@gmail.com wrote: ok, don't occurs the error, but to serves this line? $ns_ initial_node_pos $node_($i) 20 thanks very much 2009/4/16 Mark Kosinski kosins...@ainfosec.com: Hello, You're missing one line of code. To make this work you need to add the following line to your for loop. $ns_ initial_node_pos $node_($i) 20 The above line of code is to be the last line of code in the for loop you have shown here in your email. Sincerely, Mark -Original Message- From: ns-users-boun...@isi.edu [mailto:ns-users-boun...@isi.edu] On Behalf Of Gisane Michelon Sent: Thursday, April 16, 2009 9:35 AM To: Luís Barreto; ns-users@ISI.EDU Subject: Re: [ns] example simulation static wireless I already tryed but haven't. I am try to make, however occurs the following error: node 1 not definded... node 2 not defined...node 3 not defined... my function that define nodes is: for {set i 0} {$i $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } and position initial modilenodes is: $node_(0) set X_ 5.0 $node_(0) set Y_ 2.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 490.0 $node_(1) set Y_ 285.0 $node_(1) set Z_ 0.0 $node_(2) set X_ 150.0 $node_(2) set Y_ 240.0 $node_(2) set Z_ 0.0 $node_(3) set X_ 105.0 $node_(3) set Y_ 210.0 $node_(3) set Z_ 0.0 Need something more to define node statics? thanks 2009/4/16 Luís Barreto lmcbarr...@gmail.com: HI, You can find one in the ns directory, in ns-xxx/tcl/ex! Where xxx is the version! Regards, Luís On Thu, Apr 16, 2009 at 2:02 PM, Gisane Michelon gisan...@gmail.com wrote: Somedoby has um simple example of simulation static wireless network ? Already tried very but didn't find. Ane
[ns] Getting different throughput with different CBR interval?
Does anyone know why I am getting different throughput when I set the CBR interval to different values? For example, if I set $cbr set interval_ 0.001 $cbr set interval_ 0.01 $cbr set interval_ 0.1 I get different throughputs. Anyone has an idea why?
[ns] code for existing protocols
hi ns-users, I am trying to evaluate the performance of various MANET clustering protocols. where can i get the code for long existing protocols like lowest-ID, highest-degree etc? do i need to hand code these protocols? meeta
[ns] Help please (convert one pixel equal in meter)
Hi expert...i am a new user in network simulator 2 I need a help I read a tutorial from marc Greis tutorial topology of 500 x 500 is equal to 500 m X 500 m... I just want to ask one pixel=?? Meter in network simulator .. Thankyou for your attention Anka
[ns] recuperating the remaining energy from the cc file:help me please
Hi all, Can you tell me please what should I write in cc file in order to recuperate the remaining energy of a node , I tried a lot of methods but all of them give me compilation error. please help me. Thank you.