LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2020, 08:10 AM   #1
haitam09
Member
 
Registered: Jan 2015
Posts: 30

Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BASH-Adding array element: Naming issue using array[${#array[*]}]=5 calvarado777 Programming 8 07-26-2013 09:48 PM
Does calling an element of an array calls the whole array unkn(0)wn Programming 3 07-06-2012 07:50 PM
[perl] copying an array element into another array s0l1dsnak3123 Programming 2 05-17-2008 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration