PCQ burst question

Hi all.

Fairly new to mikrotik and just have a question regarding PCQ’s and bursting. We currently have a 8/8Mb line into the office with 20 or so users and a few of them stream music and youtube. I would like to have it set up that the bandwidth is shared with all the users and would like to have a burst function that allows users who are not streaming to get faster speeds when browsing or checking emails and the users that stream to get a slower speeds because of the constant use. Below is the config I have so far. I am not sure if the bursting must be set under the pcq tab or under the simple queue tab and would just like someone to check and see if i have configured it right. Thanks in advance


name=“OFFICE PCQ” target=192.168.0.0/24 parent=none packet-marks=“”
priority=8/8 queue=pcq-upload-office/pcq-download-office limit-at=0/0
max-limit=8M/8M burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
bucket-size=0.1/0.1

/queue type
add kind=pcq name=pcq-download-office pcq-burst-rate=8M pcq-burst-threshold=
1M pcq-classifier=dst-address pcq-dst-address6-mask=64 pcq-limit=30KiB
pcq-rate=2M pcq-src-address6-mask=64 pcq-total-limit=1000KiB
add kind=pcq name=pcq-upload-office pcq-classifier=src-address
pcq-dst-address6-mask=64 pcq-limit=30KiB pcq-src-address6-mask=64
pcq-total-limit=1000KiB

Is there anyone who could shed some light on this as i have been over the forums and guides but i cant find anything on this. Well nothing detailed to this issue at least.

Thanks in advance

It’s not really what you’re asking about, but I’ll post this anyway … maybe it’ll help you with your brainstorming.

My case is that I set up a public WiFi (virtual) AP so that visitors can use WiFi without need to enter the pass phrase. For security reason VAP translates to dedicated VLAN and routing prevents from connecting to any other internal VLAN segments. The bandwidth is obviously shared with “proper” LAN users, so I used simple queue to limit speed users of public WiFi. Target is 1Mbps in DL and 3/4 Mbps in UL, but I allow for some higher speed bursts.

/queue simple
add burst-limit=1M/2M burst-threshold=256k/512k burst-time=1s/1s \
    limit-at=512k/1M max-limit=768k/1M name=wifi-guest-limit \
    target=192.168.41.0/24

limit-at and max-limit settings limit long-term speed, while all burst- settings define the shape of allowed burst: averaging time in both directions is 1 second, max speed during burst is twice the average allowed and burst is considered as burst if previous average speed is below 256/512 kbps (UL/DL). The settings are not “by the book”, but work nicely for me.
I’m not sure if thus defined simple queue works on any single user from the defined IP address range or instead it covers whole IP address range cumulative. Depending on how it works things would get different when more than single guest user would try to use considerable bandwidth at the same time.

As far as placing the burst config in queue types or in queue, you can place anywhere, if placed in queue type, then any queue that uses this queue type will have the burst settings.

As far as burst figures go, I will have a look at this a bit later and revert back

That does answer some of my questions about where to place the burst settings. thanks so far

You seem to be missing a time parameter in your config as per below, “pcq-burst-time=”, bursting works on the average usage over the burst time specified if I recall correctly, with your current settings, if the time is set to 30s, it will allow a burst to 8Mb for ~ 3,75 secs and for 60s it will burst to 8Mb for ~7,5 secs, so my suggestion will be about 30s for that setting as a burst to 8Mb for ~ 3,75 secs is enough for e-mail, etc

I will also change the Red in below to there default values, i.e. 50 and 2000 respectively. These have to do with the queue size for queuing the packets when limits are reached, if too small, you will get lots of packet drops for long downloads which will cause re transmits, etc

add kind=pcq name=pcq-download-office pcq-burst-rate=8M pcq-burst-threshold=
1M pcq-classifier=dst-address pcq-dst-address6-mask=64 pcq-limit=30KiB
pcq-rate=2M pcq-src-address6-mask=64 pcq-total-limit=1000KiB