Re: Two FTP issues

Carsten Bormann <cabo@tzi.org> Mon, 30 November 2020 22:38 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 167B13A1030 for <ietf@ietfa.amsl.com>; Mon, 30 Nov 2020 14:38:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.92
X-Spam-Level:
X-Spam-Status: No, score=-1.92 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham 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 MPLwk2VHCEPZ for <ietf@ietfa.amsl.com>; Mon, 30 Nov 2020 14:38:46 -0800 (PST)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 30D853A0FDA for <ietf@ietf.org>; Mon, 30 Nov 2020 14:38:45 -0800 (PST)
Received: from [192.168.217.118] (p548dca87.dip0.t-ipconnect.de [84.141.202.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4ClKs01hZ1zyWF; Mon, 30 Nov 2020 23:38:44 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\))
Subject: Re: Two FTP issues
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <AA1E0A8464BC45FB4FA44684@PSB>
Date: Mon, 30 Nov 2020 23:38:43 +0100
Cc: ietf@ietf.org
X-Mao-Original-Outgoing-Id: 628468723.60198-773309b02ac77c9fd90c34974d630c0f
Content-Transfer-Encoding: quoted-printable
Message-Id: <2D63A357-E253-462C-864D-2BF96D3E2E18@tzi.org>
References: <AA1E0A8464BC45FB4FA44684@PSB>
To: John C Klensin <john-ietf@jck.com>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf/B5vc9EgYr7uTZyh4vutoRupTiyE>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Nov 2020 22:38:50 -0000

Hi John,

I believe a hard-earned piece of experience I took from using FTP is that you don’t want to do conversions during transit.

In theory, the sending system knows its format, can convert that to a common format, and the receiving system knows its own format and can do the second conversion.  That was certainly true when we had access methods, per-record byte counts etc.

In practice, systems today have files of various formats lying around, no useful metadata so no idea what the actual source format is, so they are likely to botch the conversion.  Getting the original bytes from the sending system and doing the conversion at the receiving end, outside the actual transfer, became the norm.  I don’t remember when ftp clients started to automatically send “TYPE I” on connection setup, but it sure made life so much easier (read: FTP became somewhat usable again).

This is probably one instance of the more general gateway fundamental.  Instead of needing gateways between various mail systems, everything converged to SMTP, or being as close to SMTP as possible (i.e. requiring minimal gatewaying/conversion).

This has also happened in text formats (with the exception of the remaining two line ends, and, with a lesser relevance, interpretation of HTs).  Anything that tries to make life easier for systems that aren’t UTF-8 yet is like adding another transition technology to IPv6: trying to be helpful, but in practice counterproductive.

Grüße, Carsten