LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   leach.out ERROR ns: _o890 recv 0 0 512 : can't read "node_()": no such element in array (https://www.linuxquestions.org/questions/linux-newbie-8/leach-out-error-ns-_o890-recv-0-0-512-can%27t-read-node_-no-such-element-in-array-4175679156/)

haitam09 07-22-2020 08:10 AM

leach.out ERROR ns: _o890 recv 0 0 512 : can't read "node_()": no such element in array
 
Hi Friends,
I applied the tools integrated in NS2.34 to generate traffic and mobility of the leach protocol:
1) cbrgen.tcl to generate cbr traffic for 100 nodes
2) setdest to generate a mobility for 100 nodes
BUT
the result obtained is as follows:
leach.enery, leach.alive, leach.data are empty (0 bytes)

leach.err:
mac/chanel.cc: INITIALIZE THE LIST xListHead
SORTING LISTS ...DONE!

leach.out:
....
43 sending data {43 , 16.430810113494982} to 34 at 16.430810113494982 (dist = 34.048497124897864) - ns-leach.tcl
CH 60 received data (82 , 16.398490101526853) from 82 at 16.430828203053714 - ns-leach.tcl
56 sending data {56 , 16.432090032877667} to 60 at 16.432090032877667 (dist = 9.8633009191255745) - ns-leach.tcl
BS Received data 7 , 16.35978816460829 from 7 at time 16.432473864273295 - mit/uAMPS/ns-bsapp.tcl
This represents data from nodes: 39 47 93 13 76 59 7 - mit/uAMPS/ns-bsapp.tcl
36 rcvd ADV_CH from at 16.444244867397586 - ns-leach.tcl

ns: _o890 recv 0 0 512 : can't read "node_()": no such element in array
while executing
"nodeDist $node_($chID) $node_($nodeID)"
(procedure "_o890" line 14)
(Application/LEACH recvADV_CH line 14)
invoked from within
"$self recvADV_CH $msg"
(procedure "_o890" line 16)
(Application/LEACH recv line 16)
invoked from within
"_o890 recv 0 0 512 "

num_nodes is set 101
mac/channel.cc: sendUp - Calc highestAntennaZ_ and distCST_
mac/channel.cc: highestAntennaZ_ = 1.5, distCST_ = 224.4

Please help me find a solution.
Thanks in advance for your help.
cordially


All times are GMT -5. The time now is 04:50 AM.