[MMUSIC] Clarification questions for rfc8838 ?

Michael Jones <Michael.Jones@genesys.com> Wed, 07 April 2021 22:01 UTC

Return-Path: <michael.jones@genesys.com>
X-Original-To: mmusic@ietfa.amsl.com
Delivered-To: mmusic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8DFB33A2B66 for <mmusic@ietfa.amsl.com>; Wed, 7 Apr 2021 15:01:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, 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=genesys.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 UINJevJwrkzZ for <mmusic@ietfa.amsl.com>; Wed, 7 Apr 2021 15:01:24 -0700 (PDT)
Received: from us-smtp-delivery-154.mimecast.com (us-smtp-delivery-154.mimecast.com [216.205.24.154]) (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 DB11A3A2B6B for <mmusic@ietf.org>; Wed, 7 Apr 2021 15:01:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=genesys.com; s=mimecast20160503; t=1617832882; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=E45Nyn1wsAJPZPr22REXEU6qaoDxAGedNqMuYBNdE1o=; b=ZU90zkEp/PV0wjtatdalVBiouKcs8mBHfKHdYKvJe97R63HPVsGZq/OXhUVHnryMShdz5D NxrYnkV1+kuwpeOogtyzIZs/vOHCIfX0sa620EYWyQ2xZnDGMSLitEaoLphEff0pAnJ0Lw GDM/64nph8lvQPDMpocrdSJS0Cw3M+Q=
Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2169.outbound.protection.outlook.com [104.47.57.169]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-253-vkEeLC1iOVy5DACzyzOwag-1; Wed, 07 Apr 2021 18:01:20 -0400
X-MC-Unique: vkEeLC1iOVy5DACzyzOwag-1
Received: from CH2PR10MB4328.namprd10.prod.outlook.com (2603:10b6:610:7e::15) by CH2PR10MB3911.namprd10.prod.outlook.com (2603:10b6:610:10::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.32; Wed, 7 Apr 2021 22:01:18 +0000
Received: from CH2PR10MB4328.namprd10.prod.outlook.com ([fe80::ac62:e4ad:1e:cc8d]) by CH2PR10MB4328.namprd10.prod.outlook.com ([fe80::ac62:e4ad:1e:cc8d%6]) with mapi id 15.20.3999.032; Wed, 7 Apr 2021 22:01:17 +0000
From: Michael Jones <Michael.Jones@genesys.com>
To: "mmusic@ietf.org" <mmusic@ietf.org>
Thread-Topic: Clarification questions for rfc8838 ?
Thread-Index: Adcr+YNtPJUq3WvgRxyJK5/DgfpV9g==
Date: Wed, 07 Apr 2021 22:01:17 +0000
Message-ID: <CH2PR10MB4328165A4CB749A9134C431EF1759@CH2PR10MB4328.namprd10.prod.outlook.com>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5Lmh0bWwiIHA9ImM6XHVzZXJzXG1qb25lc1xhcHBkYXRhXHJvYW1pbmdcMDlkODQ5YjYtMzJkMy00YTQwLTg1ZWUtNmI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FBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFCQUFBQUFBQUFBQUlBQUFBQUFBPT0iLz48L21ldGE+
x-originating-ip: [24.15.117.38]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 5b1fd774-f115-418d-d32e-08d8fa10aba8
x-ms-traffictypediagnostic: CH2PR10MB3911:
x-microsoft-antispam-prvs: <CH2PR10MB3911E9A807A24A56FBFA0DC4F1759@CH2PR10MB3911.namprd10.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0
x-microsoft-antispam-message-info: HbfwcGLT7wi+f//2w4ArVZv+iGGhhGaS8CY4v4LCaE4XkswWMmvVkVTEmKdWkBO5N+0SKLxVOI82L3xfqReoOCco+uYvWXZaGkLugX8mq/tzzo8OKkZNAQMFjuENHB4i2bw4lvPaW4y2hn7kryU2nucRUMExVxPLNO6WNnlfVJxaEXm25cygqLL0/9rID9u+Y8mRlqaSHWzf20SgSpjLUE38VNeCFFeti9iYzTbm7YTb0KgD8St0iQeHMSA+ehOxFbjZaAqc8krAYw/isTbXWisHwWphLi3QUKzGwc9ADzg9r1swO6u8/d87j7+fQiLRyzc2/H67NDC86+6GJr9ZxnYvuqjbM72nR6GtywH04XWMqP9BCpcIYyrsD2ygsMtglltJA8LJ3OR82ohm/uZg8Bk/w6+jVNWkPLIjg+vUHrr+tNG4/oKULVCDXKS8WLs+Dyb31tA3BV5l82JxT357Df5X6ZMJhbGglywFAFLYFikG26fPWv4znUc5ctmJt0/sNcv4ZrONSBG2fhr4qUoUCbysvMp9pSkSNS9AJEjmxd+0RdokKdGvz1DIKcmh2wha63Tv3YbPHBxHUo8dr6qHZN01cvLAD2p1skY8TEjTF7VPi2IkvuqlaLjkalrZUQTTo51oe9N0BGXr328nXqtTJqeLGVVK1x3BFJYg2AV8A6lNmd9yKR2/TpbxUaNLB3pnBZDZn6zXweuvF1llAj/uAnDqgtqXeWZcPxqvVh/gTT4=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR10MB4328.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(376002)(346002)(366004)(136003)(26005)(52536014)(5660300002)(7696005)(6506007)(83380400001)(186003)(966005)(6916009)(8676002)(316002)(66476007)(76116006)(9686003)(478600001)(66446008)(55016002)(166002)(66946007)(33656002)(38100700001)(64756008)(66556008)(30864003)(8936002)(2906002)(71200400001)(86362001); DIR:OUT; SFP:1101
x-ms-exchange-antispam-messagedata: zywFzdmw1Dcefmyg9eqQtixexIMu9RXWHa6rUODycpCPE7Yy5CsBYR5S1fJXeZpX7FHaPWefaWUiiEkD5s5Ms0dbut4mRTBNITvBmcbNsk1uyg21jR1zgWMm3mH/yhMOs4AbnodPOV3pv2j/XGDFiQUKPrwYm9joeLJ04gMLXPE3n5D34CerdT40Ue17Ys84VMeRmPgc7dofT+nIl1O5l4W2gaGT3ahAi217fjJd4mWPg5lYgkFSrzpPpGW7kmBsJu0gd/gpjUJnPWyi10AlUR67thyo7NjDbS2sCgZ9Hfc6EzDtJ/kXAZ2Ek5QlTUk9HRfx7J6ADHhAbD67cpln17gxYiY5Q+K1WxkpAinv2T5Oq3xx9bU34D7D3R5lAzbnl627g6vJp2868YhCHhfPTV+goPL4wV892pPYTvw1HN4lMU+yjo+dP9Hz/kyztZk0HE6kGMXjKVb0vGNj9UHmHp4y72jEr7p7DRk84Kx0/4ApF0zL/Q2bprqxn7AMJf7lQnzXg7v9HZPIMFAU9BVGPT37Lnyx1rJhKW2TTIf6YUkdjz5DvORV5gzQUklMrP+TAXfow3AsPsA2pJyeIp8URPStH0+1dheGxGqspOgE2VBe61MAVFSoSJxF32gzCAUWJhIQuTUQ6eVrQHPvq9KDvONWJPityCFgFxQNDE+0NV6uW2xah1n6qaK5uE6FjJuJ7xRNxcfMgUn9LF4ptaEmSySTD2LMbfxAMk2PHu/OekZwIRGQPub3cI/+ZZBZL6NNhOb2g28gLW2cdP8a9JFz9YIcVkCqWrkApwPWL7NnTsnTRgqrjSSuiSsowqP6ggx6aK/FnHChmbCfTQ7Tj57ONCdpIghC6iYvkYFEV2pZMDJpthIysqdzj+Hurd5A4E6m45+dXYAnOI3bf2OKo9zNOu1UDMzQ+5zEM8YB/T7FHYQmEMoES/HVroNX0suUo5B2DshEpKfNMVwBc/EknnWO7locn1OEqKQHrI6w5RFcDEz3+hAA09PaIRvbTawgOvzFCZN+ixPTSkUnnrab3mMNRoNPb4YzwyIuwI7IPXZDDfpm6AU135J5/BtKqgp5PMC4674o6qsePMQE472eU2kfrOwq4g+zIjPLzP2r64LXljUNzy4fcRBKhFpg5P9/G2nbf8eNMOnkI+5ye83MCvMm9mbCXEUG3oAjWpRqFfg4/mZNbGdXHW89TZ1nmrnQndE7xl+Cc3x9wwZhbKrixIYgQrlObS2oINdqCmCTtRHmjF2bsfOnepCfmwo00M1cgeLUWjZXjvj6PF6Q21XzJiMdDcbLtsD6qYUu7cDHKNbb0Pw=
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-OriginatorOrg: genesys.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CH2PR10MB4328.namprd10.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 5b1fd774-f115-418d-d32e-08d8fa10aba8
X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Apr 2021 22:01:17.7760 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 785ce69c-90cf-4dc7-a882-eaf312d1d15d
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 5y4BPQ6w0Web50oVbXF51xx2soDKkYnnWvUxL7Ov7KpbFvWi8LgNd6em7Gs+4cFxp2rMtEPsNJCGI9bEYtLrfuKcjC3Uzp0a7PiW2PVrNKw=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB3911
Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA54A3 smtp.mailfrom=michael.jones@genesys.com
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: genesys.com
Content-Language: en-US
Content-Type: multipart/alternative; boundary="_000_CH2PR10MB4328165A4CB749A9134C431EF1759CH2PR10MB4328namp_"
Archived-At: <https://mailarchive.ietf.org/arch/msg/mmusic/_54nLtXfm1a_3K-erOTdGOFHWMc>
Subject: [MMUSIC] Clarification questions for rfc8838 ?
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.29
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: <https://mailarchive.ietf.org/arch/browse/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: Wed, 07 Apr 2021 22:11:36 -0000

Quote from https://tools.ietf.org/html/rfc8838#section-9

   After Trickle ICE agents have conveyed initial ICE descriptions and

   initial ICE responses, they will most likely continue gathering new

   local candidates as STUN, TURN, and other non-host candidate

   gathering mechanisms begin to yield results.  Whenever an agent

   discovers such a new candidate, it will compute its priority, type,

   foundation, and component ID according to regular ICE procedures.

Are peer-reflexive candidates discovered through connectivity checks with the remote party included in this gathering of "other non-host candidate gathering mechanisms", and supposed to be communicated via trickle?


Quote from https://tools.ietf.org/html/rfc8838#section-9

   The new candidate is then checked for redundancy against the existing

   list of local candidates.  If its transport address and base match

   those of an existing candidate, it will be considered redundant and

   will be ignored.  This would often happen for server-reflexive

   candidates that match the host addresses they were obtained from

   (e.g., when the latter are public IPv4 addresses).  Contrary to

   regular ICE, Trickle ICE agents will consider the new candidate

   redundant regardless of its priority.

Ignored in what aspect? Ignored entirely in every way? Or only ignored for purposes of communicating the discovered candidate to the remote party, and then otherwise handled according to the procedures in rfc8445?

It's possible for a local agent to discover a local peer-reflexive candidate through connectivity checks prior to STUN server harvesting completing. In that situation, should the peer-reflexive candidate be kept, and the server-reflexive candidate discarded? The peer-reflexive candidate *does* have a higher priority, if the recommended type-preferences from https://tools.ietf.org/html/rfc8445#section-5.1.2.2 are used.


Quote from https://tools.ietf.org/html/rfc8838#section-9

   When candidates are trickled, the using protocol MUST deliver each

   candidate (and any end-of-candidates indication as described in

   Section 13<https://tools.ietf.org/html/rfc8838#section-13>) to the receiving Trickle ICE implementation exactly once

   and in the same order it was conveyed.  If the using protocol

   provides any candidate retransmissions, they need to be hidden from

   the ICE implementation.

Why must candidates be delivered in the order conveyed and exactly once?

Connectivity checks are not performed based on the order that candidates are received unless no higher priority candidate pairs are available to perform checks against.

Redundant candidates, and redundant candidate pairs, are already pruned on both sides of the session regardless of if the candidates are exact duplicates or are merely redundant.

I can't find any justification for this in rfc8838, and I can't think of any way for delivery of duplicate / out of order candidates to break an implementation if it's following the rfc8445 rules for handling redundant / duplicate candidate pairs.


Quote from https://tools.ietf.org/html/rfc8838#section-10

   As a Trickle ICE agent gathers local candidates, it needs to form

   candidate pairs; this works as described in the ICE specification

   [RFC8445<https://tools.ietf.org/html/rfc8445>], with the following provisos:



   1.  A Trickle ICE agent MUST NOT pair a local candidate until it has

       been trickled to the remote party.

What does this mean in practice?

Must an agent wait until it's confirmed, via some signaling path specific mechanism, that the remote party has received the trickled candidate?

If it does not mean that, why is it specified as a MUST, or even at all?

When dealing with asynchronous events like this, there's little difference between emitting the trickled candidate via the signaling path first, or second. From the remote party's perspective, it's unknowable which order the local agent conducted the operations.


Quote from https://tools.ietf.org/html/rfc8838#section-11

   3.  If a newly formed pair has a local candidate whose type is

       server-reflexive, the agent MUST replace the local candidate with

       its base before completing the redundancy check in the next step.



   4.  The agent prunes redundant pairs as described below but checks

       existing pairs only if they have a state of Waiting or Frozen;

       this avoids removal of pairs for which connectivity checks are in

       flight (a state of In-Progress) or for which connectivity checks

       have already yielded a definitive result (a state of Succeeded or

       Failed).



       A.  If the agent finds a redundancy between two pairs and one of

           those pairs contains a newly received remote candidate whose

           type is peer-reflexive, the agent SHOULD discard the pair

           containing that candidate, set the priority of the existing

           pair to the priority of the discarded pair, and re-sort the

           checklist.  (This policy helps to eliminate problems with

           remote peer-reflexive candidates for which a STUN Binding

           request is received before signaling of the candidate is

           trickled to the receiving agent, such as a different view of

           pair priorities between the local agent and the remote agent,

           because the same candidate could be perceived as peer-

           reflexive by one agent and as server-reflexive by the other agent.)



       B.  The agent then applies the rules defined in Section 6.1.2.4 of [RFC8445]<https://tools.ietf.org/html/rfc8445#section-6.1.2.4>.



Paragraph 4.A is difficult to understand.

It appears to read as:

After forming pairs from the newly trickled remote candidate and replacing any server-reflexive local candidates with their base, the agent compares each of the newly created pairs with existing pairs that are in the Waiting or Frozen states.
Then the agent performs the following pseudocode operation:
For each redundancy of $newPair <=> $existingPair:
if $newPair.remoteCandidate.type == peer-reflexive
then
    $existingPair.priority = $newPair. priority
    discard $newPair
fi

Under what conditions could a remote party send the local agent a peer-reflexive candidate that local agent thinks is the remote party's server-reflexive candidate?

In section 9, we're told that trickled candidates must be delivered to the remote party in the order they are sent, so this can't be a situation where the remote party sends peer-reflexive and then server-reflexive, but they are delivered as server-reflexive before peer-reflexive.

If it's the peer discovering it has a peer-reflexive candidate because it sent a connectivity check to the local agent before its stun server harvesting finished, then the local agent would not know about the remote party having a server-reflexive candidate in the first place (as the peer doesn't know it yet either).

Is this paragraph trying to say that in the situation where the existing pair has a remote peer-reflexive (discovered by the local agent receiving an incoming connectivity check from the remote party), and the new pair has a remote host/server-reflexive/relay candidate (which we're told of via trickle), then to replace the peer-reflexive with the new candidate? If so, the wording of the paragraph is, I think, wrong, or if not wrong, then too vague. Perhaps something similar to:


If the agent finds a redundancy between two pairs and one of

those pairs contains a remote candidate with a peer-reflexive

type, then the pair with the peer-reflexive remote candidate

should be discarded, and the checklist should be resorted.



This policy helps to eliminate problems with different pair

priorities between the local agent and remote party when

the local agent discovers a remote peer-reflexive candidate

via the procedures in https://tools.ietf.org/html/rfc8445#section-7.3.1.3

and the remote party later sends a non-peer-reflexive candidate

with the same transport address as the peer-reflexive candidate.

if the local agent did not discard the peer-reflexive candidate

in favor of the newly trickled candidate, the local and remote

agents will have a different view of pair priorities, which can

cause slowdowns in the overall ice negotiation.

Note that in my suggested wording, I don't try to differentiate between an existing pair and a new pair. That's not the point of the comparison. The point of the comparison is that remote peer-reflexive candidates should be replaced with their non-peer-reflexive equivalents whenever possible.


Quote from https://tools.ietf.org/html/rfc8838#section-12

   After a local agent has trickled a candidate and formed a candidate

   pair from that local candidate (Section 9<https://tools.ietf.org/html/rfc8838#section-9>), or after a remote agent

   has received a trickled candidate and formed a candidate pair from

   that remote candidate (Section 11<https://tools.ietf.org/html/rfc8838#section-11>), a Trickle ICE agent adds the new

   candidate pair to a checklist as defined in this section.

Does this mean:

   After an ICE agent has discovered a new local candidate, or has

   received a new remote candidate trickled from its remote peer,

   and has formed one or more candidate pairs from it, a Trickle ICE

   agent adds the new candidate pair to a checklist as defined in

   this section.

?

Specifically, the wording

or after a remote agent has received a trickled candidate and formed a candidate pair from that remote candidate


Is ambiguous as to whether the local agent is supposed to do something when the "remote agent has received a trickled candidate", or if the local agent is the one doing the receiving.




Quote from https://tools.ietf.org/html/rfc8838#section-17

   To achieve this, when trickling candidates, agents SHOULD respect the

   order of components as reflected by their component IDs; that is,

   candidates for a given component SHOULD NOT be conveyed prior to

   candidates for a component with a lower ID number within the same

   foundation.  In addition, candidates SHOULD be paired, following the

   procedures in Section 12<https://tools.ietf.org/html/rfc8838#section-12>, in the same order they are conveyed.

Is this saying that the results of harvesting local candidates (server-reflexive, relay) should not be communicated to the remote party until all anticipated candidates from lower component IDs are finished harvesting?

How does that play out with packet loss?

For example: If the harvesting transaction for component ID 1 has all its outgoing packets dropped, including retries, but the harvesting transaction for component ID 2 succeeded right away, then component ID 2 should not be communicated to the remote peer until component ID1 finishes? That's a minimum of 500ms of delay for component ID2, potentially much more if multiple retries are attempted (and failed) for component ID1.