Re: [tcpm] RACK - variable explanation

Yuchung Cheng <ycheng@google.com> Wed, 28 November 2018 16:10 UTC

Return-Path: <ycheng@google.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 02046130E93 for <tcpm@ietfa.amsl.com>; Wed, 28 Nov 2018 08:10:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -18.959
X-Spam-Level:
X-Spam-Status: No, score=-18.959 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-1.459, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 r_CcwRdeGTKU for <tcpm@ietfa.amsl.com>; Wed, 28 Nov 2018 08:10:20 -0800 (PST)
Received: from mail-it1-x12d.google.com (mail-it1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) (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 A8B4E1293FB for <tcpm@ietf.org>; Wed, 28 Nov 2018 08:10:20 -0800 (PST)
Received: by mail-it1-x12d.google.com with SMTP id o19so5153329itg.5 for <tcpm@ietf.org>; Wed, 28 Nov 2018 08:10:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9NR1CALNQuVhuKsUv9glje9O7VTKcixKBMeZvJ28fQg=; b=cm6a14BHB8TScRRGfmRCVx9654bbYhaFWLEGcjSrQkf2bH7dDaj/33flD+MUmBml7a /yeFwxmBBEiB/UNMNlrIHzuvtnAlLGiYuoQ7haeBUP/6yvvJg65FeyYAFLVFs7F/RM6E 2xUuyFBoh0Cs9SvL3ANnt9C5fonbJg8ST89VRAbl4PwdXXBUJ8/M41Z/uqz/b1hwv/kV 3p/s2RKc/toMxH3A5TxeSRSy/pV9pI7J9Y9rRAiluzPkdnjwkIPp0YxZTxoG4eZ/oraS xUM0uXw6pRgYBHAqYN2PJC/O3zyf2o72K+akvgDedXkMnQWjgD0wPobLA3Yc1EmV3r/0 FAiA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=9NR1CALNQuVhuKsUv9glje9O7VTKcixKBMeZvJ28fQg=; b=tQQXWsnsTsJKZHaspStWuMXb6RL3VFpEzQZKfLuJP+4G2XYUdjjAG8rTv3b4f30zWl tAvgPdl+NXZIavEPIST+T1XBLk2uWO8zZChuOzUjOhxkomc1p26zTp6BUo9iYZXgiugJ Vid8mAFzXS346X8ormURkVNQWQCg+UwKAXQ0NZhY1XDsDXwNtvh93s7+UESzACcd7nua zcL3DkTzjOPRXuEEOA/ex3AGeDwPA7JKXYMs3W/XX6m2ieoQgcePJvdppFFRuCmY4O3J VmUUU3oI+ElwVGULwzPYgjATGa9ZmKMODaeKuK1Z8X1w4XKF2qqRswphDIfUk0H7eahE NSdw==
X-Gm-Message-State: AA+aEWaW1Y6VSvws0motZhXgtWjYt3jySvnEGcyIh7A9051hw1RXuvzF SpdcfzLnQsqSUJRTVCu//kUN8/MXhBcUztJXECd7KA==
X-Google-Smtp-Source: AFSGD/Us1kD3N+1ImFdO0r6jhdnnt69TlEAjYHShh7BM4UQZNDjTG1YZR+G9MB2UnwAxULSfeCymJOaXTdOMw3xLiMg=
X-Received: by 2002:a24:94c9:: with SMTP id j192mr768352ite.125.1543421419668; Wed, 28 Nov 2018 08:10:19 -0800 (PST)
MIME-Version: 1.0
Received: by 2002:a6b:fe0c:0:0:0:0:0 with HTTP; Wed, 28 Nov 2018 08:09:38 -0800 (PST)
In-Reply-To: <alpine.DEB.2.20.1811281745410.5188@whs-18.cs.helsinki.fi>
References: <8d43389c-93c1-899d-37ab-808c471eed47@fh-muenster.de> <CADVnQymCDpqTxwVLv0WYZvj84msfXf7OzfHYfj=d7Uj-pCHmFQ@mail.gmail.com> <632bc671-4294-5eb3-ff8a-8c7dd492beb1@fh-muenster.de> <CADVnQymfVD5bZ-q4mdxDhPEg=R5igiueHG+3nJF8DTEKn4ngVQ@mail.gmail.com> <5f27394f-5f88-457d-5a2a-8ce4fcd80202@gmx.at> <alpine.DEB.2.20.1811281745410.5188@whs-18.cs.helsinki.fi>
From: Yuchung Cheng <ycheng@google.com>
Date: Wed, 28 Nov 2018 08:09:38 -0800
Message-ID: <CAK6E8=e9X0tBq2v6G3dPjWtGjbOhXY_-RifoanX+7P1jt-d60Q@mail.gmail.com>
To: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Cc: Richard Scheffenegger <rs.ietf@gmx.at>, Neal Cardwell <ncardwell=40google.com@dmarc.ietf.org>, "tcpm@ietf.org" <tcpm@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/qnIyHGNVyhUeAbVC2Eix98CO698>
Subject: Re: [tcpm] RACK - variable explanation
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, 28 Nov 2018 16:10:23 -0000

On Wed, Nov 28, 2018 at 7:56 AM, Ilpo Järvinen
<ilpo.jarvinen@helsinki.fi> wrote:
> On Wed, 28 Nov 2018, Richard Scheffenegger wrote:
>> Am 22.11.2018 um 17:16 schrieb Neal Cardwell:
>> > On Thu, Nov 22, 2018 at 10:28 AM Felix Weinrank <weinrank@fh-muenster.de>
>> > wrote:
>> > >
>> > > I don't completely understand the following check:
>> > >
>> > >          If RACK.reordering_seen is FALSE:
>> > >              If in loss recovery:  /* If in fast or timeout recovery */
>> > >                  RACK.reo_wnd = 0
>> > >                  Return
>> > >              Else if RACK.pkts_sacked >= RACK.dupthresh:
>> > >                  RACK.reo_wnd = 0
>> > >                  return
>> > >
>> > > The Draft says:
>> > > "RACK.pkts_sacked" returns the total number of packets selectively
>> > > acknowledged in the SACK scoreboard.
>> > >
>> > > Whats the purpose of this check: RACK.pkts_sacked >= RACK.dupthresh
>> >
>> > This is the traditional TCP Fast Retransmit heuristic, described in
>> > https://tools.ietf.org/html/rfc5681 in section 3.2, and
>> > https://tools.ietf.org/html/rfc6675 in section 5, and the older
>> > https://tools.ietf.org/html/rfc2001 in section 3.
>>
>> To be pedandic, only RFC3517 and RFC6675 would be applicable directly, as RACK
>> requires SACK support.
>>
>> Also, RFC6675 explicitly shortened the trigger condition from receiving 3
>> DupACKs down to FACK > (dupthresh - 1)*SMSS.
>
> Where does that "FACK" part come from? Not from RFC6675 for sure. The
> condition given in RFC6675 requires at least that many bytes to be
> acknowledged by SACK blocks to trigger recovery, not just sequence
> distance like FACK does.
>
>> That is, RFC6675 allows
>> entering Loss Recovery on the first ACK(SACK), without waiting for any
>> duplicate ACKs at all... Thus it is much more "aggressive", and I've seen two
>> independent examples recently, where Receivers exploit this capability (and
>> don't work well against a RFC3517 sender).
>>
>> Earlier 3517 still needed 3 duplicate ACKs.
>>
>> In that context, RACK takes a middle ground, as the receiver has to have seen
>> dupthresh data segments, but the sender can enter loss recovery already, even
>> when ACK loss, ACK compression or ACK thinning are prevalent in the return
>> path.
>>
>> (A single ACK, with an appropriate SACK block(s) is still sufficient to enter
>> LR with RACK, but unlike 6675, positive proof that 3 packets got delivered is
>> required).
>>
>> Which is a Good Thing (TM) :)
>
> RFC6675 algorithm requires a positive proof that at least 3 MSS sized
> packets were delirered. The algorithm just doesn't use dup ACK as a proxy
> for that but bases the decision on scoreboard details only. Maybe you're
> misreading the RFC6675 somehow?
This is to echo Ilpo's question that RFC6675 requires 3 OOO pkts to trigger.

>
> --
>  i.
>
> _______________________________________________
> tcpm mailing list
> tcpm@ietf.org
> https://www.ietf.org/mailman/listinfo/tcpm