Community discussions

MikroTik App
 
User avatar
LatinSuD
Member Candidate
Member Candidate
Topic Author
Posts: 181
Joined: Wed Jun 29, 2005 1:05 pm
Location: Spain
Contact:

Suggestion: make "PCQ-Upload" compatible with "Masquerade" again

Mon Nov 30, 2015 9:24 pm

The subject is quite descriptive: when using Masquerade PCQ-Upload queues work like standard queues.

It stopped working in V6 due to changes in packet flow.
Last edited by LatinSuD on Thu Dec 24, 2015 10:08 am, edited 2 times in total.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Suggestion: make "PCQ-Upload" compatible with "Maquerade" again

Fri Dec 04, 2015 1:53 pm

what parent do you use?
 
User avatar
LatinSuD
Member Candidate
Member Candidate
Topic Author
Posts: 181
Joined: Wed Jun 29, 2005 1:05 pm
Location: Spain
Contact:

Re: Suggestion: make "PCQ-Upload" compatible with "Maquerade" again

Thu Dec 24, 2015 10:07 am

what parent do you use?
I think it doesn't work with any of them (global or interface)
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Suggestion: make "PCQ-Upload" compatible with "Masquerade" again

Thu Dec 24, 2015 2:34 pm

well, it works for us in usual way (hundreds of active users per PCQ queue, RouterOS v6.10 to v6.33) on 'global' parent, and seems like that 'feature' was fixed in early v6:
What's new in 6.0beta1 (2012-Apr-13 15:26):
*) pcq queue is NAT aware (just like "/queue simple" and "/ip traffic-flow";
 
User avatar
LatinSuD
Member Candidate
Member Candidate
Topic Author
Posts: 181
Joined: Wed Jun 29, 2005 1:05 pm
Location: Spain
Contact:

Re: Suggestion: make "PCQ-Upload" compatible with "Masquerade" again

Fri Oct 21, 2016 11:16 am

And yet it fails.
/ip firewall mangle
add action=mark-packet chain=forward new-packet-mark=prueba out-interface=pppoe-out1

/queue type
add kind=pcq name=pcq-upload-prueba pcq-classifier=src-address pcq-dst-address6-mask=64 pcq-rate=1M \
    pcq-src-address6-mask=64

/queue tree
add name=pcq-upload-prueba packet-mark=prueba parent=global queue=pcq-upload-prueba

I set up 2 PC uploading and I only get 1M combined upload.

Ironically this document gets it wrong (it is broken in v6, while it worked in v5):
http://mum.mikrotik.com/presentations/HR13/valens.pdf
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Suggestion: make "PCQ-Upload" compatible with "Masquerade" again

Fri Oct 21, 2016 12:51 pm

and what value you see in '/queue tree print stats', pcq-queues=?

still works fine for me, marking in 'forward', queues are under 'global' :)
 
User avatar
LatinSuD
Member Candidate
Member Candidate
Topic Author
Posts: 181
Joined: Wed Jun 29, 2005 1:05 pm
Location: Spain
Contact:

Re: Suggestion: make "PCQ-Upload" compatible with "Masquerade" again

Fri Oct 21, 2016 7:24 pm

and what value you see in '/queue tree print stats', pcq-queues=?

still works fine for me, marking in 'forward', queues are under 'global' :)
It says:
pcq-queues=1
Don't forget to use masquerade on the output interface.

Btw, using version 6.32.4
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Suggestion: make "PCQ-Upload" compatible with "Masquerade" again

Sun Oct 23, 2016 1:17 am

Don't forget to use masquerade on the output interface.
we're using "action=same to-addresses=some.ip/25", and I see pcq-queues>400, for example (I should see not more than 128 if it were not working)
 
User avatar
LatinSuD
Member Candidate
Member Candidate
Topic Author
Posts: 181
Joined: Wed Jun 29, 2005 1:05 pm
Location: Spain
Contact:

Re: Suggestion: make "PCQ-Upload" compatible with "Masquerade" again

Mon Oct 24, 2016 10:13 am

So we agree that pcq-upload is currently not compatible with masquerade, right?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Suggestion: make "PCQ-Upload" compatible with "Masquerade" again

Mon Oct 24, 2016 2:12 pm

So we agree that pcq-upload is currently not compatible with masquerade, right?
I didn't test it exactly with masquerade, I use generic src-nat. You may change "action=masquerade" to "action=same to-addresses=your.wan.ip.address" and recheck - this definitely works for me.
 
User avatar
LatinSuD
Member Candidate
Member Candidate
Topic Author
Posts: 181
Joined: Wed Jun 29, 2005 1:05 pm
Location: Spain
Contact:

Re: Suggestion: make "PCQ-Upload" compatible with "Masquerade" again

Tue Oct 25, 2016 12:27 pm

You may change "action=masquerade" to "action=same to-addresses=your.wan.ip.address" and recheck - this definitely works for me.
I only have 1 WAN IP address, can I use "same"?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Suggestion: make "PCQ-Upload" compatible with "Masquerade" again

Tue Oct 25, 2016 1:17 pm

Sure. 1 IP address is whole /32 subnet :)
 
User avatar
macgaiver
Forum Guru
Forum Guru
Posts: 1764
Joined: Wed May 18, 2005 5:57 pm
Location: Sol III, Sol system, Sector 001, Alpha Quadrant

Re: Suggestion: make "PCQ-Upload" compatible with "Masquerade" again

Tue Oct 25, 2016 2:03 pm

So we agree that pcq-upload is currently not compatible with masquerade, right?
With connection tracking on, it definitely works
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Suggestion: make "PCQ-Upload" compatible with "Masquerade" again

Tue Oct 25, 2016 2:52 pm

With connection tracking on, it definitely works
with connection tracking off, masquerade definitely does not work :)
 
User avatar
LatinSuD
Member Candidate
Member Candidate
Topic Author
Posts: 181
Joined: Wed Jun 29, 2005 1:05 pm
Location: Spain
Contact:

Re: Suggestion: make "PCQ-Upload" compatible with "Masquerade" again

Wed Oct 26, 2016 9:56 am

So we agree that pcq-upload is currently not compatible with masquerade, right?
With connection tracking on, it definitely works
Have you verified it personally in v6?
Can you post a working example?
 
User avatar
LatinSuD
Member Candidate
Member Candidate
Topic Author
Posts: 181
Joined: Wed Jun 29, 2005 1:05 pm
Location: Spain
Contact:

Re: Suggestion: make "PCQ-Upload" compatible with "Masquerade" again

Thu Dec 14, 2017 2:26 pm

I finally found the way.

You need simple queues (not queue tree)
Target must be the LAN interface.
Then you can specify the WAN interface as Dst (or use mangle to mark the upload).


/queue simple
add dst=WAN max-limit=5M/100M name=PCQ queue=pcq-upload-default/pcq-download-default target=LAN

Tested in ROS 6.38.7.

It also looks that my original example is working properly now, i'm not sure what happened.

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot] and 86 guests