What is FTP Server and How Does it Work?

File Transfer Protocol Server is a computer that provides file storage and access services on the Internet. They provide services in accordance with the FTP protocol. FTP, the file transfer protocol is a set of standard protocols for file transfer on the network, using the client/server model. FTP is a protocol specifically used to transfer files.

FTP is a client/server system. Users use a client that supports the FTP protocol to connect to a server program on a remote host. The user issues a command on the client, and the remote host server executes the command issued by the user after receiving the command, and returns the execution result to the client. Simply put, the user sends a command to the server, asking the server to send a file to the user. The server responds and sends the file to the client. The user receives the file and places it in the user's working directory. This process is carried out by the FTP server. Exchange of documents.

How Does FTP Server Work?

FTP is based on the TCP protocol service, which is a file transfer protocol on the Internet. By default, two ports 20 and 21 are used, a data port and a command port, and port 20 is a data port for file transfer between the client and the server data flow. Port 21 is a command port used to transmit control flow and accept related FTP commands and parameters issued by the client.

Raysync FTP Server

The FTP client sends a service request to the FTP server in the computer network. The FTP server receives and responds to the FTP client's request and provides the FTP client with the required file transfer service. According to the provisions of the TCP protocol, FTP servers use well-known port numbers 20 and 21 to provide services, and FTP clients use temporary port numbers to send requests. The FTP protocol specifies different well-known port numbers for control connections and data connections, the well-known port number for control connections is 21, and the well-known port number for data connections is 20. The FTP protocol uses a continuous connection communication method, and the maintenance time of the control connection it establishes is usually long.

After explaining the main connection method of the working principle of FTP, then explain the two types of data connection establishment in the working principle of FTP: active mode and passive mode. The active mode of FTP is that the client connects to the well-known port of the FTP server from any unprivileged port, that is, port 21. After receiving the command, the FTP server connects to another temporary port of the client from the data port and returns data; passive mode means that the client opens two arbitrary non-privileged ports to submit commands, and the FTP server passively opens any non-privileged ports to send commands to the client After the client receives the command, it initiates a connection to the FTP server from the local port to establish a transmission data channel. In this mode, the command connection and the data connection are initiated by the client to solve the problem of the server initiating the connection to the client.

Generally speaking, if we take the server as the criterion. Active mode: The server initiates a connection to the client from port 20. Passive mode: The server passively waits for a client to initiate a connection on a port within a specified range.

The realization goal of FTP is to realize the safe sharing of file data, that is, the computer client can connect to the FTP servers around the world through the FTP client and the Internet to achieve file data sharing and resource sharing. Realize information interaction, that is, other computer clients can access the FTP server built on your computer through the Internet, so that your information can be spread to all parts of the world. Carry out effective data transmission. Files can be exchanged between computers of different types, different systems, and different formats.

Do you know the FTP server now? For related articles, you can click here to learn more.

Previous:How to Avoid the Security Risks of Inefficiency with File Transfer Solution?

Next:Review of the File Synchronization Tools

Key Words

Point to point transmission|transmission system|network disk|transmit data|Transnational transmission|Cross border file transfer|File transfer solution|raysync cloud|Large file transfer solution|raysync|raysync Software|Large file transfer|File management system|Large file transfer|file transfer|raysync cloud|raysync transmission|data transmission|LDAP|AD|HTTP|tcp|High speed transmission|Remote large file transfer|Transnational file transfer|Accelerated transmission|File share transfer|file data|Transfer large files|Cross border transmission|Data transmission software|Large file transfer software|Enterprise file transfer software|High speed data transmission|File synchronous transfer|FTP transmission|Transnational transmission|High Availability|Transmission encryption|High speed transmission protocol|aspera|Breakpoint renewal|socks5|Cache|network|Secure transmission|Cloud storage|saas|Enterprise Network Disk|Operational tools|cloud computing|File management| Foreign trade|Data exchange|Telecommuting|High-speed transmission|SD-WAN|transfer software|High speed transmission|High-speed file transfer|File synchronization|ftp|file transfer protocol|Transfer tool|Big data transfer|File synchronization software|file sync|File transfer software|Oversized file transfer|Transfer solution|Transfer file via email|File transfer server|File transfer services|Managed File Transfer|Fast File Transfer|point to point transfer|Data Management|aes|File sharing|ftps|sftp|mft|shared file|Send Large Files|Secure file transfer|small file transfer|synchronous transmission|data sync|file transfer|video transmission|long distance transmission|file transfer|cross-border data transmission|transfer files|media industry|TLS|teletransmission|File sharing


Raysync offers free file transfer solutions and technical support for enterprise users!