From: gapsf@yandex.ru Subject: Is DRR qdisc capable for bandwidth sharing between classes in a specific proportion? Date: Tue, 17 Sep 2013 14:12:31 +0700 Message-ID: <65619545.20130917141231@yandex.ru> Reply-To: gapsf@yandex.ru Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1399367996; bh=8G/CEzVy0BFOecaMuVgTfnbhR85gNpNAFbke6UKfeng=; h=Date:From:Reply-To:X-Priority:Message-ID:To:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding; b=pzXEkJHUTQpEzRoXqM9wEdKnKAUGHzPmShy4WR6ge5BzzGbIs6V1Qj3iaGAdO3dDY 3NgxNwwW1mnNzAOCpJ2YLPC1GTyW2pHp5nxpu4jhm5L7zXOoGY7DW9zndUKSbI4KFQ vlYyxjbpTt7JiUJDGMr7uqXJPUUnt7tA/zZz2Tk4= Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: netfilter@vger.kernel.org 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.