Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] traffic control based on the downloaded bytes
@ 2002-11-06 10:09 Gabor Csuri
  2002-11-06 17:04 ` Stef Coene
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gabor Csuri @ 2002-11-06 10:09 UTC (permalink / raw)
  To: lartc

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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] traffic control based on the downloaded bytes
  2002-11-06 10:09 [LARTC] traffic control based on the downloaded bytes Gabor Csuri
@ 2002-11-06 17:04 ` Stef Coene
  2002-11-06 19:49 ` Gabor Csuri
  2002-11-06 20:06 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2002-11-06 17:04 UTC (permalink / raw)
  To: lartc

On Wednesday 06 November 2002 11:09, Gabor Csuri wrote:
> 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

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [LARTC] traffic control based on the downloaded bytes
  2002-11-06 10:09 [LARTC] traffic control based on the downloaded bytes Gabor Csuri
  2002-11-06 17:04 ` Stef Coene
@ 2002-11-06 19:49 ` Gabor Csuri
  2002-11-06 20:06 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Gabor Csuri @ 2002-11-06 19:49 UTC (permalink / raw)
  To: lartc

> > 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?
>
> 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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] traffic control based on the downloaded bytes
  2002-11-06 10:09 [LARTC] traffic control based on the downloaded bytes Gabor Csuri
  2002-11-06 17:04 ` Stef Coene
  2002-11-06 19:49 ` Gabor Csuri
@ 2002-11-06 20:06 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2002-11-06 20:06 UTC (permalink / raw)
  To: lartc

On Wednesday 06 November 2002 20:49, Gabor Csuri wrote:
> > > 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?
> >
> > 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.
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

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-11-06 20:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-06 10:09 [LARTC] traffic control based on the downloaded bytes Gabor Csuri
2002-11-06 17:04 ` Stef Coene
2002-11-06 19:49 ` Gabor Csuri
2002-11-06 20:06 ` Stef Coene

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox