LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-28-2016, 01:14 PM   #1
cage679
LQ Newbie
 
Registered: Apr 2016
Posts: 2

Rep: Reputation: Disabled
Leach protocol


How can I generate nam and xgraph for the leach on NS-2.35?
 
Old 04-28-2016, 03:24 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,308

Rep: Reputation: 6008Reputation: 6008Reputation: 6008Reputation: 6008Reputation: 6008Reputation: 6008Reputation: 6008Reputation: 6008Reputation: 6008Reputation: 6008Reputation: 6008
Quote:
Originally Posted by cage679 View Post
How can I generate nam and xgraph for the leach on NS-2.35?
Read the "Question Guidelines" link in my posting signature. We'll be glad to help you with a specific problem, but you do have to show some effort of your own. What have you done/tried so far?

There is much in Google for "xgraph leach ns 2.35", with samples.
 
Old 04-28-2016, 05:32 PM   #3
cage679
LQ Newbie
 
Registered: Apr 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
I've worked with NS2 previously for simple MANET projects, and researched leach protocol on NS2, however most of answers found are confusing and others even imply that NAM does not support leach. I need to compare leach and leach-c. Can you give any pointers?
 
Old 05-03-2016, 07:24 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,321

Rep: Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581
NAM : Not supported by mannasim, leach, etc.

Xgraph plots :
$ xgraph leach.alive.txt
$ xgraph leach-c.alive.txt

INFO : About ns-2.35 + LEACH : Works with a 64bits OS only >>
>> http://www.linuxquestions.org/questi...-4175556129/#7

Converting **.alive to **.alive.txt : leach__nodes-alive.awk
>> http://www.linuxquestions.org/questi...-4175556129/#9

Build example http://www.linuxquestions.org/questi...4175556129/#11


-

Last edited by knudfl; 05-05-2016 at 05:11 PM.
 
Old 03-24-2017, 05:16 AM   #5
haitam09
LQ Newbie
 
Registered: Jan 2015
Posts: 26

Rep: Reputation: Disabled
rserve slot time

Please can someone help me how to reserve the "free slots time" transmission to another node member or to CH in the same cluster in ns-leach-c.tcl by TCL.
Thank you very much in advances.
 
Old 03-24-2017, 08:32 AM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,422
Blog Entries: 13

Rep: Reputation: 3740Reputation: 3740Reputation: 3740Reputation: 3740Reputation: 3740Reputation: 3740Reputation: 3740Reputation: 3740Reputation: 3740Reputation: 3740Reputation: 3740
Hi haitam09 and welcome to LQ.

Please note that you've re-opened a year old thread and I'm not sure your question is directly related to the original one. Either case, a possible different tactic here would have been to create a new question, but link to this or another question as a reference, as opposed to possibly confusing this existing, and long ago abandoned issue.

I feel that TB0ne's response in reply #2 is still applicable. Which is that you should read the question guidelines link from their signature. If you have disabled signatures, then you can access similar links by visiting the LQ Site FAQ which is also available on the right side menu of all LQ pages.

The main difference here is as opposed to performing a web search for the exact terms cited in their reply, you instead should substitute with terms applicable for the effort you are trying to do.

Please update the thread with further information about what you have tried on this topic and where you are stuck.

Remember that LQ members are not here to provide "on call" support. They are volunteers and also the way the LQ site works is that we are here to help you by way of guiding you towards a solution so you learn how to do these things independently in the future.
 
1 members found this post helpful.
  


Reply

Tags
leach ns235, ns2


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
problem with running leach protocol in ns2.34 leach.er Mohamed69 Linux - Software 14 04-16-2018 08:10 AM
how to implement a LEACH protocol using ns-2.30? Srihk Linux - Newbie 13 02-11-2015 11:03 AM
improve leach protocol khoshkalam Linux - Networking 1 05-04-2012 07:58 AM
Leach protocol anitha.r.u Linux - Newbie 16 04-02-2012 05:37 AM
protocol leach ezzati Linux - Newbie 5 05-03-2011 09:42 PM

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

All times are GMT -5. The time now is 06:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration