Re: [MMUSIC] Finding a max length of "a=mid" attribute
Harald Alvestrand <harald@alvestrand.no> Wed, 03 March 2021 21:39 UTC
Return-Path: <harald@alvestrand.no>
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 079B43A1B92 for <mmusic@ietfa.amsl.com>; Wed, 3 Mar 2021 13:39:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 TiA8961xmxBv for <mmusic@ietfa.amsl.com>; Wed, 3 Mar 2021 13:39:54 -0800 (PST)
Received: from mork.alvestrand.no (mork.alvestrand.no [IPv6:2001:700:1:2::117]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DC0453A1B90 for <mmusic@ietf.org>; Wed, 3 Mar 2021 13:39:53 -0800 (PST)
Received: from [192.168.3.157] (unknown [78.156.11.215]) by mork.alvestrand.no (Postfix) with ESMTPSA id 2E6587C6A9D for <mmusic@ietf.org>; Wed, 3 Mar 2021 22:39:52 +0100 (CET)
To: mmusic@ietf.org
References: <463c848c-d171-7184-d65b-9ea95438d442@alum.mit.edu> <CANKS34fmzw3TNJVJhkUQvWv+EM2SCuEZcp7JgyZbN-p7iqMxfg@mail.gmail.com>
From: Harald Alvestrand <harald@alvestrand.no>
Message-ID: <bfd34ef4-d081-c1e9-9985-da1e1b794c58@alvestrand.no>
Date: Wed, 03 Mar 2021 22:39:51 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1
MIME-Version: 1.0
In-Reply-To: <CANKS34fmzw3TNJVJhkUQvWv+EM2SCuEZcp7JgyZbN-p7iqMxfg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/mmusic/MpT4vDb5AC0xVdQ6JRCXTpEoKv0>
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 21:39:57 -0000
On 3/3/21 4:06 PM, Nils Ohlmeier wrote: >> Am 3/3/21 um 06:31 schrieb Paul Kyzivat <pkyzivat@alum.mit.edu>: >> >> 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] Finding a max length of "a=mid" attribute Harald Alvestrand
- Re: [MMUSIC] Finding a max length of "a=mid" attr… Paul Kyzivat
- Re: [MMUSIC] Finding a max length of "a=mid" attr… Nils Ohlmeier
- Re: [MMUSIC] Finding a max length of "a=mid" attr… Harald Alvestrand
- Re: [MMUSIC] Finding a max length of "a=mid" attr… Sergio Garcia Murillo
- Re: [MMUSIC] Finding a max length of "a=mid" attr… Justin Uberti
- Re: [MMUSIC] Finding a max length of "a=mid" attr… Martin Thomson
- Re: [MMUSIC] Finding a max length of "a=mid" attr… Nils Ohlmeier
- Re: [MMUSIC] Finding a max length of "a=mid" attr… Paul Kyzivat
- Re: [MMUSIC] Finding a max length of "a=mid" attr… Sergio Garcia Murillo
- Re: [MMUSIC] Finding a max length of "a=mid" attr… Justin Uberti
- Re: [MMUSIC] Finding a max length of "a=mid" attr… Harald Alvestrand
- Re: [MMUSIC] Finding a max length of "a=mid" attr… Harald Alvestrand