Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1354176ybl; Fri, 31 Jan 2020 19:59:24 -0800 (PST) X-Google-Smtp-Source: APXvYqxhODbDP6GlK6v8EnPnO09H/1EWIbCdXz7NYWv3jkn62aLSj0mLQSF1S5gN144ZsHH39KJ/ X-Received: by 2002:a9d:7304:: with SMTP id e4mr9331433otk.99.1580529564363; Fri, 31 Jan 2020 19:59:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580529564; cv=none; d=google.com; s=arc-20160816; b=y2nkLug4E6QC3OuLn3iSxiEwa09VWUCAYCUZxMTF+mtk0K+kyTb86fEO3E9Vx0Y7DD gWVszxCe8RrypyPxjkU4YeUpFgFxDdmOXJDSHVcRvFF3ewELJAu5GekHXgS0ZTPfHL/5 QncEmFM4PLtOAq+YG8PmbQwGf+aVM0lZUJLgXuszNiIjscOcAIJC1avbo8/Z4upIptdK fzPejt3/x6FyWVe9xEbcWcg12SxbxYFkFk0ijb/PxEpbCKNfUGoVr0HrNgacMkfNxLQZ Ul2tp9K69Yf1+2jylHF7jYGUARjKU8m9XtPN15PG53g/FFqeu0d3z8QLA3csUQMR6o8p n7mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=kpR02gdbkQHjEdxG9SGzf7pEIWQTwMtXqw53xDeIps0=; b=Qbge66606OaevAhR12QbZ0o66kwwR9OPfU2uvd3b9gPuONG04A/ArL8dutZERDD8AX mLcIJLoAyf2oL+8hybRFiuLt7CZ92A2TDU9tABQ9uR2c9nheJzf2DMiK5B+EmV25nBQq eqFuHqj0hUOYR+ccs2rXY8fMYDT4B+hBz//XmmS2S6k/crtY++Ryr7/aa4BrRY0ImaYX d247W0OvndzCgN6chKGLRAPyb2VwscR0FFo1WXWs81T4aaNxlD5V+VLOeJdM+tUjkRPT twCIyC+rEhCafwhkOqqMApCvQJMNx4vXLiMfxp7ZijO99uZi6Cx9VLK40I+0dCdDTRyb fC2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VQjFL00X; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g25si6091503otj.198.2020.01.31.19.59.00; Fri, 31 Jan 2020 19:59:24 -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=@google.com header.s=20161025 header.b=VQjFL00X; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727074AbgBADzy (ORCPT + 99 others); Fri, 31 Jan 2020 22:55:54 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:37619 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726749AbgBADzy (ORCPT ); Fri, 31 Jan 2020 22:55:54 -0500 Received: by mail-oi1-f196.google.com with SMTP id q84so9441065oic.4 for ; Fri, 31 Jan 2020 19:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kpR02gdbkQHjEdxG9SGzf7pEIWQTwMtXqw53xDeIps0=; b=VQjFL00X7xtyXkCCDgN3B68jvRIqMEmqrDPxRd5YE3DRN80cjuRwJc+vxnog0d9I5v oefItgDUERaDVY/Gd5fT07KrQSGyCfMFvmsVeDqKTlRMu4QC5hyubUOprxRi3O2iZk9S v53qnNnUyOyS8RL4KLV+hKJDShcM7+QvFo2HLP4uXwSiTMCgRy8D2WH6g4GTnvEFjn5i by/CkmTLDYrhvYjZ9s8vSWSUayYwFsYMnktoKLw6TUHPxil+24ZVVOm8A4US4MkV6VHQ XfULhdcSaKINaYs0Qt9Xq7gu1CkXzn/q0rbEaqmknolSfd9wEwSLp6tTknjiPAawKRvF g/zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kpR02gdbkQHjEdxG9SGzf7pEIWQTwMtXqw53xDeIps0=; b=WqkI8HH/dLUfOW1ikccQmkJVNXHTFUSOPNot10WYNKd3hZcxSeVv3IFtNcFrqymwlE Nw6pF021960mH7hYclzjXUr9SGfTVYGAZDUqU6cmCjJkVGIcxtCa3Uy5+EaGUd/A/84+ ZkFVr0fk2GAo4nN61rjitgaZah+etAoo/X65bESfIxnM4FRaa1qNUznE0yy6UFU1aV5N WOWIWhOP5+y/N3iBKoknKlaWf80FQs9tgJ5GkRJYhx990heSV4z5ErXm8wDAfo2Sa0la /fhKk2HoBZmiQ77SeRlz3rAeNe8wwRk5TJnS85IDFTBC5gcyuAh2cgzn5Y/WiRg0HooG muIw== X-Gm-Message-State: APjAAAWR4LqY7Mpxabshq/TeiqoIo8UxFKQi/CFea9ksbyRrU4GDKp5/ MeZ3CA8xoxon70lTjQsOvqUBIUxy+YufWA9SOae0TQ== X-Received: by 2002:aca:1b17:: with SMTP id b23mr6844579oib.95.1580529351343; Fri, 31 Jan 2020 19:55:51 -0800 (PST) MIME-Version: 1.0 References: <20200131221755.3874-1-sj38.park@gmail.com> In-Reply-To: <20200131221755.3874-1-sj38.park@gmail.com> From: Neal Cardwell Date: Fri, 31 Jan 2020 22:55:34 -0500 Message-ID: Subject: Re: Re: [PATCH 2/3] tcp: Reduce SYN resend delay if a suspicous ACK is received To: SeongJae Park Cc: Eric Dumazet , sjpark@amazon.com, Eric Dumazet , David Miller , shuah@kernel.org, Netdev , linux-kselftest@vger.kernel.org, LKML , aams@amazon.com, SeongJae Park , Yuchung Cheng Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 31, 2020 at 5:18 PM SeongJae Park wrote: > > 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. :) Great. Thank you for the pointer. I had one quick question: in the message: https://lore.kernel.org/bpf/20200129171403.3926-1-sjpark@amazon.com/ ... it showed a trace with the client sending a RST/ACK, but this email thread shows a FIN/ACK. I am curious about the motivation for the difference? Anyway, thanks for the report, and thanks to Eric for further clarifying! neal