@ reem , post # 119 : Please ask @ nour-eddine or @ emtarik05 :
http://www.linuxquestions.org/questi...10-a-825970/#8 -------------------------- Post # 120 , @ Arslan Rana : Welcome to LQ. Please start a new thread, when the subject is off topic. This thread is about LEACH only. And then please specify version of Ubuntu. >>> http://www.linuxquestions.org/questi...ux-software-2/ >> 'New Thread' http://www.linuxquestions.org/linux/...Ask_a_Question http://www.catb.org/~esr/faqs/smart-questions.html http://www.linuxquestions.org/linux/rules.html .. |
Hello i have installed leach on ns2.27 and run the test file successfully kindly tell me about the further procedure to run leach code.Thanks
|
hi every one. i have installed ns also add the leach and run a file demo694.nam it is tcl file. tcl,ex. but when i checked the code of this file the routing protocole of this file is DSDV, CAN any tell me his this leach code file, if not then what can i do to run leach code, kndly tel me m very thank to all of u.thanx
|
having error during leach simulation
Hi knudlf
i am working on LEACH on NS 2.34. its was installed successfully. i am ruuning leach-test with different values but now i am having the following error when a node died during simulation. Node 17 is DEAD!!!! ns: _o434 checkAlive: (_o12 cmd line 1) invoked from within "_o12 cmd removeif _o439" 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 "_o12" line 2) (SplitObject unknown line 2) invoked from within "$chan removeif [[$self node] set netif_(0)]" (procedure "_o434" line 13) (Application/LEACH checkAlive line 13) invoked from within "_o434 checkAlive" can u help me in this. how can i solve it. |
I am working on leach protocol in ns 2.27.while running file wireless.tcl the following error occured kindly help me as soon as possible also tell me that for the running of leach code which file we have to run.
while executing "source.orig tcl/lib/ns-mobilenode.tcl" ("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 tcl/lib/ns-mobilenode.tcl" (file "wireless.tcl" line 184) |
# 125 : Assume ns-allinone-2.27/ns-2.27/tcl/ex/wireless.tcl
1) cd ns-allinone-2.27/ns-2.27/ 2) ln -s ns ns227-leach : So that you are sure, the LEACH executable is used. 3) ./ns227-leach tcl/ex/wireless.tcl ..... The reply is ..... Code:
Usage: tcl/ex/wireless.tcl |
tarik
Quote:
the error is in the function checkAlive when the application try to remove the node 17 from the interface !! |
Quote:
thn i set some global variables like follows export RCA_LIBRARY=/ns-allinone-2.34/ns-2.34/mit/rca export uAMPS_LIBRARY=/ns-allinone-2.34/ns-2.34/mit/uAMPS export PATH=/ns-allinone-2.34/tcl8.4.14/unix export PATH=/ns-allinone-2.34/tk8.4.14/unix export PATH=/ns-allinone-2.34/bin export LD_LIBRARY_PATH=/ns-allinone-2.34/tcl8.4.18/unix export LD_LIBRARY_PATH=/ns-allinone-2.34/tk8.4.18/unix export LD_LIBRARY_PATH=/ns-allinone-2.34/otcl-1.13 export LD_LIBRARY_PATH=/ns-allinone-2.34/library export TCL_LIBRARY=/ns-allinone-2.34/tcl8.4.18/library export RCA_LIBRARY=/ns-allinone-2.34/ns-2.34/mit/rca thn i changed dst_ to dst_addr_ in ns_leach.tcl. now i dont know how can i fix that bug. pls help me pls help me if any one knows about fixing this error. i really need it. |
# 126 knudfi now i get this error..
can't read "opt(num_clusters)": no such element in array while executing "expr 1.5*$opt(num_clusters)" invoked from within "expr int([expr 1.5*$opt(num_clusters)])+1" invoked from within "set opt(spreading) [expr int([expr 1.5*$opt(num_clusters)])+1]" (file "/home/haris/ns-allinone-2.27/ns-2.27/tcl/mobility/leach.tcl" line 12) invoked from within "source.orig /home/haris/ns-allinone-2.27/ns-2.27/tcl/mobility/leach.tcl" ("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 /home/haris/ns-allinone-2.27/ns-2.27/tcl/mobility/$opt(rp).tcl" (file "tcl/ex/wireless.tcl" line 186) |
Quote:
any body pls help me. i have searched this on net but couldnt find any help. kindly guide me if any of you has any idea of solving it. emtarik told me the reason of this error but didnt tell me how to resolve it. |
Hi,I am a newbie here and glad to see everyone. :)
the original test file is like this, #!/bin/bash cd tcl/ex ns wireless-demo-csci694.tcl sleep 2 cd ../../ ./leach_test ======= My question is that why run wireless_demo-.. before leach_test, why do this? thx a lot! :) |
Hello, everyone, I find a mistake that in the leach_test file, x=1000 y=1000, but in the 100nodes.txt file the nodes are all in 100*100. Is this an error? If is, maybe we must modify the genscen file i think. thank you !
|
can anyone please mail me leach code for ns2.34 as rapidshare links are not working.
Thanks |
@ deepak.stoic, post #133 : Welcome to LQ. .. .. :) ..
The "tarik-ns234-leach.tar.bz2" has been sent to you. ns-234-leach.tar.gz etc. : http://www.linuxquestions.org/questi...34-a-870368/#5 ( Old link with "old version" tarik-ns234-leach : https://docs.google.com/leaf?id=0B7S...thkey=CJzYt5QP ) .. |
Hello
Quote:
#131: I cannot understand x=1000, y=1000, but in 100nodes.txt file, all nodes in 100*100 #132: I think to run ns wireless-demo-csci694.tcl is to configure mobile nodes, right? Thank you very much! |
All times are GMT -5. The time now is 05:12 PM. |