[tcpm] Vicious or Virtuous circle? Adapting reordering window to reordering degree

Bob Briscoe <ietf@bobbriscoe.net> Tue, 20 March 2018 18:21 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 03E25128D2E for <tcpm@ietfa.amsl.com>; Tue, 20 Mar 2018 11:21:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham 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 BQKjbHmD8dSl for <tcpm@ietfa.amsl.com>; Tue, 20 Mar 2018 11:21:17 -0700 (PDT)
Received: from server.dnsblock1.com (server.dnsblock1.com [85.13.236.178]) (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 02E00128896 for <tcpm@ietf.org>; Tue, 20 Mar 2018 11:21:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bobbriscoe.net; s=default; h=Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:References:Cc:To:Subject:From:Sender:Reply-To: Content-Transfer-Encoding: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=0RFIQP+sQueE0XywSIh3JjPaXL1ZBXp2TBer2OS2b4E=; b=F36mqaAsTIxuxb45eqfewmgq1 Hfio5OyWKfpjiDn9UGLX8Hy3R5LY6hdjSBVKhrfrpi/R7fBngZwQv15k7BwzJV1ZjDd/tT3GAfzrj e5fc9amjkuCairPKsZHdfizZOGSMMQKFgD0QXRpcphViL5s7EB0fM137BavPFxU30rJ8NS26vGYKX S2/o30mvsQp4g24vi2amAzy4kcJzLMfAYB1ufg5mRwZGypWMdhYXaLsagUDKd49JpPjOslglzfB9K i3X8Mdn8fGGPhbaYo5X8eF6c1gE9siGWwC905pQT4YgZzyHLXTogrBK7ja9Gq1CFbMdqHMWyGf/4Q dZr7yhu9A==;
Received: from dhcp-80b8.meeting.ietf.org ([31.133.128.184]:41332) by server.dnsblock1.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from <ietf@bobbriscoe.net>) id 1eyLso-0000Vw-4K; Tue, 20 Mar 2018 18:21:14 +0000
From: Bob Briscoe <ietf@bobbriscoe.net>
To: Yuchung Cheng <ycheng@google.com>
Cc: draft-ietf-tcpm-rack@tools.ietf.org, tcpm@ietf.org
References: <152029151070.12715.15497200993114582811@ietfa.amsl.com>
Message-ID: <c45b807e-8076-71fd-28ea-861db62c9bbd@bobbriscoe.net>
Date: Tue, 20 Mar 2018 18:21:13 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
MIME-Version: 1.0
In-Reply-To: <152029151070.12715.15497200993114582811@ietfa.amsl.com>
Content-Type: multipart/alternative; boundary="------------BF79D5BC4ADEF7F06EBC3A0E"
Content-Language: en-GB
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server.dnsblock1.com
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: server.dnsblock1.com: authenticated_id: in@bobbriscoe.net
X-Authenticated-Sender: server.dnsblock1.com: in@bobbriscoe.net
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/QOhMjHEo2kbHGInH8eFEsXbdwkA>
Subject: [tcpm] Vicious or Virtuous circle? Adapting reordering window to reordering degree
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 20 Mar 2018 18:21:20 -0000

Yuchung,

What I was trying to say at the tcpm mic just now.
This could be considered as a first draft of the text you asked me to 
write...


      The Bigger Picture

The reordering degree of a link is not a constant. It evolves (over 
years) dependent on TCP.

  *  From a link designers viewpoint, parallelizing (eg. link bonding)
    is the easiest way to get their link to go faster
      o So their main constraint on speed is reordering and there is
        huge pressure on them to relax that constraint
      o The /only/ thing that is holding them back from introducing more
        reordering is the 3 dupacks in TCP or the RTT/4 rule in RACK-02
  * It is likely RACK will become widespread
  * Given RACK-03 now adapts to the reordering window, link designers
    will introduce more reordering
  * That is GOOD (virtuous circle), but only up to a point (vicious circle).
      o We need to write down what that point is
      o We need to ensure the algorithm stops adapting at that point.

Put in IETF process terms, the draft needs to state the WG's consensus 
of what the goal of the experiment is. Otherwise:

  * we can't judge whether the experiment has succeeded.
  * we can't invent alternative algorithms to better reach the goal.


      TCP Specifics:

TCP cannot tell immediately whether a hole is reordering or loss.
It only knows in hindsight (if the hole gets filled later).

It is good (up to a point) to allow more reordering in the network, and 
repair the reordering within the receive buffer instead.
It is also good (up to a point) for TCP to be able to deem that a loss 
has occurred as quickly as possible.

However,

  * the longer the reordering window, the longer it takes to repair losses
  * the faster loss is repaired, the more spurious retransmissions

These two represent a trade-off between latency and bandwidth efficiency.

Given the reordering window could evolve to grow without bound (see 'the 
bigger picture'),...
...Where is the best trade-off point?

What assumption about the answer to this problem did you make when 
designing the algo in RACK-03?



Bob

On 05/03/18 23:11, internet-drafts@ietf.org wrote:
> A New Internet-Draft is available from the on-line Internet-Drafts directories.
> This draft is a work item of the TCP Maintenance and Minor Extensions WG of the IETF.
>
>          Title           : RACK: a time-based fast loss detection algorithm for TCP
>          Authors         : Yuchung Cheng
>                            Neal Cardwell
>                            Nandita Dukkipati
>                            Priyaranjan Jha
> 	Filename        : draft-ietf-tcpm-rack-03.txt
> 	Pages           : 25
> 	Date            : 2018-03-05
>
> Abstract:
>     This document presents a new TCP loss detection algorithm called RACK
>     ("Recent ACKnowledgment").  RACK uses the notion of time, instead of
>     packet or sequence counts, to detect losses, for modern TCP
>     implementations that can support per-packet timestamps and the
>     selective acknowledgment (SACK) option.  It is intended to replace
>     the conventional DUPACK threshold approach and its variants, as well
>     as other nonstandard approaches.
>
>
> The IETF datatracker status page for this draft is:
> https://datatracker.ietf.org/doc/draft-ietf-tcpm-rack/
>
> There are also htmlized versions available at:
> https://tools.ietf.org/html/draft-ietf-tcpm-rack-03
> https://datatracker.ietf.org/doc/html/draft-ietf-tcpm-rack-03
>
> A diff from the previous version is available at:
> https://www.ietf.org/rfcdiff?url2=draft-ietf-tcpm-rack-03
>
>
> 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.
>
> Internet-Drafts are also available by anonymous FTP at:
> ftp://ftp.ietf.org/internet-drafts/
>
> _______________________________________________
> tcpm mailing list
> tcpm@ietf.org
> https://www.ietf.org/mailman/listinfo/tcpm
>

-- 
________________________________________________________________
Bob Briscoehttp://bobbriscoe.net/