[rtcweb] Regarding cloning of PeerConnections when multiple answers are received

Magnus Westerlund <magnus.westerlund@ericsson.com> Thu, 29 March 2012 07:57 UTC

Return-Path: <magnus.westerlund@ericsson.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 DA7F321F8587 for <rtcweb@ietfa.amsl.com>; Thu, 29 Mar 2012 00:57:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -108.174
X-Spam-Level:
X-Spam-Status: No, score=-108.174 tagged_above=-999 required=5 tests=[AWL=-1.925, BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 5oHh9CyWSPWD for <rtcweb@ietfa.amsl.com>; Thu, 29 Mar 2012 00:57:14 -0700 (PDT)
Received: from mailgw1.ericsson.se (mailgw1.ericsson.se [193.180.251.45]) by ietfa.amsl.com (Postfix) with ESMTP id BCE8521F8550 for <rtcweb@ietf.org>; Thu, 29 Mar 2012 00:57:13 -0700 (PDT)
X-AuditID: c1b4fb2d-b7b76ae0000063d8-bd-4f7415d62fb9
Authentication-Results: mailgw1.ericsson.se x-tls.subject="/CN=esessmw0197"; auth=fail (cipher=AES128-SHA)
Received: from esessmw0197.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) (using TLS with cipher AES128-SHA (AES128-SHA/128 bits)) (Client CN "esessmw0197", Issuer "esessmw0197" (not verified)) by mailgw1.ericsson.se (Symantec Mail Security) with SMTP id EB.21.25560.6D5147F4; Thu, 29 Mar 2012 09:57:10 +0200 (CEST)
Received: from [127.0.0.1] (153.88.115.8) by esessmw0197.eemea.ericsson.se (153.88.115.88) with Microsoft SMTP Server id 8.3.213.0; Thu, 29 Mar 2012 09:57:10 +0200
Message-ID: <4F7415D5.80604@ericsson.com>
Date: Thu, 29 Mar 2012 09:57:09 +0200
From: Magnus Westerlund <magnus.westerlund@ericsson.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20120312 Thunderbird/11.0
MIME-Version: 1.0
To: "rtcweb@ietf.org" <rtcweb@ietf.org>
X-Enigmail-Version: 1.4
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Brightmail-Tracker: AAAAAA==
Subject: [rtcweb] Regarding cloning of PeerConnections when multiple answers are received
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: Thu, 29 Mar 2012 07:57:15 -0000

WG, as individual

As just discussed in the meeting Justin and Hadriel didn't think that
you could clone PeerConnections properly. I do believe it is possible.

If the API provides a method where you can clone a current
peerConnection you can actually share the transport layer information at
one end-point for multiple peer connections assuming that the other
end-points transport addresses are different between the different
peerConnections being cloned.

This works as the complete ICE username is the concatenation of both
sides, as long as an secondary answer contains a different username and
has candidates with different transport addresses (address+port). Then
end-point A receiving the second answer can have the ICE stack accept
both usernames and if connectivity checks works then you create
different 5-tuple filter to divide any media streams to the right peer
connections media handler.

When you clone a PC then must allocate the media decoding resources for
each cloning. And that is something the cloning function may block on.


Cheers

Magnus Westerlund

----------------------------------------------------------------------
Multimedia Technologies, Ericsson Research EAB/TVM
----------------------------------------------------------------------
Ericsson AB                | Phone  +46 10 7148287
Färögatan 6                | Mobile +46 73 0949079
SE-164 80 Stockholm, Sweden| mailto: magnus.westerlund@ericsson.com
----------------------------------------------------------------------