From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 62457A2EFC for ; Thu, 19 Sep 2019 16:08:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AB4381F042; Thu, 19 Sep 2019 16:08:49 +0200 (CEST) Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) by dpdk.org (Postfix) with ESMTP id 123BF1F041 for ; Thu, 19 Sep 2019 16:08:48 +0200 (CEST) Received: by mail-io1-f43.google.com with SMTP id r26so7947611ioh.8 for ; Thu, 19 Sep 2019 07:08:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nitk-edu-in.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=uYI/6z0G5CRl0A+FCjqS2TToWsGekmMiqYLiklo8mrs=; b=FdP5XYXDj0enyxzXgjVSPvDxoMlmI61xNDKW6lTnf32WIg2LkoHZnBuKObqg8MnXe3 2/09IgKpW3y2hQusbd6fGbEDNxSoMqnDIyOUYWwRS7P7mfmUhMz5u13R4yxVbU/mIY4l K94/FZYgM88IP7AcstVayBLIuh4AM3pMnWo5HhT6JYuQLOczwuuKr4FJeA9hCMZo8dbX OFbrRo1ZhvVib9P/GuLO3JLuW0WA65EngLG6GlrZbj4s8nd15lyMN7PvbCeTysoBi/tO 26Lkhn4yV1BnK1JM9vdK7CpkUvKzJ5ouM9G+86mtYjyFzoUH0OcoHI934B0/JX//OZkN EVhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=uYI/6z0G5CRl0A+FCjqS2TToWsGekmMiqYLiklo8mrs=; b=TJTOcGVFL3YXErW71bvYGPTBn2G1py90VfTFXN81cBDn8ow52XPTO6MGJrbQzWeRDx HtmNjF6L5rvC2Bni7aWuwv7Tc3XcUJwV0TKlTBUsJE/CKNB7/N7g3BrgUePvbCbUHiC/ axsI0+j/+r/n4KPPAC04f2ix461QyhltouSfGvao0ZaBeZg9LoG6dLjaC0WrY9oPUof9 PLhuT9G0UzCx+dt7+Ya1oxvVGcMo4Mnh6RtLXustmvUuoxm/6+EDBnrzHLHkHIRyICi1 w51qUGGeS5eLTDw3E3TmnSWbY0/omzj6dcjmMZKQoK9Y2RPM239LK6IEvK85eQGM68vR IhkA== X-Gm-Message-State: APjAAAXN/NxZx25Ys3cHzRp3AzRPFgVNzEsflPmweOekbHuqJvHqKU50 RE9mFuTpXKc9SfoGgWkSUorjA66ke6f+Cy8V/wTbF0FxDoI= X-Google-Smtp-Source: APXvYqxO6CrfZ4BzkhI1DrGr5j0/kJ0TX3iwDh9Q/T/ThPBZkof/VJg2BmZ5SntP1tJr9qngLdTytkpx/8VQjZ1gmgg= X-Received: by 2002:a02:344a:: with SMTP id z10mr11627738jaz.123.1568902127627; Thu, 19 Sep 2019 07:08:47 -0700 (PDT) MIME-Version: 1.0 From: Gokul Bargaje Date: Thu, 19 Sep 2019 19:38:36 +0530 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Help with RED (Dropper) Implementation X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi, I am trying to understand the implementation of Random Early Detection (RED) AQM in DPDK. I have read the dpdk/lib/librte_sched/rte_red.c and rte_red.h files but i don't understand the implementation. Please help me to understand the following questions. 1. How RED parameters are configured? 2. What is *wq_log2*, *maxp_inv* and How their default values are determined? (original terms in RED paper are wq and maxp) 3. What is *uint16_t rte_red_log2_1_minus_Wq[RTE_RED_WQ_LOG2_NUM]* and *uint16_t rte_red_pow2_frac_inv[16]* and how the size of these arrays is determined? 4. I found that wq is calculated using lookup tables, how this is actually implemented? Thanks in advance! Thanks, Gokul