LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2015, 06:16 AM   #16
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

← ref. #15.

Throughput :
Please try out all <thr> from awk-and-perl_scripts_12.2014.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

avg_throughput.awk
avg_thr_wirelss.awk
e2ethroughput.awk
flow-thr.awk
genthroughput.awk
Lianghui-throughput.pl
myflowcalcall_throu.awk
thr_drop_delay.awk
thr-one.pl
throughput-8.pl
throughput-9.pl
throughput_newtrace.awk
throughput.pl
thruput.awk


-
 
Old 02-26-2015, 11:50 PM   #17
amita_s12
LQ Newbie
 
Registered: Feb 2015
Posts: 29

Original Poster
Rep: Reputation: Disabled
how and where to make changes in leach.tcl to generate the different scenario?
 
Old 02-28-2015, 07:01 AM   #18
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
← ref. #17.


Howto "generate the different scenario".
You can change some options in 'leach_test'.

And generate a new file Xxxnodes* with mit/uAMPS/sims/genscen ,
and use the file in 'leach_test', line 16.


About editing `leach.tclŽ : I have no idea.
***** And : Which "leach.tcl" do you mean ? ?
$ cd ns-2.34/<with-MIT-leach> && find . -name leach.tcl
./mit/uAMPS/sims/leach.tcl
( ./tcl/ex/tcl/mobility/leach.tcl )
./tcl/mobility/leach.tcl

$ cd ns-2.35/<with-mannasim> && find . -name leach.tcl
→ → No leach.tcl


-

Last edited by knudfl; 02-28-2015 at 07:30 AM.
 
Old 06-23-2015, 01:05 AM   #19
amita_s12
LQ Newbie
 
Registered: Feb 2015
Posts: 29

Original Poster
Rep: Reputation: Disabled
hello sir ,
i have successfully simulated Leach via mannsim on ns2.35. trace file is also generated. now the problem with the trace file is that it is not showing "rca" in the trace format.
pl. help what should i change in the cmu-trace file.
my trace file is looking as shown below.

s -t 0.033653807 -Hs 9 -Hd -2 -Ni 9 -Nx 89.20 -Ny 37.53 -Nz 0.00 -Ne 10.000000 -Nl AGT -Nw --- -Ma 0 -Md 9000000 -Ms 0 -Mt 0 -Is 9.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0
r -t 0.033653807 -Hs 9 -Hd -2 -Ni 9 -Nx 89.20 -Ny 37.53 -Nz 0.00 -Ne 10.000000 -Nl RTR -Nw --- -Ma 0 -Md 9000000 -Ms 0 -Mt 0 -Is 9.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0
s -t 0.033653807 -Hs 9 -Hd -2 -Ni 9 -Nx 89.20 -Ny 37.53 -Nz 0.00 -Ne 10.000000 -Nl RTR -Nw --- -Ma 0 -Md 9000000 -Ms 0 -Mt 0 -Is 9.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0
s -t 0.033678807 -Hs 9 -Hd -2 -Ni 9 -Nx 89.20 -Ny 37.53 -Nz 0.00 -Ne 10.000000 -Nl MAC -Nw --- -Ma 0 -Md 9000000 -Ms ffff0008 -Mt 0 -Is 9.0 -Id -1.0 -It tcp -Il 21 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0
N -t 0.033679 -n 1 -e 9.999998
N -t 0.033679 -n 0 -e 99.999958
N -t 0.033679 -n 10 -e 9.999998
N -t 0.033679 -n 7 -e 9.999998
N -t 0.033679 -n 3 -e 9.999998
N -t 0.033679 -n 2 -e 9.999998
N -t 0.033679 -n 6 -e 9.999998
N -t 0.033679 -n 5 -e 9.999998
N -t 0.033679 -n 8 -e 9.999998
N -t 0.033679 -n 4 -e 9.999998
pl. let me know the correct trace file for leach from mannasim
 
Old 07-22-2015, 01:50 AM   #20
amita_s12
LQ Newbie
 
Registered: Feb 2015
Posts: 29

Original Poster
Rep: Reputation: Disabled
hi all,
i have simulated leach on ns2.35-mannasim. now i want to generate graph between energy consumption and of cluster head.
for that first simulation i fixed up to Cluster head - 2%
scenario size = 300X 1500
simulation time = 500 s
No. of nodes = 100
local energy = 10 J
my simulation shows error:
str2addr:Address 1936614739 outside range of address field length 1073741824.

but if i change the scenario size to 500 X 500.simulation time = 500 and no. of nodes =20. then no error has been shown.
but these are not the sufficient parameters i can work with.

pl. help for the desired parameters.
i am working with ubuntu 13.04, mannasim patch for ns2.35 by pradeep kumar.
sytem with 4 GB RAM.
 
Old 07-22-2015, 01:53 AM   #21
amita_s12
LQ Newbie
 
Registered: Feb 2015
Posts: 29

Original Poster
Rep: Reputation: Disabled
p. reply for post no. -19 also
 
  


Reply

Tags
leach, ns2



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
Mannasim .tcl error k.onkar Linux - Wireless Networking 1 04-19-2014 07:46 AM
error in tcl file chenil Linux - Newbie 6 07-24-2013 11:46 AM
Error in the tcl file nadeempitafi Linux - Newbie 1 12-26-2012 05:24 AM
Which log file contains information and error messages generated by sshd regarding... turbomen Linux - Newbie 1 11-16-2010 02:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:19 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