Re: [MMUSIC] Faster ICE by role reversal?

Justin Uberti <juberti@google.com> Thu, 06 November 2014 20:46 UTC

Return-Path: <juberti@google.com>
X-Original-To: mmusic@ietfa.amsl.com
Delivered-To: mmusic@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6F0F51A6F30 for <mmusic@ietfa.amsl.com>; Thu, 6 Nov 2014 12:46:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.672
X-Spam-Level:
X-Spam-Status: No, score=-1.672 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, MIME_8BIT_HEADER=0.3, RP_MATCHES_RCVD=-0.594, SPF_PASS=-0.001] autolearn=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 xUQQhgeDFx5H for <mmusic@ietfa.amsl.com>; Thu, 6 Nov 2014 12:46:03 -0800 (PST)
Received: from mail-ob0-x22e.google.com (mail-ob0-x22e.google.com [IPv6:2607:f8b0:4003:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3C2891A6F2D for <mmusic@ietf.org>; Thu, 6 Nov 2014 12:46:03 -0800 (PST)
Received: by mail-ob0-f174.google.com with SMTP id uz6so1519772obc.19 for <mmusic@ietf.org>; Thu, 06 Nov 2014 12:46:02 -0800 (PST)
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=7fXDkUBmuuCh3Rf9krjDZPGuVyB5g+1+CNqKVuP+FAI=; b=YWRr4Trlm7eMuHjI5TsUc2riV2GKTmJIHdyPvsJKFoJYVuXqLg/OvAo/NzMeZw1UER 8F2spalnsQCI5b+DlZXNRhEGbrdUwRfkJjsJgAAkWFQTuubVpWP5zlmE16v+ipaUuTiE TbyQCm9jhmxCza0z9u45INRP0qG2IJ4M/cQNYDjwIRbYRhWWGi2sfgJ50KbUAweQoiqF SqBds6/YbpxaF31x47IbMLpHcFJCglOYp3OSzcGDITtHLD6UjSQ+lB40lqKWhUllpjgw ZsL6Am/y6FHKM8y9CPyzlZfjNlxdbFF33uJmtfQs+jqKdWRxCAfkRfJRXeE0yeCTx2Z8 CvUw==
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=7fXDkUBmuuCh3Rf9krjDZPGuVyB5g+1+CNqKVuP+FAI=; b=LAKxwoVMCsW7/b5S5iPQBLg83NPSqWpln7W8UrZGtSSSc9X/VRvJC8nU1jaRRuDbBm Qm3gSsjsmsZxtR6CrNlOooAu8Jnl37RXHh6PV+gqm2VDCEpRgYEfXeQw/euPbU6JzAYP GiN3qxpKC/lrGvrBjBFzTnb8z2ltABZyaxH0zkKzpz6BQz0adB/USUnfzNwabOOPpN8J PmZJ5VncTIR26BbFeF1NNRYWwyZ4U7JGnrCVFenan+7x/7KIdZrSppclpPPp9U0eMfYL sgv9MYN0G72S+kOAbB+KPxQrBKOyv+i6RF3B3wgaFgsXs4ULzXCXd4iKR//zttFF+IDE 7cWQ==
X-Gm-Message-State: ALoCoQlgwGSpTBVwK9w9GJSPor0RYO0BCzjMI6O1Z77zFaSQ0ozPbV5PTjlhxCRAR31Nnzf8i/7n
X-Received: by 10.202.80.1 with SMTP id e1mr3607830oib.80.1415306762332; Thu, 06 Nov 2014 12:46:02 -0800 (PST)
MIME-Version: 1.0
Received: by 10.182.248.170 with HTTP; Thu, 6 Nov 2014 12:45:42 -0800 (PST)
In-Reply-To: <545911E9.3070300@ericsson.com>
References: <CABkgnnVrXKz-7M_Qn7pSZBxCJTdQYPDOcEzrEbbv6eYrQs1Dhg@mail.gmail.com> <67A963F0-3667-47A7-B116-4712BA1147AD@vidyo.com> <CABkgnnV+ARP5xC-z=3AshUObUX_m3uisLY6NcsgEZVq-1drU8Q@mail.gmail.com> <DD8DA86E-3C6A-44A7-B4E1-92CC0742369D@vidyo.com> <CAOJ7v-1OpbtEujbp4rZOnmOxXB2hoTfjtn5U_kR5wML5sXD_4Q@mail.gmail.com> <545911E9.3070300@ericsson.com>
From: Justin Uberti <juberti@google.com>
Date: Thu, 06 Nov 2014 12:45:42 -0800
Message-ID: <CAOJ7v-2ikhh+2Y5avJOjR=86UikOfSo169k3jSvFsU=52o3+zw@mail.gmail.com>
To: Ari Keränen <ari.keranen@ericsson.com>
Content-Type: multipart/alternative; boundary="001a113d8714d1516c050736c8fb"
Archived-At: http://mailarchive.ietf.org/arch/msg/mmusic/yC8fqQbQ7jPq5kMLnbbCddOfNjQ
Cc: Jonathan Lennox <jonathan@vidyo.com>, mmusic <mmusic@ietf.org>, Dan Wing <dwing@cisco.com>
Subject: Re: [MMUSIC] Faster ICE by role reversal?
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Multiparty Multimedia Session Control Working Group <mmusic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mmusic>, <mailto:mmusic-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/mmusic/>
List-Post: <mailto:mmusic@ietf.org>
List-Help: <mailto:mmusic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mmusic>, <mailto:mmusic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 06 Nov 2014 20:46:05 -0000

I have been noodling on two proposals here:

a) merging regular and aggressive nom
-- essentially, Jonathan's suggestion from before:
-- controlling side sends on any Valid pair, even prior to a pair being
selected
-- controlled side can send on any Valid pair (although it could use
receipt of media to align with controlling side)
-- controller confirms selection with use-candidate (same as today), which
ends concludes ICE
-- no ice-options needed (AFAICT)

b) adding a new mode, "continuous" nomination
-- ICE never concludes; controlling side is always able to change media
path dynamically
-- as a corollary, controlling side controls when remote candidates can be
freed
-- new candidates can be trickled at any time
-- controlled side uses either receipt of (secure) media to align with
controlling side, or receipt of new use-candidate checks
-- this mode requires opt-in via ice-options:continuous

