[ns] How to use queue-monitor?
Padmaparna Haldar
haldar at ISI.EDU
Thu Feb 26 09:43:22 PST 2004
Look into test-suites that use queue monitoring under tcl/test.
Also from yr error below it seems the link object between node 0 and node
1 doesn't exist. did you create the link before calling monitor-queue
function.
--PAdma
On Thu, 26 Feb 2004, Jingyan Zhu wrote:
>
> Dear all,
>
> >From ns manual, it seems ns supports traces and monitors. However, it
> doesn't show how a monitors can be used clearly, apart from commond: $ns_
> monitor-queue n1 n2 qtrace optional:sampleinterval .
>
> When runing a 2-node wireless simulation, I added this commond after
> starting an ftp traffic. And then error turns up saying
>
> "can't read "link_(0:1)": no such variable while executing "$link_([$n1 id]:
> [$n2 id]) init-monitor $self $qtrace $sampleInterval"
> (procedure "_03" line 3)
> (Simulator monitor-queue line 3)
> invoked from within
> "$ns monitor-queue $node_(0) $node_(1) $qtrace"
> (file "two-nodes.tcl" line 108)
>
> Can anyone give me a hint how to solve this problem? I'd like to use
> monitors to count packets transmitted and received, and got stuck here :(
> Thanks a lot.
>
> Yours,
> Jingyan
>
> _________________________________________________________________
> Stay in touch with absent friends - get MSN Messenger
> http://www.msn.co.uk/messenger
>
--
------------------------------------------------
Be true to your work, your word, and your friend.
--Thoreau
Padmaparna Haldar
More information about the Ns-users
mailing list