PCQ and global-in, global-out

Hi,

I just want to clarify an issue about the queueing. below I is my setup of how I’m limiting clients, and also here is a drawing of how I understood PCQ and globa-in and global-out “virtual interfaces”.

/ip firewall mangle
add chain=prerouting action=mark-packet new-packet-mark=all passthrough=no
/queue type
add kind=pcq name=“PCQ_download” pcq-classifier=dst-address pcq-limit=50 pcq-rate=524688 pcq-total-limit=2000
add kind=pcq name=“PCQ_upload” pcq-classifier=src-address pcq-limit=50 pcq-rate=524688 pcq-total-limit=2000
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“Down” packet-mark=all
parent=global-in priority=8 queue=PCQ_download
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“Up” packet-mark=all
parent=global-out priority=8 queue=PCQ_upload
global-in-global-out.gif
The question is, does the packet arriving to the router hits the global-in and than switches to global out and leaves towards the user, and doues this mean that this packet will be twice queued ?

Regards.

Faton

anyone has any idea ?

Hello Faton,
you can specify either just global-in, or just global-out or both.
For global-in and for global-out you can specify different bandwith and, in general, different everything.

So I think that the router use both queues if you specify both.
And any packet is queued twice if you match it twice in two different queues.

Consider this one as my opinion, at the moment I didn’t make a test about this.

Regards,
Alessio

Thanks alessio,
I should rephrase my question, it’s not the problem of the packet being queued twice leaving the router, The question is, it going to be limited twice? this is the issue, and I want to avoid that, otherwise twice queued is a normal routine.

Regards.

Faton

Yes Faton,
I think so, it is limited/prioritized twice if you match it twice.

Regards,
Alessio

Just refer to my rules that I have posted above.