Skip to contentSkip to conversation

traffic control based on the downloaded bytes

LARTC Gabor Csuri 2 participants 4 messages Nov 6, 2002

lore
Share & tools
lore
#0 lore raw

Hi All,

I'm new on this list. I'm the admin of the server in our house.
We have a 768k/128k DSL line.
There are 11 flats using this bandwith without any control. Some of them are "high donwloader" and the browsing speed is decreasing a lot when the downloaders are waken up. :(
I have an idea how the downloaders and the browsers can use this bandwith without any conflict.
My question is: Is it possible with iproute2 ?
My idea: I define a bandwith to downloaders (maybe 512k).
If any of the downloading thread exceed a limit (maybe 4Mbyte) it passed into the 512k bandwith.
How can I do this trick?

Thank you for your help in advice, Gabor.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 14 lines · Gabor Csuri

Hi All,

I'm new on this list. I'm the admin of the server in our house.
We have a 768k/128k DSL line.
There are 11 flats using this bandwith without any control. Some of them are "high donwloader" and the browsing speed is decreasing a lot when the downloaders are waken up. :(
I have an idea how the downloaders and the browsers can use this bandwith without any conflict.
My question is: Is it possible with iproute2 ?
My idea: I define a bandwith to downloaders (maybe 512k).
If any of the downloading thread exceed a limit (maybe 4Mbyte) it passed into the 512k bandwith.
How can I do this trick?

There is a length match in iptables. But I don't know if it will work. You can also use squid and uses the delay pools in squid.

But why don't you put all the bandwidth eating traffic in 1 class and give it a lower bandwith? If there is no other traffic, they can use the full link, but if there is other traffic, other traffis is served first.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Gabor Csuri
Quoted 17 lines
Quoted 6 lines

Hi All,

I'm new on this list. I'm the admin of the server in our house.
We have a 768k/128k DSL line.
There are 11 flats using this bandwith without any control. Some of them are "high donwloader" and the browsing speed is

decreasing a

Quoted 2 lines

lot when the downloaders are waken up. :(
I have an idea how the downloaders and the browsers can use

this bandwith

Quoted 6 lines

without any conflict.
My question is: Is it possible with iproute2 ?
My idea: I define a bandwith to downloaders (maybe 512k).
If any of the downloading thread exceed a limit (maybe 4Mbyte) it passed into the 512k bandwith.
How can I do this trick?

Quoted 5 lines

Go to the LARTC website and look at the WonderShaper script. It does pretty
much what you want. Just set the port list to what you consider "downloading" (probably ftp and ftpdata). I use this to keep my downloads from interfering with my roommate's gaming.

Hi Kenneth,
I've taken a look to wondershaper and I think this is a half-solution for
me.
I can set up priority by port-number and other properties but I think I can't separate packet which is a part of a 70KB gif image (part of a web page) or it's a part of a 800MB CD image coming from a website also. This is my problem.

Thanks, Gabor.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Gabor Csuri
Quoted 27 lines · Gabor Csuri
Quoted 21 lines
Quoted 6 lines

Hi All,

I'm new on this list. I'm the admin of the server in our house.
We have a 768k/128k DSL line.
There are 11 flats using this bandwith without any control. Some of them are "high donwloader" and the browsing speed is

decreasing a

Quoted 2 lines

lot when the downloaders are waken up. :(
I have an idea how the downloaders and the browsers can use

this bandwith

Quoted 6 lines

without any conflict.
My question is: Is it possible with iproute2 ?
My idea: I define a bandwith to downloaders (maybe 512k). If any of the downloading thread exceed a limit (maybe 4Mbyte) it passed into the 512k bandwith.
How can I do this trick?

Quoted 5 lines

Go to the LARTC website and look at the WonderShaper script. It does pretty
much what you want. Just set the port list to what you consider "downloading" (probably ftp and ftpdata). I use this to keep my downloads from interfering with my roommate's gaming.

Quoted 7 lines

Hi Kenneth,
I've taken a look to wondershaper and I think this is a half-solution for
me.
I can set up priority by port-number and other properties but I think I can't separate packet which is a part of a 70KB gif image (part of a web page) or it's a part of a 800MB CD image coming from a website also. This is my problem.

You have to use some tricks if you want to do this. See my previous post. I think the delay pools of squid are the best solution. The problem is that tc nor iptables has an idea about what's transferred. Squids does.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/