Hello.
I’m a newbie with queues and QoS. I try to understand the simple queues. I want to prioritize DNS Traffic.
Assumed i already setup the mangle to mark DNS Connection and Packets.
What i need to setup the Simple Queue to prioritize that traffic ?
Is it just that simple that i set the priority of DNS Packets higher than all other traffic ?
Do i need to set any limit values (limit-at / max-limit) to get the queueing work properly ?
(in general i not want to set any of these values if not necessary)
How it works technically, is it just that the packets with higher priority will preferred until no more high prioritized packets in the queue ?
mark packets in mangle as you said.
2.create a inner queue (name=queue1) with your upload-download max limits. eg 1mbps upload and 10mbps download and set upload /download priority 8/8.
3.after create a child queue (parent =queue1) with max limits the same as queue1 (1mbps upload and 10mbps download), and priority up/down 1/1 and packet mark the name you specify in mangle
if you set set limit-to (CIR) to the child queue (eg 256k/256k) you enforce this queue to have ALWAYS this bandwidth no matter what you download or upload.
read this article. i have to read it again and again to clarify things and make tests of my own to get it done as i want.
Priority
We already know that limit-at (CIR) to all queues will be given out no matter what.
Priority is responsible for distribution of remaining parent queues traffic to child queues so that they are able to reach max-limit
Queue with higher priority will reach its max-limit before the queue with lower priority. 8 is the lowest priority, 1 is the highest.
Make a note that priority only works:
for leaf queues - priority in inner queue have no meaning.
if max-limit is specified (not 0)
Hi,
many thank for your explanation. That helps a lot.
So there is no way to get prioritize Traffic without setting limits ?
You described the way to go with HTB, is this also possible wit Simple Queues / Global Queues ? Major difference ?
The reason why I would not set a limit is that my ISP have no guaranteed bandwidth, depending on traffic load / FUP, that mean I don’t know the current maximum, on other hand i need to set a limit in the queue, maybe it not work as expected if the limit is different ?