Template:Networking rutos manual traffic shaping: Difference between revisions
Gytispieze (talk | contribs) No edit summary |
No edit summary |
||
(17 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Template: | {{Template: Networking_device_manual_fw_disclosure | ||
| | | series = {{{series}}} | ||
| | | name = {{{name}}} | ||
| fw_version ={{Template: Networking_device_manual_latest_fw | |||
| series = {{{series}}} | |||
| name = {{{name}}} | |||
}} | |||
}} | }} | ||
{{#ifeq: {{{series}}} | RUT9 |<br><i><b>Note</b>: <b>[[{{{name}}} QoS (legacy WebUI)|click here]]</b> for the old style WebUI (FW version | {{#ifeq: {{{series}}} | RUT9 |<br><i><b>Note</b>: <b>[[{{{name}}} QoS (legacy WebUI)|click here]]</b> for the old style WebUI (FW version {{Template: Networking_device_manual_latest_fw | series = RUT9XX}} and earlier) user manual page.</i>|}} | ||
{{#ifeq: {{{series}}} | RUT2 | | {{#ifeq: {{{series}}} | RUT2 |<br><i><b>Note</b>: <b>[[{{{name}}} QoS (legacy WebUI)|click here]]</b> for the old style WebUI (FW version {{Template: Networking_device_manual_latest_fw | series = RUT2XX}} and earlier) user manual page.</i>|}} | ||
__TOC__ | |||
<br><i><b>Note</b>: <b>[[{{{name}}} QoS (legacy WebUI)|click here]]</b> for the old style WebUI (FW version | |||
==Summary== | ==Summary== | ||
Line 25: | Line 25: | ||
{{#switch: {{{series}}} | {{#switch: {{{series}}} | ||
| RUTX = | | RUTX | RUTM = <u><b>Note:</b> For SQM to properly work "Software flow offloading" needs to be turned off on this device. This can be done in <b>Network → [[{{{name}}} Firewall#Routing.2FNAT_Offloading|Routing/NAT Offloading]]</b> settings.</u> | ||
| #default = | | #default = | ||
<u><b> | <u><b>Note:</b> SQM is additional software that can be installed from the <b>System → [[{{{name}}} Package Manager|Package Manager]]</b> page.</u> | ||
Note:</b> SQM is additional software that can be installed from the <b> | |||
}} | }} | ||
Line 48: | Line 46: | ||
Refer to the sections below for information on editing SQM instances. | Refer to the sections below for information on editing SQM instances. | ||
=== | ===General Setup=== | ||
---- | ---- | ||
The <b> | The <b>General Setup</b> section is used to set download and upload speed limits for a selected network interface. | ||
[[File: | [[File:Networking rutos manual traffic shaping sqm general setup73.png|border|class=tlt-border]] | ||
<table class="nd-mantable"> | <table class="nd-mantable"> | ||
Line 68: | Line 66: | ||
<td>Interface name</td> | <td>Interface name</td> | ||
<td>network interface; default: <b>br-lan (lan)</b></td> | <td>network interface; default: <b>br-lan (lan)</b></td> | ||
<td>Selects to which interface this SQM configuration will apply. <b>Additional note:</b> consider reading the [[{{{name}}} | <td>Selects to which interface this SQM configuration will apply. <b>Additional note:</b> consider reading the [[{{{name}}}_Traffic_Shaping#Additional_notes|Additional notes]] section before limiting speeds on selected interfaces.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Download speed (kbit/s)</td> | <td>Download speed (kbit/s)</td> | ||
<td>integer [0.. | <td>integer [0..2147483647]; default: <b>none</b></td> | ||
<td>Limits the download speed (ingress) of the selected interface to the value specified in this field.</td> | <td>Limits the download speed (ingress) of the selected interface to the value specified in this field.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Upload speed (kbit/s)</td> | <td>Upload speed (kbit/s)</td> | ||
<td>integer [0.. | <td>integer [0..2147483647]; default: <b>none</b></td> | ||
<td>Limits the upload speed (egress) of the selected interface to the value specified in this field.</td> | <td>Limits the upload speed (egress) of the selected interface to the value specified in this field.</td> | ||
</tr> | </tr> | ||
Line 86: | Line 84: | ||
The <b>Advanced Settings</b> section describes the internal logic of the SQM configuration. | The <b>Advanced Settings</b> section describes the internal logic of the SQM configuration. | ||
[[File: | [[File:Networking rutos manual traffic shaping sqm advanced settings73.png|border|class=tlt-border]] | ||
<table class="nd-mantable"> | <table class="nd-mantable"> | ||
Line 143: | Line 141: | ||
<ul> | <ul> | ||
<li>Network → [[{{{name}}} | <li>Network → [[{{{name}}} LAN|Interfaces]] (to create an additional network interface)</li> | ||
<li>Network → [[{{{name}}} Wireless|Wireless]] (to attach WiFi interfaces to Ethernet interfaces)</li> | <li>Network → [[{{{name}}} Wireless|Wireless]] (to attach WiFi interfaces to Ethernet interfaces)</li> | ||
</ul> | </ul> | ||
Line 237: | Line 235: | ||
This chapter of the user manual provides an overview of the QoS page in {{{name}}} devices. | This chapter of the user manual provides an overview of the QoS page in {{{name}}} devices. | ||
<u><b>Note:</b> QoS is additional software that can be installed from the <b> | {{#switch: {{{series}}} | ||
| RUTX | RUTM = <u><b>Note:</b> For QoS to properly work "Software flow offloading" needs to be turned off on this device. This can be done in <b>Network → [[{{{name}}} Firewall#Routing.2FNAT_Offloading|Routing/NAT Offloading]]</b> settings.</u> | |||
| #default = | |||
}} | |||
<u><b>Note:</b> QoS is additional software that can be installed from the <b>System → [[{{{name}}} Package Manager|Package Manager]]</b> page.</u> | |||
===Interfaces=== | |||
---- | |||
The <b>Interfaces</b> section is used to set up download and upload speed limits on the device's network interfaces. | The <b>Interfaces</b> section is used to set up download and upload speed limits on the device's network interfaces. | ||
[[File: | [[File:Networking_rutos_manual_traffic_shaping_qos_interfaces_v2.png|border|class=tlt-border]] | ||
<table class="nd-othertables"> | <table class="nd-othertables"> | ||
Line 250: | Line 252: | ||
<th style="width: 250px">Value</th> | <th style="width: 250px">Value</th> | ||
<th style="width: 579px">Description</th> | <th style="width: 579px">Description</th> | ||
</tr> | |||
<tr> | |||
<td>Interface name</td> | |||
<td>wan | lan{{#switch:{{{mobile}}}|1| {{!}} mobile (interface)|}}; default: <b>lan</b></td> | |||
<td>Decreases upload and download ratio to prevent link saturation.</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 258: | Line 265: | ||
<tr> | <tr> | ||
<td>Download speed (kbit/s)</td> | <td>Download speed (kbit/s)</td> | ||
<td>integer; default: <b> | <td>integer; default: <b>1024</b></td> | ||
<td>Maximum download speed for the specified interface.</td> | <td>Maximum download speed for the specified interface.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Upload speed (kbit/s)</td> | <td>Upload speed (kbit/s)</td> | ||
<td>integer; default: <b> | <td>integer; default: <b>128</b></td> | ||
<td>Maximum upload speed for the specified interface.</td> | <td>Maximum upload speed for the specified interface.</td> | ||
</tr> | </tr> | ||
Line 270: | Line 277: | ||
<td>yes | no; default: <b>no</b></td> | <td>yes | no; default: <b>no</b></td> | ||
<td>Turns the rule on or off.</td> | <td>Turns the rule on or off.</td> | ||
</tr> | |||
<tr> | |||
<td>Actions</td> | |||
<td>- (interactive button); default: <b>Delete</b></td> | |||
<td>Deletes instance.</td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
==Classification Rules== | ===Classification Rules=== | ||
---- | |||
The <b>Classification Rules</b> section is used to configure rules that prioritize | The <b>Classification Rules</b> section is used to configure rules that prioritize | ||
certain traffic over other, less important traffic. This traffic can be defined by | certain traffic over other, less important traffic. This traffic can be defined by | ||
Line 284: | Line 296: | ||
(for example, video streaming, SSH) at a higher priority and less important traffic (FTP, HTTP) at a lower priority. | (for example, video streaming, SSH) at a higher priority and less important traffic (FTP, HTTP) at a lower priority. | ||
[[File:Networking rutos manual traffic shaping qos classification | [[File:Networking rutos manual traffic shaping qos classification rules73_v1.png|border|class=tlt-border]] | ||
<table class="nd-mantable"> | <table class="nd-mantable"> | ||
Line 299: | Line 311: | ||
<tr> | <tr> | ||
<td>Source host</td> | <td>Source host</td> | ||
<td>All | IP; default: <b>All</b></td> | <td>All | IP | -- Custom --; default: <b>All</b></td> | ||
<td>Host(s) from which data will be transmitted.</td> | <td>Host(s) from which data will be transmitted.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Destination host</td> | <td>Destination host</td> | ||
<td>All | IP; default: <b>All</b></td> | <td>All | IP | -- Custom --; default: <b>All</b></td> | ||
<td>Host(s) to which data will be transmitted.</td> | <td>Host(s) to which data will be transmitted.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Protocol</td> | <td>Protocol</td> | ||
<td>All | TCP | UDP | ICMP | -- | <td>All | TCP | UDP | ICMP | -- Custom --; default: <b>All</b></td> | ||
<td>Data transmission protocol to match the rule.</td> | <td>Data transmission protocol to match the rule.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Ports</td> | <td>Ports</td> | ||
<td>All | integer [ | <td>All | integer [1..65535]; default: <b>none</b></td> | ||
<td>Port number(s) to match the rule. You can enter multiple ports by separating them by commas (e.g., <i>22,53,80</i>).</td> | <td>Port number(s) to match the rule. You can enter multiple ports by separating them by commas (e.g., <i>22,53,80</i>).</td> | ||
</tr> | |||
<tr> | |||
<td>Actions</td> | |||
<td>- (interactive button); default: <b>Delete</b></td> | |||
<td>Deletes instance.</td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
[[Category:{{{name}}} | [[Category:{{{name}}} Network section]] |
Latest revision as of 14:10, 24 April 2024
The information in this page is updated in accordance with firmware version .
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 {{{name}}} devices.
If you're having trouble finding this page or some of the parameters described here on your device's WebUI, you should turn on "Advanced WebUI" mode. You can do that by clicking the "Advanced" button, located at the top of the WebUI.
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 → [[{{{name}}} Package Manager|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 [[{{{name}}}_Traffic_Shaping#Additional_notes|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*
* 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.
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 | Ethernet WAN | |
---|---|---|
Ethernet LAN | 50 | 50 |
Ethernet WAN | 50 | 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 | Ethernet WAN | |
---|---|---|
Ethernet LAN | unchanged | 50 |
Ethernet WAN | 50 | 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 {{{name}}} devices.
Note: QoS is additional software that can be installed from the System → [[{{{name}}} Package Manager|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; default: lan | Decreases upload and download ratio to prevent link saturation. |
Calculate overhead | yes | no; default: no | 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 | yes | no; 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 {{{name}}} 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 | -- Custom --; default: All | Host(s) from which data will be transmitted. |
Destination host | All | IP | -- Custom --; default: All | Host(s) to which data will be transmitted. |
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. |
[[Category:{{{name}}} Network section]]