Re: [Add] questions about the Examples section of svcb-dns-02

Eric Rescorla <ekr@rtfm.com> Fri, 09 April 2021 13:16 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: add@ietfa.amsl.com
Delivered-To: add@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8748E3A20D8 for <add@ietfa.amsl.com>; Fri, 9 Apr 2021 06:16:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=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=rtfm-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 tY3Fk0o2dqRw for <add@ietfa.amsl.com>; Fri, 9 Apr 2021 06:16:00 -0700 (PDT)
Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) (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 C41D93A20D7 for <add@ietf.org>; Fri, 9 Apr 2021 06:16:00 -0700 (PDT)
Received: by mail-il1-x130.google.com with SMTP id o15so4662659ilf.11 for <add@ietf.org>; Fri, 09 Apr 2021 06:16:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TkYWfAa1k6WWcINHvlNkvM5/lKzrzw2jEptmQsl6DEg=; b=JrFfZGxh/ktPgr9GMNVyRJeFvGG7HWPbzqB/H8pwEuZhEBu99OIPdX4vpDAJFVrTaf zEdSWzjblwKRL9PeSRnoWZErYw2CK6PBIwRmGt4e+x76sbV3ZOGVocwSXVxyJuyhMiX8 5sYuMiRhAhPcOPM2ALF/QcTmuNAsI80MRVXPOblq0dQAqqR7CxvdKxg3G8jxcHqKuTCI 83G7J/SgpUfVZSu6zggyJg2QAmRbjc51kWI+aeRWSPcycDv0AzDKkzygMmSbEA26VSpW v9AO6wK+CndbsIBeGSc14jONFZVUaP2HS+SMB2Bg3yiScr+L6gp9tiuen+2SdZOp5kk3 Ge8A==
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=TkYWfAa1k6WWcINHvlNkvM5/lKzrzw2jEptmQsl6DEg=; b=ibWjMesdw4BK4bo6Z7s83ZgmYsY5L8fxYDKGZ33b6kk6GO2+CzGBdCcnfZF1+cCPLs SvJHpSmgIE9VSa/E2Jdf4QoHONU/7FpkzAoRADU1iNlfPEDcnz4u2pZBfvn9QsNRy8vG jmzC7Gn9YG/GXaw0VGSCqVWrsfTYKnujTjYOaR6hocH8j2tzq/tYIsXJwC2QTVJH0opl 96r8P+LukbJvJPG07yopkK16h9h5VRSuwKZ/YdrlnXDYdEOZSu7vVM/SmqB/lAQ4K2k7 3+RK1nrs5Ody/vjhTU6DqlX0jSvYKpMi2hrFLalC+ZCR8D542XvsasD6mJy+Gt2udlwU 9YxQ==
X-Gm-Message-State: AOAM531PBHbFLYXvQFC/0gFvl0j0ohZhCgLuKm9kF+2tMo11rNnAVcn1 uHfD6qkTqWVDRENtcrtH+eh0IerT7Nc+wBSPIwS92vE3ft97OA==
X-Google-Smtp-Source: ABdhPJyW0mMQqfNY6Do6FfqFLJ4ih2Wv8tdY4sncjNFnDG4gBUG33j4PoyhowMq7qAnhSmrQNUxfXsuLig+AlBg1IUA=
X-Received: by 2002:a05:6e02:20ef:: with SMTP id q15mr6167140ilv.167.1617974159429; Fri, 09 Apr 2021 06:15:59 -0700 (PDT)
MIME-Version: 1.0
References: <4613b8d0773d1ae5f806347bbce909fa74439886.camel@powerdns.com> <CAHbrMsCM3pwu7zYVhVzCMKB37_gSMyb6KY3je3NVYQBAwt6kNg@mail.gmail.com> <dc371c7284d3c05d07cf0a550b37f9a624d968c9.camel@powerdns.com> <ba952ca3-b6fe-be9a-8829-a926cb32e148@shaw.ca> <CAHbrMsAN0PkC-yUdWR6HhkrX-JJ3cCwvgGBJRD2EXLYRjbQVEw@mail.gmail.com> <a18e11d6a62b78c8f2b07940dd8e68acede3cac8.camel@powerdns.com>
In-Reply-To: <a18e11d6a62b78c8f2b07940dd8e68acede3cac8.camel@powerdns.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Fri, 09 Apr 2021 06:15:23 -0700
Message-ID: <CABcZeBNzULgbQfV_1wj+se5KWT5joS5c3dbLhft6SvR2SwK79w@mail.gmail.com>
To: Peter van Dijk <peter.van.dijk@powerdns.com>
Cc: ADD Mailing list <add@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000076e2305bf89f7d7"
Archived-At: <https://mailarchive.ietf.org/arch/msg/add/9cOBJhS9F_GOt6h4R0b1D4z_75g>
Subject: Re: [Add] questions about the Examples section of svcb-dns-02
X-BeenThere: add@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Applications Doing DNS <add.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/add>, <mailto:add-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/add/>
List-Post: <mailto:add@ietf.org>
List-Help: <mailto:add-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/add>, <mailto:add-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 09 Apr 2021 13:16:06 -0000

On Fri, Apr 9, 2021 at 12:37 AM Peter van Dijk <peter.van.dijk@powerdns.com>
wrote:

> Hi Ben,
>
> thank you for adding all those examples, this should unconfuse many
> readers.
>
> (I picked this email to reply to, instead of end of thread, because I'm
> typing something more inline below).
>
> On Thu, 2021-04-08 at 11:05 -0400, Ben Schwartz wrote:
> > OK, I've clarified (and corrected, oops) the explanation of the
> examples, and added another one to highlight the default-DoT behavior:
> https://github.com/bemasc/svcb-dns/commit/e59c995fa976a19b5baf1770afb231d3dcb729e1
> >
> > We can certainly remove the default ALPN, but personally I like having
> empty SvcParams correspond to a common default.  The size savings (~8
> bytes) are probably not important, although MTU could become relevant in
> the context of SVCB delegation responses as envisioned by
> draft-rescorla-dprive-adox.
>
> I think this one hits the core of the problem for me. I'm not confused
> about what -empty- SvcParams mean. I am (well, I was) confused by
> alpn=h2,h3 meaning alpn=dot,h2,h3.
>

I agree. Merging default with provided is a surprising behavior. If there
is a provided ALPN it should replace the default.

-Ekr


> So I wonder if having a default, but alpn= always *replacing* that
> default instead of appending to it, might make more sense. It certainly
> feels clearer to me.
>
> In terms of packet size, some records may spend four more bytes on
> 'dot,' because they do combine it with DoH in one SVCB record. Other
> records will spend a few bytes less on not needing no-default-alpn. I
> don't know how this balances out in the end.
>
> Kind regards,
> --
> Peter van Dijk
> PowerDNS.COM BV - https://www.powerdns.com/
>
> --
> Add mailing list
> Add@ietf.org
> https://www.ietf.org/mailman/listinfo/add
>