From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) by dpdk.org (Postfix) with ESMTP id 239B211DE for ; Tue, 27 Sep 2016 12:04:27 +0200 (CEST) Received: by mail-io0-f177.google.com with SMTP id r145so10731365ior.0 for ; Tue, 27 Sep 2016 03:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=zys6fKhkKaTKgmEuu01nUIU3prLiLV7MeqQbFeCX8I0=; b=FREbJ9ISsZwHHgwHFbnYkOQB1vIE+eBBMnEN2MprUJ0I7ISGhP4cOzaiiDEUloi3op qoy3nhIHGlVkwykbLSG2rEX/v6PAWtcCZ4csXTxO+feZF60DJgx6L6PWJPNMnxdybwmp F+nwQ3GqBtoJTsyP9L1+TO7ozQk/8xXEV2htx70NBuiia+3g7uxl+1wXOr9sOLLaOvic ofHTpn+GLx7TvNDokzffMCIh+BKLNLV8XRzaI/+j0pvh1IUlQhgjAXi2DBV217dkyCh4 nbNqxnckj5DvGvhjcBpYnBbOTIVUiqhg66aCnsJwnitB8E7/cXeB2tatCyffcDlEQkAo Dkgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=zys6fKhkKaTKgmEuu01nUIU3prLiLV7MeqQbFeCX8I0=; b=KlK1slDq7q4meZvRh2/FTnEchupJ2OFGlk8KRCvhowxk4kxUyDa+T4I3Sfsp0peedJ nJ7/7mHBQjrCO2DJjszwUi+r0VcL0MV8uxaI8o3hURrmxRMkBEkjPROnVLbdPdFIVRoa +OlnWo27otfLuytOLYG1uep2wul26af6iq4IaWMgt+z4QKKsCGGYCWuEwU+szP2EpTt+ Mhjtke1kzRiFFvZM/ZfJaU+V6eoCkaemPHKCqZIs2f+VH/N1YPVdIeF6Yg74pbAgZDh0 c4zA/i+Xu73pZ6LFsH3gs/kv/SAFvCB6uGzFGIVLAGthnXB/8u97nZ5WihNVCt+K34is yCEA== X-Gm-Message-State: AA6/9Rnk7eOrSgIt7DL9kQl/aTL4tkC1BYHf/8HwcU+WeG48rngScanK8xqm1XUEShLZPraI/xahEpik5prZKw== X-Received: by 10.107.58.7 with SMTP id h7mr28111301ioa.141.1474970666590; Tue, 27 Sep 2016 03:04:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.53.23 with HTTP; Tue, 27 Sep 2016 03:04:26 -0700 (PDT) From: Nikhil Jagtap Date: Tue, 27 Sep 2016 15:34:26 +0530 Message-ID: To: dev@dpdk.org, "Dumitrescu, Cristian" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] qos: traffic shaping at queue level X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2016 10:04:27 -0000 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