Go to file
Eric Dumazet 6987ecf083 sfq: add optional RED on top of SFQ
Adds an optional Random Early Detection on each SFQ flow queue.

Traditional SFQ limits count of packets, while RED permits to also
control number of bytes per flow, and adds ECN capability as well.

1) We dont handle the idle time management in this RED implementation,
since each 'new flow' begins with a null qavg. We really want to address
backlogged flows.

2) if headdrop is selected, we try to ecn mark first packet instead of
currently enqueued packet. This gives faster feedback for tcp flows
compared to traditional RED [ marking the last packet in queue ]

Example of use :

tc qdisc add dev $DEV parent 1:1 handle 10: est 1sec 4sec sfq \
	limit 3000 headdrop flows 512 divisor 16384 \
	redflowlimit 100000 min 8000 max 60000 probability 0.20 ecn

qdisc sfq 10: parent 1:1 limit 3000p quantum 1514b depth 127 headdrop
flows 512/16384 divisor 16384
 ewma 6 min 8000b max 60000b probability 0.2 ecn
 prob_mark 0 prob_mark_head 4876 prob_drop 6131
 forced_mark 0 forced_mark_head 0 forced_drop 0
 Sent 1175211782 bytes 777537 pkt (dropped 6131, overlimits 11007
requeues 0)
 rate 99483Kbit 8219pps backlog 689392b 456p requeues 0

In this test, with 64 netperf TCP_STREAM sessions, 50% using ECN enabled
flows, we can see number of packets CE marked is smaller than number of
drops (for non ECN flows)

If same test is run, without RED, we can check backlog is much bigger.

qdisc sfq 10: parent 1:1 limit 3000p quantum 1514b depth 127 headdrop
flows 512/16384 divisor 16384
 Sent 1148683617 bytes 795006 pkt (dropped 0, overlimits 0 requeues 0)
 rate 98429Kbit 8521pps backlog 1221290b 841p requeues 0

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
2012-01-20 08:12:22 -08:00
doc doc: add pdf targets 2011-04-12 14:28:04 -07:00
etc/iproute2 iproute2: support listing devices by group 2011-02-25 12:38:50 -08:00
examples gaiconf: /etc/gai.conf configuration helper. 2010-03-29 13:59:28 -07:00
genl libnetlink: remove unused junk callback 2011-12-28 10:37:12 -08:00
include utils: add s32 parser 2012-01-19 14:24:52 -08:00
ip iplt2p: remove unused libnl headers 2012-01-10 08:50:49 -08:00
lib utils: add s32 parser 2012-01-19 14:24:52 -08:00
man netem: add rate extension to man page 2012-01-19 14:38:36 -08:00
misc libnetlink: remove unused junk callback 2011-12-28 10:37:12 -08:00
netem netem: fix installs of dist files 2010-07-31 19:31:04 -07:00
tc sfq: add optional RED on top of SFQ 2012-01-20 08:12:22 -08:00
testsuite Fix modes of test files 2007-09-05 12:00:01 +01:00
.gitignore Update .gitignore 2011-07-11 10:29:12 -07:00
configure iproute2: proper detection of libxtables position and flags 2012-01-03 15:05:25 -08:00
COPYING Update address of FSF in license 2008-03-08 13:31:03 -08:00
Makefile HFSC (7) & (8) documentation + assorted changes 2011-11-02 16:33:50 -07:00
README README cleanup's 2012-01-03 15:04:55 -08:00
README.decnet Decnet documentation update 2005-06-13 18:47:56 +00:00
README.devel iproute2: fix minor typo in comments 2011-07-11 10:11:09 -07:00
README.distribution README cleanup's 2012-01-03 15:04:55 -08:00
README.iproute2+tc README cleanup's 2012-01-03 15:04:55 -08:00
README.lnstat Rename: misc/README.lnstat -> README.lnstat 2004-10-19 20:24:47 +00:00

This is a set of utilities for Linux networking.

Information:
    http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2

Download:
    http://devresources.linuxfoundation.org/dev/iproute2/download

Repository:
    git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git

How to compile this.
--------------------
1. libdbm

arpd needs to have the db4 development libraries. For Debian
users this is the package with a name like libdb4.x-dev.
DBM_INCLUDE points to the directory with db_185.h which
is the include file used by arpd to get to the old format Berkeley
database routines.  Often this is in the db-devel package.

2. make

The makefile will automatically build a Config file which
contains whether or not ATM is available, etc.

3. To make documentation, cd to doc/ directory , then
   look at start of Makefile and set correct values for
   PAGESIZE=a4		, ie: a4 , letter ...	(string)
   PAGESPERPAGE=2	, ie: 1 , 2 ...		(numeric)
   and make there. It assumes, that latex, dvips and psnup
   are in your path.

4. This package includes matching sanitized kernel headers because
   the build environment may not have up to date versions. See Makefile
   if you have special requirements and need to point at different
   kernel include files.

Stephen Hemminger
shemminger@linux-foundation.org

Alexey Kuznetsov
kuznet@ms2.inr.ac.ru