traffic control

From: Hernán Freschi (hjf.usenet_at_hjf.com.ar)
Date: 04/26/05


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/


Relevant Pages

  • traffic control
    ... So I patch my kernel and stuff and add a root HTB qdisc to the IMQ, ... I start downloading on the low priority ... Low priority gets the file at 500kbit and I start ...
    (comp.os.linux.misc)
  • Computer hangs in about 10 sec increments
    ... priority of the program that was downloading & uploading, ... I could raise the priority of that program. ... that System Idle Process is requiring the bandwith. ...
    (microsoft.public.windowsxp.network_web)
  • Prioritize TCP/IP traffic
    ... Windows. ... The scenario is, I need to have responsive HTTP/HTTPS traffic ... Telnet/SSH traffic when downloading large files using HTTP. ... words, I need to create a priority list, based upon outgoing/incoming ...
    (microsoft.public.windows.server.networking)
  • Re: How Many WGAs are Enough?
    ... Alias wrote: ... available for downloading. ... I have the one that phones home on my computer now and I have yet to download WGA IV. ... priority" update. ...
    (microsoft.public.windowsxp.general)
  • Re: dummynet "OUCH! pipe should have been idle!"-message in 4.9-RC
    ... My intended ruleset is to have 3 pipes: high, med and low priority. ... through the low priority pipe, and all other data through the medium ... As soon as I enable this behavior, the data flow for the ...
    (freebsd-net)