Set the Type Name to "Silver_download", the Kind to "pcq" the Rate to 10M, the Queue Size to 50 and the Total Queue Size to 250000.Navigate to Queues > Queue Types, and click the blue "+" button.Once you have both connection marks and packet marks, if you have built these rules on a live network, you should see both the Bytes and Packets tables climbing for each mangle rule. Once you have one pair of packet mark rules built, you can just Copy each rule and modify the Connection Mark you are selecting under the General tab as well as the name of the New Packet Mark under the Action to create new marks. Make sure the Passthrough check box is checked. Set the New Packet Mark to "Silver_traffic_up". In the Action tab, set the Action to "mark packet".If you are using VLANs for your customer-facing traffic, set the Out. Interface to whichever interface is customer-facing, and set the Connection Mark to "Silver_traffic_down". In the General tab, set the chain to forward, set the Out. Hit the blue "+" button to create a new mangle rule.In the examples below, we will build out both packet marks for the "Silver" address list. Similar to Connection Marks, for each Address List in Sonar that we would like to control speeds, we will need to create a packet mark for the download, as well as one for the upload. Address List you are selecting as well as the name of the New Connection Mark to build additional marks. Once you have one pair of connection mark rules built, you can just Copy each rule and modify the Dst. Make sure the Passthrough checkbox is checked. Set the New Connection Mark to "Silver_traffic_up". In the Action tab, set the Action to "mark connection".If you are using VLANs for your customer-facing traffic, set the In. If you have more than one physical interface that faces customer devices, common practice would be to set this up as a bridge and use the bridge as the Out. Interface to whichever interface is customer-facing. In the General tab, set the chain to forward and the Out.Winbox into the MikroTik you would like to setup rules in and go to IP > Firewall > Mangle, then hit the blue "+" button to create a new mangle rule.In the examples below, we will build out both connection marks for the "Silver" address list. This means, for example, if we have five address lists that we would like to control speeds, there should be 10 connection marks. Simply click on system>script and eneter values similar to the ones in the image below.If you'd like to watch a video on best practices for generating your own Mangle Queues, and handling Address Lists, please view the following video: Efficient MikroTik Shaping Rules Creating Connection Marksįor each Address List in Sonar that we would like to control speeds, we will need to create a connection mark for the download, as well as one for the upload. See below image for how to implement it on Winbox. See commands below:Īdd name=Day source=/queue simple enable day /queue simple disable nightĪdd name=Night source=/queue simple enable night /queue simple disable day Next, we create a script that will enforce this queues. The next step is to create two simple queues one for day (peak period) and the other for night (off-peak period). See commands to configure the router as an NTP client below: For to happen, the router must be configured as an NTP client. Since Mikrotik time-based queue works with the router’s time, it is important that the time on the router remains accurate at all times. You may also like: How to configure dynamic queue on Mikrotik routers using Queue Tree Implementation For this demonstration, the Mikrotik RB750 series was used. The implementation of Mikrotik time-based queue can be achieved on any Mikrotik router capable of simple queue. ISPs use this method to provide extra speed to customers during off-peak periods. The implementation of a Mikrotik time-based queue will be configured using simple queue with scripts and schedulers to automatically assign bandwidth plans to customers based on time of the day.
0 Comments
Leave a Reply. |