Re: [tcpm] [Fwd: New Version Notification for draft-gomez-tcpm-ack-rate-request-02.txt]

Bob Briscoe <ietf@bobbriscoe.net> Sun, 14 March 2021 23:20 UTC

Return-Path: <ietf@bobbriscoe.net>
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 D7C553A08F4 for <tcpm@ietfa.amsl.com>; Sun, 14 Mar 2021 16:20:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.434
X-Spam-Level:
X-Spam-Status: No, score=-1.434 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, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=bobbriscoe.net
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 OdLiOutzRWgZ for <tcpm@ietfa.amsl.com>; Sun, 14 Mar 2021 16:20:23 -0700 (PDT)
Received: from mail-ssdrsserver2.hosting.co.uk (mail-ssdrsserver2.hosting.co.uk [185.185.84.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BEDDA3A08E4 for <tcpm@ietf.org>; Sun, 14 Mar 2021 16:20:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bobbriscoe.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QJfF034bd7UbpJgCuiooVSGjC0bsuSv7gpwdaTza/HU=; b=oP11Z3RdnJpj4VTzVwbdn4fy++ ebaoVrYlY4Fga9S2PgBv7dTTjPptORBv/kIssWyQUjLMOzXk+/bFeeQeUvl+bu4Qds2KR8MjMdM/7 dvAIix7ijRkRt2oouZdVOGYgzVrH/1F9C6C9fA6GmY9+djxDO672to3YJls+yzPeP/GPS8159x79p B/MGxeBi9vZp47Z+jTeVPuxMUgugJeQSp/3VXsl1BZ+H2jv53/tmIFEFn6ecMenrtIQDNwYhsaY8a o/BCdLcDt7uANQdzNV2xLxVsqJz16BvjkRLyHUvhTQQld/dEvnSI0aJe8wjxKTm5W95WGgc0zx0ek xxd+xqfg==;
Received: from 67.153.238.178.in-addr.arpa ([178.238.153.67]:34192 helo=[192.168.1.11]) by ssdrsserver2.hosting.co.uk with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from <ietf@bobbriscoe.net>) id 1lLa21-0005HW-6e; Sun, 14 Mar 2021 23:20:21 +0000
To: Carles Gomez Montenegro <carlesgo@entel.upc.edu>, tcpm@ietf.org
Cc: jon.crowcroft@cl.cam.ac.uk
References: <a7c8b301b51270e146481e65cffba6c7.squirrel@webmail.entel.upc.edu>
From: Bob Briscoe <ietf@bobbriscoe.net>
Message-ID: <e478e70d-e5bb-9089-f0b5-392038bc4c87@bobbriscoe.net>
Date: Sun, 14 Mar 2021 23:20:20 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1
MIME-Version: 1.0
In-Reply-To: <a7c8b301b51270e146481e65cffba6c7.squirrel@webmail.entel.upc.edu>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-GB
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - ssdrsserver2.hosting.co.uk
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - bobbriscoe.net
X-Get-Message-Sender-Via: ssdrsserver2.hosting.co.uk: authenticated_id: in@bobbriscoe.net
X-Authenticated-Sender: ssdrsserver2.hosting.co.uk: in@bobbriscoe.net
X-Source:
X-Source-Args:
X-Source-Dir:
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/SLOgexWfWU8UvsCxDeF6mB4p1B0>
Subject: Re: [tcpm] [Fwd: New Version Notification for draft-gomez-tcpm-ack-rate-request-02.txt]
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: Sun, 14 Mar 2021 23:20:26 -0000

Carles,

I've written a few of my review comments about 
draft-gomez-tcpm-ack-rate-request-02 in the two recent threads about 
this draft. Here are the remainder...

I think it would be useful at this stage to describe the pros and cons 
of one or two alternative encoding schemes, rather than just assert one 
scheme.

I don't believe the message can have the meaning "The receiver MUST 
modify its ACK rate to..." A TARR message can only be advisory (a 
request not an order), because the receiver might not have the resources 
to send ACKs as often as requested. Also, it would be an obvious attack 
(e.g. everyone gangs up on a server by disabling delayed ACKs and 
uploading loads of data). If the receiver does not comply it doesn't 
need to explicitly refuse the request, it just sends as frequently as it 
can in response.

==Capability negotiation==
* The description of the handshake isn't complete. It only describes the 
SYN, not the SYN-ACK.
* It occurs to me that initiating on the SYN isn't really necessary, 
because DelACKs do not start until after the SYN-ACK. Given lack of 
space on the SYN, how about saying the TARR option MUST NOT be on a SYN. 
If the server supports TARR, it includes the TARR option on the SYN-ACK, 
and it doesn't send any further TARR until it has seen a TARR option 
from the client.
if the client supports TARR, it SHOULD respond with the TARR option on 
the first ACK and the first data packet (if there is one).

If you don't like this, second-best would certainly be to aggregate with 
other options on the SYN (as in Yoshi's presentation), given option 
space on the SYN is so scarce.


The scheme should define the semantics of a TARR message from sender to 
receiver. Does it mean "for this packet only" or "from this packet 
onwards until another TARR packet"? Also, does a retransmission have to 
have the same TARR option on it as the original (I would say not)?

I notice you've stipulated that the TARR option is in the TCP header of 
a data packet. Is there any reason to preclude one on a pure ACK? 
Admttedly TARR on an ACK doesn't seem so useful, but if you do preclude 
it, code has to exist to specifically ignore TARR on a pure ACK, which 
seems to add unnecessary complexity.

I don't think the units should be "per full-sized data segment". They 
should just be "per data segment".

Security Considerations:
I'm not sure there's much point strongly recommending TLS in this doc, 
then saying it doesn't protect the TCP headers. As well as IPsec, you 
could mention the TCP Authentication Option. I think you are entitled to 
say that it is still relatively hard for an off-path attacker to hijack 
an unprotected TCP session. It would be worth recommending that RFC5961 
is used to check packet validity. And say that TARR option MUST be 
ignored on a packet that is deemed invalid.


I've briefly collected together points I've made in other threads here:
* N is redundant. There's no need to request immediate ACKs for N 
packets, when the sender can send an updated TARR request after N packets.
* Rather than make R=0 have the special meaning of ACK every packet, 
ack-ratio = 1 already means that. So just define ack-ratio = R+1
* Lower precision would be sufficient for higher ack ratios.
* With a 6-bit field, could encode R as 4-bit mantissa plus 2-bit 
exponent, in base 4 or base 16.
   o Then you'd have 2 bits spare, perhaps one for the "ignore 
reordering" flag (I) and one reserved for future use (always nice).
* With the "ignore reordering" flag (I), I think the semantics of loss 
detection would need to be redefined.

HTH



Bob

On 26/02/2021 13:22, Carles Gomez Montenegro wrote:
> Dear TCPM WG,
>
> As it can be seen below, we recently updated the TCP ACK Rate Request
> (TARR) option draft.
>
> Main changes:
>
> - There are now two formats: a shorter one to announce support of the TARR
> option, and a larger one which conveys the value of R, among others.
> The two formats can be distinguished by the "Length" field value (while
> keeping the same "Kind" value).
>
> - In the second format, the Ignore Order field is now reduced to just 1
> bit, and "R" is reduced to 7 bits. Therefore, the total format size
> decreases from 7 bytes to 6 bytes.
>
> - We added content in the security considerations section.
>
> Also, after submission of the draft, we contacted IANA to request
> allocation of ExID 0x00AC (aiming to somehow allude to "ACK") for the
> option, as it is an RFC 6994-style experimental TCP option. The ExID value
> has already been allocated:
> https://www.iana.org/assignments/tcp-parameters/tcp-parameters.xhtml#tcp-exids
>
> Comments are welcome!
>
> Thanks,
>
> Carles (on behalf of the authors)
>
>
> ---------------------------- Original Message ----------------------------
> Subject: New Version Notification for
> draft-gomez-tcpm-ack-rate-request-02.txt
> From:    internet-drafts@ietf.org
> Date:    Fri, February 19, 2021 3:30 pm
> To:      "Carles Gomez" <carlesgo@entel.upc.edu>
>           "Jon Crowcroft" <jon.crowcroft@cl.cam.ac.uk>
> --------------------------------------------------------------------------
>
>
> A new version of I-D, draft-gomez-tcpm-ack-rate-request-02.txt
> has been successfully submitted by Carles Gomez and posted to the
> IETF repository.
>
> Name:		draft-gomez-tcpm-ack-rate-request
> Revision:	02
> Title:		TCP ACK Rate Request Option
> Document date:	2021-02-19
> Group:		Individual Submission
> Pages:		8
> URL:
> https://www.ietf.org/archive/id/draft-gomez-tcpm-ack-rate-request-02.txt
> Status:
> https://datatracker.ietf.org/doc/draft-gomez-tcpm-ack-rate-request/
> Htmlized:
> https://datatracker.ietf.org/doc/html/draft-gomez-tcpm-ack-rate-request
> Htmlized:
> https://tools.ietf.org/html/draft-gomez-tcpm-ack-rate-request-02
> Diff:
> https://www.ietf.org/rfcdiff?url2=draft-gomez-tcpm-ack-rate-request-02
>
> Abstract:
>     TCP Delayed Acknowledgments (ACKs) is a widely deployed mechanism
>     that allows reducing protocol overhead in many scenarios.  However,
>     Delayed ACKs may also contribute to suboptimal performance.  When a
>     relatively large congestion window (cwnd) can be used, less frequent
>     ACKs may be desirable.  On the other hand, in relatively small cwnd
>     scenarios, eliciting an immediate ACK may avoid unnecessary delays
>     that may be incurred by the Delayed ACKs mechanism.  This document
>     specifies the TCP ACK Rate Request (TARR) option.  This option allows
>     a sender to indicate the ACK rate to be used by a receiver, and it
>     also allows to request immediate ACKs from a receiver.
>
>
>
>
> Please note that it may take a couple of minutes from the time of submission
> until the htmlized version and diff are available at tools.ietf.org.
>
> The IETF Secretariat
>
>
>
>
> _______________________________________________
> tcpm mailing list
> tcpm@ietf.org
> https://www.ietf.org/mailman/listinfo/tcpm

-- 
________________________________________________________________
Bob Briscoe                               http://bobbriscoe.net/