Re: [Ice] ICE PAC: When to start the timer waiting for possible peer reflexive candidates? - discussion restart

Christer Holmberg <christer.holmberg@ericsson.com> Sat, 06 July 2019 12:10 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 46552120156 for <ice@ietfa.amsl.com>; Sat, 6 Jul 2019 05:10:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 oWye8uD9-48j for <ice@ietfa.amsl.com>; Sat, 6 Jul 2019 05:10:24 -0700 (PDT)
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20082.outbound.protection.outlook.com [40.107.2.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B0F4D12011B for <ice@ietf.org>; Sat, 6 Jul 2019 05:10:23 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XTgDjUhZhrajUh5Zj+PctZUyAUEbSgYYKs6kMEWA4Im0Fs92cZzDawUKi1tb/ET6tMLrIe22r65Kj1t1SEsfBhqq23ChY5rHxhhqNqQ3CwczHghIqixfu/1rBavCK/z7q6NKgukOsSJ5oMtlIfuVjYYo34HfIm4fXip2UlSYoaCR1J8qEU/KJzN8OJnPTaXE61wVDqp+S0UNc2vjoljDO5EZAvcxAOwzQKdia93lHV2xbzClV6/LUE1CD+XLSdH6zU8N4pe6O2KsmkG4Q5cRRg2b4lPc+blUbjT1r46A65FWq6DiYVMwiSlL9rXjXVrOVWBZfK560ZSVNCU4UB8LDQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0zgftTAwmqmYEkPauuqIKZLUDoA00IQ06oG2G/pB1qE=; b=LfPe4T6PFM1/QDc9NpQF95m9y5icyDaTHF/CtlGxEUDoyhi2G7pYA5F3W7YkgJTz2cLLOEsmjA5wdMERPkriCHn9n0sQgULAnr1aUD0eeZZv9ebyGDhiCZ/mvUhFblKLc9QK+FGfVJ0ISz2I3Qsl37CpxhKNx92IOgoVGVNWnKiMf7lr3vSq7tFhWW8Og6PW/VxvdPGgS0XQXzq4uDrqRXZWi7+WMPXyq2RrnveDc/NFD9CWHragkdFkj9QOVhiDySRHPUvrSnGI4FI9iNO30Ru8ws/DP8SkclNmkb7BXP6VH3ZvCf1Lzo3Pc/nULepScxyAxST08yWtGJwapKLGrA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=ericsson.com;dmarc=pass action=none header.from=ericsson.com;dkim=pass header.d=ericsson.com;arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0zgftTAwmqmYEkPauuqIKZLUDoA00IQ06oG2G/pB1qE=; b=kJqNn9SvPrOwYa2maa4Boc3nWOA14ieb4E6DRI9k/+ovk0TU6Lsk+ArbPs4ioBUp/pq/uUxHnmAP16IvwBPmmfnNAVWjGVSUQsDXonPyVnf9vvK+GiJj/WSXuPSmYKMvV50e3LIi4d1jNZoIwOkCFUlN1W2Tx9AwmsHtkl1aQRU=
Received: from HE1PR07MB3161.eurprd07.prod.outlook.com (10.170.245.23) by HE1PR07MB3113.eurprd07.prod.outlook.com (10.170.245.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.8; Sat, 6 Jul 2019 12:10:20 +0000
Received: from HE1PR07MB3161.eurprd07.prod.outlook.com ([fe80::5050:a3a9:be80:cf43]) by HE1PR07MB3161.eurprd07.prod.outlook.com ([fe80::5050:a3a9:be80:cf43%5]) with mapi id 15.20.2073.004; Sat, 6 Jul 2019 12:10:20 +0000
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: Roman Shpount <roman@telurix.com>
CC: Peter Thatcher <pthatcher@google.com>, Harald Alvestrand <harald@alvestrand.no>, Justin Uberti <juberti@google.com>, Nils Ohlmeier <nohlmeier@mozilla.com>, "ice@ietf.org" <ice@ietf.org>
Thread-Topic: [Ice] ICE PAC: When to start the timer waiting for possible peer reflexive candidates? - discussion restart
Thread-Index: AQHVFUwc5tNKLJLjCke9cDBba/EsEKao6YiAgAIHR4CAAAOSAIALwuyAgALR9zCAAAqpgIAEKJ7A
Date: Sat, 06 Jul 2019 12:10:20 +0000
Message-ID: <HE1PR07MB31610E13E98E17F562396ACC93F40@HE1PR07MB3161.eurprd07.prod.outlook.com>
References: <AFCE8799-8865-454F-8478-81CE11E9B454@ericsson.com> <1aa5aac7-af59-4e3b-8651-18f6e6431a2d@alvestrand.no> <66678ADA-7C02-4D9D-B9D2-308873BC0125@ericsson.com> <7a829bc0-d066-a3be-b7be-9b39ce799821@alvestrand.no> <CAJrXDUHZJURLvzBYX2MGcMsrFgyOagW5=s1OSXwDmTZpsruD0A@mail.gmail.com> <VI1PR07MB3167F21EF7A1009B8EB9948B93FB0@VI1PR07MB3167.eurprd07.prod.outlook.com> <CAD5OKxuqS+6-Tqc5Jz+tAuchfk5pjj9Gg+B5TNiUY+WtCgVsDw@mail.gmail.com>
In-Reply-To: <CAD5OKxuqS+6-Tqc5Jz+tAuchfk5pjj9Gg+B5TNiUY+WtCgVsDw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=christer.holmberg@ericsson.com;
x-originating-ip: [62.113.190.248]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: f3b0df69-8017-4dc8-56b4-08d7020aea76
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:HE1PR07MB3113;
x-ms-traffictypediagnostic: HE1PR07MB3113:
x-ms-exchange-purlcount: 1
x-microsoft-antispam-prvs: <HE1PR07MB3113D9234B70F31ED628C6B293F40@HE1PR07MB3113.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 00909363D5
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(396003)(366004)(376002)(346002)(136003)(189003)(199004)(51444003)(4326008)(478600001)(966005)(316002)(54906003)(86362001)(68736007)(25786009)(9326002)(14454004)(76176011)(102836004)(66066001)(6916009)(26005)(53546011)(186003)(6506007)(7696005)(99286004)(33656002)(606006)(446003)(11346002)(486006)(6116002)(6246003)(74316002)(14444005)(256004)(3846002)(476003)(229853002)(7736002)(790700001)(44832011)(81166006)(8936002)(81156014)(66446008)(52536014)(8676002)(64756008)(5660300002)(5070765005)(66556008)(66476007)(73956011)(66946007)(9686003)(236005)(71200400001)(55016002)(71190400001)(30864003)(76116006)(6436002)(54896002)(2906002)(53936002)(6306002)(53946003); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3113; H:HE1PR07MB3161.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: Lwp4ojT9uNzwjXSLXi2tQG+HG+TW5FX8qvVSFXbNDM24RUAV7Mv+xbvrCgE3Z0EJZvQ04XLMPhL0myS5li0z0i1LdAAcNkGU40jmhjMjx6P5iCdsHLtvLRoiIcf6aTHcmsgZ3CrQMKfgPSWYgV2G5uKIsvVG22/CwvzA68/tIiVSWc9zE58B8a+0FKxOUvuzzthhCAYBiZedBG6909Up/vU/36ib73qrlnb/U+JACN2eCnGYzXZBSsz50alu8JHjV2KST5tGBE28O9Kvz26TvYrVTzqeprmSeJr/22gKSKZNzvXkuORUgcVtaFuwVsGSsnTGObadGf4xTH8h3wcOYQlOlnla5+8OXNyP6o2cf5PQKEN0jDwMjFgx3sfW4zWI21w0uYJquH0QThSdbMHANeCxAy34+uz7ZCp9N1iuMUc=
Content-Type: multipart/alternative; boundary="_000_HE1PR07MB31610E13E98E17F562396ACC93F40HE1PR07MB3161eurp_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: f3b0df69-8017-4dc8-56b4-08d7020aea76
X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jul 2019 12:10:20.0578 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: christer.holmberg@ericsson.com
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3113
Archived-At: <https://mailarchive.ietf.org/arch/msg/ice/0rBUe7q-SfhvfNSBkSHnQJIgUGE>
Subject: Re: [Ice] ICE PAC: When to start the timer waiting for possible peer reflexive candidates? - discussion restart
X-BeenThere: ice@ietf.org
X-Mailman-Version: 2.1.29
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: Sat, 06 Jul 2019 12:10:29 -0000

Hi,

Unless I misunderstood, the original idea was to start the timer *once all pairs had been tried* – in order to wait for potential peer reflexive candidates to arrive before declaring ICE failure.

I am pretty sure such peer reflexive candidates would arrive within 39.5 seconds, so the chance for a premature failure would be very minor.

Regards,

Christer

From: Roman Shpount <roman@telurix.com>
Sent: 03 July 2019 23:38
To: Christer Holmberg <christer.holmberg@ericsson.com>
Cc: Peter Thatcher <pthatcher@google.com>; Harald Alvestrand <harald@alvestrand.no>; Justin Uberti <juberti@google.com>; Nils Ohlmeier <nohlmeier@mozilla.com>; ice@ietf.org
Subject: Re: [Ice] ICE PAC: When to start the timer waiting for possible peer reflexive candidates? - discussion restart

Christer,

All we are doing here is a solution which is better then existing situation but still not ideal. No matter how we set the timer or when we start it, there are going to be situations when ICE nomination fails when it should have succeeded if it waited longer. In practice it does not matter, if call setup does not complete in 39.5 seconds (default STUN BIND request timeout), caller would likely give up much earlier then that. So, to summarize, if ICE nomination does not fail for default STUN BIND request timeout from the time first candidate or EOC was received from the remote, solution will be good enough.

If you do want something that works correctly with large signaling delays, long TURN server allocation times, and arbitrary number of candidates or streams, then what is needed is an additional signaling exchange that negotiates that ICE nomination is complete and unused candidate can be released. Something where controlling agent sends a signaling message asking if ICE nomination is done and controlled agent responding true or false. When response is true, ICE nomination is complete and unused candidates can be removed. This message can be sent on timer and can be combined with trickle ICE. However, I think we have decided previously that this was out of scope.

Best Regards,
_____________
Roman Shpount


On Wed, Jul 3, 2019 at 4:02 PM Christer Holmberg <christer.holmberg@ericsson.com<mailto:christer.holmberg@ericsson.com>> wrote:
So, what timer value do people want?

And, assuming the timer value is not going to be based on the number of streams, what do we do if the timer expires before we have tested all pairs for all streams? I think we need to specify that.

Regards,

Christer

From: Peter Thatcher <pthatcher@google.com<mailto:pthatcher@google.com>>
Sent: 02 July 2019 03:56
To: Harald Alvestrand <harald@alvestrand.no<mailto:harald@alvestrand.no>>
Cc: Christer Holmberg <christer.holmberg@ericsson.com<mailto:christer.holmberg@ericsson.com>>; Justin Uberti <juberti@google.com<mailto:juberti@google.com>>; Nils Ohlmeier <nohlmeier@mozilla.com<mailto:nohlmeier@mozilla.com>>; Roman Shpount <roman@telurix.com<mailto:roman@telurix.com>>; ice@ietf.org<mailto:ice@ietf.org>
Subject: Re: [Ice] ICE PAC: When to start the timer waiting for possible peer reflexive candidates? - discussion restart

I agree.  The options you present seem reasonable and I think we should move ahead with them.

On Mon, Jun 24, 2019 at 6:20 AM Harald Alvestrand <harald@alvestrand.no<mailto:harald@alvestrand.no>> wrote:
On 6/24/19 12:06 PM, Christer Holmberg wrote:
Hi,

Go for what? 😊

I was noting the month of silence, and thinking that I should encoruage a decision to be taken - "analysis paralysis" is not a good thing!

Regarding 1), eventhough it’s not my personal preference to start the timer when the first offer/answer is sent, I could live with it.



It's a well defined time, and is observable by the entity that has to act when the timer expires, so I think it is much better than "undefined".

That's my requirement :-)



Regarding 2), however, I would really like some input on whether the duration should be independent of the number of streams, components etc.

