bandwidth allocation (reservation)

Hi,

I have 4 mbps line terminated in mikrotik. I want to give (allocate/reserve) 1 mbps to one user (without authentication) and rest 3 mbps to other 100 users (hotspot users)

How can I limit 1 mbps to that user and not allow other 100 users to get bandwidth from this 1 mbps.

Thanks in advance.

An easy and minimalistic solution can be the simple queue
Set a static IP to the user that u want to give him the allocated bandwidth and use a simple queue on his IP giving him 1Mbit allocated bandwidth but giving him the chance to use all the bandwidth if the hotspot users aren't using it.

/queue simple 
add name="User" priority=4 target-addresses=10.10.0.1/32 total-limit-at=1000000 total-max-limit=4000000

Now add a queue for the Hotspot users using their IP range and giving them all the bandwidth aswell (so if the user is not using his Bandwidth they share it aswell)

add name="Hotspot" priority=3 target-addresses=10.20.30.0/24 total-max-limit=4000000

Scenario:

User wants 3Mbit
Hotspots are off
The User will get all the Bandwidth he needs.

User is off
Hotspots want 4Mbit
The Hotspots get all the Bandwidth they need.

User wants 3Mbit
Hotspot want 4Mbit
Hotspots will have priority on the bandwidth (they have higher priority 3) but User has allocated Bandwidth so he will continue getting 1Mbit, while the Hotspots will take the rest.

Thanks for your help. It worked well.

Now I want to restrict each hotspot user to max 64k speed. Otherwise one user can use almost entire bandwidth and other users will not get any.

This depends on your setup, if you are running a radius authentication, let the radius do the limitations, otherwise set it on the hotspot user profile.

Hi

i am not using radius server. also i do not have hotspot in real sense. the users do not have to go through authentication so i removed hotspot. it’s an exhibition hall. i created one static pool for 1 mbit and one dhcp pool for other 100 users.