* [LARTC] HTB and per-connection bandwidth allocation
@ 2002-09-09 14:20 Michael O'Shea
2002-09-09 14:43 ` Sebastian 'spax' Pape
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Michael O'Shea @ 2002-09-09 14:20 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 623 bytes --]
Hi,
How do I allocate a guaranteed rate to each individual connection.
For example I can allocate, say 1Mb, to all HTTP traffic by defining the
appropriate class & filter. In this case, if I have one connection it will
get all 1M; if I have 100 then each connection will get ~ 10k. But supposing
I want to allocate 10k per individual connection regardless of the number of
connections - so if I have only one connection it gets 10k...20 get 20*10k
and if I go above 100 any extra connections are dropped. This allows a
guaranteed level of service per connection.
I cannot see how to achieve this in HTB.
Thanks
Michael
[-- Attachment #2: Type: text/html, Size: 1521 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] HTB and per-connection bandwidth allocation
2002-09-09 14:20 [LARTC] HTB and per-connection bandwidth allocation Michael O'Shea
@ 2002-09-09 14:43 ` Sebastian 'spax' Pape
2002-09-09 16:52 ` Martin Devera
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Sebastian 'spax' Pape @ 2002-09-09 14:43 UTC (permalink / raw)
To: lartc
hi!
imho there's an iplimit-patch (at patchomatic) - you should be able to
limit the numer of connections to 100 with this...
just a guess
Sebastian
--
Sebastian 'spax' Pape | Better to remain silent and be thought a fool
mailto: sebastian@p-a-p-e.de | than to speak and remove all doubt.
gpg: http://p-a-p-e.de/gpg.asc |
--- Do you want to know more? http://www.p-a-p-e.de/ ---
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] HTB and per-connection bandwidth allocation
2002-09-09 14:20 [LARTC] HTB and per-connection bandwidth allocation Michael O'Shea
2002-09-09 14:43 ` Sebastian 'spax' Pape
@ 2002-09-09 16:52 ` Martin Devera
2002-09-10 9:24 ` devik
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Martin Devera @ 2002-09-09 16:52 UTC (permalink / raw)
To: lartc
try SFQ.
devik
On Mon, 9 Sep 2002, Michael O'Shea wrote:
> Hi,
>
> How do I allocate a guaranteed rate to each individual connection.
> For example I can allocate, say 1Mb, to all HTTP traffic by defining the
> appropriate class & filter. In this case, if I have one connection it will
> get all 1M; if I have 100 then each connection will get ~ 10k. But supposing
> I want to allocate 10k per individual connection regardless of the number of
> connections - so if I have only one connection it gets 10k...20 get 20*10k
> and if I go above 100 any extra connections are dropped. This allows a
> guaranteed level of service per connection.
> I cannot see how to achieve this in HTB.
>
> Thanks
> Michael
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [LARTC] HTB and per-connection bandwidth allocation
2002-09-09 14:20 [LARTC] HTB and per-connection bandwidth allocation Michael O'Shea
2002-09-09 14:43 ` Sebastian 'spax' Pape
2002-09-09 16:52 ` Martin Devera
@ 2002-09-10 9:24 ` devik
2002-09-10 11:22 ` Michael O'Shea
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: devik @ 2002-09-10 9:24 UTC (permalink / raw)
To: lartc
Ahh yes .. so that maximum N is fixed in this way ? Hmmm
and you then need way to map active connection to free
class in HTB for example. It will not be simple because
you can't say when conversation ends (safely). So that you
will end with all classes busy.
You would have to write it yourself probably - extend iptables
connection tracking to maintain table of classids and select
classid for new connection and return it when conn is deleted.
Then simply copy this number to fwmark ...
If you really need this and can't write it you could ask
in lartc list whether someone is willing to write it (for
fun or for money).
devik
On Tue, 10 Sep 2002, Michael O'Shea wrote:
> devik,
> But this is my problem - I don't want bw per connection = total/n ... I want
> bw per connection = x, where x is a constant fraction of total. So for n
> connections total bw utilised = n*x <= total.
> rgds, Michael
>
> -----Original Message-----
> From: devik [mailto:devik@cdi.cz]
> Sent: 09 September 2002 19:53
> To: Michael O'Shea
> Subject: RE: [LARTC] HTB and per-connection bandwidth allocation
>
>
> for n active (backlogged) connection sfq gives
> total/n fraction. existence of backlog is
> essential ! chech with tc class show whether
> htb leaf is backloged during periods you
> are interested in.
> devik
>
> On Mon, 9 Sep 2002, Michael O'Shea wrote:
>
> > devik,
> >
> > I've tried adding sfq qdiscs to the class that governs HTTP but I still
> > don't get the result I want. If I open a single connection, it still gets
> > all the bandwidth available for the class. My understanding is that the
> > addition of sfq to a class will allow fairness between the individual
> > connections (giving each a 'turn') .. but this does not help with defining
> a
> > specific rate per connection?
> >
> >
> > Michael
> >
> > -----Original Message-----
> > From: Martin Devera [mailto:devik@cdi.cz]
> > Sent: 09 September 2002 17:52
> > To: Michael O'Shea
> > Cc: 'lartc@mailman.ds9a.nl'
> > Subject: Re: [LARTC] HTB and per-connection bandwidth allocation
> >
> >
> > try SFQ.
> > devik
> >
> > On Mon, 9 Sep 2002, Michael O'Shea wrote:
> >
> > > Hi,
> > >
> > > How do I allocate a guaranteed rate to each individual connection.
> > > For example I can allocate, say 1Mb, to all HTTP traffic by defining the
> > > appropriate class & filter. In this case, if I have one connection it
> will
> > > get all 1M; if I have 100 then each connection will get ~ 10k. But
> > supposing
> > > I want to allocate 10k per individual connection regardless of the
> number
> > of
> > > connections - so if I have only one connection it gets 10k...20 get
> 20*10k
> > > and if I go above 100 any extra connections are dropped. This allows a
> > > guaranteed level of service per connection.
> > > I cannot see how to achieve this in HTB.
> > >
> > > Thanks
> > > Michael
> > >
> >
> >
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [LARTC] HTB and per-connection bandwidth allocation
2002-09-09 14:20 [LARTC] HTB and per-connection bandwidth allocation Michael O'Shea
` (2 preceding siblings ...)
2002-09-10 9:24 ` devik
@ 2002-09-10 11:22 ` Michael O'Shea
2006-09-14 8:55 ` Namitha Rao
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Michael O'Shea @ 2002-09-10 11:22 UTC (permalink / raw)
To: lartc
Devik,
Thanks for that...now I have to do some thinking..
Rgds
Michael
-----Original Message-----
From: devik [mailto:devik@cdi.cz]
Sent: 10 September 2002 10:25
To: Michael O'Shea
Cc: lartc@mailman.ds9a.nl
Subject: RE: [LARTC] HTB and per-connection bandwidth allocation
Ahh yes .. so that maximum N is fixed in this way ? Hmmm
and you then need way to map active connection to free
class in HTB for example. It will not be simple because
you can't say when conversation ends (safely). So that you
will end with all classes busy.
You would have to write it yourself probably - extend iptables
connection tracking to maintain table of classids and select
classid for new connection and return it when conn is deleted.
Then simply copy this number to fwmark ...
If you really need this and can't write it you could ask
in lartc list whether someone is willing to write it (for
fun or for money).
devik
On Tue, 10 Sep 2002, Michael O'Shea wrote:
> devik,
> But this is my problem - I don't want bw per connection = total/n ... I
want
> bw per connection = x, where x is a constant fraction of total. So for n
> connections total bw utilised = n*x <= total.
> rgds, Michael
>
> -----Original Message-----
> From: devik [mailto:devik@cdi.cz]
> Sent: 09 September 2002 19:53
> To: Michael O'Shea
> Subject: RE: [LARTC] HTB and per-connection bandwidth allocation
>
>
> for n active (backlogged) connection sfq gives
> total/n fraction. existence of backlog is
> essential ! chech with tc class show whether
> htb leaf is backloged during periods you
> are interested in.
> devik
>
> On Mon, 9 Sep 2002, Michael O'Shea wrote:
>
> > devik,
> >
> > I've tried adding sfq qdiscs to the class that governs HTTP but I still
> > don't get the result I want. If I open a single connection, it still
gets
> > all the bandwidth available for the class. My understanding is that the
> > addition of sfq to a class will allow fairness between the individual
> > connections (giving each a 'turn') .. but this does not help with
defining
> a
> > specific rate per connection?
> >
> >
> > Michael
> >
> > -----Original Message-----
> > From: Martin Devera [mailto:devik@cdi.cz]
> > Sent: 09 September 2002 17:52
> > To: Michael O'Shea
> > Cc: 'lartc@mailman.ds9a.nl'
> > Subject: Re: [LARTC] HTB and per-connection bandwidth allocation
> >
> >
> > try SFQ.
> > devik
> >
> > On Mon, 9 Sep 2002, Michael O'Shea wrote:
> >
> > > Hi,
> > >
> > > How do I allocate a guaranteed rate to each individual connection.
> > > For example I can allocate, say 1Mb, to all HTTP traffic by defining
the
> > > appropriate class & filter. In this case, if I have one connection it
> will
> > > get all 1M; if I have 100 then each connection will get ~ 10k. But
> > supposing
> > > I want to allocate 10k per individual connection regardless of the
> number
> > of
> > > connections - so if I have only one connection it gets 10k...20 get
> 20*10k
> > > and if I go above 100 any extra connections are dropped. This allows a
> > > guaranteed level of service per connection.
> > > I cannot see how to achieve this in HTB.
> > >
> > > Thanks
> > > Michael
> > >
> >
> >
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [LARTC] HTB and per-connection bandwidth allocation
2002-09-09 14:20 [LARTC] HTB and per-connection bandwidth allocation Michael O'Shea
` (3 preceding siblings ...)
2002-09-10 11:22 ` Michael O'Shea
@ 2006-09-14 8:55 ` Namitha Rao
2006-09-15 2:55 ` Luciano Ruete
2006-09-23 15:10 ` Andy Furniss
6 siblings, 0 replies; 8+ messages in thread
From: Namitha Rao @ 2006-09-14 8:55 UTC (permalink / raw)
To: lartc
[-- Attachment #1.1: Type: text/plain, Size: 344 bytes --]
Hi
http://mailman.ds9a.nl/pipermail/lartc/2002q3/004977.html
I have the same problem to discuss as in the above link. I want to allocate
say X MBit per individual connection regardless of the number of connection
. KIndly could anyonen suggest me how to proceed.
I have tried with SFq but is doesnot yeild my requirement..
Thanks,
Namitha.
[-- Attachment #1.2: Type: text/html, Size: 457 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] HTB and per-connection bandwidth allocation
2002-09-09 14:20 [LARTC] HTB and per-connection bandwidth allocation Michael O'Shea
` (4 preceding siblings ...)
2006-09-14 8:55 ` Namitha Rao
@ 2006-09-15 2:55 ` Luciano Ruete
2006-09-23 15:10 ` Andy Furniss
6 siblings, 0 replies; 8+ messages in thread
From: Luciano Ruete @ 2006-09-15 2:55 UTC (permalink / raw)
To: lartc
El Thursday 14 September 2006 05:55, Namitha Rao escribió:
> Hi
>
> http://mailman.ds9a.nl/pipermail/lartc/2002q3/004977.html
>
> I have the same problem to discuss as in the above link. I want to allocate
> say X MBit per individual connection regardless of the number of
> connection . KIndly could anyonen suggest me how to proceed.
> I have tried with SFq but is doesnot yeild my requirement..
With CONTRACK/CONNMARK you can get an individual mark per connection, then you
will need to allocate dinamic qdisc/class/filter to match that mark.
Problems that i see:
-do not know if there is an easy way to know wath mark was assigned, but you
can allways 'use the source'
-do not have experience adding and deleting qdisc/class/filter in milisecond
basis.
Not shure at all, but i think that is possible.
--
Luciano
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] HTB and per-connection bandwidth allocation
2002-09-09 14:20 [LARTC] HTB and per-connection bandwidth allocation Michael O'Shea
` (5 preceding siblings ...)
2006-09-15 2:55 ` Luciano Ruete
@ 2006-09-23 15:10 ` Andy Furniss
6 siblings, 0 replies; 8+ messages in thread
From: Andy Furniss @ 2006-09-23 15:10 UTC (permalink / raw)
To: lartc
Namitha Rao wrote:
> Hi
>
> http://mailman.ds9a.nl/pipermail/lartc/2002q3/004977.html
>
> I have the same problem to discuss as in the above link. I want to allocate
> say X MBit per individual connection regardless of the number of
> connection
> . KIndly could anyonen suggest me how to proceed.
> I have tried with SFq but is doesnot yeild my requirement..
>
> Thanks,
> Namitha.
If you can't think of a way to turn a connection into a class then
search the archive for perflow - someone once started a qdisc to do this.
Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-09-23 15:10 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-09 14:20 [LARTC] HTB and per-connection bandwidth allocation Michael O'Shea
2002-09-09 14:43 ` Sebastian 'spax' Pape
2002-09-09 16:52 ` Martin Devera
2002-09-10 9:24 ` devik
2002-09-10 11:22 ` Michael O'Shea
2006-09-14 8:55 ` Namitha Rao
2006-09-15 2:55 ` Luciano Ruete
2006-09-23 15:10 ` Andy Furniss
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.