Re: [MMUSIC] Bundling data channel and RTP? - Text proposal

Christer Holmberg <christer.holmberg@ericsson.com> Thu, 28 May 2015 06:30 UTC

Return-Path: <christer.holmberg@ericsson.com>
X-Original-To: mmusic@ietfa.amsl.com
Delivered-To: mmusic@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6E1131A1AFF for <mmusic@ietfa.amsl.com>; Wed, 27 May 2015 23:30:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham
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 LIEIndqFSuiJ for <mmusic@ietfa.amsl.com>; Wed, 27 May 2015 23:30:52 -0700 (PDT)
Received: from sessmg23.ericsson.net (sessmg23.ericsson.net [193.180.251.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D056A1A1AA6 for <mmusic@ietf.org>; Wed, 27 May 2015 23:30:51 -0700 (PDT)
X-AuditID: c1b4fb2d-f794d6d000004501-81-5566b6190d2d
Received: from ESESSHC017.ericsson.se (Unknown_Domain [153.88.253.125]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id 32.2A.17665.916B6655; Thu, 28 May 2015 08:30:50 +0200 (CEST)
Received: from ESESSMB209.ericsson.se ([169.254.9.71]) by ESESSHC017.ericsson.se ([153.88.183.69]) with mapi id 14.03.0210.002; Thu, 28 May 2015 08:30:49 +0200
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: Roman Shpount <roman@telurix.com>, Christian Groves <Christian.Groves@nteczone.com>
Thread-Topic: [MMUSIC] Bundling data channel and RTP? - Text proposal
Thread-Index: AdCWueoLsROxlWDYR6SbmQrUuOlHngAPEbUAAFSKmYAABF7jcAABvZYAAAgnpwAAB+VBBwAKFpwAAASvGIAADOHQIA==
Date: Thu, 28 May 2015 06:30:48 +0000
Message-ID: <7594FB04B1934943A5C02806D1A2204B1D86C915@ESESSMB209.ericsson.se>
References: <7594FB04B1934943A5C02806D1A2204B1D852384@ESESSMB209.ericsson.se> <55634C34.4080304@alum.mit.edu> <5565838D.2020005@nteczone.com> <7594FB04B1934943A5C02806D1A2204B1D866141@ESESSMB209.ericsson.se> <E1FE4C082A89A246A11D7F32A95A17828E7D3EEB@US70UWXCHMBA02.zam.alcatel-lucent.com> <CAD5OKxuEpmMVfScf62bs=y+9PyYbejfa2OmsHYq=dStTZmjdVg@mail.gmail.com> <7594FB04B1934943A5C02806D1A2204B1D8689E9@ESESSMB209.ericsson.se> <55665BFA.4020600@nteczone.com> <CAD5OKxsukfKG=bW-5QWu35AQQX_Eve8YM0cQ=xc=B=obnzKQdQ@mail.gmail.com>
In-Reply-To: <CAD5OKxsukfKG=bW-5QWu35AQQX_Eve8YM0cQ=xc=B=obnzKQdQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [153.88.183.150]
Content-Type: multipart/alternative; boundary="_000_7594FB04B1934943A5C02806D1A2204B1D86C915ESESSMB209erics_"
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCIsWRmVeSWpSXmKPExsUyM+Jvra7UtrRQg4OdrBZf3jeyWExd/pjF YsWGA6wWDRuvsFrMuDCV2YHVo/XZXlaPv+8/MHksWfKTyWPF+ZksHremFASwRnHZpKTmZJal FunbJXBltP57yV6wbiFjxcX9cxkbGDvmMnYxcnJICJhI/Ht8khnCFpO4cG89G4gtJHCUUeLk J+8uRi4gezGjxJ8bd5i6GDk42AQsJLr/aYPUiAhESrSefM0OUsMsMJ9RYsnp1ewgCWEBF4lf S3pYIIpcJVY8/80MYWdJbD+1G2wxi4CqRM/p6WD1vAK+EouPgdSDLJvFInG1YRUTSIJTIFDi /q/vYBcxAl33/dQasDizgLjErSfzmSCuFpBYsuc81AeiEi8f/2OFsJUkVmy/xAhRny9x/dsc VohlghInZz5hmcAoOgvJqFlIymYhKZsF9DOzgKbE+l36ECWKElO6H7JD2BoSrXPmsiOLL2Bk X8UoWpxaXJybbmSsl1qUmVxcnJ+nl5dasokRGK0Ht/zW3cG4+rXjIUYBDkYlHt4H69JChVgT y4orcw8xSnOwKInzenWFhAoJpCeWpGanphakFsUXleakFh9iZOLglGpgTGxLK8jm8f77f/f6 wHkOLT3Pw5e9YxD/a3HKbDFz62qd/+vvX3P/sqD/vcOJuTed7cK3nihteLSscmUsf/ElbieX Q1suCC08efOB9o+DPzxmqvOYe5WKfdndskjjiELovrvCFvPvLD6c80PmeFR0uHp59cyPVvev dZ8oDyyK7///7tusFU7vjyuxFGckGmoxFxUnAgBVoB/mtwIAAA==
Archived-At: <http://mailarchive.ietf.org/arch/msg/mmusic/Fb7hPvPlXOFY_G9GeFvGkLVree8>
Cc: "mmusic@ietf.org" <mmusic@ietf.org>, "pkyzivat@alum.mit.edu" <pkyzivat@alum.mit.edu>
Subject: Re: [MMUSIC] Bundling data channel and RTP? - Text proposal
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.15
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: Thu, 28 May 2015 06:30:55 -0000

Hi Roman,

So, if I understand you correctly, we do *NOT* need to mandate inclusion of “use_srtp” until SRTP/SRTCP is actually used. However, we could still RECOMMEND it, in order to avoid a re-handshake for that purpose when SRTP/SRTCP is added.

Regards,

Christer

From: Roman Shpount [mailto:roman@telurix.com]
Sent: 28 May 2015 05:20
To: Christian Groves
Cc: Christer Holmberg; Makaraju, Maridi Raju (Raju); mmusic@ietf.org; pkyzivat@alum.mit.edu
Subject: Re: [MMUSIC] Bundling data channel and RTP? - Text proposal

If  "use_srtp" extension is specified, there is going to be SRTP/SRTCP keying material present and associated with each DTLS cipher state. If DTLS re-handshake occurs within the same session, the new RTP/RTCP keying material will be negotiated. Since no SRTP/SRTCP packets would be exchanged before SRTP/SRTCP stream was added to the bundle, these packets would not contribute to cipher state expiration. Cipher state can still expire due to the number of data packets transmitted or time, which can still cause new SRTP/SRTCP keying material to be negotiated.

Technically speaking either DTLS client or server can initiate a re-handshake at any time. It is an implementation detail on what would cause a re-handshake, and it can be done based on the number of packets sent or received, or based on time. If re-handshake is done based on the number of packets, both SRTP/SRTCP and data packets should have separate counters and cause a re-handshake once a certain value is passed.

As far as I know, DTLS re-handshake is not currently supported by either Chrome or Firefox, which means keying material for both data and SRTP/SRTCP will stay the same for the duration of the session.
_____________
Roman Shpount

On Wed, May 27, 2015 at 8:06 PM, Christian Groves <Christian.Groves@nteczone.com<mailto:Christian.Groves@nteczone.com>> wrote:
To be clear this means that the SRTP and SRTCP ( (because of the possibility of RTP/RTCP muxing) key negotiation occurs even before RTP/STRP media is added to the BUNDLE, and the keying material for both are maintained for the life of the BUNDLE? If the keys are unused they wouldn't expire because max lifetime is based on the number of protected packets.

Christian

On 28/05/2015 3:17 AM, Christer Holmberg wrote:
Hi,

I guess we could add some text to the DTLS Considerations section.

Regards,

Christer

Sent from my Windows Phone
------------------------------------------------------------------------
From: Roman Shpount <mailto:roman@telurix.com<mailto:roman@telurix.com>>
Sent: ‎27/‎05/‎2015 23:31
To: Makaraju, Maridi Raju (Raju) <mailto:Raju.Makaraju@alcatel-lucent.com<mailto:Raju.Makaraju@alcatel-lucent.com>>
Cc: Christer Holmberg <mailto:christer.holmberg@ericsson.com<mailto:christer.holmberg@ericsson.com>>; Christian Groves <mailto:Christian.Groves@nteczone.com<mailto:Christian.Groves@nteczone.com>>; mmusic@ietf.org<mailto:mmusic@ietf.org> <mailto:mmusic@ietf.org<mailto:mmusic@ietf.org>>; pkyzivat@alum.mit.edu<mailto:pkyzivat@alum.mit.edu> <mailto:pkyzivat@alum.mit.edu<mailto:pkyzivat@alum.mit.edu>>
Subject: Re: [MMUSIC] Bundling data channel and RTP? - Text proposal


On Wed, May 27, 2015 at 7:37 AM, Makaraju, Maridi Raju (Raju) <Raju.Makaraju@alcatel-lucent.com<mailto:Raju.Makaraju@alcatel-lucent.com> <mailto:Raju.Makaraju@alcatel-lucent.com<mailto:Raju.Makaraju@alcatel-lucent.com>>> wrote:

    > >One interesting question that Albrecht brought up in a separate email
    > discussion is what happens if you first establish a >DTLS
    association
    > for datachannel and then at a later stage you add SRTP media? I
    take it
    > that you'd have to re-establish >the DTLS connection and perform a
    > handshake using the "use_srtp" extension. That makes transitioning
    > messy.
    >
    > There is a related (not BUNDLE specific) discussion on when one is
    > allowed to re-establish a DTLS connection, and the idea (I don't
    have
    > the exact details in front of me) is that it can happen only
    when an IP
    > address or port changes. That obviously does not have to occur
    if you
    > add SRTP.
    [Raju]
    Will there be an issue if "use_srtp" extension is always included
    even when
    SRTP media is not present at that time? I don't see any issue.
    This is how Chrome works today; it always includes the extension.


I agree, DTLS session should always be setup with "use_srtp" extension. There is little or no additional overhead, but this removes the latency required for a new DTLS session when and if SRTP is added. Since there is no new DTLS session there is no need for a new underlying transport and additional IPs. Nice and clean.

This should probably be stated somewhere in the document.
_____________
Roman Shpount