Re: [tcpm] [tsvwg] Cross-area alignment on "L4S and RACK"

"Scharf, Michael" <Michael.Scharf@hs-esslingen.de> Fri, 09 November 2018 06:21 UTC

Return-Path: <Michael.Scharf@hs-esslingen.de>
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 3B8E7130DD8; Thu, 8 Nov 2018 22:21:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.989
X-Spam-Level:
X-Spam-Status: No, score=-1.989 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, T_KAM_HTML_FONT_INVALID=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=hs-esslingen.de
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 8blHcfWAX5us; Thu, 8 Nov 2018 22:21:26 -0800 (PST)
Received: from mail.hs-esslingen.de (mail.hs-esslingen.de [134.108.32.78]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1F9D1130DD1; Thu, 8 Nov 2018 22:21:26 -0800 (PST)
Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.hs-esslingen.de (Postfix) with ESMTP id 3BD4F25A17; Fri, 9 Nov 2018 07:21:24 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hs-esslingen.de; s=mail; t=1541744484; bh=gpj0gyGW6IWi9jwwN3cYKRyoRI3KV9ARLOPZwrMK49s=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=vIXIgUYk909+Kaedhfv21wPz5ayIvC2WR6Z0nKJmGjQV+51WaKUMQrufZLRF4kQK6 VNZHGp8d1zIu8c2FP1GGuL0PFStEYxx5FoQ1/RjggjEXyhrCYS7bY3v1N3S/PSrqtW 1ByW7UhjxbvE1iVysFNJtwt6JlIuoYWXqg3tMunk=
X-Virus-Scanned: by amavisd-new-2.7.1 (20120429) (Debian) at hs-esslingen.de
Received: from mail.hs-esslingen.de ([127.0.0.1]) by localhost (hs-esslingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E-d-ZuHS3XQ6; Fri, 9 Nov 2018 07:21:24 +0100 (CET)
Received: from rznt8101.rznt.rzdir.fht-esslingen.de (rznt8101.hs-esslingen.de [134.108.29.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.hs-esslingen.de (Postfix) with ESMTPS; Fri, 9 Nov 2018 07:21:24 +0100 (CET)
Received: from RZNT8114.rznt.rzdir.fht-esslingen.de ([169.254.3.25]) by rznt8101.rznt.rzdir.fht-esslingen.de ([fe80::bd73:d6a9:24d7:95f1%10]) with mapi id 14.03.0415.000; Fri, 9 Nov 2018 07:21:23 +0100
From: "Scharf, Michael" <Michael.Scharf@hs-esslingen.de>
To: Bob Briscoe <in@bobbriscoe.net>, "tcpm@ietf.org" <tcpm@ietf.org>
CC: "tsvwg@ietf.org" <tsvwg@ietf.org>
Thread-Topic: [tsvwg] Cross-area alignment on "L4S and RACK"
Thread-Index: AdR2Bb4d1a0DCDIIR0elSSOg03+wFgBS9LuAAAnyRqAAG025AAACx04Q
Date: Fri, 09 Nov 2018 06:21:23 +0000
Message-ID: <6EC6417807D9754DA64F3087E2E2E03E2D152905@rznt8114.rznt.rzdir.fht-esslingen.de>
References: <6EC6417807D9754DA64F3087E2E2E03E2D14F3F0@rznt8114.rznt.rzdir.fht-esslingen.de> <110030da-11f7-c9c2-c059-2abdf6178864@bobbriscoe.net> <6EC6417807D9754DA64F3087E2E2E03E2D15201A@rznt8114.rznt.rzdir.fht-esslingen.de> <1f7ccdda-0e0c-4241-3cfb-b4fe4cc00b47@bobbriscoe.net>
In-Reply-To: <1f7ccdda-0e0c-4241-3cfb-b4fe4cc00b47@bobbriscoe.net>
Accept-Language: de-DE, en-US
Content-Language: de-DE
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [134.108.29.249]
Content-Type: multipart/alternative; boundary="_000_6EC6417807D9754DA64F3087E2E2E03E2D152905rznt8114rzntrzd_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/iGP4-tiormBEx5yw5duw4W3IJ-M>
Subject: Re: [tcpm] [tsvwg] Cross-area alignment on "L4S and RACK"
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: Fri, 09 Nov 2018 06:21:30 -0000

I don’t see the fundamental difference between a link technology that guarantees in-order delivery within a flow (say by flow hashing, see ECMP) vs. some link scheme that guarantees in-order delivery, say, only for some fraction of the traffic characterized by some other means (say, other header bits).

Clearly, reordering is a problem that needs to be discussed in the IETF as a whole. And we could discuss whether a revision of RFC 3366 is needed.

But I am not convinced that this topic has to be tied into an experiment such as L4S.

Michael

From: Bob Briscoe [mailto:in@bobbriscoe.net]
Sent: Friday, November 9, 2018 6:42 AM
To: Scharf, Michael; tcpm@ietf.org
Cc: tsvwg@ietf.org
Subject: Re: [tsvwg] Cross-area alignment on "L4S and RACK"

Michael,

That is the point I thought you were making, and my point /is/ about that.

If an application needs all the packets (i.e. a reliable protocol), it's not useful to reduce the latency of some packets but not all. That's where the in-order requirement comes from.

However, if a stream-based transport is used (i.e. TCP) the /application/ still gets in-order delivery from TCP. It just doesn't have to require links to provide in order delivery as well.

Note that there can be multiple flows over one link. So 'in-order delivery' for a link does not mean in order of TCP sequence number. It means 'delivered in the order that packets arrived at the link' (the link ingress adds its own sequence numbers, and the link egress buffers them until it can send out in the same order, or until a time-out or max no. of link retransmissions).

So, if the link loses a packet from flow A (the link isn't aware of microflows, I'm just saying the packet happens to be from flow A), link-layer in-order delivery will hold back all packets sent after that packet (from all flows, not just flow A) until the link repairs the gap or gives up.

So hop-by-hop in-order delivery gives every flow the same delay as the worst delayed flow.

Of course, someone building a network for DETNET would avoid link technologies like WiFi or LTE that frequently lose and retransmit packets. But wherever there is variable delay in a link, guaranteed in-order delivery per-hop means every flow is guaranteed to always get the worst delay from every link, which would have been experienced by only one flow without per-hop in-order delivery.

And many of the applications of DETNET involve dumb industrial machinery that just expects everything to arrive in order and to a clocked schedule. But it's always as effective to deploy a resequencing buffer as the penultimate hop, screwed onto the receiving machine if necessary, rather than require per-hop resequencing in the network.

________________
So, why do Internet links often ensure in-order delivery even though TCP puts everything in order for the application?

Short answer: the 3 DupACK rule (which is to do with loss-recovery, a different issue from the discussion above).

Long answer: As flow rates have scaled up, the typical time between 3 packet arrivals has become so small that TCP's 3-DupACK rule makes links have to provide delivery with only a very small re-ordering degree - so small that it's easier for a link to just deliver everything in the order it received it; not because TCP doesn't put packets back in order, but just so as not to trigger TCP into generating spurious retransmissions.



Bob
On 08/11/2018 16:35, Scharf, Michael wrote:
Inline [ms]

From: Bob Briscoe [mailto:in@bobbriscoe.net]
Sent: Thursday, November 8, 2018 12:56 PM
To: Scharf, Michael; tcpm@ietf.org<mailto:tcpm@ietf.org>
Cc: tsvwg@ietf.org<mailto:tsvwg@ietf.org>
Subject: Re: [tsvwg] Cross-area alignment on "L4S and RACK"

Michael,

This is merely a symptom of a difference in opinion on where the resequencing function should be located.

  *   L4S takes the end-to-end approach saying that it is sufficient to do resequencing in one place (the receiving host) if it is needed. Then any resequencing delay only affects that flow.
  *   The DETNET approach is saying the resequencing must be done hop-by-hop. This means there appears to be no resequencing needed on the receiver (except if there's re-ordering on the final hop).


  *   In order to guarantee no resequencing in the network (DETNET approach), only the the worst case latency can be guaranteed, and every packet has to have that same worst-case latency.
  *   When you leave resequencing to the receiver (end-to-end approach), most of the packets arrive earlier than they would with DETNET, but out of order ones might not. Then the application chooses whether it wants to wait.
[ms] My point is different: There seem to be other working groups in the IETF that do talk about “low latency” as well but apparently they also do need in-order delivery of packets, too. So the assumption that e.g. a link layer technology can simply disable in-order delivery for all “low latency” applications seems not correct. The reality may be a bit more complex.
The 3 DupACK rule in TCP led the Internet not to follow the end-to-end principle on re-sequencing. Now we're removing the 3 DupACK rule, we can take advantage of the e2e principle.
[ms] For TCP, three DupACKS are a SHOULD in RFC 5681 and RFC 5681 is standards track. So the bar for “removing” that rule for TCP is not low…
[ms] Also, the end-to-end principle comes with tradeoffs. For instance, relying on the end-to-end principle for recovery of bit errors is not efficient. For in-order delivery there are tradeoffs as well, see e.g. Section 4 in draft-ietf-tcpm-rack-04. There may be no free lunch.
Of course, an application might choose to use TCP and L4S, rather than UDP and L4S (e.g QUIC). Then there could still be HoL blocking in the receiving TCP stack. But at least there's no HoL blocking in the network, and the app can choose between stream (TCP) or datagram (UDP).
[ms] If LRO/GRO in the receiving TCP stack gets messed up, I fail to see the benefit (see draft-ietf-tcpm-rack-04).
Michael


Bob
On 06/11/2018 19:20, Scharf, Michael wrote:

A comment on the TCPM presentation "L4S and RACK":



As far as I understand, the DETNET WG in RTG area has quite some uses cases for ultra-low latency transport - in particular also with bounded jitter. And some of these applications (e.g. using UDP) apparently may not be able to tolerate *any* out-of-order packet delivery.



So perhaps some cross-area alignment on ulta-low-latency application requirements would be useful?



Michael

(who recently had to review draft-ietf-detnet-architecture)








--

________________________________________________________________

Bob Briscoe                               http://bobbriscoe.net/



--

________________________________________________________________

Bob Briscoe                               http://bobbriscoe.net/