Hi Alex, see inline:
Alex Alexander wrote:

Hey David,

I understand all that, I am willing to make sacrifices...

Never heard of MRQ, I know IMQ is a famous shaping protocol but it needs kernel patching and right now I don't feel like compiling a kernel. Still an option though.
First, my bad.. I was mixed up, I was referring to "IMQ" and not MRQ.. heheh "lost in translation".

What annoys me is that I've found like 5 different scripts/instructions sets for HTB Traffic Shaping... I follow the instructions line by line... I even try to improvise since I understand some things.

But in the end, although everything is configured, traffic is identified and sent to the proper class/qdisc, PACKETS ARE NOT DROPPED! You can see the RATE being over the limit, but HTB doesn't seem to care!
HTB works in a very interesting way, you create a parents and children and the children if they have "spare" bandwidth will share it automatically to other children. If the total of your children exceeds your parents sum of bandwidth you may be in for trouble. Perhaps that is why you have packet drops? That is at least the problems I experienced..

Its nerve-breaking :P
I know.. you have no idea how many nights I was up trying to figure out how it works, the poor documentation of course was not much help. Tha Author himself writes so little about HTB..

BTW, is there a way to use the TCP window manipulation? I recall reading there's no way yet.
AFAIK there is no available real solution yet, at least not in the Open Source community, there is commercial software out there though.

I'll try that wondershaper script when I get home, seems to me it has some extra parameters to the tc command that could do the trick (hopefully?)...
If you want, I'll send you my scripts, contact me by e-mail if you would like them. :-)

Thanq,
Alex
Cheers,
-David

On Monday 23 January 2006 15:12, you wrote:
Alex,
From my experience the main problem is believe it or not your download
speed as well, the ISP creates huge buffers of data being sent to you.
If you want low latency you will have to disable the ISP downlink buffer
or at least reduce it, normally from my experience a 1.5Mbit line needs
to be reduced by half at least. Once you have done this you will have
much lower latency.

If you are wondering why this happens it is because while your  uplink
is not saturated any more, believe it or not a saturated downlink will
cause the same effect. The problem is while you have control over your
uplink buffer, you can not control what the ISP sends you. The only true
method is use of TCP window manipulation or use of the MRQ module which
does the same as HTB, tries to define priorities on accepting packets
and droping others so the ISP will "understand" you are not able to
accept and reduct the TCP window size.

To make a long story short, you will not be able to obtain a fast
download stream AND hope to obtain minimum latency for gaming unless you
use tc to cut your bandwidth by half or more and at the same time it
will help to place the MRQ module.

Another important thing, using all the HTB/MRQ modules can create packet
buffer problems with pptp which already has its own buffering, if you
see errors in your /var/log/messages or dmesg coming from pptp then make
sure to disable the buffer (pptp --nobuffer)

Cheers,
-David

Alex Alexander wrote:
On Monday 23 January 2006 13:42, you wrote:
Alex Alexander wrote:
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.
I don't know the solution to your exact problem, but how about just
trying an existing script that is known to work? I used wondershaper and
it worked perfectly for me, it is simple to setup and known to do the
work properly.

You can tweak it after you get it working to do anything special you
want.

Baruch
Thanks, I will try wondershaper ( http://lartc.org/wondershaper/ ).

However I forgot to mention that I have already tried to use Shorewall's
built-in tc support with no luck...

I'll get back to you with my results :)

Alex

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to