Community discussions

MikroTik App
 
miro10hr
Member Candidate
Member Candidate
Topic Author
Posts: 101
Joined: Fri Nov 11, 2011 3:03 pm

Queue behaviour when max-limit is not set?

Mon Aug 25, 2014 5:24 pm

Hi,

I'm interested what happens if max limit is not set, only rate limit? I'm talking about PCQ.

For example if you have 10/10Mbit connection to Internet, but you don't set max limit. It's unlimited.
You set rate limit to 1Mbit.
If 5 users connect, each will get 1Mbit.
If 10 users connect, each will get 1Mbit.
What happens when 20 users connect? Que doesn't know about 10M limit just 1M limit, but clients never reach it. Each client will compete to reach 1Mbit limit?
Is this good practice or not?

Can someone explain behavior?

One other thing, is this que configuration correct? It's combination of pcq and simple que. Here is the output of configuration

PCQ
add kind=pcq name=PCQ_download pcq-burst-rate=5M pcq-burst-threshold=800k \
pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-limit=50 pcq-rate=1200k \
pcq-src-address-mask=32 pcq-total-limit=15000
add kind=pcq name=PCQ_upload pcq-burst-rate=0 pcq-burst-threshold=0 \
pcq-burst-time=20s pcq-classifier=src-address pcq-dst-address-mask=32 \
pcq-limit=50 pcq-rate=250k pcq-src-address-mask=\
32 pcq-total-limit=15000


Simple Que
/queue simple
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s disabled=no \
limit-at=0/0 max-limit=0/0 name=hotspot_limit packet-marks=\
client_download,client_upload parent=none priority=8/8 queue=\
PCQ_upload/PCQ_download target=10.x.x.x/x

Mangle
/ip firewall mangle
add action=mark-packet chain=prerouting in-interface=HotSpotBridge \
new-packet-mark=client_upload
add action=mark-packet chain=postrouting new-packet-mark=client_download

Who is online

Users browsing this forum: Amaan, Bing [Bot], GoogleOther [Bot], mansuramir, shahzaddj1 and 162 guests