Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1741302yba; Thu, 4 Apr 2019 17:47:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqymNxbKtgQj9HXOy5Rn6GlRf7Qkb/rr0sgqktSj2plQyP9fZTvYlsGDfdIurTE3OacXM+fS X-Received: by 2002:aa7:9193:: with SMTP id x19mr9376124pfa.108.1554425244834; Thu, 04 Apr 2019 17:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554425244; cv=none; d=google.com; s=arc-20160816; b=Dv5uAypx+gCIawSenSFCBoFmIqMGyvz2Ztemec9XujQboUPHZJ2w30Ua1QYlNgsk3r pUraG17IhLo6roS8kfNIwb1Q0aLmYLOR0lB32SDHBXMKSoI1MZI2kmPDNr/CTVAB0eMf Ef8ZdN+dCe9O11AZAfzLLYyySzjYJSQ/Chjb2GbtgS5W2t37fkDABEYOJcR+h5403fpe vXQORBQdT2N8QZowKEm1raoMzvtNESWN2xHFjWPF0LfaUss0GmvUB235rZ8TZwdVbFuA bkY1px+qiiQLFLSq/sZIWzWXNPiKXhMGyzBi4xVKeKgJ6YXjRQadgID+ukx6XWr24S8a PLWg== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=pBMWvGmhGec9T9LeU3yvXTeL4UDWy3g7BedKNe7dnAo=; b=f4ozt+/XyDmH6/0OjQ0MT5OeLeqE+57ValBAz4A/ycRoaLr56uoSVNmXsiwkqo+j1H WBfaIn7asv5vLztQ/ZtJBHEgHFZeFSPNl71DbNruhUkRPR+FQR00Bt0w0gx9phNmW0vj T2F0dkB90nczTJjT7uNHbSu2Qp2IZycWLBqLP4CUU9n1oWMXHQgIBz5SLQCUJXCG2YVI BNtfKMmvFC6utIPbucLORdHF9lfxNTeRNzarn3zQIkHLyRKtAJDLk4vl4yycFB3XnmXg 73pjEs4vcPAa0fmRnkejq3GmhdIse2NhapkFWzvg6JEQWun/qJ4IGgKezPaEyFpMycZg sw3Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11si8314859pla.316.2019.04.04.17.47.09; Thu, 04 Apr 2019 17:47:24 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730036AbfDEAoU convert rfc822-to-8bit (ORCPT + 99 others); Thu, 4 Apr 2019 20:44:20 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:55454 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729697AbfDEAoU (ORCPT ); Thu, 4 Apr 2019 20:44:20 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 75518147386CD; Thu, 4 Apr 2019 17:44:19 -0700 (PDT) Date: Thu, 04 Apr 2019 17:44:19 -0700 (PDT) Message-Id: <20190404.174419.1813732301965311345.davem@davemloft.net> To: olivier.tilmans@nokia-bell-labs.com Cc: research@bobbriscoe.net, koen.de_schepper@nokia-bell-labs.com, edumazet@google.com, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] tcp: Accept ECT on SYN in the presence of RFC8311 From: David Miller In-Reply-To: <20190403134915.6616-1-olivier.tilmans@nokia-bell-labs.com> References: <20190403134915.6616-1-olivier.tilmans@nokia-bell-labs.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 04 Apr 2019 17:44:19 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Tilmans, Olivier (Nokia - BE/Antwerp)" Date: Wed, 3 Apr 2019 13:49:42 +0000 > Linux currently disable ECN for incoming connections when the SYN > requests ECN and the IP header has ECT(0)/ECT(1) set, as some > networks were reportedly mangling the ToS byte, hence could later > trigger false congestion notifications. > > RFC8311 ?4.3 relaxes RFC3168's requirements such that ECT can be set > one TCP control packets (including SYNs). The main benefit of this > is the decreased probability of losing a SYN in a congested > ECN-capable network (i.e., it avoids the initial 1s timeout). > Additionally, this allows the development of newer TCP extensions, > such as AccECN. > > This patch relaxes the previous check, by enabling ECN on incoming > connections using SYN+ECT if at least one bit of the reserved flags > of the TCP header is set. Such bit would indicate that the sender of > the SYN is using a newer TCP feature than what the host implements, > such as AccECN, and is thus implementing RFC8311. This enables > end-hosts not supporting such extensions to still negociate ECN, and > to have some of the benefits of using ECN on control packets. > > Signed-off-by: Olivier Tilmans > Suggested-by: Bob Briscoe Applied, thanks.