Re: [Webtransport] Does WebTransport need a reliable, in-order message abstraction?

Bernard Aboba <bernard.aboba@gmail.com> Sun, 26 July 2020 00:09 UTC

Return-Path: <bernard.aboba@gmail.com>
X-Original-To: webtransport@ietfa.amsl.com
Delivered-To: webtransport@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BB9CD3A0B9C for <webtransport@ietfa.amsl.com>; Sat, 25 Jul 2020 17:09:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 tnzls2l2rwUm for <webtransport@ietfa.amsl.com>; Sat, 25 Jul 2020 17:09:00 -0700 (PDT)
Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E92923A0B99 for <webtransport@ietf.org>; Sat, 25 Jul 2020 17:08:59 -0700 (PDT)
Received: by mail-pj1-x102a.google.com with SMTP id k71so7211696pje.0 for <webtransport@ietf.org>; Sat, 25 Jul 2020 17:08:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:in-reply-to:to; bh=IUXgYtcq/Kdd8rBtaozEBe2DkFNZXl2QMn13AYVl4zM=; b=C1p3jMyNF0ULqL92ovpdegHOyx+97ir0oh4uOEjqqanNl+glodNW5IocDy7+eb1whN xIvyhz293tFWQ9AzwWyYz5NLNkhO3PN3tLLZ71x8BKUKE0/oLEgRhMTgYJjz6h6xLAmf nknRA2vsh7bfO/kEfWbCMsdNObBeaeddHhUW9a0LWUsDBA7MW+tEmr6MvVga9CRDTBI0 A5eDhD2AX8usEeHxUX4GJ3lJMOuv2G/ED6VKwPR90uH24IQzjT4M3NJxcLTZ5cykwDmB IZKHz0zMOlVtF7AAwwNNjyiyboTmeWEkl0SWqgXHs97m/5P7FRmtv3GQIU/34yMdQQNn s27Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:in-reply-to:to; bh=IUXgYtcq/Kdd8rBtaozEBe2DkFNZXl2QMn13AYVl4zM=; b=HjagfKTHDvNnbIrkbqKfytlRfjAreEXj8Q9bjGft7hCtosOzXjBuou8OhQBzgHGbsD GIkUFe2MCOBY/jWjkbS1J+Zbnxdun9b+XYdJNxGjUEuPAJVSjXWpIzS05dcg5sAMTPvt Qcl4FLcvm44jKo6ejmgPBmIkpCRomoHr+r0GzRWZPo+/zRYD1+0weHHXF21H8ewoq64O lr63pFbIiW26UvWqWeh6SNliQdOuvRXZeY2Mz3Bt0ZUrH4Y0d9qh8z0Ppfcu4oz7UUBa bLZO/2R8NF+HaIjnQAfAtujAuQ9n4xI9R9REtUNpXS/Tdb07LcAZrEt82iZHDktP7q/u UmMw==
X-Gm-Message-State: AOAM530dKmFKZz67hXPLpdF0VEhXyoK9UfZJD9cYNvMoqSllQmo9qqTV i0vc19xkamNagf0ZYyH9gpHo03xkn4A=
X-Google-Smtp-Source: ABdhPJwOq7tGMNKjkPlvkrURA3u14OysWokhB1W/9nbdZBwdCLjSShexXb8uybZO+hFiyNoUe4Qk6w==
X-Received: by 2002:a17:90a:178e:: with SMTP id q14mr11506093pja.80.1595722138662; Sat, 25 Jul 2020 17:08:58 -0700 (PDT)
Received: from [192.168.1.103] (c-71-227-236-207.hsd1.wa.comcast.net. [71.227.236.207]) by smtp.gmail.com with ESMTPSA id gv16sm9638889pjb.5.2020.07.25.17.08.57 for <webtransport@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 25 Jul 2020 17:08:57 -0700 (PDT)
Content-Type: multipart/alternative; boundary="Apple-Mail-920E4BEE-F461-49F2-82B4-B62035AE011C"
Content-Transfer-Encoding: 7bit
From: Bernard Aboba <bernard.aboba@gmail.com>
Mime-Version: 1.0 (1.0)
Date: Sat, 25 Jul 2020 17:08:57 -0700
Message-Id: <3084C7A6-B2C3-4C44-A567-3178FEC45C6B@gmail.com>
References: <CAOW+2dvDmMdaCiz_Qq0OJVhzuZDdPQu5xOV2ivV1Kr1MnvbJTQ@mail.gmail.com>
In-Reply-To: <CAOW+2dvDmMdaCiz_Qq0OJVhzuZDdPQu5xOV2ivV1Kr1MnvbJTQ@mail.gmail.com>
To: WebTransport <webtransport@ietf.org>
X-Mailer: iPhone Mail (17G68)
Archived-At: <https://mailarchive.ietf.org/arch/msg/webtransport/AE6vAeT-Iq1da1Qttxf7cAtmuFM>
Subject: Re: [Webtransport] Does WebTransport need a reliable, in-order message abstraction?
X-BeenThere: webtransport@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <webtransport.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/webtransport>, <mailto:webtransport-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/webtransport/>
List-Post: <mailto:webtransport@ietf.org>
List-Help: <mailto:webtransport-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/webtransport>, <mailto:webtransport-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 26 Jul 2020 00:09:02 -0000

Alan said: 

> Is replacing WebSockets with WebTransport one of our goals?  If so, I think we need to address the gap by adding this abstraction.  If not, we should explicitly mention that this abstraction doesn’t exist, and instruct developers to use WebSocket instead.

[BA] Thanks for bringing this up.

When we first started on what would become the RTCQuicTransport API, the goal was to support all the transport modes of the RTCDataChannel API, which was modelled after WebSockets. 

However, we realized that this required design of a framing protocol on top of QUIC reliable streams. After verifying that a simple framing protocol was implementable as a JS library on top of the RTCQuicTransport prototype, providing many of the services of RTCDataChannel, the “proof of concept” was considered done and since then not much has happened.

This is a good example of how things can fall between the cracks of protocol design and API design. “Assume we have a framing protocol designed in IETF....”