LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 01-03-2015, 01:49 PM   #1
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
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)

what does it mean?
can anyone help me?
 
Old 01-03-2015, 03:21 PM   #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
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

-
 
Old 01-05-2015, 02:16 PM   #3
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
i use ns2.35 in mint.
i attach the tcl file.
Attached Files
File Type: txt sm4.tcl.txt (4.3 KB, 144 views)
 
Old 01-05-2015, 06:12 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 .

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)!

Please read the malicious / maodv examples,
aodv-malicious-examples-10.2013.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
.... and compare with your file (sm4.tcl) to find a solution.

-
 
Old 01-06-2015, 01:40 AM   #5
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
if i dont use malicious node in the scenario. i have the same message in output.
 
Old 01-06-2015, 04:37 AM   #6
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
Regular AODV examples :

aodv-examples-01.2015.tar.gz →
https://drive.google.com/file/d/0B7S...ew?usp=sharing
 
Old 01-06-2015, 11:28 AM   #7
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-06-2015, 11:32 AM   #8
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
Unhappy

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
 
Old 01-06-2015, 02:08 PM   #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
← #8 .

Please attach your edited file ( RREPLY ) : <new-name>.tcl.txt
 
Old 01-06-2015, 02:39 PM   #10
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
RREPLY is in aodv routing....
i solved this problem too.anyone that have "segmentation fault" error in ns2 can readthis site :
http://web.mit.edu/10.001/Web/Tips/t...mentation.html

it is so useful.

thanks a lot
 
1 members found this post helpful.
Old 01-06-2015, 02:50 PM   #11
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
← #10 .

What exactly was your solution ? ?

Please show your code before, and after the editing.
 
Old 01-06-2015, 02:51 PM   #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
... Sorry, repeated post #11




-

Last edited by knudfl; 01-06-2015 at 02:53 PM.
 
Old 05-16-2016, 10:35 AM   #13
rjuna
LQ Newbie
 
Registered: Nov 2015
Posts: 11

Rep: Reputation: Disabled
add energy for different node

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...
Attached Files
File Type: txt range2.tcl.txt (4.2 KB, 53 views)
 
  


Reply

Tags
ns2


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
How to change the tranmission range on the NS2 moreroz Linux - Software 0 07-25-2014 05:44 PM
Perl - How to stop range search at end of an array? DevonB Programming 1 12-07-2010 10:22 PM
Is there a way to print a range of a char array without a for loop? trist007 Programming 3 11-07-2010 09:15 AM
[SOLVED] shell script help: copying directory list into an array and then accessing the array richman1234 Linux - Newbie 6 07-25-2010 11:19 PM
"out of scan range" error when attempting to install etch on mac mini (ppc) HowDoIProgramIt Debian 2 05-27-2007 09:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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