All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Traffic shaping for upload & download
@ 2002-11-01  5:35 Joseph Watson
  2002-11-01  8:56 ` Stef Coene
  2002-11-01 16:15 ` Don Cohen
  0 siblings, 2 replies; 3+ messages in thread
From: Joseph Watson @ 2002-11-01  5:35 UTC (permalink / raw)
  To: lartc

Hello,

I have a question about two way traffic, and how to shape it?  

Lets say we want to limit a customer usage to 256kbit total.  So on my 
firewall I add shaping rules to the client side nice with a ceiling of 
256kbit.  Now I also want to limit there upload, so I add the same to the 
other nice in the firewall.  But if the customer uploads and downloads at the 
same time, they could use up 512kbit of my connection.  How can one handle 
this problem.  Is there a way to specify a max for all traphic and then alow 
barrowing between upload and download??  Or it this a limitation that I will 
have to live with?

-- 
Regards

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

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

* Re: [LARTC] Traffic shaping for upload & download
  2002-11-01  5:35 [LARTC] Traffic shaping for upload & download Joseph Watson
@ 2002-11-01  8:56 ` Stef Coene
  2002-11-01 16:15 ` Don Cohen
  1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2002-11-01  8:56 UTC (permalink / raw)
  To: lartc

On Friday 01 November 2002 06:35, Joseph Watson wrote:
> Hello,
>
> I have a question about two way traffic, and how to shape it?
>
> Lets say we want to limit a customer usage to 256kbit total.  So on my
> firewall I add shaping rules to the client side nice with a ceiling of
> 256kbit.  Now I also want to limit there upload, so I add the same to the
> other nice in the firewall.  But if the customer uploads and downloads at
> the same time, they could use up 512kbit of my connection.  How can one
> handle this problem.  Is there a way to specify a max for all traphic and
> then alow barrowing between upload and download??  Or it this a limitation
> that I will have to live with?
You can use the imq device.  This is a virtual device.  You can redirect 
packets with iptables to it and you can do it on incoming/outgoing and from 
different NIC's.  So you can limit download + upload together like you want.

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] 3+ messages in thread

* [LARTC] Traffic shaping for upload & download
  2002-11-01  5:35 [LARTC] Traffic shaping for upload & download Joseph Watson
  2002-11-01  8:56 ` Stef Coene
@ 2002-11-01 16:15 ` Don Cohen
  1 sibling, 0 replies; 3+ messages in thread
From: Don Cohen @ 2002-11-01 16:15 UTC (permalink / raw)
  To: lartc

 > Lets say we want to limit a customer usage to 256kbit total.
That is, you want to limit upload+download.

Whether or not it can be done, I think it's worth pointing out that
this is nonsense.  It makes sense to allocate A+B only if A and B can
be used to replace each other.  Upload and Download are not like that.
They're more like food and air - you need both.  If you have no air it
won't do any good to be given more food.

In your case the analogous thing is that you have a total of 1Mbit up
and 1Mbit down available, two users, and you allocate 1Mbit total to
each.  One decides to attack the other by using 1Mbit upload.  You
decide that's fair, the other (the victim) can just use 1Mbit
download.  Well, maybe he can, but it won't do him any good.  

I suggest instead that you allocate upload and download bandwidth
separately.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

end of thread, other threads:[~2002-11-01 16:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-01  5:35 [LARTC] Traffic shaping for upload & download Joseph Watson
2002-11-01  8:56 ` Stef Coene
2002-11-01 16:15 ` Don Cohen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.