Re: [tcpm] TCP Tuning for HTTP - update

"Adrien de Croy" <adrien@qbik.com> Wed, 17 August 2016 23:22 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9255A12B02A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 17 Aug 2016 16:22:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.168
X-Spam-Level:
X-Spam-Status: No, score=-8.168 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.247, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
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 p3pnpe7S4V6a for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 17 Aug 2016 16:22:22 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4BBCC12B024 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 17 Aug 2016 16:22:22 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1baA5o-0006k6-M9 for ietf-http-wg-dist@listhub.w3.org; Wed, 17 Aug 2016 23:17:52 +0000
Resent-Date: Wed, 17 Aug 2016 23:17:52 +0000
Resent-Message-Id: <E1baA5o-0006k6-M9@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <adrien@qbik.com>) id 1baA5i-0006jI-0G for ietf-http-wg@listhub.w3.org; Wed, 17 Aug 2016 23:17:46 +0000
Received: from smtp.qbik.com ([122.56.26.1]) by maggie.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from <adrien@qbik.com>) id 1baA5f-00086S-Sr for ietf-http-wg@w3.org; Wed, 17 Aug 2016 23:17:45 +0000
Received: From [192.168.1.146] (unverified [192.168.1.146]) by SMTP Server [192.168.1.3] (WinGate SMTP Receiver v9.0.0 (Build 5855)) with SMTP id <0000805490@smtp.qbik.com>; Thu, 18 Aug 2016 11:17:13 +1200
From: Adrien de Croy <adrien@qbik.com>
To: Joe Touch <touch@isi.edu>, Willy Tarreau <w@1wt.eu>
Cc: Mark Nottingham <mnot@mnot.net>, "tcpm@ietf.org" <tcpm@ietf.org>, HTTP Working Group <ietf-http-wg@w3.org>, Patrick McManus <pmcmanus@mozilla.com>, Daniel Stenberg <daniel@haxx.se>
Date: Wed, 17 Aug 2016 23:17:13 +0000
Message-Id: <ema6771211-5d5d-4106-b3f0-87616b83f9f6@bodybag>
In-Reply-To: <05d949e3-07aa-4cf5-8aeb-122b2be24519@isi.edu>
Reply-To: Adrien de Croy <adrien@qbik.com>
User-Agent: eM_Client/6.0.24928.0
Mime-Version: 1.0
Content-Type: text/plain; format="flowed"; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=122.56.26.1; envelope-from=adrien@qbik.com; helo=smtp.qbik.com
X-W3C-Hub-Spam-Status: No, score=-4.9
X-W3C-Hub-Spam-Report: AWL=-0.495, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.548, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1baA5f-00086S-Sr 692754b005ea47222203ed366b190f4a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [tcpm] TCP Tuning for HTTP - update
Archived-At: <http://www.w3.org/mid/ema6771211-5d5d-4106-b3f0-87616b83f9f6@bodybag>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32294
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>


------ Original Message ------
From: "Joe Touch" <touch@isi.edu>
To: "Adrien de Croy" <adrien@qbik.com>; "Willy Tarreau" <w@1wt.eu>
Cc: "Mark Nottingham" <mnot@mnot.net>; "tcpm@ietf.org" <tcpm@ietf.org>; 
"HTTP Working Group" <ietf-http-wg@w3.org>; "Patrick McManus" 
<pmcmanus@mozilla.com>; "Daniel Stenberg" <daniel@haxx.se>
Sent: 18/08/2016 11:01:57 AM
Subject: Re: [tcpm] TCP Tuning for HTTP - update

>This is a bit of a side track, but...
>
>On 8/17/2016 3:51 PM, Adrien de Croy wrote:
>>
>>
>>  ------ Original Message ------
>>  From: "Joe Touch" <touch@isi.edu>
>>
>>>  They want something different for a variety of reasons - the same 
>>>kind
>>>  of airtight logic by which TBL developed HTTP instead of using FTP 
>>>(he
>>>  said that you'd only typically need one file from a location, so why
>>>  open 2 connections? now we're stuck trying to mux control and data
>>>  rather than having a proper solution that already existed at the 
>>>time -
>>>  it took nearly a decade for HTTP servers to catch up to the 
>>>performance
>>>  of FTP).
>>>
>>  Whilst I've been finding this discussion very informative and
>>  interesting, I have to raise an objection on this point.
>>
>>  FTP was never going to be suitable for the web, and a very simple RTT
>>  analysis shows that.
>>
>>  Apart from initial 3 way TCP handshake and close, which is the same
>>  for both, with http you have a request and a response, whereas FTP
>>  requires you to wait for the server welcome, log in, negotiate 
>>another
>>  port, set up a data connection in addition to retrieving the file
>
>That's only the first time you go somewhere new. You don't need to 
>close
>both ports so quickly; the control channel can stay open and you thus
>avoid HOL blocking between data and control (and thus the need to
>chunk-and-mux within persistent HTTP), which increases other delays for
>HTTP.
You still need to send another PORT/PASV and wait for the response 
before making another TCP connection for data, since you can't re-use 
this one.

So subsequent requests to the same server will be quicker, still at 
least 3 round-trips more than a subsequent http request on a persistent 
connection.

>
>Neither protocol matches exactly what is really needed for a true
>transaction-oriented protocol.
We are probably in agreement here.

>
>>  ...
>>  Then try adding all the firewall issues due to transmitting data
>>  connection endpoint information over the control connection and it's
>>  no surprise FTP is not favoured for downloads.
>
>FTP had a passive mode even back then that avoids this issue. It also
>had suspend/resume, compression, and format conversion.

Those all take more round trips to negotiate.  As for format 
conversion..... bad idea, never should have been the server's job.

We've seen a lot of server-side firewall problems with PASV as well.

Adrien


>
>Joe