Error while running example in tcl script


I am working on ns-2.33 on linux RedHat 9.0 machine. I am trying to run an example for FTP application on wired network having 4 nodes. When I run using ns sample_2.tcl I get following error:

invalid command name "Queue/ms"
while executing
"Queue/ms create _o22 DropTail"
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
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Queue/$qtype $args"
("default" arm line 5)
invoked from within
"switch -exact $qtype {
ErrorModule {
if {[llength $args] > 0} {
set q [eval new $qtype $args]
else {
set q[new $qtype Fid]
intserv {
set qtyp..."
(procedure "_o3" line 14)
invoked from within
"$ns simplex-link $n0 $n2 5Mb 2ms DropTail"
(file "sample_2.tcl" line 13)

I don't understand how to deal with this error. Please help me with this. It is urgent! Please!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!