I have updated my rules as follows:
Code: Select all
qos up:
Application Protocol: BitTorrent Bulk
Source Port: 1024-65535, Destination Port: 10000-65535 Bulk
Http set to default class Normal
qos down:
Application Protocol: BitTorrent Bulk
Source Port: 10000-65535, Destination Port: 1024-65535
Http set to default class Normal
And I have run both http and torrent download for several minutes. qosmon.status shows some bytes passing the Bulk class but nothing much to activate the class, thus activte congestion control.
Code: Select all
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 450 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 3, BW bps (filtered): 450187
ID 8005, Active 0, Backlog 0, BW bps (filtered): 122
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 452 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 5, BW bps (filtered): 452208
ID 8005, Active 0, Backlog 0, BW bps (filtered): 166
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 452 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 5, BW bps (filtered): 452208
ID 8005, Active 0, Backlog 0, BW bps (filtered): 166
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 454 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 4, BW bps (filtered): 453860
ID 8005, Active 0, Backlog 0, BW bps (filtered): 150
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 454 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 4, BW bps (filtered): 453860
ID 8005, Active 0, Backlog 0, BW bps (filtered): 150
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 444 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 2, BW bps (filtered): 443886
ID 8005, Active 0, Backlog 0, BW bps (filtered): 135
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 444 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 2, BW bps (filtered): 443886
ID 8005, Active 0, Backlog 0, BW bps (filtered): 135
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 441 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 0, BW bps (filtered): 441542
ID 8005, Active 0, Backlog 0, BW bps (filtered): 160
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 441 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 0, BW bps (filtered): 441542
ID 8005, Active 0, Backlog 0, BW bps (filtered): 160
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 442 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 0, BW bps (filtered): 442692
ID 8005, Active 0, Backlog 0, BW bps (filtered): 144
root@OpenWrt:~#
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 444 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 0, BW bps (filtered): 444555
ID 8005, Active 0, Backlog 0, BW bps (filtered): 130
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 449 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 2, BW bps (filtered): 448914
ID 8005, Active 0, Backlog 0, BW bps (filtered): 117
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 449 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 2, BW bps (filtered): 448993
ID 8005, Active 0, Backlog 0, BW bps (filtered): 105
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 449 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 2, BW bps (filtered): 448993
ID 8005, Active 0, Backlog 0, BW bps (filtered): 105
root@OpenWrt:~# cat /tmp/qosmon.status
State: FREE
Link limit: 460 (kbps)
Fair Link limit: 414 (kbps)
Link load: 451 (kbps)
Ping: off
Filtered ping: 78 (ms)
Ping time limit: 286 (ms)
Classes Active: 1
ID FFFF, Active 0, Backlog 0, BW bps (filtered): 0
ID 8003, Active 0, Backlog 0, BW bps (filtered): 0
ID 8004, Active 1, Backlog 3, BW bps (filtered): 451841
ID 8005, Active 0, Backlog 0, BW bps (filtered): 94
root@OpenWrt:~#
But my connection list tells a different story. Where torrent connections are concerned, I see Bulk/Bulk matched pairs under Qos Up/Qos Down. With http download, Normal/Normal. I have monitored this list and did not see irregular pairs like Bulk/Normal or Normal/Bulk. While conntrack says one thing, tc shows otherwise, puzzling.
I'm using utorrent 2.0.3. I have disabled upnp and opened a port for torrent connections.
Oh and one other thing, even though in my rules list I have specified to match first using layer7 application filter, my connection list do not indicate anything under L7 proto column. I can confirm that xt_layer7 module is loaded with lsmod
Code: Select all
root@OpenWrt:~# lsmod |grep layer7
xt_layer7 10736 1
nf_conntrack 39408 18 nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,xt_layer7,ipt_MASQUERADE,iptable_nat,nf_nat,xt_CONNMARK,xt_helper,xt_conntrack,xt_connmark,xt_connbytes,xt_NOTRACK,xt_state,nf_conntrack_ipv4
x_tables 9088 53 ebt_arpnat,ebt_redirect,ebt_mark,ebt_vlan,ebt_stp,ebt_pkttype,ebt_mark_m,ebt_limit,ebt_among,ebt_802_3,ebtables,xt_IMQ,ipt_weburl,ipt_webmon,ipt_timerange,xt_iprange,xt_HL,xt_hl,xt_MARK,ipt_ECN,xt_CLASSIFY,xt_time,xt_tcpmss,xt_statistic,xt_mark,xt_length,ipt_ecn,xt_DSCP,xt_dscp,xt_string,xt_layer7,ipt_bandwidth,ipt_REDIRECT,ipt_NETMAP,ipt_MASQUERADE,iptable_nat,xt_CONNMARK,xt_recent,xt_helper,xt_conntrack,xt_connmark,xt_connbytes,xt_NOTRACK,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp
Any chance of a misconfiguration on my part?