[Click] Queue lost bytes

Eddie Kohler kohler at cs.ucla.edu
Wed Feb 24 20:03:12 EST 2010


Hi María,

Queue doesn't do this by default but you can make it work, because Queue has 
an optional second output for dropped packets.  Try:

... -> c::Counter -> q::Queue(20) -> ...
q[1] -> dropc::Counter -> Discard;

Now dropc.byte_count will have what you want.

You can pass the click user-level driver multiple -h arguments no problem.

Eddie


María Gómez wrote:
> Hi again,
> 
> I want to see how many bytes -no packets- lost Queue.
> I try
> 
> FromDump ($file, TIMING true, STOP true)
>   -> c::Counter
>   -> q:: Queue (20)
>   -> BandwidthRatedUnqueue (1 Mbps)
>   -> Queue
>   -> ToDevice(tun0)
> 
> q[1]-> cq::Counter -> Discard
> 
> but q.drops 2245 and cq.byte_count 0.
> 
> Other little question: i  want to know how to read several handlers, i make:
> ./click ../conf/file.click -h c.count -h q.drops -h ....
> Is there any way contracted?
> 
> Thanks,
> 
> María
> 
> 
> _________________________________________________________________
> Hay tantos ordenadores como personas. ¡Descubre ahora cuál eres tú!
> http://www.quepceres.com/
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the click mailing list