Community discussions

MikroTik App
 
joegoldman
Forum Veteran
Forum Veteran
Topic Author
Posts: 775
Joined: Mon May 27, 2013 2:05 am

PCQ - Per IP

Fri May 23, 2014 10:00 am

Hi Forum,

Have been playing with PCQ and got it working quite comfortably. I understand it is Per Connection Queuing, and I have bene able to match on /32 so each member of the DHCP pool get only get maximum 1mbit per stream, but what I want to achieve is if the same person has multiple connections/streams, limit all theirs only to 1mbit, rather then that person just spawning 10 downloads and getting 10mbit anyways?

This is pure DHCP and client devices (laptops, tables, phones etc), no authentication so no dynamic simple queues are in play, just want to know if its achievable with PCQ.

I am quite happy with how it is, many devices can each spawn up a 2mbit stream so no one connection saturates the link, but just thought if there was a way to refine it a bit more.

Thanks.
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: PCQ - Per IP

Fri May 23, 2014 11:43 pm

What are you currently using as the classifier?
 
joegoldman
Forum Veteran
Forum Veteran
Topic Author
Posts: 775
Joined: Mon May 27, 2013 2:05 am

Re: PCQ - Per IP

Sat May 24, 2014 2:19 am

I basically used this example:

http://wiki.mikrotik.com/wiki/Manual:Qu ... Q_Examples

So mangle packet marks, upload PCQ queue type and download, using /32 dst-address classifier.
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: PCQ - Per IP

Sat May 24, 2014 3:08 pm

Maybe you have it set correctly already. Try this test. Have the relevant client run a speed test to www.speedtest.net. Use Torch to observe the speed test traffic. That site will typically open multiple TCP sessions during the test. Check that you see multiple TCP streams during the test and also check the maximum up/down speed of the tests against your PCQ settings.
 
joegoldman
Forum Veteran
Forum Veteran
Topic Author
Posts: 775
Joined: Mon May 27, 2013 2:05 am

Re: PCQ - Per IP

Sun May 25, 2014 11:45 am

Maybe you have it set correctly already. Try this test. Have the relevant client run a speed test to http://www.speedtest.net. Use Torch to observe the speed test traffic. That site will typically open multiple TCP sessions during the test. Check that you see multiple TCP streams during the test and also check the maximum up/down speed of the tests against your PCQ settings.
Hi,

I have this setup and working as suggested in the example. Speedtest.net is single stream HTTP so it does successfully limit to 2mbit, but if for instance I start 2 downloads at once, they will both get 2mbit so the user then is effectively getting 4mbit.
 
poli5681
newbie
Posts: 44
Joined: Fri Jul 03, 2009 11:47 am

Re: PCQ - Per IP

Sun May 25, 2014 6:21 pm

Hi,

You´re most probably using the wrong classifier (src/dst swapped) for your queue.
Try to swap the classifiers, or post you config.
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: PCQ - Per IP

Sun May 25, 2014 7:24 pm

Speedtest.net is single stream HTTP so it does successfully limit to 2mbit.............
speedtest.net generally uses multiple TCP streams. Each server can be configured differently so if you are really seeing one use a single TCP stream change servers.

Who is online

Users browsing this forum: sdamyt and 32 guests