Re: [Ice] Proposal for ICE "network cost"

Peter Thatcher <pthatcher@google.com> Thu, 07 April 2016 21:28 UTC

Return-Path: <pthatcher@google.com>
X-Original-To: ice@ietfa.amsl.com
Delivered-To: ice@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E600612D736 for <ice@ietfa.amsl.com>; Thu, 7 Apr 2016 14:28:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.71
X-Spam-Level:
X-Spam-Status: No, score=-2.71 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 cUGzNw5_cvq8 for <ice@ietfa.amsl.com>; Thu, 7 Apr 2016 14:28:02 -0700 (PDT)
Received: from mail-vk0-x22f.google.com (mail-vk0-x22f.google.com [IPv6:2607:f8b0:400c:c05::22f]) (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 A518B12D6FB for <ice@ietf.org>; Thu, 7 Apr 2016 14:28:00 -0700 (PDT)
Received: by mail-vk0-x22f.google.com with SMTP id k1so116139977vkb.0 for <ice@ietf.org>; Thu, 07 Apr 2016 14:28:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=PosWOuuLlkJ8qOnG9ZlH5EaPSaffg0nGoWv9xTPwd1Q=; b=KbTCbeiwaicAYy0UXZijHm6u7icZJOSpAEqyyzqbN73d2lhn3Urz1Z6EgXnyA8EfFV op9uyfiwV/te4665UBePKo3XgoLr6NpklRO7k0duEGBJpk/jn79uQkosMzWe3xNuFY+I 20q9EOrJxw5tnSCHXFViq8eaSLHdIbx75KIG3UbOn3QSayx9ATWHt/ySafqKkdXMAZb7 XLR5EuVAXmIs3PJ/K3PnThRaONqMPL1TbFA0F2llsViACM9VlU7aMGFyLpIAEBF6Gl0x pd/CzqzbDwYPTqsI1nGIMpyF9gnkiAYjcYr2aOWe5aX19lleT4nawmVkJpLhwg4JEPEX l8xg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=PosWOuuLlkJ8qOnG9ZlH5EaPSaffg0nGoWv9xTPwd1Q=; b=VkjNRGVr/+E+aRq6l1vPbdVQSR1Oy0pd0wfjQAXBo76/13zIC8ZukwaSlGLiOusoSG 0A1npWrBlBeHDJHPFCDLB4vROEjPAph25Or82t0oczVvQuGQqnt11W/MtbDxfyQywHBR UTIgC/vstNRItLw8hzCSZtBs+DnCYaQ0cljE5DPP/EP0J1xhT5R7yMkZOKc4sRz8pHVP 0p/ytNtvLDnZzd09btU6PmQ+a5qSIlEY5ukwGnJGiRqmIED518MWD3k62+iHxYJWfMDG gtgjH1y53MLUBg/zZHda+oxXj2ZDicrQ4DMOUQdJBanX13KVLh30MvUM3lW4dUBL2FBm J6Gg==
X-Gm-Message-State: AD7BkJLYtpjRi94y38VEUDPQ8GJmk0nIMpa8BCQFydlWjsmz7UjSoAcZ+FLnAKrLryxTl389E0orIF2Xx4td6tV/
X-Received: by 10.31.137.17 with SMTP id l17mr2113191vkd.98.1460064479681; Thu, 07 Apr 2016 14:27:59 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.176.67.164 with HTTP; Thu, 7 Apr 2016 14:27:20 -0700 (PDT)
In-Reply-To: <57069DE4.1070805@jitsi.org>
References: <CAJrXDUHNJm8=fzrmvJWTz9TE47GEzkiJQOKakPzdYZ_GM67FBw@mail.gmail.com> <57069DE4.1070805@jitsi.org>
From: Peter Thatcher <pthatcher@google.com>
Date: Thu, 07 Apr 2016 14:27:20 -0700
Message-ID: <CAJrXDUGE8DOVyDEi3hSxtQ-_WKZ01LEhiVaw3mCvu=xtA7qNbA@mail.gmail.com>
To: Emil Ivov <emcho@jitsi.org>
Content-Type: multipart/alternative; boundary="001a114510fea965c2052febc0c6"
Archived-At: <http://mailarchive.ietf.org/arch/msg/ice/w2WJRmV8sY3cYmgzb2AXQKaxMKg>
Cc: ice@ietf.org
Subject: Re: [Ice] Proposal for ICE "network cost"
X-BeenThere: ice@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Interactive Connectivity Establishment \(ICE\)" <ice.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ice>, <mailto:ice-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ice/>
List-Post: <mailto:ice@ietf.org>
List-Help: <mailto:ice-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ice>, <mailto:ice-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Apr 2016 21:28:05 -0000

On Thu, Apr 7, 2016 at 10:50 AM, Emil Ivov <emcho@jitsi.org> wrote:

> On 21.03.16 г. 19:07, Peter Thatcher wrote:
>
>> As an author (not a chair), I just submitted a draft for an idea I'd
>> like to propose for ICE: network cost.
>>
>> Here's the draft:
>>
>> https://datatracker.ietf.org/doc/draft-thatcher-ice-network-cost/
>>
>>
>> The idea is basically to allow the controlled side to tell the
>> controlling side which candidates "cost" more than others (such as
>> cellular costing more than Wi-Fi).  This is different than candidate
>> priority for reasons explained in the draft.
>>
>
> I see the value here but I have a few problems with the current state.
>
> To begin with, I find the "cost" name overly confusing. I realize the
> draft already says this is not necessarily real cost but it still leaves
> people with the wrong impression (and I've confirmed this in conversations
> these days). So let's just go for bias or something (I also like fondness).
>

​There are two question here:  the name and the direction.  The choice of
direction is more important than the name.  I prefer the direction where 0
means "free/use-freely" and a big number means
"expensive/restrained/last-resort".  This is because if we ever expand the
range, I think it would be better in the direction of "I really don't want
to use this" rather than "this is even more free to use".  You'll note that
this direction is the opposite of fondness/preference/priority.

In other words, I think modeling this as "badness' is better than as
"goodness".

So if we're going to debate names, let's debate synonyms of "badness".  The
best I could come up with is cost.  But I'd love to hear good synonyms.​
​


>
> The draft is not currently very explicit about exactly how this works in
> the selection of candidates but I assume it basically means: "if it's all
> the same to you, I'd much rather you get in touch with me here than there."
>
>
Close.  0 means "use this freely".  A small number means "I'd rather not
use this".  A large number means "Only use this if nothing else works".​
​



> The trickiest part here is how to assign importance to this new bias as
> opposed to existing metrics such as RTT for example. We could say it's up
> to implementations or try to come up with some recommendation for a formula.
>

​That's exactly what I think we should do: standardized how information is
conveyed from controlled to controlling, but then let the controlling side
decided how to select and nominate.​
​



> The other thing is that I cannot at all see the value of the network ID.
> Why is this necessary?


​Technically, I could make it a separate draft, but the kind of go well
together (they both fit in one nice STUN attribute, for example).

The value of network ID is the following:  if the remote side's network
interface changes, it's wise to notify your bandwidth estimator, because
the change may have been drastic (wifi to 2g).  ​ It could change either by
TURN mobility, or by continual gathering, or by the use of backup candidate
pairs (I realized the last two are not yet standardized).



>
>
> Emil
>
> --
> https://jitsi.org
>