[Click] Token Bucket Policer

Ruetee Chitpranee rueteec at gmail.com
Tue Feb 14 16:26:47 EST 2012


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.


More information about the click mailing list