LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-27-2012, 01:33 PM   #271
shanky
Member
 
Registered: Aug 2011
Posts: 155

Rep: Reputation: Disabled

Hi,

I have installed ns-2.34 on ubuntu and also followed the instructions to install leach on it.I have run simulations successfully to measure network lifetime, energy consumption for different number of nodes.I now want to change the cluster head probability and get the graph for this by changing the CH probabalilty.Where do i change this parameter in the code to get the desired results ??

Thanks
Regards
Shanky
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-28-2012, 12:27 AM   #272
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 179

Rep: Reputation: 268Reputation: 268Reputation: 268
Shanky,

probability is given by (k/N) ... so changing these values gives you a different probability
 
1 members found this post helpful.
Old 04-28-2012, 06:02 AM   #273
shanky
Member
 
Registered: Aug 2011
Posts: 155

Rep: Reputation: Disabled
Thanks deepa..I did figure it out eventually and changed the cluster heads and total nodes accordingly to get the desired results..

Regards
 
Old 04-28-2012, 06:26 AM   #274
ayaan
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Rep: Reputation: Disabled
hi! i want to know what is the format of leach trace file i.e leach.tr
 
Old 04-30-2012, 01:01 AM   #275
upk345
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Rep: Reputation: Disabled
Unhappy

Hello every one,

I have followed many steps from this form and it was too helpful for me in running leach.
I'm using ubuntu platform and at last after completing all the process in the terminal I'm getting nothing to be done.

According to the older posts its not a prob. But, after running the leach_test in the simulation results the file leach.err contains a statement "./leach_test: line 37: ns: command not found"




Please do help me.


Thank you.
 
Old 04-30-2012, 01:49 AM   #276
upk345
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Rep: Reputation: Disabled
Please do help me plzzzzzzzzzzzzzzzzzzzzz
 
Old 04-30-2012, 01:49 AM   #277
shailu
LQ Newbie
 
Registered: Mar 2012
Posts: 12

Rep: Reputation: Disabled
this is because u have not set path correctly i.e $PATH variable that is why operating system does not where to look for ns.

Go to the directory where ns2 is installed.
then type ls.If you see ns.exe, ns2 is installed properly and then do ./ns it will run properly.
 
Old 05-01-2012, 11:51 PM   #278
engr
Member
 
Registered: Jan 2012
Posts: 30

Rep: Reputation: Disabled
@ deepa thnx dear
but when ever i run ./leach_test it gives no results.
and in ./test file it is set that ./leach_test file will be running whenever ./test command wil be executed.
can u plz help me where can i deifne mobility for all the sensor nodes.
Regards


@Hi shanky..!
can you plz help me to generate graphs for leach protocol.
regards
 
Old 05-02-2012, 12:39 AM   #279
upk345
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Rep: Reputation: Disabled
@ shailu

Thank you for helping me. I got rid of that prob.
Now i would like to change the criteria for cluster head changing. So, can please help in finding where i have to change the codes so that it works as required for me....?

Plz Plz help me......!
 
Old 05-02-2012, 05:20 AM   #280
shanky
Member
 
Registered: Aug 2011
Posts: 155

Rep: Reputation: Disabled
@ engr
Hi
what i have done is ,i ran a lot of simulations changing parameters like number of nodes,number of cluster heads and then tabulated the results of network lifetime,energy consumed,data throughput,number of nodes alive.Using these results in word excel i got the graphs.
If in case you are aware of a better methodology to generate graphs please let me know.

Regards
 
1 members found this post helpful.
Old 05-02-2012, 05:23 AM   #281
upk345
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Rep: Reputation: Disabled
@ shanky

Can you help in knowing how to change the criteria for cluster head changing. Please help me in finding where i have to change the codes so that it works as required for me....?

Plz Plz help me......!
 
Old 05-02-2012, 06:12 AM   #282
shanky
Member
 
Registered: Aug 2011
Posts: 155

Rep: Reputation: Disabled
go to leach_test code...in the code you will able to find number of cluster heads..that way you can change the parameter
 
Old 05-02-2012, 06:19 AM   #283
upk345
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Rep: Reputation: Disabled
@Shanky

Can you plz help me to know how to change the criteria for cluster head selection...?!

Plz.. Plz.....!
 
Old 05-03-2012, 04:16 AM   #284
upk345
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Rep: Reputation: Disabled
@Shanky

With that we can only change the no of clusters and all, but i want to change the way how the cluster head changes.....!

Plz do help.

Thank you
 
Old 05-03-2012, 07:12 AM   #285
shanky
Member
 
Registered: Aug 2011
Posts: 155

Rep: Reputation: Disabled
Hi,

I am not aware of the technique that allows to change the way the CH changes..
sry..ask around or start a new thread..

Regards
 
  


Reply

Tags
leach, leach-warning50, ns2, ns2 ns234, pegasis


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 05:23 AM
labview stopped at "init tmp resource files" on FC4 baosheng Linux - Software 2 09-28-2007 12:02 PM
ORiNOCO WLAN card not working - "failed to allocate resource" hauneboo Linux - Laptop and Netbook 1 11-29-2005 10:08 AM
What "kernel opts" allow PC to power down with "turning energy off"? kornerr Linux - General 1 03-10-2005 01:07 PM
nvidia insmod: "Device or resource busy" w/GeForce 4 MX KeithSpook Linux - Hardware 4 03-03-2004 01:21 PM


All times are GMT -5. The time now is 11:43 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration