Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1109531ybl; Fri, 31 Jan 2020 14:19:06 -0800 (PST) X-Google-Smtp-Source: APXvYqyJWfYw0TGpWn2OFT9hR72kKifJ4JqanZUVJQ5j0M/pQCuy+zXEEqtNCANFTDv2jvgA9cRC X-Received: by 2002:aca:c70b:: with SMTP id x11mr6438023oif.29.1580509146595; Fri, 31 Jan 2020 14:19:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580509146; cv=none; d=google.com; s=arc-20160816; b=n1Ej2hyas3xgomB4BA9cYzgdF+SdNZJY7ODkNMm+Sn+37i4oGCGmuptepnd5qaqvW3 NZkS4PV8EFdo7uHqvVBFoNfUQSiwuDDwwLl1+FlMtVsSuCW0K5t+wovzDqBXniumc1+J vGJ+RFRd4/i9sbGjJSFArCxrbQfaQhL87Qn52xqMW1uIVr+PYsExNqYR2ZV1b+Z5XiLg eo2rKiN18nAjXDZM6ALSLdeKvFjCymq3qqnaTAKMXcvXRxlCxqlS8tq68QN/p2fH9frB a1tW7A/F6Etu2Q1IKglwq2cE23lR37qxPD/4pnnJca0k5/DZUsJAFuZ8YegxkrNMYyQn 1IEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iqoYY1hW3kdx2QTMgrt5T8EFx7fh9shlLkm6TPn+Nq8=; b=J29lKm4soUe4/pjhwNm1aSifOZP1H1ULxyIiE+PFNhFYBI++vPLSJDtHMrXEsuOi3s UzAs5rDdJdOBydxEjNbdy2sL0MUTjM12iG+9yI+WFAZxlP1CKlQuIsWxBPw6SCAai5id gWC+be99geYtuK7OjSX2BLlZpVtuZ6Fo+BEJYfwIlKdlQLY0/Wf+nVjt2vSel2l+eHRc 0UbI4ngVIrFTWMYfa4C4PUf+NN6T+szmI8/AyZ1vhiF3sDw0m7kxjJvL/PkFl0WpsnqE MOT1R9/9JeK3VMs3jWDoaIJwiHN8poRfS94Xo80R36yvUSQrqpJgDa/Jjlb5FXGdcswl E47w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Os6JbUIj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si5209535oic.140.2020.01.31.14.18.54; Fri, 31 Jan 2020 14:19:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Os6JbUIj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726484AbgAaWSG (ORCPT + 99 others); Fri, 31 Jan 2020 17:18:06 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:55324 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726202AbgAaWSG (ORCPT ); Fri, 31 Jan 2020 17:18:06 -0500 Received: by mail-wm1-f68.google.com with SMTP id q9so9715376wmj.5; Fri, 31 Jan 2020 14:18:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to; bh=iqoYY1hW3kdx2QTMgrt5T8EFx7fh9shlLkm6TPn+Nq8=; b=Os6JbUIjHXfaXBEu9c9EqSpZ96YN7SS0b3HdKsSGYY07ObLpQBrrdatpCjN2SRobYS 7MNbPX6Xt9WQbnPSQfvz38HRv1y9lt5rAq0ShYXiqbG21WI4+G4UUIGeFtOLuUlaFYI4 lZ3xs5yDj0rFFEIyRzQIOrmksKIDwQtmWnfXsWTk9eeRFjgDhiiJ5ee+8Qe0bs/uD7om P1LcR6U2YTW2pqNX7fTW9PcfWP7XIzww3EOkMcVO2ZDuBdhHBPjcUEWHPv4raZ06YYTr Z5LcE7kYkroOzE8NwasYOmy1MVpEk58WGeTYoDSuG/ObaRNu/BYXbqTm+CyRUbpa4ASc CZVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to; bh=iqoYY1hW3kdx2QTMgrt5T8EFx7fh9shlLkm6TPn+Nq8=; b=O3hqcCeeSCrtoM4lKFwk2U9HPdjYzf9nIqQ4gAPZMMIEL5JVRrqYTrNaL4uM23+UWX SxUDcDX+GMi71k5FoVpfErYDCFRPGhDQHFXRyR3TamJIsrpuJRCForGXSg7frTGyTi44 v0ghL8VBIv+Ea1bRlOy127dpT6HybXseZcf/0+H8dIQrP61pDyFmUJftS/bOSFPi1ioG 5iSQiJqBuEOZBzhKCEm+bgKpyevv4CGuabU9YxuAQyedHSRh/FvYw8FxKS+oh4Nd0dzJ lOWW1yRN9eQN3nHnhj3pNKQwZEOMWy8sojGcm9/9IV5wnme3QBpXnYjnadJfjHdE4d5Q B5nA== X-Gm-Message-State: APjAAAWZJeir1tgFs8rp7DbFZO0GguK9FP69bk8P1c2E+9WmWFRgQwrf MaqTOFgpryX/Om+mrM+ejy4= X-Received: by 2002:a7b:c416:: with SMTP id k22mr14769649wmi.10.1580509083399; Fri, 31 Jan 2020 14:18:03 -0800 (PST) Received: from localhost.localdomain ([2a02:2450:10d2:194d:bcd7:b36c:40fc:d163]) by smtp.gmail.com with ESMTPSA id g15sm6053391wro.65.2020.01.31.14.18.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 14:18:02 -0800 (PST) From: SeongJae Park To: Neal Cardwell Cc: Eric Dumazet , sjpark@amazon.com, Eric Dumazet , David Miller , shuah@kernel.org, Netdev , linux-kselftest@vger.kernel.org, LKML , sj38.park@gmail.com, aams@amazon.com, SeongJae Park , Yuchung Cheng Subject: Re: Re: [PATCH 2/3] tcp: Reduce SYN resend delay if a suspicous ACK is received Date: Fri, 31 Jan 2020 23:17:55 +0100 Message-Id: <20200131221755.3874-1-sj38.park@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: (raw) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 31 Jan 2020 17:11:35 -0500 Neal Cardwell wrote: > On Fri, Jan 31, 2020 at 1:12 PM Eric Dumazet wrote: > > > > > > > > On 1/31/20 7:10 AM, Neal Cardwell wrote: > > > On Fri, Jan 31, 2020 at 7:25 AM wrote: > > >> > > >> From: SeongJae Park > > >> > > >> When closing a connection, the two acks that required to change closing > > >> socket's status to FIN_WAIT_2 and then TIME_WAIT could be processed in > > >> reverse order. This is possible in RSS disabled environments such as a > > >> connection inside a host. [...] > > I looked into fixing this, but my quick reading of the Linux > tcp_rcv_state_process() code is that it should behave correctly and > that a connection in FIN_WAIT_1 that receives a FIN/ACK should move to > TIME_WAIT. > > SeongJae, do you happen to have a tcpdump trace of the problematic > sequence where the "process A" ends up in FIN_WAIT_2 when it should be > in TIME_WAIT? Hi Neal, Yes, I have. You can get it from the previous discussion for this patchset (https://lore.kernel.org/bpf/20200129171403.3926-1-sjpark@amazon.com/). As it also has a reproducer program and how I got the tcpdump trace, I believe you could get your own trace, too. If you have any question or need help, feel free to let me know. :) Thanks, SeongJae Park > > If I have time I will try to construct a packetdrill case to verify > the behavior in this case. > > thanks, > neal > > >