Re: [rtcweb] RTCWEB data channel protocol: Do both endpoints need to send DATA_CHANNEL_OPEN?

Christer Holmberg <christer.holmberg@ericsson.com> Tue, 28 January 2014 08:37 UTC

Return-Path: <christer.holmberg@ericsson.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 23D681A019D for <rtcweb@ietfa.amsl.com>; Tue, 28 Jan 2014 00:37:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.851
X-Spam-Level:
X-Spam-Status: No, score=-3.851 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-2.3, 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 c5c-GmwdEzZY for <rtcweb@ietfa.amsl.com>; Tue, 28 Jan 2014 00:37:46 -0800 (PST)
Received: from mailgw2.ericsson.se (mailgw2.ericsson.se [193.180.251.37]) by ietfa.amsl.com (Postfix) with ESMTP id DB7F01A0018 for <rtcweb@ietf.org>; Tue, 28 Jan 2014 00:37:45 -0800 (PST)
X-AuditID: c1b4fb25-b7f038e000005d01-03-52e76c56507c
Received: from ESESSHC021.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw2.ericsson.se (Symantec Mail Security) with SMTP id 9C.A8.23809.65C67E25; Tue, 28 Jan 2014 09:37:42 +0100 (CET)
Received: from ESESSMB209.ericsson.se ([169.254.9.99]) by ESESSHC021.ericsson.se ([153.88.183.81]) with mapi id 14.02.0387.000; Tue, 28 Jan 2014 09:37:41 +0100
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
Thread-Topic: [rtcweb] RTCWEB data channel protocol: Do both endpoints need to send DATA_CHANNEL_OPEN?
Thread-Index: Ac8cATohOVAlbIwKQYO2t8QqB7DbKv//80KA///u5jA=
Date: Tue, 28 Jan 2014 08:37:40 +0000
Message-ID: <7594FB04B1934943A5C02806D1A2204B1D144004@ESESSMB209.ericsson.se>
References: <7594FB04B1934943A5C02806D1A2204B1D142F0D@ESESSMB209.ericsson.se> <A21E0980-2F38-4156-AE03-8C5D80FE74F0@ericsson.com>
In-Reply-To: <A21E0980-2F38-4156-AE03-8C5D80FE74F0@ericsson.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [153.88.183.147]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHLMWRmVeSWpSXmKPExsUyM+JvjW5YzvMgg8sbrCzW/mtnd2D0WLLk J1MAYxSXTUpqTmZZapG+XQJXRvukfUwF8wUq/u3tYm5g/MjTxcjJISFgInFv6x9mCFtM4sK9 9WxdjFwcQgKHGCUerethBEkICSxmlDh42K2LkYODTcBCovufNogpAtT7+EA+SAWzgLrEncXn 2EFsYYF0iXUt21ghSjIk7m8VAQmLCFhJbD73DCzMIqAq0bsoHCTMK+Ar8WTeeUaIpc2MEovm TmQBSXAKOEjM7J4Gdhkj0GXfT61hglglLnHryXwmiIsFJJbsOQ91vajEy8f/wOZLCChJTNua BlGuJ3Fj6hQ2CFtbYtnC18wQewUlTs58wjKBUWwWkqmzkLTMQtIyC0nLAkaWVYzsuYmZOenl RpsYgXFwcMtv1R2Md86JHGKU5mBREuf98NY5SEggPbEkNTs1tSC1KL6oNCe1+BAjEwenVANj USDXvbApJ7dOjhXd1P7+eeULrRnzxM0ldk97Itr3smDhgd97P9ktD37y9sTm6qNW56/rzow/ KxF1ecuUbQeWX2id8pD/6Gk+n33CM3aneIht+yxgLXjbwISPqfiKW+C/R1eViy4yLr518tHO M9kvi3k9b11/ZNp9MF9722w/9q8Z+o5ss36IcSmxFGckGmoxFxUnAgCt32c3UQIAAA==
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] RTCWEB data channel protocol: Do both endpoints need to send DATA_CHANNEL_OPEN?
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, 28 Jan 2014 08:37:48 -0000

Hi Sal,
 
>> As defined in draft-ietf-rtcweb-data-channel-06, a data channel consists of two unidirectional SCTP streams.
>> exactly it is a pair of one ingoing and one outgoing stream
>>
>> draft-ietf-rtcweb-data-protocol-01 says that, if one endpoint wants to open a data channel, it sends a 
>> DATA_CHANNEL_OPEN (using a SCTP stream ID value of its choice). Then, the other endpoints sends 
>> DATA_CHANNEL_ACK on the same SCTP stream (eventhough it is a unidirectional stream).
>>
> not exactly, it says with the same stream identifier
>
>   If a DATA_CHANNEL_OPEN message is received on an unused stream, the
>   stream identifier corresponds to the role of the peer and all
>   parameters in the DATA_CHANNEL_OPEN message are valid, then a
>   corresponding DATA_CHANNEL_ACK message is sent on the stream with the
>   same stream identifier as the one the DATA_CHANNEL_OPEN message was
>   received on.
> that means that means that the outgoing stream should have the same stream identifier of the ingoing one.
> I understand is not clear at first read, we will try to clarify better 

Thanks.

I also think it would be good to add some call flows to the draft.

>> Q1: Assuming that both endpoints want to use the data channel, do both endpoints need to send DATA_CHANNEL_OPEN 
>> (on separate SCTP streams)? Or, can one of the endpoints, if it has received DCO, start using the data channel (using a SCTP stream of its choice)?
>
> sorry I don't understand the question.
> Are you asking for both endpoints trying to open the same channel and how avoid glare in opening channels
> or you are looking in the scenario where both endpoints want to open to different channels?

I am not talking about a glare situation.

I am talking about where an endpoint has received a DCO, and replied with a DCA. Then, that endpoint also wants to use the data channel. Does it also have to send a DCO? I assume not, but I think it would be good to make that more clear.

Regards,

Christer