Games and QOS on share connection line

Linux Advanced Routing and Traffic Control

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

 



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
_______________________________________________
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