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

Roman Shpount <roman@telurix.com> Wed, 20 March 2024 19:59 UTC

Return-Path: <roman@telurix.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 AF757C14F70A for <rtcweb@ietfa.amsl.com>; Wed, 20 Mar 2024 12:59:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 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_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=telurix.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 Hsqd3Zi_4BUG for <rtcweb@ietfa.amsl.com>; Wed, 20 Mar 2024 12:59:34 -0700 (PDT)
Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 6B37AC14F706 for <rtcweb@ietf.org>; Wed, 20 Mar 2024 12:59:34 -0700 (PDT)
Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-512f3e75391so242583e87.2 for <rtcweb@ietf.org>; Wed, 20 Mar 2024 12:59:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telurix.com; s=google; t=1710964772; x=1711569572; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uP7nCuERX87MznLPG6Lt2E74CzITfUCU29d1gyTURmg=; b=Ovy11T66tOqiYfWvbtR4JoUKZxPFE3JH/qIJW+h57FlqXYiUuelC4xk6gdA6tMty2W hv/vLsYhNvftYpENu9vXOZW32f3bAEW+uCINsu2pBojej6xnkDjJjTxv6UoUKslhDCEU hODN3MZAklPKcl9pBbwuX0wdp1E6qx9ZElxuE=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710964772; x=1711569572; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uP7nCuERX87MznLPG6Lt2E74CzITfUCU29d1gyTURmg=; b=buMbqJ3+XoIMAFDlo8ngrRmiNJWx9SnN6cXafjPxjuymVeRZbLjIE4EW3gGPW8ar2m hes5ExBxbCLrziLcNaoo3K6qyqOTaANtH3FLKRa1b4bT+2QTv/kUZYjT5KL6RBWLgFDz fUijEteN9zSUHsJVQqQLiIFd2sB3tb4lEyajK5BtxFZRLQN2JrnppQXP2jWc2thnnn4o Dj5LmiUMW5/yTDUK+ki0fO/BtpCjE7dEfQ5NYMImFTiA+uzl7EqFjgqRjW8jVqFTCrpu QK3xgZM1xU8Az6glLrZyRC3r0lYZ/52E4yulXsdol0uvnkH1CH2yC7bRWtsEw8/MXD8U CYtw==
X-Forwarded-Encrypted: i=1; AJvYcCUzWKIsh6Y4AF2pxAkkpJwH/wWMuInj09uKv8NXZfdragEFN5n+/ovRPUHyEZeVGceYTQrYWpI25QvBwmehazc=
X-Gm-Message-State: AOJu0YyK5G2B3lyXgu/tFz8VRCHv1XykWG+iO74AYD0XZq54W0dGOmcU sKZVvd4RWHJIA5RuN6b7lYaEYm8dGZlUU8cWN03sLziuXzzKhAJjmjpdrP7mhpeWyxpsu+lAk6v x1bM=
X-Google-Smtp-Source: AGHT+IHS/UBPfLlEeNJgIw5CfNL4PF2hd5A8LCbUxAKTopahStw3l7cWRfsiqLNguLqBaMyowt12gg==
X-Received: by 2002:ac2:5f94:0:b0:514:c829:13b3 with SMTP id r20-20020ac25f94000000b00514c82913b3mr4379007lfe.32.1710964772099; Wed, 20 Mar 2024 12:59:32 -0700 (PDT)
Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by smtp.gmail.com with ESMTPSA id h19-20020a19ca53000000b005139cbb1695sm2410627lfj.264.2024.03.20.12.59.31 for <rtcweb@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Mar 2024 12:59:31 -0700 (PDT)
Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-512f3e75391so242556e87.2 for <rtcweb@ietf.org>; Wed, 20 Mar 2024 12:59:31 -0700 (PDT)
X-Forwarded-Encrypted: i=1; AJvYcCUfVgLTPoU8FUTRyk3UoHwcQ2fQr8nFiM9wQsE35QpZRQBdf2ZF8dHCBiFyYvoQPn5IwORCvcdeSTG1xUxQ0H8=
X-Received: by 2002:ac2:48b1:0:b0:513:d20b:1d5a with SMTP id u17-20020ac248b1000000b00513d20b1d5amr4532210lfg.29.1710964770932; Wed, 20 Mar 2024 12:59:30 -0700 (PDT)
MIME-Version: 1.0
References: <AS8PR07MB80698924869ABC57A85B741C93332@AS8PR07MB8069.eurprd07.prod.outlook.com> <7372DBF4-492F-47FC-9C7C-C1C55FAD282E@gmail.com>
In-Reply-To: <7372DBF4-492F-47FC-9C7C-C1C55FAD282E@gmail.com>
From: Roman Shpount <roman@telurix.com>
Date: Wed, 20 Mar 2024 15:59:17 -0400
X-Gmail-Original-Message-ID: <CAD5OKxtp0RL4GKKnODgLCz6hRPszFzF0pWRj_Q5iAb+92rRwbA@mail.gmail.com>
Message-ID: <CAD5OKxtp0RL4GKKnODgLCz6hRPszFzF0pWRj_Q5iAb+92rRwbA@mail.gmail.com>
To: Bernard Aboba <bernard.aboba@gmail.com>
Cc: Christer Holmberg <christer.holmberg=40ericsson.com@dmarc.ietf.org>, RTCWeb IETF <rtcweb@ietf.org>, Henrik Boström <hbos@google.com>, Justin Uberti <justin=40fixie.ai@dmarc.ietf.org>, Harald Alvestrand <hta@google.com>
Content-Type: multipart/alternative; boundary="000000000000651aa006141d078c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/w_jHX-U8HkGtwZD6qftO8vBub10>
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: Wed, 20 Mar 2024 19:59:38 -0000

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>
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> 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> *On Behalf Of *Justin Uberti
> *Sent:* Wednesday, 20 March 2024 0.32
> *To:* Murray S. Kucherawy <superuser@gmail.com>
> *Cc:* Harald Alvestrand <hta@google.com>; RTCWeb IETF <rtcweb@ietf.org>;
> Henrik Boström <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. 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>
> wrote:
>
> On Mon, Mar 4, 2024 at 3:57 PM Justin Uberti <justin=
> 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
> https://www.ietf.org/mailman/listinfo/rtcweb
>
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>