From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomasz Wrona Date: Tue, 03 May 2005 21:34:31 +0000 Subject: [LARTC] Unshapeable traffic Message-Id: <1294422007.20050503233431@wp.pl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hello, Could somebody explain following issue ? I set up htb class on outgoing external interface to shape p2p upload traffic. I limited it to 4Mbit/s. I also set up iptables counters chains in FORWARD chain to calculate traffic generated by p2p and others. While tc stats show that p2p shaping class keep defined 4Mbit traffic, iptables counters show me that p2p traffic exceed traffic to 150% and is about 6Mbit/s. Ofcourse I revised twice all configs but no mistake found. Whereas tc stats show some strange thing [class for p2p]: class htb 1:18 parent 1:10 leaf 18: prio 3 rate 1500Kbit ceil 4Mbit burst 3474b cburst 6599b Sent 17192942388 bytes 13525239 pkts (dropped 6936086, overlimits 0) rate 501604bps 392pps backlog 90p lended: 5070369 borrowed: 8454780 giants: 0 tokens: -4830 ctokens: -14550 I mean that dropped packets is about half of total sent pkts. So I realize that's why iptables counters, which are "before" outgoing traffic shaping, show just 6Mbit [100%+50%(dropped) traffic] instead of defined 4Mbit. OK, but why traffic doesn't slow down due to shaping and still assail upload ? [I tried sqf and red qdisc attached to class]. Regards tw -- _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc