diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-02-02 10:21:10 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-02 23:52:42 -0500 |
commit | 45e144339ac59971eb44be32e1282760aaabe861 (patch) | |
tree | b9d93acb2c1bb505d3b6facc426d307c59dc63a4 /net/sched/Kconfig | |
parent | 119b3d386985fcd477b3131190c041516a73f83a (diff) |
sched: CHOKe flow scheduler
CHOKe ("CHOose and Kill" or "CHOose and Keep") is an alternative
packet scheduler based on the Random Exponential Drop (RED) algorithm.
The core idea is:
For every packet arrival:
Calculate Qave
if (Qave < minth)
Queue the new packet
else
Select randomly a packet from the queue
if (both packets from same flow)
then Drop both the packets
else if (Qave > maxth)
Drop packet
else
Admit packet with proability p (same as RED)
See also:
Rong Pan, Balaji Prabhakar, Konstantinos Psounis, "CHOKe: a stateless active
queue management scheme for approximating fair bandwidth allocation",
Proceeding of INFOCOM'2000, March 2000.
Help from:
Eric Dumazet <eric.dumazet@gmail.com>
Patrick McHardy <kaber@trash.net>
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/Kconfig')
-rw-r--r-- | net/sched/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/sched/Kconfig b/net/sched/Kconfig index e318f458713e..8c19b6e3201e 100644 --- a/net/sched/Kconfig +++ b/net/sched/Kconfig | |||
@@ -217,6 +217,17 @@ config NET_SCH_MQPRIO | |||
217 | 217 | ||
218 | If unsure, say N. | 218 | If unsure, say N. |
219 | 219 | ||
220 | config NET_SCH_CHOKE | ||
221 | tristate "CHOose and Keep responsive flow scheduler (CHOKE)" | ||
222 | help | ||
223 | Say Y here if you want to use the CHOKe packet scheduler (CHOose | ||
224 | and Keep for responsive flows, CHOose and Kill for unresponsive | ||
225 | flows). This is a variation of RED which trys to penalize flows | ||
226 | that monopolize the queue. | ||
227 | |||
228 | To compile this code as a module, choose M here: the | ||
229 | module will be called sch_choke. | ||
230 | |||
220 | config NET_SCH_INGRESS | 231 | config NET_SCH_INGRESS |
221 | tristate "Ingress Qdisc" | 232 | tristate "Ingress Qdisc" |
222 | depends on NET_CLS_ACT | 233 | depends on NET_CLS_ACT |