traffic control
From: Hernán Freschi (hjf.usenet_at_hjf.com.ar)
Date: 04/26/05
- Next message: Michael Heiming: "Re: traffic control"
- Previous message: Boubou: "Re: sendmail or postfix"
- Next in thread: Michael Heiming: "Re: traffic control"
- Reply: Michael Heiming: "Re: traffic control"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 26 Apr 2005 14:55:19 -0300
Hi all,
I'm making a nat box which will be shared among a few people wirelessly,
from remote locations via PPTP+MPPE. It works quite good but now i'd
like to add a new feature to it: priorities.
As the bandwidth is limited (512kbit ADSL), I'd like to give some users
priority over others. As i have several PPP interfaces (because pptp), I
had the idea of limiting everyone through an IMQ device. Two actually,
one for server->clients and one for clients->server.
So I patch my kernel and stuff and add a root HTB qdisc to the IMQ, then
a root class, and two leaves: one rate 100/ceil 500kbit and the other
rate 400 ceil 500. The default class is the 100/500 and selected IP
addresses go to the 500/500 class via a tc filter. As I want to limit
the speed of internal IP addresses I put the iptables -j IMQ to POSTROUTING.
Then I started making tests. On the external interface of the box I put
a webserver and a 600MB file. I start downloading on the low priority
box. It instantly gets 500kbit. Then I start downloading the same file
on the high priority box, and it gets the file at 400K wile the other
quickly throttles to 100kbit.
Finally, I try to do that on the real thing, and try to get the J2SDK
from java.sun.com. Low priority gets the file at 500kbit and I start
downloading on the higher priority box. It gets the file at 200kbit, and
just stays there. Doesn't pick up even after 10 minutes. So my question
is, am I just doing something wrong or it's just impossible to shape
incoming internet traffic?
hjf
-- Sí esta atascado, fuércelo. Sí se rompe, es que necesitaba ser reemplazado. http://www.hjf.com.ar/
- Next message: Michael Heiming: "Re: traffic control"
- Previous message: Boubou: "Re: sendmail or postfix"
- Next in thread: Michael Heiming: "Re: traffic control"
- Reply: Michael Heiming: "Re: traffic control"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|