[Click] bandwidthshaper
Eddie Kohler
kohler at cs.ucla.edu
Wed May 16 00:56:08 EDT 2007
Hi povilas,
BandwidthShaper should be used in an entirely-pull context. Try one of the
following things:
(1) don't have a downstream queue.
->Queue()
->BandwidthShaper(3 Mbps)
->Print(shaper_output)
->...
(2) use BandwidthRatedUnqueue instead, which pulls packets at a given rate and
then pushes them downstream (a pull-to-push converter).
->Queue()
->BandwidthRatedUnqueue(3 Mbps)
->Print(shaper_output)
->...
Eddie
Povilas Germanavicius wrote:
> Good afternoon,
>
> I wanted to ask you how the element BandwidthShaper is used? for example if
> I want to shape packet traffic to 3 mb/s and then put everything that goes
> through to the Queue, like this:
> ...
> ->Queue()
> ->BandwidthShaper(3 Mbps)
> ->RTQueue::Queue(100)
> ->Print(shaper_output)
> ->output ...
>
> I think I should use some kind of element before RTQueue? Because now it
> just says that BandwidthShaper pull output 0 connected to Queue push input
> 0.
>
> Oh and another question is this output for wireless card is ok, when the
> input from ath0 was striped to IP (Strip(14)) ?:
>
> output::WifiEncap(0X00,
> 0:0:0:0:0:0)->SetTXRate(2)->ExtraEncap()->ToDevice(ath0)
>
> Thanks in advance,
More information about the click
mailing list