LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-23-2011, 05:26 AM   #1
kguerilla
LQ Newbie
 
Registered: Jan 2011
Location: Korea
Distribution: ubuntu 9.04
Posts: 1

Rep: Reputation: 0
Question Leach-c eq_energy=0 condition simulation problem


Hi, LQ members.

I have installed ns-2.27 and ns-2.34 on Ubuntu 9.10.

I have a successful running ns-2 and I found no problems in leach_test simulation.

But, it does dead-lock operation in the leach-c algorithm simulation environment variable change to eq_energy=0.

Firsr time, I have successful simulation results.

It is represented the message in the file "leach-c.out" line 430 to 443 contents below.

Code:
BS received info: (2.466682112993059 57.526273074339272 2) from Node 98
BS received: 63 
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
num_nodes is set 101
Min_cost = 156085.562447
last_iter = 15
CH are:
37.124910	58.355159	50
90.080040	75.238376	60
1.707347	95.379759	40
93.097224	85.045951	20
8.297679	59.088131	10
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
I can't see the line 434 "num_nodes is set 101" that after the successful simulation.

The simulator may be dead but remain the process.

So, I have to killed the process then it has gone.

How can I solve the problem?

Last edited by kguerilla; 01-26-2011 at 06:21 PM.
 
Old 09-14-2012, 10:06 AM   #2
yueling
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Rep: Reputation: Disabled
Hi kguerilla,

I have installed ns-2.27 on windows xp, and i want to running leach-c..

first time, i have installed mit.tar.gz..

How can i get source code leach-c? can u help me, please?

Thank you.
 
Old 09-14-2012, 10:45 AM   #3
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
Post # 2, @yueling : Welcome to LQ.

Do you mean leach-c.tcl ? It's a text file.
And is part of the package mit.tar.gz
http://www.linuxquestions.org/questi...each-862835/#4
> post #4.

.
 
Old 09-18-2012, 08:06 AM   #4
yueling
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Rep: Reputation: Disabled
post #3, @knudfl: hello...thank you for reply my post..

i have leach-c.tcl from part of the package mit.tar.gz, but i need leach-c.cc and leach-c.h or leach-c.o..
how can i get it?

thank you.

Last edited by yueling; 09-18-2012 at 08:08 AM.
 
Old 09-18-2012, 11:13 AM   #5
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
# 4

AFAIK no files are named leach-c.cc, leach-c.h
( Or leach.cc, leach.h ).

The name "leach-c.tcl" is a random name for a tcl file :
A tcl file is something you write as pure text.
There is no source code for a text file.

.
 
Old 09-20-2012, 01:17 AM   #6
yueling
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Rep: Reputation: Disabled
#5

if no files named leach-c.cc or leach-c.h , can i running leach-c.tcl without it files?

thank you
 
Old 09-20-2012, 02:39 AM   #7
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
Post # 6

Files.cc and files.h are used, when you run './install'
and / or 'make' : To build the binary 'ns'. That's it.
No .cc or .h files are required ever again !

Not sure that just 'ns leach-c.tcl' will do anything.
Most of the files in mit/** are probably used in connection with other tcl files.
Like the simulation example command, you can read in leach_test, lines 37..51

.
 
Old 09-20-2012, 10:59 AM   #8
yueling
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Rep: Reputation: Disabled
#7

okay, i see.. i think if i want to begin simulation about leach-c, i must get files.cc and files.h before..
so i can use the other files in mit to make simulation, right?

your post is very helpful =)
thank you.
 
Old 09-21-2012, 11:00 AM   #9
yueling
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Rep: Reputation: Disabled
#7 @knudfl

how to compile other files for energy,node setting, etc in mit using leach-c.tcl?

thank you.
 
Old 09-21-2012, 11:52 AM   #10
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
# 9

Not much to find about using the "mit files" : Google .. ns2 leach simulations ..
http://ns2.blogspot.dk/
http://magic-xuguang.googlecode.com/...nt%20LEACH.pdf


Have you read the two "long LEACH threads" ?
1 http://www.linuxquestions.org/questi...2-34-a-870368/
2 http://www.linuxquestions.org/questi...2-27-a-785379/


.
 
  


Reply

Tags
leach, ns2, ns227+ubuntu, ns234, ubuntu



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
NS2 network simulation problem:Change queue parameters dynamically during simulation raeisy Linux - Networking 1 11-21-2010 11:30 AM
[SOLVED] NS2 LEACH make problem dkpcad Linux - Wireless Networking 2 10-02-2010 09:04 AM
Acoustic simulation program or (sound wave simulation program) tarotint Linux - Software 2 02-24-2010 04:04 AM
Networks simulation s/w installation problem -[ SUSE 11.0] raju.mopidevi SUSE / openSUSE 1 02-08-2009 10:36 AM
problem with simulation engine in nctuns......... krishnavam123 Linux - Software 1 05-14-2008 08:19 PM

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

All times are GMT -5. The time now is 03:25 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
Open Source Consulting | Domain Registration