I think having a single number is preferable to having a complex number that could change over time (for instance, if we don't reset the timer when adding streams, then adding or removing streams after the timer started will lead to hard-to-define behavior).



But my main concern is that we get this stuff done and get the basic timer mechanism into interoperable code - having a spec to implement from now is better than having a spec that has had slightly more discussion, but no fundamental changes, 6 months from now.



Regards,

Christer

From: Harald Alvestrand <harald@alvestrand.no><mailto:harald@alvestrand.no>
Date: Sunday, 23 June 2019 at 9.08
To: Christer Holmberg <christer.holmberg@ericsson.com><mailto:christer.holmberg@ericsson.com>, Justin Uberti <juberti@google.com><mailto:juberti@google.com>, Nils Ohlmeier <nohlmeier@mozilla.com><mailto:nohlmeier@mozilla.com>
Cc: Roman Shpount <roman@telurix.com><mailto:roman@telurix.com>, "ice@ietf.org"<mailto:ice@ietf.org> <ice@ietf.org><mailto:ice@ietf.org>
Subject: Re: [Ice] ICE PAC: When to start the timer waiting for possible peer reflexive candidates? - discussion restart

On 5/28/19 1:54 PM, Christer Holmberg wrote:
Hi,

We need to move forward with this.

There are two main questions at the moment:


  1.  When does an endpoint start the timer ("minimum-time-to-run-ICE" timer, based on previous discussions)?
  2.  What is the duration of the timer?

Regarding 1), my understanding is that people suggest alternative c), which starts the timer when an endpoint has sent (in an offer or answer) at least one local candidate (or EOC).


Regarding 2), it has been suggested that the duration would be the same as the max duration of a connectivity check transaction. Do we think that is enough, no matter how many media streams and components are used?



Go for it. It is much better than having nothing.



Regards,

Christer









From: Ice <ice-bounces@ietf.org><mailto:ice-bounces@ietf.org> on behalf of Christer Holmberg <christer.holmberg@ericsson.com><mailto:christer.holmberg@ericsson.com>
Date: Friday, 3 May 2019 at 15.02
To: Justin Uberti <juberti@google.com><mailto:juberti@google.com>, Nils Ohlmeier <nohlmeier@mozilla.com><mailto:nohlmeier@mozilla.com>
Cc: Roman Shpount <roman@telurix.com><mailto:roman@telurix.com>, "ice@ietf.org"<mailto:ice@ietf.org> <ice@ietf.org><mailto:ice@ietf.org>
Subject: Re: [Ice] ICE PAC: When to start the timer waiting for possible peer reflexive candidates?

Hi,

I don’t think there will be any interoperability issues. At the end of the day PAC is only about how long to wait for candidates, so the worse thing that can happen is than an agent declares ICE failure too early.

And, no matter whether an agent knows that the peer supports PAC or not,  it should aim at sending it’s candidates to its peer as soon as possible, depending on whatever local policies. The agent should not delay sending candidates just because it assumes that the peer will anyway wait for them.

Regards,

Christer

From: Justin Uberti <juberti@google.com><mailto:juberti@google.com>
Date: Thursday, 2 May 2019 at 22.28
To: Nils Ohlmeier <nohlmeier@mozilla.com><mailto:nohlmeier@mozilla.com>
Cc: Christer Holmberg <christer.holmberg@ericsson.com><mailto:christer.holmberg@ericsson.com>, Roman Shpount <roman@telurix.com><mailto:roman@telurix.com>, "ice@ietf.org"<mailto:ice@ietf.org> <ice@ietf.org><mailto:ice@ietf.org>
Subject: Re: [Ice] ICE PAC: When to start the timer waiting for possible peer reflexive candidates?



On Thu, May 2, 2019 at 12:22 PM Nils Ohlmeier <nohlmeier@mozilla.com<mailto:nohlmeier@mozilla.com>> wrote:



On May 2, 2019, at 12:13, Justin Uberti <juberti@google.com<mailto:juberti@google.com>> wrote:



On Thu, May 2, 2019 at 10:07 AM Nils Ohlmeier <nohlmeier@mozilla.com<mailto:nohlmeier@mozilla.com>> wrote:

>> I do think Nils' point is important though, i.e., if we have a bad server it will take a very long time to decide on 'last set of candidates',
>> which is probably not helpful. As such I think the potential positions we can take are:
>> a) Start the timer as soon as we have an answer, regardless of any candidates.
>> b) a) + receipt of at least one remote candidate (or remote EOC). (This is Nils' suggestion).
>> c) a) + sending at least one local candidate (or local EOC).

As we are mostly concerned about the remote side: 1) not providing us with candidates, or 2) providing us with unusable candidates or 3) providing us with candidates really late I don’t see how option c) would help in any of these scenarios.
From my point of view we should choose either a) or b).

c) is just a clarification of a), in that you can't expect to receive prflx candidates until you've at least provided the other side with a candidate, so that may be the right time for the timer to start. I don't feel super strongly about this though.

Ok. I hadn’t looked at it from that angle. So c) being a stronger a) I guess it would be okay.

I guess my only concern is that in Firefox we stopped doing a) because it caused to many problems. With that in mind would it cause interop problems if we leave up to the implementor to choose to implement either b) or c)?

I'd be fine with that, but I'd want to describe what to watch out for. Can you explain a bit more?



>> b) has a problem if the remote side doesn't send any candidates, which we want to explicitly allow.
>
> True.
Just to make sure we are all on the same page: b) is only a problem in the scenario where the remote side doesn’t send any candidates but also does not send EOC.

The EOC should allow agents which explicitly don’t want to provide candidate to get the timer started soon.
I think that leaves us with scenarios where the remote doesn’t provide host candidates, and it’s reflexive or relay candidates take for ever because of slow servers.

Correct, but we can't control which endpoints will send us an EOC or not. So that will always be a possibility.

Fair enough.



>> I tend to lean towards a) as the simplest option.
>
> Keep in mind that RFC 8445 is generic, so we need to to define what we mean by "answer". I guess it means some kind of indication that makes the agent assume that the remote peer has been contacted. In ice-sip-sdp we can then map that to an SDP answer.

Good point. We basically treat the SDP answer here to be something like an beginning of ICE, because we don’t have an explicit signal for that. I think in SDP based worlds there is no need for an extra signal like that. Not sure if other use cases of ICE would benefit from an explicit begin signal.

The answer in some ways is an explicit begin signal, because it contains the username/password information needed to start ICE checks.

Yeah I didn’t see your reply before hitting send on mine. Using the availability sounds like a good idea as the minimum gating function/signal.

Best
  Nils



_______________________________________________

Ice mailing list

Ice@ietf.org<mailto:Ice@ietf.org>

https://www.ietf.org/mailman/listinfo/ice



--

Surveillance is pervasive. Go Dark.



--

Surveillance is pervasive. Go Dark.
_______________________________________________
Ice mailing list
Ice@ietf.org<mailto:Ice@ietf.org>
https://www.ietf.org/mailman/listinfo/ice