Re: [MMUSIC] Finding a max length of "a=mid" attribute

Paul Kyzivat <pkyzivat@alum.mit.edu> Thu, 04 March 2021 17:06 UTC

Return-Path: <pkyzivat@alum.mit.edu>
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 3FEE33A1101 for <mmusic@ietfa.amsl.com>; Thu, 4 Mar 2021 09:06:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level:
X-Spam-Status: No, score=-2.002 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, NICE_REPLY_A=-0.001, 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=alum.mit.edu
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 8Fn9XHQ7MiFs for <mmusic@ietfa.amsl.com>; Thu, 4 Mar 2021 09:06:39 -0800 (PST)
Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-eopbgr750059.outbound.protection.outlook.com [40.107.75.59]) (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 7CC033A1109 for <mmusic@ietf.org>; Thu, 4 Mar 2021 09:06:33 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d2AnzU2NYyaR2vobzdAkjNLZh5HH8+0JZuvGSbAus3EDTKyBK2MtEJ6epCqvXZdIqBXlkjTCUjCyL3TRgihdmrk7LEddgF9p7U/jpoBIcH+PGr1Zu19rFKUODz9R9ARzBBWsc76X0hHCdtJZAYoFuqY9pfnPJWySBfyLa/owiDJtL0bgkGqrI7nIoh3CQf/mLr7ntEPGnVNnzPLJ8OWtCxkCqKDFf62JxKmr0F9a8TfLdlEW459ZSz+FgGlNGR9GdlVxhotuSXDFYc6s59B70YJ7moWkXSwlyXOLXNHaqw11c5T4P6NVrBZ+8NdpXjIUgsIWviWjJYPNmKDzqiZNHA==
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=oQaPLuQ5ciQpmNP9XKfsN68OHN7I50NGNIkMN/l7Cac=; b=mdbAFipmY7EIUB+OWW00afmutIKZnL0OOaSQcV85ZlV70Qf/AQARJzM99HrIJ3ddI87j3Oba9N2HS17DEqnBXQKR9un4HDTT2IdAThL9lxAX7XkQohxKWNyLPL3luYBXZFBQdAGOVaQoJjrWCMDPSz/ihom7fZhy2Gs8eYJSK8mlrr94yr/dSaRop0NPItBQGEE8eLmFpbaeLAt6P6U1v0q4Qn3lolSuptkFAHqxjOQz0Xon1PKpXRwh7bCTtYLuuH6Dma80fsXQwz0QcKOLiJ7wdRT/wq8zLjlYoUgm5e/vfsxjgTucct5OaViR9fHpZ89JwbEBvpkzTB5Dv3IFPA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 18.7.68.33) smtp.rcpttodomain=ietf.org smtp.mailfrom=alum.mit.edu; dmarc=bestguesspass action=none header.from=alum.mit.edu; dkim=none (message not signed); arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alum.mit.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oQaPLuQ5ciQpmNP9XKfsN68OHN7I50NGNIkMN/l7Cac=; b=SEtllyh5XEr9XiLmfX8KmTLJMWscRyULJvRjQwRtFeuQiuMUOY4xc92hSJwj0lykUOpmr7a+6gfAR157sjJg66a7JrR7IwwI6/toGcl5/UcY2rjYqrerhP+UZp2Rsbc+nHfdRMfy5+gtC+dqAYA1DUJNdCVDaVzZbt/yUYYmAEQ=
Received: from SA0PR13CA0016.namprd13.prod.outlook.com (2603:10b6:806:130::21) by MN2PR12MB4469.namprd12.prod.outlook.com (2603:10b6:208:268::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17; Thu, 4 Mar 2021 17:06:32 +0000
Received: from SN1NAM02FT049.eop-nam02.prod.protection.outlook.com (2603:10b6:806:130:cafe::bf) by SA0PR13CA0016.outlook.office365.com (2603:10b6:806:130::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.11 via Frontend Transport; Thu, 4 Mar 2021 17:06:32 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 18.7.68.33) smtp.mailfrom=alum.mit.edu; ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=bestguesspass action=none header.from=alum.mit.edu;
Received-SPF: Pass (protection.outlook.com: domain of alum.mit.edu designates 18.7.68.33 as permitted sender) receiver=protection.outlook.com; client-ip=18.7.68.33; helo=outgoing-alum.mit.edu;
Received: from outgoing-alum.mit.edu (18.7.68.33) by SN1NAM02FT049.mail.protection.outlook.com (10.152.72.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.19 via Frontend Transport; Thu, 4 Mar 2021 17:06:31 +0000
Received: from MacBook-Air.localdomain (c-24-62-227-142.hsd1.ma.comcast.net [24.62.227.142]) (authenticated bits=0) (User authenticated as pkyzivat@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.14.7/8.12.4) with ESMTP id 124H6TmU006702 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for <mmusic@ietf.org>; Thu, 4 Mar 2021 12:06:30 -0500
To: mmusic@ietf.org
References: <463c848c-d171-7184-d65b-9ea95438d442@alum.mit.edu> <CANKS34fmzw3TNJVJhkUQvWv+EM2SCuEZcp7JgyZbN-p7iqMxfg@mail.gmail.com> <bfd34ef4-d081-c1e9-9985-da1e1b794c58@alvestrand.no> <CA+ag07budQbg1qKa+rR939sQ2CP2aAmnd8jDL93e1_B=QuonQA@mail.gmail.com> <CAOJ7v-2n2UsV58KzVMG-M9fNW1w-HTOtp5=8z0ZD6FazTOJUDg@mail.gmail.com> <6754fb36-2efe-4e8e-8b8b-5b43cb8db2d3@www.fastmail.com> <16C4A933-22D1-4427-9C5B-0A52611D3FB5@mozilla.com>
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
Message-ID: <ab24ee24-9f40-5e92-e72f-a454eeecdd26@alum.mit.edu>
Date: Thu, 4 Mar 2021 12:06:29 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.8.0
MIME-Version: 1.0
In-Reply-To: <16C4A933-22D1-4427-9C5B-0A52611D3FB5@mozilla.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-EOPAttributedMessage: 0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: b773ca7a-2006-4fd8-fb6e-08d8df2fdbec
X-MS-TrafficTypeDiagnostic: MN2PR12MB4469:
X-Microsoft-Antispam-PRVS: <MN2PR12MB446988D9CDDE5AF94653ADB5F9979@MN2PR12MB4469.namprd12.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:9508;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: hl3mD8DqBgZCLVNbPCQ4fgfwzAHgX4Opi1wdGr/I4uB2r8fwsXfqWWJY/NX3+wkt+qyIVrbwTaMfB9OV4y7qh946Lx+Ih+OIl16fHyRPIBDH0xLZAUrbSN5av1KYXxaImixMJFaIC9kBwJR6QqTK9oAUUY7H0G69Jz2I8x1KqcMuL3tLaQW0z/7tc/M0VMBWeNeRAU0fIrcY4U1bv82uKL+i8JgOHX/VIGxr82RXCln4BUcEw0ZplrrHbBTkZXN/xqdHTKP4sTTQyHnm377QH0UzoPtTo5dw/ZZcYHsnrqU04FQ70Pt4I3VZj/jFVqPb0wCL6mgnRNewo7hn+oeDEs/qaJFWryEvK6Gm+Cavkj1k+4HVZWINSRJtKHr2Ocsd2mZ/b/w5Zg7Tt+JokLcvVxngAlFEBNa1J+IgW7P67vFGzHcngIg7pbzMFaONcm+IUHwfk/xjgQ+0Zs9frbE+WYgJiqUXNdICzNT5H87LsHNBhynIH4rxUfcDJYcpg3elpb09irzIT1560wlvkKiLGBBWZq+YnORzWp9+ZBuu345E0ZRGi3rjRjK8E/7YgLQqcBdkc2vz4tQLrOJtdtDUXqMIuFGjyTII5pKwAbP3nOIuHlxAHBB7qMobh1s1bCViOZjvfvzNHLp8g8L/K/ogxNgBUGAV8TNOL91O9yef+aAaP1hIMjxbYwQkOn2A++lpnUsTcub5xqTa2uBrt/hDJ5lwSrhwg2G1TGpBvJVH8yEdpsV5i5z+okhiILQ6epVZdkSLjshINJg/bL8SqooxKg==
X-Forefront-Antispam-Report: CIP:18.7.68.33; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:outgoing-alum.mit.edu; PTR:outgoing-alum.mit.edu; CAT:NONE; SFS:(39860400002)(396003)(376002)(136003)(346002)(46966006)(36840700001)(53546011)(82740400003)(2906002)(336012)(478600001)(31696002)(75432002)(2616005)(5660300002)(86362001)(966005)(956004)(6916009)(26005)(356005)(786003)(31686004)(316002)(36906005)(8676002)(8936002)(70586007)(83380400001)(47076005)(36860700001)(7596003)(186003)(82310400003)(70206006)(43740500002); DIR:OUT; SFP:1101;
X-OriginatorOrg: alum.mit.edu
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Mar 2021 17:06:31.6244 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: b773ca7a-2006-4fd8-fb6e-08d8df2fdbec
X-MS-Exchange-CrossTenant-Id: 3326b102-c043-408b-a990-b89e477d582f
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3326b102-c043-408b-a990-b89e477d582f; Ip=[18.7.68.33]; Helo=[outgoing-alum.mit.edu]
X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT049.eop-nam02.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4469
Archived-At: <https://mailarchive.ietf.org/arch/msg/mmusic/W6ZXsZDsM999DY_tACvGD-kHFpo>
Subject: Re: [MMUSIC] Finding a max length of "a=mid" attribute
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: Thu, 04 Mar 2021 17:06:41 -0000

On 3/4/21 12:40 AM, Nils Ohlmeier wrote:
> When Firefox started putting its original MID values of ‘mid0’, ‘mid1’ etc into the RTP header extension we received several complaints about wasting bytes on the wire. Because of that we switched to ‘0’, ‘1’, … to save bytes. So it seems everyone is interested in using as little bytes as possible for this.
> 
> In other words: I believe 16 bytes should be enough.

I don't see any conceptual problem with imposing a limit. But when 
imposing a limit retroactively there is the potential for breaking some 
existing implementations in the wild. I think that is unlikely, but hard 
to verify.

	Thanks,
	Paul

> Best
>    Nils
> 
>> On 3Mar, 2021, at 14:43, Martin Thomson <mt@lowentropy.net> wrote:
>>
>> What Justin said.
>>
>> Does anyone *need* more than 16 bytes?
>>
>> On Thu, Mar 4, 2021, at 08:55, Justin Uberti wrote:
>>> We have limits on a lot of values for exactly this reason - UDP packets
>>> have a finite length, and therefore when it comes to RTP packetization,
>>> overly long values make things screech to halt.
>>>
>>> So I think defining such a limit would be a good idea, but I think
>>> you'd have to reject it rather than ignore it to get deterministic
>>> behavior (which seems like another upside to me).
>>>
>>> On Wed, Mar 3, 2021 at 1:43 PM Sergio Garcia Murillo
>>> <sergio.garcia.murillo@gmail.com> wrote:
>>>> If length is >16, shouldn't the 2 byte header extension be used instead? that would allow mid values up to 256 bytes.
>>>>
>>>> Best regards
>>>> Sergio
>>>>
>>>>
>>>> El mié., 3 mar. 2021 22:40, Harald Alvestrand <harald@alvestrand.no> escribió:
>>>>>
>>>>> On 3/3/21 4:06 PM, Nils Ohlmeier wrote:
>>>>>>> Am 3/3/21 um 06:31 schrieb Paul Kyzivat <pkyzivat@alum.mit.edu>du>:
>>>>>>>
>>>>>>> On 3/3/21 3:51 AM, Harald Alvestrand wrote:
>>>>>>>> I'm searching for the source of a max length limit on the "a=mid" attribute.
>>>>>>>> I couldn't find it in RFC 5888 (grouping framework) or RFC 8843 (BUNDLE).
>>>>>>>> Does anyone remember where it's supposed to be?
>>>>>>>> (I have code that will insist that it should be 16 bytes or less, but I'm trying to verify that this is the correct limit.)
>>>>>>> Its defined as a token (from RFC4566/8866). And that is:
>>>>>>>
>>>>>>>   token = 1*(token-char)
>>>>>>>
>>>>>>> There is no upper limit on the length. You can't impose a limit for implementation convenience. But practically speaking it is limited by the length of the message body that contains it, so you could code using an offset+length into the message buffer.
>>>>>> While the SDP side might be able to handle really long MID values I
>>>>>> doubt the RTP header extension allow or support that. Maybe your 16
>>>>>> byte length limitation comes from the RTP side?
>>>>>
>>>>> I found that it is impossible to encode an 1-byte RTP header extension
>>>>> longer than 16 bytes (the length is a 4-bit field with a bias value of
>>>>> 1). So in practice, it's an RTP restriction.
>>>>>
>>>>> I think Postel once advised that one should always have length limits -
>>>>> "if you don't have a length limit, you just have an implementation
>>>>> defined limit, and that's worse".
>>>>>
>>>>> So the next question (now that we've settled that the standards don't
>>>>> impose one) is: Should the standards specify a limit?
>>>>>
>>>>> And the third question: if asked to handle a BUNDLEd connection where
>>>>> the MID is > 16 bytes, is it reasonable to just ignore the over-long MID
>>>>> value?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>
>>>>>> Best
>>>>>>    Nils
>>>>>>
>>>>>> _______________________________________________
>>>>>> mmusic mailing list
>>>>>> mmusic@ietf.org
>>>>>> https://www.ietf.org/mailman/listinfo/mmusic
>>>>>
>>>>> _______________________________________________
>>>>> mmusic mailing list
>>>>> mmusic@ietf.org
>>>>> https://www.ietf.org/mailman/listinfo/mmusic
>>>> _______________________________________________
>>>> mmusic mailing list
>>>> mmusic@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/mmusic
>>> _______________________________________________
>>> mmusic mailing list
>>> mmusic@ietf.org
>>> https://www.ietf.org/mailman/listinfo/mmusic
>>>
>>
>> _______________________________________________
>> mmusic mailing list
>> mmusic@ietf.org
>> https://www.ietf.org/mailman/listinfo/mmusic
> 
> _______________________________________________
> mmusic mailing list
> mmusic@ietf.org
> https://www.ietf.org/mailman/listinfo/mmusic
>