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

Michael Tuexen <Michael.Tuexen@lurchi.franken.de> Wed, 23 July 2014 13:30 UTC

Return-Path: <Michael.Tuexen@lurchi.franken.de>
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 2FCF71B2955 for <rtcweb@ietfa.amsl.com>; Wed, 23 Jul 2014 06:30:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.952
X-Spam-Level:
X-Spam-Status: No, score=-0.952 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, J_CHICKENPOX_44=0.6, RP_MATCHES_RCVD=-0.001, SPF_HELO_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 sxcFmY9NizWW for <rtcweb@ietfa.amsl.com>; Wed, 23 Jul 2014 06:30:52 -0700 (PDT)
Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 237061B28E9 for <rtcweb@ietf.org>; Wed, 23 Jul 2014 06:30:51 -0700 (PDT)
Received: from dhcp-9cdd.meeting.ietf.org (dhcp-9cdd.meeting.ietf.org [31.133.156.221]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id C5D211C1047F2; Wed, 23 Jul 2014 15:30:48 +0200 (CEST)
Content-Type: text/plain; charset="windows-1252"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
In-Reply-To: <E1FE4C082A89A246A11D7F32A95A17828E4BCC13@US70UWXCHMBA02.zam.alcatel-lucent.com>
Date: Wed, 23 Jul 2014 09:30:45 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <D865CFF8-1656-49EB-A55B-184670BECB59@lurchi.franken.de>
References: <CAOJ7v-0F9pysYLehjTVDv1Sxz3TKaxi2y6J7RrpGqMdA=tiR_g@mail.gmail.com> <E1FE4C082A89A246A11D7F32A95A17828E4BCC13@US70UWXCHMBA02.zam.alcatel-lucent.com>
To: "Makaraju, Maridi Raju (Raju)" <Raju.Makaraju@alcatel-lucent.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/rtcweb/D7Dz2OBsnuCttWvEPJiZ7jUVCvI
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: Wed, 23 Jul 2014 13:30:53 -0000

On 23 Jul 2014, at 08:00, Makaraju, Maridi Raju (Raju) <Raju.Makaraju@alcatel-lucent.com> wrote:

>  
> In the existing data channel protocol, it's not possible to send zero-length messages, because SCTP prohibits it.
>  
> While this may seem to be an academic point, it does represent a divergence from WebSockets, and this difference could be meaningful to applications who use empty messages for keepalives. Or maybe the Yo app.
>  
> Since we can't send a zero-length SCTP message, I propose we add a PPID_EMPTY value or something similar to indicate a message with empty content.
> [Raju] There is a genuine need for this and the proposal is good.
> However, I am thinking of an alternate proposal to achieve the same but in a generic way.
> Define a PPID_OOB (out of band) or something similar.
> Apps can use this to send a message of non-zero length. For the “Yo” kind of app or empty stream-level heartbeat purpose, app can send a 1 byte length message, which other end’s app ignores.
What do you want to check with the heartbeat purpose? If you can talk to the peer?
That doesn't need to be done for every data channel, but only once for all of them.
As far as I understand, this is done by ICE...

Best regards
Michael
> This approach involves bit more API work for webrtc to have a variation of send(data, oobFlag) and new data type in onmessage(). IMHO, this approach allows more possibilities in future and also the same approach can be used by other SCTP use cases not involving webrtc.
>  
> BR
> raju
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb