documentation:configuration:config_files:config_qos

This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== Quality of Service (qos-scripts) configuration ====== This is the documentation for the UCI configuration file ''/etc/config/qos''. <code> # INTERFACES: config interface wan option classgroup "Default" option enabled 0 option upload 128 option download 1024 # RULES: config classify option target "Priority" option ports "22,53" option comment "ssh, dns" config classify option target "Normal" option proto "tcp" option ports "20,21,25,80,110,443,993,995" option comment "ftp, smtp, http(s), imap" config classify option target "Express" option ports "5190" option comment "AOL, iChat, ICQ" config default option target "Express" option proto "udp" option pktsize "-500" config reclassify option target "Priority" option proto "icmp" config default option target "Bulk" option portrange "1024-65535" # Don't change the stuff below unless you # really know what it means :) config classgroup "Default" option classes "Priority Express Normal Bulk" option default "Normal" config class "Priority" option packetsize 400 option avgrate 10 option priority 20 config class "Priority_down" option packetsize 1000 option avgrate 10 config class "Express" option packetsize 1000 option avgrate 50 option priority 10 config class "Normal" option packetsize 1500 option packetdelay 100 option avgrate 10 option priority 5 config class "Normal_down" option avgrate 20 config class "Bulk" option avgrate 1 option packetdelay 200 </code> ====== Quality of Service (qos-scripts) configuration ====== This is the documentation for the UCI configuration file ''/etc/config/qos''. It is used by the package ''qos-scripts'' only. | {{:meta:icons:tango:48px-emblem-important.svg.png?nolink}} | Do NOT install multiple QoS-packages simultaneously! Uninstall the old package before installing a new one. \\ There are at least two other QoS/ToS packages in the OpenWrt repositories regarding: ''[[https://github.com/openwrt/packages/blob/master/net/sqm-scripts|sqm-scripts]]'' and ''[[https://github.com/openwrt/packages/tree/master/net/wshaper|wshaper]]''. They do NOT use this file.\\ \\ ''sqm-scripts'' is the most modern and has Luci support. Configuration advice for it can be found at [[http://www.bufferbloat.net/projects/cerowrt/wiki/Setting_up_SQM_for_CeroWrt_310]] \\ ''qos-scripts'' is written in AWK/shell script and uses [[doc/howto/packet.scheduler/sch_hfsc]] and [[doc/howto/packet.scheduler/sch_fq_codel]]\\ ''wshaper'' uses [[doc/howto/packet.scheduler/sch_sfq]] [[doc/howto/packet.scheduler/sch_htb]] [[doc/howto/packet.scheduler/act_police]]; [[http://lartc.org/wondershaper/]] (Last release has been in 2002, so it is mostly unmaintained) \\ \\ For help writing your own script please see [[doc:howto:packet.scheduler:packet.scheduler|Traffic Control on OpenWrt: configuring the Linux Network Scheduler]]. | | {{:meta:icons:tango:dialog-information.png?nolink}} | You can browse the scripts here: ''[[https://dev.openwrt.org/browser/trunk/package/network/config/qos-scripts|qos-scripts]]''\\ There is direct LuCI-support for ''qos-scripts'' called: ''luci-app-qos''.\\ NOTE: ''luci-app-qos'' won't start until you enable the ''qos'' Initscript within the System-->Startup tab as well as enable qos under Network-->QoS | | {{:meta:icons:tango:48px-outdated.svg.png?nolink}} | As of [[https://dev.openwrt.org/changeset/31759|r31759]] ''qos-scripts'' replaced sfq/red with fq_codel to massively improve latency under load. \\ \\ As of [[https://dev.openwrt.org/changeset/25641/trunk|r25641]] ''qos-scripts'' dropped the use of IMQ (package ''iptables-mod-imq'' – Intermediate Queueing Device). Its successor is [[http://www.linuxfoundation.org/collaborate/workgroups/networking/ifb|IFB (Intermediate Functional Block device)]], (requires package: ''kmod-ifb'' and the scheduler action //[[https://dev.openwrt.org/browser/trunk/package/iproute2/patches/200-act_connmark.patch?rev=25639|act_connmark]]// included).| ===== Sections ===== A minimal QoS configuration usually consists of: * one //interface// section * some //rules// allocating packets to at least two buckets * //configuration// of the buckets.

documentation/configuration/config_files/config_qos.1470235583.txt.gz · Last modified: 2018/05/24 09:05 (external edit)