Re: [rtcweb] JSEPbis: Questions about send-only/recv-only codecs and Section 4.2.6

Christer Holmberg <christer.holmberg@ericsson.com> Thu, 21 March 2024 12:04 UTC

Return-Path: <christer.holmberg@ericsson.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4DA35C18DB89 for <rtcweb@ietfa.amsl.com>; Thu, 21 Mar 2024 05:04:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.109
X-Spam-Level:
X-Spam-Status: No, score=-7.109 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, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ericsson.com
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 nzrXNce9N0DA for <rtcweb@ietfa.amsl.com>; Thu, 21 Mar 2024 05:04:28 -0700 (PDT)
Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2116.outbound.protection.outlook.com [40.107.104.116]) (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 D5159C14CF13 for <rtcweb@ietf.org>; Thu, 21 Mar 2024 05:04:27 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ePlxGvdiAuOvf5OjcBmrk+WO4xNt35MMPE0cwsuhdc8ZJdKScScI1VaiqQ6GfFjSL7SWFvZo0P3ytoDGrfv2G/F3OvK7JSXLwoYV2tTLh9BZKJP2Vh6IuCJn8zaLwmtipTi5uYL4Y9Ur/jZQMIOfMU/ZMN3bAvgxpOK0lvwH8iiqA/Y1kWAgrE1YfLLwCIHgNA6dF+d/Ma7X95SyCuSv7cFwMLRY22vLp0v0S/UMj04g3dUNTIePlgC+TDFbrdW3qb3efhsc6xc6RvtOSP8naSSN5sWXuilwHVUisHG+6Te1/lXAQQ3MjC2Eynsf7AC+7W6y8dTWPCPdl/6EF42uhg==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=s5z4Hd/JwGnPPxq5/4BEzGKJd+vaHf4zDh0u5ma0q5M=; b=Hft3YlnA2VnS+6IHNcsRTWqeo/xy6OUahuEhp2TlCL+kMUFiMpg/jsdkc1L9vbgakPSQCTIlwqMbH3c/b42ELLULRQ6VPqovbptCbGkYi1CjLmDO/Y4mxbyavoM5w64p/OoyeStZVVy4WLLzf3mO+KAnUHl06EXRlsAbDCLBKUrzMtRPg2sjZxY97AsQ3vfOmFOiW99RgPC5qmXijrBGdOhlXkuP+3ukMNs2gRR7cXRF7XA/jfqMyEeYSHjTR84KnIfkCnLDlxHUplYr1+J1tOKWXsMH0ItEbbz/AD9/U6BPXL+ObBKb5VBCJY/6bJslXlLxRPEqNoWI9w1JynCPZQ==
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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s5z4Hd/JwGnPPxq5/4BEzGKJd+vaHf4zDh0u5ma0q5M=; b=jykZevIW3L6/eIZOnEm698ok9xIigCJwc3LdqKD+RbW2RvYHqhxFi6QpiUBPCmI17aExbA9ODZPwqpxGJ0p5QbKWNM8joWNaBHX5jtiNnVRT+QAWmlXGRrVhJZClGRUhOot+hQZcMnwND+MAi9fNtVOEHsLeSVFWT6REfXDfo0V62LZ/1DEWBaUlz5qlWDBJ8PpeaX6L1A8/szLbX5E1jeLIU0+9D5L3pwL2j6HOhzkGbnVN807lJkmz/wqngYIBAzJwDEd7kW2kaET1M9bp3uVNpAcejGLB4v30/VAS742D/1DBNnrzIwFfQZO99CZT7uoA1aKnvBwrha2ktbyrsw==
Received: from AS8PR07MB8069.eurprd07.prod.outlook.com (2603:10a6:20b:358::7) by PA4PR07MB9656.eurprd07.prod.outlook.com (2603:10a6:102:269::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.29; Thu, 21 Mar 2024 12:04:24 +0000
Received: from AS8PR07MB8069.eurprd07.prod.outlook.com ([fe80::4e81:13eb:932f:c9e2]) by AS8PR07MB8069.eurprd07.prod.outlook.com ([fe80::4e81:13eb:932f:c9e2%6]) with mapi id 15.20.7409.010; Thu, 21 Mar 2024 12:04:24 +0000
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: Justin Uberti <justin@fixie.ai>, Roman Shpount <roman@telurix.com>
CC: Bernard Aboba <bernard.aboba@gmail.com>, RTCWeb IETF <rtcweb@ietf.org>, Henrik Boström <hbos@google.com>, Harald Alvestrand <hta@google.com>
Thread-Topic: [rtcweb] JSEPbis: Questions about send-only/recv-only codecs and Section 4.2.6
Thread-Index: AQHabD0BMOTRTyifNkOWzIIMkEDRi7EkYgUAgAA+ugCAAASsgIACc5mAgBctwACAAXtogIAAuHGQgAB/awCAAC+rgIAAohmAgABoxMA=
Date: Thu, 21 Mar 2024 12:04:24 +0000
Message-ID: <AS8PR07MB80690BA0762A3A9607998A5293322@AS8PR07MB8069.eurprd07.prod.outlook.com>
References: <AS8PR07MB80698924869ABC57A85B741C93332@AS8PR07MB8069.eurprd07.prod.outlook.com> <7372DBF4-492F-47FC-9C7C-C1C55FAD282E@gmail.com> <CAD5OKxtp0RL4GKKnODgLCz6hRPszFzF0pWRj_Q5iAb+92rRwbA@mail.gmail.com> <CAPn_nMPdZijTw6ZJivVy6e8tgJrT0W302CtmxTgODxu_0umEPA@mail.gmail.com>
In-Reply-To: <CAPn_nMPdZijTw6ZJivVy6e8tgJrT0W302CtmxTgODxu_0umEPA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: AS8PR07MB8069:EE_|PA4PR07MB9656:EE_
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: Z/3cxMYGCg29JNWPlcYxM8DsTzqQSXgTPQHiASVeOTpFPN+6bwhVbMwcSS8qe7OGUDepc9d7rwGOkKS67HFAjU6f/ergL5wJzCwc5LzNmxr+CQTHemzVfTtsHQZhrzXtDeTMTYSDYYb2gz4LpgvU3N+zy0JfvWe57tVFARtEQBIooC4IivM7QtYyGYNTunCyS45yBx1ktRqQBcChvvvbmXhW6efKwaWUMMnqpBczROz5BNTechSZtn5Tj/ZK8iKkYMVNODbZZmFsYH/7QJTZ3c72/K4FcRM06KHHnNt8ZNUvpsj4am6mbImQqGwS7g+WCQ6L+HkPztL13M8x0y2h2m91qzqX6/xmEKSFc1jAO2iM3G1AenCR9aWQ5MRX8Gyp7erMKmYDekGwgoTUYXyfr/D3PjBaGqW6r/QAqXIR1ADYZEoobKIh4eEsL99UoxkWmrtgoS5CGuh/xgOYBg1yztb/ajKRaZMSdgT7x/pQ2HdFxEScz11vgNL8UCFwYvqFs0xepWnbpTDQkMWAERUYG81Gs7+7qrJsFcbo6PtSpfCrQqgZc8XjNjAn20mnq84p0LwDFEvvZTBPzhTYcgh4vfpDt4Opx3ts5/KfAyzzGUk=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR07MB8069.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(1800799015)(376005)(366007); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: HrG8eIBKOJujn7d+BmoNuxiDEf4JIuaIyDjMmZQLC1oypczAL7NMik94Fo2ZTxj50reWR0cQtAbglZOgqEsNAqnd7YwaHoARvnL5LwmWV+ViaOUguuJZDEVUKre2TPvRhZMYzEWT8tQIbukSnm9hPpDEY72zYgpfZqL/52ZH8ygA9+JPCV9xTOfmg1rcJCU+rm98W2gnsgJqSIW/ux6+eecbBEx+bHbsCLJAi5ch2VDtEe/uMN2EZ0RxrwPVYTKYFKPm/8g5wGrVzJiBMB851e3xnbjLv+BAIP2zTzxJRPaqsZxHZ3+YM6DHsjUYpa+77CxLQwdyHb6oqcFCz9iZfGcTxF5KvP0swShzALWsa4BiULUeauozHF3SJq4xTQGOoXDFtfnKSwSggtwL1OtkMk4F+fIrqM0IrlaIXKUHiijlZshl44KmJRFRyeevsaOwuQtxxnE23HTfQZXVXZAmq+iEFzvWvwSr1oVtrcgad9YTm/OLgxfUsUpp77pR1Qmmcd7iQcmPPPVpow10TDyzJUCvM3pw8qiJcGpjefpgifb4cRGGWu3INfm+TkTbEM7SO8E8Ggdi0xmA4NetjXGGIe4MWOH1VyWpzW3iJUyWdekgGT3xxQ6fHkFdnqOvcuSaDG9LnzFEPGmICrcysusoG/ZPakr3dk7+dtYWgNj3oeRPFrC7O8nbXBxBZF9tW9aarvlsNK0EQGVmXVgqtd4Jjr+G7bUCz/Z5qEnrwcHLJ6dU6ZIGivdqPiYFsf8zPQHON4XPn2DRZ0n16GiESm4dkfkN6zWnpzlxcntN9DLoAlrlPJ+POdTNM6T3rcz6FTfPM+r0Rvartl9shjF5A4LfRCLCxeQSSyAZDUXgAVA+50XNZ4EOPhLGVbGIZ/is2NjHGgqGJMmfXax6uxWynBRTVis7wrJnpY2chY5sRGF6p3Xj4JRaxJiK+O4UN6onTxKgM42OiBTk+0NaKWIR7KPKbbloCfezlnlR+ZgWPYUHAGLdlcmSgf1xNVlRowuDvI/AC5PSapJRBaZeJJRwi3JuvN1K+Ig/trsnjHbLIsX+wclqSNu0dgzubGoRHHnQOeyq5dKaUESbUfA6X1com2ACICA8/Mhv3EmxErhZXmnDvaiYw7/DLJYV9QmR0/6mPup2mU4GJL+atiW8Z6W4U8x0EAwtxfloEyPJKZvm+IK7B82CRKSWKogRFg2yBg4udRswof/Dqew5JlC+M4Hr+BKeHrhq+tlaEGm6Ym/zn6rnLoex3TK2frky5S+iNfKcr7q25Zw1HaXmCSLpZ08ixac30cSGtH7/DezFNEtEzofQsflZS+KlYX19ayX5VNZ0S4kjwpoLwHO3Lc3pF8WlB3D5a+Pw/WyYidkEpvJutAjEcUpAJx1WkW79lYuiEngTx11tv17JHEjHZwOHIsr3znXSOVFC6v7eiuoxZ5H07V9Evl/Af5wFchXuokHYa+KVntVk4zmT1zJh15sX9gHVNDzI73Hlh7XZE7dI3IUXAX84Lxq+KUbbE+Vd7BphTKZGgjP8orDQfn7LEdcrrsq33G7xCa6i9AdDlxlekt93rnOeFvJ0mtMiB5QstEPRayHIDz5p0G/vB6aKLfSX1alz07X/OQ==
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="SHA1"; boundary="----=_NextPart_000_00A4_01DA7B98.ACCD92D0"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AS8PR07MB8069.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 86bb471a-656d-4ae5-d05a-08dc499f0ca4
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Mar 2024 12:04:24.0336 (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: TdFWVxi1idStgODbgUfXwcA6+ztNgX52myLNR0d3n6cCkk8ippnIumofMfTLeIZBRpo6KSNwcMf5bK75cz+vs51J4WHAqJ2azDOAgusAXX0=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR07MB9656
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/eNbCPR6ugu0y9EAIlFyh_5z5D0s>
Subject: Re: [rtcweb] JSEPbis: Questions about send-only/recv-only codecs and Section 4.2.6
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtcweb/>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 21 Mar 2024 12:04:32 -0000

Hi,

I also agree. sCP impacts what CAN be sent, because it impacts the offer. What WILL be sent then depends on the outcome of the offer/answer exchange, and (I assume) implementations. As far as I know, from a standards perspective there is no mandate to send the codec with the highest preference in an offer/answer. But, perhaps that is what implementations do?

Regards,

Christer


> -----Original Message-----
> From: Justin Uberti <justin@fixie.ai>
> Sent: Thursday, 21 March 2024 7.39
> To: Roman Shpount <roman@telurix.com>
> Cc: Bernard Aboba <bernard.aboba@gmail.com>; Christer Holmberg
> <christer.holmberg@ericsson.com>; RTCWeb IETF <rtcweb@ietf.org>; Henrik
> Boström <hbos@google.com>; Harald Alvestrand <hta@google.com>
> Subject: Re: [rtcweb] JSEPbis: Questions about send-only/recv-only codecs
> and Section 4.2.6
> 
> I agree with Roman.
> 
> On Wed, Mar 20, 2024 at 12:59 PM Roman Shpount <roman@telurix.com
> <mailto:roman@telurix.com> > wrote:
> 
> 
> 	Bernard,
> 
> 	sCP affects which codecs can be sent on both send-only and sendrecv
> m-lines. Specifically, it proposes which codecs are allowed and their relative
> preference to the answering party. The answering party decides which
> codecs should be left in the list based on its preferences and supported
> codecs. So, during the offer, it controls what is being offered (which does not
> guarantee that it is what is being used), and the answering party decides. The
> m=line direction is irrelevant.
> 
> 	_____________
> 	Roman Shpount
> 
> 
> 	On Wed, Mar 20, 2024 at 1:09 PM Bernard Aboba
> <bernard.aboba@gmail.com <mailto:bernard.aboba@gmail.com> > wrote:
> 
> 
> 		The problem is that for a send-only m-line, sCP does affect
> what codecs can be sent.
> 
> 
> 			On Mar 20, 2024, at 02:46, Christer Holmberg
> <christer.holmberg=40ericsson.com@dmarc.ietf.org
> <mailto:40ericsson.com@dmarc.ietf.org> > wrote:
> 
> 
> 
> 	
> 
> 			Hi,
> 
> 
> 
> 			In general, I don’t think the spec should say whether
> something affects an implementation or not. How do we know what affects
> what in an implementation?
> 
> 
> 
> 			If we want to clarify something, we could say
> something like “sCP is not used to indicate which codec an implementation
> shall send”.
> 
> 
> 
> 			Also, maybe the statement that sCP only affects what
> an implementation wants to receive should be in the first sentence of the
> section? Now the sentence only talks about “codec preference”, which I
> assume can cause confusion.
> 
> 
> 
> 			Finally, if there is text somewhere that DOES define
> how the implementation shall decide what codec to send, there could be a
> reference.
> 
> 
> 
> 			Regards,
> 
> 
> 
> 			Christer
> 
> 
> 
> 			From: rtcweb <rtcweb-bounces@ietf.org
> <mailto:rtcweb-bounces@ietf.org> > On Behalf Of Justin Uberti
> 			Sent: Wednesday, 20 March 2024 0.32
> 			To: Murray S. Kucherawy <superuser@gmail.com
> <mailto:superuser@gmail.com> >
> 			Cc: Harald Alvestrand <hta@google.com
> <mailto:hta@google.com> >; RTCWeb IETF <rtcweb@ietf.org
> <mailto:rtcweb@ietf.org> >; Henrik Boström <hbos@google.com
> <mailto:hbos@google.com> >
> 			Subject: Re: [rtcweb] JSEPbis: Questions about send-
> only/recv-only codecs and Section 4.2.6
> 
> 
> 
> 	Some people who received this message don't often get email from
> justin=40fixie.ai@dmarc.ietf.org <mailto:justin=40fixie.ai@dmarc.ietf.org> .
> Learn why this is important <https://aka.ms/LearnAboutSenderIdentification>
> 
> 
> 
> 			I don't think any changes are needed in RFC8829bis, I
> believe the text in S 4.2.6 is sufficient.
> 
> 
> 
> 			If necessary though we could expound on the
> sentence in 4.2.6 that says "Note that setCodecPreferences does not directly
> affect
> 			   which codec the implementation decides to send"
> to make the intent clearer.
> 
> 
> 
> 			On Mon, Mar 18, 2024 at 4:54 PM Murray S.
> Kucherawy <superuser@gmail.com <mailto:superuser@gmail.com> > wrote:
> 
> 				On Mon, Mar 4, 2024 at 3:57 PM Justin Uberti
> <justin=40fixie.ai@dmarc.ietf.org <mailto:40fixie.ai@dmarc.ietf.org> > wrote:
> 
> 					The idea behind the text in red is an
> explicit callout to the fact that the implementation may decide to use other
> mechanisms (e.g., RtcRtpSender.setParameters, CPU or bandwidth
> limitations, etc) to decide exactly what should be sent over the wire.
> 
> 
> 
> 					Also, this API is intended to directly
> influence signaling, i.e., the set of codecs that are offered. It is not intended
> to directly control RtpSender settings.
> 
> 
> 
> 					I agree with the point that the
> operation here may seem a bit weird for a sendonly m= line. That said, I think
> it is entirely consistent with RFC 3264 S 5.1, where a) what is offered is
> primarily intended as a guide for what the answerer will actually send and b)
> the answerer may choose to send whatever it wants as long as it uses a
> format from the offer.
> 
> 
> 
> 					I think keeping sCP focused on what
> goes into the actual offer will make it easier to reason about this API.
> 
> 
> 
> 				Are there any required changes to
> RFC8829bis, which is in AUTH48?
> 
> 
> 
> 				-MSK
> 
> 
> 	_______________________________________________
> 			rtcweb mailing list
> 			rtcweb@ietf.org <mailto:rtcweb@ietf.org>
> 			https://www.ietf.org/mailman/listinfo/rtcweb
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww
> .ietf.org%2Fmailman%2Flistinfo%2Frtcweb&data=05%7C02%7Cchrister.holm
> berg%40ericsson.com%7Cfa5d70171771406ec8ac08dc49694d5c%7C92e84ce
> bfbfd47abbe52080c6b87953f%7C0%7C0%7C638465963819078210%7CUnkn
> own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik
> 1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=5x3iil8JuQb2Rx%2FGLL5
> mhKzLLNhdjopeAaHVIC3PAVQ%3D&reserved=0>
> 
> 
> 		_______________________________________________
> 		rtcweb mailing list
> 		rtcweb@ietf.org <mailto:rtcweb@ietf.org>
> 		https://www.ietf.org/mailman/listinfo/rtcweb
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww
> .ietf.org%2Fmailman%2Flistinfo%2Frtcweb&data=05%7C02%7Cchrister.holm
> berg%40ericsson.com%7Cfa5d70171771406ec8ac08dc49694d5c%7C92e84ce
> bfbfd47abbe52080c6b87953f%7C0%7C0%7C638465963819088277%7CUnkn
> own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik
> 1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=k4nIYCeV5CE%2BCvcWc
> l6ihw85VamTOb1kwPH1ESy8tes%3D&reserved=0>
>