LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 06-03-2015, 06:06 AM   #1
amita_s12
LQ Newbie
 
Registered: Feb 2015
Posts: 29

Rep: Reputation: Disabled
awk file for mannasim generated leach.tcl


hi,

pl.anyone send me awk files for end-to end-delay, throughput, residual energy etc. for my trace file.




s -t 0.001408454 -Hs 3 -Hd -2 -Ni 3 -Nx 49.78 -Ny 33.09 -Nz 0.00 -Ne 10.000000 -Nl AGT -Nw --- -Ma 0 -Md 3000000 -Ms 0 -Mt 0 -Is 3.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.001408454 -Hs 3 -Hd -2 -Ni 3 -Nx 49.78 -Ny 33.09 -Nz 0.00 -Ne 10.000000 -Nl RTR -Nw --- -Ma 0 -Md 3000000 -Ms 0 -Mt 0 -Is 3.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.001408454 -Hs 3 -Hd -2 -Ni 3 -Nx 49.78 -Ny 33.09 -Nz 0.00 -Ne 10.000000 -Nl RTR -Nw --- -Ma 0 -Md 3000000 -Ms 0 -Mt 0 -Is 3.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.001433454 -Hs 3 -Hd -2 -Ni 3 -Nx 49.78 -Ny 33.09 -Nz 0.00 -Ne 10.000000 -Nl MAC -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.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.001434 -n 0 -e 99.999958
N -t 0.001434 -n 4 -e 9.999998
N -t 0.001434 -n 1 -e 9.999998
N -t 0.001434 -n 5 -e 9.999998
N -t 0.001434 -n 7 -e 9.999998
N -t 0.001434 -n 8 -e 9.999998
N -t 0.001434 -n 2 -e 9.999998
N -t 0.001434 -n 9 -e 9.999998
N -t 0.001434 -n 10 -e 9.999998
N -t 0.001434 -n 6 -e 9.999998
r -t 0.001517510 -Hs 0 -Hd -2 -Ni 0 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne 99.999958 -Nl MAC -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001517516 -Hs 4 -Hd -2 -Ni 4 -Nx 68.35 -Ny 30.15 -Nz 0.00 -Ne 9.999998 -Nl MAC -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001517529 -Hs 1 -Hd -2 -Ni 1 -Nx 39.92 -Ny 12.89 -Nz 0.00 -Ne 9.999998 -Nl MAC -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001517546 -Hs 5 -Hd -2 -Ni 5 -Nx 22.75 -Ny 26.87 -Nz 0.00 -Ne 9.999998 -Nl MAC -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001517561 -Hs 7 -Hd -2 -Ni 7 -Nx 64.16 -Ny 4.25 -Nz 0.00 -Ne 9.999998 -Nl MAC -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001517566 -Hs 8 -Hd -2 -Ni 8 -Nx 81.61 -Ny 43.98 -Nz 0.00 -Ne 9.999998 -Nl MAC -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001517573 -Hs 2 -Hd -2 -Ni 2 -Nx 41.74 -Ny 67.94 -Nz 0.00 -Ne 9.999998 -Nl MAC -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001517594 -Hs 9 -Hd -2 -Ni 9 -Nx 91.12 -Ny 40.62 -Nz 0.00 -Ne 9.999998 -Nl MAC -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001517595 -Hs 10 -Hd -2 -Ni 10 -Nx 87.40 -Ny 52.87 -Nz 0.00 -Ne 9.999998 -Nl MAC -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001517621 -Hs 6 -Hd -2 -Ni 6 -Nx 0.77 -Ny 43.55 -Nz 0.00 -Ne 9.999998 -Nl MAC -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001542510 -Hs 0 -Hd -2 -Ni 0 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne 99.999958 -Nl RTR -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001542510 -Hs 0 -Hd -2 -Ni 0 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne 99.999958 -Nl AGT -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001542516 -Hs 4 -Hd -2 -Ni 4 -Nx 68.35 -Ny 30.15 -Nz 0.00 -Ne 9.999998 -Nl RTR -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001542516 -Hs 4 -Hd -2 -Ni 4 -Nx 68.35 -Ny 30.15 -Nz 0.00 -Ne 9.999998 -Nl AGT -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001542529 -Hs 1 -Hd -2 -Ni 1 -Nx 39.92 -Ny 12.89 -Nz 0.00 -Ne 9.999998 -Nl RTR -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -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-t 0.001542566 -Hs 8 -Hd -2 -Ni 8 -Nx 81.61 -Ny 43.98 -Nz 0.00 -Ne 9.999998 -Nl RTR -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001542566 -Hs 8 -Hd -2 -Ni 8 -Nx 81.61 -Ny 43.98 -Nz 0.00 -Ne 9.999998 -Nl AGT -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001542573 -Hs 2 -Hd -2 -Ni 2 -Nx 41.74 -Ny 67.94 -Nz 0.00 -Ne 9.999998 -Nl RTR -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001542573 -Hs 2 -Hd -2 -Ni 2 -Nx 41.74 -Ny 67.94 -Nz 0.00 -Ne 9.999998 -Nl AGT -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001542594 -Hs 9 -Hd -2 -Ni 9 -Nx 91.12 -Ny 40.62 -Nz 0.00 -Ne 9.999998 -Nl RTR -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001542594 -Hs 9 -Hd -2 -Ni 9 -Nx 91.12 -Ny 40.62 -Nz 0.00 -Ne 9.999998 -Nl AGT -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001542595 -Hs 10 -Hd -2 -Ni 10 -Nx 87.40 -Ny 52.87 -Nz 0.00 -Ne 9.999998 -Nl RTR -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001542595 -Hs 10 -Hd -2 -Ni 10 -Nx 87.40 -Ny 52.87 -Nz 0.00 -Ne 9.999998 -Nl AGT -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001542621 -Hs 6 -Hd -2 -Ni 6 -Nx 0.77 -Ny 43.55 -Nz 0.00 -Ne 9.999998 -Nl RTR -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.001542621 -Hs 6 -Hd -2 -Ni 6 -Nx 0.77 -Ny 43.55 -Nz 0.00 -Ne 9.999998 -Nl AGT -Nw --- -Ma 0 -Md 3000000 -Ms ffff0008 -Mt 0 -Is 3.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 0 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
s -t 0.025263500 -Hs 5 -Hd -2 -Ni 5 -Nx 22.75 -Ny 26.87 -Nz 0.00 -Ne 9.999673 -Nl AGT -Nw --- -Ma 0 -Md 5000000 -Ms 0 -Mt 0 -Is 5.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 1 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0
r -t 0.025263500 -Hs 5 -Hd -2 -Ni 5 -Nx 22.75 -Ny 26.87 -Nz 0.00 -Ne 9.999673 -Nl RTR -Nw --- -Ma 0 -Md 5000000 -Ms 0 -Mt 0 -Is 5.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 1 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0
s -t 0.025263500 -Hs 5 -Hd -2 -Ni 5 -Nx 22.75 -Ny 26.87 -Nz 0.00 -Ne 9.999673 -Nl RTR -Nw --- -Ma 0 -Md 5000000 -Ms 0 -Mt 0 -Is 5.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 1 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0
s -t 0.025288500 -Hs 5 -Hd -2 -Ni 5 -Nx 22.75 -Ny 26.87 -Nz 0.00 -Ne 9.999673 -Nl MAC -Nw --- -Ma 0 -Md 5000000 -Ms ffff0008 -Mt 0 -Is 5.0 -Id -1.0 -It tcp -Il 21 -If 0 -Ii 1 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0
N -t 0.025289 -n 1 -e 9.999671
N -t 0.025289 -n 6 -e 9.999671
N -t 0.025289 -n 3 -e 9.999673
N -t 0.025289 -n 0 -e 99.999916
N -t 0.025289 -n 2 -e 9.999671
N -t 0.025289 -n 4 -e 9.999671
N -t 0.025289 -n 7 -e 9.999671
N -t 0.025289 -n 8 -e 9.999671
N -t 0.025289 -n 10 -e 9.999671
N -t 0.025289 -n 9 -e 9.999671
r -t 0.025372573 -Hs 1 -Hd -2 -Ni 1 -Nx 39.92 -Ny 12.89 -Nz 0.00 -Ne 9.999671 -Nl MAC -Nw --- -Ma 0 -Md 5000000 -Ms ffff0008 -Mt 0 -Is 5.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 1 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.025372592 -Hs 6 -Hd -2 -Ni 6 -Nx 0.77 -Ny 43.55 -Nz 0.00 -Ne 9.999671 -Nl MAC -Nw --- -Ma 0 -Md 5000000 -Ms ffff0008 -Mt 0 -Is 5.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 1 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.025372619 -Hs 0 -Hd -2 -Ni 0 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne 99.999916 -Nl MAC -Nw --- -Ma 0 -Md 5000000 -Ms ffff0008 -Mt 0 -Is 5.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 1 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
r -t 0.025372650 -Hs 2 -Hd -2 -Ni 2 -Nx 41.74 -Ny 67.94 -Nz 0.00 -Ne 9.999671 -Nl MAC -Nw --- -Ma 0 -Md 5000000 -Ms ffff0008 -Mt 0 -Is 5.0 -Id -1.0 -It tcp -Il 1 -If 0 -Ii 1 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 1 -Po 0
 
