Re: p1: Via and gateways

Amos Jeffries <squid3@treenet.co.nz> Sun, 21 April 2013 01:11 UTC

Return-Path: <ietf-http-wg-request@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 B692621F8771 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 20 Apr 2013 18:11:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.099
X-Spam-Level:
X-Spam-Status: No, score=-10.099 tagged_above=-999 required=5 tests=[AWL=-0.500, BAYES_00=-2.599, J_BACKHAIR_45=1, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HeRq5hReT2Vr for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 20 Apr 2013 18:11:56 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1ED9521F86F2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 20 Apr 2013 18:11:55 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UTing-0006fA-85 for ietf-http-wg-dist@listhub.w3.org; Sun, 21 Apr 2013 01:10:40 +0000
Resent-Date: Sun, 21 Apr 2013 01:10:40 +0000
Resent-Message-Id: <E1UTing-0006fA-85@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1UTinc-0006eV-PQ for ietf-http-wg@listhub.w3.org; Sun, 21 Apr 2013 01:10:36 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1UTinb-0000ll-TG for ietf-http-wg@w3.org; Sun, 21 Apr 2013 01:10:36 +0000
Received: from [192.168.2.7] (103-9-43-128.flip.co.nz [103.9.43.128]) by treenet.co.nz (Postfix) with ESMTP id 9C66CE6EC1 for <ietf-http-wg@w3.org>; Sun, 21 Apr 2013 13:10:12 +1200 (NZST)
Message-ID: <51733C74.9050701@treenet.co.nz>
Date: Sun, 21 Apr 2013 13:10:12 +1200
From: Amos Jeffries <squid3@treenet.co.nz>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
MIME-Version: 1.0
To: ietf-http-wg@w3.org
References: <F7810D5C-45A6-4D01-83ED-2A9AB5856813@mnot.net> <alpine.LRH.2.01.1304200017490.18732@egate.xpasc.com> <37AD85F8-D0E1-4B9D-9BF0-99EBE83ADF8D@mnot.net> <20130420080919.GP26517@1wt.eu>
In-Reply-To: <20130420080919.GP26517@1wt.eu>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-3.2
X-W3C-Hub-Spam-Report: AWL=-3.162, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1UTinb-0000ll-TG 9491b5ce88ae5da71ce484f2b119ab51
X-Original-To: ietf-http-wg@w3.org
Subject: Re: p1: Via and gateways
Archived-At: <http://www.w3.org/mid/51733C74.9050701@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17440
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>

On 20/04/2013 8:09 p.m., Willy Tarreau wrote:
> On Sat, Apr 20, 2013 at 05:55:59PM +1000, Mark Nottingham wrote:
>> On 20/04/2013, at 5:21 PM, David Morris <dwm@xpasc.com> wrote:
>>> I don't care about MUST, but I think the Via header can be useful for
>>> problem determination. A smart content server could also adjust for
>>> a detected accelerator and/or transcoder ... perhaps by avoiding
>>> optimizations dependant on a direct connection and byte/byte transfer
>>> between the client and the server.
>>>
>>> So I'm very much in favor of keeping the Via: header.
>>
>> Definitely not talking about getting rid of it. The (only, specific) point
>> here is whether a gateway that doesn't add Via to responses should be called
>> non-conformant.
>>
>> Personally, I think it should be a MUST for proxies, in both directions.
>> However, for a gateway, it either shouldn't be a requirement at all (for
>> responses), or it should be a SHOULD with a get-out clause for reasons of
>> security (along with a note that they'll need to accept responsibility for
>> any issues caused by omitting Via). Still should probable be a MUST for
>> requests from gateways.
> But then do we want to declare all gateways non-conformant ? The only gateway
> I've seen use the Via header was abusing it to put the client's IP address
> into it, and none of the hosted servers behind it were ever confused by this
> despite being a few tens of various products!
>
> The only use I see with Via is to convey the original message's HTTP version,
> but most (all?) gateways do not change this version because it's already
> painful to be a gateway, you generally don't want to add more burden by
> changing the protocol version between the two sides!

IMO, that is behaviour compliant with the Via semantics in the last 
paragraph(s) of section 5.7.1 of the latest drafts text. A series of 
labels can be compacted down to one label if they are all conveying the 
same version information. A load balancer, SOCKS gateways, magic devices 
only have to ensure they are accurately preserving the traffic behaviour 
used by their sources at each end in order to be compliant under that 
loophole.

The ones I've seen doing HTTP<->HTTPS translation have largely been 
adding some form of "X-HTTPS: on" header anyways, so asking them to use 
the Via as standard mechanism instead would seem not to be a burden.

Section 5.7.1 are a little obtuse and hide this case a bit. So that 
section could perhapse be clarified to explain that hops preserving the 
protocol semantics are not obliged to *add* to Via (although they are 
still required to relay any existing one).

However, all said and done I'm for retaining the sentence in p1 section 
2.3 as-is.

Amos