Re: [rtcweb] Opening unordered data channel issue

Harald Alvestrand <> Fri, 23 August 2013 15:46 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 07CFE11E81FE for <>; Fri, 23 Aug 2013 08:46:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -110.535
X-Spam-Status: No, score=-110.535 tagged_above=-999 required=5 tests=[AWL=0.064, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, USER_IN_WHITELIST=-100]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id SsfAQKSoMlnQ for <>; Fri, 23 Aug 2013 08:46:15 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id 92AE211E81AF for <>; Fri, 23 Aug 2013 08:46:15 -0700 (PDT)
Received: from localhost (localhost []) by (Postfix) with ESMTP id 8C82839E22B for <>; Fri, 23 Aug 2013 17:46:10 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id ZugbUEN4L3lo for <>; Fri, 23 Aug 2013 17:46:09 +0200 (CEST)
Received: from [IPv6:2001:470:de0a:27:d007:1213:66b0:895a] (unknown [IPv6:2001:470:de0a:27:d007:1213:66b0:895a]) by (Postfix) with ESMTPSA id 9235B39E080 for <>; Fri, 23 Aug 2013 17:46:09 +0200 (CEST)
Message-ID: <>
Date: Fri, 23 Aug 2013 17:46:09 +0200
From: Harald Alvestrand <>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8
MIME-Version: 1.0
References: <>
In-Reply-To: <>
X-Enigmail-Version: 1.5.2
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Subject: Re: [rtcweb] Opening unordered data channel issue
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Fri, 23 Aug 2013 15:46:20 -0000

I like this solution (b). Let's Just Do It.

On 08/22/2013 05:52 PM, Michael Tuexen wrote:
> Dear all,
> at the last IETF in Berlin we discussed how to handle the opening of
> unordered data channels (no matter wether reliable or not). The problem
> to be handled is that it is possible that user messages arrive at the
> receiver before the DATA_CHANNEL_OPEN message is received. The result
> of the discussion at the meeting was that the best solution is that
> the sender sends user messages also ordered (on unordered channels)
> until there is an indication from the peer that the DATA_CHANNEL_OPEN
> has been processed. This makes sure that the DATA_CHANNEL_OPEN message
> is not received before user messages and therefore the above problem
> is solved.
> The open issue is, what the indication from the peer is. There were
> two options discussed at the meeting and it was decided that Randall
> Stewart and myself bring this to the list with the pros and cons
> of the alternatives. So here are the two options:
> (a) Use any user message sent from the peer as an indication.
> (b) Use a new ACK message.
> Arguments:
> * Using (b) introduces a 2-way handshake for unordered data channels.
>   However, it also works for data channels being used unidirectional.
> * Using (a) stays with the 1-way handshake, but in case of
>   data channels being used unidirectional you will not see the benefits
>   of unordered delivery.
> We had some discussions offline and think that using (b) is the
> cleaner solution. Please note that this 2-way handshake is not
> similar to the one we had some time ago. The ACK does not contain
> any additional information and it does not introduce any delay.
> You can send user data right after opening the data channel.
> For consistency we would even propose to use this 2 way handshake
> for ordered channels. It doesn't have any drawback and would mean
> that we use the same handshake for all data channels.
> So the proposed procedure for opening an arbitrary data channel is:
> 1) The opener sends a DATA_CHANNEL_OPEN message ordered and reliable.
> 2) The opener can start sending user data immediately.
>    It will always be sent ordered, no matter whether the data channel
>    is ordered or not.
> 3) The peer will send a DATA_CHANNEL_ACK message ordered and reliable
>    in response to the DATA_CHANNEL_OPEN message.
> 4) After reception of the DATA_CHANNEL_ACK message,
>    the opener will sent user messages unordered,
>    if the data channel is unordered and ordered, if the
>    data channel is ordered.
> Any opinions?
> Best regards
> Michael
> _______________________________________________
> rtcweb mailing list

Surveillance is pervasive. Go Dark.