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

Tom Herbert <tom@herbertland.com> Sat, 13 July 2019 18:49 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 D3D4412017F for <tsvwg@ietfa.amsl.com>; Sat, 13 Jul 2019 11:49:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.002
X-Spam-Level:
X-Spam-Status: No, score=0.002 tagged_above=-999 required=5 tests=[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 RQjBcxUva-kL for <tsvwg@ietfa.amsl.com>; Sat, 13 Jul 2019 11:49:23 -0700 (PDT)
Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (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 07121120157 for <tsvwg@ietf.org>; Sat, 13 Jul 2019 11:49:23 -0700 (PDT)
Received: by mail-ed1-x534.google.com with SMTP id s49so11940881edb.1 for <tsvwg@ietf.org>; Sat, 13 Jul 2019 11:49:22 -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=qhOEg6CgNWW9v78EOduVj43dZtayvb2b11o8peopo9k=; b=0wUY2leK05QShyaTKjP7hoIDxp7QF588338rfleCTBR7p02VP99WH3EsXMbFXaLWRB Lf3iVyRFxB1c/aUrcXS9sSQNXiCc3Gxw0cqls2v0SKRckUT0+YFRt9hxCsLBc+pqVbHw sDCiCoZiftorXq8VntV+wXxfT6a2MOiErWQDX9zES3Ix2NzAJxkjSC7IS21yg9QqDfVv hFml5oWVQ/CboaPQfynu6nUorqUuxVtWkyOPy6GJhfnvEsRPKDG427zkR4B0Qo+SeflJ 9uhUHCiXhJ2j9aQfl2VkpIzR1dkgDhj9pNJQd5A4f+WL+Qw090jcs2v7rJoGntof+hwX GHJg==
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=qhOEg6CgNWW9v78EOduVj43dZtayvb2b11o8peopo9k=; b=PTN8pyjF5UwyUFlHl+t7hzjDhD3ebIma++HrbFoLfWKk4fbAd3Szv1FtfwDpV+d9ke 3mHzUgLOKTx2i8m8IiBG1sNGBK8sjC27w/O7Pw9BbVINPPWbwFxh1u0NdpvYJo8dHgXD 30hV/DRNJIyJv5UCXluj3+Jibsq0MCOfaV2KnQADrHeaJ1tTHzY+Oo2V38E4kduk7yH0 eRFahKp6gbQeaYbZtycOmCF+OhnQR3WvnI9juZFJqyiNupC0dQJk84wWO48FV9W9xhGH kpky89y3Q74InnG1tVEwLKHZa5Qvx2aczyS/OCG+0rllGXmUnbVDWkln/UUPgiYRhDJi v3MQ==
X-Gm-Message-State: APjAAAUY9M7IzlkL0qThFrlN2dtaR7LnKm9TW6zXIp8NC4qcMcMZAcTK 7sSHwiUeSJ31lKq0NS+7wV8bg0wu57mgWq/ryDjWFByP
X-Google-Smtp-Source: APXvYqyAHT5Yg+cHgkQAGoJSTiWwST5SINzPsneEYTTZ8H78v6PLxzs6Q8BTBzcM7pSWrB0J+bmAbZ8aHqAhCy+lSMw=
X-Received: by 2002:a50:b0e3:: with SMTP id j90mr15490587edd.26.1563043761443; Sat, 13 Jul 2019 11:49:21 -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>
In-Reply-To: <20190713182554.GB39770@clarinet.employees.org>
From: Tom Herbert <tom@herbertland.com>
Date: Sat, 13 Jul 2019 11:49:10 -0700
Message-ID: <CALx6S36mH2M6SYnRSecWXa7k_d1u8O43+CXE-=KqeO0x2e5+qw@mail.gmail.com>
To: Derek Fawcus <dfawcus+lists-tsvwg@employees.org>
Cc: 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/3Vz8BkojK7C8UTqSSjoZRi0aJeg>
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: Sat, 13 Jul 2019 18:49:25 -0000

On Sat, Jul 13, 2019 at 11:26 AM Derek Fawcus
<dfawcus+lists-tsvwg@employees.org> wrote:
>
> On Thu, Jul 11, 2019 at 07:07:39PM -0700, Joe Touch 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.
>
> Agree.  I see no need for alignment.
>
> > So what’s preferable here? #1 or #3?
>
> Not sure.
>
> I'd be inclined to pick 1, but could be convinced that 3 is better.
>
> If we're talking of h/w offload engines [*], I imagine that they could
> handle 'write to 2 bytes before end of packet' more easily than
> 'write to start of surplus'.

Derek,

It's the other way around because offload engines are primarily built
to deal TCP and UDP checksums which have always been in headers
towards beginning of the packet. Similarly, HW can optimize for
checksum being aligned since UDP and TCP checksums have always been
aligned.

>
> DF
>
> [*] How many do this with random logic?  My current impression is that
>     most such devices are programmable cores, e.g. ARM or MIPS cores.

Actually no, checksum offload is in ASICs and maybe some FPGA. NICs
are getting cores now in so called Smart-NICs, but those are more
likely to be applied towards more complex protocol parsing and
processing. CPUs in the NIC won't fundamentally improve how checksum
offload, the solutions for that are well established and understood.

If you're interested, we will be presenting a technlogy deep dive
@IETF105 that will cover a lot of topics around NIC technology:
https://datatracker.ietf.org/meeting/105/materials/agenda-105-tdd-01

Tom

>