Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp203821yba; Wed, 3 Apr 2019 07:15:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYFDyNqMvMNHcpWFiEsel/8ALq3gcG2ShjLbgbksJzdKbUbucV7bvM/SQdgvmq/dQSgM9g X-Received: by 2002:a17:902:266:: with SMTP id 93mr93315plc.161.1554300956178; Wed, 03 Apr 2019 07:15:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554300956; cv=none; d=google.com; s=arc-20160816; b=KBEGnvApp0eRuiXyJShAjdFdtZD8kTIA/fPsnmYPZzCGHJ8yxMCSY582f+5ewwUHTi SkAawT6FOI0RDkb1cxzhCUSxZ6VRsOhiqswZTK+2jYtoZs0waCv5cePTe0psCJe4CfdB MXDcJzbUElecKFZSC1J2iqakXtm/m9uCM6gIw8GbuporAIg8CRHo9cd9ITwQSljUgQvv qQLWv9NGkdcOjGYUmPnKrdxJMoWdveatBYufgfSnvxPIwYn7KY29G5GBk0VCvIWXDjyL Df40YQbHQ5y07SYFqDQyNoHWkgdJqO7uPQZ1EftzFOa7SREodfv9CZ9IA2BngeBYKLwM uPlw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=pUNm8FbE9mgPJ18ACUFv10ogYAla06jt3nWb68IMWG0=; b=zR3ZLm4MBXL5FO+o2Qtg7MrGSJ4CjhTOWBq2a2AiGn/L2JWFrAjTUYuhlTFqyP0zh7 dR0fhLmTGtCuz45FY2osR6a1gD8ucisa6VosaQd8ur1g9CJHxb4dFU1zVRFq9jTlRzvG K0mbU4EJ020diPZRjrqhvxtan0ALjtAAvB/Gnfv7V/3ucf8Kdw7ig3jA6i00UcHUjVZ+ u5P4yKeWcbgAq03Icz7ENhukrz7KAZRmzeO9d57882WkmDVT4vdToBxXu8JPktfOYkIs iQyKiW8AHneG9haSX/Og2r0NjLTWN/dzz4AX95Kc7nnsbfN3yvS2y5CqkfW89Lnq3CZ+ DzxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WLMqsNwB; 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 h37si13983535plb.93.2019.04.03.07.15.40; Wed, 03 Apr 2019 07:15:56 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=WLMqsNwB; 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 S1726372AbfDCOPE (ORCPT + 99 others); Wed, 3 Apr 2019 10:15:04 -0400 Received: from mail-yb1-f194.google.com ([209.85.219.194]:46529 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726084AbfDCOPE (ORCPT ); Wed, 3 Apr 2019 10:15:04 -0400 Received: by mail-yb1-f194.google.com with SMTP id u15so1806505ybj.13 for ; Wed, 03 Apr 2019 07:15:03 -0700 (PDT) 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:content-transfer-encoding; bh=pUNm8FbE9mgPJ18ACUFv10ogYAla06jt3nWb68IMWG0=; b=WLMqsNwB/T7ldwcjJF2eOa+O4OkR52t6uCiSVfi4dE/Ki7G1kfPyeMhAIfB5GHk8e1 zKGYa04GxVTyW0LKbHmKprU77dFFgkAYLCrQEEiz8qQkvJpatdqPZstp4FcYgeCpEpAA bTWIccSxFKnyJgP5znkPXrf7VYbvjHb6+6MC3jej0WMTtEip+v11zlJxX9Df37LlsLoL iKtlt9ZoWpMfWnjHD160itYIorNuK09gfL2n3z+2EW2GVDQGANj6xW24sauSAyeSj8jr kjg6LR43bKnTCWiInTF8SC6wVLruk9QQDPtUcQwftRql1akmdevqu3xiYLTQTzZ4JSpA GOPQ== 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:content-transfer-encoding; bh=pUNm8FbE9mgPJ18ACUFv10ogYAla06jt3nWb68IMWG0=; b=Cub+fNZx0yzZKOVNoESwaMJOtEQz2IWix7IVAtnHUxPKL5MkYWa5ANabdQ+l+dG61z BS/uw2uOv+HbPGSOmZsEkNUWnty9JYpoj9RGoV88f+KgpfRXFZqvy73I9tZDCvJb4Ay9 vLZQHgq1Woe60VnHqTArVii5+oi5Q8UBQbm2V6SuOQsT7cSSDKTUAeVNv3llmr0td92a U7iZQzYCE37OtRnsDYXvTtuapJGVYhbTCfAxXWdqHwcxDO6OCQ0SV4nFBQFLUiyUKsdi erarBrKNd6/FblBt2V7t+WM50oZi+p2QJfmbyNKxEdvpsBqV9SK6WKAmg8o2BPpLCswP AuGw== X-Gm-Message-State: APjAAAWBEoCcejkeTDzYa2tMNPErZqTkrC+VNMRFmd9h7h3FmJTtwDo8 r9kiOHT+5vpz5z1KtAmJ9hdT2uxhdXp1P7P0usraxQ== X-Received: by 2002:a25:1254:: with SMTP id 81mr69050ybs.237.1554300902929; Wed, 03 Apr 2019 07:15:02 -0700 (PDT) MIME-Version: 1.0 References: <20190403134915.6616-1-olivier.tilmans@nokia-bell-labs.com> In-Reply-To: <20190403134915.6616-1-olivier.tilmans@nokia-bell-labs.com> From: Eric Dumazet Date: Wed, 3 Apr 2019 07:14:51 -0700 Message-ID: Subject: Re: [PATCH net-next] tcp: Accept ECT on SYN in the presence of RFC8311 To: "Tilmans, Olivier (Nokia - BE/Antwerp)" Cc: Bob Briscoe , "De Schepper, Koen (Nokia - BE/Antwerp)" , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 3, 2019 at 6:49 AM Tilmans, Olivier (Nokia - BE/Antwerp) wrote: > > 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 =C2=A74.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 nit : negotiate > to have some of the benefits of using ECN on control packets. > > Signed-off-by: Olivier Tilmans > Suggested-by: Bob Briscoe > Cc: Koen De Schepper > --- LGTM, thank you. Signed-off-by: Eric Dumazet