I still need to look at how b) might overlap with MICE, but I'd be happy to
write either of these up or present them in Honolulu.

On Tue, Nov 4, 2014 at 9:50 AM, Ari Keränen <ari.keranen@ericsson.com>
wrote:

> All,
>
> This feature seemed to get quite a bit of support.
>
> There were also some concerns about:
>
> * DTLS implementations *may* not like the fact that Hello comes from an
> unexpected candidate (may also apply to other protocols?)
>
> * Whether (and when) the selected candidate is really firm and the others
> can be freed, media on them discarded, or an ICE library can return a
> socket that is bound to right candidate
>
> See also the threads:
> http://www.ietf.org/mail-archive/web/mmusic/current/msg13596.html
> http://www.ietf.org/mail-archive/web/mmusic/current/msg13656.html
>
> I'm planning to take this as a discussion item during the meeting, but
> before that it would be great if the proponents of the change could come up
> with a text proposal. I assume we'd need an ICE option to indicate this and
> clarify what to do with data on a candidate without USE-CANDIDATE exchange.
>
> Also, if I missed some point why this would be a bad idea, please speak
> now.
>
>
> Cheers,
> Ari
>
> On 31/07/14 02:42, Justin Uberti wrote:
>
>> On Wed, Jul 30, 2014 at 4:05 PM, Jonathan Lennox <jonathan@vidyo.com
>> <mailto:jonathan@vidyo.com>> wrote:
>>
>>
>>     On Jul 30, 2014, at 7:00 PM, Martin Thomson
>>     <martin.thomson@gmail.com <mailto:martin.thomson@gmail.com>> wrote:
>>
>>      > On 30 July 2014 15:56, Jonathan Lennox <jonathan@vidyo.com
>>     <mailto:jonathan@vidyo.com>> wrote:
>>      >> The offerer can’t send its own connectivity checks until it
>>     receives an answer, because it needs the remote ufrag and password.
>>       Without this, it doesn’t have any valid pairs, and so can’t send
>>     any media.
>>      >
>>      > Of course.  But you could do all the computation necessary for
>>      > generating the ServerHello and accompanying messages (which in
>>     TLS 1.3
>>      > is quite a bit).
>>      >
>>      >> This suggestion might still save half an RTT, though? I’d need
>>     to work through a full ladder diagram to figure it out.
>>      >
>>      > That's the idea.  I haven't plotted it all out either, but I think
>>      > that this is the fastest possible start assuming that you don't
>> send
>>      > any DTLS messages prior to getting a successful connectivity check
>>      > response.
>>
>>     Actually, if the answerer (controlled endpoint) can send on any
>>     Valid pair, as in my suggestion, I don’t think you need the ICE role
>>     reversal for this optimization.  It can send ClientHello as soon as
>>     its first check succeeds, despite never having received any remote
>>     checks (with or without USE-CANDIDATE).
>>
>> This makes a lot of sense and we should do it. Implementations not
>> expecting media before choosing a selected pair (on the controlling side
>> this time) may eat the packet, but it won't be fatal.
>>
>>
>> _______________________________________________
>> mmusic mailing list
>> mmusic@ietf.org
>> https://www.ietf.org/mailman/listinfo/mmusic
>>
>>
>