LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-16-2015, 02:00 AM   #1
Rango4
LQ Newbie
 
Registered: Oct 2015
Posts: 6

Rep: Reputation: Disabled
Question Csma/ca giving error in ns2


as i enter the ns command below to my terminal to run the tcl script using csma/ca as mac layer it gives me error..

shabeer@shabeer-Aspire-5742:~/Desktop/cross_test$ ns cross_aodv_test.tcl
num_nodes is set 50
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
invalid command name "Mac/Csma/Ca"
while executing
"Mac/Csma/Ca create _o19 "
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 $mactype"
(procedure "_o14" line 10)
(Node/MobileNode add-interface line 10)
invoked from within
"$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_"
(procedure "_o3" line 83)
(Simulator create-wireless-node line 83)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
}"
(file "cross_aodv_test.tcl" line 79)
 
Old 10-16-2015, 05:32 AM   #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
Welcome to LQ. Please edit post #1 to `CODE Tags' : [code]error text[/code]
http://www.linuxquestions.org/questi....php?do=bbcode
Editing post #1 : The 'Edit' button in post #1.

"cross_aodv_test.tcl" : Unknown file.
You can attach the file as cross_aodv_test.tcl.txt
* Attachments : The paper clip tool in the 'Advanced Editor'.

The default `Csma/Ca' examples :
csma-ca.tcl, (csma.tcl), mac-test.tcl, miptest.tcl, mtp.tcl, snoop.tcl
* See "all_tcl-examples-2.tar.gz" ( ~2,000 ns2 simulation files, 41.8 MB )
https://drive.google.com/file/d/0B7S...ew?usp=sharing

All the above default csma examples are supposed to run with a default unmodified 'ns'.
Not necessarily with a modified 'ns' ('ns-<new-name>').
? Did you do any changes to your ns-2.xx ? Which ns2 version is it about ?


-

Last edited by knudfl; 10-16-2015 at 05:50 AM.
 
  


Reply

Tags
csma, ns2



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
validation error in ns2.34 on ubuntu12.04--./validate is giving unexpected result banerjee Ubuntu 1 10-27-2014 03:14 PM
How to add Mac/csma to ns2? lintreesa Linux - Newbie 0 08-07-2014 10:44 AM
ns2 installation on ubuntu with olsr patch giving following error bhushan0710 Linux - Newbie 8 01-21-2013 04:09 AM

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

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