Re: [Doh] How to start HTTP/2?

Patrick McManus <pmcmanus@mozilla.com> Tue, 16 January 2018 15:19 UTC

Return-Path: <pmcmanus@mozilla.com>
X-Original-To: doh@ietfa.amsl.com
Delivered-To: doh@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 13FF71315AD for <doh@ietfa.amsl.com>; Tue, 16 Jan 2018 07:19:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.234
X-Spam-Level:
X-Spam-Status: No, score=-1.234 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_SOFTFAIL=0.665] autolearn=no autolearn_force=no
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 8n6FUq3VF_Y9 for <doh@ietfa.amsl.com>; Tue, 16 Jan 2018 07:18:58 -0800 (PST)
Received: from linode64.ducksong.com (linode6only.ducksong.com [IPv6:2600:3c02::f03c:91ff:fe6e:e8da]) by ietfa.amsl.com (Postfix) with ESMTP id CD4BB1315AA for <doh@ietf.org>; Tue, 16 Jan 2018 07:17:02 -0800 (PST)
Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by linode64.ducksong.com (Postfix) with ESMTPSA id 25F553A063 for <doh@ietf.org>; Tue, 16 Jan 2018 10:17:01 -0500 (EST)
Received: by mail-lf0-f48.google.com with SMTP id a204so9573711lfa.2 for <doh@ietf.org>; Tue, 16 Jan 2018 07:17:01 -0800 (PST)
X-Gm-Message-State: AKwxytd07QWWx2CLmo6aVBbDqosaGzLlRAfPiQRyVmgKuBUinQkJcvaQ 7yYt3caBa8CrG60a7bpcmGB0w144fd1SekMxSw8=
X-Google-Smtp-Source: ACJfBouGvSiBgTDZEpzofkpT++CqSzBhr/7ASNt6UbEMDfJ++glW/k2nbgWc5Bo1AkLhWEQWiX40x3i5S0P2DsIu0t8=
X-Received: by 10.25.21.22 with SMTP id l22mr6763504lfi.143.1516115819679; Tue, 16 Jan 2018 07:16:59 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.166.201 with HTTP; Tue, 16 Jan 2018 07:16:58 -0800 (PST)
In-Reply-To: <20180116150246.dvr3d3nstozqfadn@nic.fr>
References: <20180116150246.dvr3d3nstozqfadn@nic.fr>
From: Patrick McManus <pmcmanus@mozilla.com>
Date: Tue, 16 Jan 2018 10:16:58 -0500
X-Gmail-Original-Message-ID: <CAOdDvNro5v=6koTqgwCwtLKu7tfU9g6imPkj0ughu-0Sn3SA-A@mail.gmail.com>
Message-ID: <CAOdDvNro5v=6koTqgwCwtLKu7tfU9g6imPkj0ughu-0Sn3SA-A@mail.gmail.com>
To: Stephane Bortzmeyer <bortzmeyer@nic.fr>
Cc: doh@ietf.org
Content-Type: multipart/alternative; boundary="001a113fc088ded7740562e63864"
Archived-At: <https://mailarchive.ietf.org/arch/msg/doh/bQ_T58IKbGf4NeMEAmO5x6MqSC0>
Subject: Re: [Doh] How to start HTTP/2?
X-BeenThere: doh@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: DNS Over HTTPS <doh.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/doh>, <mailto:doh-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/doh/>
List-Post: <mailto:doh@ietf.org>
List-Help: <mailto:doh-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/doh>, <mailto:doh-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Jan 2018 15:19:00 -0000

On Tue, Jan 16, 2018 at 10:02 AM, Stephane Bortzmeyer <bortzmeyer@nic.fr>
wrote:

> RFC 7540 specifies several ways to start HTTP/2 over a TCP connection
> (section 3), such as upgrade from HTTP/1, or starting directly HTTP/2
> if you know the server accepts it. Which one should be used by DoH
> clients and servers? Section 7 of draft-ietf-doh-dns-over-https-02
> seems silent about it.
>
>
any valid 7540 mechanism is acceptable to DoH. however note that the
upgrade header specified by 3.2 of 7540 only applies to "http" schemed uris
and DoH requires "https" schemed uris. So as a practical matter you're
going to use ALPN with TLS though you would be allowed to use "prior
knowledge".. but if h2 is not a DoH MUST then the presence of DoH itself
doesn't constitute prior knowledge. (caching or configuration might
qualify).



> Note that this interacts with the discussion about whether HTTP/2
> support is SHOULD or MUST.
>
>
we reached consensus on that being SHOULD.. also its "h2 or its successors"
and I think that nit is important here..


> For the server:
>
> 1) accepts all RFC 7540 methods?
>

DoH doesn't constrain the server here. Indeed the server can serve more
than DoH simultaneously.


> 2) accepts only "immediately receives HTTP/2 frames"?
>
>
by which you mean ignore ALPN? That seems like a bad plan.



> For the client?
>
> 1) try all RFC 7540 methods? In which order?
> 2) try only "immediately sends HTTP/2 frames"? (If HTTP/2 support is a
> MUST, it makes sense)
>
>
again, I don't see a reason that DoH would particularly influence the
connection establishment choices.