Re: [rtcweb] Tunnelling DTLS in SDP

Peter Thatcher <pthatcher@google.com> Thu, 07 April 2016 15:19 UTC

Return-Path: <pthatcher@google.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 278D912D55C for <rtcweb@ietfa.amsl.com>; Thu, 7 Apr 2016 08:19:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.71
X-Spam-Level:
X-Spam-Status: No, score=-2.71 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 GZ0WyF2fZ3Ro for <rtcweb@ietfa.amsl.com>; Thu, 7 Apr 2016 08:19:14 -0700 (PDT)
Received: from mail-vk0-x231.google.com (mail-vk0-x231.google.com [IPv6:2607:f8b0:400c:c05::231]) (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 2446E12D8A7 for <rtcweb@ietf.org>; Thu, 7 Apr 2016 08:07:51 -0700 (PDT)
Received: by mail-vk0-x231.google.com with SMTP id c4so102748577vkb.3 for <rtcweb@ietf.org>; Thu, 07 Apr 2016 08:07:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=x4C4YndQd/mhmdeQcdULRJVTIxvP0nMFSZAC+lxw3kg=; b=fan0WhPz5t7jfQnrGI8PJLZPZSpshbW39WHwmlTFR4rUWyJVQjeQgiclkqG0/swPj2 7DiaSnAROKoX7KvKjLWQVw06zj3IP1B36ENIzInjSS16QEH2Im78Ay+uNoiN24pMZxaH QNEXMMc3k+x7/5ZMW+yZgI6wAqwRJVI2pMZLhjHLjpdwhVq+av4OsUgq/i7BLgVNYmtC yLshjqAIys/Zq3B+KYg1jM91Bl0cA8iFMfq9zE5pmjcWtJRpGECV95h0AzQWgu7X3raH TW6wHQjxQPto6OtqsMbKTbgusrQr8jWABv8+CHZcThbq/Ih24D4UGoskrzrUzZjRwx3u 68RQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=x4C4YndQd/mhmdeQcdULRJVTIxvP0nMFSZAC+lxw3kg=; b=QtgsgUZtSkOUHQ0xe5gMQFG8rSNIhGOsM4xKBURs8TAKy0cTiI0LBhMXoFxv1gyHEq 4quEDnXhCl9BnSD4QWO/h0F6HqI/WZmVFnZayrtinsNI3plwrrm3XXwjwFZZRVIzryQj yfnS4922IHUr2V+UkN3hDJuwTTjlmON9XJeJgfsHdIChzZ6i99xjYDNVf7uSyFDGwPPA aDk/2UCnG3J8M38cHETxYigMO0rePlq8/bt89V35nJCu2vNF896EHQKOZNbFXR95aNTq VFHq/FV4UyEasnPlPrL3ENBkJdiBBCtCIZEuSUhyTwHJrmGrMbfZ/ms2QhBm1JEFf2vB i1Vg==
X-Gm-Message-State: AD7BkJLlFrf6EqGspCfW3IqKwpk4mHgUbu7/c54i/iRRi01ellUcjrTaAFETvGASugZUqlr5j5bqJ1jP9E+PX5SJ
X-Received: by 10.31.194.10 with SMTP id s10mr1665195vkf.72.1460041670119; Thu, 07 Apr 2016 08:07:50 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.176.67.164 with HTTP; Thu, 7 Apr 2016 08:07:10 -0700 (PDT)
In-Reply-To: <57038B35.8040102@alvestrand.no>
References: <CABcZeBOM1KoXpXFhvjS753EVpsMENWVen3CCdFj8ry36vPH0dg@mail.gmail.com> <57038B35.8040102@alvestrand.no>
From: Peter Thatcher <pthatcher@google.com>
Date: Thu, 07 Apr 2016 08:07:10 -0700
Message-ID: <CAJrXDUHSUkJWLzWuOn37+RDRH=41dngszDkxLb88LJBawNG_RQ@mail.gmail.com>
To: Harald Alvestrand <harald@alvestrand.no>
Content-Type: multipart/alternative; boundary="001a114661dc1b5c01052fe6710d"
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtcweb/TSfBKgvi0QRUnyn6ImRG6bx1Kaw>
Cc: "<rtcweb@ietf.org>" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Tunnelling DTLS in SDP
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtcweb/>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Apr 2016 15:19:19 -0000

On Tue, Apr 5, 2016 at 2:53 AM, Harald Alvestrand <harald@alvestrand.no>
wrote:

> On first read, this makes sense to me.
>
> I wonder if it could/should be made into a general concept, to fit with
> the tendency in WebRTC:NG to separate signalling format even more from
> operation?
>
> We could call it "out of band DTLS setup", say that in general, a DTLS
> session can be started in one medium (SDP signalling, in this case), and
> continued in another medium (the DTLS-protected media channel), and have a
> section describing the details of carrying DTLS-over-SDP.
>

> When viewing it in this way, using the same technique with Jabber or
> proprietary signalling becomes a reasonably obvious exercise. There are
> some other twists that seem obvious too - for instance, one could continue
> the setup over the SDP channel in subsequent offer/answers if the first
> exchange failed to set up a media channel. I'm not sure that makes sense,
> though.
>

In ORTC language, we could simply have an event on the DtlsTransport that
is something like .onpacket and another that's .addpacket, and when the
transport wants to send a packet, it lets the JS know so it can do so over
the signalling path, and then the JS can take care of optimizing it (or
not).


>
> One SDP twist: If forking happens, it could be treated like any other
> attempt to generate multiple answers to a ClientHello, I think. I'm sure
> it's well defined how to respond to that - it's an obvious attack. Only one
> leg of the fork would ever succeed, I assume.
>
>
>
> On 04/04/2016 03:10 PM, Eric Rescorla wrote:
>
> Hi folks,
>
> I wanted to call your attention to a draft I just published with a
> possibly stupid
> idea.
>
> https://tools.ietf.org/html/draft-rescorla-dtls-in-sdp-00
>
> A nontrivial fraction of call setup time in WebRTC is the DTLS handshake.
> This document describes how to piggyback the first few handshake messages
> in the SDP offer/answer exchange, thus reducing latency.
>
> Comments welcome.
>
> -Ekr
>
>
>
>
>
> _______________________________________________
> rtcweb mailing listrtcweb@ietf.orghttps://www.ietf.org/mailman/listinfo/rtcweb
>
>
>
> --
> Surveillance is pervasive. Go Dark.
>
>
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>
>