Re: [MMUSIC] DTLS-SDP and JSEP Conflicts

Eric Rescorla <ekr@rtfm.com> Tue, 05 September 2017 04:03 UTC

Return-Path: <ekr@rtfm.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 42932132256 for <mmusic@ietfa.amsl.com>; Mon, 4 Sep 2017 21:03:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.com
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 gRj97eSQHinb for <mmusic@ietfa.amsl.com>; Mon, 4 Sep 2017 21:03:55 -0700 (PDT)
Received: from mail-yw0-x22a.google.com (mail-yw0-x22a.google.com [IPv6:2607:f8b0:4002:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1F5901321F5 for <mmusic@ietf.org>; Mon, 4 Sep 2017 21:03:55 -0700 (PDT)
Received: by mail-yw0-x22a.google.com with SMTP id x144so8411934ywg.2 for <mmusic@ietf.org>; Mon, 04 Sep 2017 21:03:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=igBs3Da58hYJ25EEDBURnc2tWOSzmTYh1nf5P3fpyL0=; b=edLqTynWyfRgkfayObJA0s1zBxFPsOduTcUQabX9kB061uGuuFdwJtHXnkm6BNII9D DNeZ5eCWkz5GEQf26BjPJ0Ww4R4Pm3YZ+nA7aE25o3eTpmY31MiiirHd5/U0JBqeaGK/ b8p5lA7KUCOOKmvpLY8wAyBXVf6xrPNj1fcOvpPISYZ88FX/DkOwEdEYqyOCKQOzaEFI ise7DjGftMwQz0hJ+qGC/gn/eTZcNaHnzQ+8shXZ3G8jDPkEZCMgz2Ofie6i/mZMHA36 UXJOUx5l+82J0DmJ6BWKnqlKAlbAmaz2RuAGGRnE071UwEc6gkjRvyNzhhtanDkALGaH csSg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=igBs3Da58hYJ25EEDBURnc2tWOSzmTYh1nf5P3fpyL0=; b=jzTqLHb+HmmMsA6FNBv/gAlzxuQijWNUmWI4ngtvkSaM3C3ON0+9sElTocmQ+95O9E QIcNm7BbDg+P/MMBzmydR3fgSbqSPXmXORg/LDIfamWYK5JjMvZJsmAfccIA6F7Oom53 8EhE0uFcxDU6PkQZHQJu/1I0ZFfJroWETwiCrz6I+lmukeispE0bfFUTcETD1ibnjsea RG60t6vi7x6Fg2PcOBjzRWrEEtnSHndWEkUxVRKC2BTLzp9rrf9nb8X3Ai1h/WrGkOEH ao2J5vWNGEbf4LEmXCCYOuIseE9OuFHT6w85Hf5ptxz44Wwp33rKjwNyhgxG2CC69aV4 m9VA==
X-Gm-Message-State: AHPjjUgD09+JeL0SiX/6UQY15426foTg33LuRNnjGErdtOmpBGbu1Cvg kSlhHfImw8ubfgv9Msw4zjrg0YRqCTrl
X-Google-Smtp-Source: ADKCNb4m5wDSMof4lIIGrqgvicjYVVhvLCowZevpu3F+NpQKdk37K9RuIlLnYcXanBQr+B6GdOZ/dOFSb8lBT0r4dvs=
X-Received: by 10.129.121.4 with SMTP id u4mr2140835ywc.71.1504584234321; Mon, 04 Sep 2017 21:03:54 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.13.218.130 with HTTP; Mon, 4 Sep 2017 21:03:13 -0700 (PDT)
In-Reply-To: <CAD5OKxviYzVHYwXzk0DDiMQ64nWYq1WnB1hYbNR0xUCwT33JiA@mail.gmail.com>
References: <f353ad39-4ee5-4661-8e99-7fab6e394e91@nostrum.com> <CAOW+2dtv8r7qTyNxWY8NacfEh+Ojk5ObVAXEur3D4GyMw89YaQ@mail.gmail.com> <CABcZeBOJgyva5e-ykH-RkKN=BJPrXVYLu8vZbbNBv0xscv6bOA@mail.gmail.com> <7594FB04B1934943A5C02806D1A2204B562818F7@ESESSMB109.ericsson.se> <CABcZeBNv4fdFTJ+tXeBkMDqbMCEw916Txt8owFY-X7ijX0-FcA@mail.gmail.com> <7594FB04B1934943A5C02806D1A2204B56282B43@ESESSMB109.ericsson.se> <CABcZeBNh9ep+tq4_wWHT6uqXZz=OS8VngrmtspPz5nJ=pZS0ow@mail.gmail.com> <7594FB04B1934943A5C02806D1A2204B562869A2@ESESSMB109.ericsson.se> <CABcZeBPj6e=rtYHr4nyqeaB58TDBEjyB0xYeJJ+P63rO0DSw+A@mail.gmail.com> <D5D30222.20F35%christer.holmberg@ericsson.com> <b5a72f26-8bae-7eb8-4d54-93dc38b0f16a@alum.mit.edu> <CABcZeBM3m6Sdou5-VE6hjtdQpzC8sEpeSH1fUzauW68NqoSiog@mail.gmail.com> <CAD5OKxviYzVHYwXzk0DDiMQ64nWYq1WnB1hYbNR0xUCwT33JiA@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Mon, 04 Sep 2017 21:03:13 -0700
Message-ID: <CABcZeBNHJXCzjuArsHAa_+hb0QC98ftA4-P0h2vwzMV1_ReyQg@mail.gmail.com>
To: Roman Shpount <roman@telurix.com>
Cc: Paul Kyzivat <pkyzivat@alum.mit.edu>, mmusic WG <mmusic@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c0a8af4d261850558695044"
Archived-At: <https://mailarchive.ietf.org/arch/msg/mmusic/2QZgVBUrBtEe-JDdRgk05VGm99g>
Subject: Re: [MMUSIC] DTLS-SDP and JSEP Conflicts
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 05 Sep 2017 04:03:57 -0000

On Mon, Sep 4, 2017 at 8:48 PM, Roman Shpount <roman@telurix.com> wrote:

> On Mon, Sep 4, 2017 at 10:41 AM, Eric Rescorla <ekr@rtfm.com> wrote:
>
>>
>>
>> On Mon, Sep 4, 2017 at 7:37 AM, Paul Kyzivat <pkyzivat@alum.mit.edu>
>> wrote:
>>
>>> On 9/4/17 6:14 AM, Christer Holmberg wrote:
>>>
>>> Now, based on your suggestion, if the offerer doesn¹t know whether the
>>>>>> answerer supports tls-id, does that mean that the only way
>>>>>> for the offerer to ensure that the re-offer will trigger a new DTLS
>>>>>> association is by modifying the fingerprint set in the offer?
>>>>>>
>>>>>
>>>>> That's true in any case, because we have implementations which behave
>>>>> that way and we can't change them.
>>>>>
>>>>
>>>> On GitHub you also suggested
>>>> (https://github.com/cdh4u/draft-dtls-sdp/issues/37) that the answerer,
>>>> even if it supports tls-id, shall not be able to trigger a new DTLS
>>>> association (read: change the tls-id value). I assume that means the
>>>> answerer would not be able to change its fingerprint set either, or do
>>>> anything else that would trigger a new DTLS association?
>>>>
>>>
>>> Why would you want to *prevent* the answerer from triggering a new DTLS
>>> association???
>>>
>>
>> As noted previously, it's confusing and it's only possible at all in the
>> edge case where the offerer offers an ICE restart but not a new DTLS
>> association.
>>
>>
> The main reason new DTLS association can started by the answering party is
> third party call control. The new DTLS association will be required if as a
> result of the offer/answer exchange two new end points ends up being
> connected with each other by a third party call control agent. This is a
> fairly common scenario. If it is not supported interoperability with
> existing implementations will be seriously affected. Please note that in
> existing specification new DTLS association can already be started by the
> answerer changing fingerprints, transport parameters, or setup role.
>

Well, as has been noted, the current specification is fairly unclear (I
feel comfortable saying that as one of the authors), but as a practical
matter, this only works if you already are doing an ICE restart. Is that
what is happening in this instance?

-Ekr



> As far as possible implementation options are concerned there are two
> possible solutions:
>
> a. Always require a new DTLS association whenever an offer is generated in
> the response to a request for a new offer (INVITE with no SDP in case of
> SIP). This will match ICE behavior where new ICE restart is required in
> such case. This is workable, but is excessive and will generate new DTLS
> association establishment when it is not required. This is why we preferred
> the currently described solution.
>
> b. Allow answering party to force a new DTLS association by changing
> dtls-id. This is something that will address third party call control case,
> since new end point will generate a new tls-id. This also removes unneeded
> DTLS associations if third party call control ends up connecting to the
> same end point (which happens more often then expected due to 3pcc agents
> doing connectivity checks).
>
> This is why I would strongly prefer to leave current specification as it
> is.
>
> Regards,
> _____________
> Roman Shpount
>
>