For that type used PCQ (Per Connection Queue), which can be automatically divide the traffic per client. About the type of queue in mikrotik This can be read on the manual in http://www.mikrotik.com/testdocs/ros/2.9/root/queue.php.
Previously need to be made a rule in the mangle. Such as:
/ip firewall mangle add chain=forward src-address=192.168.0.0/27 \Because type PCQ does not exist, then it needs to be added, there are two types of this PCQ. First named pcq-download, which will regulate all traffic through the destination address / destination address. Traffic is passing Local interface. So that all traffic download / downstream coming from the network 192.168.0.0/27 will be shared automatically.
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
PCQ second type, called pcq-upload, to regulate all upstream traffic derived from the source address / source address. Traffic is passing public interface. So that all traffic upload / upstream originating from the network 192.168.0.0/27 will be shared automatically.
Command:Once the rules for the PCQ and Mangle added, now for the rules traffic division. Queue Queue Tree is used, ie:
/queue type add name=pcq-download kind=pcq pcq-classifier=dst-address
/queue type add name=pcq-upload kind=pcq pcq-classifier=src-address
/ Queue tree add parent = Local queue = pcq-download packet-mark = usersThe command above assumes that if the bandwidth received from the provider Internet berflukstuasi or changing. If we believe that the bandwidth received, for example can 256kbs downstream, and 256kbps upstream, then No more rules, such as:
/ Queue tree add parent = Public queue = pcq-upload packet-mark = users
For downstream traffic:
/ Queue tree add name = Download parent = Local max-limit = 256k
/ Queue tree add parent = Download queue = pcq-download packet-mark = users
And upstream traffic:
/ Queue tree add name = Upload parent = Public max-limit = 256k
/ Queue tree add parent = Upload queue = pcq-upload packet-mark = users
My advice Pake Simple Queue.
1 Comment:
thanks for the information, does this settings work in dhcp mode or just on static mode. What is the bandwidth from your ISP is not known but shared, how will the configurations look like.
thanks
Post a Comment