Community discussions

MikroTik App
 
firebat
Member
Member
Topic Author
Posts: 390
Joined: Mon Apr 11, 2005 8:38 am

PCQ type simple queues. Is this config correct?

Sun Feb 25, 2007 12:59 am

I have a router with interfaces:

cloud: connected to internet (2MB connection)
ether1: connected to Access Point 1 (10MB Connection)
ether2: connected to Access Point 2 (10MB Connection)

I have created the following Simple Queues:

1. Cloud Queue using a defined PCQ Queue type limiting overall throughput on the Cloud interface to 2MB UP/Down:

name="cloud" dst-address=0.0.0.0/0 interface=Cloud parent=none \ direction=both priority=8 queue=My-PCQ/My-PCQ limit-at=2000000/2000000 \ max-limit=2000000/2000000 total-queue=default-small disabled=no


2. Ether1 queue for the ether1 interface connected to AP1. A PCQ type queue is used limiting overall BW to this port to 10MB up/down:

name="ether1" dst-address=0.0.0.0/0 interface=ether1 parent=none \ direction=both priority=8 queue=My-PCQ/My-PCQ limit-at=10000000/10000000 \ max-limit=10000000/10000000 total-queue=default-small disabled=no



3. Ether2 queue for the ether2 interface connected to AP2. A PCQ type queue is used limiting overall BW to this port to 10MB up/down:

name="ether2" dst-address=0.0.0.0/0 interface=ether2 parent=none \ direction=both priority=8 queue=My-PCQ/My-PCQ limit-at=10000000/10000000 \ max-limit=10000000/10000000 total-queue=default-small disabled=no



After completing this configuration, I am adding additional simple queues for users of AP1 and AP2 to limit Bandwidth for each user. For users of AP1, the parent queue is Ether1. For users of AP2, the parent queue is Ether2. Example of simple queue for AP1:

name="customer1" target-addresses=10.0.0.xx/32 dst-address=0.0.0.0/0 interface=all parent=ether1 direction=both priority=8 \ queue=default-small/default-small limit-at=0/0 max-limit=512000/1000000 burst-limit=512000/1000000 burst-threshold=512000/1000000 burst-time=10s/10s total-queue=default-small time=0s-1d,sun,mon,tue,wed,thu,fri,sat disabled=no


With this configuration, I am expecting the following to be true:

1. All traffic traversing the Cloud interface will be shaped to 2MB up/down and the Bandwidth will be equally shared across connections traversing this interface at times of congestion (due to the PCQ queue type of the cloud simple queue).

2. Traffic traversing either ether1 or ether2 interfaces will be shaped to 10MB up/down and all users will get equal shares of bandwidth through this interface at times of congestion (due to the PCQ queue type of the parent ether1/ether2 simple queue).

Are my assumptions correct? :D

Who is online

Users browsing this forum: kakaxa, MSN [Bot] and 36 guests