Re: [tsvwg] RDMA Support by UDP FRAG Option

Tom Herbert <tom@herbertland.com> Mon, 21 June 2021 14:34 UTC

Return-Path: <tom@herbertland.com>
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 EA4D93A07A3 for <tsvwg@ietfa.amsl.com>; Mon, 21 Jun 2021 07:34:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.004
X-Spam-Level:
X-Spam-Status: No, score=0.004 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=herbertland-com.20150623.gappssmtp.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 6yjOCfaiHQtd for <tsvwg@ietfa.amsl.com>; Mon, 21 Jun 2021 07:34:16 -0700 (PDT)
Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (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 8915F3A07A4 for <tsvwg@ietf.org>; Mon, 21 Jun 2021 07:34:16 -0700 (PDT)
Received: by mail-ed1-x531.google.com with SMTP id r7so19219794edv.12 for <tsvwg@ietf.org>; Mon, 21 Jun 2021 07:34:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=herbertland-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=LKo2AWZMIwSFjaqo0CpeUmM5SRj6roP+Je8RYopI4k8=; b=iaFFEw3ZuNx9JwvRHUxv5U1FPzJVPyZ9iQIuJJ4VPQQz4D3Ccn7NqdBq4DOohhGfDQ eq2LR9+zeStJ0o89/P+5gblR1i43Cnih/t2l5ZPMXxL7BXNfqKbM8jvdagL79vOgzHcn TSnSz4TztTZXuVlE9fZgqeRx1x90XLkINfHX2eJIhXZ5pLh7PQJ97C2EE5HBRRygq3f/ 1MpIc0AHYuscx95f4WW4rk306uX4M0IqIsFx+PKg0qgyN3WQ5ZDX1zc9lkWk8i2xVn1q 3pv96YR3DGf4iTGya4cLhdfsRFzsnpsUQjcXDz4OpuONvp9zRiEQTk4fgdqQxqRLiVUc g56g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=LKo2AWZMIwSFjaqo0CpeUmM5SRj6roP+Je8RYopI4k8=; b=KIurs+fK5J57asD0x3VSohP4O0loKRxunyTF026uzEhnThcGqtzBDnHxp/RE0JuOVE pvo4HI4+pOtWlLEouatBSOg/KJCbst3jSpUbEnpTNjV5OM0xRfD3RS8VTbUjyeFEoV18 dmEjRBIPY5IndG53z4PkjxL9EQ3xaJE2Ho6BjaoTGFBPnvpkxwmqT32p+jfgDtAt6qXM tNUsuaSwLXrqG7jvu3LHCUlGkihOy6HxUe9bea9drzXAv0D4zctq0j7Kr8vmsxsExQo/ 9YqWxesHka3hbAwayEg3D9m+B3G3oJvzABZ3C4LxtIab+wzko6KP0DSiFRQjsWQia3Ea yrzA==
X-Gm-Message-State: AOAM5301SKhU82dfflp0eDlRId8RLZkgaqBiqoj4xetzrVciZz5vJolM fJodMjgrrsc+8gD2enjTx0/QZI4f89t4As3U8b0kkA==
X-Google-Smtp-Source: ABdhPJxwj8gza8MD8zhaELMEPYUFLYAGzj4lTs8mlvMdK9eDbLdIcmg/k0oGV4ii6hyhVTAfoBixkMthICJ1ma03fvM=
X-Received: by 2002:a05:6402:26c7:: with SMTP id x7mr821339edd.383.1624286054133; Mon, 21 Jun 2021 07:34:14 -0700 (PDT)
MIME-Version: 1.0
References: <CACL_3VEyLdQZ-3hvzXxyA8ehtWs2hXESZ2OqyAx+BeSg85+-cA@mail.gmail.com> <CACL_3VFE4TjKvmkfZjvNpWo6vVfKjz5w85=Q+yqnYZKcwbYLmQ@mail.gmail.com> <63FFC34B-2179-47F1-B325-21CAC3D1543A@strayalpha.com> <CACL_3VHTfxWaBj7TFEmBXBqovrrAj7XuFEZFUag_iBHr3Hx09g@mail.gmail.com> <0EBFC9B0-591A-4860-B327-6E617B83F4D1@strayalpha.com> <CALx6S34pT81TbfQDk2vKF8wBrXL312As79K=rEzUQ3Lmg7UvpA@mail.gmail.com> <7C51D926-9DBB-41F5-93B2-10F716F672B1@strayalpha.com> <CALx6S37uN8TsXQZ3cv5jmxwxSyBRjK=-GQ_MsWxPWSs21XoGHw@mail.gmail.com> <CACL_3VEx7+VnLz7OLdXyhZU41e+-oBz3dc8JdMV_7pLMfic6=w@mail.gmail.com> <fcc8762f-c042-7999-d2e4-f28384950a19@erg.abdn.ac.uk> <CALx6S36sWGcZmFpAhF4DfOMyf6Z0w5F9bemNfeM1yWV-r0M+BA@mail.gmail.com> <8af3abf9-943f-13c1-e239-5efca27cf68c@erg.abdn.ac.uk> <CACL_3VHdyLAmzMbWsTVfJD+4tTzsMvcTzKS1B1CAdZ3k5U957g@mail.gmail.com> <CALx6S34DUrUBYd94LPPg4Hgh0FnZYZjZ4eKEYuaxb-7zbzb=pQ@mail.gmail.com> <CACL_3VEq9R=HmWXGbu_zcrgWfG0=q0z+HWM3cQ9Vh68hTCUR-w@mail.gmail.com> <CALx6S35bdGwY8FagGn8x5CaO4O3zW3U+NnB5ejC7bB6BHsXtJg@mail.gmail.com> <CACL_3VFwUJzT7uiXh33gBffboqqb51uFWJAEh290SsD0=aAzaQ@mail.gmail.com> <CALx6S34Lai=YS8i1VTC1zKHqsCTt_XUeKfwob7Qe_BA49bHC3A@mail.gmail.com> <CACL_3VFZphux8uCqh6seVgTEjyjOhCjGd-jHtdGc0fR9opKWUg@mail.gmail.com> <CALx6S34Yrph523yd0vx9EsCscwrjJY2ek6VrEj+7zCDGTLyuPA@mail.gmail.com> <48E7C759-957B-4E96-8A55-581AC40E5B28@strayalpha.com> <CALx6S36diVj2cd3JKBhvhA7xv3X5Wne9YO+v2sThX9jD-5tbEQ@mail.gmail.com> <F3DA8FA4-D335-42D2-B5F4-7DFDC866A2CA@strayalpha.com> <CALx6S35GJC_fq8wnehGSHY7WTW7YU7NA4wOSNoEGUF5w+pNx6g@mail.gmail.com> <4BA67B6B-E60F-474B-AD78-1FED2C3A58AD@strayalpha.com>
In-Reply-To: <4BA67B6B-E60F-474B-AD78-1FED2C3A58AD@strayalpha.com>
From: Tom Herbert <tom@herbertland.com>
Date: Mon, 21 Jun 2021 07:34:02 -0700
Message-ID: <CALx6S36QNH9EvFB-mSHJMokFxHUFqv=16FMbAT=y1h7oGb7JEg@mail.gmail.com>
To: Joseph Touch <touch@strayalpha.com>
Cc: Gorry Fairhurst <gorry@erg.abdn.ac.uk>, TSVWG <tsvwg@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/0fHOuBa9Y1KIndorUKYDU7T7lpU>
Subject: Re: [tsvwg] RDMA Support by UDP FRAG Option
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: Mon, 21 Jun 2021 14:34:22 -0000

On Sun, Jun 20, 2021 at 9:34 PM Joseph Touch <touch@strayalpha.com> wrote:
>
>
>
> On Jun 20, 2021, at 9:11 PM, Tom Herbert <tom@herbertland.com> wrote:
>
>
>
> On Sun, Jun 20, 2021, 8:58 PM Joseph Touch <touch@strayalpha.com> wrote:
>>
>>
>>
>> On Jun 20, 2021, at 8:43 PM, Tom Herbert <tom@herbertland.com> wrote:
>>
>>
>>
>> On Sun, Jun 20, 2021, 8:04 PM Joseph Touch <touch@strayalpha.com> wrote:
>>>
>>>
>>>
>>> On Jun 20, 2021, at 6:24 PM, Tom Herbert <tom@herbertland.com> wrote:
>>>
>>> …
>>>
>>> Length  is the length  in octets  of this user datagram  including  this
>>> header  and the data.   (This  means  the minimum value of the length is
>>> eight.)
>>>
>>>
>>> Please stop repeating any claim to the contrary, except to note an error in an existing implementation (which should be corrected, not propagated).
>>
>>
>> I am describing how real implementation actually *works*.
>>
>>
>> I do not doubt that, but you *are* propagating an error.
>
>
> That is your opinion.
>
>
> It is explicit in the text cited above.
>
>
>>
>> There is no error because the correct checksum per RFC768 can be produced.
>>
>>
>> That logic is equivalent to “we do math in base 6” because you only ever tried to add 2+2=4.
>>
>> It’s both faulty as logic and incorrect.
>
>
> No, it's not. The algorithms I described are provably correct. One's complement addition is commutative and associative so:
>
> Sum (whole_packet_from_UDP_header) = Sum(UDP_packet) + Sum(Surplus_area)
>
>
> Agreed, where the first one is “whole ***IP** packet from UDP header”. The UDP packet has a length and that’s not it.
>
> So if Sum(Surplus_area == 0)
>
>
> That is not a requirement anywhere in UDP, but note that there are two zeroes in ones complement arithmetic.
>
> then Sum (whole_packet_from_UDP_header) = Sum(UDP_packet),
>
>
> Sure. And if Sum(Surplus_area == 1, then Sum(IP payload) == Sum(UDP packet) + 1.
>
> and therefore rather an offload performs the computation over the just the UDP packet or includes the surplus area they get the same correct result.
>
>
> Said more specifically, an offload that is implemented INCORRECTLY will still work.
>
IETF standards specify behavior of protocols, they do not mandate how
protocols are implemented. An implementation that produces the
specified behavior is correct and conformant with the standard.

> Yes.
>
> Again, we already support that when OCS is included for many versions of the draft now. We don’t support it when it isn’t, but that’s only allowed when UDP CS=0. These two are coupled for reasons other than making erroneous checksum work.
>
> What’s your point?

In my opinion, the best chance for UDP options to be deployable and
successful is to require that the surplus area always sums to zero.

>
> Joe
>
>