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

Salvatore Loreto <salvatore.loreto@ericsson.com> Tue, 28 January 2014 08:46 UTC

Return-Path: <salvatore.loreto@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 664CB1A018F for <rtcweb@ietfa.amsl.com>; Tue, 28 Jan 2014 00:46:28 -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 c_9umP_-xrtr for <rtcweb@ietfa.amsl.com>; Tue, 28 Jan 2014 00:46:27 -0800 (PST)
Received: from mailgw1.ericsson.se (mailgw1.ericsson.se [193.180.251.45]) by ietfa.amsl.com (Postfix) with ESMTP id 7C72C1A008A for <rtcweb@ietf.org>; Tue, 28 Jan 2014 00:46:26 -0800 (PST)
X-AuditID: c1b4fb2d-b7f5d8e000002a7b-60-52e76e5fa883
Received: from ESESSHC001.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw1.ericsson.se (Symantec Mail Security) with SMTP id 30.56.10875.F5E67E25; Tue, 28 Jan 2014 09:46:23 +0100 (CET)
Received: from ESESSMB109.ericsson.se ([169.254.9.236]) by ESESSHC001.ericsson.se ([153.88.183.21]) with mapi id 14.02.0387.000; Tue, 28 Jan 2014 09:46:22 +0100
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
To: Christer Holmberg <christer.holmberg@ericsson.com>
Thread-Topic: [rtcweb] RTCWEB data channel protocol: Do both endpoints need to send DATA_CHANNEL_OPEN?
Thread-Index: Ac8cATohOVAlbIwKQYO2t8QqB7DbKv//80KA///u5jCAABV0AA==
Date: Tue, 28 Jan 2014 08:46:20 +0000
Message-ID: <4B7CB104-BD52-4392-A0B5-4F5C187AA001@ericsson.com>
References: <7594FB04B1934943A5C02806D1A2204B1D142F0D@ESESSMB209.ericsson.se> <A21E0980-2F38-4156-AE03-8C5D80FE74F0@ericsson.com> <7594FB04B1934943A5C02806D1A2204B1D144004@ESESSMB209.ericsson.se>
In-Reply-To: <7594FB04B1934943A5C02806D1A2204B1D144004@ESESSMB209.ericsson.se>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [153.88.183.148]
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <E60996D4059133489283D2FB86C442C1@ericsson.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJLMWRmVeSWpSXmKPExsUyM+JvjW583vMggwONyhZr/7WzOzB6LFny kymAMYrLJiU1J7MstUjfLoErY+rFdqaC5cIViw+8ZmlgXMzfxcjJISFgIrF36REWCFtM4sK9 9WwgtpDAIUaJx1vyuhi5gOwljBKnbjcygyTYBMwknj/cAmaLANnXP/cygdjMAuoSdxafYwex hQXSJbr2fAeyOYBqMiTubxWBKHeSePbjDSOIzSKgKjHz9wpmkBJeAXuJO9eFIFYdZ5S4NekX 2A2cAn4SWx9/BlvFCHTb91NroFaJS9x6Mp8J4mYBiSV7zjND2KISLx//Y4WwlSQalzxhhajX k7gxdQobhG0tMWnCG3YIW1ti2cLXYL28AoISJ2c+YZnAKD4LyYpZSNpnIWmfhaR9FpL2BYys qxjZcxMzc9LLDTcxAqPn4JbfujsYT50TOcQozcGiJM774a1zkJBAemJJanZqakFqUXxRaU5q 8SFGJg5OqQbGSdz21tfV+Nym2C5YqGfB8tOhe7rur89yL05d27ffjUEkUf7/XBN/reL5qrvd NP6l+3f12nuGsVWZCCZzl85bHexd6BAnmX9kQtblXdxrdhRrZ8aUKHQdMq9R8rL6wd3ZIXJN +GeBQVjK3W/dG5+99Krvme+stT9q5kWuF9UHU5een3v28BwlluKMREMt5qLiRACiIWI0bAIA AA==
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:46:28 -0000

On Jan 28, 2014, at 10:37 AM, Christer Holmberg <christer.holmberg@ericsson.com>
 wrote:

> 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.

well a DataChannel is bidirectional then it can be used to send data from both the sides once it is open.


> Does it also have to send a DCO? I assume not, but I think it would be good to make that more clear.

you are right, it has not to do.
OK point taken, we will clarify this point also.

br
Salvatore


> 
> Regards,
> 
> Christer
>