Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I am new to ns2, and i have installed ns2.35 on ubuntu 14.0.4. After so many days i successfully installed ns2 and some example scripts are running successfully. I am trying to run "Antnet" ( its code i found online ) on ns2.35, but i'm getting some errors which i am not able to solve.
The error is:
--------------------------------------------------------------------------------------
invalid command name "Agent/Antnet"
while executing
"Agent/Antnet create _o386 0"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/Antnet $i"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $sz} {incr i} {
set nn($i) [ new Agent/Antnet $i]
}"
(file "antnet2.tcl" line 42)
----------------------------------------------------------------------------------------------
I have checked Agent antnet is is added in ns-packet.tcl and ns-lib.tcl .
Any help would be appreciated. Thankyou so much.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Quote:
invalid command name "Agent/Antnet"
... Means : No Antnet was compiled into the executable 'ns'.
HOWTO build Antnet : Posts #2, #4 >> http://www.linuxquestions.org/questi...et-4175532576/
>> The simulation : $ ns235-antnet antnet*.tcl
I.e. to be sure the right 'ns' is used : Please use the ns235-antnet command.
I tried using the patch for ns2.35 but as i have already did the changes manually in all the files, the patch gave errors. I checked and the changes are same.
i also tried running byy : $ns235-antnet antnet.tcl instead of 'ns'
it gave the following error:-
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o33: no target for slot 4294967295
_o33 type: Classifier/Hash/Dest
content dump:
classifier _o33
0 offset
0 shift
1073741823 mask
1 slots
slot 7: _o405 (Classifier/Port)
-1 default
---------- Finished standard no-slot{} default handler ----------
What does this mean? I googled it, it says ns is trying to send a packet to an object which does not exist. but i am not able to locate the error.
I tried other scripts, the script with 2 nodes ( Pradeepkumar-antnet.tcl )works but ring.tcl doesn't and it gives the same error.
I need to use antnet for my dissertation. Is it okay to continue working on antnet and making it work?
CentOS 6.8 - i386 can even do antnet.tcl OK.
(First time success with antnet.tcl for many years.
I guess it must have worked once with some very old OS, e.g. CentOS 4. Ubuntu 4.x?)
Your replies have been really helpful.
So, antnet doesn't work and may not work because of the version of ubuntu I am using.
Should I change my OS or start working on anthocnet? I would really appreciate if you could advice me here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.