Hello. I''m newbie with QoS. I read some articles and I have a question on You. If you have time to spare, it would be great if you reply. Here is my problem. I''m on wireless network(no earnig comunity). We got 2/2Mbit(soon 4/4) for 100 people(sharing link). Not long ago people start screaming that their games don''t work good(lagging). So I add to our qos class games with highest prio. I don''t know much about game traffic. So I add this class: $TC class add dev eth0 parent 1:1 classid 1:3 htb rate 64kbit ceil 256kbit burst 6k cburst 6k prio 0 Then I add every game port(War3 6112,CS 27015-6, OU, Quake3 etc.) : $TC filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip sport 6112 0xffff match ip protocol 0x11 0xff flowid 1:3 What do you think about this configuration? Do you know better setting for gaming traffic on share connection line? I''d like to know your opinions. I''m appreciating your comments. Thank you in advance Main part of script: $TC qdisc add dev eth0 root handle 1: htb default 300 r2q 2 $TC class add dev eth0 parent 1: classid 1:1 htb rate 1024kbit ceil 2048kbit burst 15k $TC class add dev eth0 parent 1:1 classid 1:3 htb rate 64kbit ceil 256kbit burst 6k cburst 6k prio 0 # Games class $TC class add dev eth0 parent 1:1 classid 1:5 htb rate 64kbit ceil 256kbit burst 5k prio 0 # SSH class $TC class add dev eth0 parent 1:1 classid 1:10 htb rate 64kbit ceil 2048kbit burst 5k prio 1 # interactive class $TC class add dev eth0 parent 1:1 classid 1:20 htb rate 32kbit ceil 64kbit burst 5k prio 1 # ping class $TC class add dev eth0 parent 1:1 classid 1:40 htb rate 32kbit ceil 1024kbit burst 5k prio 3 # data transfer class $TC class add dev eth0 parent 1:1 classid 1:50 htb rate 32kbit ceil 1024kbit burst 9k prio 4 # email class $TC class add dev eth0 parent 1:1 classid 1:60 htb rate 32kbit ceil 1024kbit burst 8k prio 3 # squid class $TC class add dev eth0 parent 1:1 classid 1:300 htb rate 32kbit ceil 1024kbit burst 1k prio 4 # default trafic class $TC qdisc add dev eth0 parent 1:3 handle 3: $STOCHASIS # Games class $TC qdisc add dev eth0 parent 1:5 handle 5: $STOCHASIS # SSH sub-classes $TC qdisc add dev eth0 parent 1:10 handle 10: $STOCHASIS # interactive sub-classes $TC qdisc add dev eth0 parent 1:20 handle 20: $STOCHASIS # ping $TC qdisc add dev eth0 parent 1:30 handle 30: $STOCHASIS # routing $TC qdisc add dev eth0 parent 1:40 handle 40: $STOCHASIS # data transfer $TC qdisc add dev eth0 parent 1:50 handle 50: $STOCHASIS # email $TC qdisc add dev eth0 parent 1:60 handle 60: $STOCHASIS # squid $TC qdisc add dev eth0 parent 1:300 handle 300: $STOCHASIS # default class # Warcraft 3 $TC filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip sport 6112 0xffff match ip protocol 0x11 0xff flowid 1:3 $TC filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dport 6112 0xffff match ip protocol 0x11 0xff flowid 1:3 $TC filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip sport 6112 0xffff match ip protocol 0x6 0xff flowid 1:3 $TC filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dport 6112 0xffff match ip protocol 0x6 0xff flowid 1:3
Ludek Horak wrote:> Hello. I''m newbie with QoS. I read some articles and I have a question on You. If you have time to spare, it would be great > if you reply. Here is my problem. I''m on wireless network(no earnig comunity). We got 2/2Mbit(soon 4/4) for 100 people(sharing link). Not long ago people start > screaming that their games don''t work good(lagging). So I add to our qos class games with highest prio. I don''t know much about game traffic. So I add this class: > $TC class add dev eth0 parent 1:1 classid 1:3 htb rate 64kbit ceil 256kbit burst 6k cburst 6k prio 0 > Then I add every game port(War3 6112,CS 27015-6, OU, Quake3 etc.) : > $TC filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip sport 6112 0xffff match ip protocol 0x11 0xff flowid 1:3 > > What do you think about this configuration? Do you know better setting for gaming traffic on share connection line? I''d like to know your opinions. I''m appreciating your comments. > Thank you in advanceI came to a similar conclusion with regard to games, and set up something similar myself. So far it''s worked ok. The only thing to watch out for is what happens to your latency as bandwidth levels approach the full capacity of your connection. Even if game traffic has high priority that won''t save you from high latency when the connection is saturated. You may have to reduce your overall ceil from 2048 to, say, 1900. Experiment to find a good value. -Corey
Ludek Horak wrote:> What do you think about this configuration? Do you know better setting for gaming traffic on share connection line? I''d like to know your opinions. I''m appreciating your comments.I wouldn''t send interactive type traffic to sfq - perturb causes packet reordering, it''s meant for bulk traffic really. I would make one class for all interactive types and give it a much higher rate rather than spliting into game, ping, ssh etc and having low rates for each. Are the 2/2 and 4/4 internet link - you are OK for bandwidth on wireless? Andy.
> Ludek Horak wrote: > > > What do you think about this configuration? Do you know better setting for gaming traffic on share connection line? I''d like to know your opinions. I''m appreciating your comments. > > I wouldn''t send interactive type traffic to sfq - perturb causes packet > reordering, it''s meant for bulk traffic really. > > Are the 2/2 and 4/4 internet link - you are OK for bandwidth on wireless? > > Andy.Would you be more specific? I understand that sfq is not the best. Should I create interactive class with pfifo queue discipline and what about parent class? Leave it sfq? Our bandwith is fine and 2/2 is guaranteed internet link. Thx in advance
Ludek Horak wrote:>>Ludek Horak wrote: >> >> >>>What do you think about this configuration? Do you know better setting for gaming traffic on share connection line? I''d like to know your opinions. I''m appreciating your comments. >> >>I wouldn''t send interactive type traffic to sfq - perturb causes packet >>reordering, it''s meant for bulk traffic really. >> >>Are the 2/2 and 4/4 internet link - you are OK for bandwidth on wireless? >> >>Andy. > > > Would you be more specific? I understand that sfq is not the best. Should I create interactive class with pfifo queue disciplineI would - in a way it doesn''t matter that much as you should hope to have rates high enough so that interactive doesn''t queue anyway.>and what about parent class? Leave it sfq?Bulk traffic classes are OK for sfq - parent class doesn''t have qdisc only leafs.> Our bandwith is fine and 2/2 is guaranteed internet link.OK - do you shape incoming aswell. Andy.