Created
April 2, 2012 00:31
-
-
Save PhirePhly/2279687 to your computer and use it in GitHub Desktop.
WRT54GL Tomato QOS Statistics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tc -s class show dev vlan1 | |
class htb 1:1 root rate 320000bit ceil 320000bit burst 2000b cburst 2000b | |
Sent 12038295 bytes 21322 pkts (dropped 0, overlimits 0) | |
rate 322184bit 70pps | |
lended: 14177 borrowed: 0 giants: 0 | |
tokens: -4744 ctokens: -4744 | |
class htb 1:10 parent 1:1 leaf 10: prio 1 rate 224000bit ceil 320000bit burst 1879b cburst 2000b | |
Sent 339637 bytes 5909 pkts (dropped 0, overlimits 0) | |
rate 5096bit 11pps | |
lended: 5909 borrowed: 0 giants: 0 | |
tokens: 53598 ctokens: 39977 | |
class htb 1:20 parent 1:1 leaf 20: prio 2 rate 64000bit ceil 320000bit burst 1680b cburst 2000b | |
Sent 560352 bytes 569 pkts (dropped 0, overlimits 0) | |
rate 5912bit 2pps | |
lended: 437 borrowed: 132 giants: 0 | |
tokens: 27853 ctokens: 12125 | |
class htb 1:30 parent 1:1 leaf 30: prio 3 rate 16000bit ceil 320000bit burst 1620b cburst 2000b | |
Sent 2123925 bytes 1510 pkts (dropped 0, overlimits 0) | |
rate 80bit | |
lended: 127 borrowed: 1383 giants: 0 | |
tokens: 620954 ctokens: 38831 | |
class htb 1:40 parent 1:1 leaf 40: prio 4 rate 9000bit ceil 288000bit burst 1610b cburst 1959b | |
Sent 7610440 bytes 12369 pkts (dropped 0, overlimits 0) | |
rate 266160bit 53pps backlog 1p | |
lended: 558 borrowed: 11810 giants: 0 | |
tokens: -364541 ctokens: 25305 | |
class htb 1:50 parent 1:1 leaf 50: prio 5 rate 6000bit ceil 272000bit burst 1606b cburst 1939b | |
Sent 1410379 bytes 970 pkts (dropped 0, overlimits 0) | |
rate 49904bit 4pps backlog 4p | |
lended: 114 borrowed: 852 giants: 0 | |
tokens: -1451553 ctokens: 11661 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ifconfig | |
br0 Link encap:Ethernet HWaddr 00:1A:70:E6:87:4C | |
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:64506638 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:79901216 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:0 | |
RX bytes:518027173 (494.0 MiB) TX bytes:2584473087 (2.4 GiB) | |
eth0 Link encap:Ethernet HWaddr 00:1A:70:E6:87:4C | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:104242785 errors:77 dropped:0 overruns:57 frame:57 | |
TX packets:93324258 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:100 | |
RX bytes:3961715477 (3.6 GiB) TX bytes:752853819 (717.9 MiB) | |
Interrupt:4 Base address:0x1000 | |
eth1 Link encap:Ethernet HWaddr 00:1A:70:E6:87:4E | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:46033759 errors:0 dropped:0 overruns:0 frame:33124608 | |
TX packets:63130652 errors:5365 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:100 | |
RX bytes:34467487 (32.8 MiB) TX bytes:616594404 (588.0 MiB) | |
Interrupt:2 Base address:0x5000 | |
lo Link encap:Local Loopback | |
inet addr:127.0.0.1 Mask:255.0.0.0 | |
UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1 | |
RX packets:26059 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:26059 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:0 | |
RX bytes:2616766 (2.4 MiB) TX bytes:2616766 (2.4 MiB) | |
vlan0 Link encap:Ethernet HWaddr 00:1A:70:E6:87:4C | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:36121261 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:42338574 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:0 | |
RX bytes:2435383047 (2.2 GiB) TX bytes:1822446838 (1.6 GiB) | |
vlan1 Link encap:Ethernet HWaddr 00:1A:70:E6:87:4D | |
inet addr:172.16.1.12 Bcast:172.16.255.255 Mask:255.255.0.0 | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:68121524 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:50985684 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:0 | |
RX bytes:3944929596 (3.6 GiB) TX bytes:3225374277 (3.0 GiB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# iptables -t mangle -L QOSO | |
Chain QOSO (2 references) | |
target prot opt source destination | |
BCOUNT 0 -- anywhere anywhere | |
CONNMARK 0 -- anywhere anywhere CONNMARK restore mask 0xff | |
RETURN 0 -- anywhere anywhere CONNMARK match !0x0/0xff00 | |
CONNMARK udp -- anywhere anywhere MAC 00:16:32:91:BC:6F CONNMARK set-return 0x101/0xff | |
CONNMARK tcp -- anywhere anywhere MAC 00:16:32:91:BC:6F CONNMARK set-return 0x101/0xff | |
CONNMARK udp -- anywhere anywhere udp dpt:domain bcount --range 0:2047 CONNMARK set-return 0x1/0xff | |
CONNMARK tcp -- anywhere anywhere tcp dpt:domain bcount --range 0:2047 CONNMARK set-return 0x1/0xff | |
CONNMARK udp -- anywhere anywhere LAYER7 l7proto sip CONNMARK set-return 0x102/0xff | |
CONNMARK tcp -- anywhere anywhere LAYER7 l7proto sip CONNMARK set-return 0x102/0xff | |
CONNMARK tcp -- anywhere anywhere mport dports www,https bcount --range 0:524287 CONNMARK set-return 0x2/0xff | |
CONNMARK tcp -- anywhere anywhere mport dports www,https bcount --range 524288+ CONNMARK set-return 0x4/0xff | |
CONNMARK udp -- anywhere anywhere LAYER7 l7proto bittorrent CONNMARK set-return 0x105/0xff | |
CONNMARK tcp -- anywhere anywhere LAYER7 l7proto bittorrent CONNMARK set-return 0x105/0xff | |
CONNMARK udp -- anywhere anywhere udp dpt:domain bcount --range 2048+ CONNMARK set-return 0x5/0xff | |
CONNMARK tcp -- anywhere anywhere tcp dpt:domain bcount --range 2048+ CONNMARK set-return 0x5/0xff | |
CONNMARK udp -- anywhere anywhere udp dpts:1024:65535 bcount --range 2097152+ CONNMARK set-return 0x5/0xff | |
CONNMARK tcp -- anywhere anywhere tcp dpts:1024:65535 bcount --range 2097152+ CONNMARK set-return 0x5/0xff | |
CONNMARK 0 -- anywhere anywhere CONNMARK set-return 0x3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nvram get qos_orules | |
3<00:16:32:91:BC:6F<-1<a<<0<<<0<Verizon>0<<-1<d<53<0<<0:2<0<DNS>0<<-1<a<<0<sip<<1<SIP>0<<6<d<80,443<0<<0:512<1<WWW>0<<6<d<80,443<0<<512:<3<WWW (512K+)>0<<-1<a<<0<bittorrent<<4<Bittorrent>0<<-1<d<53<0<<2:<4<DNS (2K+)>0<<-1<d<1024:65535<0<<2048:<4<Bulk Traffic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tc -s qdisc show dev vlan1 | |
qdisc sfq 50: limit 128p quantum 1518b perturb 10sec | |
Sent 1185604 bytes 815 pkts (dropped 0, overlimits 0) | |
backlog 15p | |
qdisc sfq 40: limit 128p quantum 1518b perturb 10sec | |
Sent 6116710 bytes 9996 pkts (dropped 0, overlimits 0) | |
backlog 6p | |
qdisc sfq 30: limit 128p quantum 1518b perturb 10sec | |
Sent 2121250 bytes 1503 pkts (dropped 0, overlimits 0) | |
qdisc sfq 20: limit 128p quantum 1518b perturb 10sec | |
Sent 536725 bytes 504 pkts (dropped 0, overlimits 0) | |
qdisc sfq 10: limit 128p quantum 1518b perturb 10sec | |
Sent 319011 bytes 5541 pkts (dropped 0, overlimits 0) | |
qdisc htb 1: r2q 10 default 30 direct_packets_stat 38 | |
Sent 10298756 bytes 18401 pkts (dropped 0, overlimits 31256) | |
backlog 21p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment