Post #990 @knudfl : Thanks for the reply. I assumed that it might be the OS. I'll try it either on UBUNTU 14.04 - amd64 or another already tested operating system and will share my experience here.
EDIT: I installed ns-2.34 + LEACH on an old Fedora OS. (I think it was 8 or 9) And compiled it with gcc 4.3. Now everything works peacfully |
Re #991, @elemenohpi.
Fedora 8 / 9 : 32 or 64 bits ? |
Hello everyone,
I am new to NS2 2.35 and would want to know where could I download the source code for CBRP or LEACH and which of them is appropriate to modify in order to implement my clustering mechanism for ad hoc networks |
Quote:
You re-opened an old thread, hijacked it with your own off-topic question, and have NOT done any basic research on your own first. We are happy to help you with questions and problems, but you need to LOOK THINGS UP FOR YOURSELF. Google has MANY links you can find for downloading what you're after. Go look. |
Resource/Energy integration issue while running LEACH on ns2.34
Hi,
I was unable to download the ns234-leach.tar.bz2 file from the below solution ( link provided). Please send me the link to the file. |
Resource/Energy integration issue while running LEACH on ns2.34
Hi,
I was unable to download the ns234-leach.tar.bz2 file from the below solution ( link provided). Please send me the link to the file. Below is the error clipping that I get while running LEACH protocol invalid command name "Resource/Energy" while executing "Resource/Energy instproc setParams {args} { $self instvar energyLevel_ alarmLevel_ set energyLevel_ [lindex $args 0] set alarmLevel_ [lind..." (file "/home/celia/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl" line 11) invoked from within "source.orig /home/celia/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.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 "leach.err" 55 lines, 1823 characters #################################################################### The solution to this was posted in this group but the linke for download is not available now. Please help Regards, Celia |
Hi Celiojohn,
Look this link.It describes the install leach protocol in ns2.34. http://www.linuxquestions.org/questi...2-34-a-870368/ Thank you M.Knudfl and M.MayTamer |
Re #996, @celiajohn.
The link suggested in post #997 was valid in the year 2011, not any more. INFO, the ns234 patch http://www.linuxquestions.org/questi...-4175524367/#2 INFO, ns-2.35 http://www.linuxquestions.org/questi...4175556129/#11 .... etc. posts in the linked thread. - |
leach.out results differs from the original leach.out
hello sir. i have successfully installed and patched ns-234-leach.tar.gz in my ubuntu 12.04 (with gcc 4.4). however, my output in leach.out is far different from the original leach.out results.
in my leach.out results, all of my node is dead at the end of the simulation. i got this: Quote:
|
hi sir. hello knudfl and deepa_2111. i have the same problem regarding my weird leach.out result. the total data is always zero and all node is dead
Quote:
best regards, bayazid |
Quote:
I'm having the same problem: No CH ADVs were heard and data is 0 always. My results are such: Creating sensor nodes... 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 (100 == BS) *** NOTE: no connection pattern specified. Loading scenario file... Node 0: (65.745973803916002,92.581722416254564) Node 1: (21.008649990432268,92.380389195112684) Node 2: (37.201202259027028,40.606367467253641) Node 3: (71.218022131928251,61.297971318148988) Node 4: (35.003944130150579,11.288995440718249) Node 5: (34.146372151629237,98.076752432657756) Node 6: (75.978135678906995,64.526355389750734) Node 7: (94.45503554048716,5.7823289678349754) Node 8: (83.602962402441989,14.98909784247591) Node 9: (21.767438492629417,45.338745622587737) Node 10: (8.2976788321033492,59.088131160982016) ................................................. ................................................. 98: ******************************************* THRESH = 0.050000000000000003 99: ******************************************* Warning dst_ is no longer being supported in NS. dst_ 0xffffffff Use dst_addr_ and dst_port_ instead Warning dst_ is no longer being supported in NS. dst_ 0xffffffff Use dst_addr_ and dst_port_ instead ................................................ 0: Warning!!! No Cluster Head ADVs were heard! Data being sent to the Base Station Data was sent to the base station 1: Warning!!! No Cluster Head ADVs were heard! Data being sent to the Base Station Data was sent to the base station 2: Warning!!! No Cluster Head ADVs were heard! Data being sent to the Base Station Data was sent to the base station 3: Current cluster-head is 3, code is 1, dist is 139.0 4: Warning!!! No Cluster Head ADVs were heard! Data being sent to the Base Station Data was sent to the base station .......................................... .......................................... Warning! There are no nodes in this cluster (3)! Data being sent to the Base Station Data was sent to the base station Warning! There are no nodes in this cluster (14)! Data being sent to the Base Station ......................................... ......................................... Node 0 is DEAD!!!! Node 1 is DEAD!!!! Node 2 is DEAD!!!! Node 3 is DEAD!!!! Node 4 is DEAD!!!! Node 5 is DEAD!!!! Node 6 is DEAD!!!! Node 7 is DEAD!!!! Node 8 is DEAD!!!! Node 9 is DEAD!!!! Node 10 is DEAD!!!! ........................................ ........................................ Node 95 is DEAD!!!! At 1.0999999999999999: Total Energy = 2.7329719516298452 Total Data = 0 Total Alive = 4 Simulation complete. num_nodes is set 101 channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 222.8 alive = 0 Can someone please help me? Thank you in advance. |
Quote:
|
I dont remember now. It was 5+ years ago.
But i did mention all my changes somewhere in this thread. Quote:
|
See https://www.linuxquestions.org/quest...2-34-a-860250/
Post #13 I dont remember now. It was 5+ years ago. But i did mention all my changes somewhere in this thread. Quote:
|
Quote:
Cluster Head 18 broadcasting ADV of length 22 over distance at 84.0 time 5.576064853731573e-05 Cluster Head 6 broadcasting ADV of length 22 over distance at 84.0 time 0.00010195596794688887 Cluster Head 14 broadcasting ADV of length 22 over distance at 84.0 time 0.00020954459189322992 now + ra_adv_total = 0.003016 now = 0.003016 0: Warning!!! No Cluster Head ADVs were heard! Data being sent to the Base Station Data was sent to the base station now + ra_adv_total = 0.003016 now = 0.003016 1: Warning!!! No Cluster Head ADVs were heard! Data being sent to the Base Station Data was sent to the base station now + ra_adv_total = 0.003016 now = 0.003016 ..................... ..................... 59: Warning!!! No Cluster Head ADVs were heard! Data being sent to the Base Station Data was sent to the base station 19 rcvd ADV_CH from 18 at 0.11534577894629565 11 rcvd ADV_CH from 18 at 0.11534578876699243 43 rcvd ADV_CH from 18 at 0.11534579903625525 ..................... ..................... Node 56 is DEAD!!!! Node 57 is DEAD!!!! At 0.69999999999999996: Total Energy = 0.6716827985292545 Total Data = 0 Total Alive = 2 Simulation complete. From the results, I can see that non-CH nodes do not wait for the CH to advertise. Instead, they send data directly to BS (but, Total Data = 0). Non-CH nodes received ADV only after some time. I am running LEACH Protocol using ns-2.35 on Ubuntu 14.04. Please help me. My dateline is nearing and my work is nowhere close to complete. |
All times are GMT -5. The time now is 08:15 PM. |