Re[2]: [LARTC] Why SFQ does not drops packets

Linux Advanced Routing and Traffic Control

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

 



Hello Wingtung.Leung,

Friday, June 01, 2001, 6:58:44 PM, you wrote:

WL> On Fri, 1 Jun 2001, Serguei I. Ivantsov wrote:

>> Please explain me why my class 10:300 does not drops packets?
>> My class is bounded and isolated - but 8kbit!=1783bps!!!
>>
>>
>> class cbq 10:300 parent 10:1 leaf 801b: rate 8Kbit (bounded,isolated) prio 5
>>  Sent 470737 bytes 388 pkts (dropped 0, overlimits 7465)
>>  rate 1783bps 1pps backlog 40p
>>   borrowed 0 overactions 290 avgidle -786633 undertime 612289

WL> I'm not sure what 1783bps means. If it is "bytes/sec" more packets should
WL> be dropped, if it is "bits/sec", everything seems to be ok.

Looking at the MRTG graph I can say that bps="bytes per second"

WL> How do you get that output? Is it documented somewhere, so I can try it?

To get the list of classes with details use "tc -s class ls dev eth0"
To get the list of qdiscs with details use "tc -s qdisc ls dev eth0"

If you want to check bandwidth consumed with every class use estimator
in class definition "est 1sec 4sec"

WL> tc class add dev eth0 parent 10:1 classid 10:300 est 1sec 4sec \
WL> cbq bandwidth 64Kbit rate \
WL> 8Kbit allot 1514 weight 1Kbit prio 5 maxburst 1 avpkt 1000 \
WL> bounded isolated

After number of tests I come to conclusion that the only queueing
discipline which can DROP packets and thereby throttle bandwith is
TBF. But it does not allow to throttle bandwith dynamically, does not
allow to relocate bandwith between classes:(

Please put me right if I wrong.

-- 
Best regards,
 Serguei                            mailto:admin@xxxxxxxxxxxxxxxx





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