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

Tom Herbert <tom@herbertland.com> Fri, 12 July 2019 04:52 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 5A58912016B for <tsvwg@ietfa.amsl.com>; Thu, 11 Jul 2019 21:52:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.602
X-Spam-Level:
X-Spam-Status: No, score=-0.602 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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=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 pS-99lOR5M9h for <tsvwg@ietfa.amsl.com>; Thu, 11 Jul 2019 21:52:11 -0700 (PDT)
Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (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 9337A120168 for <tsvwg@ietf.org>; Thu, 11 Jul 2019 21:52:11 -0700 (PDT)
Received: by mail-ed1-x529.google.com with SMTP id k21so8010315edq.3 for <tsvwg@ietf.org>; Thu, 11 Jul 2019 21:52:11 -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=G+NFoYduPL3bZV+6Wj5fpFHIME7+vz8Xe+xWqIkV4+A=; b=SyXFCirWes/yhorgiBhPAFCiQh07m0eaNk8Y+HA5+Q7x+gAwEwXoQ8J83eDOyiy3NU wZrykB8cDKYUjiEkAgcnm7chHF1FnzDaZ56tDM1KziYi2EmziHHWy82fP2nOU0AyEVXJ mYlwJIeiVl/Qj7H6eHLgo3s0aLQHSe9p6HV8SBLOqwEgwmnuFXGLzBIYR5nPPdIt1PTD ZlhRypqLN4e/lIAQif/A+xyQlf3HQtRDGl5BbKQvmpYM0sJloHgkaVyXvkRRZbVhTmZw +7aAJrfYJU04HckqEC5m4pKg2RG/rT2RBMOTmUcD9I6Ch6NzGJx9a0QKd14y/429usLv pfcQ==
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=G+NFoYduPL3bZV+6Wj5fpFHIME7+vz8Xe+xWqIkV4+A=; b=BB1Z70mwCNuQpgckA8+JciwP+f6hGqijD9R7JZekuULFLknfaVRrxMntVkZMAbgkGC bBwgGvd3vnTwyzuNgVRQXI1ara8JuoVwXEp8i2enRjTLSMISlygqjP2CsLFZWDjDIoDg H231ut8MVq/k3e/l0ygTjKeaUFqYcLPnfbccn015aPmRliTBvKY/OabkRv7k5wMzp19h vZSS4XYhJaYP/hud/PkQvGNe3xI2wk58hLYbeiuCp3hnhGiTw61JlZxYQ2pMjVgmw2QZ cvT3pFKpnI7aQ8aQTTSd8W/YYxpH+uxWLrbonYBo/3++G8PMjlMu1Pnj5bQbUFrgRNrG D7ig==
X-Gm-Message-State: APjAAAWYniU/RV4Nhy2xbp0YESQSZPkFjVdrdGvv6VZxyJTQ1I8fjZzP GeanRr/9ZekDvs917/uJKYIN7elGFL7SF3eJGkTYsQ==
X-Google-Smtp-Source: APXvYqwVckrme1MyT1mZ1Hp7derR92y+wgVjnx+vjNWiZpwLZCZvGv/Si/8J7Na6NOiYbk21WZsL626NJU6Eh2gfZyk=
X-Received: by 2002:a50:b87c:: with SMTP id k57mr7148912ede.226.1562907129613; Thu, 11 Jul 2019 21:52:09 -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> <CAPDqMeqHHUnMCDc6FFoZ=+5EeLPiJJZ2Msqo6OS9wGFUeNH=HQ@mail.gmail.com> <23DDA223-8A4F-49B3-A564-389CE5C68B75@strayalpha.com>
In-Reply-To: <23DDA223-8A4F-49B3-A564-389CE5C68B75@strayalpha.com>
From: Tom Herbert <tom@herbertland.com>
Date: Thu, 11 Jul 2019 21:51:56 -0700
Message-ID: <CALx6S35aRWonM5XhSLwV51bLwaDHiHhC6q6CFwMB8SD3BBrpJg@mail.gmail.com>
To: Joe Touch <touch@strayalpha.com>
Cc: Tom Herbert <tom@quantonium.net>, 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/jwjlrxsifDGGEL-Pf6tWe5EScJM>
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 04:52:13 -0000

On Thu, Jul 11, 2019 at 8:49 PM Joe Touch <touch@strayalpha.com> wrote:
>
>
>
> On Jul 11, 2019, at 7:14 PM, Tom Herbert <tom@quantonium.net> wrote:
>
>> 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.
>
>
> A few questions on that:
> - Can we deal with a small amount of “cleanup” operations after the offload?
> - if so can that allow arbitrary byte start?
> - or at least16-bit instead of 32-bit alignment?
>
> Keep in mind that regardless of where we start, we shouldn’t need aligned ends, so there’s always some “cleanup” with such support anyway.
>
> I.e., why can’t we start at the 32-bit alignment and just add the rest and adjust later, rather than pad?
>
Joe,

Yes, we can do all these things. But, it's not a question of what can
be done, it's a question of what should be done. If you want to
maximize the chances of a deployable and successful protocol then the
best course of action is to follow the conventions and design patterns
previously set by successfully deployed protocols. Implementations,
both end hosts and middleboxes, have long baked in and optimized
around these conventions. For instance, we know TCP is a header not a
trailer, the multi-byte fields in the TCP header are properly aligned
including checksum, the start of the TCP options is aligned, the TCP
header length is multiple of four bytes, the checksum is in a fixed
location and not optional, etc. Implementations assume these
conventions, not just for TCP, but most IP protocols adhere to some
set of common conventions. Obviously we can't follow all conventions,
using the UDP surplus space is certainly unconventional, but the less
deviation from convention the higher probability of success in the
real world. Note that optimizing out a few bytes here and there is
immaterial as to whether the protocol will be ultimately prove
deployable-- it really isn't the highest priority issue we need to
worry about.

Tom

> Joe
>