Re: [MMUSIC] [rtcweb] Updating JSEP and BUNDLE: Semantics of same port in multiple m- lines

Christer Holmberg <christer.holmberg@ericsson.com> Mon, 01 February 2021 18:52 UTC

Return-Path: <christer.holmberg@ericsson.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 49FDB3A13C5 for <mmusic@ietfa.amsl.com>; Mon, 1 Feb 2021 10:52:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.351
X-Spam-Level:
X-Spam-Status: No, score=-2.351 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.25, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-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=ericsson.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 7tMF-pGV5-0Y for <mmusic@ietfa.amsl.com>; Mon, 1 Feb 2021 10:52:06 -0800 (PST)
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130053.outbound.protection.outlook.com [40.107.13.53]) (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 3A1AF3A13C4 for <mmusic@ietf.org>; Mon, 1 Feb 2021 10:52:06 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tu5Y95ZfXX5An4zkivY68o9gXjm2ad8jk243hovt+KvVc41j3pNH5YC42f31dI5Fu8t3r0XTUckUE7oIfG+d0L5sOKpNbhJ3HjQ7IDtBp/5f4dzaVUNpFIvHjubGPbzp/uPYgyTVpX0eLmK0QdC0GBZ8P43szw+5Zz8FafwWSs7AOx3LRl2QmEKrKoXtiilPSMBlCQPfXgZbOZEl5SQoa08gY5j5t9rbxCQi29pt3v9Eeuir+PiUk3gclKjtlPJySMCU8NqbYK4SKusKsHzPLhX3XIudEzImWr9lhX7ZIFf7/vFIz5bi5/4mjqV41BldQqjhgLfBFAkjZg4D35wWbg==
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-SenderADCheck; bh=2YQgxeoAJ9nNnLPvQ37lPsX+fOvMikbGzcb0nrksdEU=; b=cExlQyZQMQ839c+9DUfqGpuxNnVigtgkwQSKGJAJYV6DCvZG8bEyIU2BA/OEqulyjRCaoD30ducBCM/03xd5o4zekKWubgiDghFQJGVsOfzLA6RY2JhhyjSYGjBJl1ZunyhLbC6obV/lMsnRpx9c0nY/GTZ2ZvIlxbCM9uOn4ov5eNvU+Y/IBvwEnZNU05lF8Zf5THEgEmWfhY+mCh+Fgfoh1vvEYXkz1XQIHhegsY6UyHguff1onM6NDFGi1fr2OVI4QQmZVf5uKOsRZvQyX9MCt+Ku79ZuBh/e6w2DQdC4wqXOUV4KiWmGLPVAPRNG9iqyrgVODtFicipi+4MfLA==
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=2YQgxeoAJ9nNnLPvQ37lPsX+fOvMikbGzcb0nrksdEU=; b=eUK4rOA3l1ZwPOSXCE5cnEqBcH/lTxabkGNi8m1kkx6x5quv5rfpac+zN68JuNEdMkguP7HQZq/ESUrJomti7YaV/82jEh87vUKXHaU2j3Vz99eFmekTL/9Ge9/MXGd4+42ABpBj1vTVYvTI5vQuEtvEbw79JWgc9ILcbBkpcco=
Received: from (2603:10a6:208:4c::18) by AM0PR07MB4450.eurprd07.prod.outlook.com (2603:10a6:208:7a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.8; Mon, 1 Feb 2021 18:52:00 +0000
Received: from AM0PR07MB3860.eurprd07.prod.outlook.com ([fe80::e0b4:28dd:684:daf6]) by AM0PR07MB3860.eurprd07.prod.outlook.com ([fe80::e0b4:28dd:684:daf6%7]) with mapi id 15.20.3825.015; Mon, 1 Feb 2021 18:52:00 +0000
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: Roman Shpount <roman@telurix.com>
CC: Paul Kyzivat <pkyzivat@alum.mit.edu>, "mmusic@ietf.org" <mmusic@ietf.org>
Thread-Topic: [MMUSIC] [rtcweb] Updating JSEP and BUNDLE: Semantics of same port in multiple m- lines
Thread-Index: Adb1Vs/x/jNCHbJVTdK9SFxwJbuGVgAqwAcAABot92AAFvdiAAALnAsgABBkTwAAAYWJ4AAGx9KAACiWwfAAGFs3AAAFovVAABH/NgAAAUipoAAAqjsAAAIBKQA=
Date: Mon, 1 Feb 2021 18:52:00 +0000
Message-ID: <AM0PR07MB3860F856012F9011B446FD2E93B69@AM0PR07MB3860.eurprd07.prod.outlook.com>
References: <AM0PR07MB3860A872DE7E09ED79FE4EAD93BA9@AM0PR07MB3860.eurprd07.prod.outlook.com> <CAD5OKxuvMzNGHnk2tGM9yjUBYz9EGdEj8kNO=a4d-SiBiA42jA@mail.gmail.com> <AM0PR07MB38600ED79AA323A8C38098AB93B99@AM0PR07MB3860.eurprd07.prod.outlook.com> <CAD5OKxsLL=+DLu-D2y-rOFGMDpKXgsWhVDFLiWS1k68LhwU8Dg@mail.gmail.com> <AM0PR07MB3860D4EC744D231497EFA5F993B89@AM0PR07MB3860.eurprd07.prod.outlook.com> <CAOJ7v-0juBeH3g4MY6jSj+pRnk6+CBFt24p9jFQ+Fwd4qjp_nw@mail.gmail.com> <AM0PR07MB38600147C590A3D84054036D93B89@AM0PR07MB3860.eurprd07.prod.outlook.com> <CAOJ7v-2oL-YP=CGUkCZ8NuP5xPur0z+BK3qZZTdHCNxQZ16HqA@mail.gmail.com> <AM0PR07MB38609424137713FAA193CAE193B79@AM0PR07MB3860.eurprd07.prod.outlook.com> <CAD5OKxshWvy69fs5tgrME9CT6YV6eaqR3K5w8mOQEnm0CcyMpw@mail.gmail.com> <AM0PR07MB3860F88FFE187446FBDB786193B69@AM0PR07MB3860.eurprd07.prod.outlook.com> <49cd0938-1f48-8a00-69b0-8063b99282b3@alum.mit.edu> <AM0PR07MB3860F7CF9926F51856AD5FED93B69@AM0PR07MB3860.eurprd07.prod.outlook.com> <CAD5OKxv728xY42iv39wA1EW3XUw-LPRDKAG=6-Jr67mA=sBfhw@mail.gmail.com>
In-Reply-To: <CAD5OKxv728xY42iv39wA1EW3XUw-LPRDKAG=6-Jr67mA=sBfhw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: telurix.com; dkim=none (message not signed) header.d=none;telurix.com; dmarc=none action=none header.from=ericsson.com;
x-originating-ip: [80.248.247.159]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 202beb86-3af5-4041-e733-08d8c6e27506
x-ms-traffictypediagnostic: AM0PR07MB4450:
x-microsoft-antispam-prvs: <AM0PR07MB4450560D789E2A08B1E61BDC93B69@AM0PR07MB4450.eurprd07.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: 8l/zH3TOX3icyISVoZYbUTClTOKI1lcghqFxBXTbxtqpQZBSAnFR6GY+KBngIxz5zbAzvWx1eHRzsPVATY0PRurvPKVPR/1FwGxwMYimxVaYVexQFlSX4qZGdAz8HZrSnQ56JKfyrNeOB+jJNPnUeqVAvqZ249EtfIouMNexahxjUVduPpgcEz4b+NrCA5rKU+kc9+2aR1juF7TT1jsBNYU3Fp5ESYs+fJw2xHmaEqbFLc9//Le3FpApFsFKtthq5RMRUpSYRDtunKA70cHy8k6nNtv94dGSaUMXREV9HdNZZUUV9rM0DCSzHkyceRxI9ZpxxdF+4sLAHMSIMBqh/7+DD/l/Ndit0kPSb71leSE2c68L6bo4PpBaelzBbeiTzxMx3PrsB0rvvzYalYj9S2P8ypV6UekNTE5mU7ATP6zGV/NCYVLS/s2Rg/CLpJwUcR0r+PRhkhOHkYAVLF9S+B4eMZxQk/pl6802wbhWuuX9AeUPxgjpGMCIiodqTCofCcTM+0ibIREGQq1dlS1EaA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR07MB3860.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(396003)(346002)(366004)(136003)(39860400002)(4326008)(8936002)(2906002)(55016002)(5660300002)(9686003)(6506007)(6916009)(186003)(33656002)(86362001)(26005)(71200400001)(44832011)(54906003)(76116006)(316002)(66476007)(66946007)(8676002)(7696005)(478600001)(66556008)(66446008)(52536014)(64756008); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: =?utf-8?B?SThnUXhCRWY1SjNnREx2ejE4dEVFTXBuRFZ2ZjFhTXc4aTNqT014eHZwVlM5?= =?utf-8?B?SzJqOXFOdUdrUC9wa01EaGJDeHNaeDZiTlpVa0piV1lxR01nVUY5bWdKVFRC?= =?utf-8?B?SlFJRjR3VmdnTG5RWFcyQ0lRYlk3RVlVUktTa1VZTFYxQlp3bTlDWjJZMTVx?= =?utf-8?B?Q2hERjdFZERpY3hyV0RjbXZxa2lTSWpCTCt6dTZXcmhXYUN0T0JNaWJsSzVn?= =?ut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TAyWkpjYTZaOUV5?= =?utf-8?B?WFpvbGlXZWRlWUpjYUs1SWdYa2EySVYzb0pFV1NEZEZGNG10ZnlLTEQ2TGli?= =?utf-8?B?eFMyTWpqdmVkMHhtbEFGTGoyUXBSZ2ZVTW81NFhVTEtEdlJmaXg4V3FWSlNX?= =?utf-8?B?TXRlR0poeFdxd3J3bnJRZ1VuZEVvNXlXcmR6T2U2Q3gwdVE5RDV4SjB5NG9V?= =?utf-8?B?Qml1cG8rc0dFOFFLN0MrQTZRMXNpeitXdmhGZGo3bkxvN0Zld2FkZkh4N2M5?= =?utf-8?B?ckloVU8rT1JLd09udUhxRCtWYVduVS9GY1hjdmZ4STF3Q2ViR0s0Vmk1WGhL?= =?utf-8?Q?nuEchjz7?=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM0PR07MB3860.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 202beb86-3af5-4041-e733-08d8c6e27506
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2021 18:52:00.0430 (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: JUBzss7atxaVTnLVI589OAQq9X6nLBxrzxjJYov87LjUdYXefRJ36DhbirV+CmOMut4MomYKOswM750hTluAB6yg942vzs7IixQakYE5IiI=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR07MB4450
Archived-At: <https://mailarchive.ietf.org/arch/msg/mmusic/zXmYAT8rzsNmEcJxMnr2vY2ufls>
Subject: Re: [MMUSIC] [rtcweb] Updating JSEP and BUNDLE: Semantics of same port in multiple m- lines
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: Mon, 01 Feb 2021 18:52:08 -0000

Hi,

>>>>>> Sure, we could have done that. However, as has been discussed that in the past (in MMUSIC, SIPCORE etc), we typically don't describe situations that can occur when endpoints behave strangely, because it would easily become a slippery slope.
>>>>>> Also note that, in addition to bundle-only there can also be other attributes that have been copy/pasted by the remote endpoint.
>>>>>
>>>>> This is not "endpoints behaving strangely". This is the expected behavior of an endpoint that does not support bundle.
>>>> 
>>>> I don't think copy/pasting attributes you don't understand is expected behavior. That in general can cause lots of problems.
>>>> 
>>>> But, I do buy the argument that some endpoints do that, and that it is not (as far as I remember) explicitly forbidden.
>>>
>>> Shooting yourself in the head isn't AFAIK explicitly forbidden. But unless you understand and desire the consequences it is generally an unwise thing to do.
>>>
>>> I don't think an IETF document is obligated to protect against people doing either.
>>>
>>> Also, if we have an implementation that doesn't support bundle that is copying an a=bundle-only it doesn't understand, won't it also likely be copying a=group:bundle and a=mid???
>>
>> My understanding was that it only affected media-level attributes.
>>
>> But, sure, in theory an endpoint could copy ANYTHING it doesn't understand...
>
> The issue is how does an endpoint generate an m= line to refuse something that the endpoint does not understand. For instance, the endpoint gets an application webrtc-datachannel m= line but has no idea what any of the SDP attributes mean and which ones are required to form a valid m= line. 
> The simplest way is to refuse such an m= line was to copy the entire m= line in the answer and set the m= line port to 0.
>
> As far as the endpoint is concerned, there is no difference between a=sctp-port or a=bundle-only, if neither are supported.
>
> If this is an invalid procedure to refuse an m= line, please point out where it says this is invalid and let me know where the correct procedure is described.

In my opinion the correct procedure is to set the m= line port to 0 - nothing more, nothing less :)

But, as I said earlier, I don't think it is explicitly forbidden to copy/paste unsupported attributes.

However, Section 6 of RFC 3264 does say:

   "An offered stream MAY be rejected in the answer, for any reason.  If
   a stream is rejected, the offerer and answerer MUST NOT generate
   media (or RTCP packets) for that stream.  To reject an offered
   stream, the port number in the corresponding stream in the answer
   MUST be set to zero."

There is nothing in the text about inserting attributes.

Regards,

Christer