Old 06-03-2015, 06:50 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Well, you can try finding a script in awk-and-perl_scripts_12.2014.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

'awk-and-perl_scripts_12.2014.tar.gz' is a package with ~140 scripts for analyzing trace files.


-
 
Old 06-05-2015, 07:39 AM   #3
ghadghoud
LQ Newbie
 
Registered: Apr 2015
Posts: 11

Rep: Reputation: Disabled
Hello everybody
I am trying to implement another protocol from leach but i can't see how the code of leach work .
When reading ns-leach.tcl , i can see that every thing happen there but in reality there are an agent who is doing this , no ?
Which classes or tcl code chose the cluster head and form the tdma schedule ? Thank you
 
Old 06-08-2015, 12:38 PM   #4
amita_s12
LQ Newbie
 
Registered: Feb 2015
Posts: 29

Original Poster
Rep: Reputation: Disabled
hi,
i have the same problem. i dont understand how the leach code works. i m simulating the code through mannasim.
can any one know the working.
 
  


Reply

Tags
mannasim, 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
error in mannasim generated tcl file amita_s12 Linux - Newbie 20 07-22-2015 01:53 AM
How do I edit Mannasim tcl file to generate Mobile nodes for WSN protocols talk_2_tosin Linux - Newbie 3 06-04-2015 05:47 AM
LEACH and dsdv in tcl file linuxUser123linux Linux - Software 1 03-05-2014 12:05 AM
a tcl sample file using leach saeed.m Linux - Software 2 07-15-2013 04:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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