Re: [Ice] Eric Rescorla's No Objection on draft-ietf-ice-trickle-18: (with COMMENT)

Peter Saint-Andre <stpeter@mozilla.com> Wed, 04 April 2018 16:58 UTC

Return-Path: <stpeter@mozilla.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 D9DE1129C5D for <ice@ietfa.amsl.com>; Wed, 4 Apr 2018 09:58:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level:
X-Spam-Status: No, score=-2.701 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=mozilla.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 L3pHNj_Z0YjZ for <ice@ietfa.amsl.com>; Wed, 4 Apr 2018 09:58:09 -0700 (PDT)
Received: from mail-it0-x232.google.com (mail-it0-x232.google.com [IPv6:2607:f8b0:4001:c0b::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 42F2D127978 for <ice@ietf.org>; Wed, 4 Apr 2018 09:58:01 -0700 (PDT)
Received: by mail-it0-x232.google.com with SMTP id 19-v6so28409971itw.3 for <ice@ietf.org>; Wed, 04 Apr 2018 09:58:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mozilla.com; s=google; h=subject:from:to:cc:references:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jW+dpJehXwv95P3gobIyHoUPJYTIeoFiXj7ovjy45x8=; b=DLi8qkHY1UkFs/7wyTEU/vocuW+R+7lZmRIVXzWXNBW1EWRZ8hRtZQS3yXApxXbl9D mH1wRRVCwR3VKsBVdtLYR46yMc5Ij3hXjRSFl5SpU2y5BqTFk1kZnzA99LnKHBe3YiHS ePFwtBHJ0uQ0KCm3G24YJhsLCXxz/1UdSataU=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=jW+dpJehXwv95P3gobIyHoUPJYTIeoFiXj7ovjy45x8=; b=E/KZi5TcgRhaV2WVPXjeZjy2m2qi8vOoMvOeahy8n/tZOlRa2kyr5B8dUVCSvWDFxc /3kocp3eHoG1pYf/zlzTa7S479b1PyyqUX7GrftUz0UZ9OVRwMKrFZ1Hw/+wRGuOkRAu eIUYjadS8GnkrUk02EruI36rR/geYoIOd8ueXg7sivQbdguXy4wBWcd69FX5UkyvEWVS jKNZ6sqgMi9K1Qhe2pqJqdahdhlqCHfU+fclZ2f5QKuHzGeOhGWR+CV2GFygOSBBtqhA s+f5hmyAw2LvOkmTeoVQu6t42ItdyyXXQeSqVhmL8shZVVKznWT7sFejfObFAmGl2rLR 7PTg==
X-Gm-Message-State: ALQs6tBO/67CT1/eqT9hTbf3ZzoJp8Fa0I0gbzDUEHiGocokzOxvwPx5 lcgdczyQHKlrSoxbJf2B3fmP1g==
X-Google-Smtp-Source: AIpwx4//8owjqbH0LQq2yXcpKjOr7FxOoAIGdZxQK39BMwtmt/oOAYogXTWSWa+s/YdTNquBim1NUg==
X-Received: by 2002:a24:4702:: with SMTP id t2-v6mr11051107itb.74.1522861080599; Wed, 04 Apr 2018 09:58:00 -0700 (PDT)
Received: from dragon.local ([76.25.3.152]) by smtp.gmail.com with ESMTPSA id z89-v6sm2587783ita.24.2018.04.04.09.57.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Apr 2018 09:57:59 -0700 (PDT)
From: Peter Saint-Andre <stpeter@mozilla.com>
To: Christer Holmberg <christer.holmberg@ericsson.com>, Eric Rescorla <ekr@rtfm.com>, The IESG <iesg@ietf.org>
Cc: Nils Ohlmeier <nohlmeier@mozilla.com>, "ice-chairs@ietf.org" <ice-chairs@ietf.org>, "draft-ietf-ice-trickle@ietf.org" <draft-ietf-ice-trickle@ietf.org>, "ice@ietf.org" <ice@ietf.org>
References: <152270727955.17756.6220965046370005057.idtracker@ietfa.amsl.com> <aa3bcfc0-48c4-8c5c-4799-6a14afaf7548@mozilla.com> <7594FB04B1934943A5C02806D1A2204B72E40DB4@ESESSMB109.ericsson.se> <d93773ad-9652-92ae-2ddf-ba56c1d28c50@mozilla.com> <1e31eef8-da5c-8d19-0caa-4f8f9b82d407@mozilla.com>
Openpgp: preference=signencrypt
Autocrypt: addr=stpeter@mozilla.com; prefer-encrypt=mutual; keydata= xsFNBFonEf4BEADvZ+RGsJoOyZaw2rKedB9pBb2nNXVGgymNS9+FAL/9SsfcrKaGYSiWEz7P Lvc97hWH3LACFAHvnzoktv+4IWHjItvhdi9kUQ3Gcbahe55OcdZuSXXH3w5cHF0rKz9aYRpN jENqXM5dA8x4zIymJraqYvHlFsuuPB8rcRIV9SKsvcy14w9iRqu770NjXfE/aIsyRwwmTPiU FQ0fOSDPA/x2DLjed/GYHem90C5vF4Er9InMqH5KAMLnjIYZ9DbPx5c5EME4zW/d648HOvPB bm+roZs4JTHBhjlrTtzDDpMcxHq1e8YPvSdDLPvgFXDcTD4+ztkdO5rvDkbc61QFcLlidU8H 3KBiOVMA/5Rgl4lcWZzGfJBnwvSrKVPsxzpuCYDg01Y/7TH4AuVkv5Na6jKymJegjxEuJUNw CBzAhxOb0H9dXROkvxnRdYS9f0slcNDBrq/9h9dIBOqLhoIvhu+Bhz6L/NP5VunQWsEleGaO 3gxGh9PP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cgQDLxwwpo1iOTdHBVtQDxlQ9hPMKVlB1KP9KjchxuiLc24wLmCjP3pDMml4LQxOYB34Eq cgPZ3uHvJZG309sb2wTMTWaXobWNI++ZrsRD5GTmuzF3kkx3krtrq6HI5NSaemxK6MTDTjDN Rj/OwTl0yU35eJXuuryB20GFOSUsxiw00I2hMGQ1Cy9L/+IW6Dvotd8O3LmKh2tFArzXaKLx /rZyGNurS/Go5YjHp8wdJOs7Ka2p1U31js24PMWO6hf6hIiY2WRUsnE6xZNhvBTgKOY6u0KT V6hTevFqEw7OAZDCWUoE2Ob2/oHGZCCMW5SLAMgp7eihF0kGf2S2CmpIFYXGb61hAD8SqSY7 Fn7V
Message-ID: <895a5f8f-1eaf-378c-0c04-fe6ecd498b3a@mozilla.com>
Date: Wed, 04 Apr 2018 10:57:59 -0600
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
MIME-Version: 1.0
In-Reply-To: <1e31eef8-da5c-8d19-0caa-4f8f9b82d407@mozilla.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ice/EKvhzSarrVVrtfR1mkm59IB8i8s>
Subject: Re: [Ice] Eric Rescorla's No Objection on draft-ietf-ice-trickle-18: (with COMMENT)
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: Wed, 04 Apr 2018 16:58:11 -0000

On 4/4/18 10:45 AM, Peter Saint-Andre wrote:
> On 4/3/18 9:38 AM, Peter Saint-Andre wrote:
>> On 4/2/18 11:13 PM, Christer Holmberg wrote:
>>> Hi,
>>>
>>> A couple of comments:
>>>
>>>>>    agent SHOULD follow a policy of keeping the higher priority candidate
>>>>>    unless it is peer reflexive.
>>>>>
>>>>> IMPORTANT: This section is confusing wrt how pruning works. AIUI, you 
>>>>> follow ordinary 5245 pruning procedures at the beginning of the 
>>>>> connection for whatever candidates you have. Is that incorrect?
>>>>
>>>> Right, there's no reason to override normal pruning procedures.
>>> ...
>>>>> Why are you discarding before you check for redundancy?
>>>>> This seems like it evicts the wrong pair.
>>>>
>>>> Hmm, it could. Checking the max-pair rule after the redundancy check would indeed make more sense.
>>>
>>> What if the pruning would result in a pair that e.g., is already in the Succeeded state to be removed? Is that what you want to do?
>>
>> I don't think so. I'm on a call right now but will reply again.
> 
> That was a long call. ;-)
> 
> It seems to me that when a new candidate pair is received, we'd want to
> remove a duplicate pair only if it is in the Waiting or Frozen state.
> 

Specifically, I suggest the following revised text for Section 8.1:

###

8.1.  Pairing Newly Learned Candidates and Updating Check Lists

   Forming candidate pairs works as described in the ICE specification
   [rfc5245bis].  However, adding the new pair to a check list happens
   according to the following rules:

   1.  If the new pair's local candidate is server reflexive, the agent
       MUST replace the candidate with its base before completing the
       redundancy check in step 2.

   2.  The agent eliminates redundant pairs by following the rules in
       Section 5.1.3 of [rfc5245bis], but only if the old pair has a
       state of Waiting or Frozen (thus avoiding removal of pairs for
       which connectivity checks are in flight or for which connectivity
       checks have already yielded a definitive result).

   3.  If after the foregoing redundancy test the check list where the
       pair is to be added already contains the maximum number of
       candidate pairs (100 by default as per [rfc5245bis]), the agent
       SHOULD discard any pairs in the Failed state to make room for the
       new pair.  If there are no such pairs, the agent SHOULD discard
       the new pair.

   4.  Otherwise, add the new pair to the check list.

###

Peter