[tcpPrague] Queries about prague linux code

Deepak K <deepakkavoor99@gmail.com> Sat, 08 August 2020 17:39 UTC

Return-Path: <deepakkavoor99@gmail.com>
X-Original-To: tcpprague@ietfa.amsl.com
Delivered-To: tcpprague@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A7B053A0B1A for <tcpprague@ietfa.amsl.com>; Sat, 8 Aug 2020 10:39:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.847
X-Spam-Level:
X-Spam-Status: No, score=-1.847 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HrZ4LkUgwdjb for <tcpprague@ietfa.amsl.com>; Sat, 8 Aug 2020 10:39:25 -0700 (PDT)
Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 47ED43A0B0D for <tcpprague@ietf.org>; Sat, 8 Aug 2020 10:39:25 -0700 (PDT)
Received: by mail-ot1-x329.google.com with SMTP id e11so4128744otk.4 for <tcpprague@ietf.org>; Sat, 08 Aug 2020 10:39:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=/TefviNRgnkZeqN9xSqZIRvmCiqLv0PrGc6WTSQVKx0=; b=PSlIInobImcQO7Q/VY7kbXS5irhjNzc3Dgo/JF+7CJPGFfuFed9LoPS08YaMQIpUnf nWvjbd2pSwZHoscy4+mu951L6TVEZZt53a7NWGkNklcvIa1SFh/7cvTqVeqdPnFuWgfL kH/zV2x7rGlGz+kCcR8EW2q6JMwhD/e0F9Zi4k2azReo9KWcCuzg7YtEdoWgvvWkg5EX g2GSHZg8vJJTYP2PH8wV1yU8AOja5s7f3QZsZbMKFiY86k9CjstW1b53yXI5aaElXX3q e0GNTsVUGlEyIy6aRbsMvNA+l679KUL7KI0cdDFnqeTEI4AhpElgJ8uHzcY5ko+8BX+8 5Akg==
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:cc; bh=/TefviNRgnkZeqN9xSqZIRvmCiqLv0PrGc6WTSQVKx0=; b=j02YyaND+Ic22iFfeGeaDjM5H6MZFgXQR70nTATz//nlP4uYb8SKD2k7ljEaObISLw 4MUVM41pEtikQzHjJy6pA5LoTKEKJKylLCd8kQp09UI19w+dVfDABR4djmDOumR5Rxdp 1iEqlWMLqCchDMpaVGIBhkFhQtGPfpys6uD9fFVpM3EYWl0OaYBQrJRg8j9oet3lYuvt /u0PT+gv4TNQLgVOyORwE11ke16DwFD524TNcibJUraDOs+FfNjfiYJroYFU64TCglOY PgR6MzyfXJMuN+CHV6uFwNYMdZvkPvYCK15b4zgpDH5Y+tZSxbf8Q3XkO6u1OriYeEiW 0s7Q==
X-Gm-Message-State: AOAM533BuUR7G2CckquoW2basG5/bl1Ll1o/HP1dyufXXQGLxlR4NXmb qGm75gfrkB4n5SAa7Wrknozn2QhOyPJkNq318IlZUlU6B6E=
X-Google-Smtp-Source: ABdhPJwmtyGjimLvBepl9WfY3I2S0SwCfPT9bBXTuJd+v/gg7XJ1GDxxyjjBccRXHPzGWY2nOycaLOeUPQXK3nhhxU4=
X-Received: by 2002:a05:6830:1e71:: with SMTP id m17mr17759648otr.188.1596908364360; Sat, 08 Aug 2020 10:39:24 -0700 (PDT)
MIME-Version: 1.0
From: Deepak K <deepakkavoor99@gmail.com>
Date: Sat, 08 Aug 2020 23:08:41 +0530
Message-ID: <CAL8XqGrkmarEJjKV37XHgtgRoLrKXewteT0ZpebQXi8BK584UA@mail.gmail.com>
To: tcpprague@ietf.org
Cc: Tom Henderson <tomh@tomh.org>
Content-Type: multipart/alternative; boundary="000000000000cbf0a505ac6133ea"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpprague/yijQzYJBKjRG2JCmAFgBP8qNdpw>
Subject: [tcpPrague] Queries about prague linux code
X-BeenThere: tcpprague@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "To coordinate implementation and standardisation of TCP Prague across platforms. TCP Prague will be an evolution of DCTCP designed to live alongside other TCP variants and derivatives." <tcpprague.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpprague>, <mailto:tcpprague-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpprague/>
List-Post: <mailto:tcpprague@ietf.org>
List-Help: <mailto:tcpprague-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpprague>, <mailto:tcpprague-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 08 Aug 2020 17:39:28 -0000

Hello everyone,
Hope you're doing well. I had a couple of quick questions about the current
TCP Prague code at https://github.com/L4STeam/linux

1) There was a mention in Page 6 here (
https://www.bobbriscoe.net/projects/latency/tcp-prague-netdev0x13.pdf) that
if Prague encounters a packet loss while in CWR state, ssthresh would be
reduced by (2+alpha)/4 instead of the usual 50% reduction. However as far
as I understand, the current code reduces it by half irrespective of
whether it's in CWR. Is that right?

2) I have some questions with the flow of code when RTT scaling heuristic
is particularly set to RTT_CONTROL_ADDITIVE.
In prague_ai_ack_increase (), the function
rtt_scaling_ops->ai_ack_increase() is called, with the parameter srtt_us.
This in-turn calls prague_rate_scaled_ai_ack_increase() with the same
parameter value. Now, srtt_us is compared with the result of
prague_target_rtt(). This function maps to prague_dynamic_rtt_target(),
which returns ca->rtt_target + srtt_us.

So, doesn't this lead to a comparison between srtt_us and ca->rtt_target +
srtt_us, which is redundant?

Thanks!