[Click] Record queue length overtime

Cliff Frey cliff at meraki.com
Mon Mar 8 12:27:23 EST 2010


Jimmy,

Please always CC the click mailing list with your questions.

I don't have any experience with those elements.

Cliff

On Mon, Mar 8, 2010 at 8:38 AM, Jimmy <fanyang.scu at gmail.com> wrote:

> Hi Cliff,
>
> Thanks very much for your instruction. I will check those elements and
> see how they work.
>
> Btw, can you give me any advices on the exponential or poisson arrival
> rate source?
>
> Jimmy
>
> On Mon, Mar 8, 2010 at 2:06 AM, Cliff Frey <cliff at meraki.com> wrote:
> > You can easily do that with a Script element... you could use either
> 'read'
> > or 'print' to display the data.
> > If you wanted even more control, you could add a ControlSocket to your
> > config and then write a script that would access the ControlSocket.
> > Here is an example script element that should do what you want.
> > Cliff
> >
> > Script(wait 1.0, read ct.length, loop);
> >
> > On Sun, Mar 7, 2010 at 10:12 PM, Jimmy <fanyang.scu at gmail.com> wrote:
> >>
> >> Hello all,
> >>
> >> Using handlers, I know how to record the total queue length.
> >>
> >> -> ct :: Queue(50)
> >>
> >> -> TimedUnqueue(1)
> >>
> >> -> ccl :: Counter
> >>
> >> -> Print(TIMESTAMP true)
> >>
> >> -> Discard;
> >>
> >> DriverManager(pause,
> >> print >>log cnt.count,
> >> print >>log ct.length,
> >> print >>log ccl.count)
> >>
> >> Here, -> Print(TIMESTAMP true)  command can print received packets
> >> overtime on screen, I mean it can show when each packet is received.
> >>
> >> But in DriverManager, I can only record the number of packets I
> >> received when I stop this program.
> >>
> >> How can I record the overtime information of received packets or the
> >> number of packets in the queue? I mean is it possible to record the
> >> number of packets in the queue for every second?
> >>
> >> Another question is that are there any source elements relating to an
> >> exponential or poisson packets source (thus the arrival rate of
> >> packets is exponential or poisson distributed).
> >>
> >> Thank you very much for your help!
> >>
> >> --
> >> Best Regards,
> >>
> >> Jimmy
> >> _______________________________________________
> >> click mailing list
> >> click at amsterdam.lcs.mit.edu
> >> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> >
> >
>
>
>
> --
> Best Regards,
>
> Jimmy
>


More information about the click mailing list