Re: [ftpext] End byte of transfer in FTP
Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> Tue, 30 November 2010 14:14 UTC
Return-Path: <tatsuhiro.t@gmail.com>
X-Original-To: ftpext@core3.amsl.com
Delivered-To: ftpext@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 3377A3A6C6F for <ftpext@core3.amsl.com>; Tue, 30 Nov 2010 06:14:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.449
X-Spam-Level:
X-Spam-Status: No, score=-2.449 tagged_above=-999 required=5 tests=[AWL=0.150, BAYES_00=-2.599]
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 rIrIVQYLIqDF for <ftpext@core3.amsl.com>; Tue, 30 Nov 2010 06:14:46 -0800 (PST)
Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by core3.amsl.com (Postfix) with ESMTP id 041DB3A6C66 for <ftpext@ietf.org>; Tue, 30 Nov 2010 06:14:45 -0800 (PST)
Received: by fxm9 with SMTP id 9so4618630fxm.31 for <ftpext@ietf.org>; Tue, 30 Nov 2010 06:15:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=xi0rQI1tko0ORQggxjL2ZqgsQzcBKwz1j7uA6xFIVFc=; b=rCzcL8QEbFrcwZMlhN2hFd3EhAddBSVJN9+uafIISjHg+uavefVvvdIur0ZbOAjRAj Hvjk7fHZFCdu+Bwp7CknwrvO9pGoSs9zVTzCxSY3izuMaytmLR9jtVyLNqUflVzvkySA wjdtIQ2JFZu6cxVXZ6bpDIpcRcIUBzF9nllpQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=p+j5N3BzjEXWPxCrH0Wq4BNvLqhT5Cc0/aWx7zqUj7fCWE9Xi8T+rF5xXA1ek5toNr +XlTh6jiG6X0BC9Mm1irGcxbndOGCoAO0aRtS9UDAVMCx5hAi6BWrM8s2Pp30lnea6Lj c5yaowS0T47/+x/e8dnRq3Ae4h5uwprEZF6hE=
Received: by 10.223.86.206 with SMTP id t14mr6839766fal.30.1291126556747; Tue, 30 Nov 2010 06:15:56 -0800 (PST)
MIME-Version: 1.0
Received: by 10.223.83.200 with HTTP; Tue, 30 Nov 2010 06:15:35 -0800 (PST)
In-Reply-To: <8F4BB4C1C1895841414414D0@PST.JCK.COM>
References: <AANLkTi=_OsGPMsC=BHtOyHzTTM5vJ1=yW9fYk_Tp1xm7@mail.gmail.com> <8F4BB4C1C1895841414414D0@PST.JCK.COM>
From: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Date: Tue, 30 Nov 2010 23:15:35 +0900
Message-ID: <AANLkTikegF58eH=ZvjnDhgUT6dyhckPodMGOEwS9H=D5@mail.gmail.com>
To: ftpext@ietf.org
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: Re: [ftpext] End byte of transfer in FTP
X-BeenThere: ftpext@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <ftpext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ftpext>, <mailto:ftpext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ftpext>
List-Post: <mailto:ftpext@ietf.org>
List-Help: <mailto:ftpext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ftpext>, <mailto:ftpext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Nov 2010 14:14:47 -0000
Hi, Thank you for replying! 2010/11/29 John C Klensin <john-ietf@jck.com>: > > > --On Monday, November 29, 2010 01:21 +0900 Tatsuhiro Tsujikawa > <tatsuhiro.t@gmail.com> wrote: > >> Hi, >> >> In FTP, user can set start byte of transfer by REST command. > > This is a misuse of the intent of the command and some > historical FTP implementations won't permit it. In particular, > REST is defined only for Block and Compressed modes (neither of > which is widely used these days) and starts only from a > server-specified checkpoint marker. While I can believe that > some implementations might construe REST followed by an integer > in stream mode as a byte offset to be used in a subsequent STOR > or RETR command, that usage is certainly not guaranteed by > anything in RFC 959. > > Note that design is quite intentional and necessary to reflect a > wide variety of different file system organizations, including > files that are not organized sequentially on the remote or local > host. > > As the most trivial example, FTP doesn't even guarantee that the > bits of a sequential file will be transferred in the order in > which they appear in their original form. > As Richard suggests, REST was extended to STREAM mode in RFC3695. >> But it seems it lacks the feature to set end byte of transfer, >> like HTTP's Range request. >> Does it really lack this feature? Are there any ftp >> server/client support this? > > It seems to me that you are looking for a remote file management > protocol that supports a much more specific file abstraction > than is the case with FTP, which is purely and simply a file > transfer protocol for entire files, not fragments of them. HTTP > does assume a particular type of file organization model, which > is one reason byte-oriented fragment identifiers work. If that > model serves your needs, why not just use HTTP? If you need > the more general organizational model of FTP, you will need to > either transfer the entire file and then extract whatever you > need (using whatever local access method is appropriate to that > file) or find/ use/ design a file management protocol, rather > than a file transfer one. > >> A example of utilization this feature is Metalink download. >> In Metalink, it contains several URIs for one file. So we can >> download it from several sources. From each server, client >> downloads non-overlapping segment. For example, when >> downloading 1 file using 2 FTP servers. We can use REST >> command for second half of the download and it downloads given >> point to the end of file. This is fine. The control >> connection can be reused. For the first half of the download, >> since we cannot set end byte, we have to close connection >> entirely after first half of file is downloaded. The control >> connection cannot be reused this time. >> We can use ABOR, but it has drawback as I mentioned earlier. > > And, again, why not use HTTP? > If we can choose protocol, then, yes, we choose HTTP definitely. But there are existing FTP servers which we cannot make any changes and we want to include them in Metalink. Especially if the file is only served in particular FTP site. Tatsuhiro Tsujikawa
- [ftpext] End byte of transfer in FTP Tatsuhiro Tsujikawa
- Re: [ftpext] End byte of transfer in FTP John C Klensin
- Re: [ftpext] End byte of transfer in FTP Richard Koenning
- Re: [ftpext] End byte of transfer in FTP Tatsuhiro Tsujikawa
- Re: [ftpext] End byte of transfer in FTP Daniel Stenberg
- Re: [ftpext] End byte of transfer in FTP Tatsuhiro Tsujikawa
- Re: [ftpext] End byte of transfer in FTP Anthony Bryan
- Re: [ftpext] End byte of transfer in FTP Tatsuhiro Tsujikawa
- Re: [ftpext] End byte of transfer in FTP Daniel Stenberg
- Re: [ftpext] End byte of transfer in FTP John C Klensin
- Re: [ftpext] End byte of transfer in FTP Richard Koenning
- Re: [ftpext] End byte of transfer in FTP Tatsuhiro Tsujikawa