[Click] Token Bucket Policer

Cliff Frey cliff at meraki.com
Wed Feb 15 13:38:41 EST 2012


Hi Ruetee,

Thanks for the bug report!  I just fixed this in mainline click, so if you
update to the latest version on github, it should fix the problem.

Cliff

On Tue, Feb 14, 2012 at 1:26 PM, Ruetee Chitpranee <rueteec at gmail.com>wrote:

> Hi,
>
> I'm trying to use *BandwidthRatedSplitter* as a *Token Bucket Policer *but
> the traffic never splited to output 1 (in any case) :(
> Can anybody help me please?  Thank you in advance.
>
>
> tb::BandwidthRatedSplitter(RATE 1 kbps, BURST_BYTES 1);
> udp::IPEncap(17, 1.0.0.2, 2.0.0.2);
> rs:: InfiniteSource(\<00000000>, LIMIT 10, BURST 10);
>
> rs -> udp -> BandwidthShaper(2 kbps) -> Unqueue(BURST -1) -> tb;
> tb[0] -> Print(ok,50) -> Discard;
> tb[1] -> Print(DROPPED,50) -> Discard;
>
> --
> Ruetee C.
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>


More information about the click mailing list