LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 11-16-2014, 12:39 PM   #16
limoncuet07
LQ Newbie
 
Registered: Nov 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled

Thanks
but after replacing tomas by my path and rerunning leach i finding these error


couldn't read file "../../rca/ns-ranode.tcl": no such file or directory
while executing
"source.orig ../../rca/ns-ranode.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 ../../rca/ns-ranode.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 14)
invoked from within
"source.orig mit/uAMPS/sims/uamps.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 mit/uAMPS/sims/uamps.tcl"
(file "tcl/mobility/pegasis.tcl" line 22)
invoked from within
"source.orig tcl/mobility/pegasis.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/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)

how to fix it ?
 
Old 11-16-2014, 12:49 PM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #16 .

See post #11 : You are supposed to read ...
https://groups.google.com/forum/?fro...w/1OZUFXinGUkJ
Everything is explained in that thread :
The bizarre locations where the simulation looks for files,
.... and the work around solution : leach-test__Ubuntu1204.tar.gz.


-
 
Old 11-17-2014, 07:42 AM   #18
limoncuet07
LQ Newbie
 
Registered: Nov 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks for your link.

I am carefully reading and try to implementing your link. but i am facing same error.

"

Example : leach-test__Ubuntu1204.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
.... You can actually unpack leach-test__Ubuntu1204.tar.gz in /home/name/.
Will unpack to /home/name/9tmp/.
Then do : A) $ cd 9tmp/ns-allinone-2.34/ns-2.34/
B) $ export RCA_LIBRARY=/home/<name>/9tmp/ns-allinone-2.34/ns-2.34/mit/rca && export uAMPS_LIBRARY=/home/<name>l/9tmp/ns-allinone-2.34/ns-2.34/mit/uAMPS && ./test
"
pegasis.out is null and pegasis.err is show same error. how to fix
 
Old 11-17-2014, 10:54 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #18 .
Quote:
pegasis.err is show same error
Same error as what ?
Please show the first three (3) lines from `pegasis.err'.
* No reason to show all the lines, like post #16 !
 
Old 01-26-2015, 06:11 AM   #20
haitam09
Member
 
Registered: Jan 2015
Posts: 30

Rep: Reputation: Disabled
how to make changes in leach for to minimize data redundancy

I installed ubuntu leach into and I would make my first contribution. I am looking for ideas to contribute at the leach configuration.
I am beginner in leach.
please tell me in detail file leach which I make changes in order to minimize data redundancy.
Thank you very much knudfl for the last help.
 
Old 04-21-2015, 08:06 AM   #21
ghadghoud
LQ Newbie
 
Registered: Apr 2015
Posts: 11

Rep: Reputation: Disabled
Quote:
Originally Posted by haitam09 View Post
I installed ubuntu leach into and I would make my first contribution. I am looking for ideas to contribute at the leach configuration.
I am beginner in leach.
please tell me in detail file leach which I make changes in order to minimize data redundancy.
Thank you very much knudfl for the last help.
Hello
did you find a response or get an idea ?
Thank you
 
Old 05-25-2016, 11:10 AM   #22
majdouline
LQ Newbie
 
Registered: May 2016
Posts: 2

Rep: Reputation: Disabled
Angry I need leach-m code source for ns2.35

I need leach-m code source for ns2.35 plz help me urgantly
" leach - mobile "
 
Old 05-25-2016, 01:29 PM   #23
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,613

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by majdouline View Post
I need leach-m code source for ns2.35 plz help me urgantly
" leach - mobile "
If you need it, then GO LOOK IT UP YOURSELF. We aren't going to send you links, or look things up for you...and read the LQ Rules about text-speak, and not using it.

You can find MANY sources for leach with a Google search, in this thread, and in MANY others on LQ already. Show some effort of your own.
 
1 members found this post helpful.
Old 05-25-2016, 02:13 PM   #24
majdouline
LQ Newbie
 
Registered: May 2016
Posts: 2

Rep: Reputation: Disabled
Unhappy I need leach-m code source for ns2.35 plz help me urgantly " leach - mobile "

Quote:
Originally Posted by TB0ne View Post
If you need it, then GO LOOK IT UP YOURSELF. We aren't going to send you links, or look things up for you...and read the LQ Rules about text-speak, and not using it.

You can find MANY sources for leach with a Google search, in this thread, and in MANY others on LQ already. Show some effort of your own.
thank you for your help i do search in google but i can't find it ... i find just leach statique who dosen't move ... i try take the cluster of leach and the motivité from olsr but it's not work it please help... i know that you are so busy but just tell the first step and thank a lot
 
Old 05-25-2016, 04:26 PM   #25
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,613

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by majdouline View Post
thank you for your help i do search in google but i can't find it ... i find just leach statique who dosen't move ... i try take the cluster of leach and the motivité from olsr but it's not work it please help... i know that you are so busy but just tell the first step and thank a lot
Here are the steps:
  • Read the LQ Rules and Question Guidelines links
  • Go to http://www.google.com
  • Put in "leach-m ns2.35" into the box.
  • Press ENTER
  • Start looking at the LEACH source code download options
  • PICK ONE
I find it VERY hard to believe that you have searched for this. Again, we WILL NOT look things up for you, email them to you, or hand you links. If you have a SPECIFIC QUESTION OR PROBLEM then post it, along with what you have done/tried and the relevant source code, and we will be more than happy to help.

Otherwise, as said...show some effort of your own.
 
Old 11-07-2016, 05:01 PM   #26
bayazidaufar
LQ Newbie
 
Registered: Nov 2016
Posts: 3

Rep: Reputation: Disabled
hello, i have successfully installed and run ns-2.34 on ubuntu16.04 with exidus-leach-pegasis-ns234.patch.tar.gz and now i try to do some simulation with it

the results in leach.out is always shown like this, no matter how many times i repeat the simulation:

(1) At 424.50000000002802: - mit/uAMPS/stats.tcl
Total Energy = 198.90586198334333
Total Data = 30478
Total Alive = 4

(2) At 677.20000000008542: - mit/uAMPS/stats.tcl
Total Energy = 199.53078228997774
Total Data = 43541
Total Alive = 1

My Question is:
(i)Is it possible to have the exact same results no matter how many times you repeat the simulation?
(ii)If i change the nodes from 100 to lets say 80, could the same problem occur?
(iii) TBH, i am new to ns2 and linux and i dont know if my LEACH+PEGASIS patch is working properly. Is there any way to check it?

Best regards,
Bayazid

EDIT
I'm starting to think that ns-2.34 can't work properly in ubuntu 16.04. Because no matter what i do, the leach.out file always show the same results. Can anybody give me an insight whether i need to change to older version of ubuntu or stay with my 16.04?

Last edited by bayazidaufar; 11-07-2016 at 09:24 PM.
 
  


Reply

Tags
leach, ns2, 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
i need leach protocol source code along with execution step. jaygan85 Linux - Wireless Networking 3 11-01-2014 07:50 AM
help me i need tcl code for leach protocol urgently manoj robin Linux - Newbie 1 09-20-2014 03:02 AM
Leach Protocol Code thamim Linux - Newbie 10 03-03-2014 12:03 PM
source code of leach protocol MAHAKR Linux - Newbie 1 06-11-2011 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 11:20 PM.

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