From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f51.google.com (mail-it0-f51.google.com [209.85.214.51]) by dpdk.org (Postfix) with ESMTP id DDC852BA1; Fri, 30 Sep 2016 06:12:07 +0200 (CEST) Received: by mail-it0-f51.google.com with SMTP id u134so23528008itb.1; Thu, 29 Sep 2016 21:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=4LDr5nmMi1iiDLtCPD9IU2kHbaeJhEevVDw740DqzwY=; b=YutVUNlbZKOHdz6zX3VMRMhNAcUS3cIuybHLs3NWZu/zoC8Qlh0XVD98Djj/48yZSH p9azxTQGNyshPfsFamUzN3NcenchQlEA7mrMzTyMA+qBifk+AhwG+vmA+ohK+GsjcYV7 ZnfH/zuLDhd/Xgkw3cHh1DmNQidrNSQA2k0Iuj+rRJRQ+CLZVKj4mc55plT2oH6MpNqF BTNonrFUtXkbQLmCOOw90d1+QHCak1++5dMhTo/t4H23CSvEKXzviE9WweuU+VNa25Lp oynZk6Fos0RSxrW2KNUF12EL602YPNX1cm5ocL5Bt+9JeQwf/mO3agmPQqwJYFtbDPqW OSSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=4LDr5nmMi1iiDLtCPD9IU2kHbaeJhEevVDw740DqzwY=; b=PSuYP6aoan05uyByaZGc9TZj6rM7TxcjBug7uvcZ17r1HjUCmKDsyquP3dhCeeFYRa 5J3K+jjDe9AN0KvwmIskFGzTIKXwnWEY3qlNEdaNLti9OaTwW7Nz04im1T38reWLDMuy zQInBwwsEC9Eydr9ctumYnkmHkqVdjGiuTXwfLiyXhKunvqqv3yJEQdFWSyGTnkonHXl Rb7HuoczGyMsY9QfkqSS+UDudfexWJS7FIoYRXqxiutgt06fpGi8Z9zpITYoUbO2fUcw IPR7p6eW/8TLIP+VYLSCeMq4I9e3nfKtcadFibA5LW2Do4o1LZKm+4lrly7qK5Z9TqKE Grow== X-Gm-Message-State: AA6/9RkvOOVO8i5ZfSouD8hHZDRTA3fbsgRou36RMDsSothW//rj7T1Fu8guCK2GguYfD5CcEkxEAX8xWfoasA== X-Received: by 10.36.23.142 with SMTP id 136mr2249210ith.73.1475208727271; Thu, 29 Sep 2016 21:12:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.53.23 with HTTP; Thu, 29 Sep 2016 21:12:06 -0700 (PDT) In-Reply-To: References: From: Nikhil Jagtap Date: Fri, 30 Sep 2016 09:42:06 +0530 Message-ID: To: dev@dpdk.org, "Dumitrescu, Cristian" , users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] qos: traffic shaping at queue level X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2016 04:12:08 -0000 Hi, Can someone please answer my queries? I tried using queue weights to distribute traffic-class bandwidth among the child queues, but did not get the desired results. Regards, Nikhil On 27 September 2016 at 15:34, Nikhil Jagtap wrote: > Hi, > > I have a few questions about the hierarchical scheduler. I am taking a > simple example here to get a better understanding. > > Reference example: > pipe rate = 30 mbps > tc 0 rate = 30 mbps > traffic-type 0 being queued to queue 0, tc 0. > traffic-type 1 being queued to queue 1, tc 0. > Assume traffic-type 0 is being received at the rate of 25 mbps. > Assume traffic-type 1 is also being received at the rate of 25 mbps. > > Requirement: > To limit traffic-type 0 to (CIR = 5 mbps, PIR = 30 mbps), AND > limit traffic-type 1 to (CIR = 25 mbps, PIR = 30 mbps). > > The questions: > 1) I understand that with the scheduler, it is possible to do rate > limiting only at the sub-port and pipe levels and not at the individual > queue level. Is it possible to achieve rate limiting using the notion of > queue weights? For the above example, will assigning weights in 1:5 ratio > to the two queues help achieve shaping the two traffic-types at the two > different rates? > > 2) In continuation to previous question: if queue weights don't help, > would it be possible to use metering to achieve rate limiting? Assume we > meter individual traffic-types (using CIR-PIR config mentioned above) > before queuing it to the scheduler queues. So to achieve the respective > queue rates, the dequeuer would be expected to prioritise green packets > over yellow. > Looking into the code, the packet color is used as an input to the dropper > block, but does not seem to be used anywhere in the scheduler. So I guess > it is not possible to prioritise green packets when dequeing? > > Regards, > Nikhil > >