Re: [MMUSIC] DTLS-SRTP client/server role negotiation

"Mo Zanaty (mzanaty)" <> Thu, 02 May 2013 20:06 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id CF0E921F8D27 for <>; Thu, 2 May 2013 13:06:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -10.448
X-Spam-Status: No, score=-10.448 tagged_above=-999 required=5 tests=[AWL=0.150, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id pl1Mp0KXV+aL for <>; Thu, 2 May 2013 13:05:58 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id F020821F8DCF for <>; Thu, 2 May 2013 13:05:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;;; l=24561; q=dns/txt; s=iport; t=1367525156; x=1368734756; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=vYu5Fci0xApkcncbvnRHYiYuzWN5PfZ1xKGvMCFIicE=; b=OHUMJb80lE0hbrFQ/cfOzyhfLigzrHtNFdjLAaa+Sk0Gwd/XgvJZYsyE ezeinhw9zCQj5mJnuD05pqkTTYXyhQTIfEun6+B9V+RdaxCZMkfzL+Bql H9uO/mCM0YLbYtdonrJe7eSd87MzuCMmjhYpdDBeh9ndrM58eDhdmWJP1 Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos; i="4.87,597,1363132800"; d="scan'208,217"; a="202831566"
Received: from ([]) by with ESMTP; 02 May 2013 20:05:55 +0000
Received: from ( []) by (8.14.5/8.14.5) with ESMTP id r42K5t3l001291 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 2 May 2013 20:05:55 GMT
Received: from ([]) by ([]) with mapi id 14.02.0318.004; Thu, 2 May 2013 15:05:54 -0500
From: "Mo Zanaty (mzanaty)" <>
To: "Schwarz, Albrecht (Albrecht)" <>, Justin Uberti <>
Thread-Topic: [MMUSIC] DTLS-SRTP client/server role negotiation
Thread-Index: AQHORq6jUvZFEriikUyEO6sxlAqo8pjxJyYAgAAVMYCAAAp7+oAAiSgAgAAzPTA=
Date: Thu, 02 May 2013 20:05:54 +0000
Message-ID: <>
References: <> <> <>, <> <> <>
In-Reply-To: <>
Accept-Language: en-US
Content-Language: en-US
x-originating-ip: []
Content-Type: multipart/alternative; boundary="_000_3879D71E758A7E4AA99A35DD8D41D3D91D45A655xmbalnx14ciscoc_"
MIME-Version: 1.0
Cc: "" <>, Paul Kyzivat <>
Subject: Re: [MMUSIC] DTLS-SRTP client/server role negotiation
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Multiparty Multimedia Session Control Working Group <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Thu, 02 May 2013 20:06:03 -0000

> role assignments at IP transport layer and security session layer may principally be different!

If you mean TCP and TLS client/server roles can differ, I don't see that flexibility in TLS itself (RFC 5246 section 7.4), so it doesn't make sense for SDP to describe flexibility which is not supported in the underlying protocol.

I agree it is somewhat confusing for DTLS-SRTP to use an attribute originally defined for TCP, but I don't see any practical problem or deficiency that would be solved by the proposed "a=setup:PROTOCOL:" attribute extension.


From: Schwarz, Albrecht (Albrecht) []
Sent: Thursday, May 02, 2013 3:15 AM
To: Mo Zanaty (mzanaty); Justin Uberti
Cc: Paul Kyzivat;
Subject: RE: [MMUSIC] DTLS-SRTP client/server role negotiation

The RFC situation is not really clear, even confusing concerning client/server role negotiations (in case of transport security sessions over connection-oriented IP transport protocols).

·         RFC 4145 is only about TCP, i.e., TCP client/server role assignments. Thus, the RFC 4145 introduced SDP attribute is TCP specific.

·         draft-ietf-mmusic-sctp-sdp: seems to profile the "a=setup:" attribute for SCTP path establishment directions ... (?)

·         RFC 5763 uses the TCP SDP attribute for DTLS session establishment, i.e. DTLS client/server role assignments; that's actually a semantical change of this SDP element vs RFC 4145

... and DTLS is TLS based, leading to the question of role/assignments in case of TLS/TCP sessions?
I.e., the TCP client/server and also TLS client/server roles? Keeping in mind that the role assignments at IP transport layer and security session layer may principally be different!

The "a=setup" definition by RFC 4145 is unfortunate in my opinion.
Required seems to be a generic SDP specification (i.e., outside RFC 4145), which may be then tight to the concerned protocol. Sth like an explicit indication "a=setup:PROTOCOL:" or an implicit indication by adding an identifier.

The "m=" line <proto> element does not really help to reduce ambiguity (as Paul reminded again: ""Unfortunately SDP has a pretty confusing idea of "transport". The proto field identifies a whole stack of protocol layers.").

I would see following parameter values for a SDP "a=setup:PROTOCOL:" attribute extension:
L4+: TLS, DTLS, DTLS-SRTP(?, due to RFC 5764 SDP profiling ...)

From: [] On Behalf Of Mo Zanaty (mzanaty)
Sent: Donnerstag, 2. Mai 2013 06:04
To: Justin Uberti
Cc: Paul Kyzivat;
Subject: Re: [MMUSIC] DTLS-SRTP client/server role negotiation

A simple 3PCC/B2BUA only delays offers toward one leg like RFC3725, so the other leg will answer with active or passive but not actpass.

A complex 3PCC/B2BUA delays offers toward both legs, so it must analyze and alter SDP in complex ways to generate two answers from two offers, part of which is deciding which answer should become active and which should become passive.

The flow in RFC 5245 B.11 is oversimplified. SDP can't be forwarded unaltered by a B2BUA which delays offers on both legs. Generating two answers from two offers is much more complex than simply forwarding the offers as answers.

DTLS-SRTP is actually an easy case since RFC 5763 requires offers to be actpass. TCP is harder since RFC 4145 allows offers to be active, passive, or actpass, causing more complex reinvites to resolve active/active or passive/passive conflicts.


On May 1, 2013, at 6:28 PM, "Justin Uberti" <<>> wrote:
I think Paul means the active/passive attributes in RFC 5763, but I'm still not sure about how 3rd party call control would be handled in this case, i.e. when both endpoints think they are offerers and set a=setup:actpass.

ICE has logic to determine roles in this scenario, as shows in RFC 5245, B.11.

On Wed, May 1, 2013 at 2:10 PM, Gustavo García <<>> wrote:
I saw it, but that is all about TCP client/server role and not DTLS client/server role.   Are we supposed to use the same "setup" attribute for dtls role negotiation even if it is over UDP?

I think there is no reason to tie TCP and DTLS roles, but perhaps I'm misunderstanding something.

On 01/05/2013, at 13:56, Paul Kyzivat wrote:

> On 5/1/13 2:26 PM, Gustavo García wrote:
>> RFC5764 (DTLS-SRTP) states that "Which side is the DTLS client and which side is the DTLS server must be established via some out-of-band mechanism such as SDP."
>> What is the specification on how to signal that in SDP?
>> Specifically in case of 3pcc where both endpoints are SDP offerers which one should take the client and server roles for DTLS?    Should we tie that role to ICE controlled/controlling roles or should we negotiate it in the SDP somehow?
> See RFC4145.
> _______________________________________________
> mmusic mailing list

mmusic mailing list<>

mmusic mailing list<>