bandwidth throttling

It all started when I set up my FTP server, which was right around the time that I also installed AudioGalaxy for MP3 sharing. I started noticing that when people downloaded anything from my FTP server or from my Audiogalaxy client, my latency went through the roof – 300+ ms.

Why? Because my upstream bandwidth is only 256kbps, and it was being maxed out by these transfers. I am all for sharing my files and all, but interrupting my IRCing and MUDding is simply inexcusable.

So, I recently discovered that OpenBSD supports ALTQ which stands for “ALTernate Queueing”. Basically, it’s a way to do bandwidth throttling.

This is my altq.conf. It’s pretty self-explanatory … Okay, not really.

Basically you just define classes that get certain percentages of your bandwidth. Then you apply filters to your traffic that lump them into certain classes. In my case, my config is pretty simple. I made a class called “fx_class”, and configured it to get 60% of my 256k upstream bandwidth. Then, I made a bunch of filters to lump traffic from my FTP server (active and passive connections) and traffic from the Audiogalaxy client into that class.

Voila – no more bandwidth choking. If I ever get time, I may write this up into a more comprehensive informal how-to so that other people interested in it can get some guidance.


Comments

chace[at]hushmail.comFebruary 26, 2002 at 01:08 · reply

cool.

Anonymous CowardOctober 23, 2002 at 09:00 · reply

The link to the altq file is broken. This one is working:

http://chris.agenteight.com…

Chris WageOctober 23, 2002 at 09:48 · reply

Fixed.. Thanks!

–Chris

James WaiteFebruary 18, 2003 at 06:54 · reply

Throttling, I just love the idea.

I have a 256 dsl connection and wish to throttle my connection (at times) 4 ways with a family with different needs. We used to share a dial up 56k connection and were most happy when we had the modem to our selves. Now with 256k to play with I thought a 56k like connection each (the reainder favouring someone other than myself of course)would have everone appeshiating (experiancing) an improved internet connection. Does any one have any idea on choking the download to different machines on a network??

Shucks, it has only been 26 months since this was first posted, and the altq conf file is already dead!

(Off to search for an altq conf :) )

Thanks! Your comment has been submitted and will appear shortly.


Leave a comment