Study_of_FTP
Study_of_FTP
Theory :
File Transfer Protocol(FTP) is an application layer protocol
that moves files between local and remote file systems.
It runs on the top of TCP, like HTTP. To transfer a file, 2 TCP
connections are used by FTP in parallel: control connection and
data connection.
Objectives of FTP :
It provides the sharing of files.
It is used to encourage the use of remote computers.
It transfers the data more reliably and efficiently.
Types of FTP :
Active
Passive
Simple FTP - SFTP
Password Protected FTP
Secure FTP - SFTP
FTP over SSL
In an Active FTP connection and transmission, the Client will
initiate the connection on a port it determines, in this case, port
1. The server receives the connection request on port 21. The
server will then transmit the data out of its port 20 to be received
by the client on a port it determines, in this case, port 2. In
an Active Connection, the client determines the ports to be used.
In a Passive FTP connection, the client will make a connection
request on the port specified by the server, in this case, port 21.
The data will then be transmitted via the port determined by the
server, in this case, port 20. In a Passive Connection, the server
determines the ports to be used.
Anonymous FTP- this is the least secure type of FTP. Also known
as simple FTP or abbreviated SFTP. There is no requirement for a
user to log in, nor is there any type of encryption.
Password protected FTP - add a layer of security to traditional
FTP in that there is a requirement of a username and password in
order to access the server. The files are still transferred
unencrypted. Username and password are transmitted in plain
text.
Secure FTP- abbreviated as S-FTP, has a higher level of security
by forcing transport layer security (TLS) once the connection is
established. This TLS layer will encrypt the username and
password.
FTP with SSL/TLS - one of the most secure types of FTP by
forcing explicit TLS and moving the connection from port 21 to an
encrypted connection. All data transmitted is encrypted with AES
encryption.
Advantages of FTP(File Transfer Protocol):-
Speed is one of the advantages of FTP(File Transfer
Protocol).
File sharing also comes in the category of advantages of
FTP in this between two machines files can be shared on
the network.
Efficiency is more in FTP.
File size limit is the drawback of FTP only 2 GB size files can be
transferred.
Multiple receivers are not supported by the FTP.
FTP does not encrypt the data this is one of the biggest
drawbacks of FTP.
FTP is unsecured we use login IDs and passwords making it
secure but they can be attacked by hackers.