Re: [Webtransport] A comment on draft-kinnear-httpbis-http2-transport-02

Eric Kinnear <ekinnear@apple.com> Tue, 19 November 2019 10:36 UTC

Return-Path: <ekinnear@apple.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 418181208A7 for <webtransport@ietfa.amsl.com>; Tue, 19 Nov 2019 02:36:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=apple.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 QrWvFq5HceXg for <webtransport@ietfa.amsl.com>; Tue, 19 Nov 2019 02:36:00 -0800 (PST)
Received: from ma1-aaemail-dr-lapp01.apple.com (ma1-aaemail-dr-lapp01.apple.com [17.171.2.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F32091208D1 for <webtransport@ietf.org>; Tue, 19 Nov 2019 02:35:59 -0800 (PST)
Received: from pps.filterd (ma1-aaemail-dr-lapp01.apple.com [127.0.0.1]) by ma1-aaemail-dr-lapp01.apple.com (8.16.0.27/8.16.0.27) with SMTP id xAJAWFBP013946; Tue, 19 Nov 2019 02:35:57 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=sender : from : message-id : content-type : mime-version : subject : date : in-reply-to : cc : to : references; s=20180706; bh=Wz4eIQgYZeFmperqBLFcapzgJZuvnKu7IVfm4rvvlJo=; b=Hd8+TIXbjej7ybBgTW11HKGyL1nmwYPMzg9ENd/KEDdc7IVrUt9SDMhYYmr98gaChUA8 XzZQdWNcf5VA0a2BM6KWo3eXhVIouqmhrspMFZXsDqDcZFDfYfb6lU17i2mWQMiGV1Kf JC9YKTuyqMY52Ju4ZbeyqsPshukDzDT8bIFD6tzlNq4+V7PWyq/NsIJncveFyvVs9CPz RAMrYpZZ7GnjGlbx/Oc8+dO/bPnyqTsYzWkFSo6DMmp+vm/Ybwt19YZ6ChzVCU9sCLWf pSk+01QMQMnpgbAqeqdzOYHo6f+EgHYMPXeRtI9xq9ZB7+NRgyPk+oSD0bcaj+pVuqW7 Fw==
Received: from sng-mtap-sz02.asia.apple.com (sng-mtap-sz02.asia.apple.com [17.84.80.84]) by ma1-aaemail-dr-lapp01.apple.com with ESMTP id 2wagn6d1ps-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 19 Nov 2019 02:35:56 -0800
Received: from sng-mmpp-sz01.asia.apple.com (sng-mmpp-sz01.asia.apple.com [17.84.80.62]) by sng-mtap-sz02.asia.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPS id <0Q1700NQBPFU2V00@sng-mtap-sz02.asia.apple.com>; Tue, 19 Nov 2019 18:35:54 +0800 (+08)
Received: from process_milters-daemon.sng-mmpp-sz01.asia.apple.com by sng-mmpp-sz01.asia.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) id <0Q1700700N5QNK00@sng-mmpp-sz01.asia.apple.com>; Tue, 19 Nov 2019 18:35:54 +0800 (+08)
X-Va-A:
X-Va-T-CD: 998a9864e8b92da9dad0a458e77c5f05
X-Va-E-CD: ec73a80d9bb32e8686f4a7d26871f899
X-Va-R-CD: b879d5d6a960c316f46e8ba8837b4386
X-Va-CD: 0
X-Va-ID: 701b0a8e-85db-469d-b3c7-94e8c6de3bac
X-V-A:
X-V-T-CD: 998a9864e8b92da9dad0a458e77c5f05
X-V-E-CD: ec73a80d9bb32e8686f4a7d26871f899
X-V-R-CD: b879d5d6a960c316f46e8ba8837b4386
X-V-CD: 0
X-V-ID: 44be340f-5067-4ea8-808f-5f8a25ee7f2b
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-11-19_03:,, signatures=0
Received: from [17.235.145.241] (unknown [17.235.145.241]) by sng-mmpp-sz01.asia.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPSA id <0Q17003F7PFOR300@sng-mmpp-sz01.asia.apple.com>; Tue, 19 Nov 2019 18:35:51 +0800 (+08)
Sender: ekinnear@apple.com
From: Eric Kinnear <ekinnear@apple.com>
Message-id: <A6573451-A259-44D3-897C-DBA1F89CC57E@apple.com>
Content-type: multipart/alternative; boundary="Apple-Mail=_C7047555-A862-430D-A326-72941587CE85"
MIME-version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\))
Date: Tue, 19 Nov 2019 18:35:48 +0800
In-reply-to: <C16AD68E-9A0C-4249-8BFF-A7DBD601DD69@apple.com>
Cc: "\"Martin J. Dürst\"" <duerst@it.aoyama.ac.jp>, "webtransport@ietf.org" <webtransport@ietf.org>, "public-i18n-core@w3.org" <public-i18n-core@w3.org>, Bernard Aboba <bernard.aboba@gmail.com>
To: Victor Vasiliev <vasilvv=40google.com@dmarc.ietf.org>
References: <CAOW+2dssuXQGnRTcq77Az_vQGDv0tm5cdd+TWPf0p_Q3mD9Dag@mail.gmail.com> <714de35c-15b0-9f01-ab36-ef62dfffe259@it.aoyama.ac.jp> <CAAZdMadWee99BsnNrAfYFfhwGCwCBka-7oFPeaY2yPAfWamNQw@mail.gmail.com> <C16AD68E-9A0C-4249-8BFF-A7DBD601DD69@apple.com>
X-Mailer: Apple Mail (2.3594.4.19)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-11-19_03:, , signatures=0
Archived-At: <https://mailarchive.ietf.org/arch/msg/webtransport/EkgvVYu8FLtw68mNoVqDde9SWtg>
Subject: Re: [Webtransport] A comment on draft-kinnear-httpbis-http2-transport-02
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: Tue, 19 Nov 2019 10:36:04 -0000

