Which of the following protocols uses TCP for file transfer and establishes two separate connections for commands and data?
B
Correct answer
Explanation
FTP uses one connection for commands and the other for sending and receiving data. FTP has a standard port number on which the FTP server listens for connections. A port is a logical connection point for communicating using the Internet Protocol (IP). The standard port number used by FTP servers is 21 and is used only for sending commands. Since port 21 is used exclusively for sending commands, this port is referred to as a command port. For example, to get a list of folders and files present on the FTP server, the FTP Client issues a LIST command. The FTP server then sends a list of all folders and files back to the FTP Client. The port that is used for transferring data is referred to as a data port.