Re: [rtcweb] Sending of zero-length messages over data channels

Justin Uberti <juberti@google.com> Thu, 24 July 2014 18:16 UTC

Return-Path: <juberti@google.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 861231A0AD9 for <rtcweb@ietfa.amsl.com>; Thu, 24 Jul 2014 11:16:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.379
X-Spam-Level:
X-Spam-Status: No, score=-1.379 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=no
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 k0S7Vn52BrzC for <rtcweb@ietfa.amsl.com>; Thu, 24 Jul 2014 11:16:44 -0700 (PDT)
Received: from mail-vc0-x230.google.com (mail-vc0-x230.google.com [IPv6:2607:f8b0:400c:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 63B301A0A90 for <rtcweb@ietf.org>; Thu, 24 Jul 2014 11:16:44 -0700 (PDT)
Received: by mail-vc0-f176.google.com with SMTP id id10so5459804vcb.21 for <rtcweb@ietf.org>; Thu, 24 Jul 2014 11:16:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=foniZGxQpwLE2fcHQuMQijDQO1JFYPQ0UibyuI8tg60=; b=cBrt207qrqwd6rTx2rEG5cPQFCUFGHZjw3FyA9Ruv/ULAMLg541FORjcS9BkteEaBD XDXiVr3fC5ZIFxLRZK6XaG6hB/ldzwWu2GbIIxygSoLtCC6J7QiLlhVuqpHFn2Y0NDD3 wuWuKoAZ/6ICcfZLLQ+3vtWajXtbqgZtnS5fqT1kavjHXoMrPIxMpZZXS/wp2K7WB4zD lm3Hv2FS2dZOgLUS2uIdIyMrfWpA3QeK4V3SBO6dJM8iPowaI2Q2AZN5h9lpvykJBYFa iY5++RY7zUxoG2Xrs5sYJm6FekNVgLfbIYTsm9EakTeQyQY9h+hzvluyupYfQ0SQJDmF hLtA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=foniZGxQpwLE2fcHQuMQijDQO1JFYPQ0UibyuI8tg60=; b=BRjHqY66a8nq8V1FdMA1u19XEMWSGODJ0IjVuJjLKCafEuk8wk3hSXMGF5dJ8HjfQU Oa/TD7FGh85sUj8Z56yg/PY5duxlLIPYIqDEghCffqsWtTMy14FOsOJdRxKIIxLbowUZ cmTi9npPDyC8n2NrtWyM4tL59qJKQq3yP9ziQP2f1Ghhi5eDrwaqQq1cViuovzCk1Qqf QbOmbdjsr+pZqeNEUXsJGTAlUCl/nq/ez046e+VQ+iyQQOdUvJFkfoDjt4o1+9H4Ofrr KlACrFIx4IqLXXBhOpbNlfRqiepEQObfotM7Uf/1FHV1OA//AsiOe9I3/v6yiYR7nZa0 MpbQ==
X-Gm-Message-State: ALoCoQmDF+COPPBunQChg/ycNfLt9WJguzztVlHf48eUiAH3sDzSOetYoRGyUNmozeqdZ81VAyoC
X-Received: by 10.221.41.135 with SMTP id tu7mr14938574vcb.70.1406225802937; Thu, 24 Jul 2014 11:16:42 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.4.70 with HTTP; Thu, 24 Jul 2014 11:16:22 -0700 (PDT)
In-Reply-To: <E1FE4C082A89A246A11D7F32A95A17828E4C5974@US70UWXCHMBA02.zam.alcatel-lucent.com>
References: <CAOJ7v-0F9pysYLehjTVDv1Sxz3TKaxi2y6J7RrpGqMdA=tiR_g@mail.gmail.com> <E1FE4C082A89A246A11D7F32A95A17828E4BCC13@US70UWXCHMBA02.zam.alcatel-lucent.com> <CAOJ7v-1r-vToAf-rUfZmKsBC4MX4ZXUcAkqahrskF1D3axOpuA@mail.gmail.com> <E1FE4C082A89A246A11D7F32A95A17828E4C5974@US70UWXCHMBA02.zam.alcatel-lucent.com>
From: Justin Uberti <juberti@google.com>
Date: Thu, 24 Jul 2014 14:16:22 -0400
Message-ID: <CAOJ7v-1VPP8iAz+gr9h98QUzZnBVna84yPqtc0JZR=ehGgJL0A@mail.gmail.com>
To: "Makaraju, Maridi Raju (Raju)" <Raju.Makaraju@alcatel-lucent.com>
Content-Type: multipart/alternative; boundary="001a1133901c75685a04fef4755a"
Archived-At: http://mailarchive.ietf.org/arch/msg/rtcweb/Abqpblox3kmWwIemHoiiI2mm6Xw
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Sending of zero-length messages over data channels
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: Thu, 24 Jul 2014 18:16:45 -0000

On Thu, Jul 24, 2014 at 2:10 PM, Makaraju, Maridi Raju (Raju) <
Raju.Makaraju@alcatel-lucent.com> wrote:

>
>
>
>
> Changing the send() API defeats the purpose of trying to provide full
> WebSockets compatibility.
>
> *<Raju> I understand the desire to make the API compatible to websocket
> API. But, unlike websocket TCP transport, the data channels the underlying
> transport (SCTP) has the flexibility for PPID, which can be utilized to
> achieve the same goal, with the added advantage of using the same approach
> for other use cases (like OOB data delivery). *
>
>
>
> *IHMO, PPID_EMPTY approach is not straight forward either as at SCTP level
> you still have to send some dummy data (unless SCTP is enhanced) of some
> size (=1 or implementation dependent?), which is not obvious to the user.
> Will the ‘bufferedAmount’ be increased appropriately with the dummy data
> sent? Even if it is accounted for, the application has to know this and be
> mindful of the “mysterious” increase (1 byte or n bytes?) in
> ‘bufferedAmount’, something very unique to SCTP.*
>

We will send 1 byte, and this will not be reflected in bufferedAmount, same
as WebSockets.

>
>
> *PPID_OOB approach is transparent to the user as user sends the data, so
> it is automatically accounted in ‘bufferedAmount’.*
>
>
>
> *</Raju>*
>
>
>
> I think the PPID_EMPTY approach (probably PPID_EMPTY_TEXT and
> PPID_EMPTY_BINARY, to be precise) is a simple and complete solution.
>