[ns] How to use queue-monitor?
Padmaparna Haldar
haldar at ISI.EDU
Thu Feb 26 10:10:42 PST 2004
I think the queue monitor is supported for wired links only.I'm not sure
there's anything parallel for wireless nodes as well.
--PAdma
On Thu, 26 Feb 2004,Jingyan Zhu wrote:
> Thank you very much for your reply. I read the test-suite-monitor.tcl with
> your advice, it seems to be under wired network simulation. However, i am
> simulating ad-hoc wireless network, so I didn't create links between nodes.
> Does queue-monitor only suitable for wired network, or I should create links
> in wireless network inorder to get queue-monitor?
>
> Thanks again.
> Jingyan
>
>
> >From: Padmaparna Haldar <haldar at ISI.EDU>
> >To: Jingyan Zhu <queena53 at hotmail.com>
> >CC: ns-users at ISI.EDU
> >Subject: Re: [ns] How to use queue-monitor?
> >Date: Thu, 26 Feb 2004 09:43:22 -0800 (PST)
> >
> >
> >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
> >
>
> _________________________________________________________________
> Use MSN Messenger to send music and pics to your friends
> 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