Re: [rtcweb] IP handling: Using mDNS names for host candidates

Justin Uberti <juberti@google.com> Fri, 29 June 2018 18:10 UTC

Return-Path: <juberti@google.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 80D02130DE3 for <rtcweb@ietfa.amsl.com>; Fri, 29 Jun 2018 11:10:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.51
X-Spam-Level:
X-Spam-Status: No, score=-17.51 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 73C4ujQfz9g2 for <rtcweb@ietfa.amsl.com>; Fri, 29 Jun 2018 11:10:30 -0700 (PDT)
Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (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 61480130DF6 for <rtcweb@ietf.org>; Fri, 29 Jun 2018 11:10:30 -0700 (PDT)
Received: by mail-it0-x22b.google.com with SMTP id a195-v6so4048388itd.3 for <rtcweb@ietf.org>; Fri, 29 Jun 2018 11:10:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ScDWiLfw4Icpg+zUGGwFiLim6s1d7WD4gL+TZKSZGw8=; b=i44UIhMXFslXIAwKSjyhpKUpy1a1eRb7c25zgeElxIJIRjyZORIfOvhwE4my2jLG3b Bv5kQIj+JsWqtS4fVNcHgu8a+QcS+cX6nOJjoU2CpXu4YqpiLtQTx3rXkPFt2RlnxVqI AfPOBfJFWGl1/roHF77Dn+9oorlxqf2BPJfuwaoxpRSwiZd35RSiGIZ65/VaitgJgPXA PuPj2jzqZRjf1B6W0yFbTRRqMr2h5/C26z/5BgKkVlnwY5fQuGtWqz4t5EpkgTXtWaN+ fjcu898ut+hNQOCnOErULYhHUjAdTxGc95qx5lqJru3pX4V33ZYCL2UxbwqKBmBjpeC0 liww==
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=ScDWiLfw4Icpg+zUGGwFiLim6s1d7WD4gL+TZKSZGw8=; b=VdPQPmcH/2GVH+ncIgzQhiuA8Eo+VZcdtKL402h5PZsxZ1jFwT8P6ruD8MvkVOlOED 9EdCXOdLInBx70gi3Zam6SMezraadfhRz2RNjl6qPC/IPbWQIt+SXaZeADIisMIhYvy6 Wf6BvbEpnInHirmg3OBU5Itz3xDvN38K3Jz6BwvdLw1YitFuCDXyMSVbNZoxVRzXMmHA AZYELEMLCxcEeugyYSyQ7Vyi1sJLzZdP7aT/8aAAO14qc13d7LOAfK7bkuHJ3XElqDsM W1h3/kmjAJVQk4ge+HY76DMXqDgYhV3DdaMZgyHjjm9hUGwgj5+85sVxGCoCw0Re2O4J NIVA==
X-Gm-Message-State: APt69E3zf3WubfZaZgNSZSreqAuLAB5VG2kuvHq/7VN/TUUMqKl1s6HY O38dA7E5TIizKZo55eVUmkDgWKl4jIGsaunhSM3wCA==
X-Google-Smtp-Source: AAOMgpcOOiA4y6An/FLgUZO+mjS3eFoFbF4VT9Gybf2ExdJlUGkEz1sZlnUzY/ZHJMW/4jWqC0IYmKF6yXq0hYIxMvw=
X-Received: by 2002:a24:ce81:: with SMTP id v123-v6mr2560798itg.119.1530295829240; Fri, 29 Jun 2018 11:10:29 -0700 (PDT)
MIME-Version: 1.0
References: <CAOJ7v-2FQ3yfyfmFY8MT17nTFUvsNyixKuXXeT-Rq7zVQKBMnA@mail.gmail.com> <092e15c3-3ae8-5b18-1195-498f9cef1488@alvestrand.no> <CAOJ7v-3e8ytXd5NQLYdPyVdiSYDy4kGxQvbEh=_D9Mm0eSLmVg@mail.gmail.com> <CAPcE_Lf5kVoMzid1+Vc=mhGuH9v7nqoSq=TYJE8W9FMfcggKJA@mail.gmail.com> <CABcZeBOSyuOP6E4dreJc_OoxMTqZg-N5J9Gkbp7ygrXQbFd-XQ@mail.gmail.com>
In-Reply-To: <CABcZeBOSyuOP6E4dreJc_OoxMTqZg-N5J9Gkbp7ygrXQbFd-XQ@mail.gmail.com>
From: Justin Uberti <juberti@google.com>
Date: Fri, 29 Jun 2018 11:10:17 -0700
Message-ID: <CAOJ7v-3vZH81m9DK9CNmEH3UKTBZT+0f1=uuQdz7ou2JXxeMsA@mail.gmail.com>
To: Eric Rescorla <ekr@rtfm.com>
Cc: Matthew Kaufman <matthew@matthew.at>, RTCWeb IETF <rtcweb@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000004e39c8056fcbc344"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/EKZ2MlNKkF_PhN7BFQMt3t_KB8E>
Subject: Re: [rtcweb] IP handling: Using mDNS names for host candidates
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtcweb/>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 29 Jun 2018 18:10:34 -0000

I believe such data will be forthcoming from the Safari team. We are also
working on this.

On Fri, Jun 29, 2018 at 7:03 AM Eric Rescorla <ekr@rtfm.com> wrote:

> It seems like this is something one could A/B test and measure connection
> rates. Has someone done so?
>
> -Ekr
>
>
>
> On Fri, Jun 15, 2018 at 10:48 AM, Matthew Kaufman <matthew@matthew.at>
> wrote:
>
>> Opposed because we shouldn't waste any more time on IPv4, and IPv6 has no
>> analog that we can implement for IPv6 and then implement for IPv4 largely
>> for free.
>>
>> Matthew Kaufman
>>
>>
>> On Thu, Jun 14, 2018 at 2:32 PM Justin Uberti <juberti=
>> 40google.com@dmarc.ietf.org <40google.com@dmarc.ietf..org>> wrote:
>>
>>> On Thu, Jun 14, 2018 at 2:15 PM Harald Alvestrand <harald@alvestrand.no>
>>> wrote:
>>>
>>>> I have some worries about this proposal. It seems neat, and solves a
>>>> specific problem for a specific use case, but it's not a written-up
>>>> proposal, rather a sketch for one - and I'm afraid of devils in the
>>>> details.
>>>>
>>>> For instance:
>>>>
>>>> - If this technique is used for a computer directly connected to the
>>>> Internet, with a public IP address, it won't communicate - unless it is
>>>> only used on private addresses - because "uuid.local" doesn't resolve,
>>>> whereas a public IP address is globally reachable.
>>>
>>>
>>>> - The above means that the proposal needs a definition of "private
>>>> address". Do we mean "private" in the RFC 1918 sense? If so, which IPv6
>>>> range is covered by the proposal?
>>>>
>>>> - It will only work if the private address usage is the same scope as
>>>> mDNS resolution. On an unmanaged LAN it works, and on a network with
>>>> explicit mDNS forwarding it works. But on any other deployment, it
>>>> forces traffic to go via public IP addresses learned by STUN.
>>>>
>>>> I think this is worth adding. Perhaps as a new "mode 2m"?
>>>>
>>>> But I'd like a commitment to not adding it until we have a full
>>>> proposal.
>>>>
>>>
>>> I have sketched out the proposal in
>>> https://github.com/juberti/draughts/pull/103, which while not complete,
>>> does address most of your questions.
>>>
>>>>
>>>> Den 12. juni 2018 02:40, skrev Justin Uberti:
>>>> > The Safari team has come up with a clever approach to avoid disclosing
>>>> > private IP addresses for host candidates. As discussed in this WebKit
>>>> > bug <https://bugs.webkit.org/show_bug.cgi?id=174500>, the technique
>>>> > works as follows:
>>>> >
>>>> >  1. Register a random UUID-based mDNS name when ICE gathering starts
>>>> >  2. Replace the private IP address by a "{UUID}.local" string in each
>>>> >     host candidate (and set raddr to 0.0.0.0 for other candidates)
>>>> >  3. The other party will do mDNS resolution on any candidate having a
>>>> >     .local suffix, similar to how hostnames in candidates are handled
>>>> in
>>>> >     RFC 5245, Section 15.1.
>>>> >
>>>> > This technique is relevant to the IP handling document, as it
>>>> addresses
>>>> > one of the lesser problems (private IP disclosure) from the overall
>>>> > problem statement. While I don't think this will have a large impact
>>>> on
>>>> > the document, including the default mode selection, incorporating this
>>>> > technique would result in some moderate changes:
>>>> >
>>>> >   * Section 5.1 would mention concealing private IPs in the default
>>>> case
>>>> >     as an explicit goal.
>>>> >   * In Section 6, Mode 2 would change from handling out private IPs to
>>>> >     handing out mDNS names.
>>>> >   * This document would have to describe the technique or point to
>>>> >     another document that describes the technique. mmusic-ice-sip-sdp,
>>>> >     Section 4.1
>>>> >     <
>>>> https://tools.ietf.org/html/draft-ietf-mmusic-ice-sip-sdp-20#section-4.1
>>>> > seems
>>>> >     like a good option, as it already covers how to handle DNS names
>>>> in
>>>> >     ICE candidates.
>>>> >
>>>> > This is a significant improvement and I think we will want to
>>>> > incorporate this suggestion. Is this something we could do as part of
>>>> > this WGLC, or should we look for another option?
>>>> >
>>>> >
>>>> > _______________________________________________
>>>> > rtcweb mailing list
>>>> > rtcweb@ietf.org
>>>> > https://www.ietf.org/mailman/listinfo/rtcweb
>>>> >
>>>>
>>>> _______________________________________________
>>>> rtcweb mailing list
>>>> rtcweb@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/rtcweb
>>>>
>>> _______________________________________________
>>> rtcweb mailing list
>>> rtcweb@ietf.org
>>> https://www.ietf.org/mailman/listinfo/rtcweb
>>>
>>
>> _______________________________________________
>> rtcweb mailing list
>> rtcweb@ietf.org
>> https://www.ietf.org/mailman/listinfo/rtcweb
>>
>>
>