Network Working Group Brian Harvey
Request for Comments: 686 SU-AI
NIC 32481 10 May 1975
References: 354, 385, 630, 542, 640.
Leaving Well Enough Alone
I recently decided it was time for an overhaul of our FTP user and
server programs. This was my first venture into the world of network
protocols, and I soon discovered that there was a lot we were doing
wrong -- and a few things that everyone seemed to be doing
differently from each other. When I enquired about this, the
response from some quarters was "Oh, you're running version 1!"
Since, as far as I can tell, all but one network host are running
version 1, and basically transferring files OK, it seems to me that
the existence on paper of an unused protocol should not stand in the
way of maintaining the current one unless there is a good reason to
believe that the new one is either imminent or strongly superior or
both. (I understand, by the way, that FTP-2 represents a lot of
thought and effort by several people who are greater network experts
than I, and that it isn't nice of me to propose junking all that
work, and I hereby apologize for it.) Let me list what strike me as
the main differences in FTP-2 and examine their potential impact on
the world.
1. FTP-2 uses TELNET-2. The main advantage of the new Telnet
protocol is that it allows flexible negotiation about things like
echoing. But the communicators in the case of FTP are computer
programs, not people, and don't want any echoing anyway. The
argument that new hosts might not know about old Telnet seems an
unlikely one for quite some time to come if TELNET-2 ever does
really take over the world, FTP-1 could be implemented in it.
2. FTP-2 straightens out the "print file" mess. This is more of a
mess on paper than in practice, I think. Although the protocol
document is confusing on the subject, I think it is perfectly
obvious what to do: if the user specifies, and the server
accepts, TYPE P (ASCII print file) or TYPE F (EBCDIC print file),
then the data sent over the network should contain Fortran control
characters. That is, the source file should contain Fortran
controls, and should be sent over the net as is, and reformatted
if necessary not by the SERVER as the protocol says but by the
RECIPIENT (server for STOR, user for RETR). As a non-Fortran-user
I may be missing something here but I don't think so; it is just
like the well-understood TYPE E in which the data is sent in
EBCDIC and the recipient can format it for local use as desired.
RFC 686 Leaving Well Enough Alone May 1975
One never reformats a file from ASCII to EBCDIC at the sending
end. Perhaps the confusion happened because the protocol authors
had in mind using these types to send files directly to a line
printer at the server end, and indeed maybe that's all it's good
for and nobody's user program will implement TYPE P RETR. In any
event, using a two-dimensional scheme to specify the combinations
of ASCII/EBCDIC and ASA/normal conveys no more information than
the present A-P-E-F scheme. If there is any straightening out of
FTP-2, it could only be in the handling of these files once the
negotiation is settled, not in the negotiation process.
3. FTP-2 approves of the Network Virtual File System concept even
though it doesn't actually implement it. It seems to me that the
NVFS notion is full of pitfalls, the least of which is the problem
of incompatibilities in filename syntax. (For example, one would
like to be able to do random access over the network, which
requires that different systems find a way to accommodate each
other's rules about record sizes and so on.) In any case, FTP-2
doesn't really use NVFS and I mention it here only because RFC 542
does.
4. FTP-2 reshuffles reply codes somewhat. The reply codes in the
original FTP-2 document, RFC 542, don't address what I see as the
real reply code problems. The increased specificity of reply
codes doesn't seem to be much of a virtue; if, say, a rename
operation fails, it is the human user, not the FTP user program,
who needs to know that it was because of a name conflict rather
than some other file system error. I am all for putting such
information in the text part of FTP replies. Some real problems
are actually addressed in the reply code revision of RFC 640, in
which the basic scheme for assigning reply code numbers is more
rational than either the FTP-1 scheme or the original FTP-2
scheme. However, I think that most of the benefits of RFC 640 can
be obtained in a way which does not require cataclysmic
reprogramming. More on this below.
5. FTP-2 was established by a duly constituted ARPAnet committee
and we are duty-bound to implement it. I don't suppose anyone
=1= |