RUT281 Traffic Shaping
Summary
Traffic Shaping is a bandwidth management technique used on computer networks which delays some or all datagrams to bring them into compliance with a desired traffic profile. Traffic Shaping is used to optimize or guarantee performance, improve latency, or increase usable bandwidth for some kinds of packets by delaying other kinds.
This manual page provides an overview of the Traffic Shaping pages in RUT281 devices.
SQM
The SQM page is used to set up Smart Queue Management (SQM) instances which can limit the download and upload speeds of selected network interfaces.
Note: SQM is additional software that can be installed from the System → Package Manager page.
The Smart Queue Management section contains a list of existing SQM instances and can be used manage them (edit/delete/enable/disable). By default the list is empty:
To add a new instance and begin editing, look below to the Add New Instance section and:
- enter a custom name in the 'Name' field;
- click the 'Add' button;
- configuration window will open automatically.
Refer to the sections below for information on editing SQM instances.
General Setup
The General Setup section is used to set download and upload speed limits for a selected network interface.
| Field | Value | Description |
|---|---|---|
| Enabled | off | on; default: off | Turns the SQM configuration on or off. |
| Interface name | network interface; default: br-lan (lan) | Selects to which interface this SQM configuration will apply. Additional note: consider reading the Additional notes section before limiting speeds on selected interfaces. |
| Download speed (kbit/s) | integer [0..2147483647]; default: none | Limits the download speed (ingress) of the selected interface to the value specified in this field. |
| Upload speed (kbit/s) | integer [0..2147483647]; default: none | Limits the upload speed (egress) of the selected interface to the value specified in this field. |
Advanced Settings
The Advanced Settings section describes the internal logic of the SQM configuration.
| Field | Value | Description |
|---|---|---|
| Queuing disciplines usable on this system | cake | fq_codel; default: cake | Queue management logic type. Look to the row below for detailed information. |
| Queue setup script | layer_cake.qos | piece_of_cake.qos | simple.qos | simplest.qos | simplest_tbf.qos; default: piece_of_cake.qos | Describes the queue management logic.
|
Additional notes
Please consider that limiting the speed of certain interfaces may limit the speed of other interfaces as well. For example, if you limit the download and upload speeds of the default LAN interface (br-lan) to 50 000 kbps (50 Mbps) this will affect the speeds between:
- Ethernet LAN machines (including the device)
- Ethernet LAN machines and WAN*
- WiFi devices**
- Wifi devices and LAN machines**
- WiFi devices and WAN**
* Since LAN machines communicate with WAN servers over the device which is also considered a LAN machine, LAN-to-WAN and WAN-to-LAN speeds are also affected.
** By default, wireless network interfaces are attached to the default Ethernet LAN network (br-lan). If you wish for WiFi speeds to remain unaffected, consider creating an additional Ethernet interface and attach your WiFi interfaces to it. This can done in the following WebUI pages:
- Network → Interfaces (to create an additional network interface)
- Network → Wireless (to attach WiFi interfaces to Ethernet interfaces)
The table below demonstrates speed changes between some of the main default network interfaces if br-lan speed is set to 50 Mbps.
| Ethernet LAN | WiFi LAN | Ethernet WAN | Mobile WAN | |
|---|---|---|---|---|
| Ethernet LAN | 50 | 50 | 50 | 50 |
| WiFi LAN | 50 | 50 | 50 | 50 |
| Ethernet WAN | 50 | 50 | unchanged | unchanged |
| Mobile WAN | 50 | 50 | unchanged | unchanged |
Changing the speeds of other network interfaces may also affect more than one interface. However, the Ethernet LAN interface (br-lan) is related to most interfaces. Therefore, it is advised to limit the speeds of other interfaces in order to achieve more precise results (unless, of course, your goal to is to limit the speed of br-lan).
Another example to consider is limiting WAN interface speeds since that is the most widely implemented use case and affects less interface-to-interface relationships. For instance, limiting Ethernet WAN (eth1) speed to 50 Mbps would produce the following results:
| Ethernet LAN | WiFi LAN | Ethernet WAN | Mobile WAN | |
|---|---|---|---|---|
| Ethernet LAN | unchanged | unchanged | 50 | unchanged |
| WiFi LAN | unchanged | unchanged | 50 | unchanged |
| Ethernet WAN | 50 | 50 | unchanged | unchanged |
| Mobile WAN | unchanged | unchanged | unchanged | unchanged |
Please take caution when using SQM to limit speeds in order to avoid unexpected results.
QoS
QoS provides the possibility to prioritize network traffic based on hosts, ports or services and limit download & upload speeds on a selected interface.
This chapter of the user manual provides an overview of the QoS page in RUT281 devices.
Note: QoS is additional software that can be installed from the System → Package Manager page.
Interfaces
The Interfaces section is used to set up download and upload speed limits on the device's network interfaces.
| Field | Value | Description |
|---|---|---|
| Interface name | wan | lan| mobile (interface); default: lan | Decreases upload and download ratio to prevent link saturation. |
| Calculate overhead | on | off; default: off | Decreases upload and download ratio to prevent link saturation. |
| Download speed (kbit/s) | integer; default: 1024 | Maximum download speed for the specified interface. |
| Upload speed (kbit/s) | integer; default: 128 | Maximum upload speed for the specified interface. |
| Enable | on | off; default: no | Turns the rule on or off. |
| Actions | - (interactive button); default: Delete | Deletes instance. |
Classification Rules
The Classification Rules section is used to configure rules that prioritize certain traffic over other, less important traffic. This traffic can be defined by a source or destination host, port or a network protocol. Traffic that matches a rule with higher preference will be handled with higher priority.
Generally, this should be used in cases where you want to isolate certain types of traffic in order to make sure the RUT281 is handling more important traffic (for example, video streaming, SSH) at a higher priority and less important traffic (FTP, HTTP) at a lower priority.
| Field | Value | Description |
|---|---|---|
| Target | Priority | Express | Normal | Bulk; default: Normal | Defines the priority of handling the type of traffic defined in this rule. |
| Source host | All | IP from the list | + Add new; default: All | Packets matching this source host(s) (single IP or in CIDR notation) belong to the bucket defined in target. |
| Destination host | All | IP from the list | + Add new; default: All | Packets matching this destination host(s) (single IP or in CIDR notation) belong to the bucket defined in the target. |
| Protocol | All | TCP | UDP | ICMP | -- Custom --; default: All | Data transmission protocol to match the rule. |
| Ports | All | integer [1..65535]; default: none | Port number(s) to match the rule. You can enter multiple ports by separating them by commas (e.g., 22,53,80). |
| Actions | - (interactive button); default: Delete | Deletes instance. |
WFQ
Weighted Fair Queuing (WFQ) provides the possibility to prioritize network traffic based on hosts, ports, protocols or DSCP values and distribute available bandwidth between traffic groups according to their assigned weights. It also allows limiting download and upload speeds on selected network interfaces.
This chapter of the user manual provides an overview of the WFQ page in RUT281 devices.
Note: WFQ is additional software that can be installed from the System → Package Manager page.
Interfaces
The Interfaces section is used to configure download and upload speed limits on the device's network interfaces and enable or disable traffic shaping.
| Field | Value | Description |
|---|---|---|
| Interface name | wan | lan| mobile (interface); default: lan | Network interface to which the traffic shaping rules are applied. |
| Download speed (kbit/s) | integer [100..4294967]; default: 1024 | Maximum download speed for the specified interface. |
| Upload speed (kbit/s) | integer [100..4294967]; default: 128 | Maximum upload speed for the specified interface. |
| Enabled | on | off; default: off | Turns traffic shaping on or off for the specified interface. |
| Actions | - (interactive button); default: Delete | Deletes the interface instance. |
Add new instance
The Add new instance section is used to add additional network interfaces to which WFQ traffic shaping can be applied.
| Field | Value | Description |
|---|---|---|
| Interface | Interface from the list; default: none | Selects a network interface to add to the Interfaces section. Interfaces that have already been added cannot be selected again. |
| Add | - (interactive button) | Adds the selected interface to the Interfaces section. |
Classification Rules
The Classification Rules section is used to configure rules that classify network traffic into groups and determine how the available bandwidth is distributed between them. Traffic can be classified based on source or destination hosts, DSCP values, network protocols or ports.
Each rule can be assigned a weight that determines its relative share of available bandwidth when multiple traffic groups are competing. Rules can also be prioritized to give certain types of traffic preference over others.
This can be useful when managing different types of network traffic, such as prioritizing video calls or SSH connections while distributing the remaining bandwidth between less important services.
| Field | Value | Description |
|---|---|---|
| Priority | on | off | Enables or disables prioritization for the traffic group defined by this rule. When enabled, matching traffic is given higher priority. |
| Weight | integer [1..100]; default: 3 (first rule), 2 (second rule) | Defines the relative share of available bandwidth assigned to the traffic group. A higher weight gives the group a larger share of bandwidth when multiple groups are competing. |
| DSCP | integer [0..63]; default: none | DSCP (Differentiated Services Code Point) value used to identify and classify matching packets. |
| Source host | All | IP from the list | + Add new; default: All | Source IP address or subnet (in CIDR notation) used to match traffic for this rule. |
| Destination host | All | IP from the list | + Add new; default: All | Destination IP address or subnet (in CIDR notation) used to match traffic for this rule. |
| Protocol | All | TCP | UDP | ICMP | -- Custom --; default: TCP (first rule), All (second rule) | Network protocol used to match traffic for this rule. The Custom option allows specifying a protocol manually. |
| Ports | All | integer [1..65535]; default: 80,443 (first rule), All (second rule) | Port number(s) used to match traffic for this rule. Multiple ports can be specified by separating them with commas (e.g., 22,53,80). |
| Actions | - (interactive button); default: Delete | Deletes the classification rule. |







