Manual:Queue: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
total wikify |
||
Line 1: | Line 1: | ||
==Queues== | |||
Submenu level: '''/queue''' | Submenu level: '''/queue''' | ||
Line 8: | Line 8: | ||
In RouterOS it is possible to add queue in 4 different places (HTBs): | In RouterOS it is possible to add queue in 4 different places (HTBs): | ||
* '''global-in''' — represents all the input interfaces in general (INGRESS queue). Queues attached to global-in apply to traffic that is received by the router before the packet filtering | |||
* '''global-out''' — represents all the output interfaces in general (EGRESS queue). | |||
* '''global-total''' — represents all input and output interfaces together (in other words it is aggregation of global-in and global-out). Used in case when costumers have single limit for both, upload and download. | |||
* '''<interface name>''' — - represents one particular outgoing interface. Only traffic that is designated to go out via this interface will pass this HTB queue | |||
There are two ways how to add queues in RouterOS: | There are two ways how to add queues in RouterOS: | ||
* '''/queue simple''' menu - more user-friendly implementation of queues designed to ease configuration of simple,everyday queuing tasks (such as single client upload/download limitation, p2p traffic limitation, etc.). | |||
* '''/queue tree''' menu - simplest way to implement advanced queuing tasks (such as global prioritization policy, user group limitations) require market packet flows from '''/ip firewall mangle''' facility. | |||
==Simple Queues== | |||
Simple queues represents three queues in one. Single simple queue will create one queue in global-in, one queue in global-out and one queue in global-total. If no settings are specified for a subqueue it will not be created. | |||
===Flow Identifiers=== | |||
* '''name''' (Text) : | |||
* '''target-addresses''' (comma separated list of IP prefixes) : | |||
* '''dst-address''' (IP prefix) : | |||
* '''interface''' (Name of interface, or ''all'') : | |||
* '''direction''' (One of ''both'', ''upload'', ''download'' or ''none'') : | |||
* '''time''' () : | |||
* '''p2p''' () : | |||
* '''packet-marks''' (Comma separated list of) : | |||
===HTB Properties=== | |||
* '''parent''' (Name of , or ''none'') : | |||
* '''priority''' (1..8) : | |||
* '''queue''' (''SOMETHING/SOMETHING'') : | |||
* '''limit-at''' (''NUMBER/NUMBER'') : | |||
* '''max-limit''' (''NUMBER/NUMBER'') : | |||
* '''burst-limit''' (''NUMBER/NUMBER'') : | |||
* '''burst-threshold''' (''NUMBER/NUMBER'') : | |||
* '''burst-time''' (''TIME/TIME'') : | |||
Line 57: | Line 57: | ||
* '''total-queue''' () — corresponds to <var>queue</var> only for global-total queue | |||
* '''total-limit-at''' () — corresponds to <var>limit-at</var> only for global-total queue | |||
* '''total-max-limit''' () — corresponds to <var>max-limit</var> only for global-total queue | |||
* '''total-burst-limit''' () — corresponds to <var>burst-limit</var> only for global-total queue | |||
* '''total-burst-threshold''' () — corresponds to <var>burst-threshold</var> only for global-total queue | |||
* '''total-burst-time''' () — corresponds to <var>burst-time</var> only for global-total queue | |||
===Statistics=== | |||
* '''bytes''' (''NUMBER/NUMBER''; read-only) : | |||
* '''packets''' (read-only) : | |||
* '''dropped''' (read-only) : | |||
* '''overlimits''' (read-only) : | |||
* '''rate''' (read-only) : | |||
* '''packet-rate''' (read-only) : | |||
* '''queued-packets''' (read-only) : | |||
* '''queued-bytes''' (read-only) : | |||
* '''lends''' (read-only) : | |||
* '''borrows''' (read-only) : | |||
* '''pcq-queues''' () : | |||
Line 82: | Line 82: | ||
* '''total-bytes''' (read-only) — corresponds to <var>bytes</var> only for global-total queue | |||
* '''total-packets''' (read-only) — corresponds to <var>packets</var> only for global-total queue | |||
* '''total-dropped''' (read-only) — corresponds to <var>dropped</var> only for global-total queue | |||
* '''total-overlimits''' (read-only) — corresponds to <var>overlimits</var> only for global-total queue | |||
* '''total-rate''' (read-only) — corresponds to <var>rate</var> only for global-total queue | |||
* '''total-packet-rate''' (read-only) — corresponds to <var>packet-rate</var> only for global-total queue | |||
* '''total-queued-packets''' (read-only) — corresponds to <var>queued-packets</var> only for global-total queue | |||
* '''total-queued-bytes''' (read-only) — corresponds to <var>queued-bytes</var> only for global-total queue | |||
* '''total-lends''' (read-only) — corresponds to <var>lends</var> only for global-total queue | |||
* '''total-borrows''' (read-only) — corresponds to <var>borrows</var> only for global-total queue | |||
* '''total-pcq-queues''' (read-only) — corresponds to <var>pcq-queues</var> only for global-total queue | |||
Revision as of 09:48, 26 September 2008
Queues
Submenu level: /queue
Queue implementation in MikroTik RouterOS is based on Hierarchical Token Bucket (HTB). HTB allows to create hierarchical queue structure and determine relations between queues(parent-child, child priority).
In RouterOS it is possible to add queue in 4 different places (HTBs):
- global-in — represents all the input interfaces in general (INGRESS queue). Queues attached to global-in apply to traffic that is received by the router before the packet filtering
- global-out — represents all the output interfaces in general (EGRESS queue).
- global-total — represents all input and output interfaces together (in other words it is aggregation of global-in and global-out). Used in case when costumers have single limit for both, upload and download.
- <interface name> — - represents one particular outgoing interface. Only traffic that is designated to go out via this interface will pass this HTB queue
There are two ways how to add queues in RouterOS:
- /queue simple menu - more user-friendly implementation of queues designed to ease configuration of simple,everyday queuing tasks (such as single client upload/download limitation, p2p traffic limitation, etc.).
- /queue tree menu - simplest way to implement advanced queuing tasks (such as global prioritization policy, user group limitations) require market packet flows from /ip firewall mangle facility.
Simple Queues
Simple queues represents three queues in one. Single simple queue will create one queue in global-in, one queue in global-out and one queue in global-total. If no settings are specified for a subqueue it will not be created.
Flow Identifiers
- name (Text) :
- target-addresses (comma separated list of IP prefixes) :
- dst-address (IP prefix) :
- interface (Name of interface, or all) :
- direction (One of both, upload, download or none) :
- time () :
- p2p () :
- packet-marks (Comma separated list of) :
HTB Properties
- parent (Name of , or none) :
- priority (1..8) :
- queue (SOMETHING/SOMETHING) :
- limit-at (NUMBER/NUMBER) :
- max-limit (NUMBER/NUMBER) :
- burst-limit (NUMBER/NUMBER) :
- burst-threshold (NUMBER/NUMBER) :
- burst-time (TIME/TIME) :
And corresponding options for global-total HTB queue:
- total-queue () — corresponds to queue only for global-total queue
- total-limit-at () — corresponds to limit-at only for global-total queue
- total-max-limit () — corresponds to max-limit only for global-total queue
- total-burst-limit () — corresponds to burst-limit only for global-total queue
- total-burst-threshold () — corresponds to burst-threshold only for global-total queue
- total-burst-time () — corresponds to burst-time only for global-total queue
Statistics
- bytes (NUMBER/NUMBER; read-only) :
- packets (read-only) :
- dropped (read-only) :
- overlimits (read-only) :
- rate (read-only) :
- packet-rate (read-only) :
- queued-packets (read-only) :
- queued-bytes (read-only) :
- lends (read-only) :
- borrows (read-only) :
- pcq-queues () :
And corresponding options for global-total HTB queue:
- total-bytes (read-only) — corresponds to bytes only for global-total queue
- total-packets (read-only) — corresponds to packets only for global-total queue
- total-dropped (read-only) — corresponds to dropped only for global-total queue
- total-overlimits (read-only) — corresponds to overlimits only for global-total queue
- total-rate (read-only) — corresponds to rate only for global-total queue
- total-packet-rate (read-only) — corresponds to packet-rate only for global-total queue
- total-queued-packets (read-only) — corresponds to queued-packets only for global-total queue
- total-queued-bytes (read-only) — corresponds to queued-bytes only for global-total queue
- total-lends (read-only) — corresponds to lends only for global-total queue
- total-borrows (read-only) — corresponds to borrows only for global-total queue
- total-pcq-queues (read-only) — corresponds to pcq-queues only for global-total queue