hello,
a friend of mine have this configuration:
10 x PC -- router/linux/rh8 -- ADSL Modem -- ISP
let's say that the bandwidth is: 5M and 800K
he does dc++ and counter-strike, so let's say the UP is full, and the
ping from the counter server is 300ms, the server cut the connection, and
no more game, the player is unhappy. The normal ping is 50ms.
so he thinks to put some prio on the ping-echo packets to make the ping
be extra small, he try the wondershapper from the lartc, don't work, make
a simplified script just for icmp with is:
$tc qdisc del $IF_EXT root
$tc qdisc add $IF_EXT handle 1: root htb default 2
$tc class add $IF_EXT parent 1: classid 1:9 htb rate 500kbit burst 6k
$tc class add $IF_EXT parent 1:9 classid 1:1 htb rate 500kbit ceil
500kbit burst 6k prio 1
$tc class add $IF_EXT parent 1:9 classid 1:2 htb rate 64kbit ceil 500kbit
burst 6k prio 2
$tc filter add $IF_EXT protocol ip prio 2 parent 1: u32 \
match ip protocol 1 0xff flowid 1:1
first tryed it with ceil 800kbit, after with a smaller value, the
"real"
bandwidth was somewhere around 700kbit, at that moment.
didn't work
so he tryed with just a prio qdisc and put the icmp packets in the 0
band, the script:
$iptables -t mangle -A POSTROUTING -p icmp -j TOS --set-tos 0x10
$tc qdisc del $IF_EXT root
$tc qdisc add $IF_EXT root handle 10: prio
$tc qdisc add $IF_EXT parent 10:1 handle 20: est 1sec 8sec bfifo
$tc qdisc add $IF_EXT parent 10:2 handle 30: est 1sec 8sec bfifo
$tc qdisc add $IF_EXT parent 10:3 handle 40: est 1sec 8sec bfifo
$tc filter add $IF_EXT parent 10: protocol ip prio 1 u32 match ip tos
0x10 0xff flowid 10:1
$tc filter add $IF_EXT parent 10: protocol ip prio 1 u32 match ip tos
0x06 0xff flowid 10:2
$tc filter add $IF_EXT parent 10: protocol ip prio 1 u32 match ip tos
0x0c 0xff flowid 10:3
still with no result the ping from the counter server is always 300ms,
what's wrong????
C
--
Ciprian Niculescu
Hi,<BR><BR>I think that imcp is not the solution. I've tested with mohaa and that game uses an own sort of ping on a udp port (so via tcp and not imcp)<BR><BR>Maby u should check if counterstrike does that too.<BR><BR>Regards,<BR>Andre<BR><BR><BR>> hello,<BR>> <BR>> a friend of mine have this configuration:<BR>> <BR>> 10 x PC -- router/linux/rh8 -- ADSL Modem -- ISP<BR>> <BR>> let's say that the bandwidth is: 5M and 800K<BR>> <BR>> he does dc++ and counter-strike, so let's say the UP is full, and the<BR>> ping from the counter server is 300ms, the server cut the connection,<BR>> and no more game, the player is unhappy. The normal ping is 50ms.<BR>> <BR>> so he thinks to put some prio on the ping-echo packets to make the ping<BR>> be extra small, he try the wondershapper from the lartc, don't work,<BR>> make a simplified script just for icmp with is:<BR>> <BR>> $tc qdisc del $IF_EXT root<BR>> $tc qdisc add $IF_EXT handle 1: root htb default 2<BR>> $tc class add $IF_EXT parent 1: classid 1:9 htb rate 500kbit burst 6k<BR>> $tc class add $IF_EXT parent 1:9 classid 1:1 htb rate 500kbit ceil<BR>> 500kbit burst 6k prio 1<BR>> $tc class add $IF_EXT parent 1:9 classid 1:2 htb rate 64kbit ceil<BR>> 500kbit burst 6k prio 2<BR>> <BR>> $tc filter add $IF_EXT protocol ip prio 2 parent 1: u32 \<BR>> match ip protocol 1 0xff flowid 1:1<BR>> <BR>> first tryed it with ceil 800kbit, after with a smaller value, the "real"<BR>> bandwidth was somewhere around 700kbit, at that moment.<BR>> <BR>> didn't work<BR>> <BR>> so he tryed with just a prio qdisc and put the icmp packets in the 0<BR>> band, the script:<BR>> <BR>> $iptables -t mangle -A POSTROUTING -p icmp -j TOS --set-tos 0x10<BR>> $tc qdisc del $IF_EXT root<BR>> $tc qdisc add $IF_EXT root handle 10: prio<BR>> <BR>> $tc qdisc add $IF_EXT parent 10:1 handle 20: est 1sec 8sec bfifo<BR>> $tc qdisc add $IF_EXT parent 10:2 handle 30: est 1sec 8sec bfifo<BR>> $tc qdisc add $IF_EXT parent 10:3 handle 40: est 1sec 8sec bfifo<BR>> <BR>> $tc filter add $IF_EXT parent 10: protocol ip prio 1 u32 match ip tos<BR>> 0x10 0xff flowid 10:1<BR>> $tc filter add $IF_EXT parent 10: protocol ip prio 1 u32 match ip tos<BR>> 0x06 0xff flowid 10:2<BR>> $tc filter add $IF_EXT parent 10: protocol ip prio 1 u32 match ip tos<BR>> 0x0c 0xff flowid 10:3<BR>> <BR>> <BR>> still with no result the ping from the counter server is always 300ms,<BR>> what's wrong????<BR>> <BR>> C<BR>> -- <BR>> Ciprian Niculescu<BR>> <BR>> _______________________________________________<BR>> LARTC mailing list / LARTC@mailman.ds9a.nl<BR>> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/<BR>
Hi,<BR><BR>(Sorry for the repost last post was screwed up by my emailclient)<BR><BR>I think that imcp is not the solution. I've tested with mohaa and that game uses an own sort of ping on a udp port (so via tcp and not imcp)<BR><BR>Maby u should check if counterstrike does that too.<BR><BR>Regards,<BR><BR>Andre<BR><BR>> hello,<BR>> <BR>> a friend of mine have this configuration:<BR>> <BR>> 10 x PC -- router/linux/rh8 -- ADSL Modem -- ISP<BR>> <BR>> let's say that the bandwidth is: 5M and 800K<BR>> <BR>> he does dc++ and counter-strike, so let's say the UP is full, and the<BR>> ping from the counter server is 300ms, the server cut the connection,<BR>> and no more game, the player is unhappy. The normal ping is 50ms.<BR>> <BR>> so he thinks to put some prio on the ping-echo packets to make the ping<BR>> be extra small, he try the wondershapper from the lartc, don't work,<BR>> make a simplified script just for icmp with is:<BR>> <BR>> $tc qdisc del $IF_EXT root<BR>> $tc qdisc add $IF_EXT handle 1: root htb default 2<BR>> $tc class add $IF_EXT parent 1: classid 1:9 htb rate 500kbit burst 6k<BR>> $tc class add $IF_EXT parent 1:9 classid 1:1 htb rate 500kbit ceil<BR>> 500kbit burst 6k prio 1<BR>> $tc class add $IF_EXT parent 1:9 classid 1:2 htb rate 64kbit ceil<BR>> 500kbit burst 6k prio 2<BR>> <BR>> $tc filter add $IF_EXT protocol ip prio 2 parent 1: u32 \<BR>> match ip protocol 1 0xff flowid 1:1<BR>> <BR>> first tryed it with ceil 800kbit, after with a smaller value, the "real"<BR>> bandwidth was somewhere around 700kbit, at that moment.<BR>> <BR>> didn't work<BR>> <BR>> so he tryed with just a prio qdisc and put the icmp packets in the 0<BR>> band, the script:<BR>> <BR>> $iptables -t mangle -A POSTROUTING -p icmp -j TOS --set-tos 0x10<BR>> $tc qdisc del $IF_EXT root<BR>> $tc qdisc add $IF_EXT root handle 10: prio<BR>> <BR>> $tc qdisc add $IF_EXT parent 10:1 handle 20: est 1sec 8sec bfifo<BR>> $tc qdisc add $IF_EXT parent 10:2 handle 30: est 1sec 8sec bfifo<BR>> $tc qdisc add $IF_EXT parent 10:3 handle 40: est 1sec 8sec bfifo<BR>> <BR>> $tc filter add $IF_EXT parent 10: protocol ip prio 1 u32 match ip tos<BR>> 0x10 0xff flowid 10:1<BR>> $tc filter add $IF_EXT parent 10: protocol ip prio 1 u32 match ip tos<BR>> 0x06 0xff flowid 10:2<BR>> $tc filter add $IF_EXT parent 10: protocol ip prio 1 u32 match ip tos<BR>> 0x0c 0xff flowid 10:3<BR>> <BR>> <BR>> still with no result the ping from the counter server is always 300ms,<BR>> what's wrong????<BR>> <BR>> C<BR>> -- <BR>> Ciprian Niculescu<BR>> <BR>> _______________________________________________<BR>> LARTC mailing list / LARTC@mailman.ds9a.nl<BR>> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/<BR>