LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 09-11-2012, 07:59 AM   #31
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled

knudfl, can you help me? do you have link to get leach.cc and leach.h?

thanks before..
 
Old 09-11-2012, 09:08 AM   #32
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,186

Rep: Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368
# 31

Leach c++ program files are : mit/uAMPS/bsagent.cc bsagent.h ,
mit/rca/energy.cc energy.h rcagent.cc rcagent.h resource.cc resource.h rca-ll.cc

What is leach.cc, leach.h ?



.

Last edited by knudfl; 09-11-2012 at 09:10 AM.
 
Old 09-11-2012, 11:28 AM   #33
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 31

Leach c++ program files are : mit/uAMPS/bsagent.cc bsagent.h ,
mit/rca/energy.cc energy.h rcagent.cc rcagent.h resource.cc resource.h rca-ll.cc

What is leach.cc, leach.h ?



.
oohh, i think, i think source code to leach is leach.cc and leach.h..
 
Old 09-11-2012, 11:29 AM   #34
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 31

Leach c++ program files are : mit/uAMPS/bsagent.cc bsagent.h ,
mit/rca/energy.cc energy.h rcagent.cc rcagent.h resource.cc resource.h rca-ll.cc

What is leach.cc, leach.h ?



.
ohh, i think, source code to leach is leach.cc and leach.h..
thanks knudfl..
 
Old 09-13-2012, 05:01 AM   #35
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 31

Leach c++ program files are : mit/uAMPS/bsagent.cc bsagent.h ,
mit/rca/energy.cc energy.h rcagent.cc rcagent.h resource.cc resource.h rca-ll.cc

What is leach.cc, leach.h ?



.
kndufl can you help me?

I try runnnig cd ns-allinone-2.27/ns-2.27/ns-tutorial/examples and then ns wireless2.tcl , but that is fail and appear command:
img.JPG

what should i do?

Last edited by lubelube; 09-13-2012 at 05:24 AM.
 
Old 09-13-2012, 05:38 AM   #36
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,186

Rep: Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368
# 35
Quote:
couldn't read file "../mobility/scene/scen-3-test": no such file or directory
That's right. There is no directory tree "mobility/scene/" one level up.

Solution :
Copy ' wireless2.tcl' to ns-allinone-2.27/ns-2.27/tcl/ex/
.. and run it there : $ ns wireless2.tcl

The "leach patched" binary 'ns' will work with this file.
But some warnings will appear.
For other "non leach" examples you may have to use an unpatched 'ns'.
( You can have as many "ns binaries" as you want in /usr/local/bin/,
e.g. ns227-orig, ns227-leach.
And use with e.g. : $ ns227-orig wireless2.tcl ).

.
 
Old 09-13-2012, 06:03 AM   #37
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 35

That's right. There is no directory tree "mobility/scene/" one level up.

Solution :
Copy ' wireless2.tcl' to ns-allinone-2.27/ns-2.27/tcl/ex/
.. and run it there : $ ns wireless2.tcl

The "leach patched" binary 'ns' will work with this file.
But some warnings will appear.
For other "non leach" examples you may have to use an unpatched 'ns'.
( You can have as many "ns binaries" as you want in /usr/local/bin/,
e.g. ns227-orig, ns227-leach.
And use with e.g. : $ ns227-orig wireless2.tcl ).

.
do you mean like this?
img1.JPG

that is command not found..

Last edited by lubelube; 09-13-2012 at 06:05 AM.
 
Old 09-13-2012, 07:53 AM   #38
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,186

Rep: Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368
# 37

The idea is to have different names for all "ns executables".
The naming is by your own choice.
I have 21 "ns" in /usr/local/bin/ on this machine :
ns ns227 ns227-leach ns228 ns228-mympeg ns229-mannasim ns230-Aqua
ns230-eurane ns231 ns231-crcn ns232-mtens ns233 ns233-gpsr ns234, etc.

.
 
Old 09-13-2012, 08:41 AM   #39
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 37

The idea is to have different names for all "ns executables".
The naming is by your own choice.
I have 21 "ns" in /usr/local/bin/ on this machine :
ns ns227 ns227-leach ns228 ns228-mympeg ns229-mannasim ns230-Aqua
ns230-eurane ns231 ns231-crcn ns232-mtens ns233 ns233-gpsr ns234, etc.

.
i am so sorry knudfl.. i don't understand what do you mean.. can you explain to me again?
 
Old 09-13-2012, 08:50 AM   #40
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,186

Rep: Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368
# 39

cd ns-allinone-2.27/ns-2.27/
cp ns ns227-leach

And then as root (su) or with sudo :
cp ns /usr/local/bin/
cp ns227-leach /usr/local/bin/

.
 
Old 09-13-2012, 11:15 AM   #41
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 39

cd ns-allinone-2.27/ns-2.27/
cp ns ns227-leach

And then as root (su) or with sudo :
cp ns /usr/local/bin/
cp ns227-leach /usr/local/bin/

.
knudfl, as if I've understood your point but my lib ns only 2:27 .. sorry if I have trouble you
 
Old 09-13-2012, 11:21 AM   #42
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 39

cd ns-allinone-2.27/ns-2.27/
cp ns ns227-leach

And then as root (su) or with sudo :
cp ns /usr/local/bin/
cp ns227-leach /usr/local/bin/

.
knudfl, can i ask you again?
do you know how the method to node position random with a protocol routing leach in ns 2.27?
 
Old 09-13-2012, 12:37 PM   #43
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,186

Rep: Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368
# 42

You can keep an eye on this thread ..
http://www.linuxquestions.org/questi...68/page21.html
I seems that @farab has some information to share.

.
 
Old 09-14-2012, 03:40 AM   #44
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 42

You can keep an eye on this thread ..
http://www.linuxquestions.org/questi...68/page21.html
I seems that @farab has some information to share.

.
thanks knudfl with your information..
 
Old 09-14-2012, 06:59 AM   #45
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 42

You can keep an eye on this thread ..
http://www.linuxquestions.org/questi...68/page21.html
I seems that @farab has some information to share.

.
knudfl, can you help me?
i try to run cd ns-allinone-2.27/ns-2.27/mit/uAMPS/ and then ns ns-leach.tcl, but no output comes out.. please help me.. what should i do? I still do not understand about this leach simulation
 
  


Reply

Tags
leach


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Leach Protocol for ns2.34 pushpita Linux - Software 36 07-08-2013 04:06 AM
LEACH protocol installation on NS2.27 Scofield Linux - General 255 03-08-2012 05:19 PM
codes for leach protocol in ns2 shaddrack yaw nusenu Linux - Newbie 2 02-23-2011 02:56 PM


All times are GMT -5. The time now is 06:37 AM.

Main Menu
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