Re: [rtcweb] Default candidate pool size

Justin Uberti <juberti@google.com> Sun, 18 May 2014 17:55 UTC

Return-Path: <juberti@google.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E8E011A027D for <rtcweb@ietfa.amsl.com>; Sun, 18 May 2014 10:55:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.029
X-Spam-Level:
X-Spam-Status: No, score=-2.029 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.651, SPF_PASS=-0.001] autolearn=ham
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 6RNBB5ERaUHm for <rtcweb@ietfa.amsl.com>; Sun, 18 May 2014 10:55:19 -0700 (PDT)
Received: from mail-ve0-x22f.google.com (mail-ve0-x22f.google.com [IPv6:2607:f8b0:400c:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 447151A01B1 for <rtcweb@ietf.org>; Sun, 18 May 2014 10:55:19 -0700 (PDT)
Received: by mail-ve0-f175.google.com with SMTP id jw12so5440485veb.34 for <rtcweb@ietf.org>; Sun, 18 May 2014 10:55:19 -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:content-type; bh=rpNh1VqoGDuKWnOwdirhSGMNAl8pvCy3Eq5YMMuHclc=; b=oCrxteOxHxoY+3kFB8HKRP4RGE1u1xYetVmmUUnh83Ek/GDlNiCNI++vSVRASij2sQ mMb8Nnbc8iDHjB7q/CbaKoP52FpZcJxM8M50wKto+F0UfwSQFvuMTEf6P6r6kSbNTVhI P6l91bc3DAT8b/vlaMj8bRTkhWQ62JyFIVj6CiBlWRs8QbLy6ufSE7ejZOzt7YpcNVhK nSfyJ4ZCCEJPSnBNQfV9OKwfcZzos9I1x0SrZ8h0l0lRolAQuxfNkI1X0rLNGI+Vl3ZS zz9Xyvo0TfVmUGV5+mfl32Y8RaWxN+1k+6r+f/cm2CVOz2dR1TTUSC9x7TtUmicHXbEn gHXw==
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:content-type; bh=rpNh1VqoGDuKWnOwdirhSGMNAl8pvCy3Eq5YMMuHclc=; b=Lqro9I240nHNSHX8mipm4LDLvurLNaaik6Ee3zytxi4NUt98YDIyboCpv5M7BxM2xz lsL0+aFEW/8FD3qCsLSenISYegqE1OjFfCBxbzS3IziC5A4oZQpyMYs8JjwZWvmj441e 6dU5yRtScSrZ5jYdy4yEowrE9GvI9I/+x89Dy2yJZve+qWvcKFqblAXNeE/eK1DvzTTz pKaLOrWvWnugqlR+d2JnBlDml+DDdyTY9vvJ8uKaOB8hsSSvV1TQAr1YU2nghhgwew9D Z/WoFMUgTuveIHYw9X6tdxZcsxd0SdRxUeybJPn6GcpQYkztC9VrVuEFrBymQ7CY2UYe Cs3A==
X-Gm-Message-State: ALoCoQlJcZB0EqvApuN5OiE3JIWZgWIut1stfX0IGGEycDPzqD0fZtkWUPl4rpGCq7NaRRYiTV9k
X-Received: by 10.52.241.98 with SMTP id wh2mr8334363vdc.37.1400435718914; Sun, 18 May 2014 10:55:18 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.145.105 with HTTP; Sun, 18 May 2014 10:54:58 -0700 (PDT)
In-Reply-To: <CABcZeBNdAKOCDmB0XDaUu4qWx=nMJomgm2tR7TYZ2A0wheFm2Q@mail.gmail.com>
References: <CABcZeBNdd9Ze1G3ZOpGHVKsGKBdhEAOzg4qt7XKnX75dhQyTkA@mail.gmail.com> <CABkgnnVjJTnTypBqL-YLMPwo0_RSdkMLgQvD+L03jwyt_ffDqQ@mail.gmail.com> <FFCA477F-653D-46FF-93CE-4338EA856C5C@iii.ca> <CABcZeBMS5x-wW24PAOOCMG8nM2Ac1fvi_y2XOekmgAeQHL056A@mail.gmail.com> <8C8E3AB0-F3B6-4413-BD01-05D117FF598F@iii.ca> <CAOJ7v-3PwfOiLNtrguNru+L+Aun2Qw7giRx23dobu8eh5NDVDw@mail.gmail.com> <CABcZeBOpn4UzhwQrLEL7iMoNr7HuXhvkA3=W-nZBkfAUo5Z-iQ@mail.gmail.com> <CAOJ7v-0U9bbujV4_S3ekPDt0UiN=F=JAe4t1LSOP=Fb07TK5GQ@mail.gmail.com> <CABcZeBNdAKOCDmB0XDaUu4qWx=nMJomgm2tR7TYZ2A0wheFm2Q@mail.gmail.com>
From: Justin Uberti <juberti@google.com>
Date: Sun, 18 May 2014 10:54:58 -0700
Message-ID: <CAOJ7v-2wKU4AU07BJvhTs6ok8GknGkY2oAuwyOhsJvdwk3r4hQ@mail.gmail.com>
To: Eric Rescorla <ekr@rtfm.com>
Content-Type: multipart/alternative; boundary="001a1133b7308ea48504f9b059be"
Archived-At: http://mailarchive.ietf.org/arch/msg/rtcweb/qyQpYE3f2aZW5nG_sbbuBUHelBA
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>, "public-webrtc@w3.org" <public-webrtc@w3.org>
Subject: Re: [rtcweb] Default candidate pool size
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Sun, 18 May 2014 17:55:22 -0000

It should have absolutely no impact on which candidates are used, given
that the ICE agent is cranking away on its own and any preferences
expressed here (or even in onicecandidate) will suffer from races.

IOW, we should ignore the candidate list supplied completely, unless we
want to just ensure that we haven't been given garbage, in which case we
can check for that and error out.


On Sun, May 18, 2014 at 10:38 AM, Eric Rescorla <ekr@rtfm.com> wrote:

>
>
>
> On Sun, May 18, 2014 at 10:15 AM, Justin Uberti <juberti@google.com>wrote:
>
>> That would be my preference as well. Due to timing, it shouldn't be an
>> error to pass in a local desc that has *fewer* candidates than the ICE
>> agent knows about,
>>
>
> However, i would prefer it doesn't have any impact on which
> candidates are used, since nothing makes you do setLocalDescription()
> with any ICE candidates. If we need some way to refuse an ice candidate
> (which I don't think we do) it should be in onicecandidate.
>
> -Ekr
>
>
>
>
>>  but you should never be able to pass in more.
>>
>>
>> On Sun, May 18, 2014 at 10:11 AM, Eric Rescorla <ekr@rtfm.com> wrote:
>>
>>>
>>>
>>>
>>> On Sun, May 18, 2014 at 10:05 AM, Justin Uberti <juberti@google.com>wrote:
>>>
>>>> Sounds good to me. As to the default, I'm fine with leaving it
>>>> unspecified.
>>>>
>>>> Regarding the email from Kiran:
>>>> - onicecandidate never fires until after setLocalDescription is called,
>>>> regardless of candidate pooling. Candidate pooling just causes any pooled
>>>> candidates to be emitted immediately once setLocalDescription is called.
>>>> - candidates specified in setLocalDescription are ignored. We could
>>>> make it an error to pass in candidates that the browser hasn't given to
>>>> you, but that doesn't seem super critical.
>>>>
>>>
>>> This seems like it's coupled to the more general question of how
>>> we behave when someone passes in stuff in SetLocal that doesn't
>>> correspond to stuff we allow you to change in the SDP. My general
>>> preference would be an error in all such cases, but I could be talked
>>> out of that.
>>>
>>> -Ekr
>>>
>>>
>>>> On Sun, May 18, 2014 at 9:56 AM, Cullen Jennings <fluffy@iii.ca> wrote:
>>>>
>>>>>
>>>>> how about just adding the pool size to RTCConfiguration ?
>>>>>
>>>>> On May 18, 2014, at 9:26 AM, Eric Rescorla <ekr@rtfm.com> wrote:
>>>>>
>>>>> > As far as I know, this has been agreed on, but the W3C spec has
>>>>> > never been updated to reflect it.
>>>>> >
>>>>> > -Ekr
>>>>> >
>>>>> >
>>>>> >
>>>>> > On Sat, May 17, 2014 at 11:04 AM, Cullen Jennings <fluffy@iii.ca>
>>>>> wrote:
>>>>> >
>>>>> > I think the JS app needs a way to say what it needs in the way of
>>>>> pool size.
>>>>> >
>>>>> >
>>>>> > On May 12, 2014, at 12:15 PM, Martin Thomson <
>>>>> martin.thomson@gmail.com> wrote:
>>>>> >
>>>>> > > On 11 May 2014 17:18, Eric Rescorla <ekr@rtfm.com> wrote:
>>>>> > >>
>>>>> > >> My personal opinion is that candidate pooling is useful here and
>>>>> we
>>>>> > >> should probably leave the default in the hands of the browser. I
>>>>> > >> could live with 0 however.
>>>>> > >
>>>>> > > I tend to agree.  The selection of a default seems like a good
>>>>> > > opportunity for browsers to optimize.  For instance, a mobile
>>>>> device
>>>>> > > might choose to defer gathering until it knows that it needs them;
>>>>> > > whereas a device with a good source of power might prefer the
>>>>> latency
>>>>> > > benefits associated with early gathering.  No point in us
>>>>> specifying
>>>>> > > this.
>>>>> > >
>>>>> > > _______________________________________________
>>>>> > > 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
>>>>>
>>>>
>>>>
>>>
>>
>