HTBQOS traffic quality control for ROS

Source: Internet
Author: User
Tags passthrough routeros
Article title: ROS uses HTBQOS for traffic quality control. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

/Ip firewall mangle

Add chain = forward p2p = all-p2p action = mark-connection new-connection-mark = p2p_conn passthrough = yes comment = "" disabled = no

Add chain = forward connection-mark = p2p_conn action = mark-packet new-packet-mark = p2p passthrough = yes comment = "" disabled = no

Add chain = forward connection-mark =! P2p_conn action = mark-packet new-packet-mark = general passthrough = yes comment = "" disabled = no

Add chain = forward packet-size = 32-512 action = mark-packet new-packet-mark = small passthrough = yes comment = "" disabled = no

Add chain = forward packet-size = 512-1200 action = mark-packet new-packet-mark = big passthrough = yes comment = "" disabled = no

/Queue tree

Add name = "p2p1" parent = TEL packet-mark = p2p limit-at = 2000000 queue = default priority = 8 max-limit = 6000000 burst-limit = 0 burst-threshold = 0 burst-time = 0 s disabled = no

Add name = "p2p2" parent = LAN packet-mark = p2p limit-at = 2000000 queue = default priority = 8 max-limit = 6000000 burst-limit = 0 burst-threshold = 0 burst-time = 0 s disabled = no

Add name = "ClassA" parent = LAN packet-mark = "" limit-at = 0 queue = default priority = 8 max-limit = 100000000 burst-limit = 0 burst-threshold = 0 burst-time = 0 s disabled = no

Add name = "ClassB" parent = ClassA packet-mark = "" limit-at = 0 queue = default priority = 8 max-limit = 0 burst-limit = 0 burst-threshold = 0 burst-time = 0 s disabled = no

Add name = "Leaf1" parent = ClassA packet-mark = general limit-at = 0 queue = default priority = 7 max-limit = 0 burst-limit = 0 burst-threshold = 0 burst-time = 0 s disabled = no

Add name = "Leaf2" parent = ClassB packet-mark = small limit-at = 0 queue = default priority = 5 max-limit = 0 burst-limit = 0 burst-threshold = 0 burst-time = 0 s disabled = no

Add name = "Leaf3" parent = ClassB packet-mark = big limit-at = 0 queue = default priority = 6 max-limit = 0 burst-limit = 0 burst-threshold = 0 burst-time = 0 s disabled = no

Level 1-8 priority control, the smaller the number, the higher the priority

LAN intranet interface

TEL Internet interface

SMALL packet 32-5 12 bytes 5-level priority

BIG package 512-1200 byte level 6 priority

General other packages-bytes-level 7 priority

P2P class 8 priority, global speed limit KB/S download

Leaf subclass

Layered token bucket HTB

HTB (Hierarchical Token Bucket) is a classful queuing discipline that is useful

Applying different handling for different kinds of traffic. Generally, we can set only

One queue for an interface, but in RouterOS queues are attached to the main

Hierarchical Token Bucket (HTB) and thus have some properties derived from that

Parent queue. For example, we can set a maximum data rate for a workgroup and

Then distriunt that amount of traffic between the members of that workgroup.

HTB is a classic theory used for traffic classification control. Generally, only one interface is used for traffic control, but ROS uses the HTB theory,

For example, you can first limit the traffic of a working group and then further segment the traffic within the working group. Traffic control is complicated.

God thinks.

Each class in the hierarchy can prioritize and shape traffic. There are 2 main

Parameters in RouterOS:

* Limit-at-data rate that is guaranteed to a class (CIR)

* Max-limit-maximal data rate that is allowed for a class to reach (MIR)

Two main parameters:

Limit-at: stable rate

Max-limit: maximum rate

* CIR (Committed Information Rate)-the guaranteed data rate. It means that traffic

Rate, not exceeding this value shoshould always be delivered

* MIR (Maximal Information Rate)-the maximal data rate router will provide

CIR: minimum guaranteed speed. The rate not higher than this is always allowed

MIR: maximum rate

[1] [2] [3] Next page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.