Re: [rtcweb] Data Channel Negotiation and reopening of decisions

Michael Thornburgh <mthornbu@adobe.com> Fri, 15 February 2013 22:57 UTC

Return-Path: <mthornbu@adobe.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 0158D21F84D8 for <rtcweb@ietfa.amsl.com>; Fri, 15 Feb 2013 14:57:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.697
X-Spam-Level:
X-Spam-Status: No, score=-104.697 tagged_above=-999 required=5 tests=[AWL=-1.098, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RCoMXwpXAfYS for <rtcweb@ietfa.amsl.com>; Fri, 15 Feb 2013 14:57:09 -0800 (PST)
Received: from exprod6og123.obsmtp.com (exprod6og123.obsmtp.com [64.18.1.241]) by ietfa.amsl.com (Postfix) with ESMTP id E7CB121F846B for <rtcweb@ietf.org>; Fri, 15 Feb 2013 14:57:08 -0800 (PST)
Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob123.postini.com ([64.18.5.12]) with SMTP ID DSNKUR69RBeHP5zRY0yqajJ8+DBw9GfBV69s@postini.com; Fri, 15 Feb 2013 14:57:08 PST
Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r1FMs41v024631 for <rtcweb@ietf.org>; Fri, 15 Feb 2013 14:54:04 -0800 (PST)
Received: from nacas03.corp.adobe.com (nacas03.corp.adobe.com [10.8.189.121]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r1FMv7AV009182 for <rtcweb@ietf.org>; Fri, 15 Feb 2013 14:57:08 -0800 (PST)
Received: from SJ1SWM219.corp.adobe.com (10.5.77.61) by nacas03.corp.adobe.com (10.8.189.121) with Microsoft SMTP Server (TLS) id 8.3.297.1; Fri, 15 Feb 2013 14:57:07 -0800
Received: from nambx05.corp.adobe.com ([10.8.189.124]) by SJ1SWM219.corp.adobe.com ([fe80::d55c:7209:7a34:fcf7%11]) with mapi; Fri, 15 Feb 2013 14:57:07 -0800
From: Michael Thornburgh <mthornbu@adobe.com>
To: "rtcweb@ietf.org" <rtcweb@ietf.org>
Date: Fri, 15 Feb 2013 14:57:05 -0800
Thread-Topic: [rtcweb] Data Channel Negotiation and reopening of decisions
Thread-Index: AQHOCdZYMz/8j5wte0qYTJYB9U+v5ph4WFUAgADD1ACAANcTgIAABrmAgAAlkICAAB2rAIAA7tYAgAA94wCAAAWzAIAAC0EbgAAI0+A=
Message-ID: <02485FF93524F8408ECA9608E47D9F20092C12DE1A@nambx05.corp.adobe.com>
References: <CABkgnnWUpMSBLioSD2+p82vGszX9R0Q4WFfME5j-DuK+B7KVJw@mail.gmail.com> <5113CD16.6090806@jesup.org> <CABkgnnW792o76t9dKhidOMJpa21VcbPQZFU1HYnY_yjTPCWhYw@mail.gmail.com> <51166A3C.4000604@jesup.org> <CABkgnnV2m=m+qtM1YR4CPse=gyekvWThon_Nxbf8YMVaNuvq6Q@mail.gmail.com> <511B6C9A.4090904@jesup.org> <CABkgnnUiCKuv_=mgLFf4sRnOb1bY190N7E_+V8gfTbKEUTBnDw@mail.gmail.com> <511CB20C.7020003@jesup.org> <CABkgnnU0idt+ntpKjTCMUCVFO9=_fSjGRPikD6Nk_Uem3L7E8g@mail.gmail.com> <89FAFB5C-9D03-4B76-A306-01F9E4EC4105@lurchi.franken.de> <CABkgnnXFrqTo2QpLhjWt5CmcQc6Kv4=vAgd3DgyndNtL1ewm7g@mail.gmail.com> <8E2722E7-F82A-48D4-80FB-C76929A2E324@lurchi.franken.de> <CABkgnnWzX2tpbadnB3DjhmB7cm6poCDvmxdAW2Z_stMbovJ3gw@mail.gmail.com> <A0FDFC7C-2C85-431C-A03E-0E486F9378D1@lurchi.franken.de>, <CABkgnnWdjV7F9jkbap91q-pLygzWJsTvAOh-m=-9q4VrU9DGUg@mail.gmail.com> <DA07C056-3E80-4E30-B078-5547A174549D@skype.net>
In-Reply-To: <DA07C056-3E80-4E30-B078-5547A174549D@skype.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [rtcweb] Data Channel Negotiation and reopening of decisions
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.12
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: Fri, 15 Feb 2013 22:57:10 -0000

in using RTMFP we recognize two different bidirectional channel modes:

  1) one (or more) return/response flows to an initial flow from one end

  2) truly symmetric bidirectional peer-to-peer channels

for (1), we use RTMFP's "Return Flow Association" facility (draft-thornburgh-adobe-rtmfp-04 sections 2.3.11.1.2, 3.6.1.1, 3.6.2.1, 3.6.3.1) to signal unambiguously at the transport layer when a new flow is in return/response to one from the other end.  associations can only be made to open flows.  unlike SCTP streams, RTMFP flows can be opened and closed at any time in a session.

for (2), we place a channel identifier marking in the flow metadata or initial message (or portions thereof in both places) of the flows from each end. the application makes the bidirectional association using these identifier markings.  there's no glare problem here since bidirectional communication is desired: if one end is opening but the other isn't, then the receiving end opens its half-connection in response (or rejects the incoming half-connection if it's not wanted); if both ends open their half-connections simultaneously, then you're done (on receipt of the incoming half-connection, you see that you already have the outgoing side open).  also in this case we typically send an application-layer ack message of the other end's half-connection open to signal the channel is fully bidirectional.

in both cases, this all happens end-to-end.  unidirectional flows are open immediately and data can be sent on them right away (if rejected by the other end, the sender will receive an exception).

unidirectional flows with return/response association allows you to build arbitrarily complex trees of flows.  we have found this lends itself to cleanly and naturally modeling the kinds of P2P communication we do in Flash Player, especially in our P2P overlay/mesh modes (like application-layer multicast).

-michael thornburgh


> From: rtcweb-bounces@ietf.org [mailto:rtcweb-bounces@ietf.org] On Behalf Of Matthew Kaufman (SKYPE) [matthew.kaufman@skype.net]
> Sent: Friday, February 15, 2013 1:56 PM
> 
> None if this would be a problem if we weren't making the mistake of using SCTP, which itself made the
> mistake of doing full-duplex channels instead of unidirectional channels with optional one-to-one or
> even many-to-one associations (as RTMFP has, as an example)
> 
> Matthew Kaufman
> 
> (Sent from my iPhone)
> 
> On Feb 15, 2013, at 1:16 PM, "Martin Thomson" <martin.thomson@gmail.com> wrote:
> 
> > On 15 February 2013 12:55, Michael Tuexen
> > <Michael.Tuexen@lurchi.franken.de> wrote:
> >> I think I understand what you are proposing. But what happens, if
> >> both sides at about the same time open want to open a data channel.
> >> For both sides outgoing stream X is free, so they use this. So the
> >> endpoints end up with one data channel instead of two.
> >
> > Actually, I'd go further than that.  I'd require that browser
> > implement the same algorithm for selecting the stream to use.  That
> > implies that in all cases other than the rarest race conditions, you
> > get the same data channel.