LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to integrate the "Resource/Energy" leach class into NS-2.34? (https://www.linuxquestions.org/questions/linux-software-2/how-to-integrate-the-resource-energy-leach-class-into-ns-2-34-a-870368/)

ghadghoud 04-13-2015 10:15 AM

i can replace the folder that i already have with one of this and i won't have a problem ?
It won't generate an error ?
Sorry for my question but i am still a beginner .
Thank you

knudfl 04-13-2015 10:29 AM

Re #946.

Not a good idea to replace ns-2.34/mit/leach_sims/ :
The files will be overwritten if you run ./test

Suggest :
$ mkdir 2014 ,,, and unpack leach_sims__2014.tar.gz in 2014/.
$ mkdir 2015 ,,, unpack leach_sims_03.2015.tar.gz in 2015/.
Doesn't really matter with the folder naming :
The files in leach_sims/ are not used by any other files.

-

SAHO 04-14-2015 04:50 AM

file that aggregate packet in clusetr head
 
hi
i want to change packet before cludter head aggregates packet .where is file that aggregate packet in clusetr head?

knudfl 04-14-2015 05:08 AM

Re #948, @SAHO.

Your leach thread http://www.linuxquestions.org/questi...gy-4175539566/
... expresses a non working LEACH, so why ask here ?

SAHO 04-14-2015 05:20 AM

Quote:

Originally Posted by knudfl (Post 5347134)
Re #948, @SAHO.

Your leach thread http://www.linuxquestions.org/questi...gy-4175539566/
... expresses a non working LEACH, so why ask here ?

yes it isnt work.and any one help me.andnow i wantto read source code until the leach works correctly.

ghadghoud 04-14-2015 06:35 AM

Thank you again
After running ./test


/ Test after generate a lot of files. Same document mit / uAMPS / sims folder, respectively: wireless.alive, wireless.energy, wireless.data

I can't find these files too . What is the problem ?

SAHO 04-14-2015 07:01 AM

Quote:

Originally Posted by deepa_2111 (Post 4639682)
Hi prat,

you have to give the proper address of your libraries.

leach.err:

invalid command name "Resource/Energy"
while executing
...

i have same problem.pl guide me.
what do u mean proper address of your libraries?
i read all previous post but didnt see any post that solve this problem.tnx

emprit 04-18-2015 10:07 PM

Quote:

Originally Posted by knudfl (Post 5346725)
-

sir i try compare output my leach/leach-c with http://www-mtl.mit.edu/researchgroup...wendi05_03.pdf

so much differen about Optimum Number of Clusters energy used per round.

soufien1988 04-26-2015 04:03 AM

ns2
 
Can anyone tell how to run SPIN protocol in ns2

SAHO 05-08-2015 01:35 AM

distance node -BS
 
how can calculate distance each node and BS in leach in ns2?

rockben 05-21-2015 12:54 PM

Hi,
I want to integrate the energy model used in leach protocol, into another routing protocol (i'm using ns2.31 ubuntu 10.04)
i observed that in ns2 energy model (in wireless-phy.cc, pt_consume and rt_cosume are fixed) the energy consumed during the transmission is fixed and thus don't consider the variation of transmission power in the enrgy consumption
please help!

emprit 05-22-2015 05:44 AM

Quote:

Originally Posted by rockben (Post 5365641)
Hi,
I want to integrate the energy model used in leach protocol, into another routing protocol (i'm using ns2.31 ubuntu 10.04)
i observed that in ns2 energy model (in wireless-phy.cc, pt_consume and rt_cosume are fixed) the energy consumed during the transmission is fixed and thus don't consider the variation of transmission power in the enrgy consumption
please help!

u change pt_consume and rt_consume ?

rockben 05-22-2015 12:02 PM

Quote:

Originally Posted by emprit (Post 5365951)
u change pt_consume and rt_consume ?

no i didn't
but my quetion is how can i do that ? how can i relate the trasmision power with the energy cunsumption ?
or how can i integrate the leach energy model in ns2 in order to use it in other routing protocols ?( just the energy model )

viethd92 05-23-2015 11:33 AM

Hi, how to increase the number of packets sent in Leach protocol?

NAYEFALDAUIS 05-31-2015 11:58 PM

Hello ,
To all

Can anyone told me how to edit "topology/topology-100-200x200" ;# scenario file to be for 200 nodes !!!

thanks in advance.


All times are GMT -5. The time now is 04:22 PM.