Re: [Ice] Re-nomination and candidate pair switching in RFC 5245bis - PROPOSAL

Christer Holmberg <christer.holmberg@ericsson.com> Thu, 27 July 2017 17:04 UTC

Return-Path: <christer.holmberg@ericsson.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 F0DCF131F6A for <ice@ietfa.amsl.com>; Thu, 27 Jul 2017 10:04:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.219
X-Spam-Level:
X-Spam-Status: No, score=-4.219 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=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 9NI-HNOfvqsR for <ice@ietfa.amsl.com>; Thu, 27 Jul 2017 10:04:29 -0700 (PDT)
Received: from sessmg23.ericsson.net (sessmg23.ericsson.net [193.180.251.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D1A30131CFD for <ice@ietf.org>; Thu, 27 Jul 2017 10:04:28 -0700 (PDT)
X-AuditID: c1b4fb2d-c3b2c9c000005f66-40-597a1d1aab24
Received: from ESESSHC001.ericsson.se (Unknown_Domain [153.88.183.21]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id F7.B3.24422.A1D1A795; Thu, 27 Jul 2017 19:04:27 +0200 (CEST)
Received: from ESESSMB109.ericsson.se ([169.254.9.91]) by ESESSHC001.ericsson.se ([153.88.183.21]) with mapi id 14.03.0352.000; Thu, 27 Jul 2017 19:04:21 +0200
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: Bernard Aboba <bernard.aboba@gmail.com>
CC: "ice@ietf.org" <ice@ietf.org>
Thread-Topic: [Ice] Re-nomination and candidate pair switching in RFC 5245bis - PROPOSAL
Thread-Index: AdMGx5vayPULxOekRUuarjHzPdbbFQABnY0AAAbjQYA=
Date: Thu, 27 Jul 2017 17:04:21 +0000
Message-ID: <42F0C434-DF91-4F43-93F2-57AD6B18E492@ericsson.com>
References: <7594FB04B1934943A5C02806D1A2204B4CC9ED94@ESESSMB109.ericsson.se> <EBCCDF81-1BC7-4FD7-A917-CE645AA1C34B@gmail.com>
In-Reply-To: <EBCCDF81-1BC7-4FD7-A917-CE645AA1C34B@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
Content-Type: multipart/signed; boundary="Apple-Mail-BB5B3CAC-F5F6-4AE4-922A-BB721A32DD70"; protocol="application/pkcs7-signature"; micalg="sha1"
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrAIsWRmVeSWpSXmKPExsUyM2K7qK60bFWkwdfDXBYb9v1ntvh2odaB yWPnrLvsHkuW/GQKYIrisklJzcksSy3St0vgyti49xtbwYUZLBUz/9Y3MO7pYuli5OSQEDCR aJh6irGLkYtDSOAIo8TS1T+ZIZzFjBK/ll8Dcjg42AQsJLr/aYM0iAhoS/R928cEEmYWUJR4 uVcNJCwsECnxcf5DVpCwiECUxNtNmRDVVhKbZ95jBLFZBFQlmhdCdPIK2Eusml4MsaiBUWLv +Y+sIDWcArYSV3ofgp3GKCAm8f3UGiYQm1lAXOLWk/lMECeLSDy8eJoNwhaVePn4HyvIIGaB yYwSB7umsoMkeAUEJU7OfMIygVF4FpL+WcjqZiGpgyiKl5jY+BPKlpfY/nYOM4StKbG/ezlU XFFiSvdDdghbQ6Lz20RWTHFriRm/DrJB2KYSr49+ZERWs4CRZxWjaHFqcXFuupGxXmpRZnJx cX6eXl5qySZGYNwe3PJbdwfj6teOhxgFOBiVeHjbBasihVgTy4orcw8xqgDNebRh9QVGKZa8 /LxUJRFeEwGgNG9KYmVValF+fFFpTmrxIUZpDhYlcV6HfRcihATSE0tSs1NTC1KLYLJMHJxS DYyL/I3EYli3nxOW7FmwdUONymoLH5++J9PmiGxuvDzlArvmNpHY2mXR54RSor/PabnQ7XvR 7mZ/oEr7ngypZSKd4W+Ny/c0LN+ooJ544F7HlbL7VZ6S8Rf5JrfGdVzxmbuDx7LVJIBP8F/L ZqEthZq+URO3myy5qMO0o3/PV0nD92fzE3Z9cVZiKc5INNRiLipOBAARYTjj4wIAAA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/ice/c-QwHKzrb4u6agq5iXTCL1XqWO0>
Subject: Re: [Ice] Re-nomination and candidate pair switching in RFC 5245bis - PROPOSAL
X-BeenThere: ice@ietf.org
X-Mailman-Version: 2.1.22
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, 27 Jul 2017 17:04:34 -0000

Hi Bernard,

Thanks for your input! Yes, 2) is currently in the draft. Just included it for completeness. Regarding 3), I agree. That's what I meant, but I realize my text was unclear.

Regards,

Christer

Sent from my iPhone

> On 27 Jul 2017, at 16.47, Bernard Aboba <bernard.aboba@gmail.com> wrote:
> 
> I believe that 1) was implied by removing agressive, but making it more clear is fine.  2) is what is in the current draft.
> 
> With respect to 3) it is OK to leave sending a MAY but the ability to receive should be required, not just recommended, so that the sender can assume this when "ice2" is indicated.
> 
>> On Jul 27, 2017, at 4:01 AM, Christer Holmberg <christer.holmberg@ericsson.com> wrote:
>> 
>> Hi,
>>  
>> Would anyone disagree with the following:
>>  
>> 1)      explicitly indicating that re-nomination is *NOT* allowed without ICE restart; and
>> 2)      once a pair has been selected, agents need to be able to send *AND* receive media using that pair – but not using any other pair (read: resources associated with other pairs may be released); and
>> 3)      PRIOR to selection, agents need to be able to send *AND* receive media on any valid pair (RFC 7675 adds restrictions, but that’s outside the scope of 5245bis)
>>  
>> Regards,
>>  
>> Christer
>>  
>> From: Ice [mailto:ice-bounces@ietf.org] On Behalf Of Christer Holmberg
>> Sent: 25 July 2017 10:17
>> To: Bernard Aboba <bernard.aboba@gmail.com>
>> Cc: ice@ietf.org
>> Subject: Re: [Ice] Re-nomination and candidate pair switching in RFC 5245bis
>>  
>> Hi Bernard,
>>  
>> Regarding sending media PRIOR to nomination, we have previously agreed that any valid pair can be used for that. Perhaps it needs more clarification.
>>  
>> Regarding receiving media after nomination, it was discussed in Prague, as it is covered by Peter’s PR. I don’t have access to the PR/minutes right now, but I think the outcome was that an agent is only expected to receive media on the nominated pair (otherwise it cannot free resources).
>>  
>> Regards,
>>  
>> Christer
>>  
>> From: Bernard Aboba [mailto:bernard.aboba@gmail.com] 
>> Sent: 25 July 2017 02:29
>> To: Christer Holmberg <christer.holmberg@ericsson.com>
>> Cc: ice@ietf.org
>> Subject: Re: [Ice] Re-nomination and candidate pair switching in RFC 5245bis
>>  
>> Christer said: 
>>  
>> "The whole discussion began when I was given a comment that the text above should be modified, to clarify that the pair used for media can change after a pair has been selected.
>> 
>> But, if the outcome is that the pair can NOT change, maybe we need to clarify THAT instead :)" 
>>  
>> [BA] Currently, use of the "ice2" ICE option forestalls use of aggressive nomination (e.g. setting the nominated flag on more than one pair).  Since only the selected pair can be used to send media, that would seem to rule out changing the pair used for media after a pair has been selected: 
>>  
>>    Once a candidate pair has been selected
>>    only that candidate pair (referred to as selected pair) is used for
>>    sending media.
>>  
>> What about changing the pair used for media prior to selection?  On this point, the text seems less clear than it could be. 
>>  
>> Prior to nomination, the specification allows the sending of media on a successful pair:
>>  
>>    o  Once there is at least one nominated pair in the VALID LIST for
>>       every component of at least one media stream and the state of the
>>       CHECK LIST is Running:
>>  
>> ...
>>   
>>       *  The agent MUST continue to respond to any checks it may still
>>          receive for that media stream, and MUST perform triggered
>>          checks if required by the processing of Section 6.3.
>>  
>>       *  The agent MAY begin transmitting media for this media stream as 
>>          described in Section 11.1.
>>  
>> However, the specification is not clear enough about the receiving side; while it recommends that implementations be prepared to receive prior to nomination, it does not require this. From Section 11.2: 
>>  
>>    ICE implementations SHOULD by default be
>>    prepared to receive media on any of the candidates provided in the
>>    most recent candidate exchange with the peer.
>>  
>> What happens if an implementation is NOT prepared to receive media?
>> In WebRTC, an implementation cannot send without consent, which 
>> suggests that perhaps an unwilling receiver could use consent to
>> influence the potential sender. 
>>  
>> However, the specification does not even reference RFC 7675,
>> so it is left unclear about how this is to be done.
>> For example, a receiver might not reply to a consent
>> request if the inability to receive is temporary ("I'm not ready yet"),
>> but that might cause consent to time out prior to nomination and
>> might even influence pair selection inappropriately.
>>  
>> Another choice might be to revoke consent (which would
>> invalidate the pair).  But that's pretty drastic unless the
>> pair is truly unacceptable. 
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>> >[BA] RFC 5245bis Section 7.1.1 continues to imply a single selected pair: 
>> >
>> >   Eventually, there will be only a single nominated pair in the VALID
>> >   LIST for each component.  Once the state of the CHECK LIST is set to
>> >   Completed, that exact pair is selected by ICE for sending and
>> >   receiving media for that component.
>> >
>> >Based on that text, an implementation might still release resources (e.g. unused TURN candidates) post-nomination. Given this, the "ice2" ICE option doesn't address >potential interoperability issues resulting from different resource release behaviors (although it does clear indicate lack of support for aggressive nomination): 
>> 
>> The whole discussion began when I was given a comment that the text above should be modified, to clarify that the pair used for media can change after a pair has been selected.
>> 
>> But, if the outcome is that the pair can NOT change, maybe we need to clarify THAT instead :)
>> 
>> >   NOTE: A controlling agent that does not support this specification
>> >   (i.e. it is implemented according to RFC 5245) might nominate more
>> >   than one candidate pair.  This was referred to as aggressive
>> >   nomination in RFC 5245.  The usage of the 'ice2' ice option by
>> >   endpoints supporting this specifcation should prevent such
>> >   controlling agents from using aggressive nomination.
>> >
>> >Christer also said: 
>> >
>> >"Also, my understanding was that endpoints supporting RFC 7675 might maintain consent on pairs currently not
>> >used for media, in order to be able to re-nominate in case consent for the currently nominated pair expires. However,
>> >RFC 7675 does not explicitly say anything about that."
>> >
>> >[BA] RFC 7675 Section 5 says: 
>> >
>> >   Initial consent to send traffic is obtained using ICE [RFC5245].  An
>> >   endpoint gains consent to send on a candidate pair when the pair
>> >   enters the Succeeded ICE state.
>> >
>> >Given this, an RFC 5245bis implementation might request consent to send to
>> >multiple remote peer candidates, so as to keep them alive. However,
>> >there is nothing in RFC 7675 that requires the responder to grant
>> >consent for that.  For example, based on the text in RFC 5245bis
>> >Section 7.1.1, a conforming implementation might well revoke
>> >consent on local candidates other than the local candidate in the
>> >selected pair.
>> 
>> Sure - the responder is not mandated to grant consent to multiple candidates after nomination. But, the option to do seems to be there (unless I've understood the RFC wrong), and the only reason to do so would be possible re-nomination.
>> 
>> Anyway, I don't have any strong feelings which way we go, but we do need to make it clear in the spec whether re-nomination is allowed or not.
>> 
>> Regards,
>> 
>> Christer
>>  
>> On Mon, Jul 24, 2017 at 4:33 PM, Christer Holmberg <christer.holmberg@ericsson.com> wrote:
>> Hi
>> ,
>> >[BA] RFC 5245bis Section 7.1.1 continues to imply a single selected pair: 
>> >
>> >   Eventually, there will be only a single nominated pair in the VALID
>> >   LIST for each component.  Once the state of the CHECK LIST is set to
>> >   Completed, that exact pair is selected by ICE for sending and
>> >   receiving media for that component.
>> >
>> >Based on that text, an implementation might still release resources (e.g. unused TURN candidates) post-nomination. Given this, the "ice2" ICE option doesn't address >potential interoperability issues resulting from different resource release behaviors (although it does clear indicate lack of support for aggressive nomination): 
>> 
>> The whole discussion began when I was given a comment that the text above should be modified, to clarify that the pair used for media can change after a pair has been selected.
>> 
>> But, if the outcome is that the pair can NOT change, maybe we need to clarify THAT instead :)
>> 
>> >   NOTE: A controlling agent that does not support this specification
>> >   (i.e. it is implemented according to RFC 5245) might nominate more
>> >   than one candidate pair.  This was referred to as aggressive
>> >   nomination in RFC 5245.  The usage of the 'ice2' ice option by
>> >   endpoints supporting this specifcation should prevent such
>> >   controlling agents from using aggressive nomination.
>> >
>> >Christer also said: 
>> >
>> >"Also, my understanding was that endpoints supporting RFC 7675 might maintain consent on pairs currently not
>> >used for media, in order to be able to re-nominate in case consent for the currently nominated pair expires. However,
>> >RFC 7675 does not explicitly say anything about that."
>> >
>> >[BA] RFC 7675 Section 5 says: 
>> >
>> >   Initial consent to send traffic is obtained using ICE [RFC5245].  An
>> >   endpoint gains consent to send on a candidate pair when the pair
>> >   enters the Succeeded ICE state.
>> >
>> >Given this, an RFC 5245bis implementation might request consent to send to
>> >multiple remote peer candidates, so as to keep them alive. However,
>> >there is nothing in RFC 7675 that requires the responder to grant
>> >consent for that.  For example, based on the text in RFC 5245bis
>> >Section 7.1.1, a conforming implementation might well revoke
>> >consent on local candidates other than the local candidate in the
>> >selected pair.
>> 
>> Sure - the responder is not mandated to grant consent to multiple candidates after nomination. But, the option to do seems to be there (unless I've understood the RFC wrong), and the only reason to do so would be possible re-nomination.
>> 
>> Anyway, I don't have any strong feelings which way we go, but we do need to make it clear in the spec whether re-nomination is allowed or not.
>> 
>> Regards,
>> 
>> Christer
>> 
>> 
>> 
>> 
>> On Fri, Jul 21, 2017 at 12:33 PM, Christer Holmberg <christer.holmberg@ericsson.com> wrote:
>> Hi Bernard,
>>  
>> Support of 5245bis is also negotiated, using the “ice2” ICE option.
>>  
>> Also, my understanding was that endpoints supporting RFC 7675 might maintain consent on pairs currently not used for media, in order to be able to re-nominate in case consent for the currently nominated pair expires. However, RFC 7675 does not explicitly say anything about that.
>>  
>> Regards,
>>  
>> Christer
>>  
>> From: Ice [mailto:ice-bounces@ietf.org] On Behalf Of Bernard Aboba
>> Sent: 20 July 2017 14:22
>> To: ice@ietf.org
>> Subject: [Ice] Re-nomination and candidate pair switching in RFC 5245bis
>>  
>> During the ICE WG meeting today, there was discussion of whether RFC5245bis should indicate that it is possible to re-nominate pairs (proposed by Peter), or whether it is possible to switch from one interface to another (Cullen).  While these capabilities are desirable, attempting to add them to RFC 5245bis without negotiation has the potential to break interoperability with existing RFC 5245 implementations.
>>  
>> In my experience, this is an area where RFC 5245 implementations have very different interpretations. For example, some implementations (e.g. ones that did not support aggressive) discard non-selected candidate pairs after nomination. These implementations (e.g. particularly ones included in previous product releases) cannot be assumed to change their behavior after RFC 5245bis is published.  This raises the possibility that that interoperability could be impacted. 
>>  
>> Since in practice the desired candidate pair switching capabilities are most likely to be supported in WebRTC implementations supporting Trickle ICE, my recommendation is to think of candidate pair switching as a Trickle ICE capability.   Since Trickle-ICE support is negotiated, clarifications relating to candidate-pair switching can be linked to that negotiation.  
>>  
>> This provides a potential way forward that bypasses potential interoperability issues.  For example, if text on candidate-pair switching is to be added to (either to RFC 5245bis or Trickle-ICE) then the text could say that support for these behaviors can only be assumed if they are explicitly negotiated. The Trickle-ICE document could then create normative requirements for support of the new behaviors by stating that support for them is mandatory when supporting full-Trickle. 
>>  
>>  
>> 
>>