Re: [rtcweb] Data channel: JavaScript usage of data channel without the Data Channel Protocol?

Richard Ejzak <richard.ejzak@gmail.com> Tue, 11 February 2014 20:05 UTC

Return-Path: <richard.ejzak@gmail.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0D3211A0737 for <rtcweb@ietfa.amsl.com>; Tue, 11 Feb 2014 12:05:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, 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 KOHzJxniCeC2 for <rtcweb@ietfa.amsl.com>; Tue, 11 Feb 2014 12:05:08 -0800 (PST)
Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) by ietfa.amsl.com (Postfix) with ESMTP id EBDDD1A0747 for <rtcweb@ietf.org>; Tue, 11 Feb 2014 12:05:07 -0800 (PST)
Received: by mail-lb0-f173.google.com with SMTP id s7so4854008lbd.32 for <rtcweb@ietf.org>; Tue, 11 Feb 2014 12:05:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zGX+ZKg4LenXyq7c1hFRY0BAv3K5ZPk7TA96cUjZOrA=; b=APfLM3c3XSXt/+sQgRLPp8HO1XwLRgpUJlFNnuZpotmVARtcBRVITAT8X3+o9101vD lDaW9bIYuoKJKQESLY1OJP4UCV1Yw0GEMxd2Kkme8Dex7/Qju9tmfM1AVDMCcWxPBJPc 69LBLf71QHai2p67EMcnz4B3brvd+JxQo+8NdKCt5rVG4Md2AeoePMxlUlsKbu7BsBDP BlD1iOtGNvwJ7I0J+3+ZkRwO7Ht3q3N/ZC6GuSc+RBVWUYMlfLWWKZy2PVXn5CdGp2tf r3Ira/wzsafsap+Vj/9001vkd3l7pAOtFAi+7t8aPvBcj52H9Kl6LBUvzxExtZYnbu/D Zklw==
MIME-Version: 1.0
X-Received: by 10.112.160.200 with SMTP id xm8mr26515800lbb.24.1392149106675; Tue, 11 Feb 2014 12:05:06 -0800 (PST)
Received: by 10.112.98.162 with HTTP; Tue, 11 Feb 2014 12:05:06 -0800 (PST)
In-Reply-To: <7594FB04B1934943A5C02806D1A2204B1D15F1AC@ESESSMB209.ericsson.se>
References: <7594FB04B1934943A5C02806D1A2204B1D15F1AC@ESESSMB209.ericsson.se>
Date: Tue, 11 Feb 2014 14:05:06 -0600
Message-ID: <CAJuyhsxFmGKyEho_6ZgF-8QnEO4-D4W7kwLYRu=0nn-nts7RcA@mail.gmail.com>
From: Richard Ejzak <richard.ejzak@gmail.com>
To: Christer Holmberg <christer.holmberg@ericsson.com>
Content-Type: multipart/alternative; boundary="001a11c24896fa557504f226f8db"
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Data channel: JavaScript usage of data channel without the Data Channel Protocol?
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Tue, 11 Feb 2014 20:05:11 -0000

Hi Christer,
I didn't see any other response to your question, but please excuse me if I
missed it.

My understanding of this case is that if DCEP is not used, the "open" event
is triggered once the browser finishes creating the protocol machinery for
the data channel being created.  This is the only mechanism available to
acknowledge to the JS app that the data channel has been set up since, as
you say, the browser will neither send nor receive an open/ack message.  I
don't see any other reasonable alternative to this without API changes.

There is a slight problem with this since the peer may not have established
the protocol machinery necessary to actually communicate on the created
data channel.  Some external mechanism is necessary to verify that both
peers have "opened" the same data channel before either party sends data.
 See my draft on SDP for external negotiation of data channels for a
description of one way to do this.

Richard


On Thu, Feb 6, 2014 at 5:15 AM, Christer Holmberg <
christer.holmberg@ericsson.com> wrote:

>  Hi,
>
>
>
> As was indicated earlier, the usage of the Data Channel Protocol (DCP) is
> optional with the Data Channel.
>
>
>
> However, if I understand the API correctly, only the DCP "open"/"ack"
> messages will trigger a JavaScript "open" event.
>
>
>
> If so, how will my JS App be able to use the data channel if I do NOT use
> the Data Channel Protocol? Can I use it without the "open" event, and/or is
> there something else that will trigger it?
>
>
>
> Regards,
>
>
>
> Christer
>
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>
>