Community discussions

MikroTik App
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 600
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

PCQ queues help needed

Sat Jan 16, 2021 9:58 am

Hello
I have studied the topic for a lot of time but I am not able to achieve the right results.

https://mum.mikrotik.com/presentations/ ... _Megis.pdf
https://mum.mikrotik.com/presentations/US08/janism.pdf
https://mum.mikrotik.com/presentations/ ... ordano.pdf

I have read these presentations.


this is the situation:

750M symmetric fiber available
WAN interface
and interface towards customers.

Subnet:
100.70.2.0/24
router is 100.70.2.254/24

profiles are 30/30 100/100 300/300

In the past I used simple queue but they showed some issue of performance.
I migrated to PCQ queues:

This is the situation:

/queue type
add kind=pcq name=PCQ-Down-30M pcq-classifier=dst-address pcq-rate=30M pcq-total-limit=20000KiB
add kind=pcq name=PCQ-Down-100M pcq-classifier=dst-address pcq-rate=100M pcq-total-limit=20000KiB
add kind=pcq name=PCQ-Up-30M pcq-classifier=src-address pcq-rate=30M pcq-total-limit=20000KiB
add kind=pcq name=PCQ-Up-100M pcq-classifier=src-address pcq-rate=100M pcq-total-limit=20000KiB
add kind=pcq name=PCQ-Up-300M pcq-classifier=src-address pcq-rate=300M pcq-total-limit=20000KiB
add kind=pcq name=PCQ-Down-300M pcq-classifier=dst-address pcq-rate=300M pcq-total-limit=20000KiB
set 13 pcq-rate=750M
set 14 pcq-rate=750M

I have set the default queue uppload and downlaod with the pcq rate of max available bandwidth.


/queue simple
add max-limit=750M/750M name="aggregated" queue=pcq-upload-default/pcq-download-default target=bridge_fiber
add name="user 3" parent="aggregated" queue=PCQ-Up-100M/PCQ-Down-100M target=100.70.2.108/32
add name="user 4" parent="aggregated" queue=PCQ-Up-30M/PCQ-Down-30M target=100.70.2.9/32
add name="user 5" parent="aggregated" queue=PCQ-Up-100M/PCQ-Down-100M target=100.70.2.2/32
add name="user 6" parent="aggregated" queue=PCQ-Up-300M/PCQ-Down-300M target=100.70.2.3/32
add name="user 7" parent="aggregated" queue=PCQ-Up-100M/PCQ-Down-100M target=100.70.2.4/32
add name="user 8" parent="aggregated" queue=PCQ-Up-100M/PCQ-Down-100M target=100.70.2.5/32


According to the slides I set the total queue to 20000k for a space of 400 queues per 50 packets (i dont know if it is right or wrong)

I have some questions:

1) total queue size, it should be set to accomodate 50 packets queue * x possible total queue? Please someone explain it to me.
2) With the same configuration replicated to different towers, I am NOT able to get the expected results. In some towers it works, in other DON'T work and users get 3mbit... if I disable the queue it works ok.

3) it is OK to set the maxlimit to "unlimited" and the speed set in the queue type?

HELP please.
I am also available to paid consulting to fine-tune the situation, but I would like to find it with your supporto to at least understand how pcq works.

thank you
 
User avatar
Wangz
newbie
Posts: 39
Joined: Wed Apr 15, 2020 4:41 pm

Re: PCQ queues help needed

Wed Jan 20, 2021 5:53 pm

I have some questions:

1) total queue size, it should be set to accomodate 50 packets queue * x possible total queue? Please someone explain it to me.
2) With the same configuration replicated to different towers, I am NOT able to get the expected results. In some towers it works, in other DON'T work and users get 3mbit... if I disable the queue it works ok.

3) it is OK to set the maxlimit to "unlimited" and the speed set in the queue type?

HELP please.
I am also available to paid consulting to fine-tune the situation, but I would like to find it with your supporto to at least understand how pcq works.

thank you
Bump, need an explanation about pcq-limit and total limit. The first question got me confused too, whether the measurement is still in the packet or not or in KiB. Wiki states that it is KiB but it seems different. During my testing I felt that it is still in packet. Question 3 do you mean pcq rate 0?

Who is online

Users browsing this forum: mszru and 23 guests