I don't know how you can put every new connection in a new class, but why don't you try this:In stead of defining a min/max for a certain type of traffic (e.g. http, ftp whatever), I would like to define a "minimum guaranteed bandwidth per connection". e.g. An application connecting to port X would get 10kbit/s guaranteed, the next connection to port X would also get 10kbit/s etc.
Would be something like having N (the maximum number of connections) HTB classes, and put every new connection in another class.
Decide what will be the maximum number of connections you want to provide the guaranteed minimum and how much will it be (kbit/s).
If for example we take connections to port 80, create a HTB class with rate=max_conn*guaranteed_rate and classify all traffic to port 80 to it.
Then add an SFQ behind. This way if there is a fewer number of connections than you planned for each will get (class_rate/connections)kbit, which
will more than the guaranteed minimun. If the number is equal to the number of connections, the SFQ will make sure that no particular connection
take over the bandwitdh, and evey connection will get it's guaranteed minimum. If there are more connections than you expected, each will get an equal portion of the available bandwidth. Actually that's exactly what SFQ is designed for, to distribute the available bandwidth equally to every connection.
Greets, Rado
_______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/