Understanding File Transfer Protocol (FTP)
Understanding File Transfer Protocol (FTP)
FILES (FTP)
Engineer In Process
Engineer, Specialist
POPAYAN SEAT
2015
1
CHAPTER 1
Title 1 "The File Transfer Protocol, the protocol for file exchange over the
Internet. FTP works in the same way as HTTP to transfer web pages from a
server in the user's browser and SMTP to transfer the email through
Internet in which, like these technologies, FTP uses TCP/IP protocols from the Internet to
systems connected to a TCP (Transmission Control Protocol) network, based on the architecture
operating system used on each machine, in this case we can conclude that FTP is used with
a high frequency in the file download option from an internet server and
also to upload a file to a server that is available on the internet. Although many
people may not know about this protocol, many have used it when uploading files,
1
(Juszkiewicz)
Juszkiewicz, L. (n.d.).
Title 2 'The FTP service is provided by the application layer of the layered model'
TCP/IP network for the user, usually using network port 20 and 21. A basic problem.
The FTP is designed to offer the maximum speed in the connection, but not the maximum
security, since all the exchange of information, from the user's login and password in
the server until the transfer of any file is done in plain text without any type of
encrypted, with which a potential attacker can capture this traffic, access the server and/or
2
to take possession of the transferred files. "Angel Ortiz, Similarly, it is observed that in
all the articles found; the definition of FTP as a network protocol for the
client-server is the relationship that this protocol uses. Example: Where client A processes
The information that you send to server B, it takes the information, reads it, and sends a
other clients A can upload new files for server B to manage them and thus remain
available for different users A. This protocol has a significant flaw that it does not contain
security, it can be said that all the files on the server are subject to
any user downloaded them, for For this reason, FTP is not secure.
2
(Ortiz)
CHAPTER 2
Connection Modes
The protocol uses two connection modes which are Passive Mode and Active Mode.
Active Mode: In Active Mode, the server always creates the data channel on its port 20.
while on the client side the data channel is associated with a random port greater than the
1024. To do this, the client sends a PORT command to the server through the control channel
indicating that port number, so that the server can open a data connection for you
where the files and listings will be transferred, at the specified port.
Passive Mode: When the client sends a PASV command over the control channel, the server
FTP indicates the port (greater than 1023 of the server, e.g., 2040) through the control channel.
what the client must connect. The client initiates a connection from the port following the port
from control (Example: 1036) to the previously specified server port (Example:
2040). Before each new transfer in both Active and Passive modes, the client
must send a control command again (PORT or PASV, depending on the mode in which it has)
connected), and the server will receive that data connection on a new random port (if it is on
passive mode) or through port 20 (if it is in active mode). In the FTP protocol there are 2 types of
In summary, we see how the protocol has a significant flaw in the part of
security, since the client machine must be willing to accept any connection from
entry. To solve this problem, passive mode was used as compared to mode
Title 1 "It is important to know how we should transport a file across the network. If not
if we use the appropriate options we can destroy the information in the file. That is why, when
to run the FTP application, we must remember to use one of these commands:
ASCII type: Suitable for transferring files that only contain printable characters
(ASCII files, not files resulting from a word processor), for example pages
HTML, but not the images that may contain that page.
Binary Type: This type is used when dealing with compressed files, executables for PC,
CHAPTER 3
Title 1A FTP client uses the FTP protocol to connect to an FTP server to
transfer files.
Some basic FTP clients are built into the operating systems, including
Windows, DOS, Linux, and Unix. Due to the great need, there are many FTP clients.
name some of these many, there are: FileZilla, CuteFTP, WSS FTP, Coffee Cup, CoreFTP
WorldWide FTP, FTP Now, Shuttle FTP Suite, and many more.
FTP Server
on the Internet (although it can be connected to other types of networks, LAN, MAN, etc.). The function
In a few words, FTP is one of the first protocols used and for this reason the vision of
security was very little used, as in these times measures must be taken to protect
our data, such as: Continuously reviewing the server configuration, use
Title 2 "Although the FTP access authorization features make it more secure, the
Reinforcement prohibits a client from arbitrary access to any file until it is obtained.
a connection and an access key for the computer on which the server is operated. For
anonymous"Douglas E Comer3
In client mode, you need to have a registered account and your password; in anonymous mode, the
Anonymous FTP is very important, as it prevents local access to clients who are not invited.
or in a few words, they are intruders. The anonymous ftp generates a name for anonymous access and
a guest access key to be able to maintain control. FTP is the transfer protocol
of more generalized files in the TCP/IP set, but it is also the most complex and difficult
In programming, FTP requires both client and server to manage various TCP connections.
3
to eat
CHAPTER 4
All communication conducted in the control channel follows the recommendations of the protocol.
Telnet. Therefore, FTP commands are Telnet character strings (in NVT-ASCII code)
that end with the Telnet end of line code (i.e., the sequence <CR>+<LF>,Return
If the FTP command has a parameter, it is separated from the command by a space (<SP>).
Description
o
USER String that allows identifying the user. The identification
user is necessary to establish communication through the
data channel.
Description
o
PASV Command that allows you to indicate to the DTP server to remain at the
waiting for a connection on a randomly chosen specific port
among the available ports. The response to this command is the address
IP of the device and the port.
TYPE This command allows you to specify the type of format in which they will be sent.
the data.
Description
o
RETR This command (RETRIEVE [RECUPERAR]) asks the DTP server for a
copy of the file whose path is given in the parameters.
There are many more FTP service commands, transfer parameters, and control commands.
access
FTP responses ensure synchronization between the client and the FTP server. Therefore,
For each command sent by the client, the server will eventually carry out an action and
The answers are composed of a 3-digit code that indicates the way in which the
The command sent by the client has been processed. However, because of the code of 3
digits are hard for people to read, accompanied by text (string of characters
The response codes are made up of 3 numbers, whose meanings are the following:
The first number indicates the status of the response (successful or failed)
The third number provides a more specific meaning (related to each second
digit).
First number
Digit Description
o
2yz Response from The requested action has been completed and can be sent.
positive completion a new command.
4yz Response of The requested action has not been carried out because the
completion command has not been accepted temporarily. You are
negative ask the customer to try again later.
5yz Response The requested action has not been completed because the
negative command has not been accepted. The client is requested
permanent that he/she submit a different request.
Second number
At the conclusion of this research, we can conclude that the FTP protocol is ideal.
to transfer data over the network. But there must be a server A and an FTP client B. This
Port 20 is used for data flow between client A and server B, and port 21
for control flow, that is, to send the orders from client A to server B.
FTP provides us with good speed in connections, but does not offer great security.
Since it does not have any type of encryption, for this reason it has great vulnerability in its
data.
In conclusion, we can define the FTP protocol as a great tool for uploading and
downloading files from the web, many people use these protocols but they do not know about the
Ortiz, A. (n.d.). JOOMLA! Retrieved fromThe provided text is a URL and does not contain translatable content.
e-informatics/ftp
The provided text is a URL and does not contain translatable content.
Bibliography
Eating, D. E. (n.d.). Global Information Networks with Internet and TCP/IP. Prentice
HALL.