Re: [MMUSIC] Thoughts on draft-ietf-mmusic-dtls-sdp-10 semantics

Paul Kyzivat <pkyzivat@alum.mit.edu> Mon, 07 March 2016 17:21 UTC

Return-Path: <pkyzivat@alum.mit.edu>
X-Original-To: mmusic@ietfc.amsl.com
Delivered-To: mmusic@ietfc.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfc.amsl.com (Postfix) with ESMTP id EC8C11CD611 for <mmusic@ietfc.amsl.com>; Mon, 7 Mar 2016 09:21:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.272
X-Spam-Level:
X-Spam-Status: No, score=0.272 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_SOFTFAIL=0.972] autolearn=no autolearn_force=no
Authentication-Results: ietfc.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=comcast.net
Received: from mail.ietf.org ([4.31.198.41]) by localhost (ietfc.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i46EPTIHL5Qj for <mmusic@ietfc.amsl.com>; Mon, 7 Mar 2016 09:21:57 -0800 (PST)
Received: from resqmta-ch2-10v.sys.comcast.net (resqmta-ch2-10v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:42]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfc.amsl.com (Postfix) with ESMTPS id AF2EA1CD619 for <mmusic@ietf.org>; Mon, 7 Mar 2016 09:21:54 -0800 (PST)
Received: from resomta-ch2-07v.sys.comcast.net ([69.252.207.103]) by resqmta-ch2-10v.sys.comcast.net with comcast id T5LF1s0012EPM31015Mt15; Mon, 07 Mar 2016 17:21:53 +0000
Received: from Paul-Kyzivats-MacBook-Pro.local ([73.218.51.154]) by resomta-ch2-07v.sys.comcast.net with comcast id T5Mt1s00C3KdFy1015MtPb; Mon, 07 Mar 2016 17:21:53 +0000
To: Roman Shpount <roman@telurix.com>
References: <CABcZeBNJ6jdL7SfLaatfr28X83dVOafpi=jrM6bSJ-qpmj4RuA@mail.gmail.com> <CAD5OKxuK9wBG47d+SwBH_f8-PgMQJuxFRmMg9E4omjgqO0tNbQ@mail.gmail.com> <56D8D2E1.2030306@alum.mit.edu> <CAOJ7v-2eWFFzK_rtSkT5Q12qv5Cdug_Do1z=cAWvfJsKi0U94Q@mail.gmail.com> <56DCB31A.1010502@alum.mit.edu> <7594FB04B1934943A5C02806D1A2204B37E818F9@ESESSMB209.ericsson.se> <56DDA6B2.5080403@alum.mit.edu> <CAD5OKxts-yfXS2nxTfoqMiDO2GLWu4AF6WJdvsE_tFtewmmmCg@mail.gmail.com> <7594FB04B1934943A5C02806D1A2204B37E8B57C@ESESSMB209.ericsson.se> <56DDB1D2.6000801@alum.mit.edu> <CAD5OKxuXiPGDZtNQvfhQGD0NdmDoCZ6hAgqQnih8-_p7GD56fQ@mail.gmail.com>
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
Message-ID: <56DDB8B0.5030806@alum.mit.edu>
Date: Mon, 07 Mar 2016 12:21:52 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
MIME-Version: 1.0
In-Reply-To: <CAD5OKxuXiPGDZtNQvfhQGD0NdmDoCZ6hAgqQnih8-_p7GD56fQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1457371313; bh=IluhYCR/Wu22E9e6X5R7m1NhXRbERa1IDvfcuiU3oNs=; h=Received:Received:Subject:To:From:Message-ID:Date:MIME-Version: Content-Type; b=oy3dxRd7Foiu0jRRzRNuGNfTWbsTXlyZQ6BYmYU4m9Z2258Lh7i3HtuGLDRYNiuDL Hkq4br8pd0V3ug1UyjwKlvWm+X1ktcA+1iuIv5FFw06tkn1Jd0ZZNSau0ip9AH8+c2 JZDY55NAkI2AoFvHTRSwos7YT4Aq5diHs9SUiwIsfwZsWU2CybN1ytnVzojCjGcWZH LendArUOalkXbRBPK/lSyrYFRqMSvKHn0+mgj+Tdgwf6Fl155IMD8Q0tdYOB9Z/3eI 5BAgP7p/2yYzzrbE3ls4IDbzcnZJl7aoP6RY5lW4cBGeKr0e8pb0RRuvkYgsgiAzz8 YWAW0ny9dMdjg==
Archived-At: <http://mailarchive.ietf.org/arch/msg/mmusic/ID1JZKpwe9bvxevrurmZJj2lfTM>
Cc: "mmusic@ietf.org" <mmusic@ietf.org>, Christer Holmberg <christer.holmberg@ericsson.com>
Subject: Re: [MMUSIC] Thoughts on draft-ietf-mmusic-dtls-sdp-10 semantics
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: Mon, 07 Mar 2016 17:21:59 -0000

On 3/7/16 12:12 PM, Roman Shpount wrote:
> On Mon, Mar 7, 2016 at 11:52 AM, Paul Kyzivat <pkyzivat@alum.mit.edu
> <mailto:pkyzivat@alum.mit.edu>> wrote:
>
>     On 3/7/16 11:26 AM, Christer Holmberg wrote:
>
>         I suggest dtls-association-id. In my opinion there is no longer
>         the same
>         need to be aligned with the name of the connection attribute.
>
>
>     This seems plausible. But I want to reserve judgement until the
>     detailed semantics of the attribute are worked out:
>
> I wanted to model this attribute on ICE ufrag
>
>     - is it numeric, or a token?
>
>
> I was thinking something like this:
> dtls-association-id-attr = "dtls-association-id" ":" dtls-association-id
>
> dtls-association-id = 4*256dtls-association-id-char
>
> dtls-association-id-char = ALPHA / DIGIT / "+" / "/"

Why this in particular? Is it your intent to reuse values that were 
generated for another purpose? Or to reuse code that is also used for 
another purpose?

>     - any rules for how the value chosen?
>
>
> The dtls-association-id attributes MUST be chosen randomly when new DTLS
> association is requested.  The dtls-association-id attribute MUST
> contain at least 24 bits of randomness.  This means that
> the dtls-association-id  attribute will be at least 4 characters
> long since the grammar for this attribute allows for 6 bits of
> randomness per character.  The attribute MAY be longer than 4
> characters, respectively, of course, up to 256 characters.  The upper
> limit allows for buffer sizing in implementations.  Its large upper
> limit allows for increased amounts of randomness to be added over time.

What is the reason for using random values, rather than some well 
defined sequence of values? (Where the sequence might start with a 
random value, or perhaps every sequence would start with 0.)

	Thanks,
	Paul

>     - is it tied to an actual property of the association,
>         or is it just an arbitrary extra piece of state?
>
>
> It is not tied to the association and it is an arbitrary piece of state.
> DTLS protocol can be extended in the future to use dtls-association-id
> to demux multiple DTLS associations over the same transport but this is
> out of scope for now.
>
>     - any rules for how the *next* value is chosen when
>         a new (replacement) association is being proposed?
>
>
> New values is generated randomly.
>
>     - when (if ever) can an id be reused?
>
>
> The dtls-association-id should be reused while end point want to
> maintain the same DTLS association. If either end point changes the
> dtls-association-id value, this will indicate that new DTLS association
> MUST be established.
>
>     It is *possible* (though not likely) that the details may suggest a
>     particular name that is more meaningful than "id".
>
>
> Regards,
> _____________
> Roman Shpount