MikroTik is an excellent router for managing ISP Bandwidth. For this, most of the ISPs are now using MikroTik Router for managing client bandwidth. The service used to manage bandwidth in MikroTik RouterOS is QUEUE.
There are various types of queue services in MikroTik Router for managing internet bandwidth. Among these, PCQ can specially be used for maintaining ISP bandwidth. In this article, we will see how to manage ISP Bandwidth with MikroTik PCQ.
MikroTik PCQ Service
PCQ stands for Per Connection Queues. MikroTik PCQ helps to manage ISP Bandwidth so easily. As a network administrator of any ISP, we have to manage various offered bandwidth packages like 512kbps connection, 1Mbps connection or 2Mbps connection for the clients. Managing these packages with MikroTik Simple Queues will be so hardy and time consuming task.
MikroTik PCQ is so helpful to manage these bandwidth packages. In MikroTik PCQ, we just create different MikroTik PCQ profile according to our bandwidth packages and then assign the PCQ profile to a network block. Then, every IP of the network block will get equal bandwidth that we assigned in MikroTik PCQ Profile.
MikroTik PCQ is a one time configuration system. We can map network block according to our offered bandwidth packages and then assign client IP according to their purchase bandwidth.
How to Manage ISP Bandwidth with MikroTik PCQ
PCQ is a simple but effective and hassle free method to manage ISP bandwidth. Say, we have three offered packages for our ISP clients. These are 512kbps connection, 1Mbps connection and 2Mbps connection. So, our proposed plan would be like below.
- 512kbps clients will get 192.168.10.0/24 block IP.
- 1Mbps clients will get 192.168.11.0/24 block IP and
- 2Mbps clients will get 192.168.12.0/24 block IP.
Now if a client purchases 512kbps connection, we will just assign him/her a 192.168.10.0/24 block IP or if a client purchases 1Mbps connection, we will assign him/her a 192.168.11.0/24 block IP.
If we configure PCQ in our MikroTik Router properly, every client of these blocks will get our assigned bandwidth because in PCQ service every client gets equal bandwidth that will be assigned for the whole block.
MikroTik PCQ can be configured easily following the below two steps.
- MikroTik Router basic configuration
- MikroTik PCQ configuration
Step 1: MikroTik Router Basic Configuration
Before going to start MikroTik PCQ configuration, we need to complete MikroTik Router basic configuration. MikroTik basic configuration includes assigning WAN IP, LAN gateway IP, default gateway IP, DNS IP and NAT configuration.
These basic steps were explained in my another article about MikroTik Router basic configuration using winbox. If you are a new MikroTik user, study that article and complete MikroTik Router basic configuration and then follow the rest of this article to complete MikroTik PCQ configuration.
Step 2: MikroTik PCQ Configuration
After completing MikroTik Router basic configuration, we will now configure MikroTik PCQ service for managing client bandwidth. MikroTik PCQ configuration can be divided into two steps.
- Queue Types Configuration
- Simple Queue Configuration
Queue Types Configuration
We will first configure/create Queue Types for our offered packages. Here, we will define Upload and Download speed for our offered packages. So, follow below steps to complete Queue Types configuration.
- Login to MikroTik Router and click on Queues menu. Now click on Queue Type tab and then click on PLUS SIGN (+) to add new Queue type. New Queue Type window will appear.
- In this window, type 512kbps_Download or as you like in Type Name input box and select pcq from the Kind drop-down menu. This pcq will decide to assign rated bandwidth for all the clients who have this queue type. Now type 512k in Rate input box and check the Dst. Address checkbox from the Classifier panel and then Click Apply and then OK button.
- Again, click on PLUS SIGN (+) and type 512kbps _Upload in Type Name input box. Choose pcq from the Kind drop-down menu and type 512k in Rate input box and then check Src. Address from the Classifier panel and then click Apply and OK button.
- Do step 2 and step 3 for 1Mbps connection and 2Mbps connection. Just change the Rate value 1M and 2M accordingly for these connections.
PCQ Queue types configuration has been completed. Now we will configure Simple Queue for these PCQ Queue types.
Simple Queues Configuration for PCQ Queue Types
After creating PCQ Queue Types, we will now declare different IP blocks that will get these PCQ Queue types. Follow below steps to complete Simple Queue configuration for the PCQ Queue Types those you created before.
- Click on Simple Queues tab and click PLUS SIGN (+) to add new simple queue. New Simple Queue window will appear now. In General tab, type 512kbps_Clients in Name input box or any text that you like and type 192.168.10.0/24 in Target input box. You can also define multiple IP blocks by clicking Add new value button located at right side of Target input box and typing new IP block.
- Click on Advanced tab and choose 512kbps_Upload and 512kbps_Download from Queue Type drop-down menu. As you have assigned 512kbps Upload and Download for Queue Type of this simple queue, all the IPs in this IP block will get 512kbps speed separately. Now click Apply and then OK button.
- Do step 1 and 2 for 1Mbps connection and 2Mbps connection. Just change Target address and Queue Type for these connections.
PCQ configuration in MikroTik Router for the proposed packages has been completed. Now assign clients IP and check their bandwidth with free internet speed test tool. I hope you will get your desired result.
However, if you face any problem to follow above steps, please watch the below video carefully about ISP or Local ISP Bandwidth Management with MikroTik PCQ.
ISP or local ISP Bandwidth Management with MikroTik PCQ has been described step by step in this article. Also a video tutorial has been uploaded to reduce any confusion on configuration. I hope, you are now able to configure PCQ in your MikroTik Router and able to maintain your client bandwidth without any hassles.
However, if you face any problem to assign bandwidth to your ISP client with PCQ configuration, please discuss in comment or contact with me from Contact page. I will try my best to stay with you.