Mangle is a bandwidth management method, if you want the bandwidth is shared equally by Mikrotik. Such as bandwidth 256kbps downstream and 128kbps upstream. While the client that will access as many as 10 clients, then automatically each client gets a small bandwidth as much as 256kbps downstream and upstream divided by 10 divided by 10 as 128kbps. So each client gets 25.6 kbps downstream and upstream 12.8kbps. if only 2 Clients who access it each client gets 64kbps to 128kbps downstream and upstream.
For the used type PCQ (Per Connection Queue), which can automatically divide traffic per client.
About the type of queue in the proxy can be read in the manual in http://www.mikrotik.com/testdocs/ros/2.9/root/queue.php.
Previous rules need to be made at the mangle. such as:
For the used type PCQ (Per Connection Queue), which can automatically divide traffic per client.
About the type of queue in the proxy can be read in the manual in http://www.mikrotik.com/testdocs/ros/2.9/root/queue.php.
Previous rules need to be made at the mangle. such as:
/ip firewall mangle add chain=forward src-address=192.168.0.0/27 action=mark-connection new-connection-mark=users-con
/ip firewall mangle add connection-mark=users-con action=mark-packet new-packet-mark=users chain=forward
Because the type of PCQ does not exist, then it should be added, there are two types of this PCQ. First given name pcq-download, which will regulate all traffic through the destination address / destination address. This traffic passes through the interface Local. So that all traffic download / downstream coming from the network 192.168.0.0/27 will be shared automatically.
Type of the second PCQ , called pcq-uploaded, to organize all upstream traffic from the source address / source address. Traffic is passing through a public interface. So that all traffic upload / upstream berasaldari 192.168.0.0/27 network will be shared automatically.
command:
Type of the second PCQ , called pcq-uploaded, to organize all upstream traffic from the source address / source address. Traffic is passing through a public interface. So that all traffic upload / upstream berasaldari 192.168.0.0/27 network will be shared automatically.
command:
/queue type add name=pcq-download kind=pcq pcq-classifier=dst-address
/queue type add name=pcq-upload kind=pcq pcq-classifier=src-address
Once the rules for PCQ and Mangle added, is now used to divide the traffic is Queue-Tree, as shown below:
/queue tree add parent=Local queue=pcq-download packet-mark=users
/queue tree add parent=Public queue=pcq-upload packet-mark=users
The command above assumes, if the bandwidth received from the Internet provider changes. If we are sure that bandwidth is acceptable, for example 256kbs downstream and 128kbps upstream, then there are more rules, such as:
For downstream traffic :
Translation from : http://www.kecoak-elektronik.net
------------------------------------------------------------------------
/queue tree add name=Download parent=Local max-limit=256k
/queue tree add parent=Download queue=pcq-download packet-mark=users
-------------------------------------------------------------------------
And upstream traffic
And upstream traffic
---------------------------------------------------------------------------
/queue tree add name=Upload parent=Public max-limit=128k
/queue tree add parent=Upload queue=pcq-upload packet-mark=users
No comments:
Post a Comment