Skip to contentSkip to conversation

Is DRR qdisc capable for bandwidth sharing between classes in a specific proportion?

DISCUSSION [email protected] 1 participant 1 message Sep 17, 2013

lore
Share & tools
lore
#0 lore raw

Hi!
I would like to ask question about DRR qdisc.
Is DRR designed for bandwidth sharing between classes proportionally to 'quantum' parameter?

Consider example:
tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit ceil 100mbit
tc qdisc add dev eth0 parent 1:1 handle 2: drr
tc class add dev eth0 parent 2: classid 2:1 drr quantum 1500
tc class add dev eth0 parent 2: classid 2:2 drr quantum 3000
tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dport 8111 0xffff classid 2:1 tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dport 8112 0xffff classid 2:2

Here, for 1500 byte packets, I expect packets classified for 2:2 will be dequeued as twice often as packets for class 2:1.
The result is a 2:2 class will receive two times greater bandwidth than the class 2:1, isn't it?

Regards.