LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-23-2015, 09:50 AM   #1
agkagk
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Rep: Reputation: Disabled
Unhappy Wireless Antnet integration problem with NS2.34 having Anthocnet already implemented


Dear All,
I have implemented Anthocnet on NS2.34 ubuntu 12.04 lts. Now i want to implement wireless antnet on the same for comparitive study. I found source code on "http://upcommons.upc.edu/pfc/bitstream/2099.1/10809/2/Annex%20Oriol%20L%C3%B3pez%20Varas.pdf" but it is not getting integrated. Can anyone please tell me how to achieve this.

Thanks in anticipation.
 
Old 02-23-2015, 11:36 AM   #2
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
Please copy all the new files into a folder, say "WAntNet-code/"

C++ : { Ndp.cc Ndp.h WAntNet.cc WAntNet.h WAntnet-ltm.cc
WAntNet-packet.cc WAntNet-packet.h WAntNet-rtable.cc }.

Scripts : { average-plots.sh config-experiment.sh
config-experiment.sh error-rate-plot.sh
gen-gnuplot-commands.sh optimal-hop-count.sh
purge-plots.sh run-experiment.sh }.


$ tar -cf WAntNet-code.tar WAntNet-code/
.. will make the package WAntNet-code.tar .
Please upload `WAntNet-code.tar´ to 'Google Docs',
then I may be lucky adding the missing code for :
common/packet.h, tcl/lib/ns-***.tcl, etc.


? Is there any further information ?
The pdf http://upcommons.upc.edu/pfc/bitstre...ez%20Varas.pdf
... seems to start with page 54.


-
 
Old 02-23-2015, 12:22 PM   #3
agkagk
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Original Poster
Rep: Reputation: Disabled
Unhappy Files uploaded on google drive:

Dear Sir,

Below is the link which i have shared :

https://drive.google.com/file/d/0B3O...ew?usp=sharing

Hope you will be able to download the file.
 
Old 02-23-2015, 01:15 PM   #4
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
← #3.

What's the idea with the six antnet* files ?
antnet.cc, antnet.h, antnet-ltm.cc, antnet-packet.cc, antnet-packet.h, antnet-rtable.cc

? Why rename to some generic names ?
I.e. there is already an ns2 add with similar names.



-

Last edited by knudfl; 02-23-2015 at 01:18 PM.
 
Old 02-23-2015, 01:57 PM   #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
.... And when it says :
#include "antnet.h"
#include "antnet-packet.h"
... in the WAntNet files, it is the headers ...
"antnet.h", "antnet-packet.h" from antnet.tar.gz
. http://code.google.com/p/antalgorithm/
. http://antalgorithm.googlecode.com/files/antnet.tar.gz
... and I don't think you can mix Anthocnet, SARA
... with Antnet + WAntNet.

What you can do, is to have a separate ns-allinone-2.34.
For Antnet + WAntNet.
You know you can have ~50 times ns-allinone-2.34, if you want to.

-

Last edited by knudfl; 02-23-2015 at 01:59 PM.
 
Old 02-23-2015, 09:47 PM   #6
agkagk
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Original Poster
Rep: Reputation: Disabled
Sir thanks for so much help, actually as you suggested i have integrated ANTNET and SARA seperately on different instances of NS 2.34 on the same OS and running fine. There are few difficulties,

1. How to implement WANTNET on the same instance of ns 2.34 on which ANTNET is implemented?
2. How to run these multiple instance of NS 2.34 together for comparision. Do i have make changes into bashrc file every time?
3. From where to get scenario files i.e. TCL files for SARA and how to execute them?

Awaiting for your helpful replies.

Last edited by agkagk; 02-24-2015 at 07:13 AM.
 
Old 02-24-2015, 07:25 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
← ref. #6.

WAntNet is an addition to Antnet, I think :
http://antalgorithm.googlecode.com/files/antnet.tar.gz
→ antnet.tar.gz
* https://code.google.com/p/antalgorithm/
****Hence the » #include "antnet.h" « in the WAntNet files !

And : You cannot mix Antnet+WAntNet with Anthocnet. ( I think.)


Besides that, the WAntNet code will need a rewrite.
Unless you can find a "pdf2txt" tool which keeps the c++ code formatting right.
Also : Some characters are usually missing in c++ code inside a pdf.
Example : underscore [ _ ] .
Like this : » #ifndef __ant_pkt_h__ «
... can become » #ifndef ant_pkt_h « in a pdf.


About the pdf http://upcommons.upc.edu/pfc/bitstre...ez%20Varas.pdf
? ? Where are the first 53 pages ? The pdf starts with page 54.

Please supply some more information about "WAntNet".


P.S. : Please read the new post to you here ...
#6 http://www.linuxquestions.org/questi...95#post5322495


-

Last edited by knudfl; 02-24-2015 at 07:32 AM.
 
Old 02-24-2015, 07:41 AM   #8
agkagk
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Original Poster
Rep: Reputation: Disabled
Smile Ref #7

Sir thanks for so much help,

I have installed three instances of NS 2.34 on the same machine

1. NS2.34 integrated with ANTHOCNET only,
2. NS2.34 integrated with SARA only
3. NS 2.34 integrated with ANTNET only.

All algorithms are on seperate instance of NS 2.34 not on the same one. While running the particular instance of NS2.34 i have to change path in a bashrc file.

Sir,
1. I have to compare ANTHOCNET with any ANT based algrithm for wireless networks, but ANTNET is for wired network, what will be the procedure to use ANTNET for wireless if any?

2. While executing the SARA algorithm if I use any wireless network scenario it gives me "segmentation fault error", is there any common scenario which can be used for comparing ANTHOCNET and SARA.

3. Other than these is there any ANT based algorithm for wireless network which can be used as comparision with ANTHOCNET?

Regards,
AGK.
 
Old 02-24-2015, 08:54 AM   #9
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. #8.
Quote:
While running the particular instance of NS2.34,
I have to change path in a bashrc file
You are not supposed to add anything to .bashrc, if it's your computer.
Read the answer to you, #5 here ...
http://www.linuxquestions.org/questi...-4175534792/#5
$ cp ns ns234_anthocnet+sara
$ sudo cp ns234_anthocnet+sara /usr/local/bin/

The same for the other ns2 versions :
$ cp ns ns234-sara
$ sudo cp ns234-sara /usr/local/bin/

$ cp ns ns234-anthocnet
$ sudo cp ns234-anthocnet /usr/local/bin/

$ cp ns ns234-antnet
$ sudo cp ns234-antnet /usr/local/bin/


* The text » "Please put ...., IMPORTANT NOTICES: You MUST put .. « :
* This old ~1999 text was meant for a "University Computer" only.
I.e. when you have no write or install permissions to /usr/,
...and cannot do # make install ( to /usr/local/bin/, etc.)

The executable 'ns' or 'ns-<any-naming> is hard coded ..
.. to know the location of it´s libraries :
ns-allinone-2.34/{ lib/* , bin/* }.
So at large, the *PATH text makes no sense at all.
( Might have been useful year ~1999 when added to ns-allinone-2*.
Not required for versions 2.26 ... 2.36 ).


-

Last edited by knudfl; 02-24-2015 at 09:12 AM.
 
Old 02-24-2015, 09:05 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
← ref. #8.
Quote:
2. While executing the SARA algorithm
if I use any wireless network scenario
it gives me "segmentation fault error",
is there any common scenario which can
be used for comparing ANTHOCNET and SARA.
»Segmentation fault « : Which file ?
Please upload the file to 'Google Docs'.


Repeat : Please supply some more information about "WAntNet".


-
 
Old 02-24-2015, 11:29 AM   #11
agkagk
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Original Poster
Rep: Reputation: Disabled
Unhappy Ref #7

Dear Sir,

Pages 1 to 53 are in below link for WANTNET

http://upcommons.upc.edu/pfc/bitstre...ez%20Varas.pdf

Regards,

AGK.
 
Old 02-24-2015, 11:56 AM   #12
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
← #11.

OK. Have you read the PDF, Body Projecte Oriol López Varas.pdf ?
§ 6-Conclusion
""After the simulations made with NS-2 between WAntNet and AODV,
WAntNet turns to be not as good as expected.""
etc. etc.
 
Old 02-24-2015, 12:22 PM   #13
agkagk
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Original Poster
Rep: Reputation: Disabled
Unhappy Ref #11

Dear Sir,

I want to prove the same thing in comparison with ANTHOCNET kindly help me. Means comparison of ANTHOCNET and WANTNET.

Regards,
AGK
 
Old 02-24-2015, 01:17 PM   #14
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. #13.

Then please fix the C++ code. ( And don't change the file names.)
→ → →
Ndp.cc, Ndp.h, WAntNet.cc, WAntNet.h, WAntnet-ltm.cc,
WAntNet-packet.cc, WAntNet-packet.h, WAntNet-rtable.cc


-
 
Old 02-28-2015, 06:58 AM   #15
beiinnovative
LQ Newbie
 
Registered: Dec 2014
Posts: 17

Rep: Reputation: Disabled
Hi
While trying to run my scenario file with AntHocNet, I am getting this error "Segmentation fault (core dumped)"
How to fix it? This works fine for other routing protocols.Please help as soon as possible.
Thank you.
 
  


Reply

Tags
anthocnet, 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
NS2 2.35: Antnet must Linux - Software 14 05-26-2017 07:17 AM
code of CONFIDANT implemented in ns2 dorra Linux - Newbie 14 02-24-2014 12:24 PM
How the BECAN sheme is implemented using NS2 shahina Linux - Wireless Networking 1 07-20-2013 03:00 AM
[NS2] the RSS & link_events code in MIH implemented by NIST RSM_smile Linux - Newbie 0 09-26-2012 08:25 AM

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

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