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:30 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 303211A003E for <rtcweb@ietfa.amsl.com>; Tue, 28 Jan 2014 00:30:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.85
X-Spam-Level:
X-Spam-Status: No, score=-3.85 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_SE=0.35, HTML_MESSAGE=0.001, 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 PnOWlYxzB4ub for <rtcweb@ietfa.amsl.com>; Tue, 28 Jan 2014 00:30:51 -0800 (PST)
Received: from mailgw1.ericsson.se (mailgw1.ericsson.se [193.180.251.45]) by ietfa.amsl.com (Postfix) with ESMTP id 8A8911A0018 for <rtcweb@ietf.org>; Tue, 28 Jan 2014 00:30:50 -0800 (PST)
X-AuditID: c1b4fb2d-b7f5d8e000002a7b-eb-52e76ab70a08
Received: from ESESSHC007.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw1.ericsson.se (Symantec Mail Security) with SMTP id A7.14.10875.7BA67E25; Tue, 28 Jan 2014 09:30:47 +0100 (CET)
Received: from ESESSMB109.ericsson.se ([169.254.9.236]) by ESESSHC007.ericsson.se ([153.88.183.39]) with mapi id 14.02.0387.000; Tue, 28 Jan 2014 09:30:47 +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
Date: Tue, 28 Jan 2014 08:30:46 +0000
Message-ID: <A21E0980-2F38-4156-AE03-8C5D80FE74F0@ericsson.com>
References: <7594FB04B1934943A5C02806D1A2204B1D142F0D@ESESSMB209.ericsson.se>
In-Reply-To: <7594FB04B1934943A5C02806D1A2204B1D142F0D@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.154]
Content-Type: multipart/alternative; boundary="_000_A21E09802F384156AE038C5D80FE74F0ericssoncom_"
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKLMWRmVeSWpSXmKPExsUyM+Jvje72rOdBBq+fq1is/dfO7sDosWTJ T6YAxigum5TUnMyy1CJ9uwSujLMX7jAV9HtW/OlaxNLAeNaui5GTQ0LARGL1z7PMELaYxIV7 69m6GLk4hAQOMUpc37EbylnCKLF2wV1WkCo2ATOJ5w+3gHWIANnXP/cygdjMAuoSdxafYwex hQXSJbr2fAeyOYBqMiTubxWBMI0knnVIg1SwCKhK/Ji+gAXE5hWwl5i5eTvYRCEBX4nGzTPB NnEK+Em8X7UWrIYR6Lbvp9ZAbRKXuPVkPhPEzQISS/ach7pfVOLl43+sELaSxKLbn6HqkyVW vZnIBLFLUOLkzCcsExhFZyEZNQtJ2SwkZRBxHYkFuz+xQdjaEssWvmaGsc8ceAzVay3Rd3sH M7KaBYwcqxjZcxMzc9LLDTcxAqPq4JbfujsYT50TOcQozcGiJM774a1zkJBAemJJanZqakFq UXxRaU5q8SFGJg5OqQZGVm32LW7WppN5xdyn3rFUnCpzfuoqOeOwGRKf3Nd98MycZO85Zc/W /zGu+0oaAhcwTn778+3VilNFlZtXCrjrfEpuyns8LfLnHpedmV0iBt0SvdOmzFi/PVJbKjNp 7qMTJcJTnV7ohIbM4viUVCTxlCtgNtv2zgNBNlv48l3eLusp0Tn1blGoEktxRqKhFnNRcSIA UaW+FXgCAAA=
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:30:53 -0000

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

Hi,

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


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?

br
Salvatore


Regards,

Christer


_______________________________________________
rtcweb mailing list
rtcweb@ietf.org<mailto:rtcweb@ietf.org>
https://www.ietf.org/mailman/listinfo/rtcweb