Вы находитесь на странице: 1из 4

All three protocols are about file download/sharing (especially FTP and NFS) although there are some

differences:
- HTTP is the protocol used by your web browser, and it's around you everywhere. This is the transport layer for the
webpages you view and the files you download from different websites. Advantages: your firewall is most likely let's
this kind of traffic flow without restrictions. Disadvantage: is slower by design, also needs reconnection whenever
accessing a new file (stateless protocol)
- FTP (File Transfer Protocol): offers a higher speed when downloading content, it does not need to reconnect for
every file (it's a stateful protocol, it maintains the connection), however you may need special treatment in case of an
enterprise firewall and you need an FTP capable client (today almost all webbrowsers and file browsers have this
function).
- NFS (Network File System): offers the highest throughput, but it's designed for local network usage (not for the
Internet) and you can access it from Windows only by installing a special package (SFU). Similar in function to the
windows file sharing (NetBIOS, SMB), but much better in speed. - See more at:
http://www.linux.com/learn/answers/view/163-what-is-the-difference-between-ftp-nfs-and-httpinstallation#sthash.7rP8K26T.dpuf

FTP
Short for File Transfer Protocol, the protocol used on the Internet
for exchanging files. FTP works in the same way as HTTP for
transferring Web pages from a server to a user's browser and SMTP for
transferring electronic mail across the Internet in that, like these
technologies, FTP uses the Internet's TCP/IP protocols to enable data
transfer.
FTP is most commonly used to download a file from a server using the
Internet or to upload a file to a server
NFS
Abbreviation of Network File System, a client/server application
designed by Sun Microsystems that allows all network users to access
shared files stored on computers of different types. NFS provides
access to shared files through an interface called the Virtual File
System (VFS) that runs on top of TCP/IP. Users can manipulate shared
files as if they were stored locally on the user's own hard disk.
With NFS, computers connected to a network operate as clients while
accessing remote files, and as servers while providing remote users
access to local shared files. The NFS standards are publicly available
and widely used.
Our first practical difference, beyond what we have already learned is
broadcasting. Broadcasting is a term used to describe a server letting
other servers and clients know that it exists, and that it has a
particular service to offer. NFS is a broadcasting protocol. Your
desktop computer doesn?t have to know that an NFS server is out there
willing to listen to it. It will ?hear? the server broadcasting. If
the client is setup properly to answer the broadcast, it will be able
to communicate with the server. But it didn?t have to be told that the
server was out there before hand. If you have ever been in a network
environment with a windows client, and used the Network Neighborhood
icon, you have seen broadcasting in action.
FTP is not a broadcasting protocol. The client, or you as the
operator, either knows where the server is, or it doesn?t. The client

could be literally sitting on top of the server, using its box as a


keyboard stand, and never know it is an FTP server, unless you tell
it, or it asks. The server is mute.
Another basic difference is the complexity of the protocols. FTP is a
basic communication protocal, as was suggested below, like HTML or
your mail (SMTP/POP). If you connect to a FTP server, with an FTP
client, and you have a user name and password, then you connect and
have the allowed access provided by that server. It is simple. You
don?t have to worry about things like the Version of the FTP server.
It?s FTP, that?s all you need to know. You connect on port 21, every
time, and you get your files, or send your work home.
NFS is a bit more complicated than that. There are two issues with nfs
that are commonly seen in newsgroups and tech reports. One is that,
linux nfs broadcasts its version as 3, when it is really version 2. If
you are running solaris, you have to use vers=2 (a variable setting)
to make the solaris mount work. Second, if you are using NIS, NIS does
not mount anything. To make NIS work the way you think it should, you
need NIS, nfs, and autofs working together: NIS provides the login
verification and tells the system what the user's home directory is,
autofs sees someone trying to access /home/user and then uses nfs to
mount that directory.
Anyway, you get the point. The fact that I used Linux or the
versioning problems is really a non issue, what is an issue is that
there is much more involved with NFS than with FTP to get it to work
as expected. This denotes a higher level of expertise in the one
responsible for setting up the service and maintaining it, however,
NFS offers a great deal more as well. Such as shared network drives.
The real difference between transferring a file to a shared drive, and
transferring a file to an FTP server, is the asynchronous connection,
or lack there of, with that server. Again, FTP doesn?t broadcast, even
when you are connected to it. Once you put a file on the server, you
know nothing about that file unless you ask. You could have uploaded
it, and I could have deleted it as soon as you did. There will be no
indication from the server that the deletion took place. The only way
you will know about it, is if you ask the server either for the file,
or a list of files in the directory that it should be in, and when it
doesn?t show up, then you?ll know it is gone. NFS broadcasts the state
of the files in the directory you are looking at.. you will actually
see the file disappear if you happen to be looking at the screen at
the time, or notice is it gone when the server broadcasts again.
I guess a easier to understand way of putting this is the FTP server
will only speak when spoken too, the NFS server will speak whether you
want it to or not. If you have relatives or acquaintances of these two
personality types you know there are disadvantages to both. The FTP
server requires a constant question before answer relationship with
you or your client computer. It won?t just tell you things, even when
they seem to be pertinent to what you are doing. The NFS server is
chatty, and therefore uses bandwidth on the network that is not always
being used in a practical way, meaning, if all the clients are off, it
is still chatting away over there, using bandwidth. Depending on the
size and design of the network, this can be a major problem, or a
barely noticeable problem, but it is there. FTP will only use

