Best way to limit the rate

Linux Advanced Routing and Traffic Control

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

 



Suppose you need to limit the rate of the traffic that flows in an HTB
leaf class to 32kbits/sec

I can think of three ways to do it:

1.
make rate = ceil = 32kbit when creating this HTB leaf class.  A pfifo
qdisc can then be attached to this HTB leaf class to reduce the queue
size, and therefore reduce the latency of the packets.

2.
Attach a TBF qdisc to this HTB leaf class, and configure it properly.

3.
Have a policing filter before the HTB leaf class that will limit the
rate of the traffic before it enters the HTB leaf class.

Which one of these methods is the best?
My tests have shown that the latency of the packets is dramatically
better with method 3.  Anybody has an idea why this is the case?

--
Mathieu Deziel

_______________________________________________
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