Martin has 16 years experience in Human Resources Information Systems, has a PhD in Information Technology Management, and a degree in Information Systems Management. He is an adjunct professor of computer science and computer programming.
What is FTP?
FTP stands for File Transfer Protocol, and it is basically what it implies: The protocol, or procedure, for transferring files between computers. However, the term transfer is a little misleading: Files are not actually moved over to the source system; rather, they are copied from one computer to another. This exchange of files happens over Internet channels, formally referred to as a TCP/IP network. TCP/IP (Transmission Control Protocol/Internet Protocol) stands for the standard protocol of communication over the internet.
FTP is a standard protocol, and any computer with the ability to use FTP can make use of the protocol.
For FTP to work, there needs to be a client and a server. The client connects to the service. The client and server communicate back and forth; the server must validate that the client has access to parts of the server it is trying to access; and then the client copies the files to the directories.
Below is a sample of how a connection would look:
|Client:||Connect to FTP service at Port 18 on IP address 172.22.22.90.|
|Server:||Hello, this is Old Time Radio Server|
|Server:||Password required to access user account XYZ124|
|Client:||User enters password|
|Client:||Access directory named Suspense|
|Server:||/home/XYZ124/Suspense is new working directory|
|Client:||Download Episode 123.txt|
|Server:||The server connects to the file in its directory and transfers to client's directory|
FTP Connection Modes: Active vs. Passive.
FTP may work in either active or passive mode, which sets how the data connection is setup. Each type involves the client creating a connection to the FTP server on a certain port (usually port 21). A port is a number assigned to servers in a TCP/IP network: They simply indicate the purpose of the data being transferred (e.g., web page, voice call, etc.). Servers will monitor a given port to know when data starts coming in; FTP servers usually watch port 21.
In active mode, the client connects, indicating that it will be monitoring port 21 for incoming data from the server. Behind the scenes, the client sends a command PORT to tell the server which port it's on. However, most clients are now behind firewalls, either personal or corporate, and the firewall doesn't let in incoming connections. For that purpose, passive mode will work better.
Active mode requires most of the setup to be completed on the client side. If using a firewall, it must be configured to allow ports for incoming connections.
In passive mode, the client sends a PASV command to the server; the server then sends back an IP (Internet) address and port number. The client can use this connection to the server and data transfer/copying can occur.
For this connection mode, most of the work is on the server side. The server needs to setup the system so that it can accept incoming data, not only from port 21 but from a range of possible ports for incoming connections.
The client will always initiate the request for login and transfer. Clients must also always log in to the FTP server with a valid username and password, or the server will not allow access. Although some servers allow guest or anonymous access, it is not recommended that sensitive data be shared on an open connection.
Free FTP client software is available for download. Rather than working on the command line, FTP client software allows the user to work with a more familiar-looking interface. One of the most popular is FileZilla, which allows both standard and secure FTP. The actual interface looks much like a Windows File Explorer and the client can navigate simultaneously between the server's directories (depending on security access) and their own.
In the screenshot, the client's files are listed in the left-hand panes while the right panes list the server's files and directories.
File Transfer Protocol (or FTP) is a procedure for transferring files between computers. Servers hosting an FTP connection are usually connected to Port 21, which is simply a number assigned to a server in a network. FTP can be used in active mode, where the client tells the server which port they are on, or passive mode where the client requests an IP address and port number to connect to. In most cases, Clients must provide valid credentials to access the server. The command line can be used to initiate an FTP connection, but a more user-friendly FTP client software can also be used.
To unlock this lesson you must be a Study.com Member.
Create your account
Register to view this lesson
Unlock Your Education
See for yourself why 30 million people use Study.com
Become a Study.com member and start learning now.Become a Member
Already a member? Log InBack