Re: [rtcweb] Proposal for PeerConnection cloning

Randell Jesup <randell-ietf@jesup.org> Mon, 07 May 2012 07:37 UTC

Return-Path: <randell-ietf@jesup.org>
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 485E621F84E7 for <rtcweb@ietfa.amsl.com>; Mon, 7 May 2012 00:37:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.069
X-Spam-Level:
X-Spam-Status: No, score=-2.069 tagged_above=-999 required=5 tests=[AWL=-0.070, BAYES_00=-2.599, J_CHICKENPOX_33=0.6]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B3LKXYXx4pLv for <rtcweb@ietfa.amsl.com>; Mon, 7 May 2012 00:37:33 -0700 (PDT)
Received: from r2-chicago.webserversystems.com (r2-chicago.webserversystems.com [173.236.101.58]) by ietfa.amsl.com (Postfix) with ESMTP id 690B921F84E2 for <rtcweb@ietf.org>; Mon, 7 May 2012 00:37:33 -0700 (PDT)
Received: from pool-108-16-41-249.phlapa.fios.verizon.net ([108.16.41.249] helo=[192.168.1.12]) by r2-chicago.webserversystems.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <randell-ietf@jesup.org>) id 1SRIVg-0002vu-6K for rtcweb@ietf.org; Mon, 07 May 2012 02:37:32 -0500
Message-ID: <4FA77B77.1020806@jesup.org>
Date: Mon, 07 May 2012 03:36:23 -0400
From: Randell Jesup <randell-ietf@jesup.org>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120420 Thunderbird/12.0
MIME-Version: 1.0
To: rtcweb@ietf.org
References: <6F428EFD2B8C2F49A2FB1317291A76C11364EC028C@USNAVSXCHMBSA1.ndc.alcatel-lucent.com> <7F2072F1E0DE894DA4B517B93C6A05852C44001342@ESESSCMS0356.eemea.ericsson.se> <6F428EFD2B8C2F49A2FB1317291A76C11364EC0293@USNAVSXCHMBSA1.ndc.alcatel-lucent.com> <4FA75E92.2050007@jesup.org> <7F2072F1E0DE894DA4B517B93C6A05852C4435E11F@ESESSCMS0356.eemea.ericsson.se> <4FA7715B.40505@jesup.org> <7F2072F1E0DE894DA4B517B93C6A05852C4435E180@ESESSCMS0356.eemea.ericsson.se>
In-Reply-To: <7F2072F1E0DE894DA4B517B93C6A05852C4435E180@ESESSCMS0356.eemea.ericsson.se>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - r2-chicago.webserversystems.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - jesup.org
X-Source:
X-Source-Args:
X-Source-Dir:
Subject: Re: [rtcweb] Proposal for PeerConnection cloning
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: Mon, 07 May 2012 07:37:34 -0000

On 5/7/2012 3:08 AM, Christer Holmberg wrote:
> Hi,
>
>>>> If you want to support the usecase I suggested, where a single offer
>>>> can result in parallel forking, but where you don't want to lock down
>>>> to a single answerer: then you obviously need to support forking, and
>>>> likely you need/want to support it irrespective of the 'final' state of the original PeerConnection.  You *can* require cloning before the final answer is applied, though I would argue that you don't gain much by doing so.
>>>>
>>>> So this is the usecase: you send a single offer (say to a conference
>>>> server controller, or to a game server) and you get a separate answer
>>>> from each other endpoint, such as in a mesh conference, or who are in
>>>> the same 'area' of the game, or in hearing (at that moment) in a VR environment.  You might get these answers well after the initial answer or burst of answers.
>>> Yes. And, my idea would be that each of those answers are provided to the browser as PRE_ANSWERS.
>>>
>>> Then, at some point, you decide that you are not going to accept any more answers, and you provide an ANSWER to one of the (C)PCs, which will release all other associated (C)PCs.
>> Sorry, I think you missed the point: the application wants to end up with N connected, active PeerConnections, not one.  This is a
>> mesh conference (for example), not a central-mixer conference.  And for added fun, we don't necessarily know there won't be more
>> coming later, perhaps much later (but that's a possibly-separable feature).
> Speaking in SIP terms, I don't think it is possible to implement mesh conference that way, because clients will normally, once they've received one 200 OK, ACK+BYE any additional ones. Or, a forking proxy will CANCEL all other forked legs once a 200 OK has been forwarded on one of them.

Why would SIP come into this?  Yes, classic PSTN telecom is focused on 
endpoint to one other connection, and any form of more complex 
arrangement is implemented with a mixing server or equivalent, and thus 
SIP flows are designed with that assumption in mind.  However, we are 
NOT constrained to mirror SIP, and we should be able to build 
applications that go beyond what SIP makes easy to do.

I gave some direct use-cases we've talked about since the beginning or 
near: Mesh conferencing, multiplayer games - where parallel forking 
(without collapse to a single session/connection) is desirable/useful.  
If there's an equally-usable way to implement those cases avoiding 
cloning, please detail that.  I think cloning makes initiation of these 
sorts of mesh connections much simpler.

-- 
Randell Jesup
randell-ietf@jesup.org