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

Roman Shpount <roman@telurix.com> Tue, 10 April 2012 18:56 UTC

Return-Path: <roman@telurix.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 A663F11E80F2 for <rtcweb@ietfa.amsl.com>; Tue, 10 Apr 2012 11:56:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.779
X-Spam-Level:
X-Spam-Status: No, score=-2.779 tagged_above=-999 required=5 tests=[AWL=0.198, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
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 sd95P9GNy4kf for <rtcweb@ietfa.amsl.com>; Tue, 10 Apr 2012 11:56:19 -0700 (PDT)
Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by ietfa.amsl.com (Postfix) with ESMTP id 2920C11E80B8 for <rtcweb@ietf.org>; Tue, 10 Apr 2012 11:56:19 -0700 (PDT)
Received: by dady13 with SMTP id y13so184155dad.27 for <rtcweb@ietf.org>; Tue, 10 Apr 2012 11:56:19 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=C/Td7bU1LASQaxXoseE6S5iE5l5NFQZNmzmm8157ta4=; b=VC7577tkFFK3mWeH3SM+fUxeidSXR+lFsroLTliPIUQi/DYrFt2zWdXzPtQFZK3aEF j9FCelC2lGMThTpSR+w0Ak7cePTupW9UU1R5/FjQ2MdRdCAC894pLPKd549zxbWFXGjm Pv9Ol8G1fqJtlvfXAttmdISzfnDAdkF2AIXH/AyMIPcraikPs6vpFQg2VJWbq58kDUz6 re/3CmEU3TbPD8K4nRg8erhYuq+HXf8jo6PbbhH5cMwfgXr5na6vewRWlQvQr49MBQEV FY1gUtGT9/2J+AhcWd5HIUGRBkNAJhDRmM438OpL+iewj1AhwjJgbMBydbIj/mFg7xi+ VtgQ==
Received: by 10.68.238.42 with SMTP id vh10mr15907315pbc.70.1334084178843; Tue, 10 Apr 2012 11:56:18 -0700 (PDT)
Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx.google.com with ESMTPS id f8sm569202pbe.42.2012.04.10.11.56.17 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 Apr 2012 11:56:17 -0700 (PDT)
Received: by dady13 with SMTP id y13so184112dad.27 for <rtcweb@ietf.org>; Tue, 10 Apr 2012 11:56:16 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.68.236.198 with SMTP id uw6mr10122046pbc.99.1334084176762; Tue, 10 Apr 2012 11:56:16 -0700 (PDT)
Received: by 10.68.6.67 with HTTP; Tue, 10 Apr 2012 11:56:16 -0700 (PDT)
In-Reply-To: <4F83ECD5.1060405@ericsson.com>
References: <4F7415D5.80604@ericsson.com> <0E6A0E0D-BFDD-4974-87BE-B0DCD1ECE9D5@acmepacket.com> <CAD5OKxu77MTLmq-zFouQ2sHfqoQcBfVDPdvhuKSdRnxrOY1-vQ@mail.gmail.com> <4F83ECD5.1060405@ericsson.com>
Date: Tue, 10 Apr 2012 14:56:16 -0400
Message-ID: <CAD5OKxvvMYN7b0p5iC98Eqx+hV5nN7DjToSZuiHmUKYnn+weiw@mail.gmail.com>
From: Roman Shpount <roman@telurix.com>
To: Magnus Westerlund <magnus.westerlund@ericsson.com>
Content-Type: multipart/alternative; boundary="047d7b33d7c474d54704bd57adce"
X-Gm-Message-State: ALoCoQkPkQ/Efqn3oq6iwKcY7VgShV0oOIJN13fN6qxL3up7Wxq9WJCPGdM7wM4RAWwnGJDtLDUY
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [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: Tue, 10 Apr 2012 18:56:19 -0000

On Tue, Apr 10, 2012 at 4:18 AM, Magnus Westerlund <
magnus.westerlund@ericsson.com> wrote:

> Actually TURN forces one to setup at least new permissions for each peer
> that you want to accept flows from. Thus, even cloning an existing local
> state will require additional actions for any TURN candidates. I haven't
> looked into the detail for TURN TCP.
>
>
You are correct, when a new remote peer is added to a given allocation TURN
allocation, a new permission needs to be added if remote peer address is
different (permission is per address), new channel needs to be
created(optional but highly recommended for RTP), and ICE exchange should
be completed to confirm the connectivity. This procedure is the same for
adding new remote peer due to normal session re-negotiation (you can send
an offer with the same SDP on existing connetion and get a new response
with different peers back), reusing TURN allocation in case of bundle, or
in case we discuss -- forking. I would expect that a functional WebRTC
implementation must be able to reuse the same TURN allocation for multiple
connections within the same call. I do not think that adding support for
this to enable reuse of the same allocation across multiple calls would
complicate things too much.
_____________
Roman Shpount