[ns] computing energy consumption via trace file
Hi everybody I am using ns2.34 and i want to compute the energy consumption via trace file but i am confused because in trace format ,we observe that we have two kind of energy consumption logging as follows: for example: 1) N -t 39.161106 -n 93 -e 2.862224 2) r 39.161120329 _99_ AGT --- 331 cbr 74 [13a 63 f 800] [energy 2.867165 ei 0.000 es 0.000 et 0.015 er 0.118] --- [0:0 99:0 29 99] [14] 3 0 please help me about these and how i can compute the energy consumption via trace file thanks a lot for your attention
[ns] awk script for finding first node die, last node die, packet delevery ratio , end to end delay
Hi, Please, if anybody has an awk script for finding first node die, last node die, packet delevery ratio , end to end delay, or how to make it let me know. regards, Ali Hussein
[ns] Re : Classfier::no-slot{} default handler - Resolved
Hi All, It was a problem of positionning the nodes in the topology. Something like out of bounderies. B .R E. C --- En date de : Ven 3.12.10, El hadi Cherkaoui e_cherka...@yahoo.fr a écrit : De: El hadi Cherkaoui e_cherka...@yahoo.fr Objet: Classfier::no-slot{} default handler À: NS user ns-users@ISI.EDU Date: Vendredi 3 décembre 2010, 19h40 Hi NS users, I have this error in my script when I try to creat more than two WiFi interfaces like this: TCL code: ... for {set i 1} {$i=$nn} {incr i} { $ns node-config -wiredRouting OFF \ -macTrace ON set iface1_($i) [$ns node 3.0.$i] ;# node id is 8. $iface1_($i) random-motion 1 ;# disable random motion $iface1_($i) base-station [AddrParams addr2id [$bstation802 node-addr]] ;#attach mn to basestation $iface1_($i) set X_ [expr $X_src+($i*10)] $iface1_($i) set Y_ $Y_src$i $iface1_($i) set Z_ 0.0 if {$quiet == 0} { puts Iface 1_($i) = $iface1_($i) } } And the ERROR is : --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o270: no target for slot 3 _o270 type: Classifier/Addr content dump: classifier _o270 0 offset 22 shift 1023 mask 1 slots slot 5: _o271 (Classifier/Addr) -- Finished standard no-slot{} default handler -- Any idea ? Best Regards