EXAMRADAR

Question: Which connection is opened during the entire session in FTP?

Answer:

During an FTP (File Transfer Protocol) session, two connections are opened:

1. Control Connection: This connection is established between the FTP client and the FTP server. It is used for sending commands, such as login credentials, directory navigation, and transfer requests. The control connection remains open throughout the session to facilitate communication between the client and the server.

2. Data Connection: The data connection is separate from the control connection and is used for the actual transfer of data (files) between the client and the server. The data connection is opened and closed for each file transfer. There are two modes of data transfer in FTP:

a. Active Mode: In active mode, the FTP server initiates the data connection to the client. The client listens on a specific port for incoming data connections. When the server needs to send data, it connects to the client's IP address and port, establishing the data connection.

b. Passive Mode: In passive mode, the client initiates the data connection to the server. The server listens on a specific port range for incoming data connections. When the client needs to receive data, it connects to the server's IP address and port, establishing the data connection.

In summary, the control connection remains open throughout the FTP session, while the data connection is opened and closed for each file transfer, depending on the mode (active or passive) being used.

MCQ: Which connection is opened during the entire session in FTP?

Correct Answer: A. control

Explanation:

During an FTP (File Transfer Protocol) session, two connections are opened:

1. Control Connection: This connection is established between the FTP client and the FTP server. It is used for sending commands, such as login credentials, directory navigation, and transfer requests. The control connection remains open throughout the session to facilitate communication between the client and the server.

2. Data Connection: The data connection is separate from the control connection and is used for the actual transfer of data (files) between the client and the server. The data connection is opened and closed for each file transfer. There are two modes of data transfer in FTP:

a. Active Mode: In active mode, the FTP server initiates the data connection to the client. The client listens on a specific port for incoming data connections. When the server needs to send data, it connects to the client's IP address and port, establishing the data connection.

b. Passive Mode: In passive mode, the client initiates the data connection to the server. The server listens on a specific port range for incoming data connections. When the client needs to receive data, it connects to the server's IP address and port, establishing the data connection.

In summary, the control connection remains open throughout the FTP session, while the data connection is opened and closed for each file transfer, depending on the mode (active or passive) being used.

Discuss a Question

Related Questions

You may be interested in:

Web Fundamental MCQs

Recently Added Articles

How Can AI Simplify the Academic Life of Students?

How Can AI Simplify the Academic Life of Students?

Last updated on: April 16, 2025Posted by: ExamRadar

Want to Clear IBPS RRB PO? Master These Mock Test Hacks!

Last updated on: March 10, 2025Posted by: ExamRadar

Top AI Tools for Instantly Detecting Plagiarized Writing

Last updated on: December 5, 2024Posted by: ExamRadar

5 Important Tools for System Administrators

Last updated on: December 1, 2024Posted by: ExamRadar

Image to Text Conversion Made Easy: Online Tool Insights

Last updated on: April 12, 2024Posted by: ExamRadar

Tips to Write an Email: Pro Email Writing Tips

Last updated on: March 20, 2024Posted by: ExamRadar

Yellow diamond: the market worth and value

Last updated on: March 9, 2024Posted by: ExamRadar