Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1134027ybl; Fri, 31 Jan 2020 14:54:55 -0800 (PST) X-Google-Smtp-Source: APXvYqwa/OLxvP6TveX9KopwHGTzftXT7JgpruCrUhWH3cMNhTLrHVN1ibL5UvhtCfbuliP5Oa/T X-Received: by 2002:aca:d6c8:: with SMTP id n191mr8167679oig.103.1580511295730; Fri, 31 Jan 2020 14:54:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580511295; cv=none; d=google.com; s=arc-20160816; b=RfcBmz8/QOa4JFdFUfS7+1cFhZblG8oeHfxx1eQQwLbQhkRhS8Y0sB9c6ZeakNM5+j S3Xv2VLsolywLMFGjAVynW2GS0Hq6KxzLAWFEA20a4QRJzb7k1o1huzLCPBFGL+UqddL M4h7G2HtzyUPMncNbKD0Lq3yb/9Xl6RD7C9G+fFw4KS5fd1EOQ5lVMiGLx74DdssET8B XJkJQ+1uI6S55a5N5Jscp8iMbL5qhhZ4bfwHNkMdImKSS/w/9AjZWy4yeQY5b6CQS93S n0JdRe7Oz91Bb++E1YB89sMIe0HNjHYMWqpxXvmYZ9n/PRVH7dMrBj+W7z84FATSXlmW 0Ppg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=O64ZrPgfOSQfg7giHCwyJ23cxOCbiT2C1hToXNCQpWY=; b=f50Cyvyic+/CRdMV45iHc8JH12YlRceImbPQ6hgVTGfFd6co9Ol5+tOVoNxA6b/OMu bBmgHaZsbEg4U7LhDMQMhZya6wOzsFdZlPl000/+FrAk3giuvZZYZ7DbY9yCjMid3ylI +tDeGQqJBCKtvoaIKWWDnnsEBzOHxJEeCQJAeZ2VoaC3h49prGRxtWFNntPBg7bXZN/l ZQTRAhRO84op/tA0o0hvDpw3ckHtYeImrC/mCNvkWT4Hf5vd0gtuBQ+Uq/ikn1FoYBc0 4CpcVpodUsUNOETHM2TTI7ZjyvZsjlpncfVRQ4qzXn5AgBlSugSOTTCjCymX21mi0C4k LPlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BOOJ0Umn; 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 y22si5291544oti.269.2020.01.31.14.54.43; Fri, 31 Jan 2020 14:54:55 -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=BOOJ0Umn; 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 S1726712AbgAaWxt (ORCPT + 99 others); Fri, 31 Jan 2020 17:53:49 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:36453 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbgAaWxt (ORCPT ); Fri, 31 Jan 2020 17:53:49 -0500 Received: by mail-pj1-f66.google.com with SMTP id gv17so3595545pjb.1; Fri, 31 Jan 2020 14:53:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=O64ZrPgfOSQfg7giHCwyJ23cxOCbiT2C1hToXNCQpWY=; b=BOOJ0Umnh+z2fup1+C6AYpqK8dw/9bii6hztTW4wh+y+LkZJF2CKGz/18Fm825U1Dj WFyhP237naoFQ8e+VIMnumKLEHmoRKvvUnjzMygt+DKP+p0Ql+p/TsTjByl0yYiI3iQ4 DovBBDFVI/DC0AnHmJt89Ggra1beaiBH2OUbG5RWTesrXGFIBv5hNfGfLYXHCZ9ZgS+l UxgknH2OodFR0xNk4NuQ7EfqLQMHtagYyh9tFB8XW0oTD5tcyb9liWUlAnzjA461jneW vHcUaDPVeYRkXyBlMlxkMnNNSxU+eBROYVgjmDAEvm6zTTGS3aJ5giXxxI7DxrUM0Xq1 PvRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=O64ZrPgfOSQfg7giHCwyJ23cxOCbiT2C1hToXNCQpWY=; b=CY/el1qbIBCzWAGYK34Cw0kidcfUp2ChqxjBUYaeq6NjFcImMv9acjDzDGvtqrzDHK fawjS/HcDsbbbnC74YCIdpAuZc9Vpp8Y423w/PdmpTO5Qbq+p8QWUuqqLi3b94aJS0jq e9y8jQxUNaQOSbscKzpmCLcoIYvkv3uMWRoaJmrZva03RrJrJNHrK3tPPKU0xofkrN4H KMQipqIzVeD1Z/99KtlFAVZ3dbk7ie5egd95lep3XE0zbikXxin5VE1BTdu1Vkw8ja41 YKhzONIybnGAtpd96e6x10R89zcnQuGqe06yyySJ2Kn4foLyfs7krMbvMsK1mvlhHJvp d0sw== X-Gm-Message-State: APjAAAXvJ04Va4Ggn80cTCLZW06ddjI/j3jTWvpeEuzfh6xKnyBN+m+n o3c1eIoiXE+k181CXvHvCCo= X-Received: by 2002:a17:902:8d94:: with SMTP id v20mr2737008plo.259.1580511227385; Fri, 31 Jan 2020 14:53:47 -0800 (PST) Received: from ?IPv6:2620:15c:2c1:200:55c7:81e6:c7d8:94b? ([2620:15c:2c1:200:55c7:81e6:c7d8:94b]) by smtp.gmail.com with ESMTPSA id r26sm10876261pga.55.2020.01.31.14.53.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 Jan 2020 14:53:46 -0800 (PST) Subject: Re: [PATCH 2/3] tcp: Reduce SYN resend delay if a suspicous ACK is received To: Neal Cardwell , Eric Dumazet Cc: 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 References: <20200131122421.23286-1-sjpark@amazon.com> <20200131122421.23286-3-sjpark@amazon.com> From: Eric Dumazet Message-ID: <7d36a817-5519-8496-17cf-00eda5ed4ec7@gmail.com> Date: Fri, 31 Jan 2020 14:53:43 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/31/20 2:11 PM, Neal Cardwell wrote: > 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? > > If I have time I will try to construct a packetdrill case to verify > the behavior in this case. Unfortunately you wont be able to reproduce the issue with packetdrill, since it involved packets being processed at the same time (race window)