LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-21-2018, 08:54 AM   #1
swagatika pradhan
LQ Newbie
 
Registered: Feb 2018
Posts: 1

Rep: Reputation: Disabled
can anybody send me the tcl code for cluster creation in ns2 for my research work


can any body help me with the tcl code for cluster formation in ns2
 
Old 02-21-2018, 09:01 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 20,710

Rep: Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090
Quote:
Originally Posted by swagatika pradhan View Post
can any body help me with the tcl code for cluster formation in ns2
No, we will not. Read the "Question Guidelines" link in my posting signature. We're happy to help with problems or questions, but asking us to look things up for you and send you code for **YOUR RESEARCH PROJECT** is plain rude. This is for your school work, so show effort of your own.
 
Old 02-21-2018, 11:46 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,104

Rep: Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489
@swagatika pradhan : Welcome to LQ.

WSN examples : wsn-ex-11.17.tar.gz
Clustering examples : clustering-examples-12.17.tar.gz
WSN clustering examples : mannasim-examples-01.18.tar.gz
Link, all examples https://drive.google.com/drive/folde...Ws?usp=sharing

Mannasim https://github.com/paultsr/ns-allinone-2.35 → "ns2.35 mannasim patched".
Code:
$ git clone https://github.com/paultsr/ns-allinone-2.35.git
$ cd ns-allinone-2.35/ 
$ ./install
$ cd ns-2.35/ 
$ cp ns ns235-mannasim
$ sudo cp ns235-mannasim /usr/local/bin/

------------- Simulation ----------------
$ ns235-mannasim mannasim-rede-plana.tcl 
$ ns235-mannasim mannasim-rede-hierarquica.tcl
 
Old 07-01-2018, 01:31 PM   #4
Atul Tiwari
LQ Newbie
 
Registered: Jul 2018
Posts: 2

Rep: Reputation: Disabled
Smile

sir, can you please help me too ? with ns2 !
 
Old 07-01-2018, 02:07 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 9,917
Blog Entries: 7

Rep: Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442
Quote:
Originally Posted by Atul Tiwari View Post
sir, can you please help me too ? with ns2 !
ah, a variation of
"Give somebody an inch, and they will take a mile."
 
Old 07-01-2018, 03:36 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 20,710

Rep: Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090
Quote:
Originally Posted by Atul Tiwari View Post
sir, can you please help me too ? with ns2 !
We can help you if you POST A QUESTION...but we aren't the place to come to get personalized, one-on-one tutorials, have things looked up for you, or have your 'research' done for you.

Post your efforts and what your specific question is, and we will be happy to help. Otherwise, you can free to perform your own research.
 
Old 07-01-2018, 07:14 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,104

Rep: Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489
Post #4, @Atul Tiwari : Welcome to LQ.

There's a thousand things you can do with ns2.
What are you doing ? And which issues have you got ?

Important information : Please specify your OS.
OS name and version, please.

-
 
Old 07-02-2018, 08:04 AM   #8
Atul Tiwari
LQ Newbie
 
Registered: Jul 2018
Posts: 2

Rep: Reputation: Disabled
@ondoho , @TBOne , I am sorry , but i am new to all this , i am more of an IRC person myself , plus i am just 17 and not a expert in Linux like you guys , and I am not doing any research or something , I am just learning ns2 and ns3 , and I stuck so I thought i'd come and ask .

@kundfl Sir thanks for welcome , I am using ns allinone 2.35 , In ubuntu 18.04 Bionic Beaver , here I have to implement a scenario , here i cannot understand what to use , LEACH from MIT or MANNASIM LEACH protocol , And I am sorry for asking the question like I asked before .

Last edited by Atul Tiwari; 07-02-2018 at 09:58 AM.
 
Old 07-02-2018, 09:05 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,104

Rep: Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489
Re #8.

You cannot build the `MIT leach“ with Ubuntu 18.04 ...
See posts #1007, #1009 here
https://www.linuxquestions.org/quest...68/page68.html

However, you can install an executable 'ns' built with Ubuntu 10.04 - i386:
leach-pegasis-ns_2.34-ubuntu10_i386.deb ( 8.5 MB )
https://drive.google.com/file/d/13P9...ew?usp=sharing
Provides /usr/local/bin/{ ns, ns234-leach }.


Mannasim, Ubuntu 18.04 - amd64 :
Code:
sudo apt install g++-4.8

git clone https://github.com/paultsr/ns-allinone-2.35.git
cd ns-allinone-2.35/
export CC=gcc-4.8 CXX=g++-4.8 && ./install
cd ns-2.35/
cp ns ns-mannasim
sudo cp ns-mannasim /usr/local/bin/

---------- Simulation -------------
ns-mannasim mannasim-rede-plana.tcl
Note 1:Note 2 : There is one default simulation only with MIT leach. Small variations can be done.

Mannasim : You can make your own simulations.
Two leach examples are shown in `mannasim-examples-01.18.tar.gz“
https://drive.google.com/file/d/1Iw_...ew?usp=sharing

-

Last edited by knudfl; 07-02-2018 at 10:46 AM.
 
  


Reply

Tags
leach, mannasim-ns235, ns2, wsn


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
requesting for tcl code for leach protocol in ns2 jyotsna123 Linux - Wireless Networking 2 02-12-2018 08:49 AM
NS2, need TCL code chilamanda Linux - Software 2 10-03-2013 04:10 PM
want a ns2 program code in tcl MONICA Linux - Wireless Networking 1 04-23-2012 06:49 PM
increase of traffics in tcl code for ns2 Madhu S H Linux - Software 0 10-11-2011 04:46 AM
tcl code for ns2 simulation shanky Programming 2 08-10-2011 12:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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