Re: tc not matching

Linux Advanced Routing and Traffic Control

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

 



Andy Furniss wrote:
I assume you changed src to dst in the match.
Yes I did this some time ago.
Are you testing downloads from the wan or hosted on the box doing the shaping?
All downloads are coming from the WAN via eth1 - nothing else runs on this box except NAT and shaping.
After an overrate download can you post the output of -

tc -s class ls dev eth0 | grep "parent 1:X" -A 4

changing the X in "parent 1:X" to one less than the last part of the IP address of the test machine.
Results appended. Sadly everything seems to show zero bytes. I checked that everything is flowing through the correct interface, and yes it appears to do so. This box has 3 interfaces. eth0 is the one facing the NAT clients, eth1 is the public internet connection and eth2 is a management interface. Only ssh traffic to my workstation is flowing on eth2. I see two-way FTP traffic flowing on eth1 (I am downloading large files from an FTP server for testing) but on eth0, i only see traffic LEAVING the NAT clients and entering my shaping box. I have no idea why I don't see traffic with destination of the NAT clients. There is no way that the traffic could be "leaking" around my shaping box - eth0 is physically connected to a 5 port switch with my test clients on.
When I actually went to the console of the box earlier, there was loads of output from your script echoed to the console, each one saying that the quantum was too small and I should consider adjusting r2q. I don't really understand what this means.
That shouldn't really hurt too much, to fix it you could ether add quantum 1514 to each of the two child classes or r2q 2 to the root class.
Adding r2q seemed to work.
FWIW I tried browsing with this setup and downloading aswell and it's not very nice with such a long queue. An ISP/teleco would never have that long a fifo on a 128kbit line. It would be better to add an sfq to the bulk class or limit the length of the fifo.
Sorry for such a simplistic question - how might this be done? However I'm not overly worried about making the quality of service perfect - I just need it to be limited bandwidth. The reason why I want such a restricted service is because the shaped NAT clients of this box are going to be the "naughty" users on the university network who will have their 100Mbit service reduced to 128kbit for a week as punishment for rulebreaking etc. So if people complain about the occasional dropped packet - they shouldn't have been downloading copyright material in the first place!

------------------------
Jonathan Gazeley
ResNet | Wireless & VPN Team
Information Systems & Computing
University of Bristol
------------------------

[root@pokey ~]# tc -s class ls dev eth0 | grep "parent 1:14" -A 4 class htb 1:b148 parent 1:148 prio 1 rate 28000bit ceil 128000bit burst 1603b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 458000 ctokens: 101000
--
class htb 1:a149 parent 1:149 prio 0 rate 100000bit ceil 128000bit burst 1612b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 128960 ctokens: 101000
--
class htb 1:a148 parent 1:148 prio 0 rate 100000bit ceil 128000bit burst 1612b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 128960 ctokens: 101000
--
class htb 1:b149 parent 1:149 prio 1 rate 28000bit ceil 128000bit burst 1603b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 458000 ctokens: 101000
--
class htb 1:b146 parent 1:146 prio 1 rate 28000bit ceil 128000bit burst 1603b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 458000 ctokens: 101000
--
class htb 1:a147 parent 1:147 prio 0 rate 100000bit ceil 128000bit burst 1612b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 128960 ctokens: 101000
--
class htb 1:a146 parent 1:146 prio 0 rate 100000bit ceil 128000bit burst 1612b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 128960 ctokens: 101000
--
class htb 1:b147 parent 1:147 prio 1 rate 28000bit ceil 128000bit burst 1603b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 458000 ctokens: 101000
--
class htb 1:b144 parent 1:144 prio 1 rate 28000bit ceil 128000bit burst 1603b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 458000 ctokens: 101000
--
class htb 1:a145 parent 1:145 prio 0 rate 100000bit ceil 128000bit burst 1612b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 128960 ctokens: 101000
--
class htb 1:a144 parent 1:144 prio 0 rate 100000bit ceil 128000bit burst 1612b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 128960 ctokens: 101000
--
class htb 1:b145 parent 1:145 prio 1 rate 28000bit ceil 128000bit burst 1603b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 458000 ctokens: 101000
--
class htb 1:b142 parent 1:142 prio 1 rate 28000bit ceil 128000bit burst 1603b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 458000 ctokens: 101000
--
class htb 1:a143 parent 1:143 prio 0 rate 100000bit ceil 128000bit burst 1612b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 128960 ctokens: 101000
--
class htb 1:a142 parent 1:142 prio 0 rate 100000bit ceil 128000bit burst 1612b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 128960 ctokens: 101000
--
class htb 1:b143 parent 1:143 prio 1 rate 28000bit ceil 128000bit burst 1603b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 458000 ctokens: 101000
--
class htb 1:b14 parent 1:14 prio 1 rate 28000bit ceil 128000bit burst 1603b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 458000 ctokens: 101000
--
class htb 1:b140 parent 1:140 prio 1 rate 28000bit ceil 128000bit burst 1603b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 458000 ctokens: 101000
--
class htb 1:a141 parent 1:141 prio 0 rate 100000bit ceil 128000bit burst 1612b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 128960 ctokens: 101000
--
class htb 1:a14 parent 1:14 prio 0 rate 100000bit ceil 128000bit burst 1612b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 128960 ctokens: 101000
--
class htb 1:a140 parent 1:140 prio 0 rate 100000bit ceil 128000bit burst 1612b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 128960 ctokens: 101000
--
class htb 1:b141 parent 1:141 prio 1 rate 28000bit ceil 128000bit burst 1603b cburst 1616b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0
tokens: 458000 ctokens: 101000


_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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