Re: [hybi] Experiment comparing Upgrade and CONNECT handshakes

John Tamplin <jat@google.com> Wed, 01 December 2010 22:04 UTC

Return-Path: <jat@google.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 806D63A67B5 for <hybi@core3.amsl.com>; Wed, 1 Dec 2010 14:04:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -109.595
X-Spam-Level:
X-Spam-Status: No, score=-109.595 tagged_above=-999 required=5 tests=[AWL=-0.218, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, J_CHICKENPOX_37=0.6, RCVD_IN_DNSWL_HI=-8, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5buN5BEOBrjU for <hybi@core3.amsl.com>; Wed, 1 Dec 2010 14:04:56 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id 289823A67EA for <hybi@ietf.org>; Wed, 1 Dec 2010 14:04:55 -0800 (PST)
Received: from hpaq6.eem.corp.google.com (hpaq6.eem.corp.google.com [172.25.149.6]) by smtp-out.google.com with ESMTP id oB1M696p016738 for <hybi@ietf.org>; Wed, 1 Dec 2010 14:06:09 -0800
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1291241169; bh=AOhO3DCxJdexqgUBifgV4yKpTkg=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Q4kHG6ZcMu0GJH5gwoG8mok7ye5iWTLZQchnCZuo/TBb3Ly5iqdloz2Z14qbTm4SG pikeCCATR4gP9ZeIi1mtw==
Received: from gxk27 (gxk27.prod.google.com [10.202.11.27]) by hpaq6.eem.corp.google.com with ESMTP id oB1M5hYQ025898 for <hybi@ietf.org>; Wed, 1 Dec 2010 14:06:08 -0800
Received: by gxk27 with SMTP id 27so765796gxk.8 for <hybi@ietf.org>; Wed, 01 Dec 2010 14:06:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=qNfF2CyARwc7jekpmRothhYBQ5Km6uoQSV0/7MCYPWg=; b=aInCKQ5Zz/2jT8wyMwOwY5OHjP33Jg2lq8AsOQcq5s3fyS5Siy/5XXeAXRN9qOWrL8 pkTRABHDtEsi7gsT/CNw==
DomainKey-Signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=Qowa61VTdhbmULHQVJ/6JJAr/ryNiG25b8QpufEoOVFeFg5atNET/04lOirPw6225F kShKHAgwFXLeOcVx0Hfg==
Received: by 10.151.143.12 with SMTP id v12mr87967ybn.35.1291241168120; Wed, 01 Dec 2010 14:06:08 -0800 (PST)
MIME-Version: 1.0
Received: by 10.150.217.12 with HTTP; Wed, 1 Dec 2010 14:05:47 -0800 (PST)
In-Reply-To: <5CB83789-EC99-4DF1-B573-5683B153E9D9@apple.com>
References: <AANLkTik0wR-Oag5YJJDmdiSy67WW6TMaHmqWEo4o5kGW@mail.gmail.com> <AANLkTimwEtKrJm5KxTYZ4wrtONBYDTGjE5LF7__AHBEU@mail.gmail.com> <20101201183540.GF19021@1wt.eu> <AANLkTi=r-is4ZqJc6itsaBkyrmW746xXj8OV78M_Qbi3@mail.gmail.com> <AANLkTimtjYUOidZcxkSEtaUniJC6m8ujzFa69DMQVhZH@mail.gmail.com> <AANLkTimQ3bm5-2tN0QEt=qX4CR_XFpcLXF7Auz2ijo0Z@mail.gmail.com> <AANLkTing3grEETt4s2CVSu4BtHPXOA8_MAm=sBQpYaJx@mail.gmail.com> <5CB83789-EC99-4DF1-B573-5683B153E9D9@apple.com>
From: John Tamplin <jat@google.com>
Date: Wed, 01 Dec 2010 17:05:47 -0500
Message-ID: <AANLkTimpu0j7fvay8SZV52qnBz3brQVDM5kHkfcZ5c-M@mail.gmail.com>
To: Maciej Stachowiak <mjs@apple.com>
Content-Type: text/plain; charset="UTF-8"
X-System-Of-Record: true
Cc: Hybi <hybi@ietf.org>, Zhong Yu <zhong.j.yu@gmail.com>
Subject: Re: [hybi] Experiment comparing Upgrade and CONNECT handshakes
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Dec 2010 22:04:57 -0000

On Wed, Dec 1, 2010 at 4:51 PM, Maciej Stachowiak <mjs@apple.com> wrote:
> There is a reasonable subset of Adam & Eric's proposal that includes
> CONNECT, but omits the bogus host header, JSON headers and payload masking.
> It would not have unframed bytes or space encoded nonces.
>
> I think that would be a decent starting point, after which we could evaluate
> the remaining aspects.

Ok, so if we took this approach, the proposed draft changes would be to include:
 - using CONNECT instead of GET+Upgrade
 - uses the real host/port in the CONNECT and Host header
 - all handshake headers would be normal headers in the HTTP request/response
 - keys would be included in headers not unframed bytes, with no space encoding
 - no masking of headers or payload would take place
 - no Hello frames

Is that correct?

If so, then I agree that would be a good step to see if we can get
consensus on the less controversial parts before moving on to areas
where there is more disagreement.

-- 
John A. Tamplin
Software Engineer (GWT), Google