[ns] power measurement simulation
Hello Can you tell me please in which NS2.33 sample, I can test the power measurement because I need this factor so much in my simulations. Thank you for your help.
[ns] problem when adding a new routing protocol to NS2:please help
Hi all. I added a new routing protocol to NS2. I made the appropriate changes to tcl/lib/ns-default.tcl, ns-packet.tcl,ns-lib.tcl , common/paquet.h, queue/priqueue.cc and trace:cmu-trace.h and .cc .i recompiled ns2 and I had an error free compilation. I wanted to test my protocol: I changed in wireless.tcl "set opt(rp) dsr" by "set opt(rp) newprotocolname" but when I wrote ns wireless.tcl I had this : num_nodes is set 50 Loading connection pattern... can't read "node_(1)": no such variable while executing "$ns_ attach-agent $node_(1) $udp_(0)" (file "../mobility/scene/cbr-50-10-4-512" line 8) invoked from within "source.orig ../mobility/scene/cbr-50-10-4-512" ("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 $opt(cp)" invoked from within "if { $opt(cp) == "" } { puts "*** NOTE: no connection pattern specified." set opt(cp) "none" } else { puts "Loading connection pattern..." ..." (file "wireless.tcl" line 257) So please if anyone has an idea about this error , help me. I don't know if I should add a file in mobility or what should I do exactly. help me please.
[ns] a problem when compiling protoname sample
Hi all, I fallowed all the steps mentioned in nsrt-howto .pdf "Implementing a New Manet Unicast Routing Protocol in NS2" but when I recompile ns2 I have compilation errors so please if someone has compiled successfully protoname sample , send it to me or tell me how can I correct my errors.thank you for your help. ./protoname/protoname.h: At global scope: ./protoname/protoname.h:34: erreur: «protoname_state» does not name a type ./protoname/protoname.h:35: erreur: «protoname_rtable» does not name a type ./protoname/protoname.h:46: erreur: ISO C++ forbids declaration of «protoname_state» with no type ./protoname/protoname.h:46: erreur: «protoname_state» declared as an «inline» field ./protoname/protoname.h:46: erreur: expected «;» before «&» token ./protoname/protoname.h:47: erreur: expected `;' before «inline» ./protoname/protoname.h: In member function «int& Protoname::accessible_var()»: ./protoname/protoname.h:47: erreur: «accessible_var_» was not declared in this scope protoname/protoname.cc: At global scope: protoname/protoname.cc:7: erreur: «protoname_pkt» has not been declared protoname/protoname.cc: In constructor «Protoname::Protoname(nsaddr_t)»: protoname/protoname.cc:29: erreur: «accessible_var_» was not declared in this scope protoname/protoname.cc: In member function «virtual int Protoname::command(int, const char* const*)»: protoname/protoname.cc:45: erreur: «rtable_» was not declared in this scope protoname/protoname.cc: In member function «void Protoname::recv_protoname_pkt(Packet*)»:
[ns] protoname compilation succeeded but!
Hi ns-users I'm facing a strange problem when adding a new routing protocol:protoname or any other new routing protocol:I have compiled successfully my ns2 after adding the new protocol . but when I wanted to test it,for example I changed in simple-wireless.tcl "set val(rp) DSDV" by "set val(rp) Protoname" when I tape ns simple-wireless.tcl I have the message below; so please please if anyone has faced my problem and succeded to solve it, or if anyone has an idea on how to fix this problem, help me because I tried a lot of times to solve this problem but I couldn't.Thank you. num_nodes is set 2 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl (_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 14) (Simulator create-wireless-node line 14) 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 "simple-wireless.tcl" line 93)
[ns] passing parmeters from .tcl files to .cc
Hi all As you know, in the implementation of routing protocols, for example in aodv we have "AODV::AODV(nsaddr_t id) "; so I want to create a .tcl file in which I have nodes , and each node has an identifier that will be passed as the nsaddr_t id (the argument of AODV) how can I do this please? thank you for your help.
[ns] problem in energy consumption model
Hi I wanted to compare the energy consumption of different routing protocols , so I used this .tcl file and in each time I modify the name of the protocol, aodv, dsdv... But this .tcl file generates the same trace file independently of the routing protocol.can you tell me how can I correct this? help me please. ### set opt(chan) Channel/WirelessChannel set opt(prop) Propagation/TwoRayGround set opt(netif) Phy/WirelessPhy #set opt(mac) Mac/802_11 ;# MAC type set opt(mac) Mac/802_11 ;# MAC type set opt(ifq) Queue/DropTail/PriQueue set opt(ll) LL set opt(ant) Antenna/OmniAntenna set opt(x) 800 ;# X dimension of the topography set opt(y) 800 ;# Y dimension of the topography set opt(cp) "../mobility/scene/cbr-50-10-4-512" set opt(sc) "../mobility/scene/scen-670x670-50-600-20-0" set opt(ifqlen) 50 ;# max packet in ifq set opt(nn) 50 ;# number of nodes set opt(seed) 0.0 set opt(stop) 700.0 ;# simulation time set opt(tr) MyTest.tr ;# trace file set opt(nam) MyTest.nam ;# animation file set opt(rp) DumbAgent ;# routing protocol script set opt(lm) "off" ;# log movement set opt(agent) Agent/DSDV set opt(energymodel) EnergyModel ; #set opt(energymodel) RadioModel ; set opt(radiomodel) RadioModel ; set opt(initialenergy) 1000 ;# Initial energy in Joules #set opt(logenergy) "on" ;# log energy every 150 seconds Mac/SMAC set syncFlag_ 1 Mac/SMAC set dutyCycle_ 10 set ns_ [new Simulator] set topo [new Topography] set tracefd [open $opt(tr) w] set namtrace [open $opt(nam) w] set prop [new $opt(prop)] $topo load_flatgrid $opt(x) $opt(y) ns-random 1.0 $ns_ trace-all $tracefd #$ns_ namtrace-all-wireless $namtrace 500 500 # # Create god # create-god $opt(nn) #global node setting $ns_ node-config -adhocRouting DumbAgent \ -llType $opt(ll) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channelType $opt(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace ON \ -energyModel $opt(energymodel) \ -idlePower 1..0 \ -rxPower 1.0 \ -txPower 1.0 \ -sleepPower 0.001 \ -transitionPower 0.2 \ -transitionTime 0.005 \ -initialEnergy $opt(initialenergy) $ns_ set WirelessNewTrace_ ON #set AgentTrace ON #set RouterTrace OFF #set MacTrace ON for {set i 0} {$i < $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } # $node_(1) set agentTrace ON # $node_(1) set macTrace ON # $node_(1) set routerTrace ON # $node_(0) set macTrace ON # $node_(0) set agentTrace ON # $node_(0) set routerTrace ON set udp_(0) [new Agent/UDP] $ns_ attach-agent $node_(0) $udp_(0) set null_(0) [new Agent/Null] $ns_ attach-agent $node_(1) $null_(0) set cbr_(0) [new Application/Traffic/CBR] $cbr_(0) set packetSize_ 512 $cbr_(0) set interval_ 10.0 $cbr_(0) set random_ 1 $cbr_(0) set maxpkts_ 5 $cbr_(0) attach-agent $udp_(0) $ns_ connect $udp_(0) $null_(0) $ns_ at 1.00 "$cbr_(0) start" #$ns_ at 177.000 "$node_(0) set ifqLen" # # Tell all the nodes when the simulation ends # for {set i 0} {$i < $opt(nn) } {incr i} { $ns_ at $opt(stop) "$node_($i) reset"; } $ns_ at $opt(stop) "puts \"NS EXITING...\" ; $ns_ halt" set b [$node_(0) set mac_(0)] #set c [$b set freq_] set d [Mac/SMAC set syncFlag_] #set e [$node_(0) set netif_(0)] #set c [$e set L_] set c [Mac/SMAC set dutyCycle_] #puts $tracefd "M 0.0 nn $opt(nn) x $opt(x) y $opt(y) rp $opt(rp)" #puts $tracefd "M 0.0 sc $opt(sc) cp $opt(cp) seed $opt(seed)" #puts $tracefd "M 0.0 prop $opt(prop) ant $opt(ant)" #puts $tracefd "V $b : $c : $d :" puts "Starting Simulation..." $ns_ run ##
[ns] how can I measure energy consumption:please help
Hello Please tell me how can I measure the energy consumption? I downloaded tcl samples from the internet like the tcl file below but when I change the name of routing protocol I have always the same trace file which means the same energy measurement for all the routing protocols which is illogical ! Please help me ,tell me why I have the same values ?or if you have a tcl file to measure energy , send it please to me. I'm waiting for replies. Thanks. ### set opt(chan) Channel/WirelessChannel set opt(prop) Propagation/TwoRayGround set opt(netif) Phy/WirelessPhy #set opt(mac) Mac/802_11 ;# MAC type set opt(mac) Mac/802_11 ;# MAC type set opt(ifq) Queue/DropTail/PriQueue set opt(ll) LL set opt(ant) Antenna/OmniAntenna set opt(x) 800 ;# X dimension of the topography set opt(y) 800 ;# Y dimension of the topography set opt(cp) "../mobility/scene/cbr-50-10-4-512" set opt(sc) "../mobility/scene/scen-670x670-50-600-20-0" set opt(ifqlen) 50 ;# max packet in ifq set opt(nn) 50 ;# number of nodes set opt(seed) 0.0 set opt(stop) 700.0 ;# simulation time set opt(tr) MyTest.tr ;# trace file set opt(nam) MyTest.nam ;# animation file set opt(rp) DumbAgent ;# routing protocol script set opt(lm) "off" ;# log movement set opt(agent) Agent/DSDV set opt(energymodel) EnergyModel ; #set opt(energymodel) RadioModel ; set opt(radiomodel) RadioModel ; set opt(initialenergy) 1000 ;# Initial energy in Joules #set opt(logenergy) "on" ;# log energy every 150 seconds Mac/SMAC set syncFlag_ 1 Mac/SMAC set dutyCycle_ 10 set ns_ [new Simulator] set topo [new Topography] set tracefd [open $opt(tr) w] set namtrace [open $opt(nam) w] set prop [new $opt(prop)] $topo load_flatgrid $opt(x) $opt(y) ns-random 1.0 $ns_ trace-all $tracefd #$ns_ namtrace-all-wireless $namtrace 500 500 # # Create god # create-god $opt(nn) #global node setting $ns_ node-config -adhocRouting DumbAgent \ -llType $opt(ll) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channelType $opt(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace ON \ -energyModel $opt(energymodel) \ -idlePower 1...0 \ -rxPower 1.0 \ -txPower 1.0 \ -sleepPower 0.001 \ -transitionPower 0.2 \ -transitionTime 0.005 \ -initialEnergy $opt(initialenergy) $ns_ set WirelessNewTrace_ ON #set AgentTrace ON #set RouterTrace OFF #set MacTrace ON for {set i 0} {$i < $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } # $node_(1) set agentTrace ON # $node_(1) set macTrace ON # $node_(1) set routerTrace ON # $node_(0) set macTrace ON # $node_(0) set agentTrace ON # $node_(0) set routerTrace ON set udp_(0) [new Agent/UDP] $ns_ attach-agent $node_(0) $udp_(0) set null_(0) [new Agent/Null] $ns_ attach-agent $node_(1) $null_(0) set cbr_(0) [new Application/Traffic/CBR] $cbr_(0) set packetSize_ 512 $cbr_(0) set interval_ 10.0 $cbr_(0) set random_ 1 $cbr_(0) set maxpkts_ 5 $cbr_(0) attach-agent $udp_(0) $ns_ connect $udp_(0) $null_(0) $ns_ at 1.00 "$cbr_(0) start" #$ns_ at 177.000 "$node_(0) set ifqLen" # # Tell all the nodes when the simulation ends # for {set i 0} {$i < $opt(nn) } {incr i} { $ns_ at $opt(stop) "$node_($i) reset"; } $ns_ at $opt(stop) "puts \"NS EXITING...\" ; $ns_ halt" set b [$node_(0) set mac_(0)] #set c [$b set freq_] set d [Mac/SMAC set syncFlag_] #set e [$node_(0) set netif_(0)] #set c [$e set L_] set c [Mac/SMAC set dutyCycle_] #puts $tracefd "M 0.0 nn $opt(nn) x $opt(x) y $opt(y) rp $opt(rp)" #puts $tracefd "M 0.0 sc $opt(sc) cp $opt(cp) seed $opt(seed)" #puts $tracefd "M 0.0 prop $opt(prop) ant $opt(ant)" #puts $tracefd "V $b : $c : $d :" puts "Starting Simulation..." $ns_ run ##
[ns] appearing new nodes during the simulation
Hello Can you please tell me how can I make nodes appear one by one in the simulation ,for example initially I have one node, then, after 10 seconds, I have another one? Please help me. Thank you very much.
[ns] print messages describing the simulation from the terminal to a text file
Hi all, Can you tell me please how can I print messages written in the terminal window during the simulation , to a text file? Thank you for your help.
[ns] Re : print messages describing the simulation from the terminal to a text file
Hi, Thank you for Diana , Félix and moses who gave me the solution of printing messages to a txt file, the solution is: ns name_of_tclFile.tcl > file.txt Thanks. --- En date de : Jeu 22.1.09, Nadine Chen a écrit : De: Nadine Chen Objet: [ns] print messages describing the simulation from the terminal to a text file À: ns-users@ISI.EDU Date: Jeudi 22 Janvier 2009, 17h41 Hi all, Can you tell me please how can I print messages written in the terminal window during the simulation , to a text file? Thank you for your help.
[ns] Re : NS2 2.33 allinone on Ubuntu
Hi This is a very useful link to install NS-2.33 on ubuntu: "http://www.jasonernst.com/2008/06/11/ns-233-and-nam-on-ubuntu-804-hardy-heron/"; Hope this helps. --- En date de : Lun 26.1.09, Liz Mwaniki a écrit : De: Liz Mwaniki Objet: [ns] NS2 2.33 allinone on Ubuntu À: ns-users@ISI.EDU Date: Lundi 26 Janvier 2009, 9h09 NS users, I have not used NS2 before, tried installing on red hat but gave me problems. How do I install NS2 2.33 allinone on Ubuntu ? thanks. -- View this message in context: http://www.nabble.com/NS2-2.33-allinone-on-Ubuntu-tp21662320p21662320.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] wireless sensor networks model in NS-2.33
Hi all, Please tell me if it is possible to simulate wireless sensor networks with NS2.33 without adding any extensions like mannasim or semsim? Thank you.
[ns] limiting the neighboring radius in NS2.33:please help
Hi all, As you know, we can detect neighboring nodes, by sending and receiving hello messages like what is done in AODV example.But when I did this, I noticed that each node has a very large number of neighbors, so I want to limit this number by reducing the neighboring radius, but I didn't know where can I modify it? Please , if any one has an idea to limit automatically this radius, or any other method to reduce the number of neighbours tell me how ? Thank you very much for your help
[ns] node joins in NS2
Hi all, At the beginning of my simulation I have a set of nodes, and after some time, I need that other nodes join my network, but I don't know how should I write in tcl file to make a new node join the network. So please help me . Thanks a lot for your help.
[ns] sleep and wake up nodes
Hello, Can you please tell me how to sleep and wake up a node from the tcl interface? Thank you. __ Ne pleurez pas si votre Webmail ferme ! Récupérez votre historique sur Yahoo! Mail ! http://fr.docs..yahoo.com/mail/transfert_mails.html
[ns] Re : NAM problem
Hi You should add thease lines to you bashrc file: gedit ~/.bashrc then add this: # PATH NS=your ns path NAM=your NAM path PATH=$PATH:$NS:$NAM Hope this helps. --- En date de : Dim 15.2.09, Jose Rodriguez a écrit : De: Jose Rodriguez Objet: [ns] NAM problem À: ns-users@ISI.EDU Date: Dimanche 15 Février 2009, 8h07 Hello everyone, Im new on ns-2 and i have the following issue: I downloaded ns-allione-2.33 and installed it (im using Ubuntu 8.04 by the way). I did the changes to my PATH and LD_LIBRARY_PATH that at the end of the installation process tells me to do. Im trying to run a simple scripy and i get the following error ns: finish: couldn't execute "nam": no such file or directory while executing "exec nam out.nam &" (procedure "finish" line 5) invoked from within "finish" I looked on this problem online and everyones says that it could be a PATH issue. I included the location to nam-1.13 to my PATH but it didnt work. I dont know if this part of the problem but in /ns-allinone-2.33/ns-2.33/nam is empty. Also in /ns-allinone-2.33/nam-1.13 there isnt a nam directory, just nam1, nam.h, etc but no an exec file. I dont think Nam was installed correctly. What should i Do..?? Can i install just nam or should i install everything again...?? How do i install nam alone and then mixing it with what i alredeay have??? Thanxs in advance! Hope eveyone has a great day! -- A day without sunshine is like, you know...night. __ Ne pleurez pas si votre Webmail ferme ! Récupérez votre historique sur Yahoo! Mail ! http://fr.docs..yahoo.com/mail/transfert_mails.html
[ns] LEACH implementation in NS2.33
Hi all, Do you know please where can I find LEACH source code in NS2.33? Thanks a lot.
[ns] LEACH sample simulation with mannasim and NS2.29
Hi, Have you a tcl sample to simulate LEACH under NS2.29 with mannasim? Thanks.
[ns] Is it possible to do this scenario with NS2? ?
Hi, Generally with NS2, we can make a scenario in tcl and we fix at the beginning the number of nodes that will participate in this scenario, but if I want that the number of the nodes increases during the simulation? Is it possible to do this with NS2:initially we have one node after 2 seconds another appears .? Please tell me if it is possible. Thanks.
[ns] Re : node power
Hi you can define a node power in your tcl file by using an energy model , specifying the initial energy value, then in the trace file you will have informations about the energy consumed and the remaining energy. Hope this help. --- En date de : Sam 28.2.09, dinesh nagare a écrit : De: dinesh nagare Objet: [ns] node power À: ns-users@ISI.EDU Date: Samedi 28 Février 2009, 9h03 Hi all, can anybody tell me how to find the node power? Will it possible within the protocol? Please help me. Regards Dinesh.
[ns] the function generating a node in NS2.33
Hi all, Do you know please where can I find the function that generates the node in NS2.33? Thank you.
[ns] Re : installation ns under linux problem
Hello, Follow the steps mentioned in this link and you will succeed to install NS2..33 "http://www.jasonernst.com/2008/06/11/ns-233-and-nam-on-ubuntu-804-hardy-heron/"; Hope this helps. --- En date de : Jeu 19.3.09, ali bala a écrit : De: ali bala Objet: [ns] installation ns under linux problem À: "ns ns" , teera...@tot.co.th, teera...@ece.ubc.ca, volker.rich...@gmx.de Date: Jeudi 19 Mars 2009, 14h35 hi i had problem with nam under cyqwin/x and now i install linux ubuntu 8.10 then try to install ns2.33and2.30 when i run ns installation with ../install after 5 mins i see this error : make:***[tk3d.o] error1 tk8.4..13 make failed! exiting... after that i follow this link : http://nsnam.isi.edu/nsnam/index.php/Installing_ns2.31_on_Ubuntu7.04 but when i try to edit sources.list i see this error : you do not permission to save this file. whats my problem and solution? thanks mr.ali.balador homepage:www.balador.org
[ns] a problem "_o38: wrong # args" when trying to let a node join the network:please help
Hi all, I tried to let a node join the network after a given time by this command: $ns_ at 10 [set node_(1) [$ns_ node] ] but I have this error: ns: _o38: wrong # args: should be {_o38 message ?args...?} while executing "_o38" Have you an idea about this error and how can I fix it? is there any other command that let a node join the network after some time? please help me. thank you very much.
[ns] Re : New protocol added..but error in running tcl script
hi, to solve this problem, after make, you should execute make install , and your protocol will work fine. hope this helps. --- En date de : Mar 24.3.09, Kiraneet sharma a écrit : De: Kiraneet sharma Objet: [ns] New protocol added..but error in running tcl script À: ns-users@ISI.EDU Date: Mardi 24 Mars 2009, 11h52 Hello everyone... I have added a new protocol in ns2,which is an extension of aodv. After making the required changes in all the files,running ./configure and make goes well... But if I run a tcl script using that protocol it shows an error : (_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] }" I have checked the case sensitivity of protocol name too... Any solution ?
[ns] assign different energy levels to different nodes in a tcl file
Hi all, Can you please tell me how can I assign different initial energy levels to nodes in my tcl file.For example node 1 has initial energy =100, node2 has initial energy =20? Thank you for your help.
[ns] Re : negative RTO
hi, try to minimise the duration of the simulation let it for example 1000, and I think that the problem will disappear. --- En date de : Mar 7.4.09, VINCENZO PANNACE a écrit : De: VINCENZO PANNACE Objet: [ns] negative RTO À: ns-users@ISI.EDU Date: Mardi 7 Avril 2009, 13h34 Hi everyone, i'm simulating a bittorrent application on ns-2.33 using a wired-cum-wireless topology. The problem i have is that while the simulation works fine for wired nodes it doesn't work for wireless nodes and it returns the following error: "TcpAgent: negative RTO" and after this the simulation finish istantly. Does anyone know about this warning? Thanks in advance, Vincenzo.
[ns] awk to calculate the throughput
Hi all, Can you please give me an awk file to calculate the throughput in a particular node, in order to have a graph representing the throughput in function of time? Thank you very much for your help.
[ns] using .cc file to recuperate a node's attribute:please help me
Hi all, Do you know please what should I write in cc file in order to recuperate an information about a node's attribute:for example my tcl file generates a trace file giving me informations about the remaining energy on each node and I want that this information will be well known in the .CC file but I don't know how? Please help me. Thank you so much for your help.
[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.
[ns] awk to calculate the rate
Hi all, Can you tell me please how to use awk in order to calculate the rate ? Thank you.
[ns] change the curve style in xgraph
Hi all, Can yo tell me please how can I change the curve style in xgraph, I don't want to have curves with different colors but with different line styles? If it isn't possible to do this with xgraph, what should I use to have this? Thanks.
[ns] useful link to install leach in NS2.27
Hi all, Do you know please a useful link to guide me in the leach installation on NS2.27? Thank you.
[ns] awk script to calculate average of used energy
Hi all, I need a awk script in order to calculate the average of used energy from a new version of trace file. Please help. Thanks