Re: Gamest and QoS

Linux Advanced Routing and Traffic Control

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

 



> >   Without QoS, while uploading some files via ftp i have pings (in my
> favourite
> >   game) 1000+. With my qos script my ping lower to 150 - 300, but is
> >   very unstable.
> > 
> >   Is there any way to configure htb, to have good, __STABLE__ pings ( 40
> - 100)
> >   while other people exploring the internet.

I've had this problem for about a year now, I'm not sure what the cause is
exactly but I think it has to do with the minimum burst size that HTB must
have, which is something like 1.5kbytes (per class), combined with the
restricted timers that linux QoS uses. Anyway, what I ended up doing is using
the prio qdisc (which doesn't do rate limiting, only prioritises packets)
wrapped inside a TBF qdisc for its rate limiting. See my script below.

> One question I'd be wondering, is how to filter the game packets into
> the class.  I'm a UT2k4 fan, and it's not as easy as just filtering
> based on port as the server ports are all over the map.  Perhaps one
> would have to look at the packet size instead.  Hopefully it would be
> constant or small.

One way to filter this that might work, is to just put all the UDP traffic in
your interactive class, which I assume UT2k4 uses. Not very many programs
besides games use UDP traffic for its data transfer, so it should work
without putting too much unwanted packets into your interactive class. As
well, if your using ipp2p or port matching your p2p/ftp traffic, they won't
be put into the interactive class. It's quite important to put your packet
marking statements (iptables) in the right order also, if you do it in the
wrong order all your packets will end up in your interactive class (happened
to me in the beginning :) ). My script below should clarify things.

Download my script here:
http://quebeck.dyndns.org/temp/simple.htb

I haven't finished fine tuning it yet, but the basic traffic shaping works.

Jon

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux