Queue for limiting bandwidth

Hi all,


after reading wiki,forum,google research and so on, I can not figure out how to limit the bandwidth.

  1. If i have a LAN with 10 clients,how can i limit so everyone of them gets,at the same time, maximun 100kbyte/s? So, if everyone is downloading something huge, the maximum throughput of the line to be 10*100 = 1000kbyte/s = 1Mbyte/s.???

2.How can i limit THE TOTAL BANDWIDTH ALL the users can have? For example all ten of the clients to have maximum 5Mbps, assuming that i don’t care how much of it, everyone should have available?

Do I need any tree queue for any of these?
For option one, i need a simple queue for EVERY client or if I just set as target addresses the all subnet of the clients, EVERYONE should get the maximum limit??

Thnks

Take a look at the PCQ queue http://wiki.mikrotik.com/wiki/Manual:Queues_-_PCQ
It should be the answer for your needs.

search google for " mikrotik connection rate" you will find a script do exactly what you are talking about, just change the values provided for your needs.