Main Differences in FTP-2
-
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.
-
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. 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.
-
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.
-
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.
-
FTP-2 was established by a duly constituted ARPAnet committee and we are duty-bound to implement it. I don't suppose anyone would actually put it that baldly, but I've heard things which amounted to that. It's silly.
-
FTP-2 specifies default sockets for the data connection. Most places use the default sockets already anyway, and it is easy enough to ignore the 255 message if you want to. This is a security issue, of course, and I'm afraid that I can't work up much excitement about helping the CIA keep track of what anti-war demonstrations I attended in 1968 and which Vietnamese hamlets to bomb for the greatest strategic effect even if they do pay my salary indirectly. I could rave about this subject for pages, and probably will if I ever get around to writing an argument against MAIL-2, but for now let me just get one anecdote off my chest: I have access to an account at an ARPAnet host because I am responsible at my own site for local maintenance of a program which was written by, and is maintained by, someone at the other site. However, the other site doesn't really trust us outsiders (the account is shared by people in my position at several other hosts) to protect their vital system security, so every week they run a computer program to generate a new random password for the account (last week's was HRHPUK) and notify us all by network mail. Well, on my system and at least one of the others, that mail isn't read protected. I delete my mail when I read it, but since it is hard enough remembering HRHPUK without them changing it every week, I naturally write it in a file on our system. That file could in principle be read protected but it isn't, since sometimes I'm in someone else's office when I want to use it, and the other passwords in it are for open guest accounts which are widely known. Moral #1: Security freaks are pretty wierd. Moral #2: If you have a secret don't keep it on the ARPAnet. (In the past week I have heard about two newly discovered holes in Tenex security.)
-
FTP-2 is available online and FTP-1 isn't, so new hosts can't find out how to do it. Aargh!!! What a reason for doing anything! Surely it would be less costly for someone to type it in again than for everyone to reprogram. Meanwhile these new hosts can ask Jon or Geoff or Bobby or even me for help in getting FTP up.
-
FTP-2 has some changes to the strange MODEs and STRUs. This is another thing I can't get too excited about. We support only MODE S and STR F and that will probably still be true even if we are forced into FTP-2. If the relatively few people who do very large file transfers need to improve the restart capability, they can do so within FTP-1 without impacting the rest of us. The recent implementation of paged file transfers by TENEX shows that problems of individual systems can be solved within the FTP-1 framework. If the IBM people have some problem about record structure in FTP-1, for example, let them solve it in FTP-1, and whatever the solution is, nobody who isn't affected has to reprogram.