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

Martin Thomson <mt@lowentropy.net> Wed, 03 March 2021 22:43 UTC

Return-Path: <mt@lowentropy.net>
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 607453A1C9C for <mmusic@ietfa.amsl.com>; Wed, 3 Mar 2021 14:43:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.12
X-Spam-Level:
X-Spam-Status: No, score=-2.12 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, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=lowentropy.net header.b=aClRnCe5; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=veUQjyOO
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 i2gu44HF2ejS for <mmusic@ietfa.amsl.com>; Wed, 3 Mar 2021 14:43:44 -0800 (PST)
Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 49D6C3A1C93 for <mmusic@ietf.org>; Wed, 3 Mar 2021 14:43:44 -0800 (PST)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id A39C182B for <mmusic@ietf.org>; Wed, 3 Mar 2021 17:43:43 -0500 (EST)
Received: from imap10 ([10.202.2.60]) by compute1.internal (MEProxy); Wed, 03 Mar 2021 17:43:43 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type:content-transfer-encoding; s=fm1; bh=xkpdX UQ8wQBgvwhKkDVjBAYofgLu+TqPgBPhF/IyyqI=; b=aClRnCe5NAFE0iCg6b8O8 ZxhklZFy6ZJWgeL+wozxHYdz/6dxijvfpNhTKAdYEwW6z8t8mBxJLg3GMskCddpv mzRmsCtaKM+dZhBlcXwbReRdHgasbXRJUIfzt0Z1FUtahbjHKEv0giyj8D9B9Kxn zpqEgC5RYwCBewpXv4m76fVqLU1EXT164S9hdh6UAuk26gCubcBELkCbjyYGsekZ of25eG4dT25tFprDbXcyQpUWSrCa6fT2Ih2MOvgn+/GrNG9xAEN2qkIuYEJ+Ohpv RHH1l0S9JrJI1GalrzwGx1qQTWULFMVkdqGfh3U403Snr6mU2V3qAY3bJsGQTbn8 w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=xkpdXUQ8wQBgvwhKkDVjBAYofgLu+TqPgBPhF/Iyy qI=; b=veUQjyOO0ks+mRVH52IzgzXOp3RXDrQxbsmAZWkB3+8Dk5hPMRJYOg45U KFR5T7J8QXaAbnmjU3MWYKMGr6JMPPBnwcIeI8Zfpprm5jShvIqWGt1nYCGg9vCY sn3CD2V4cXnrCGzObpWGi5GRk5BdlHuV8p/hiEXzb4y8y50AfCdXowP2wOHBJDr1 p57RstUEp7BVybPgYmNMMBSdsmU/HUnrEJ8jPDeI22uuGbKnx+Ozt07wZniW5zG4 a215d+420itJ2IwjB1J84HeZYhxuCrYfZMoIe2p4xP5C1VqPX5ucbYR4Dwe9gnQQ 4zaamEtCEXQ/BRwdcDR9lI63xrKZw==
X-ME-Sender: <xms:HRFAYIO-AADRktJWpeQ-4OKh2gfwTKB90AcmchFk2RisgrH5MJTCyQ> <xme:HRFAYO_rNC67wneSJ2XtGNrR4e8rR04lWoHc5b7Vz8cLBJ5k39vYk4EwEPVmD-ibN Zc5X2E49MOOuuDUqck>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddtfedgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtgfesth hqredtreerjeenucfhrhhomhepfdforghrthhinhcuvfhhohhmshhonhdfuceomhhtsehl ohifvghnthhrohhphidrnhgvtheqnecuggftrfgrthhtvghrnhepffetgfevvdfhtdffhe ejudefhffhveehudefhffgleelteeifeegfefggfelhefgnecuffhomhgrihhnpehivght fhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehmtheslhhofigvnhhtrhhophihrdhnvght
X-ME-Proxy: <xmx:HRFAYPSGNfJs95HdtYa_JFdKzEkRXAv_OeNcwtaQAEGOSa6BuAEapA> <xmx:HRFAYAsa3X0RnbH4Ov1dtlDQzi-zT3CriBenkXohcod-Q7cUzakjDw> <xmx:HRFAYAe98QQ6TCULE-CJU4eH0b3g2koApL-VSpz5mFYfARAx1mqzqg> <xmx:HxFAYKpWq-hiQPgm84n2HTGp1WqER_lbDVTgt-BlKXCHYhuaBD0tMw>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 996424E0751; Wed, 3 Mar 2021 17:43:41 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.5.0-alpha0-206-g078a48fda5-fm-20210226.001-g078a48fd
Mime-Version: 1.0
Message-Id: <6754fb36-2efe-4e8e-8b8b-5b43cb8db2d3@www.fastmail.com>
In-Reply-To: <CAOJ7v-2n2UsV58KzVMG-M9fNW1w-HTOtp5=8z0ZD6FazTOJUDg@mail.gmail.com>
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>
Date: Thu, 04 Mar 2021 09:43:21 +1100
From: "Martin Thomson" <mt@lowentropy.net>
To: mmusic <mmusic@ietf.org>
Content-Type: text/plain;charset=utf-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/mmusic/7KYKiot72_8BppCCM-D3ScXPl4Y>
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: Wed, 03 Mar 2021 22:43:47 -0000

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
>