bandwidth, if it is specifically asked to do so.


One of the advantages however to a chatty server is that it is chatty,
and will continue to speak and provide information in a constant
manner. What this give us is the ability to not only share files, but
programs as well. FTP, transfers files. That?s what it does. That?s
all it does, and as soon as it has done this, it quits talking to you
until you want something else. But that is another request all
together and it will not relate the two requests. Program sharing is
therefore impossible with FTP.
(*Note: The trouble with statements like that last one, with the
current level of brilliant hackers out there, is that I?m almost
positive someone is going to point out some obscure program that runs
shared across FTP, so let?s say that it is not ?designed? to share
programs and it will take some brilliant hacker out there with nothing
better to do than to prove a GA researcher wrong to get it to work.)
The level of shared programs and files with NFS reaches the point of
what is called ?diskless operation?, which means, the client doesn?t
really need a hard drive to operate. Everything can be done from the
server. This was a really cool idea, until it was put to practical
use, and the limitations of network speed were seen. So most networks
systems continue to have disk clients, and use shared programs when it
is practical to do so.
NFS can also share things like the server?s CDROM, or your CDROM with
other clients. Same goes for floppy and Zip Drives as well. NFS can be
setup to back up your computer files to the tape drive, or any ones
files on the network, just as easily as it can backup its own files.
Version control is possible with NFS, where with FTP it is not (unless
you have a brilliant hacker out there who really needs to do something
this week during her spare time). Since FTP doesn?t care about a file
once a transfer is complete, it doesn?t keep track of them when they
are moved by other influences, such as another user on the system.
One area our commenter is slightly misleading about is that NFS
doesn?t only use TCP for its transfers. It also uses what is called
UDP. UDP is like TCP but as the changes in the letters suggest, it is
different.
FTP is still the most commonly used transfer protocol on the Internet,
because it is much lighter, as traffic goes, uses less bandwidth, and
has a better control over the transfer of the file itself. FTP does a
single job, and like any specialist, it does it far better than
someone else who is trying to do several other things at the same
time. FTP is not ?secure? really, meaning that when you type in your
username and password, it goes across the Internet in plain text.
Which, theoretically (and there have been some practical
demonstrations of this without the need of brilliant hackers), means
your user name and password can be read by someone else.
The solution to this has been SSH, or SFTP (secure ftp). What this
means is that the connection between you and the server is encrypted,
so such eavesdropping is currently impractical. NFS has had a history
of insecure standing for some time now as well, but it too can be run
through a SSH tunnel. However, where the extra load involved is

slightly noticeable using SFTP, it is almost debilitating on networks


trying to run SNFS. (I personally don?t know of a
business-real-live-network, that uses SNFS. And there is no real
reason too, when on an internal network. It is only when accessing NFS
servers outside your internal network that this becomes an issue).
I have below a number of links for further reference and reading. You
will probably notice that there are a great deal more on NFS than on
FTP, this is simply because there?s great deal more to understand when
using NFS than with FTP. This ?added complexity? shouldn?t be
perceived as trickling down the the users of a network that makes NFS
one of its available services. In fact it is this added complexity
which makes the details invisible to them. (if that brilliant hacker
has stopped trying to do wondrous things with FTP and setup the NFS
server correctly).

Network File System (NFS) is a distributed file system protocol originally developed by Sun
Microsystems in 1984,[1] allowing a user on a client computer to access files over a computer
network much like local storage is accessed. NFS, like many other protocols, builds on the Open
Network Computing Remote Procedure Call (ONC RPC) system. The NFS is an open standard
defined in Request for Comments (RFC), allowing anyone to implement the protocol.

Вам также может понравиться