And to the original question about JS API work, I’m not aware of any, however there is a (not-yet-publicly-available) implementation of a native interface that does support this as a general abstraction. I think one of the key goals in WebTransport is going to be making sure that what we’re defining here has a clear boundary between: 

(a) Protocol mechanisms that are expressed on the wire
(b) Mappings to APIs that provide better abstraction, both Web and native.

I can see several possibilities for (b), but we should likely discuss that much more.

Thanks,
Eric


> On Nov 19, 2019, at 6:31 PM, Eric Kinnear <ekinnear@apple.com> wrote:
> 
> Agreed, I think these are somewhat separate concepts. I think draft-kinnear-httpbis-http2-transport is working towards extending HTTP/2 for bidirectional transport *beyond* WebSockets, if you’re intending to send WebSocket data on a stream, you’d use “websocket”, not “bytestream”, and you really probably should register another :protocol value to use for your protocol. The latest rev of the draft here indicates that if you’re going to use “bytestream” you must have negotiated what’s on the bytestream in a different manner. 
> 
> Lots more to unpack here, and always happy to chat, but that’s the short version of “bytestream” =/= “websocket”.
> 
> Thanks,
> Eric
> 
> 
>> On Nov 19, 2019, at 1:56 PM, Victor Vasiliev <vasilvv=40google.com@dmarc.ietf.org <mailto:vasilvv=40google.com@dmarc.ietf.org>> wrote:
>> 
>> On Tue, Nov 19, 2019 at 12:54 PM Martin J.. Dürst <duerst@it.aoyama..ac.jp <mailto:duerst@it.aoyama.ac.jp>> wrote:
>> The distinction between binary and text datagrams, and the limitation of 
>> text datagrams to UTF-8, considerably simplifies the creation of 
>> datagram-based protocols and increases interoperability.
>> 
>> I wonder why this wasn't included in the Webtransport draft, and hope 
>> that it can be added.
>> 
>> Hello Martin,
>> 
>> WebTransport does not make any assumptions about the nature of the payload it transmits, that is to say, all of the payload is assumed to be binary.  That is consistent with the general way the similar recent API has handled this (e.g. streaming fetch), as well as the design of underlying protocols.  TextEncoderStream/TextDecoderStream can be used to easily transform one into the other.
>> 
>> I'm especially confused about this being related to the datagrams; almost all datagram protocols I've seen are binary-based, since ~1200 bytes is typically too small for text-based protocols.
>> 
>>   -- Victor.
>> -- 
>> Webtransport mailing list
>> Webtransport@ietf.org <mailto:Webtransport@ietf.org>
>> https://www.ietf.org/mailman/listinfo/webtransport
>