TC - Online Linux Manual Page

Section : 8
Updated : January 2010
Source : iproute2
Note : Linux

NAMEdrr − deficit round robin scheduler

SYNOPSIStc qdisc ... add drr [ quantum bytes ]

DESCRIPTIONThe Deficit Round Robin Scheduler is a classful queuing discipline as a more flexible replacement for Stochastic Fairness Queuing. Unlike SFQ, there are no built-in queues −− you need to add classes and then set up filters to classify packets accordingly. This can be useful e.g. for using RED qdiscs with different settings for particular traffic. There is no default class −− if a packet cannot be classified, it is dropped.

ALGORITHMEach class is assigned a deficit counter, initialized to quantum. DRR maintains an (internal) ''active'' list of classes whose qdiscs are non-empty. This list is used for dequeuing. A packet is dequeued from the class at the head of the list if the packet size is smaller or equal to the deficit counter. If the counter is too small, it is increased by quantum and the scheduler moves on to the next class in the active list.

PARAMETERSquantum  Amount of bytes a flow is allowed to dequeue before the scheduler moves to the next class. Defaults to the MTU of the interface. The minimum value is 1.

EXAMPLE & USAGETo attach to device eth0, using the interface MTU as its quantum: # tc qdisc add dev eth0 handle 1 root drr Adding two classes: # tc class add dev eth0 parent 1: classid 1:1 drr
# tc class add dev eth0 parent 1: classid 1:2 drr
You also need to add at least one filter to classify packets. # tc filter add dev eth0 protocol .. classid 1:1 Like SFQ, DRR is only useful when it owns the queue −− it is a pure scheduler and does not delay packets. Attaching non-work-conserving qdiscs like tbf to it does not make sense −− other qdiscs in the active list will also become inactive until the dequeue operation succeeds. Embed DRR within another qdisc like HTB or HFSC to ensure it owns the queue. You can mimic SFQ behavior by assigning packets to the attached classes using the flow filter: tc qdisc add dev .. drr for i in .. 1024;do
.B "tc class add dev .. classid $handle:$(print %x $i)"
.B "tc qdisc add dev .. fifo limit 16"
done tc filter add .. protocol ip .. $handle flow hash keys src,dst,proto,proto-src,proto-dst divisor 1024 perturb 10

SOURCEo  M. Shreedhar and George Varghese "Efficient Fair Queuing using Deficit Round Robin", Proc. SIGCOMM 95.

NOTESThis implementation does not drop packets from the longest queue on overrun, as limits are handled by the individual child qdiscs.

SEE ALSOtc(8), tc-htb(8), tc-sfq(8)

AUTHORsched_drr was written by Patrick McHardy.
0
Johanes Gumabo
Data Size   :   8,120 byte
man-tc-drr.8Build   :   2025-03-22, 13:26   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   1 / 1,209,072
Visitor ID   :     :  
Visitor IP   :   18.189.170.66   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36


Very long time ago, I have the best tutor, Wenzel Svojanovsky. If someone knows the email address of Wenzel Svojanovsky, please send an email to johanesgumabo@gmail.com.
Help me, linux0001.com will expire on July 16, 2025. I have no money to renew it. View detail

If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_B|21|tc-drr.8|68| tc class add dev .. classid $handle:$(print %x $i)|.B "\ttc class add dev .. classid $handle:$(print %x $i)" )         (rof_B|21|tc-drr.8|70| tc qdisc add dev .. fifo limit 16|.B "\ttc qdisc add dev .. fifo limit 16" )