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

Martin J. Dürst <duerst@it.aoyama.ac.jp> Tue, 19 November 2019 04:53 UTC

Return-Path: <duerst@it.aoyama.ac.jp>
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 2C8DB1200F1 for <webtransport@ietfa.amsl.com>; Mon, 18 Nov 2019 20:53:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=itaoyama.onmicrosoft.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 T7Bcit_q9o3X for <webtransport@ietfa.amsl.com>; Mon, 18 Nov 2019 20:53:51 -0800 (PST)
Received: from JPN01-OS2-obe.outbound.protection.outlook.com (mail-eopbgr1410104.outbound.protection.outlook.com [40.107.141.104]) (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 D77BC12008A for <webtransport@ietf.org>; Mon, 18 Nov 2019 20:53:50 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GGd3uFeq/81SaB7hyRaATtAgfouyu2zSvk8w6h89e/3UjIvQaZYIIkbcWE7w2xL1RVLijkNtnyyguAq5aCvPcRD/iBsSHQIE7VQ5HH3AVqGHSg6MdfGGbDVR9u1WaCn1UV9a7c1V5c8imSTVI+Bh27R/zA8ZCS0wh1aJ8kqGLWQ6KbMXUeRE6NzUJSES2n487gXEROOi0QjYgWmGeY6JdCU5M1VFP6kgDliIsQO1Jfn2RYhbCPwVNLilc9GGTAroi03gHhK2V02icKvVBPrtFigoRqtaUZG0jNHt5l1q+5O6rF31dl4MGPPyZe0YdrNBVPkPPDTWEO+2APj+8P3vLg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u388aHKnvc1tTwudHrYXPYM0VsJnhsG0cenF8hJPalA=; b=i5MSqxEFs9n9yY7cD6x7UZOfSmvkssq6g9SbLI0SA7IEeNuOjTeGTy3W0FIihxOd5KhgjemLiGE34MARlnoGnXkv8zDx1nU37nug+XQAliwO2tsZs3HyIxTaPhD4zX6LH0GqqoZAR5tz8N3D1SjUJmmC1ywZpYpMFt6ey4V+JsJG2ucFBQaRF+ChG9cb8gys9X0yCYo4RiXSdG/dfkyU7o2J4Y/B1ZGE9yHS8YbW9vgJoUOoSHrPhoFFltj5huYHmD5IPNwnq0z8DW9Xvt2Y47KRViW1SSNV3PQQQpgKo9sNGaZsfn1NqhFFS1rlbzalOZ86UTQEqYIrIUkrF0DG0Q==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=it.aoyama.ac.jp; dmarc=pass action=none header.from=it.aoyama.ac.jp; dkim=pass header.d=it.aoyama.ac.jp; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itaoyama.onmicrosoft.com; s=selector2-itaoyama-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u388aHKnvc1tTwudHrYXPYM0VsJnhsG0cenF8hJPalA=; b=wSjnXhdrBMNMEpUaAbQ5/bzWokiyFC5smNr5FAAw8g6XvpZSM50alpNfE7MtaJhXxgDhGzASTbooqwfdjpMytwfqykvPXXLa7XPZYp0t+G9Z+dYogQxn4jUWlNAa3JScUl5H5p/ET82lbKnRxneAZPM3+enVXynAWnDpTWJ9xl0=
Received: from OSAPR01MB4450.jpnprd01.prod.outlook.com (20.179.176.211) by OSAPR01MB4242.jpnprd01.prod.outlook.com (20.178.102.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.28; Tue, 19 Nov 2019 04:53:48 +0000
Received: from OSAPR01MB4450.jpnprd01.prod.outlook.com ([fe80::5cee:56cf:c45e:11a]) by OSAPR01MB4450.jpnprd01.prod.outlook.com ([fe80::5cee:56cf:c45e:11a%7]) with mapi id 15.20.2451.029; Tue, 19 Nov 2019 04:53:48 +0000
From: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>
To: Bernard Aboba <bernard.aboba@gmail.com>, "webtransport@ietf.org" <webtransport@ietf.org>
CC: "public-i18n-core@w3.org" <public-i18n-core@w3.org>
Thread-Topic: [Webtransport] A comment on draft-kinnear-httpbis-http2-transport-02
Thread-Index: AQHVnoVgYRZD3vr2WEiDZJQTl4l0IaeR7Z0A
Date: Tue, 19 Nov 2019 04:53:48 +0000
Message-ID: <714de35c-15b0-9f01-ab36-ef62dfffe259@it.aoyama.ac.jp>
References: <CAOW+2dssuXQGnRTcq77Az_vQGDv0tm5cdd+TWPf0p_Q3mD9Dag@mail.gmail.com>
In-Reply-To: <CAOW+2dssuXQGnRTcq77Az_vQGDv0tm5cdd+TWPf0p_Q3mD9Dag@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-clientproxiedby: TYCPR01CA0060.jpnprd01.prod.outlook.com (2603:1096:405:2::24) To OSAPR01MB4450.jpnprd01.prod.outlook.com (2603:1096:604:63::19)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=duerst@it.aoyama.ac.jp;
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [133.2.210.85]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 0c399014-89c9-4803-f31b-08d76cac76fd
x-ms-traffictypediagnostic: OSAPR01MB4242:
x-microsoft-antispam-prvs: <OSAPR01MB4242C797AFD0F60C325E438DCA4C0@OSAPR01MB4242.jpnprd01.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 022649CC2C
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39840400004)(136003)(366004)(376002)(396003)(346002)(199004)(189003)(486006)(99286004)(2616005)(110136005)(76176011)(6436002)(476003)(305945005)(5660300002)(786003)(316002)(64756008)(66446008)(26005)(6506007)(386003)(81166006)(81156014)(31686004)(8676002)(966005)(14454004)(66066001)(6116002)(3846002)(6512007)(2906002)(85202003)(508600001)(25786009)(6306002)(4326008)(102836004)(66476007)(86362001)(2501003)(66556008)(186003)(66946007)(53546011)(229853002)(31696002)(410100003)(52116002)(11346002)(446003)(7736002)(8936002)(85182001)(71190400001)(71200400001)(6246003)(6486002)(14444005)(256004); DIR:OUT; SFP:1102; SCL:1; SRVR:OSAPR01MB4242; H:OSAPR01MB4450.jpnprd01.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; MX:1;
received-spf: None (protection.outlook.com: it.aoyama.ac.jp does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: hCY2953KWik4LymZc9LoVAv09KFFIRPW4dqzuh5hjWXRI/nhGVnbVuiMONvQLngNEJ++BlbvnzcMXqBynTWcEujjEjUaauOcSh8LI7i+Bm6WZ3noMW8A58oBS9+T540mYIQYKHf+ljQOW3bu4w9biaoSg2EDrV7dI8+M/QFxlAYuTbf7XoUhro26kGABeGT538su7ZlE35nSYlmMpGK5ftKcwTR0002EjtGyFogSGk8cPwADPffBU+cvLZNrYS1SRo9sFxsxVezpRc59/gE4Fx1dFOzFt8URaZXCrrHwR6WMNfUkTmfV+sjPgYwLnaYsTuFNIzrEYDfIlt2z+WHYJCLQ8gcucpweNVjuK98qfbSJxaJI/qzgzHSK7aHPsInLasrgwxH0NUexTcx1CvItlUmaGhHUlWZxZGDl2/ZMGFydUg4abMlhCeX+ZzsA6xwz
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <2FD8D4F759FCCE42B0E8D884F69E9A5E@jpnprd01.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: it.aoyama.ac.jp
X-MS-Exchange-CrossTenant-Network-Message-Id: 0c399014-89c9-4803-f31b-08d76cac76fd
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Nov 2019 04:53:48.4762 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: e02030e7-4d45-463e-a968-0290e738c18e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 39PKigsoc33goOLsKjQVZfQa92vbUEI3mwFIV2Jka/AAcYiUjONW4piF/yRdmcuEQHXIyKjVB4TglXpeSGdVBg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSAPR01MB4242
Archived-At: <https://mailarchive.ietf.org/arch/msg/webtransport/_4kk0tHpJBbWtHY9z0TbX73aKls>
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 04:53:56 -0000

I have a question somewhat similar to Bernard's question.

On 2019/11/19 11:41, Bernard Aboba wrote:
> This is a straightforward draft, so my questions don't relate to the
> content such much as the context:
> 
> The draft extends the CONNECT handshake to allow "bytestream" to be
> provided for the :protocol pseudo-header field, instead of "websocket".
> 
> Is there corresponding JS API work contemplated (or ongoing) to support
> this?
> 
> The "WebSocketStream API design"
> <https://docs.google.com/document/d/1La1ehXw76HP6n1uUeks-WJGFgAnpX2tCjKts7QFJ57Y/>
> indicates "a 1:1 correspondence between chunks and WebSocket messages" so
> that it doesn't appear to take "bytestream" into account.

The WebSocket protocol and API use messages. The draft provides the 
"datagram" :protocol pseudo-header for message-based communication. The 
implementation is very simple: each HTTP/2 DATA frame is a message aka 
datagram. So far so good.

But the WebSocket protocol distinguishes two types of messages: Text 
messages and Binary messages (in terms of implementation, the 
distinction is carried on frames, which make up messages, but the type 
has to be the same for all frames of a message). Also, text messages are 
strictly restricted to always use UTF-8 (see 
https://tools.ietf.org/html/rfc6455#section-1.2).

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.

[cc.ed to the W3C i18n WG]

Regards,   Martin.