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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 > >> [email protected] > >> https://amsterdam.lcs.mit.edu/mailman/listinfo/click > > > > > > > > -- > Best Regards, > > Jimmy > _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
