Escolar Documentos
Profissional Documentos
Cultura Documentos
Manual:Queues - PCQ
Applies to RouterOS: 2.9, v3, v4
Usage
PCQ was introduced to optimize massive QoS systems, where most of the queues are exactly the same for different sub-streams. For example a sub-stream can be download or upload for one particular client (IP) or connection to server. PCQ algorithm is very simple - at first it uses selected classifiers to distinguish one sub-stream from another, then applies individual FIFO queue size and limitation on every sub-stream, then groups all sub-streams together and applies global FIFO queue size and limitation. PCQ parameters: pcq-classifier (dst-address | dst-port | src-address | src-port; default: "") : selection of sub-stream identifiers pcq-rate (number) : maximal available data rate of each sub-steam pcq-limit (number) : queue size of single sub-stream (in KB) pcq-total-limit (number) : queue size of global FIFO queue (in KB)
So instead of having 100 queues with 1000kbps limitation for download we can have one PCQ queue with 100 sub-streams
Manual:Queues - PCQ
Classification Examples
To better understand classification we will take a list of 18 packet streams from specific address and port, to a specific address and port. Then we will choose a classifier and divide all 18 packet streams into PCQ sub-streams
Manual:Queues - PCQ
Manual:Queues - PCQ PCQ Burst for sub-streams. PCQ will have burst implementation identical to Simple Queues and Queue Tree PCQ parameters: pcq-burst-rate (number) : maximal upload/download data rate which can be reached while the burst for substream is allowed pcq-burst-threshold (number) : this is value of burst on/off switch pcq-burst-time (time) : period of time, in seconds, over which the average data rate is calculated. (This is NOT the time of actual burst) For detailed burst explanation refer to: Burst PCQ also allows to use different size IPv4 and IPv6 networks as sub-stream identifiers . Before it was locked to single IP address. This is done mainly for IPv6 as customers from ISP point of view will be represented by /64 network, but devices in customers network will be /128. PCQ can be used for both of these scenarios and more. PCQ parameters: pcq-dst-address-mask (number) : size of IPv4 network that will be used as dst-address sub-stream identifier pcq-src-address-mask (number) : size of IPv4 network that will be used as src-address sub-stream identifier pcq-dst-address6-mask (number) : size of IPV6 network that will be used as dst-address sub-stream identifier pcq-src-address6-mask (number) : size of IPV6 network that will be used as src-address sub-stream identifier
See Also
PCQ Examples