Wireless Antnet integration problem with NS2.34 having Anthocnet already implemented
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
$ 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.
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?
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.
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?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← 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/
* 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 ).
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← 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".
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← #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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← 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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.