Re: [tsvwg] draft-ietf-udp-options issues from IETF 104

Tom Herbert <tom@quantonium.net> Fri, 12 July 2019 02:15 UTC

Return-Path: <tom@quantonium.net>
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 579F512004D for <tsvwg@ietfa.amsl.com>; Thu, 11 Jul 2019 19:15:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.601
X-Spam-Level:
X-Spam-Status: No, score=-0.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, PDS_NO_HELO_DNS=1.295, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=quantonium-net.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 C0NhwVZJJHer for <tsvwg@ietfa.amsl.com>; Thu, 11 Jul 2019 19:15:01 -0700 (PDT)
Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (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 E9BD4120020 for <tsvwg@ietf.org>; Thu, 11 Jul 2019 19:15:00 -0700 (PDT)
Received: by mail-wm1-x332.google.com with SMTP id h19so8175603wme.0 for <tsvwg@ietf.org>; Thu, 11 Jul 2019 19:15:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantonium-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Hjuod6TPZycttv1eGSfIOHftfp4aybn5lH0j7OH6dZs=; b=yFi5W/rkKnakgjkZ6uBAskL8SZ3qrZkdHnSqjLlrIQofR6QnYakd+l+S6agwjUZldW 6OEQB+4ceFW0gPVVGhrMaaaCvp5QCLfetHleMQQc9moUF83iWRWre6Kip9PnC7oS8/RG L/IO63OWVMc0kLTjVBeua+F+QlW5Zi1VQ/wTTqm29kye0ypwo56UOrx3fdyFd5X0sVtJ GkOK3iRLGRhX7fBwXBcvE5pEwpu26PIHvxNPMWJ6JKW1T3MoJGhYecS0k/twemkSq/AJ eKwzNnmAIU1PuX7yZfEM5CvMuwYnT7pjX1v/izStj/rezsV6AsNDYiCEr2EQPAwgiUsm SMlA==
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=Hjuod6TPZycttv1eGSfIOHftfp4aybn5lH0j7OH6dZs=; b=I/liEjEXGu8tXQhYEzEcV1QwYF2KYuctfcq84P811KHnI3HVho5gYlRUad2Off3tAi vsqLXaVOVFTQ1Iq4YKa8ycw907JKUy/Nxud6ykWr8rJkUB3Ygi1qJh+TbPgWnfONe30P LkGa/aygA1JgvR984QPZalK+6LeOYPx5tOm6vXsfhWE9RxcuWMvX2Axiw7rXvdpltA3G 2X0GspodaJHAj5L/OR177ALgatKsuHzEhatgp+5PONRPaOwxtf5K0/zzIKr24a6jgTVS Oyi79YDv5IjC231GuP0i6X84OtKEmF8FnYa+XbTH7cbirb4rFl6NJ6kOKtIcwuDGg5Jr SCSg==
X-Gm-Message-State: APjAAAW2+7jpS8+Iy/UkUrAHRCtJNpYgUlXdB5D5Db+i6Tttw6qd8Qer S84KuQzIotrbmarHKf0VBvHdBEYHonYWCG7Cq6WlSA==
X-Google-Smtp-Source: APXvYqxv3h1bS82cq8EO2TP5crL1FSlls/lJMuBGPktdc8RpIhV7QTTPteF12vB0Twsy5NYJGpt04QHAve0cSwUCKpw=
X-Received: by 2002:a1c:1a4c:: with SMTP id a73mr6700339wma.109.1562897699248; Thu, 11 Jul 2019 19:14:59 -0700 (PDT)
MIME-Version: 1.0
References: <156262970360.865.13042807682366763561.idtracker@ietfa.amsl.com> <CAPDqMeoMqsB8=tH5TBaq5Tw-sLW3HNc8tpfUU3htV=sWo7pJcA@mail.gmail.com> <D7E52D2B-3912-4897-80C6-0150CDE10218@strayalpha.com> <CAPDqMep9MYqjFvvJSVbqYwo-xJ1pUocYszNukveaZODhf9+75A@mail.gmail.com> <e73919f08202937bf45418cbf8bcc38c@strayalpha.com> <CAPDqMeoh3n5fL1k6Fw9D8rCpy4a9eWyUZvgStyzYfFuJbuWudw@mail.gmail.com> <3f6f54e0b828e2628af964d6ee7f33e1@strayalpha.com> <CALx6S37rt7OJtH5a2ZH23R21ATETuwTeFS-mZQECtgxPQ3nSZA@mail.gmail.com> <ccc386aa429bfe301998f39eb7fccfbf@strayalpha.com> <140f11c854e0ad96c51639f830cbb688@strayalpha.com> <CALx6S35MC_fj+fL6Ax9a-9=-QX0-mHLmMQ7cUs2Rir+AvYE=zA@mail.gmail.com> <5b35e91dd510119672a0836f868ade24@strayalpha.com> <CALx6S36AVbKfvb-6dj07rcGjsVsCz0daFM9qZOBSSstZOM-Ukg@mail.gmail.com> <8A584FFF-6C86-4154-8D9D-CF407CA77145@strayalpha.com> <CAPDqMeq9GjEQKukH1pZOTdE50e_rc3U6gpdxT-5qrS5phD0RGw@mail.gmail.com> <646D45AD-D79B-4BD2-A084-7DA97CE2C415@strayalpha.com> <7EC37B50-45D5-4CF1-B113-205E55BF244E@strayalpha.com> <CALx6S34s7L7xo+26bt5Cdaqi4Es5Aci42GHk1WNKzugr5st-Gw@mail.gmail.com> <B525BF50-EFCC-44A5-A604-6CDDA914A1CB@strayalpha.com> <CAPDqMep3R6z9PRKkHyOvrh6sV9n5Sc0B++-zVz0FYJCwE6swrQ@mail.gmail.com> <E42A2AE2-F499-465E-BDE6-5EFC0AB20042@strayalpha.com> <CE03DB3D7B45C245BCA0D24327794936306138E9@MX307CL04.corp.emc.com> <CAPDqMeoyNb7vQTdqxLpZpnKb9S7QKeDJNLyQJBmq95yXhB+xfQ@mail.gmail.com> <7D365770-64FE-40BC-901D-B4D7DF6B484B@strayalpha.com>
In-Reply-To: <7D365770-64FE-40BC-901D-B4D7DF6B484B@strayalpha.com>
From: Tom Herbert <tom@quantonium.net>
Date: Thu, 11 Jul 2019 19:14:47 -0700
Message-ID: <CAPDqMeqHHUnMCDc6FFoZ=+5EeLPiJJZ2Msqo6OS9wGFUeNH=HQ@mail.gmail.com>
To: Joe Touch <touch@strayalpha.com>
Cc: "Black, David" <David.Black@dell.com>, tsvwg@ietf.org
Content-Type: multipart/alternative; boundary="0000000000002f3617058d727a94"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/IUrFYSHlA8TNsKjcu3zjCpCXGbg>
Subject: Re: [tsvwg] draft-ietf-udp-options issues from IETF 104
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, 12 Jul 2019 02:15:02 -0000

On Thu, Jul 11, 2019, 7:07 PM Joe Touch <touch@strayalpha.com> wrote:

>
>
> On Jul 11, 2019, at 2:46 PM, Tom Herbert <tom@quantonium.net> wrote:
>
> Assuming that the option checksum (OCS) issues are addressed (see above),
>> the remaining motivations for discarding UDP options and doing something
>> different appear to be:
>> - Alignment: the NOP option in UDP options covers this
>> - Protocol headers vs. protocol trailers: Something is wrong with that
>> motivation as it leads to putting OCS immediately after the UDP length,
>> i.e., before the data that it covers, whereas pipelined implementations
>> would prefer to put it at the end of the IP length, i.e., after the data
>> that it covers.
>>
>
> David,
>
> I would agree with that if we were developing the IP checksum from
> scratch, but reality is we have thirty years experience optimizing checksum
> for TCP and UDP. For instance, in TX checksum offload the device is given
> the offset to write the checksum. Since the checksum is in header, some
> implentations express the offset in a byte to save a byte in TX descriptor.
> This is one example of implementation optimizing processing for headers, I
> doubt it's the only one.
>
> Tom
>
>
> Not sure I follow here - so there are only a few variants that seem viable:
>
> 1.- at the front of the surplus space
> 2.- at the front of the surplus space after alignment NOPs
> 3.- at the end of the surplus space
> 4.- at the end of the surplus space with alignment
>
> AFAICT, there’s no real help in requiring OCS be aligned (it can be
> designed to tolerate any alignment), which means we don’t need #2 or #4.
>

#2 gives greatest probability of working with existing implementation of
checksum offload.


> So what’s preferable here? #1 or #3?
>
> Joe
>
>