[Service]ftp active mode and passive mode

Source: Internet
Author: User
Tags ftp connection ftp client ftp transfer

Often forget this thing. So summarize this thing and feel the agreement.

    • FTP connection mode
      • Control connection: Standard port, for sending FTP command information
      • Data connection: Standard port, for uploading and downloading data
      • Type of data connection establishment:
        • Active mode: the server initiates a connection from Port 20 actively to the client
        • Passive mode: The server is passively waiting for a client to initiate a connection at a port within a specified range
    • FTP transfer Mode
      • Text mode: ASCII mode, transferring data in a text sequence
      • Binary mode: Binary mode, transferring data in binary sequence

Summarize:

a  

Two stages: Control connection TCP ( Client initiated, three handshake process)

? Data connection TCP(optional)

Two

FTP establish the connection process :

1, Control Connection :--- establish a control connection first : Clinet take the initiative to Server three-time handshake .

2, Data Connection :

data plane:

Active mode:FTP Server actively uses its own Port as the source side to connect the FTP client. --------- applicable firewall

Passive mode:FTP server tells the client I opened the port, you can even me. --------- Firewall Not applicable

Note : Active mode and passive mode are discussed in the second phase . .

Note : Firewall Environment Applicable FTP Active mode. ?

There are two ways to establish a data connection:

Active mode: Data connection : Server Active to sport20 to connect Client . the client said, I opened the 1049, you come to connect me.

Active mode resolves firewall issues.

Passive mode: I take my 1089 to connect A I take my 1090 to connect B .

xftp The default is to connect in passive mode. In general, we use passive mode. However, if you encounter a firewall, you need to use active mode.

[Service]ftp active mode and passive mode

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.