Re: [tcpm] Possible error in accurate-ecn

Yoshifumi Nishida <nsd.ietf@gmail.com> Wed, 11 November 2020 09:37 UTC

Return-Path: <nsd.ietf@gmail.com>
X-Original-To: tcpm@ietfa.amsl.com
Delivered-To: tcpm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 818C43A0FE2 for <tcpm@ietfa.amsl.com>; Wed, 11 Nov 2020 01:37:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VAKQSNDQJR_C for <tcpm@ietfa.amsl.com>; Wed, 11 Nov 2020 01:37:40 -0800 (PST)
Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0E3A43A0DC4 for <tcpm@ietf.org>; Wed, 11 Nov 2020 01:37:40 -0800 (PST)
Received: by mail-qk1-x731.google.com with SMTP id v143so1096722qkb.2 for <tcpm@ietf.org>; Wed, 11 Nov 2020 01:37:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZybdvdgbiNSNk5n4j78yCN4HNaQfetsRYsn45xT4w4o=; b=OWIZNgOy4IjCBnVqnj0+vLLqMcpx8XDdz/4O6vK1V403YYcyNMmgVeUl2ZXMKEgxTv CZbxKtk/2+Ky3F2u7jCQavvKYQI8S3Y8mr00zD9FKUraYiLjwADHXm6HcjmcduT/zkCa HQF8O8C64WXkS9t93pdVhft5RO2gmwwOm7lS4P2jFWioi8OimQWH3Kw0vfvFLpsFKwL1 +az2+wFEOyTQQyiAgi0NEyXDN4zEiXj/gGPSBL7Ou2DWAOA00Q0ydTiGNlIvxz0+a6JQ X4/b/fGQ+hMsuUpydLVMEQhORbgnHuH+G0qU4adIPWSBZlDyKRKGdscD6pYLC3OWLT3O czlA==
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=ZybdvdgbiNSNk5n4j78yCN4HNaQfetsRYsn45xT4w4o=; b=PsEM4t4JLuLNIPadOQaLdgzumNgEURdNSYf0LTBfxROQXYMZOw1/oO7ssDFSwwtaQA kWGRkvdGR51BWhf0g255kok+jmEaUJt+ALVtdVFdDpjfCq5vvtd3Ljk5RTW5GhQg2aUL 06epJwSZShPTpV0xQ8PzapGaUWUsTJUhLdNVnF7t4IIh3OcnBDBgWL7MgdAfXuPrnQ+L 6CKWY56wACgx9GxB7qdQkZuEsRs8YuIUbzHnQQFbTsJ7HTYAVXzYHARq9PX5cPHulgzf Fv/Sbz7gIB/aLnt/kKXT2eVXg3cuAR+f0/gzjC9+LI3b5AW/ecv7/3SuDXMiop7fU+nu tQ2A==
X-Gm-Message-State: AOAM531/L9bDSLfNMhNM4lob5SartyFhPO+IhKJ/JnMnD51DeSaWYOfF bhb4hBa3TsPoVqnsMhO4r7BZHnYlBAOlPI3L8RM=
X-Google-Smtp-Source: ABdhPJxDdReUvhgSMnqP8dsjEDUU9zDQm8BjAvH7VnfCq2YLLTxfAdIZmhu/af1a1NSNXoS+8i1+wC7MBcToL0WkRrA=
X-Received: by 2002:a05:620a:11a4:: with SMTP id c4mr14569637qkk.8.1605087458986; Wed, 11 Nov 2020 01:37:38 -0800 (PST)
MIME-Version: 1.0
References: <47df9b8b-515e-d40d-3473-599b0a3e3876@bobbriscoe.net> <6031BE2B-4D33-426F-BA17-DDF15CF821DE@kuehlewind.net>
In-Reply-To: <6031BE2B-4D33-426F-BA17-DDF15CF821DE@kuehlewind.net>
From: Yoshifumi Nishida <nsd.ietf@gmail.com>
Date: Wed, 11 Nov 2020 01:37:27 -0800
Message-ID: <CAAK044SDbJHGYrzyv4ipMojEdxPEH4Rnr0AKpGC-n141SuRBYg@mail.gmail.com>
To: Mirja Kuehlewind <ietf@kuehlewind.net>
Cc: Bob Briscoe <research@bobbriscoe.net>, tcpm IETF list <tcpm@ietf.org>, Richard Scheffenegger <rscheff@gmx.at>
Content-Type: multipart/alternative; boundary="000000000000d38e5a05b3d18bbf"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/RcPEuhEglRWFs-G9l7iZD4mqsBA>
Subject: Re: [tcpm] Possible error in accurate-ecn
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: TCP Maintenance and Minor Extensions Working Group <tcpm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpm>, <mailto:tcpm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpm/>
List-Post: <mailto:tcpm@ietf.org>
List-Help: <mailto:tcpm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Nov 2020 09:37:42 -0000

