Traffic Shaping Question

/queue simple add name=test target=10.0.0.0/24 max-limit=256K/512K
interface=ether2

Am I correct in thinking the above will limit traffic from any IP in 10.0.0.0/24 to downloading at 512k and uploading at 256k?

If that’s correct, the next question is: Is that TOTAL for that subnet? Or by connection?

I’m looking for a rule that will allow me to shape traffic going to/from a subnet BY CONNECTION or STREAM. So if there are 5 connections, each would get 512k down or 256k up.

I’ve now looked at PCQ… but contrary to what they are called, they appear to be more Per ADDRESS Queues, not Per CONNECTION Queues.

What I really want is a way to rate limit each connection going to somewhere.

So IP range 192.168.1.0/24 coming into my network can establish a stream of 3megabits/second to any subscriber. It can establish a new stream of 3megabits/second to the same subscriber, but not more than 3 megabits/second per any stream.

Anyone?