Qos configuration needed for a Hotspot

Hello all!
I use mikrotik as a gateway on my network with hotspot setup for the network users.
I want to be provide bandwidth management on the network for efficient bandwidth use. I have tried to use pcq from queue but doesn,t seem to work. I help on this pls help me out.

Hi,

Did you read this Wiki example http://wiki.mikrotik.com/wiki/PCQ_Examples ?
PCQ works really good.

Regards, Grzegorz.

Hotspots don’t work well with PCQ because Hotspots dynamically create simple queues.
To work around that, you have to attach the PCQ queues to global-in and global-out, as those fire before simple queues. So mark in pre-routing (upload) and post-routing (download), and make sure everything stems from global-in and global-out instead of interfaces.

Another issue is that Hotspots by default route all HTTP traffic (the majority of Hotspot traffic, usually) through the servlets via a redirect, similar to proxies. That is necessary to provide functionality such as ad insertion in the RouterOS implementation. At that point the traffic is sourced from the router itself, so the src-address pcq-classifier doesn’t work well. To prevent that, add a firewall nat rule in the pre-hotspot rule that accepts all traffic (or at least all TCP/80 traffic) for authenticated hotspot users that isn’t destined to the router:

/ip firewall nat add chain=pre-hotspot hotspot=auth dst-address-type=!local action=accept

Of course you lose some Hotspot functionality that way as traffic from authenticated users is no longer inspected by the Hotspot.

Hope those pointers help.

Thanks for response,
I have another question.

  1. What is the implecation if traffic from the autheticated users is no longer inspected by the hotspot?
  2. How do I monitor that this configuration working fine?

Secondly, the pcq I used is exactly as what I found on the url posted. But with no mangle
I really appreciate your concern, :slight_smile: