From: Alex Alexander (alex.alexander_at_nonexisting.hamakor.org.il)
Date: Mon 23 Jan 2006 - 10:04:46 IST
Greetings everyone,
I'll try to keep it short. I have a linux routing machine connecting my
384kbps adsl line (eth1) with my local network (eth0). Its running Debian
unstable, w/ kernel 2.6.15 and the usual services (proxy, dns, dhcp, etc
etc).
I am trying to shape traffic, both incoming and outgoing, to avoid high
latency in games like Battlefield 2 and Star Wars Galaxies whenever someone
on the network decides to do anything internet-related.
It seems the best implementation so far (without kernel patching) involves
using "tc" to add HTB-based qdisks/classes. I have found quite a bunch of
tutorials describing the whole procedure, however I have the following issue:
I create everything properly, define qdisks & define classes (either with IP
addresses or port ranges, I've even tried through iptables marking), giving a
share of my bandwidth to each one. 3 classes with RATE: 90kbit, CEIL:360 and
a fallback class for unmarked traffic with RATE: 90kbit, CEIL:360. The main
qdisk has RATE: 370 (I've tried lowering it with no results). I have tried
applying this on both eth0 and eth1, both incoming and outgoing.
What happens is that everything seems to be configured alright, but no packets
are dropped.
tc -s -d show dev eth0
shows the classes and IDENTIFIES the traffic CORRECTLY, showing it under the
proper class, but it doesnt mark any packets as "overlimits" nor does it drop
any (naturally).
The result is obvious... Its even worse than before. When two simultaneous
downloads occur, one of them gets full prio while the other gets next to none
(and dies with 1k/s).
Its really annoying since there doesnt seem to be anything left for me to
do... Every single tutorial I've read specifies that after reaching this step
everything should be working... Is there a flag that the kernel needs to
start shaping traffic?
Note that: tc in general seems to work. If I create a class with sfq queueing
and pass all traffic through there, I can see the difference. It seems the
problem is HTB related - lsof reports the module is loaded.
Thanks
Alex
ps: Since I am not home @ the moment I can't send you any output results or
the tc commands used, will send tonight.
=================================================================
To unsubscribe, send mail to linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il
This archive was generated by hypermail 2.1.7 : Mon 23 Jan 2006 - 10:25:00 IST