Re: [MMUSIC] BUNDLE - MID Security - Updated text proposal

Magnus Westerlund <magnus.westerlund@ericsson.com> Fri, 04 November 2016 15:18 UTC

Return-Path: <magnus.westerlund@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 007DE129503 for <mmusic@ietfa.amsl.com>; Fri, 4 Nov 2016 08:18:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.221
X-Spam-Level:
X-Spam-Status: No, score=-4.221 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-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 dwSJm78jaRXk for <mmusic@ietfa.amsl.com>; Fri, 4 Nov 2016 08:18:02 -0700 (PDT)
Received: from sessmg23.ericsson.net (sessmg23.ericsson.net [193.180.251.45]) (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 90E1912950B for <mmusic@ietf.org>; Fri, 4 Nov 2016 08:18:02 -0700 (PDT)
X-AuditID: c1b4fb2d-1c7ff700000009f7-6f-581ca6a87b34
Received: from ESESSHC015.ericsson.se (Unknown_Domain [153.88.183.63]) by (Symantec Mail Security) with SMTP id BE.C9.02551.8A6AC185; Fri, 4 Nov 2016 16:18:01 +0100 (CET)
Received: from [127.0.0.1] (153.88.183.153) by smtp.internal.ericsson.com (153.88.183.65) with Microsoft SMTP Server id 14.3.319.2; Fri, 4 Nov 2016 16:18:00 +0100
To: Ted Hardie <ted.ietf@gmail.com>
References: <D41C238A.1095B%christer.holmberg@ericsson.com> <71419d1f-af1d-46e9-401d-81c5df73fc49@ericsson.com> <58510E68-A045-4312-B3B3-3468E83C8EB7@iii.ca> <243c777f-46f9-4053-1588-7e6b58a06c8c@ericsson.com> <D423DEE7.1101D%christer.holmberg@ericsson.com> <D423FEEE.11074%christer.holmberg@ericsson.com> <CABcZeBO7b3XGRTCzN4-Z-6=8sTD3nrr8HtgN1q9np-hZ3tqbMQ@mail.gmail.com> <7594FB04B1934943A5C02806D1A2204B4BD668D1@ESESSMB209.ericsson.se> <CABcZeBNDpt5F_HZeHC9tavPUKzq-Dw3u2SroKcH4U-k-hWNmyg@mail.gmail.com> <4a000249-91d9-f6b3-5b01-4833e6d359fc@ericsson.com> <CABcZeBNwbWWZPcjothhZEv2L8uSpW=stg5-eyxS_nOYUjNwp8A@mail.gmail.com> <53d2e50d-25a5-11da-0062-3bd6dc14fd3b@ericsson.com> <45cc8083-b5d4-3a1a-5691-bdcf3ae27309@ericsson.com> <8C3086EB-8DF8-4C23-A4EC-01429FED8D41@iii.ca> <d87b1256-bcee-5379-13b0-ff07439a05d4@nostrum.com> <811331de-526a-9cce-a1ea-11e17d4bdf23@ericsson.com> <CA+9kkMDE7PRRi3eN5_Frvb-=8zv5oyKykVhaf3yy_1TaRKPuYQ@mail.gmail.com>
From: Magnus Westerlund <magnus.westerlund@ericsson.com>
Message-ID: <161175bc-3cb9-b501-6bbb-f2433dfce899@ericsson.com>
Date: Fri, 04 Nov 2016 16:17:58 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <CA+9kkMDE7PRRi3eN5_Frvb-=8zv5oyKykVhaf3yy_1TaRKPuYQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrELMWRmVeSWpSXmKPExsUyM2K7ve7KZTIRBq3dTBZ7/i5it/iw/gej xdTlj1ksVmw4wGrRONfOgdXj7/sPTB47Z91l91iy5CeTx+XzHxk9Zu18whLAGsVlk5Kak1mW WqRvl8CV0Ty7n6XgrkrF33dbmBsYn0p3MXJySAiYSJxtX8rSxcjFISSwjlFi09J5TBDOMkaJ u3evMoFUCQs4S/yY/Y8VxBYRUJbYe2UHG0TRDXaJBS/WsoEkmAWOMkpc+M8JYrMJWEjc/NEI FucVsJf4f2UjM4jNIqAicWj3F7BBogIxEtefPYKqEZQ4OfMJ0BkcHJwCgRLbVzFCjLSQmDn/ PJQtL9G8dTbYGCEBbYmGpg7WCYwCs5B0z0LSMgtJywJG5lWMosWpxcW56UbGeqlFmcnFxfl5 enmpJZsYgSF9cMtv3R2Mq187HmIU4GBU4uEtWCQTIcSaWFZcmXuIUYKDWUmEVwoYEUK8KYmV ValF+fFFpTmpxYcYpTlYlMR5zVbeDxcSSE8sSc1OTS1ILYLJMnFwSjUwJkY7ftrb8oVzo6Fi kXzcw1uua+YGO0bGB8x7WNnXsevsTlvTaV6JD2zZnl9Yu7ve9fYKgz2rjcQ2b+VrWKIzvVhP aYfMpEi7bfprDybZcx6Q8rhldtzs+XvJ97UV/JU2LXoNr7mPdKzdOKl26wSHi7rBLl0XDNpe Z7CnFbZOnaVpOCciweS1EktxRqKhFnNRcSIAiLJQqWUCAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/mmusic/U4C0H64Md5QWND3HVdLx0oEYahE>
Cc: Paul Kyzivat <pkyzivat@alum.mit.edu>, "mmusic@ietf.org" <mmusic@ietf.org>, Cullen Jennings <fluffy@iii.ca>, Christer Holmberg <christer.holmberg@ericsson.com>
Subject: Re: [MMUSIC] BUNDLE - MID Security - Updated text proposal
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.17
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: Fri, 04 Nov 2016 15:18:12 -0000

Den 2016-11-03 kl. 17:36, skrev Ted Hardie:
> On Thu, Nov 3, 2016 at 6:52 AM, Magnus Westerlund
> <magnus.westerlund@ericsson.com <mailto:magnus.westerlund@ericsson.com>>
> wrote:
>
>     Den 2016-11-02 kl. 21:07, skrev Adam Roach:
>
>         On 11/2/16 14:11, Cullen Jennings wrote:
>
>             I'd also like to give any reasonable advice we can on
>             creating MIDs
>             such that they meet that goal.  Is there any reason not to
>             just make
>             MID a 16 bit integer ? same for RID ?
>
>
>
>         draft-ietf-avtext-rid is in the RFC editors' queue. We *might*
>         be able
>         to pull off minor editorial changes. As far as I understand things,
>         changing the format of a field would require us to pull it back
>         and put
>         it through IETF LC and IESG review again.
>
>         In terms of the actual proposed change ("16 bit integer"), SDES is
>         defined to be a UTF-8 string. Unless we want to define a whole other
>         thing instead of using SDES, these identifiers have to be valid
>         UTF-8.
>
>
>     I agree with Adam here that going to something that isn't UTF-8
>     makes it more difficult. It will not match the standard SDES format.
>     I think it is desirable that we can have a single character and
>     single byte in most cases, while still allowing for multiple ones in
>     cases where there are many MIDs or RIDs. But basically if one uses
>     0-9, a-z, A-Z, and then goes to 00, 01, .. 0a, etc, then one can
>     with two characters 62^2 = 3844 possible ids, and the scheme should
>     not be restricted to just two if actually needed. The SDES has an
>     upper limit of 255 bytes.
>
>
> Okay, so I was going to suggest we leave RID alone and have an optional
> suggestion that MID be a 16 bit integer, represented as an
> SDES-compatible UTF-8 string (that should be 5 octets maximum).  Someone
> interested in code re-use could always use that with RID as well, even
> though the RID document doesn't have the same suggestion.  While this
> would be optional advice, you're concerned that someone taking it would
> consume 10 of the  255 available octets?
>

As RTP header extensions are added in some potentially quite a lot of 
RTP packets and they take away from the available codec payload MTU, we 
consume quite a lot of space. For allowing rapid start performance for 
an RTP stream that hasn't been sent before, and the signalling answer 
hasn't made it yet, one need to include CNAME, MID, and RID in the RTP 
header extension. Assuming the MID and RID SDES items are 5 bytes each, 
that would drive the full RTP header extension to become:

4 bytes Header Extension common header
1 byte HE Item header
16 bytes CNAME data
1 byte HE item header
5 bytes MID data
1 byte HE item header
5 bytes RID data
3 bytes padding (for 32 bit-word alignment)
Total: 36 bytes

Compare this with 1 byte MID and RID:

4 bytes Header Extension common header
1 byte HE Item header
16 bytes CNAME data
1 byte HE item header
1 bytes MID data
1 byte HE item header
1 bytes RID data
3 bytes padding (for 32 bit-word alignment)

Total: 28 bytes

So in this case it ended up being just the 8 extra bytes the format.
Also without the CNAME, it is just 8 bytes difference, but then the 
total sizes are 16 vs 8 bytes.

Looking at this from where it does matter. As soon as one have more than 
9 media descriptions (m=) then one adds 4 bytes to the size of the 
Header Extension when using an integer scheme. Using a enumeration with 
like 0-9, a-z and A-Z then that break point happens after 62 media 
descriptions. Looking at today's cases, the first is likely, the second 
much less so.

I also don't quite see that enumerating using digits and a-z is 
particular difficult. It may require some few more sentence in the 
description, but not particular lot of code. Writing a m= line index to 
mid ID converter is very small function. And it is just the generation 
side that needs to care. After that they are just opaque identifiers.

And this would save both bytes on the wire and MTU.

Cheers

Magnus Westerlund

----------------------------------------------------------------------
Services, Media and Network features, Ericsson Research EAB/TXM
----------------------------------------------------------------------
Ericsson AB                 | Phone  +46 10 7148287
Färögatan 6                 | Mobile +46 73 0949079
SE-164 80 Stockholm, Sweden | mailto: magnus.westerlund@ericsson.com
----------------------------------------------------------------------