error in ns2: > MAC_802_11: accessing MAC cache_ array out of range ...
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
error in ns2: > MAC_802_11: accessing MAC cache_ array out of range ...
i run a wireless scenario with 3 node.it is so simple.but in output i see this message :
MAC_802_11: accessing MAC cache_ array out of range (src 2, dst 0, size2)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
The ns2 MAC setup is different in the various versions of ns-2.xx.
Example :
I have seen a similar error when attempting to run a simulation for ns-2.1*--ns-2.34 in ns-2.35.
I.e. simulations meant for older versions may not work in ns-2.35 .
A solution for your error ? Please attach your file.
Tcl files : Attach as name.tcl.txt
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← #3 .
Same result at using 1) $ ns235-malicious sm4.tcl
or 2) $ ns233-maodv sm4.tcl → →
MAC_802_11: accessing MAC cache_ array out of range (src 2, dst 0, size 2)!
i thinck i undrestand what the problem was. see the scenario, the .tcl file....i use 3 nodes but i write "set val(nn) 2" by correcting this to "set val(nn) 3" the problem solved.
thanks for your guideness.
after solveing this problem the scenario run successfully. but now i dont know why by running the scenario i have "segmentation fault" error. after sending RREPLY this error occure.
plz can you help me.thanks
Hallo, please help me for adding different energy for node0 to node1 1000, than node2 and node3 500. i have this sample code, thanks.
i have some error like this
MAC_802_11: accessing MAC cache_ array out of range (src 5, dst 4, size 4)!
r_junaedi@lenovo:~/ns2/experiment/11$ node 2 is not defined... node 3 is not defined...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.