PCQ Specific Setup

Hi Forum,

I have a downstream customer who uses up to 250mbit from me. I limit this with a simple queue on their VLAN interface with packet marks of their IP ranges for in/out. This 250mbit limit works fine and keeps the customer in check.

What they have now asked is if I can limit single IP’s inside that queue, so that no single IP in their network can do over 20mbit at a time. They have the equivalent of about a /19 in IP space, so manually creating a queue for each IP is out of the question. I also dont want it to be ‘per stream’ or ‘connection’ but actually limited by IP, so that IP may have 20 connections but still be limited to 20mbit.

I figure this is where PCQ comes in to play, but im not sure about implementation on:

a) the WHOLE customer base limited within 250mbit and THEN
b) each IP inside this 250mbit limited to a max of 20mbit.

Running this on a CCR1036 so power should be there - possibly installing a dedicated unit for this customer to achieve this if required.

Obviously efficiency is paramount with so much data and possibility to scale out to 300/400mbit.

Keen to hear discussion.

Thanks

Trivial. The pcq-rate option does exactly this. This page from the Wiki has the information you desire.
http://wiki.mikrotik.com/wiki/Manual:Queues_-_PCQ#PCQ_Rate_Examples