LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-04-2019, 01:02 AM   #1
Asifkhan112
LQ Newbie
 
Registered: Nov 2019
Posts: 9

Rep: Reputation: Disabled
TMAC problem


i just change the code in file which is MAC to MAC/TMAC and this problem occur

num_nodes is set 10
can't read "val(tmac)": no such element in array
while executing
"$ns_ node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(tmac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val..."
(file "tmac.tcl" line 39)
 
Old 12-04-2019, 07:11 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,311

Rep: Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574
Please explain how you edited ns2 to do "tmac" :
No tmac, TMac, Tmac, TMAC is included by default.
 
Old 12-12-2019, 12:29 AM   #3
Asifkhan112
LQ Newbie
 
Registered: Nov 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled
i just edit the infra.tcl file inside the 802.11 folder
 
1 members found this post helpful.
Old 12-12-2019, 03:28 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,311

Rep: Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574
If you have read any of the answers here https://www.linuxquestions.org/quest...s2-4175664649/
... or some ns2 simulation files, you will know that a mac protocol is not entered this way:
-macType $val(tmac)
But with :
Code:
set val(mac)    Mac/TMac          ;# MAC type
Besides that, a protocols needs to be added to the simulator, like this
Code:
ns2/
├── mac/
│   ├── tmac.cc 
│   ├── tmac.h
├── common/
│   └── packet.h
├── Makefile.in
└── tcl/
    └── lib/
        ├── ns-default.tcl
        ├── ns-mobilenode.tcl
        └── ns-packet.tcl
What we know is that the AquaSim "underwatersensor/uw_mac/{tmac.cc, tmac.h}"
.. were edited from the original "TMAC time out mac {tmac.cc, tmac.h}"
.. to do also the underwater stuff.
?May be you can edit the AquaSim {tmac.cc, tmac.h} to work without the uw functions?

-
 
1 members found this post helpful.
  


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
Error to run tmac model in ns3 purobi Linux - Wireless Networking 1 06-18-2016 06:09 AM
UEFI problem, GRUB2 problem, blank screen problem, :( JackDinn Linux - Newbie 22 05-26-2015 02:57 PM
Do I have a path problem, an Apache2 problem or a Javascript problem or any other pro rblampain Linux - Networking 0 12-29-2010 04:50 AM
tbl Users.guide | troff tmac.n - > Users.fmtd causes fatal error. stf92 Linux - Newbie 0 07-05-2010 08:03 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration