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

Christer Holmberg <christer.holmberg@ericsson.com> Fri, 03 May 2019 12:00 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 AD376120071 for <ice@ietfa.amsl.com>; Fri, 3 May 2019 05:00:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 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] 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 Zf9r1yxFizn2 for <ice@ietfa.amsl.com>; Fri, 3 May 2019 05:00:16 -0700 (PDT)
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130084.outbound.protection.outlook.com [40.107.13.84]) (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 03C7C12004A for <ice@ietf.org>; Fri, 3 May 2019 05:00:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2/tmEXjc9scRtQvDpeYuQIBZY0O0uUP8v10Wc5uC1Ak=; b=DefVOszNQUhpxUIqL+5LbjvlyurKoIjtV3HpC8oBQlpzvIIjFCF6V+bqKypOi83bFJoDQZfhkB3lvFsAPVMycwtYV7eZ8wUwvSykaGeBH2Z9qVog6riZ49gF7yazPudw9MuIVgFDIx1jfYZi38y+9yWfd/6F817SseE1SBo7OA0=
Received: from HE1PR07MB3161.eurprd07.prod.outlook.com (10.170.245.23) by HE1PR07MB3404.eurprd07.prod.outlook.com (10.170.247.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1878.11; Fri, 3 May 2019 12:00:12 +0000
Received: from HE1PR07MB3161.eurprd07.prod.outlook.com ([fe80::c999:f848:9abc:d321]) by HE1PR07MB3161.eurprd07.prod.outlook.com ([fe80::c999:f848:9abc:d321%6]) with mapi id 15.20.1856.008; Fri, 3 May 2019 12:00:12 +0000
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: Justin Uberti <juberti@google.com>, Nils Ohlmeier <nohlmeier@mozilla.com>
CC: Roman Shpount <roman@telurix.com>, "ice@ietf.org" <ice@ietf.org>
Thread-Topic: [Ice] ICE PAC: When to start the timer waiting for possible peer reflexive candidates?
Thread-Index: AQHU+0CsHVyA1kKNxkeJ+j5BwMef3qZNJFeAgAA9yAD//8/IgIAAFleAgAAtFICAAMN1gIAAVFgAgABZAV2AAAWpgIABXUofgAIe4wCAALbUAIAAV6UAgAFE6oCAADttAIAC7JOAgAA5CgCAACNPgIAAAnAAgAAB0oCAAUdbAA==
Date: Fri, 03 May 2019 12:00:12 +0000
Message-ID: <4674B719-1B70-4405-B363-C03C9BDF4EC2@ericsson.com>
References: <3A66B735-03C9-41FF-95AD-500B0D469C80@ericsson.com> <CAD5OKxsMgNTQPNP4Ni72H+yD4iUeyNK+x6CSvdBApGnPTpr_vg@mail.gmail.com> <A4EC3C01-4D7D-45DF-876D-E58706F74866@ericsson.com> <CAD5OKxt8tDemkK=v4X1gjwJGLYrxcd95S7uV53_fsga6grZ_rA@mail.gmail.com> <30518269-CA9D-4F50-8CE3-062A01DBCD7F@mozilla.com> <CAD5OKxvmRK8Xzu4FSRv3Lgdg-VrrufzGhjAdSmfcLLkrm-jtjw@mail.gmail.com> <0AD3077C-74FA-4585-942A-375B83B3A7A0@ericsson.com> <CAD5OKxsgpf7Hv_nxFOZFwfNk7-_xNRzmoPTA2bZCqZo3wzudKQ@mail.gmail.com> <HE1PR07MB316172053751D307F83DE0EB933E0@HE1PR07MB3161.eurprd07.prod.outlook.com> <CAD5OKxu332E8vzdc4dt09NxXGf9Cr2izwECDAQjc7V_YDx3r5w@mail.gmail.com> <HE1PR07MB316189447ED302BEC5021946933F0@HE1PR07MB3161.eurprd07.prod.outlook.com> <CAOJ7v-3Dv4N5j0KykxQf-gHQfvJ9x-VzbTTTcdJyfgYgcdYy5A@mail.gmail.com> <HE1PR07MB3161E4496E7BDC5FF419CCE793390@HE1PR07MB3161.eurprd07.prod.outlook.com> <CAOJ7v-3JkrYnWpghusRytVvTn1u7OibL9J3NyVh+ia9neSyuHA@mail.gmail.com> <46390078-DE3B-456B-87AC-61AE3C3DF035@ericsson.com> <CAOJ7v-202_STNVj6nLv_0pTTuE_=jn_HJusNERv9Yj7=k=86jg@mail.gmail.com> <156839B0-C680-4F8F-8D93-8F6B33FB8F01@ericsson.com> <0928C15F-E7F4-405B-BBBB-2ECD35BD621D@mozilla.com> <CAOJ7v-2RbkeBEGFkTkRUnOMyCK4WcbYJwaCiQc7yj5kSkxNQPA@mail.gmail.com> <4F57FAE8-7E87-43D4-96CE-2AC21C239BEB@mozilla.com> <CAOJ7v-2N0jFptg8JKa8TWxMWse5KDhetySn_9GU3w+U_JmF0MQ@mail.gmail.com>
In-Reply-To: <CAOJ7v-2N0jFptg8JKa8TWxMWse5KDhetySn_9GU3w+U_JmF0MQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.18.0.190414
authentication-results: spf=none (sender IP is ) smtp.mailfrom=christer.holmberg@ericsson.com;
x-originating-ip: [89.166.49.243]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: f993995b-b55c-4cc2-3445-08d6cfbee5e7
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020); SRVR:HE1PR07MB3404;
x-ms-traffictypediagnostic: HE1PR07MB3404:
x-microsoft-antispam-prvs: <HE1PR07MB34042835F5A2C13F2F41F8C993350@HE1PR07MB3404.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 0026334A56
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(136003)(39860400002)(376002)(346002)(51444003)(189003)(199004)(6512007)(99286004)(486006)(54896002)(36756003)(110136005)(6306002)(54906003)(2616005)(476003)(86362001)(236005)(11346002)(53546011)(6506007)(316002)(7736002)(3846002)(6116002)(53936002)(58126008)(66066001)(446003)(229853002)(6436002)(14444005)(14454004)(186003)(6246003)(25786009)(256004)(76176011)(8936002)(26005)(8676002)(81166006)(5660300002)(81156014)(4326008)(71200400001)(71190400001)(44832011)(68736007)(102836004)(2906002)(33656002)(64756008)(66446008)(82746002)(66946007)(478600001)(66476007)(66556008)(73956011)(6486002)(76116006)(83716004); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3404; 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: IgV9jKzD5QQK18o2HPjjJqJNUH8/3l2L8eAya/WdVGNnTVLq65IjSkOlVOLjwj8UB3js6vVN0e8dj6kEV976Bb7Wtu6klAnJ2no9eEWZ95T+11qqXFB5v1jIhspcu9pbSm9aJiA1fQ7CfvnZeEHCqtoHUXheq5bRf5+y2ggpQIbcCshXMPWzijFyabs0rERfm3Cb2F8Wh3TvjlfSqB4RwJsIXbOEzCydba2do65lXKQpsNL/7a0cLoc6G/M6cMRxlgqqtkoXgNHjLfEKHLpDEbSJ+VQrO7kV4hUBzY7SFN9AJJMKr0xx8C78J4ksw9GICTRHPKUjLqt3IpjWd3TPkbeiMSJ/0YbwGVqMiXiUZBsGKGbywkuBgFa2DycBlzPvsoIicgDFLiOiBwWi/Xw1jlgjdLQTDifZgE5ypeLxwdI=
Content-Type: multipart/alternative; boundary="_000_4674B7191B704405B363C03C9BDF4EC2ericssoncom_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: f993995b-b55c-4cc2-3445-08d6cfbee5e7
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 May 2019 12:00:12.6355 (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-Transport-CrossTenantHeadersStamped: HE1PR07MB3404
Archived-At: <https://mailarchive.ietf.org/arch/msg/ice/1PYNHb19bdRTO3q4aAhkJ4-wssc>
Subject: Re: [Ice] ICE PAC: When to start the timer waiting for possible peer reflexive candidates?
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: Fri, 03 May 2019 12:00:21 -0000

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>
Date: Thursday, 2 May 2019 at 22.28
To: Nils Ohlmeier <nohlmeier@mozilla.com>
Cc: Christer Holmberg <christer.holmberg@ericsson.com>, Roman Shpount <roman@telurix.com>, "ice@ietf.org" <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