Blame man/man8/tc-fq_codel.8

Packit d3f73b
.TH FQ_CoDel 8 "4 June 2012" "iproute2" "Linux"
Packit d3f73b
.SH NAME
Packit d3f73b
CoDel \- Fair Queuing (FQ) with Controlled Delay (CoDel)
Packit d3f73b
.SH SYNOPSIS
Packit d3f73b
.B tc qdisc ... fq_codel
Packit d3f73b
[
Packit d3f73b
.B limit
Packit d3f73b
PACKETS ] [
Packit d3f73b
.B flows
Packit d3f73b
NUMBER ] [
Packit d3f73b
.B target
Packit d3f73b
TIME ] [
Packit d3f73b
.B interval
Packit d3f73b
TIME ] [
Packit d3f73b
.B quantum
Packit d3f73b
BYTES ] [
Packit d3f73b
.B ecn
Packit d3f73b
|
Packit d3f73b
.B noecn
Packit d3f73b
] [
Packit d3f73b
.B ce_threshold
Packit d3f73b
TIME ] [
Packit d3f73b
.B memory_limit
Packit d3f73b
BYTES ]
Packit d3f73b
Packit d3f73b
.SH DESCRIPTION
Packit d3f73b
FQ_Codel (Fair Queuing Controlled Delay) is queuing discipline that combines Fair
Packit d3f73b
Queuing with the CoDel AQM scheme. FQ_Codel uses a stochastic model to classify
Packit d3f73b
incoming packets into different flows and is used to provide a fair share of the
Packit d3f73b
bandwidth to all the flows using the queue. Each such flow is managed by the
Packit d3f73b
CoDel queuing discipline. Reordering within a flow is avoided since Codel
Packit d3f73b
internally uses a FIFO queue.
Packit d3f73b
Packit d3f73b
.SH PARAMETERS
Packit d3f73b
.SS limit
Packit d3f73b
has the same semantics as
Packit d3f73b
.B codel
Packit d3f73b
and is the hard limit on the real queue size.
Packit d3f73b
When this limit is reached, incoming packets are dropped. Default is 10240
Packit d3f73b
packets.
Packit d3f73b
Packit d3f73b
.SS memory_limit
Packit d3f73b
sets a limit on the total number of bytes that can be queued in this FQ-CoDel
Packit d3f73b
instance. The lower of the packet limit of the
Packit d3f73b
.B limit
Packit d3f73b
parameter and the memory limit will be enforced. Default is 32 MB.
Packit d3f73b
Packit d3f73b
Packit d3f73b
.SS flows
Packit d3f73b
is the number of flows into which the incoming packets are classified. Due to
Packit d3f73b
the stochastic nature of hashing, multiple flows may end up being hashed into
Packit d3f73b
the same slot. Newer flows have priority over older ones. This parameter can be
Packit d3f73b
set only at load time since memory has to be allocated for the hash table.
Packit d3f73b
Default value is 1024.
Packit d3f73b
Packit d3f73b
.SS target
Packit d3f73b
has the same semantics as
Packit d3f73b
.B codel
Packit d3f73b
and is the acceptable minimum
Packit d3f73b
standing/persistent queue delay. This minimum delay is identified by tracking
Packit d3f73b
the local minimum queue delay that packets experience. Default value is 5ms.
Packit d3f73b
Packit d3f73b
.SS interval
Packit d3f73b
has the same semantics as
Packit d3f73b
.B codel
Packit d3f73b
and is used to ensure that the measured minimum delay does not become too stale.
Packit d3f73b
The minimum delay must be experienced in the last epoch of length .B interval.
Packit d3f73b
It should be set on the order of the worst-case RTT through the bottleneck to
Packit d3f73b
give endpoints sufficient time to react. Default value is 100ms.
Packit d3f73b
Packit d3f73b
.SS quantum
Packit d3f73b
is the number of bytes used as 'deficit' in the fair queuing algorithm. Default
Packit d3f73b
is set to 1514 bytes which corresponds to the Ethernet MTU plus the hardware
Packit d3f73b
header length of 14 bytes.
Packit d3f73b
Packit d3f73b
.SS ecn | noecn
Packit d3f73b
has the same semantics as
Packit d3f73b
.B codel
Packit d3f73b
and can be used to mark packets instead of dropping them. If
Packit d3f73b
.B ecn
Packit d3f73b
has been enabled,
Packit d3f73b
.B noecn
Packit d3f73b
can be used to turn it off and vice-a-versa. Unlike
Packit d3f73b
.B codel, ecn
Packit d3f73b
is turned on by default.
Packit d3f73b
Packit d3f73b
.SS ce_threshold
Packit d3f73b
sets a threshold above which all packets are marked with ECN Congestion
Packit d3f73b
Experienced. This is useful for DCTCP-style congestion control algorithms that
Packit d3f73b
require marking at very shallow queueing thresholds.
Packit d3f73b
Packit d3f73b
.SH EXAMPLES
Packit d3f73b
#tc qdisc add   dev eth0 root fq_codel
Packit d3f73b
.br
Packit d3f73b
#tc -s qdisc show
Packit d3f73b
.br
Packit d3f73b
qdisc fq_codel 8002: dev eth0 root refcnt 2 limit 10240p flows 1024 quantum 1514
Packit d3f73b
 target 5.0ms interval 100.0ms ecn
Packit d3f73b
   Sent 428514 bytes 2269 pkt (dropped 0, overlimits 0 requeues 0)
Packit d3f73b
   backlog 0b 0p requeues 0
Packit d3f73b
    maxpacket 256 drop_overlimit 0 new_flow_count 0 ecn_mark 0
Packit d3f73b
    new_flows_len 0 old_flows_len 0
Packit d3f73b
Packit d3f73b
#tc qdisc add dev eth0 root fq_codel limit 2000 target 3ms interval 40ms noecn
Packit d3f73b
.br
Packit d3f73b
#tc -s qdisc show
Packit d3f73b
.br
Packit d3f73b
qdisc fq_codel 8003: dev eth0 root refcnt 2 limit 2000p flows 1024 quantum 1514
Packit d3f73b
target 3.0ms interval 40.0ms
Packit d3f73b
 Sent 2588985006 bytes 1783629 pkt (dropped 0, overlimits 0 requeues 34869)
Packit d3f73b
 backlog 0b 0p requeues 34869
Packit d3f73b
  maxpacket 65226 drop_overlimit 0 new_flow_count 73 ecn_mark 0
Packit d3f73b
  new_flows_len 1 old_flows_len 3
Packit d3f73b
Packit d3f73b
Packit d3f73b
.SH SEE ALSO
Packit d3f73b
.BR tc (8),
Packit d3f73b
.BR tc-codel (8),
Packit d3f73b
.BR tc-red (8)
Packit d3f73b
Packit d3f73b
.SH AUTHORS
Packit d3f73b
FQ_CoDel was implemented by Eric Dumazet. This manpage was written
Packit d3f73b
by Vijay Subramanian. Please report corrections to the Linux Networking
Packit d3f73b
mailing list <netdev@vger.kernel.org>.