All of lore.kernel.org
 help / color / mirror / Atom feed
* Re[2]: [LARTC] per-session QoS
@ 2004-02-04 23:44 Peteris Krumins
  2004-02-05  0:48 ` Ben
  0 siblings, 1 reply; 2+ messages in thread
From: Peteris Krumins @ 2004-02-04 23:44 UTC (permalink / raw)
  To: lartc

Wednesday, February 4, 2004, 11:15:17 PM, you wrote:

B> That's the closest thing I've seen to what I want, but it's not quite 
B> there. From what I understand, this lets me identify all sessions that 
B> have sent more than x bytes.

Right.

B> I want something that says "for every session going to port x, limit
B> incoming throughput to no more than 50KB/5s" - or some other throughput 
B> definition that allows bursting.

Well, that is easy.

Create as many classes needed, add filters based on MARK value to put
the traffic in the correspoing classes, then simply put the connbytes
rules (-m connbytes max_bw:) together with a jump to MARK target
(-j MARK) in the mangle table.
As soon as max_bw will be reached, the packet will get marked and the
filter will put the traffic in the appropriate class.


P.Krumins

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

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

* Re[2]: [LARTC] per-session QoS
  2004-02-04 23:44 Re[2]: [LARTC] per-session QoS Peteris Krumins
@ 2004-02-05  0:48 ` Ben
  0 siblings, 0 replies; 2+ messages in thread
From: Ben @ 2004-02-05  0:48 UTC (permalink / raw)
  To: lartc

So maybe I'm dense, but I thought that throughput limit on classes where 
class-wide, not for each session in the class. In otherwords, if I limit 
class A to 50KB/5s, every tcp session in that class fights for the same 
50KB/5s.

Instead, I want every tcp session to have a thoughput limit of 50KB/5s. 

Maybe I don't understand your example?

On Thu, 5 Feb 2004, Peteris Krumins wrote:

> B> I want something that says "for every session going to port x, limit
> B> incoming throughput to no more than 50KB/5s" - or some other throughput 
> B> definition that allows bursting.
> 
> Well, that is easy.
> 
> Create as many classes needed, add filters based on MARK value to put
> the traffic in the correspoing classes, then simply put the connbytes
> rules (-m connbytes max_bw:) together with a jump to MARK target
> (-j MARK) in the mangle table.
> As soon as max_bw will be reached, the packet will get marked and the
> filter will put the traffic in the appropriate class.
> 
> 
> P.Krumins
> 
> 


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

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

end of thread, other threads:[~2004-02-05  0:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-04 23:44 Re[2]: [LARTC] per-session QoS Peteris Krumins
2004-02-05  0:48 ` Ben

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.