Simple Queues with PCQ and Burst

Hello there,

I’ve already read manual about Queue, Simple Queues, Burst, PCQ on wiki but I still confused about it, and I want to implement those QoS concept into my home network. Is it possible to activate or trigger a burst with PCQ?, at first I try to use simple queues with burst configured using default upload and download PCQ like this:

/queue simple
add comment="default tx/rx pcq limitation" 
burst-limit=10M/15M burst-threshold=5M/5M burst-time=16s/16s  
limit-at=2M/2M max-limit=5M/10M name=orang-rumah-1 
queue=pcq-upload-default/pcq-download-default target=wlan1

Does the PCQ work alongside with burst configured in simple queue like that? for example, if there is 5 client connected and 1 client get burst, does the burst itself effected only to that client or all the client on wlan1 got the same effect because they were in the same interface?

Second, I’ve try to create own customized PCQ types with the simple queue runs like this:

/queue type
add kind=pcq name=pcq-download-custom pcq-burst-rate=15M 
pcq-burst-threshold=5M pcq-burst-time=16s pcq-classifier=dst-address
add kind=pcq name=pcq-upload-custom pcq-burst-rate=10M 
pcq-burst-threshold=5M pcq-burst-time=16s pcq-classifier=src-address

/queue simple
add comment="custom tx/rx pcq limitation" 
limit-at=2M/2M max-limit=5M/10M name=orang-rumah-2 
queue=pcq-upload-custom/pcq-download-custom target=wlan1

In this configuration I tested for speedtest but I don’t see the client which I’ve tested get the burst rate. So, what is effected during pcq-burst process here? Or, is there a special way to do the test for result of the configuration itself?

The goal here’s that I want my client on interface wlan1 got PCQ mechanism, but in the same time there’s a burst works with it. Any idea how to do it? I’m currently learn with MikroTik especially on Quality of Service.

Thank you in advance :slight_smile:
Regards.

Is there anyone can help me about this? any suggestions or opinion are really appreciated.

Perhaps, anyone?

BUMP…

This is a really good question…Id like to know as well.

Hi,
It works ok.

But you need to think about the times, and the thresholds.
I don’t think 16S is enough to see anything, make it at least a few minutes.

If your average speed (over 16S in this case) is >= 5M (burst-threshold) then you are limited to max_limit until it is less than that.
It breaks the 16S up into 16 slots (1S each in this case)

Assuming no traffic for a while, then maximum download with burst.
For each 1S slot you would get

-3… Avg All 0, before download.
-2. 0M, Avg = 0M / 16
-1. 0M, Avg = 0M /16
0. 0M, Avg = 0M / 16

  1. 15M, Avg=15M /16 Start download, burst active.
  2. 15M, Avg = 30M / 16
  3. 15M, Avg = 45M / 16
  4. 15M, Avg = 60M / 16
  5. 15M, Avg = 75M / 16
  6. 15M, Avg = 90M / 16 – Avg Greater than 5M, >= Burst threshold, so back to max-limit
  7. 5M, Avg = 95M / 16
  8. 5M, Avg = 100M / 16 (Will never get less than 5M while running at max limit)

At timeslot 17, the 15M value in timeslot 1 will fall off.
And eventually the Avg will become 5M,
(With a bit of speed variability, you will likely get an occasional 1S burst sometimes)

In this case you would get 5-6S of burst limit, before it is throttled.
Which seems short and unlikely to be useful.

(Scaling factor is roughly Burst limit/Burst Threshold)

I have in the past used a bunch of simple queues with quite long burst times, (in the order of hours) to stop people
downloading or more commonly uploading all day at full speed, they get an hour or so at near full speed, then get restricted. (Commonly I would use a default queue, or perhaps a synchronous queue type for this bit)

Then followed by a PCQ Global Queue, so everyone also got throttled depending on how many (and how much) other users were up/downloading at the same time. (No burst on this queue, upload at least need it at or below ISP rate)