On Tue, Nov 10, 2020 at 2:08 AM Mirja Kuehlewind <ietf@kuehlewind.net>
wrote:

> Hi Bob,
>
> Please see below.
>
> > On 10. Nov 2020, at 01:31, Bob Briscoe <research@bobbriscoe.net> wrote:
> >
> > Mirja, Richard, Ilpo, tcpm list,
> >
> > I've just been reading through the accurate-ecn draft to double-check. I
> think there's a problem with the following text...
> >
> > 3.2.2.5.1.  Data Receiver Safety Procedures
> >
> >    An AccECN Data Receiver:
> >
> >    o  SHOULD immediately send an ACK whenever a data packet marked CE
> >       arrives after the previous [data] packet was not CE.
> >
> >    o  MUST immediately send an ACK once 'n' CE marks have arrived since
> >       the previous ACK, where 'n' SHOULD be 2 and MUST be no greater
> >       than 6.
> >
> > ...
> >    For the avoidance of doubt, the change-triggered ACK mechanism is
> >    deliberately worded to solely apply to data packets, and to ignore
> >    the arrival of a control packet with no payload, because it is
> >    important that TCP does not acknowledge pure ACKs.
> >
> >
> > In the first bullet, I think it doesn't matter whether the previous
> packet marked CE was a data packet or a pure ACK (i.e we should remove the
> second occurrence of 'data' that I have put in [square brackets].
>
> I believe it does matter. If the previous packet was a pure ACK and was CE
> marked, you didn’t send an ACK and so you should immediately send one now.
> If the previous packet was a data packet and CE marked, you don’t need to
> send an immediate ACK because you already did this with the previous
> packet. However, it text might be a but ambiguous because what is meant is
> “if the previous packet was a data packet and CE marked”. So this does not
> apply if we e.g. have a CE-marked data packets, then a pure ACK that is not
> CE marked, and then another CE-marked data packet.
>
> >
> > The second bullet doesn't consider the possibility that the 'n'th  CE
> mark might arrive on a pure ACK. Then, the wording as it stands says the
> Data Receiver MUST immediately ACK a pure ACK. I know TCP never ACKs a pure
> ACK, but I'm not actually sure it does any harm to do so in this case (it
> cannot cause an infinite loop of ACKs). However, given it would be
> unorthodox, we maybe ought to rule it out by rewording anyway?
>

even though it won't cause an infinite loop, can they be dup acks? If so,
it doesn't look good to me especially when early retransmit is activated.


> I think we also can leave this as it is because if that ’n’ packet is a
> pure ACK that still means that you have unacked data packets with CE marks
> and you should trigger an ACK for those packet now (rather than waiting for
> the delayed ACK timer to expire). However this case is less important. Also
> we should probably make sure that this doesn’t apply if there are only pure
> ACKs with CE marks, maybe by add “if unacknowledged data are outstanding”
> or something.
>
>
"can send a pure ack on a pure ack when the ack value advances"?
--
Yoshi