[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: more info. on qmonitors.
>
> From: [email protected] (Kedarnath Poduri)
> To: [email protected]
> Subject: more info. on qmonitors.
> Date: Mon, 24 Nov 1997 09:44:01 PST
>
> hi kevin,
>
> The reason why I had to use both qmonitors and flow monitors is
> to obtain avg. Qsizes along with per flow statistics. When I set up a Q monti
or,
> I see that a bytesInt_ and pktsInt_ are also instantiated and average Q sizes
> etc. can be obtained using that. However when I set up a flowmonitor, bytesIn
t_
> and pktsInt_ are not instantiated and hence when I try to obtain a bytesInt_
for
> this monitor I get a null object. Since flow monitors are a subclass of
> qmonitors how is that bytesInt_ is supported for the superclass and not for t
he
> subclass?
>
> Thanks,
>
> kedar
Yes, it appears that the ns library routine "init-monitor" installs
a queue-monitor on a link and adds the bytes/pkts integrator object
your are looking for; this isn't built-in for flow monitor
installation. So, for now, try this, assuming "fmon" is your
flow-monitor:
$fmon set-bytes-integrator [new Integrator]
$fmon set-pkts-integrator [new Integrator]
The only reservation I have about this is that it won't set
the instvars "bytesInt_" and "pktsInt_" in the SimpleLink object...
but I have a feeling it might work for you nonetheless. Give it a try
and see what happens :)
- K