Re: [rtcweb] New Version Notification for draft-jesup-rtcweb-data-01.txt

Randell Jesup <randell-ietf@jesup.org> Sun, 13 November 2011 01:50 UTC

Return-Path: <randell-ietf@jesup.org>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2780711E8095 for <rtcweb@ietfa.amsl.com>; Sat, 12 Nov 2011 17:50:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.563
X-Spam-Level:
X-Spam-Status: No, score=-2.563 tagged_above=-999 required=5 tests=[AWL=0.036, BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xAfgC7q97nd0 for <rtcweb@ietfa.amsl.com>; Sat, 12 Nov 2011 17:50:34 -0800 (PST)
Received: from r2-chicago.webserversystems.com (r2-chicago.webserversystems.com [173.236.101.58]) by ietfa.amsl.com (Postfix) with ESMTP id 2DA0511E8091 for <rtcweb@ietf.org>; Sat, 12 Nov 2011 17:50:34 -0800 (PST)
Received: from pool-173-49-135-74.phlapa.fios.verizon.net ([173.49.135.74] helo=[192.168.1.12]) by r2-chicago.webserversystems.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <randell-ietf@jesup.org>) id 1RPPDN-0004dG-Dg for rtcweb@ietf.org; Sat, 12 Nov 2011 19:50:33 -0600
Message-ID: <4EBF223C.50107@jesup.org>
Date: Sat, 12 Nov 2011 20:49:48 -0500
From: Randell Jesup <randell-ietf@jesup.org>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: rtcweb@ietf.org
References: <20111031211134.8188.49554.idtracker@ietfa.amsl.com> <4EAF64FF.8020101@jesup.org> <02485FF93524F8408ECA9608E47D9F2007CACFFAC2@nambx05.corp.adobe.com> <474200CA-F509-438B-A9CD-71742F4AF6B7@lurchi.franken.de> <02485FF93524F8408ECA9608E47D9F2007CAE80473@nambx05.corp.adobe.com> <E1C96764-9AD2-4925-A3C9-DCC1EF6E9D98@lurchi.franken.de> <4EBDBA63.7010809@jesup.org> <C2A7EAA2-03E9-4932-A10D-666AA494F6FF@lurchi.franken.de>
In-Reply-To: <C2A7EAA2-03E9-4932-A10D-666AA494F6FF@lurchi.franken.de>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 8bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - r2-chicago.webserversystems.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - jesup.org
X-Source:
X-Source-Args:
X-Source-Dir:
Subject: Re: [rtcweb] New Version Notification for draft-jesup-rtcweb-data-01.txt
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.12
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: Sun, 13 Nov 2011 01:50:38 -0000

On 11/12/2011 4:00 PM, Michael Tüxen wrote:
> On Nov 12, 2011, at 1:14 AM, Randell Jesup wrote:
>>>>>> o the semantics of unordered messages are confusing and not a good map to WebRTC. they are semantically equivalent to an entirely separate stream loosely associated to the ordered stream of the same number. there's no way to tell (without application layer sequencing) if an unordered message has been lost/abandoned by the sender. at the protocol level, TSNs can be used to recover the queuing order of received unordered messages, but the TSNs are semantically disconnected from the SCTP user. recovering the original queuing order over a short reorder/reassembly window period is desirable in some real-time applications.
>>>>> The concept of PR-SCTP is that the receiver can handle this. Since the sender decided that the sequencing
>>>>> is not important, why should be receiver care?
>>>> my main point was that, specifically in the case of PR-SCTP, since unordered messages don't have a stream sequence number there's no way to tell at the receiver if one (or more) has been abandoned. gaps in the ordered message space can be detected.
>>> Conceptual question: Why does unordered  data need some ordering information.
>>> It sounds to me that you don't have unordered stuff in mind, but ordered unreliable stuff.
>>
>>
>> Because of state:  If you have datagrams A, B, C, and it's delivered B, A, C, you may throw away A *if* the data in A was already provided or updated in B, but not throw it away if B and A are independent.  You need to know the original ordering to know that.  Games will do stuff like this.
> This means that there are sequencing constraints... So it is not unordered. I think
> the service is ordered, unreliable what is used...

To be utterly clear: the game example I gave requires unordered, 
unreliable (though unordered reliable and unordered partial-reliability 
would work too).  It also needs to know the original sequence to know if 
there are gaps or out-of-order deliveries.  If it doesn't get the 
original sequence information from the stack (i.e. know if a packet has 
a gap in delivery, or a packet is out-of-order (and ideally where in the 
sequence it belonged), then it must add it's own message serial numbers 
to the application data.

Any sequence constraints as described might apply to parts of the 
message, not only to the message as a whole.  How to handle this is 
entirely in the application domain.

>>
>> Also, with datagrams you may need to know about losses when in-order (gaps), to change how you process data (simple example: PR-SCTP for lossy audio; on a missing packet you synthesize a replacement instead of ignoring the loss.)
>>
>> Yes, these can be done with application sequence numbers (so long as out-of-order delivery is allowed).  It's moderately inefficient to do so if the sequence data is available in the protocol.
>>
>>>>>> o an SCTP receiver should be able to choose to receive stream messages in originally-queued order or as-received-on-the-network order on a per-stream basis, and be able to recover the original queuing order to whatever extent desired (potentially limited by real-time constraints) when receiving in network order. SCTP's unordered message semantics are designed for "out-of-band" messages, and are not a good fit for general "real-time" data. transmission order should be determined by the sender, reception order should be determined by the receiver.
>>>>> It is a sender side thing. If the sender requires in-sequence delivery, you want the receiver to ignore
>>>>> this requirement? If there is not sequencing constraint, the sender should not send it ordered.
>>>> it's natural to use unordered messages for real-time data, since they can be delivered to the user as soon as they arrive even if there are gaps. however, in exactly these real-time scenarios, it's still often useful to know the original queuing order of the messages, and to allow the receiver to partially recover the original queuing order in, for example, a jitter/reorder buffer. this can be accomplished with application-layer sequence numbers, but it seems silly to have to duplicate existing protocol-level functionality (see my point about flow control above).
>>> Hmm. Looking at the service you want doesn't seem be unordered. For me this looks like
>>> an ordered unreliable service, taking some timing requirements into account.
>>
>>
>> A jitter buffer is in fact inherently an in-order partial-reliability service, true - but with different characteristics from SCTP partial-reliability (adaptive to the jitter level, perhaps to appearance of spikes or bulk-delay changes, concealment, whether it's isochronous in output, etc).  As mentioned before, there are other uses of true out-of-order delivery.
> I think the point is:
> The service used us unreliable, ordered. And the application want to do the
> ordering by itself. So it should do so. Which includes providing the necessary
> information for it.

Sure it can provide the information itself.  It is a waste of bits since 
the stack knows the information, but it's only a minor waste (16 or 32 
bits per datagram).  We certainly can deal with that if the stack 
doesn't supply it.


-- 
Randell Jesup
randell-ietf@jesup.org