What is the "best" way for bandwidth control?

Hi! I got 8Mbit/0.5Mbit internet access and searching for the best way to share it.
There was a internet access where every user gets IP address and have instant access to net, but there was problem with MAC cloning and WEP hack attacks so this config is out of question.

So am interested how guys you limit users speed to internet.
Its a small network of 30 ppl.

Advices?

Thanks!

Hi ;
welcome you here in the forum .
this case is simple and complex in the same time , there are many thinks about Qos and traffic shaping and bandwidth control .
as a start you could give each user a bandwidth which it will give him the max he could reach and it is shared .
ex: if you give your users like 256 kbps / 50 kpbs , it refer the max limit he could reach . in the same time if the band was loaded may be he will not reach these values .
go to queue and make a simple queue for each client , give a name and the ip and put the max limit in kbps for each one of them . also not forget to put priority value .
i still using the band control in this way until i finish reading for this important topic where we all face problems without it .
with best regards

Hi..

You can create a New Queue Type as PCQ and then create one Simple Queue, define the IP Pool and set the Queue Type the same as you created in Queue Type.

http://wiki.mikrotik.com/wiki/PCQ_Examples

Hi ;
Thanks alot for your post here , i hope it will help all users .
i will implement it soon just need to read more about band control .
with best regards .
:smiley:

Glad to help out.

Three questions regarding this:

  1. How many users can simple queues handle (as far as the example above is concerned)?

  2. In the example, it states that you can EITHER use PCQ queues or SIMPLE queues. Which one is preferable / more efficient?

  3. How would one determine what the ideal upload / download speed is for x-amount of users?

Hi..

  1. How many users can simple queues handle (as far as the example above is concerned)?

As far as the example above is concerned, i have tested it on my network with approximately 60 users. It was working fine.

  1. In the example, it states that you can EITHER use PCQ queues or SIMPLE queues. Which one is preferable / more efficient?

I would prefer you to create seperate Simple Queue for each IP as it will guarantee each IP the amount of bandwidth you want to allocate, also it will be quite easy to use GRAPING tool to monitor the usage of each IP individually. I am personally using Seperate Simple Queues for my users.

  1. How would one determine what the ideal upload / download speed is for x-amount of users?

This is something that has to set according to the use of the users. Like i have created different bandwidth packages, upto 512K and minimum of 200K. So it is not something that can be calculated, it is something that has to be judged by the ADMIN.

Hope it will help you out.

I would prefer you to create seperate Simple Queue for each IP as it will guarantee each IP the amount of bandwidth you want to allocate, also it will be quite easy to use GRAPING tool to monitor the usage of each IP individually. I am personally using Seperate Simple Queues for my users.

Hi ;
further more by using simple queue for each ip you will be able to change the bandwidth for that user any time . assume one of the users hold the band for long time which effect the internet you simply go to his queue rule and reduce the bandwidth allocated to him .

This is something that has to set according to the use of the users. Like i have created different bandwidth packages, upto 512K and minimum of 200K. So it is not something that can be calculated, it is something that has to be judged by the ADMIN.

it is related to your bandwidth , here we use about 512 /128 kbps 1:20 to supply service to about 10 pc’s , but if you have 10 Mbps and you have only 10 users you will give each one 1 Mbps and reduce it later .
with best regards .

Hi Mudasir

Thanks for your help. I’ve now started generating Simple Queues for each IP. I’ve also set it for a specific time (17h00 to 20h00), as this is when we encounter “peak” times.

I assume Simple Queueing will only be applied to the IP specified? No unrelated traffic will be effected?

Would you mind posting an example of one of your Simple Queue rules?

Hi…

Here is the example of a simple queue that i am using.

add name="172.16.50.10" target-addresses=172.16.50.10/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=8 queue=default-small/default-small limit-at=160000/160000 max-limit=160000/160000 
total-queue=default-small disabled=no

Change the name as per your need, you can also change the priority.

Is it required that you input a dst address? Would it matter if I leave it blank?

What is the significance of the priority setting?

Hi ;
regarding the dst address , when you put a certain address like :
69.147.76.15 , which it for yahoo site , that mean this queue rule will be implemented only when that ip open yahoo and when he open another site he will get it as unlimited speed .
so it is better to use dst address as 0.0.0.0/0 that mean all sites in internet .
the priority is when the MT get two requests , he will pass the request with higher priority first then the lower priority
priority 1 , the highest level
priorty 8 , the lowest level .
with best regards .

Excellent! Thanks for your help!

I need some assistance:

When I attempt to enter the dst-address (0.0.0.0/0) for a simple queue, and click apply, the values disappear. Why would this be happening?

All the other attributes are stored, except the dst-address.

Hi.

Dear heinb,

blank dst address means 0.0.0.0/0. It will work fine do not worry.

Hi Mudasir

I had the queues running last night. It definetaly seems to make a difference. At the moment, I’m running queues on user PC IP’s; however, I assume that one can run queues on the client wireless unit IP’s (we use the Acconet wireless clients which run on a different IP range).

Anyway, thanks again for your help. This is going to make a big difference; specifically in aiding to throttle the abusers on the network.

Hi ;
would you mind to give more details about the ip’s ? , i didn’t get your point to try help you .
with best regards .

Running the queue on the client’s wireless cpe will only work if they are routing through that IP. If they are bridging you need to limit the IP of the device connecting to the bridge.

  1. In the example, it states that you can EITHER use PCQ queues or SIMPLE queues. Which one is preferable / more efficient?

If the example says that it would be incorrect. You need to either use a Simple Queue or Queue Tree, not both.

jesus… HARD offtopic.. Guess my english is to bad.
I didnt ask how to create a bandwidth limit or queue’s!
So basicly what you replayed me is a free net for some kid with laptop runing arround.

Thanks anyway. Asked a frend and he told me that minimal chance for hack is PPTP (VPN).

Your original post is confusing. Your best bet is to run PPPoE. PPTP will give you more overhead and higher latency.