I was looking for some solutions for many hours, but because I'm not very familiar with LINUX, I don't know what all those fancy scripts means, do and how to understand them.
I'm using standard QoS control which comes with Kamikaze (qos-scripts 1.2.1-1).
My current QOS config is simple:
# QoS configuration for OpenWrt
# INTERFACES:
config interface wan
option classgroup "Default"
option enabled 1
option overhead 1
option upload '256'
option download 1024# RULES:
config classify
option target "Bulk"
option ipp2p "all"
config classify
option target "Bulk"
option layer7 "edonkey"
config classify
option target "Bulk"
option layer7 "bittorrent"
config classify
option target "Priority"
option ports '22,53,7777,26000'
config classify
option target "Normal"
option proto "tcp"
option ports '20,21,25,110,443,993,995'
config classify
option target "Express"
option ports '5190,8620,80'
config default
option target "Express"
option proto "udp"
option pktsize "-500"
config reclassify
option target "Priority"
option proto "icmp"
config default
option target "Bulk"
option portrange "1024-65535"
config reclassify
option target "Priority"
option proto "tcp"
option pktsize "-128"
option mark "!Bulk"
option tcpflags "SYN"
config reclassify
option target "Priority"
option proto "tcp"
option pktsize "-128"
option mark "!Bulk"
option tcpflags "ACK"# Don't change the stuff below unless you
# really know what it meansconfig classgroup "Default"
option classes "Priority Express Normal Bulk"
option default "Normal"config class "Priority"
option packetsize 400
option maxsize 400
option avgrate 10
option priority 20
config class "Priority_down"
option packetsize 1000
option avgrate 10config class "Express"
option packetsize 1000
option maxsize 800
option avgrate 50
option priority 10config class "Normal"
option packetsize 1500
option packetdelay 100
option avgrate 10
option priority 5
config class "Normal_down"
option avgrate 20config class "Bulk"
option avgrate 1
option packetdelay 200
Best example here is traffic on port 80, which supossed to be threated as EXPRESS. I've tried also to make matching on other port, but it seems that it's not working as intend to work.
Below QOS STATUS:
Quality of Service Statistics
Incoming TrafficClass Packets Bytes
Priority 463 46078 (45.0 KiB)
Express 498 82131 (80.2 KiB)
Normal 43227 63891087 (60.9 MiB)
Bulk 33 29558 (28.9 KiB)
Total 44221 64048854 (61.1 MiB)Outgoing TrafficClass Packets Bytes
Priority 33002 1497169 (1.4 MiB)
Express 417 96416 (94.2 KiB)
Normal 264 161445 (157.7 KiB)
Bulk 29 23344 (22.8 KiB)
Total 33712 1778374 (1.7 MiB)
I'm downloading right now file from Rapidshare. It's on port 80 so it should be classified as EXPRES, but it's not. I had simillar problems with many ohters things which goes mostly to NORMAL rather than "desired" class.
I'd like to ask someone to help understand how does it work, and in this case, why it's not working.