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

Justin Uberti <juberti@google.com> Fri, 03 May 2013 05:54 UTC

Return-Path: <juberti@google.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 1E26A21F89AF for <mmusic@ietfa.amsl.com>; Thu, 2 May 2013 22:54:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.281
X-Spam-Level:
X-Spam-Status: No, score=-101.281 tagged_above=-999 required=5 tests=[AWL=-0.204, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_15=0.6, MIME_8BIT_HEADER=0.3, NO_RELAYS=-0.001, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BbPbNcdbl+MW for <mmusic@ietfa.amsl.com>; Thu, 2 May 2013 22:54:11 -0700 (PDT)
Received: from mail-ia0-x22e.google.com (mail-ia0-x22e.google.com [IPv6:2607:f8b0:4001:c02::22e]) by ietfa.amsl.com (Postfix) with ESMTP id 6726521F8523 for <mmusic@ietf.org>; Thu, 2 May 2013 22:54:10 -0700 (PDT)
Received: by mail-ia0-f174.google.com with SMTP id e36so1089122iag.33 for <mmusic@ietf.org>; Thu, 02 May 2013 22:54:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=mW1r2oTvtsNroG2sfdn8S01HUpFe0ylf+lUuqH5DcsY=; b=hnuroUsBCGhN28olr2QA1fkV2olCe30RrJCImenp29KIbAiyzUrTeVyQs0c5P6iXFK R/wtp9UuPUAOzfNiuUG9lkJ7edSCZHYMTZ8UgCCLsLqMNHn+Se/tc2e5+HkXKrdcXhyt gLjqNzLfeDcx8Qo1QRAPEEMMV78F/XJi+svOWKxsmSjkmUkBuYGS+o7CTzUp/vH826PV UyvafxwQzFpSqyt4Gt7RKZcZo6shy+oPt77kntF/6fooNLUOM/KfWDDvaOz0gAovfoEg mhJId/V+IcmE0hg0OjAsEkWHq4lY6OScoYElp/bCpTkNEqr6WyiDTsZEKJ21Y9AEdYhs /XUQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:x-gm-message-state; bh=mW1r2oTvtsNroG2sfdn8S01HUpFe0ylf+lUuqH5DcsY=; b=StCKsu5h/MSAqvU8y/s2EGTFpU5gQCZ1zoyLYaizJNKSZ6ni6S/l2GBAu0pRy/dvt3 Wh20+0qpHysbfkGKFCrKXFbkYlfKzx69CZGZ7RpAQnM29b6zOl5AmsmjT3PWZ4IOu5bu pwA/FWmhqJNxckwFXrE92D+khAcdSJ4Kcpzil/PF8Enw33azVPDqUk2kjv+4YfGFfGv2 XpajkX7HWUoJj+wBwbSneTK0hIA9AenLGuEjSHc15VEfnlkrBMLi5D6Tyhez6B9fA9IX SDDmuRRcycKsSNbr8jbjG8aOsziw3BuVemoCgXoGiZRCXXsYX6tSKX0XCHQhfVrCjXwy YSNg==
X-Received: by 10.50.17.166 with SMTP id p6mr10113314igd.12.1367560449548; Thu, 02 May 2013 22:54:09 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.193.201 with HTTP; Thu, 2 May 2013 22:53:49 -0700 (PDT)
In-Reply-To: <F72A5B11-D5D4-41D1-8118-C5BCBBAAE567@tokbox.com>
References: <E888F149-12FE-4F23-A270-F861123BAC7B@tokbox.com> <5181819B.5050107@alum.mit.edu> <18B3B548-95DC-43D2-BB05-619EC8EBDA70@tokbox.com> <CAOJ7v-2XUzVr3kL=emR_7w49th3mowa_WQG4wVVmD7__uA8APw@mail.gmail.com> <7984C671-D3FF-4CC3-AC4A-9965087DD07E@cisco.com> <786615F3A85DF44AA2A76164A71FE1AC0305AA@FR711WXCHMBA03.zeu.alcatel-lucent.com> <CAKhHsXGEiNLod6fXbOSP3HvVYtFi4iBQEUBe2x-5YQdwz8LAOQ@mail.gmail.com> <F72A5B11-D5D4-41D1-8118-C5BCBBAAE567@tokbox.com>
From: Justin Uberti <juberti@google.com>
Date: Thu, 2 May 2013 22:53:49 -0700
Message-ID: <CAOJ7v-1rt2RA17oC0kCxC2wD310ghp2pwLF1jit6ikLfCSCiQA@mail.gmail.com>
To: =?UTF-8?Q?Gustavo_Garc=C3=ADa?= <ggb@tokbox.com>
Content-Type: multipart/alternative; boundary=14dae9340cc9ce04da04dbc9fa09
X-Gm-Message-State: ALoCoQn2dCIxdIk9u3GDJ8izO1eS7faA5V48+dV7qYqkc8CuIut4yoqYEqYoGLd0tqh5/Eli/vm4UW3Njg9U09nR38zTrGBUTZ2DlyTaM9YnqU2ELTGzTI5hfA76icXkmkBLHhEdU/IJjYaWUhtG+nMhqEiU14e8zFmstsn9rdpk/Q/KEoSVF33GM6aFm5xtznfic+AqChQk
Cc: Alan Johnston <alan.b.johnston@gmail.com>, "mmusic@ietf.org" <mmusic@ietf.org>, Paul Kyzivat <pkyzivat@alum.mit.edu>
Subject: Re: [MMUSIC] DTLS-SRTP client/server role negotiation
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.12
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: <http://www.ietf.org/mail-archive/web/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, 03 May 2013 05:54:12 -0000

This is where the OP's question came from - the differing policy between
Chrome and Firefox. I (regarding Chrome) had figured that if ICE had made a
determination regarding which side was in charge, the other layers in the
stack should do the same, but it sounds like there are already established
rules on how to do this.

>From this thread, it sounds like the recommendation is to use
a=setup:actpass in the offer, and then the answerer can use a=setup:active
to choose the client role. In 3pcc cases, the B2BUA can select a=setup
appropriately to avoid any issue.

Is that an accurate summary, and is there consensus on this?


On Thu, May 2, 2013 at 10:36 AM, Gustavo García <ggb@tokbox.com> wrote:

> In previous versions of Chrome the offerer was always the DTLS server.
>
> In newest version of Chrome the ICE controlling agent is always the DTLS
> server.  (controlling and offerer are not the same in case of offerer being
> ice-lite implementation)
>
> I think in case of 3pcc we need "a=setup" with proxy/B2BUA modifying the
> SDPs or using the ICE roles to resolve the conflicts.    I prefer to not
> use ICE to solve this and decouple ICE and DTLS roles.
>
> G.
>
> On 02/05/2013, at 10:05, Alan Johnston wrote:
>
> > Interestingly, I have yet to see any browser use a=setup for DTLS-SRTP.
>  Is this attribute really needed?  How do things work if one or both
> browsers don't include it?
> >
> > - Alan -
> >
> >
> > On Thu, May 2, 2013 at 2:15 AM, Schwarz, Albrecht (Albrecht) <
> albrecht.schwarz@alcatel-lucent.com> wrote:
> > 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.”).
> >
> >
> >
> > Albrecht
> >
> > PS
> >
> > I would see following parameter values for a SDP “a=setup:PROTOCOL:”
> attribute extension:
> >
> > L4: TCP, SCTP, DCCP(?)
> >
> > L4+: TLS, DTLS, DTLS-SRTP(?, due to RFC 5764 SDP profiling …)
> >
> >
> >
> >
> >
> >
> >
> > From: mmusic-bounces@ietf.org [mailto:mmusic-bounces@ietf.org] On
> Behalf Of Mo Zanaty (mzanaty)
> > Sent: Donnerstag, 2. Mai 2013 06:04
> > To: Justin Uberti
> > Cc: Paul Kyzivat; mmusic@ietf.org
> > 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.
> >
> >
> >
> > Mo
> >
> >
> >
> > On May 1, 2013, at 6:28 PM, "Justin Uberti" <juberti@google.com> 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 <ggb@tokbox.com> 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@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
> >
> >
> > _______________________________________________
> > 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
>