Re: htb limiting trouble: no overlimit or dropped packets

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 17 Oct 2002, Stef Coene wrote:

> Htb nor cbq will be perfectly shaping.  So try ceil 57 and see what happens.
> Go as low as needed untill you can see the difference.  You have to do this.
> If you don't, you are filling the buffers of the modem and it will be the
> modem that controls the link.

I do not require perfect shaping. The problem is, that traffic doesn't
seem to be shaped at all!

> Also, make the sum of the rates from the classes equal to the rate.  If you
> have ceil 64 kbit, all classes will be able to share from each other.  So if
> one class is not using all it's bandwidth, an other class can borrow the
> unused bandwidth.

I'll try this.

> It's limited, but you give the traffic full bandwidth because you specified
> ceil 64kbit.  Try ceil 10kbit and you will be limited at 10kbit.

I don't think it is limited because upload speed _exceeds_ the ceil rate!

Please correct me if I'm wrong with the following:
I've create a qdisc and class with:

tc qdisc add dev lo root handle 1: htb default 20
tc class add dev lo parent 1:  classid 1:1  htb rate 64kbit ceil 64kbit

Now, if my actual uplink speed is larger (512 kbit/s), traffic should be
shaped to the desired rate (64 kbit/s), right?

But for me upload traffic is still at full speed of 512 kbit/s.
How do I prevent this?

> See www.docum.org for more script/info about shaping.

Thanks for the reference!

Regards, Walter

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux