I am a beginner of ns2, and install the ns-2 version using
ns-allinone-2.29.2.tar.gz , there is gt-itm installed already in the
ns-2.29
i follow the readme file of the sgb2ns, and calling the create-topology proc
in the ts20.tcl, but failed,could anyone tell me the matter
,thanks a lot!
the process is as following:
creat a test.tcl as the readme file of the sgb2ns:
# ---------------file test.tcl------------------
set ns [new Simulator]
global node_
source ts20.tcl ;
create-topology ns node_ 1.5Mb
# ----------------------------------------------
and then command: ns test.tcl
and the excute result is :
creating nodes...
Creating links 0...
(_o4 cmd line 1)
invoked from within
"_o4 cmd duplex-link-of-interfaces _o11 _o47 1.5Mb 230ms DropTail"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o4" line 2)
(SplitObject unknown line 2)
invoked from within
"$ns duplex-link-of-interfaces $n(0) $n(12) $linkBW 230ms DropTail"
(procedure "create-topology" line 19)
invoked from within
"create-topology ns node 1.5Mb"
(file "ts20test.tcl" line 4)