当前位置:网站首页>FTP protocol details
FTP protocol details
2022-07-29 02:46:00 【Li-YC】
One 、FTP Overview of the agreement
1、 File transfer protocol (File Transfer Protocol) It is the most widely used file transfer protocol on the Internet , be used for Internet Two way transfer of control files on .
2、FTP Provide interactive access , Allows customers to specify the file type and format , And allow access to files .
3、FTP Shielding the details of each computer system , Therefore, it is suitable for transferring files between computers in Heterogeneous Networks .
Two 、FTP The features of the agreement
1、 File transfer protocol FTP Only some basic services of file transfer are provided , It USES TCP Reliable mode of transportation .
2、FTP Its main function is to reduce or eliminate the incompatibility of processing files under different operating systems .
3、FTP Using client server mode . One FTP The server process can provide services for multiple client processes at the same time ,FTP The server process of consists of two parts : One is the main process , Responsible for accepting new requests ; In addition, there is a slave process , Responsible for handling individual requests .
3、 ... and 、FTP working process
1、FTP There are control connections and data connections ,
The standard port of control connection is 21, Used for sending FTP Command message .
The standard port for data connection is 20, For uploading 、 Download data .
2、FTP The difference between the protocol and other protocols is client access FTP The server side needs to establish two TCP Connect , One is used to transmit FTP command , One for transmitting data
3、FTP There are active mode and passive mode ,
Active mode : The service side from 20 The port initiates the connection to the client , The working process is shown in the figure below :

In the first step ,FTP Client submit PORT Command and allow the server to connect its data port back and forth (1027 port ).
In the second step , The server returns a confirmation .
In the third step ,FTP The server sends... To the client TCP Connection request , The target port is 1027, The source port is 20. Establish a connection to transmit data .
Passive mode : The server passively waits for the customer at each port within the specified range , Passive initiated connection .

In the first step , The command port of the client is connected to the command port of the server , And send orders "PASV".
In the second step , The server returns the command "PORT 2024" Tell the client : Which ports does the server use to monitor data connections .
In the third step , The client initializes a data connection from its own data port to the data port specified by the server .
In step four , The server returns a message to the data port of the client "ACK" Respond to .
边栏推荐
- Shell script quick start-01
- 第十天笔记
- ECCV 2022 | AirDet:无需微调的小样本目标检测方法
- 主从复制及其原理
- Read the recent trends of okaleido tiger and tap the value and potential behind it
- Tesla neural network model hydranet
- C语言实现三子棋游戏
- QT screen adaptive automatic layout, drag the window to automatically grow larger and smaller (I)
- Others' happiness
- qt QStringList用法
猜你喜欢

ES6 detailed quick start!

A good-looking IAPP donation list source code

C语言:空心正方形图案

QT screen adaptive automatic layout, drag the window to automatically grow larger and smaller (I)

STM32C8T6编码器电机测速与arduino光电模块测速

How to migrate thinkphp5 projects to Alibaba cloud function computing to cope with traffic peaks?

Asemi rectifier bridge s25vb100, s25vb100 parameters, s25vb100 application

Mqtt routine

Polygon zkevm - Introduction to HERMEZ 2.0

Source code and display of 18 classic programs in C language vs2019
随机推荐
MPEG音频编码三十年
golang 协程的实现原理
owt-server源码剖析(三)--video模块分析之Mixer In
Which is a good automatic account distribution system?
Source code of Jiugongge heart puzzle Applet / source code of main wechat applet with traffic
漫画算法_小灰灰面试
ROCBOSS开源微社区轻论坛类源码
C语言:小乐乐与进制转换
Cuda-npp image and video processing
MySQL和Redis的双写一致性
idea替换所有文件中的内容
九宫格心形拼图小程序源码/带流量主微信小程序源码
Redis queue realizes second kill
Code random notes_ Hash_ 349 intersection of two numbers
MQTT例程
OSPF实验
etcd实现大规模服务治理应用实战
HTTP缓存
Workflow of wireless vibrating wire acquisition system
Cloud development workers must go to work fishing and paddling wechat applet source code