I have Mikrotik v4.11 with hot spot account. I want each user to have two speed limit: one when there is few users login and other if the server is croweded.
for example if the user rate rate limit is 42k/600k, I want it to drop to 42k/512k.
the speed I mention is example. I have other user profiles with different speedsFollowing instructions are for download traffic:
1) packet mark normal_traffic traffic when there's no congestion
and packet mark heavy_traffic traffic during congestion. Decision when to mark_heavy is up to you.
2) create pcq_normal_traffic with rate limit 640 with dst address as classifier
3)create pcq_heavy_traffic with rate limit 512 with dst address as classifier
4)create HTB with two leafs: normal and heavy
assign normal_traffic packet mark and pcq_normal queue to normal leaf
assign heavy_traffic packet mark and pcq_heavy queue to heavy leaf
Or, If user IP addresses are not static - mark traffic from given traffic group with unique DSCP (on user's station or AP). Mark packets, where HTB resides (GW?), according to DSCP marks.Attach address lists to the profiles, mark packets based on address list.
Both local and AAA Hotspot users can be given dynamic address listst that they will be added to on login, and removed from on logout.Or, If user IP addresses are not static - mark traffic from given traffic group with unique DSCP (on user's station or AP). Mark packets, where HTB resides (GW?), according to DSCP marks.Attach address lists to the profiles, mark packets based on address list.