[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Two problems in running ns2
> I try to describe my problems more details.
>
> I run ns2 on Linux Mandrake release 7.0 (Air) + CLE v0.9 (Yami)
> Kernel 2.2.14-15mdk on an i686
>
> Two questions:
> 1.
> I need node_(2) to send a message to node_(1).
>
> I do not know how to use Agent/Message.
>
> So I modify the example ping.tcl which is introduced in Marc Greis's
> tutorial.
>
> I just change [new Agent/Ping] to [new Agent/Message]
>
> It shows the error messages as follow:
>
> ns: _o56 send:
> (_o56 cmd line 1)
> invoked from within
> "_o56 cmd send"
> invoked from within
> "catch "$self cmd $args" ret"
> (procedure "_o56" line 2)
> (SplitObject unknown line 2)
> invoked from within
> "_o56 send"
>
I don't think you can just switch them like that. You might want
to take a look at ~ns/message.cc and ~ns/tcl/lib/ns-compat.tcl
to see the commands available.
> 2.
> I download the example wireless2.tcl in Marc Greis's tutorial.
>
> I can not run it in ns2.1b6 version.
>
> It shows
>
> uneven number of args
> (Object init line 1)
> invoked from within
> "addr2id init 1.0.0"
> (Class create line 1)
> invoked from within
> "AddrParams create addr2id 1.0.0"
> ("eval" body line 1)
> invoked from within
> "eval [list $self] create [list $m] $args "
> (procedure "AddrParams" line 5)
> (Class unknown line 5)
> invoked from within
> "AddrParams addr2id [$BS(0) node-addr]"
> invoked from within
> "for {set j 0} {$j < $opt(nn)} {incr j} {
> set node_($j) [ $ns_ node [lindex $temp \
> [expr $j+1]] ]
> $node_($j) base-station [AddrParams add..."
> (file "wireless2.tcl" line 138)
>
> I can run it in ns2.1b8 version but still it shows some warning message as
>
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> MAC_802_11: accessing MAC cache_ array out of range (src 3, dst 1, size 3)!
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
>
Take a look in the archive
http://www.isi.edu/nsnam/archive/ns-users/webarch/2000/msg02505.html
which kinda explained what this warning message means.
Kun-chan Lan