Re: [Doh] Alternate proposal for transport indication in draft-ietf-dnsop-dns-wireformat-http

Davey Song <songlinjian@gmail.com> Tue, 03 April 2018 09:44 UTC

Return-Path: <songlinjian@gmail.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 78C9712E856; Tue, 3 Apr 2018 02:44:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 cfID5rpzKX-N; Tue, 3 Apr 2018 02:44:57 -0700 (PDT)
Received: from mail-vk0-x22a.google.com (mail-vk0-x22a.google.com [IPv6:2607:f8b0:400c:c05::22a]) (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 78F35124B18; Tue, 3 Apr 2018 02:44:57 -0700 (PDT)
Received: by mail-vk0-x22a.google.com with SMTP id q198so9833759vke.3; Tue, 03 Apr 2018 02:44:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4vUNsCJHoZ9i1ZpQAuR5m/D2z2b7LOO3s/oNskisWyI=; b=S4nNHp5uykXyFWacWVVaRQY2Y4O/etUvPUsJgLeRmNXuVJS/3VII6fvjM8FFXPQBgn mUmt7wZsD50uc8TL36K3gLiFQSmpn+oa5bf0+mBvyw29hWGz02PMl3fpxlvuPLLyJDWC 1tYtAl42t3JXrWStSyWZ9ZQ2uaQekxneUUnSZ8O1m39GHdulM/NPaRUNguIEQ4U/fAY6 MwRAihwFyce3oYOlUfbF3fg9F3D3bBTi/392avzghSsrtf9aR1v85Kny0PU6u7vd4SbJ sdRvUQWYB+av6UkVOEenJFDIKS+YbgIutMIZchVrm9Rt8ci1BLTWZm9HirMuXbmtHL83 Coug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4vUNsCJHoZ9i1ZpQAuR5m/D2z2b7LOO3s/oNskisWyI=; b=lmQ+vaWL6PnW/rzJ01YKnTjryaYiM9F5NDk+p9pEBTZTRooSNjtp+RIF1ql6mdd7XV rJLE+mv/1bHoD7Do72Gy4cF/HzUrUVRqz6UgXbjZuFP2yJML6r845OcjE0+Uiw7dZwlg fkvJHBNmpq42+PrfteBe64cGM23gH2wRd+DEMJK8hEy7Scd9YZzmvSsTeM46h64495S5 U+nkuF/tKxytJUj85vWhiRtC7w5H7P7sqNyYY8+ba7YIijUEqAXEWAWnC5gp7YZrl0rU D8aoJJp1cbj6qoek0x8KUL76+zKTOHFXec4WWPUoVvGcVkUiGj7hYBfXOgmV1bwKVGFw 1V4A==
X-Gm-Message-State: ALQs6tCNUsi7l7NksKoHCUxzJJ2+DfLbfb3nhOX5rN6GjwgnlYDvDhM5 mYwJ9TuzOsSewC5J4CSKxhfzz3Ho3qO1mQvYlOAtig==
X-Google-Smtp-Source: AIpwx49RwBxQwvEK4I8PmVGBD0qlTwj+Nr0I66d9GFc8V3wJp/hIHl+ubgEUT7/Chut9llgYPyY06IYTybTKNhDG8hc=
X-Received: by 10.31.107.153 with SMTP id k25mr7141429vki.156.1522748696519; Tue, 03 Apr 2018 02:44:56 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.159.43.143 with HTTP; Tue, 3 Apr 2018 02:44:55 -0700 (PDT)
In-Reply-To: <CABkgnnX2jGY_JpVbqJuQdDVUyVzsuM_2CDg4nppfqQHZQm0F+w@mail.gmail.com>
References: <152168039295.5550.9572034766968749020.idtracker@ietfa.amsl.com> <CAAObRXLm3c-p9rZkn6H6tcEoh3-UT5JW06NXQ_FMyyr2NFMmyw@mail.gmail.com> <23219.33838.166003.614689@gro.dd.org> <CAAObRX+xF5SwVd3x3iXSWd-A0Kpr_ubbOJzn0yTrSk8pc+tm6Q@mail.gmail.com> <23219.56569.2064.711002@gro.dd.org> <CA+nkc8ANQh2wAr6==eNuM82mbD+E2ELzHGizdqF_sGdY-kkOqg@mail.gmail.com> <5AB3E3B7.3080607@redbarn.org> <69AA6C5D-D348-4956-8A31-FE1EC3A2042E@icann.org> <CABkgnnX2jGY_JpVbqJuQdDVUyVzsuM_2CDg4nppfqQHZQm0F+w@mail.gmail.com>
From: Davey Song <songlinjian@gmail.com>
Date: Tue, 03 Apr 2018 17:44:55 +0800
Message-ID: <CAAObRXKHhk51DxNt5uiYB0gunJ=DNde2j9FJSU=Ky2m4Q1UkhQ@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Paul Hoffman <paul.hoffman@icann.org>, dnsop <dnsop@ietf.org>, DoH WG <doh@ietf.org>
Content-Type: multipart/alternative; boundary="001a114790a22368d40568ee8f53"
Archived-At: <https://mailarchive.ietf.org/arch/msg/doh/pXpoyEjX1i7BJ6X4KVoyvqeNAbs>
Subject: Re: [Doh] Alternate proposal for transport indication in draft-ietf-dnsop-dns-wireformat-http
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, 03 Apr 2018 09:44:59 -0000

On 3 April 2018 at 15:33, Martin Thomson <martin.thomson@gmail.com> wrote:

> This is intended to do what?  Indicate where the response came from?
> Why does the client care?

To keep the proxy (API client and server) transparent and bypass the
middlebox along the path. Without the indicate, the API server has no clue
what transport the client use (or would like to use. because there maybe
cases that client would like to test TCP capablity of the far end resolver,
I don't know). If no such indicate, It is either always using UDP or TCP by
default (or by local configuration). It can be done as an choice for
software implementation, but for protocol design IMHO, a indicate should be
introduced to provide that information.


> I assume that it doesn't apply to requests,
> or that would get into draft-bellis-dnsop-xpf territory.
>
That's is the quesion whether the indicate should be carried in HTTP layer
or DNS layer. If we use HTTP as a tranparent tunnel without any
modification on upper layer message, I would prefer to use a HTTP indicate.


> BTW, you really need to drop UDP from the media type name now.
> application/dns-udpwireformat;original_transport=tcp is a bit of a
> contradiction.


I agree.  I find no harm defining a media type "application/dns-wireformat"
for DOH.

Davey