Re: [tsvwg] [tcpm] New Version Notification for draft-grimes-tcpm-tcpsce-00.txt

"Scheffenegger, Richard" <rs.ietf@gmx.at> Fri, 26 July 2019 13:03 UTC

Return-Path: <rs.ietf@gmx.at>
X-Original-To: tsvwg@ietfa.amsl.com
Delivered-To: tsvwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B59F61202BE for <tsvwg@ietfa.amsl.com>; Fri, 26 Jul 2019 06:03:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 (1024-bit key) header.d=gmx.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 uKbAzmdgZyWJ for <tsvwg@ietfa.amsl.com>; Fri, 26 Jul 2019 06:03:13 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (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 070FC12021D for <tsvwg@ietf.org>; Fri, 26 Jul 2019 06:03:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1564146190; bh=cYMFRuKlpPI0tYKISFXot9urJCWyQ5CpXXQ4FRi+BPk=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=ZoL0TOZQqH4j4NS5GBgOVwhXvtR/GGFyNwWITdI4lteeZsvDaaUAMW5bz0nGGqX4Y Re+J2nwUW1qYCnJ1PcWBnGafXD8vJ2vixiC0KER89doXNVqszmuj/4fCBFtvURhRPh NwLzhNKQbQxRJW0avxSGOf+pWs7YjOCaqFRNLqYs=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [172.16.18.210] ([66.171.165.154]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MRSeC-1hxU980DDE-00SgQc for <tsvwg@ietf.org>; Fri, 26 Jul 2019 15:03:10 +0200
To: tsvwg@ietf.org
References: <201907260854.x6Q8svGR027810@gndrsh.dnsmgr.net>
From: "Scheffenegger, Richard" <rs.ietf@gmx.at>
Message-ID: <46ecf9af-afb5-2d68-34e9-7d492c889920@gmx.at>
Date: Fri, 26 Jul 2019 09:03:11 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
MIME-Version: 1.0
In-Reply-To: <201907260854.x6Q8svGR027810@gndrsh.dnsmgr.net>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:KMvxJJijKircyd3nlNUJYdAdDVwdxTHlTf9D0wj+55BZ4LpKtxn GWjKPFJeEUgObMw0aRy8WEKjjS6iBIy7lVeNqwUrz9dvWEhztJ5bRkCjGNYtoPoCqJughI0 YKotm4Ch0RQ2yuY5W/HXjGx8+IOOHF5fHZ1zYr70j2DjHcmKeWCgTCEvfVZj5PIwu2xAgUc Uz//s/Po4JN0w09/cv9yw==
X-UI-Out-Filterresults: notjunk:1;V03:K0:1Q4LcuivMAs=:JdWWwO0Ob522mtftVvk4nz fGfULa1g0YC9WGOIZYOFzDZ5mtqMHkQ5NECdTGzVkmRCHxfDR1YHmBRoJUnxQcJ3qC0L3qCEp qi7ASN4P93Ox3OjoyCTOuhj+zAJppTATrLPKhSiTj7AxqtIOsi0SDuAE8/5A2USvsH1+ln/Uy ESHQykceYWTQt7kcgynTKFA6ltWKUOTPiVHTrBTfb9Xjog6uNC5iU9W4Gsjiy8DQMQiJv2/Ab eP5Z5stTBQduFLG/azMEuNchdRO82q0Z0rLYoN7xMp4cDClRxON+nqvG/GV7XquNIpJ6cyIlU qVu8UGg5DRAAzWPzecR3AreBYfRTX+jI8jQiUnT3LNFbvZIW3qKea6r05GaUf/Slrqrhv953A zFpFIhU3wRpQCt51kE0vqmIcCmPFrFKLQg6OThw/fhEVotmYR84hmdP55p0/W8PT1TlWUeGU7 c0W9pGDsNCu8pinPxZft/1QGsf2Z/tCJzxZ+dKMAaz7zdB6EaHMh5gjpexhkdOp5YM2Dwcshk 4evGYbCTyIGndwDmt29ELiY/wOGRp2KqUIccfNYdjOfDy2bGImTY11Y1aKjowFSHn+Q4e8NKS E7MpraqNgq9iwM7AQBgykae6Q0RDsZ7AcLW73sb5kMqJivm1PtO86X1mqusByY+gTlahWnBxg YZz1f7PghMUUaz+lEWsivFAOXSVTfSpYg+LENGfpke9wsyxnLuB/l2xfxP61plgqbCzxYxdIL ixPu/hBTcXsGTeHwTcktp4SBn58kWhDq0aDANKQzmdX4heu2y3DHnAyjc+baSKEgcwiWYqE6l JuAwlrNNLhvndYqizfR4BQ/ie37UV9vIQMT6RlpMwM0vRAWziPdQgDtVliTFc7505qSjnMYC1 wl9PJj8DD/5te569NyYDhIvSjFLFOQVFMdG8T6AZLAM2zJnWzbXV2KIVZ0wWNnMgwClZSTyf7 n3aFYyQQx88zkX9MSyXjg/czrsnj+3yi/wijT4qr689mfWRQ0H5UTxwom24ytl4YpXttTkH9T gcapK57qXm2/0KCsdy8Ea5L+b6rI30hbFMwoAHUwU+41ue7yXSf7hlF/4rFwlFhfpZO1DXQCz /z5fujBadVVQu0VJ3Lc+WOg7Phe40RWTMT9
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/szWhepMiWWXPSRhXYQRcYIy5aeE>
Subject: Re: [tsvwg] [tcpm] New Version Notification for draft-grimes-tcpm-tcpsce-00.txt
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tsvwg/>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Jul 2019 13:03:17 -0000

Hi,

tl;dnr: I would like to have a discussion around the architecture of SCE
first, before talking about the specific details of the signaling
scheme. Nevertheless, I try to (again, after Bob) raise some concerns
around the currently proposed scheme nevertheless.



To chime in, I would like to take a step back in this discussion and
understand the fundamental issues trying to be solved here.

I have not yet fully understood the rationale for SCE, requiring two
distinct, different CE signals.

To me, it appears that the implicit design choice of SCE was for a
router to add a "SCE" signal without any classification, if a particular
flow does actually support SCE or not.

That way, downstream routers from the SCE-enabled router can still add
additional CE information - or the SCE router can give a signal of
higher magnitude, if the endpoints ignored SCE - as would be initially
be the norm.

In comparison, the SCE signal appears to be functionally equivalent with
the CE signal in the full L4S architecture (ECN++, ECT1-marked, AccECN
feedback, separate Queues in routers) - where the end points expicitly
inform the network of this change in the semantic of the CE signal, by
virtue of an expicit signal (ECT1, or a DiffServ Codepoint, as currently
being discussed).

Effectively, in the L4S architecture, an individual CE mark carries much
less "weight" than a 3168 CE mark - but a router is explicitly informed,
which of the two "weights" a particular flow would work with.


Now, some observations around the currently proposed SCE feedback scheme:

I've read through both
https://datatracker.ietf.org/doc/draft-grimes-tcpm-tcpsce/
and
https://datatracker.ietf.org/doc/draft-heist-tsvwg-sce-one-and-two-flow-tests

Regarding the SCE signaling, my main feedback would be that the
immediate ACKing when the receiver observes a ECT1 (or a change of state
from CE to non-CE in the case of DCTCP) is brittle. It also "ossifies"
the average proportion of ACKs vs data - while offload NICs try to get
away with as few ACKs as possible (e.g. one per TSO/LRO/GRO superframe,
which may be some 10s of packets - also Ack thinning, Ack compression,
Ack loss).

Early on during AccECN, we had a signaling strategy to reflect two
codepoint-counters back for both ECT1 and CE, which was already pointed
out by Bob.

The idea was to split the 8 possible codepoints in a way to allow more
reliable feedback without a 3168-like handshake method. As CE was deemed
more important than ECT1, we had 3 codepoints assigned to the ECT1
counter (to signal a modulo 3 count of the number of received ECT1
marks) and 5 codepoints to a CE counter (modulo 5). A counter change
would be reflected by inserting the associated codepoint into the next
returned ACK. Otherwise, the two counters would be signaled
alternatively (one ACK - however many data segments apart - would have
the CE-related codepoint, the next ACK the ECT1 related codepoint). If
both counters changed in between ACKs, CE would take precedence.

During simulation of loss patterns (ack thinning), that approach showed
dramatically better capability to reliably signal both counters back,
except under the most extreme conditions. Obviously, different
assignments of the codepoints would also be possible (e.g. 4 codepoints
to CE, and 4 to ECT1; or even 3 CE, 3 ECT1, 2 ECT0...) depending on the
situation.

Again, the main benefit under steady state would be to allow some ACK
thinning or longer gaps in delayed ACKs (while also allowing some ACK
loss as well), making the feedback signal path much less brittle...

And I also want to point out, that with the current AccECN draft, the
ship has not yet sailed in the sense that we no longer can do any
alternative experiments with a different feedback schema.

The AccECN draft clearly states, that future extension is possible. On
the <SYN>, only the combinations of <0,0,0> (no-ecn), <0,1,1> (3168
ecn), and <1,1,1> (accecn) are explicitly used. A variant of the AccECN
handshake can be used, to negotiate for a different receiver-side
behavior - while a receiver conforming to the current accecn draft would
at least provide reliabe CE information.


I will look into the scenarios of SCE (which IMHO should be divorced
from a specific feedback schema - it's really an additional, less
dramatic signal from the network about congestion, than 3168 CE.

On a high level, the observation that a ramped probability marking
provides some benefits over a step-change probability matches what has
been reported before from other researchers.

Or to summarize: The step-change in marking from 0% to 100% at a
specific threshold of instantaneous queue depth, as described in DCTCP,
is not the most effective way...




Am 26.07.2019 um 04:54 schrieb Rodney W. Grimes:
> Bob,
>
> Responding to specifics of draft-grimes-tcpm-tcpsce-00.txt
> conversation in this thread as its author.
>
>> Jonathan,
>>
>> On 25/07/2019 14:53, Jonathan Morton wrote:
>>>> On 25 Jul, 2019, at 2:20 pm, Bob Briscoe <in@bobbriscoe.net> wrote:
>>>>
>>>> The idea was to have a generic wire protocol with a dumb receiver, so that the same feedback protocol could support multiple needs for feedback by different TCP congestion control algorithms.
>>>>
>>>> So a fairly inefficient re-use of the 'NS' TCP header flag for one particular experiment is very unlikely to fly, particularly when the experiment it supports doesn't satisfy all the requirements in 7560.
>>> AccECN burns the same bit to provide higher fidelity feedback of CE, without addressing our need to feed back the distinction between ECT(1) and ECT(0) at all (unless the TCP Option is used).  Since higher fidelity feedback of CE is not useful for SCE, using NS in this way is actually more efficient for us.
>> As you say, AccECN does support SCE - with the option. That was because
>> it was generally agreed that accuracy of the CE signal was paramount,
>> rather than trying to do two things with 3 bits and under-achieving for
>> both.
>
> It supports TCPSCE only in the sense that once AccECN TWH fails
> to find a L4S endpoint it does fall back to ECN as defined in
> RFC3168 which TCPSCE builds upon by reuse of the NS bit which
> was freed up by RFC8311 (to provide a feedback path for the
> higher fadelity SCE forward mark.)
>
> Further more by using this fall back position it means that
> none of the remaining AccENC TWH code points that exist today
> would need to be consumed in an attempt to negotiate this use.
>
> Given that many of the 8 code points created by doing the L4S
> TWH modifications are already consumed by L4S and that if you
> do the modified L4S handshake you gain access to all of the
> ECN TCP layer bits I feel it would be wasteful to consume that
> also limited resource for a single bit access to NS vs a possible
> future 3 bit access to (NS, ECE, CWR)
>
>>
>> We did have another scheme with 5 & 3 codepoints in the 3 bits for two
>> counters - look back over the draft history. But the WG decided
>> simplicity was also important in a CC protocol, cos lack of bugs is also
>> important.
>
> Intresting end phrase "lack of bugs is also important", I shall simply
> state that SCE and SCETCP as running code is a significantly small amount
> of code and the fact that a prototype working implementation was completed
> in ~24 man hours speaks to its simplicty and elagance of design.
>
> Though I would not qualify that as Internet deployable code, it was
> adaquate such that we could conduct experiments and debug the IP
> layer SCE marking code being implemented in a Linux versioned middle box.
>
>>>    Happily, AccECN and SCE can coexist on different flows, thanks to the fact that AccECN does have a negotiation phase which SCE can naturally reject.
>> You will find there is resistance to starting to use the NS flag after
>> having negotiated RFC3168 ECN feedback, but without any explicit
>> negotiation. You will probably be asked how a future experiment would be
>> able to use the NS flag if your experiment fails (assuming it is adopted
>> as IETF work in the first place). You are walking into a world of bit
>> scarcity.
>
> See above, we are leaving the remaining AccECN TCP TWH code points
> open for future override of NS/ACE, ECE, and CWR rather than consume
> the code points left in that TWH to consome 1 bit in what is effectely
> an unused code point in the TWH (fall back to RFC3168 ECN).
>
>
>>
>>>
>>>> For instance, I think the reason the tcpsce draft discusses multiple ways of doing the feedback is that, in the presence of pure ACK loss (which is often due to deliberate ACK thinning), none of the three solutions preserve reliable delivery of the ACK signal.
>>> In SCE, *reliable* feedback of SCE signals is not actually required, both because the control loop is naturally stable, and because RFC-3168's CE feedback *is* reliable and thus offers a safe fallback.  Of course we understand that the design constraints for L4S' feedback mechanism were different.
>> My point wasn't so much about safety, it was about about accuracy and
>> particularly biased error. The essence of low latency congestion control
>> is keeping the queue low without losing utilization, which requires
>> accuracy. If your feedback has a biased but unknown error, it's really
>> hard to accurately converging towards a target.
>
> We have found no issues in our testing thus far that would indicated
> that either of the (small) error amount or bias direction has a significant
> impact on the convergence rate or target of the closed loop system.
> Including doing a random drop of ack packet test.  I can agree that the
> higher the accuracy of this feedback the better, but the solution is robust
> as designed.  Much as you do not need super high accuracy input to
> a steering wheel to keep a car centered in its curving lane.
>
> I would not qualify this as "really hard to accurately converge",
> if it was most closed loop control loop systems would fail.  If
> on the other hand it was open loop then the accuracy would need
> to be near perfect, is that the issue your trying to raise?
>
>>
>>>
>>> Ack thinning is also something we have explicitly considered, given that Cake includes an optional ack-filter which does exactly that.  (We have, for example, added consideration of the NS bit to Cake's ack-filter, which was a trivial patch.)  Mathematically, the most extreme errors possible in either direction, due to ack thinning, are easily corrected during subsequent RTTs.
>> Exactly - if your feedback has a biased error, you will usually miss the
>> target and try again in the next round. No point continuing this
>> discussion - I'm just saying you'll need to see what happens in reality
>> when the feedback is thinned.
>
> We are aware of the ack thinning concerns, and do plan to fully evaluate
> that as a potential problem, though to date our experiments indicate it
> is minimally impacting.  There is also all the discussion going on about
> maybe ack thinning is not such a grand idea on its own merits.
>
>>>    - Jonathan Morton
>> Bob Briscoe                               http://bobbriscoe.net/