Re: [tsvwg] RDMA Support by UDP FRAG Option
Tom Herbert <tom@herbertland.com> Mon, 21 June 2021 03:43 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 D0EA03A1F9E for <tsvwg@ietfa.amsl.com>; Sun, 20 Jun 2021 20:43:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.005
X-Spam-Level:
X-Spam-Status: No, score=0.005 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, 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 q-OcvOvxlShF for <tsvwg@ietfa.amsl.com>; Sun, 20 Jun 2021 20:43:52 -0700 (PDT)
Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (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 A8FC03A1F9B for <tsvwg@ietf.org>; Sun, 20 Jun 2021 20:43:51 -0700 (PDT)
Received: by mail-ed1-x52c.google.com with SMTP id t3so16930566edc.7 for <tsvwg@ietf.org>; Sun, 20 Jun 2021 20:43:51 -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; bh=4lW/73OcAETGBMjOAoPMAQlPkilY2fNT9qR9w1x4hbg=; b=xjC4pqjzwJHceEd1aehB9vKUotzR6M0HGIaUn+NGBHb546SxIOGWKwCNcSrNJuFGYb TD99dK4yRozwsizFjSq7mh8dEmWJAfA1acoEYhoCx+A/7OOOajvyQQsTVvlcIRH9MSbC oISWqH6+F39NQ0KnE02tuUWcAI/wSjQCCXlit/md5Ozl45Fiob0N/kQTYxbcTWeAo+8Q E6636QInH+bmFUs19yEypPwEJd0V8URuYwcbXSVZJS69l6f8VoLHvuVYeeYvUwkCy/mt eQNGjY0cCCJjmuQA8RvX6kmS++92kPwfrwaWgyiG8ke/kaeH7bn/aYMnZ91O00O95TN7 BBIg==
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; bh=4lW/73OcAETGBMjOAoPMAQlPkilY2fNT9qR9w1x4hbg=; b=GU36y3wju9k/IR9Rp0baB28KRFa8B4zfKYU3LXV+i0mVDhKjFBr3FSbzUsgMn23wjj XpZ6aNnH0MrJMfZ0cfkZE076tfQLcmEN+BDopw9NP0aDpH8ubpSdmS/ygFMdYDAvFGMf GD1lNX78ODL814bQbBiszs4inPEMGaS24S4TZIIrv7/l65AAfhjeiuRVRJ+An8oHX5zu W/Sh4E4HLyT8OVI5c+tweTdHcNcuFhGuQX4ixbFZQ5tyyiAN3JTdTN2+eWc/x2EOvf7g TDwoyuVw9FrCOC3Xd1zeWiLToMNc0mud2kr8jG4Gdp6zNycGXgAj9gR5rnbBju4TjZgE SBNA==
X-Gm-Message-State: AOAM532Uvf6Zi0FqDYjKmp5iAw1jLjRwvY20VpkDF2t22m3LQ5LoFBhd wW1Bkm3M9MldQQb4amN8grJqj9OWHWdxEZRg/PiVnw==
X-Google-Smtp-Source: ABdhPJx3alK1WNEyTYED3EQITeUfhCTNVie7N9QYTX/sGf54hciAJv3a4DllM/augKDKts54nJSlsWZAHJ+OKDf1CyQ=
X-Received: by 2002:aa7:d34a:: with SMTP id m10mr18848681edr.57.1624247028639; Sun, 20 Jun 2021 20:43:48 -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>
In-Reply-To: <48E7C759-957B-4E96-8A55-581AC40E5B28@strayalpha.com>
From: Tom Herbert <tom@herbertland.com>
Date: Sun, 20 Jun 2021 20:43:36 -0700
Message-ID: <CALx6S36diVj2cd3JKBhvhA7xv3X5Wne9YO+v2sThX9jD-5tbEQ@mail.gmail.com>
To: Joseph Touch <touch@strayalpha.com>
Cc: "C. M. Heard" <heard@pobox.com>, Gorry Fairhurst <gorry@erg.abdn.ac.uk>, TSVWG <tsvwg@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000002b7ac205c53e7b78"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/tMpT8khpJZkEeJLNq0t0zxqLNiE>
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 03:43:57 -0000
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: > > … > > > Mike, > > Please consider the simple case where the UDP checksum is set. There > are two common methods to offload the checksum: protocol agnostic and > protocol specific. In the protocol agnostic case the stack provides > the starting offset of the checksum area (offset of the UDP header) > and the offset of the checksum field to write the result (UDP > checksum)-- these values are placed in the TX descriptor for a packet. > The checksum field is primed with the pseudo header. The end of the > checksum area is the end of the packet > > > No, it is not and has never been. Again, see the text I quoted from RFCs > 768, repeated below: > > Checksum is the 16-bit one's complement of the one's complement sum of a > pseudo header of information from the IP header, the UDP header, and the > data, padded with zero octets at the end (if necessary) to make a > multiple of two octets. > > > Data, which is the UDP field. Not entire IP packet payload, as noted just > before the above paragraph: > > 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*. There is no error because the correct checksum per RFC768 can be produced. (trying to add a length of the > area in the hardware interface is a non-starter). If there is surplus > and that sums to zero then the algorithm works unchanged. If the > surplus area sums to non-zero then that requires an offsetting sum by > the host adding in the negative sum value of the surplus area into the > checksum field. The good news is that this works with any case of > checksum offload in a UDP packet including encapsulated checksums. > > > Checksums of packets that encapsulate IP/UDP as a payload would cover the > entire IP packet, not just the UDP portion. > > Checksums of IP/UDP that encapsulate other packets as a payload would > place that packet in the UDP data area, preceding the options if not > fragmented. > > If errors are corrected, we can stop trying to do cartwheels to enable > them. > > Joe >
- [tsvwg] A counterproposal to Section 5.5 of draft… C. M. Heard
- Re: [tsvwg] A counterproposal to Section 5.5 of d… Joseph Touch
- Re: [tsvwg] A counterproposal to Section 5.5 of d… C. M. Heard
- [tsvwg] RDMA Support by UDP FRAG Option C. M. Heard
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joseph Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joseph Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option C. M. Heard
- Re: [tsvwg] RDMA Support by UDP FRAG Option Gorry Fairhurst
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option Gorry Fairhurst
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joseph Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joe Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option C. M. Heard
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joe Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option C. M. Heard
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joseph Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joseph Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option C. M. Heard
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joseph Touch
- [tsvwg] incorrectly coalesce packets [was: Re: RD… Rodney W. Grimes
- Re: [tsvwg] RDMA Support by UDP FRAG Option Rodney W. Grimes
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joseph Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joseph Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option C. M. Heard
- Re: [tsvwg] incorrectly coalesce packets [was: Re… Joseph Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joseph Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joseph Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joseph Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joseph Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option C. M. Heard
- Re: [tsvwg] RDMA Support by UDP FRAG Option C. M. Heard
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option C. M. Heard
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joe Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joe Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Tom Herbert
- Re: [tsvwg] RDMA Support by UDP FRAG Option C. M. Heard
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joe Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joseph Touch
- Re: [tsvwg] RDMA Support by UDP FRAG Option C. M. Heard
- Re: [tsvwg] RDMA Support by UDP FRAG Option Joseph Touch