TC(8) TC(8) sfq - tc qdisc ... [ divisor __ ] [ limit ] [ perturb ] [ quantum ] [ flows ] [ depth ] [ headdrop ] [ redflowlimit ] [ min ] [ max ] [ avpkt ] [ burst ] [ probability P ] [ ecn ] [ harddrop ] tc(8). SFQ ''. . . SFQ . . ( tc filter ) . sfq () () (iii) . SFQ ipv4 ipv6 UDP TCP ESP. 32 . TCP/IP. . sfq . . -3.3 ( ) . -3.3 SFQ 128 128 1024 . . -3.3 SFQ 65535 65536. . divisor 2.6.39 . 65536. : 1024. limit SFQ. 127 . -3.3 . depth ( -3.3). 127 . perturb . 0 . . : 60. . . quantum . MTU . flows -3.3 . 127 headdrop SFQ . TCP. redflowlimit RED SFQ. . ( man tc-red RED) redflowlimit ( ) SFQ . min . max /3 max . redflowlimit /4 probability 0.0 1.0. 0.02 avpkt . . 1000 burst . : (2 * min + max) / (3 * avpkt) ecn RED ' ' ''. RED . ECN . ECN depth . harddrop max ecn. ppp0: # tc qdisc add dev ppp0 root sfq SFQ qdisc ( ) . . ISDN . DSL . . . SFQ qdisc . sfq IP / : # tc filter add ... flow hash keys src,dst perturb 30 divisor 1024 sfq. sfq 1024 . sfq RED : # tc qdisc add dev eth0 parent 1:1 handle 10: sfq limit 3000 flows 512 divisor 16384 redflowlimit 100000 min 8000 max 60000 probability 0.20 ecn headdrop o Paul E. McKenney "Stochastic Fairness Queuing", IEEE INFOCOMM'90 1990. o Paul E. McKenney "Stochastic Fairness Queuing", "Interworking: Research and Experience", 2 1991 113-131. o : M. Shreedhar George Varghese "Efficient Fair Queuing using Deficit Round Robin", SIGCOMM 95. tc(8), tc-red(8) Alexey N. Kuznetsov, , Eric Dumazet . bert hubert 3 . . : . iproute2 24 2012 TC(8)