Re: [MMUSIC] [Technical Errata Reported] RFC8864 (7805)

Harald Alvestrand <harald@alvestrand.no> Thu, 04 April 2024 12:28 UTC

Return-Path: <harald@alvestrand.no>
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 39966C14F68E for <mmusic@ietfa.amsl.com>; Thu, 4 Apr 2024 05:28:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.103
X-Spam-Level:
X-Spam-Status: No, score=-1.103 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AW46vtBrcgE8 for <mmusic@ietfa.amsl.com>; Thu, 4 Apr 2024 05:28:31 -0700 (PDT)
Received: from smtp.alvestrand.no (unknown [IPv6:2a01:4f9:c010:a44b::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 39FA0C14F5E9 for <mmusic@ietf.org>; Thu, 4 Apr 2024 05:28:30 -0700 (PDT)
Received: from [192.168.3.110] (unknown [185.71.208.122]) by smtp.alvestrand.no (Postfix) with ESMTPSA id 100274ED27; Thu, 4 Apr 2024 14:28:29 +0200 (CEST)
Message-ID: <20424435-9be6-4812-92b3-77fed7df0965@alvestrand.no>
Date: Thu, 04 Apr 2024 14:28:28 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: Christer Holmberg <christer.holmberg@ericsson.com>, "mmusic@ietf.org" <mmusic@ietf.org>
References: <20240209080227.970F611821EC@rfcpa.amsl.com> <171bacd1-0316-46d2-a374-c89ee5d535e1@alum.mit.edu> <AS8PR07MB8069A3A536BA645144D8952493482@AS8PR07MB8069.eurprd07.prod.outlook.com> <ec0fa1c1-f60f-49fb-9c0f-1729e654bdc1@alum.mit.edu> <AS8PR07MB8069B7B98C0E04FDCAF86581934F2@AS8PR07MB8069.eurprd07.prod.outlook.com> <CAL0qLwa4-uzxsqLW5N3ApLzT4zjW7mvLN3Hsj+8XbSsCaxoOow@mail.gmail.com> <AS8PR07MB80697339B02C5C6B14EE910593342@AS8PR07MB8069.eurprd07.prod.outlook.com> <a7328bf8-0258-4dee-8a4c-c59f2c5cea63@alvestrand.no> <AS8PR07MB80693CCD7A91419F27B5DA33933C2@AS8PR07MB8069.eurprd07.prod.outlook.com>
From: Harald Alvestrand <harald@alvestrand.no>
Autocrypt: addr=harald@alvestrand.no; keydata= xsFNBF3b3UcBEADG/UxgR81/WWeCrH+wICS5D6Wx85iAIEUSmLaCRVJejO5My90JskUdZkmS rYriW3v2nms1gUrI0QZWweEQ/7LTszT4mvWOsbZOwo+gp+jO0RkPjtfPn+cyvo8VPI4D64w5 czTHv9kfXIrGCxSDC8x7j4dsrJv5VwKC/kRx+SB5nBhFSyGo5GRUfUPt7cBdXa3mDMWLd02N kcMew4DP5t0IMlO+ZaXM+IbmQ8bG1Fyccc/+Q+unniAcoYxL3goNOMtyQU0F7cm4ngz5yjqX I3FHwl3CfWJ6ofcyLbhQUK/x2p3BOfUqeb82KMAH9UTGgeo3Z54T71eu9cfYf8AcKDNcFtRK w4NytEQw4UkxdCFL58H/kKSOYjWA0zgQO0X7dNyTs2UMZVzYcHSU9GcYEM9mwjCvcRIEmXfB Dx3rqbsnzu+8yQiOeJKAFLDNDTWle6wJ1iolONL/D4NDo93sbVtBRu+SroZUEfxUNB+InWLJ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BgF0/NHs1MZBQ64SFua7GtwXr oV74IZma9jFsDMxnXdtjsWfePVXD0e89DMapmvABFcY6LAS31k1aWuALAIWFILS5ZwYOXsm2 Y1lgGLBK7gq6VoipQR9PoT2wL5yulmXKVBranySieKnYXZkMQpVwEgIjbW+v20kLTQqqgMeh fyGt8DwhTyCRIAfEdx4VFy4dMZczlHwMYQkNq1Jt/JBUluQazmtklGKHsh3AWl7P4Ocuvt4C ifNE4N2DnyK7fO2FCJJtkKVFbhtfyb7O6tGbgANYqrfvyrYuDp+prCdHxheCG8hpoxskn2og qsgQHhZqwml0Fnn6p2v2dufbX1ZMhBsEkvKwTWR7KrOCaO6Bok0tI0S7F1d4LmuaUHu/Od55 p3o2fVs//BoTFQI=
In-Reply-To: <AS8PR07MB80693CCD7A91419F27B5DA33933C2@AS8PR07MB8069.eurprd07.prod.outlook.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/mmusic/Nhh0JJ52B72fzOLhfOrQ_Fi8zBo>
Subject: Re: [MMUSIC] [Technical Errata Reported] RFC8864 (7805)
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.39
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: Thu, 04 Apr 2024 12:28:35 -0000

On 4/4/24 12:03, Christer Holmberg wrote:
> Hi,
> 
> I am not sure what you mean be "pre-agreed data channels", but I was referring
> to applications that use both DCEP and SDP.

I was specifically referring to datachannels created with the 
"negotiated" flag 
(https://w3c.github.io/webrtc-pc/#dom-rtcdatachannelinit-negotiated) set 
to "true".

WebRTC, as currently specified, will ignore all attempts to negotiate 
datachannels using SDP, so those channels can only be created by the 
application parsing the SDP, extracting the information, and calling 
"createDataChannel" with "negotiated" set to true.

> 
> Also, your claim that the DCEP odd/even restriction would not apply for
> certain cases is (AFAIK) not defined anywhere. Also, I don't understand why
> the odd/even restriction would not apply in the case where you have pre-agreed
> data channels.

The WebRTC spec, at 
https://w3c.github.io/webrtc-pc/#dom-rtcdatachannelinit-id, does not 
mention the odd/even rule. For good reason; both ends have to call 
createDataChannel with the same value for "id", so it *has* to "violate" 
the odd/even rule.

> You still want to avoid stream ID collisions when using DCEP -
> no matter if you have pre-agreed data channels or not.

Of course. This is detailed in 
https://www.rfc-editor.org/rfc/rfc8832#section-6 - "The peer that 
initiates opening a data channel selects a stream identifier for which 
the corresponding incoming and outgoing streams are unused. "

And: "If the DATA_CHANNEL_OPEN message doesn't satisfy the conditions 
above, the receiver MUST close the corresponding data channel using the 
procedure described in [RFC8831] and MUST NOT send a DATA_CHANNEL_ACK 
message in response to the received message. This might occur if, for 
example, a DATA_CHANNEL_OPEN message is received on an already used 
stream...."

All this is well defined. RFC 8864 is wrong.

> 
> Regards,
> 
> Christer
> 
>> -----Original Message-----
>> From: mmusic <mmusic-bounces@ietf.org> On Behalf Of Harald Alvestrand
>> Sent: Thursday, 4 April 2024 8.38
>> To: mmusic@ietf.org
>> Subject: Re: [MMUSIC] [Technical Errata Reported] RFC8864 (7805)
>>
>> Yes, there are applications that both establish pre-agreed datachannels and
>> use DCEP. For those cases, the odd/even restriction does not apply; it is up
>> to
>> the application to rendezvous properly.
>>
>> This erratum removes the incorrect claim that SDP-negotiated channels are
>> capable of obeying the odd/even rule, bringing SDP-negotiated channels in
>> line with the rules for pre-agreed datachannels.
>>
>> Harald
>>
>>
>> On 3/27/24 11:48, Christer Holmberg wrote:
>>> Hi,
>>>
>>>>>>> The issues (AFAIU) is when the offerer sends the *initial* offer,
>>>>>>> with ACTPASS, and creates one or more data channels using SDP. At
>>>>>>> that point the offerer does not yet know whether it will become
>>>>>>> DTLS client or server, but it still has to assign identifiers (odd
>>>>>>> or even) to the data channels.
>>>>>>
>>>>>> Good point. At that point there should be no risk of conflict with
>>>>>> DCEP.
>>>>>> Maybe a revision is needed to deal with that.
>>>>>
>>>>> Yes.
>>>>>
>>>>> And, if DCEP is then later used to create another data channel, it
>>>>> needs to make sure that it does not re-use the same identifier (no
>>>>> matter if it is odd or even).
>>>>>
>>>>>>> Once the DTLS roles have been determined, the DCEP rules work fine
>>>>>>> also for SDP.
>>>>>>>
>>>>>>> (Personally I have never seen a use-case where both DCEP and SDP
>>>>>>> are used to create and manage data channels.)
>>>>>>
>>>>>> It is hard to envision a use case for it. But as I recall we were
>>>>>> trying to avoid precluding it. One alternative would be for the SDP
>>>>>> negotiation to include the choice of either DCEP or SDP for
>>>>>> negotiating data channels.
>>>>>> But
>>>>>> could that be done in a backward compatible way?
>>>
>>> The usage of dcmap does indicate such choice in my opinion.
>>>
>>> But, again, I cannot guarantee that there are no implementation that
>>> use both SDP and DCEP within the same session.
>>>
>>>>>> If we were able to verify that there is currently no concurrent use
>>>>>> in the wild then perhaps we could amend to say that use of SDP to
>>>>>> negotiate data channels precludes use of DCEP.
>>>>>
>>>>> It is difficult to verify that.
>>>>>
>>>>> But, as discussed above, if we say that in case of ACTPASS the
>>>>> offerer can choose either an odd or even value.
>>>>
>>>> It sounds to me like this is something you'd want to discuss should a
>>>> -bis document ever become a reality, but not confirm the erratum
>>>> as-is.  Is that correct?  If so, then we want "Hold For Document
>>>> Update" rather than "Verified" for this one, correct?
>>>
>>> We can discuss whether we should fix this using a -bis or an erratum.
>>>
>>> But, the current erratum should not be agreed in its current form.
>>>
>>> I think the first thing we need to do is how the solution would look
>>> like: the easiest solution would be to simply that say:
>>>
>>> 1)	If one uses SDP one SHOULD/MUST NOT use DCEP
>>> 2)	Remove the even/odd requirement when using SDP (at least when
>> using
>>> ACTPASS)
>>>
>>> Regards,
>>>
>>> Christer
>>>
>>>
>>> _______________________________________________
>>> mmusic mailing list
>>> mmusic@ietf.org
>>>
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
>>>
>> ietf.org%2Fmailman%2Flistinfo%2Fmmusic&data=05%7C02%7Cchrister.holm
>> ber
>>>
>> g%40ericsson.com%7Cb1e38f9c6c404579285108dc54696c5c%7C92e84cebfb
>> fd47ab
>>>
>> be52080c6b87953f%7C0%7C0%7C638478058969825780%7CUnknown%7CT
>> WFpbGZsb3d8
>>>
>> eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3
>> D%7C0
>>>
>> %7C%7C%7C&sdata=2F2msSXLsc9axwanuxC7N4%2B6w%2FwYD4cv9NqjTm3f
>> OsE%3D&res
>>> erved=0
>>
>> _______________________________________________
>> mmusic mailing list
>> mmusic@ietf.org
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.i
>> etf.org%2Fmailman%2Flistinfo%2Fmmusic&data=05%7C02%7Cchrister.holm
>> berg%40ericsson.com%7Cb1e38f9c6c404579285108dc54696c5c%7C92e84ce
>> bfbfd47abbe52080c6b87953f%7C0%7C0%7C638478058969838191%7CUnkn
>> own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik
>> 1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=1xdEPMYo26r5ZizOpgZ
>> UB%2Fs34kJB3PqN%2B4KcydN6LTQ%3D&reserved=0