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

Tom Herbert <tom@herbertland.com> Mon, 15 July 2019 16:40 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 6D12A1201B3 for <tsvwg@ietfa.amsl.com>; Mon, 15 Jul 2019 09:40:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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 CYyotksruqrz for <tsvwg@ietfa.amsl.com>; Mon, 15 Jul 2019 09:39:59 -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 20BA01201AA for <tsvwg@ietf.org>; Mon, 15 Jul 2019 09:39:59 -0700 (PDT)
Received: by mail-ed1-x531.google.com with SMTP id k21so16142069edq.3 for <tsvwg@ietf.org>; Mon, 15 Jul 2019 09:39:59 -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=70pZcNoUQMiBwzZA0hIGTW2noTPmKxwdBYa1AziX/T0=; b=o0b1znjfbIkEsyotKy+Jh2QevvptmIM+Y/Mc1CyxoTdMuu8POhOYGCfOUIoXnF/4uo BUcA4UrAK+jQCTQidKBg8B4UmMSOQdjtRHpSVrNqQEKOoKrgEvsESGyJfWdU/MPYweao dBW0+jjkBph6s/b4FQVofg7N2PDT+wYmXxtNvf1wZLoQ2cPLBVmlxQCSo9DLDdscDUFz oBO+uVzmh1zDYhO/iKEvJtl/u4wmitO9z5rWW3fCJrq4H4nXvvOwsS692NuhtbVObrEX q8Ey0ZPhSJoqJm8HH0/x2/i7iJeWzBuVijniyVwU1jNl9LTHT3deUx+Eo3vXDEpjB0Qn KF6w==
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=70pZcNoUQMiBwzZA0hIGTW2noTPmKxwdBYa1AziX/T0=; b=m9JkeL5/+J0g2xylgYg0FkmPV4rqqivYDZz6LQ7uLyxLWA9/y7XOkPRc0A/xlrsYWw 9Fqz3U3S/p4f2MEDMBbe+FfKuB+aHY2INX4uowxU/Y9RqAzoiEYlczcjdlFd5DTwLRjq ex8OaN49UkLIO5OOXGywfO/FmVVLfvoclFE2XRLOpIRBLQiSHEjK5Vysh33pSiaRBQ9b YU33NQ5XHLnbQBhREj5qcjo5fQF0fzi3mbUapVoxSWNdnfDknwrzvM0r80pg06SlLNzf Mbw4ILFaKS282s9e4Z9iJ1kTzthbTv78UCC/f88cQrzbyj4HA96DcRT7D2nfTKd/dUjQ ugGg==
X-Gm-Message-State: APjAAAUU7vpBswpd0yivm/pI7zA/UCgPpkoCHfOQ1v3rTYX+TgG+Fkw6 CE55I1K+JOsEC+4NgQJPgwCeW+PE7frfjJ4XeTs=
X-Google-Smtp-Source: APXvYqyxyxg1rrmomOOttQxSObxU2/ntvfirxcA9KMk7L/4/shHV0H9dV7sEE+WJpe3aZJHLhq5CGURNfUeFNcvggBM=
X-Received: by 2002:a50:9646:: with SMTP id y64mr24316801eda.111.1563208797589; Mon, 15 Jul 2019 09:39:57 -0700 (PDT)
MIME-Version: 1.0
References: <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> <20190713182554.GB39770@clarinet.employees.org> <CALx6S36mH2M6SYnRSecWXa7k_d1u8O43+CXE-=KqeO0x2e5+qw@mail.gmail.com> <82FF6486-FABF-4D2C-B5E2-178779C720A4@strayalpha.com> <CALx6S34YhtgNNJtHazqJdsGRhiMa4PQXiSOuDz0JhqqyHWfNyA@mail.gmail.com> <757FDD92-EC4A-4AC2-B491-74B75119A951@strayalpha.com>
In-Reply-To: <757FDD92-EC4A-4AC2-B491-74B75119A951@strayalpha.com>
From: Tom Herbert <tom@herbertland.com>
Date: Mon, 15 Jul 2019 09:39:45 -0700
Message-ID: <CALx6S36XCUs-oQVBSBX_KTg5qN4fgTBrrgqZqmwBwo75J3UqUA@mail.gmail.com>
To: Joe Touch <touch@strayalpha.com>
Cc: Derek Fawcus <dfawcus+lists-tsvwg@employees.org>, 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/G9TZy8NjCayI20eWuUf_pqAo5ac>
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: Mon, 15 Jul 2019 16:40:06 -0000

On Mon, Jul 15, 2019 at 9:15 AM Joe Touch <touch@strayalpha.com> wrote:
>
>
>
> > On Jul 15, 2019, at 8:50 AM, Tom Herbert <tom@herbertland.com> wrote:
> >
> >> On Sun, Jul 14, 2019 at 8:52 AM Joe Touch <touch@strayalpha.com> wrote:
> >>
> >> So, *given* that we *are* different from UDP and TCP, i.e., we do NOT have the luxury of a fixed-offset location for this checksum
> >
> > Joe,
> >
> > There's no requirement that precludes defining a fixed header that
> > precedes the surplus space.
>
> It clearly can’t be a fixed location. Thats all I was asserting.
>
> Or do you disagree?
>
In draft-herbert-udp-space-hdr-01 the checksum is a header that
precedes the surplus space. The surplus space header is the head of
the surplus space aligned to a four byte offset (in case of UDP
Extended Header no padding is required). The location and presence of
the checksum field is deterministic.

> >> - why does the offset distance matter, i.e., front vs. end?
> >
> > Because some implementations assume that checksums are in protocol
> > headers towards the beginning of the packet. For instance, for
> > checksum offload the e1000e NIC stores offsets of checksum start and
> > checksum field in a byte. If either offset is greater than 255 then
> > the checksum can't be offloaded to the hardware.
>
> That’s a nonstarter. We cannot make that limit. Any other reason?

Well, this "nonstarter" has been in widescale deployment for many
years with proven benefits. This is just one example of how
implementations have been tuned to work on protocol headers as opposed
to protocol trailers, and it's probably not even the one with the
worst implications. There are going to be many hardware
implementations that simply can't process protocol trailers. So if
they think they need to, either they'll either drop the packet or
relegate them to some intolerably slow software path. As we've seen,
many times before, if hardware doesn't properly support a datapath
protocol in fast path the protocol is doomed (e.g. see the fate of
IPv4 options).

Tom