101 · Question #491
In which scenario does the client act as a server?
The correct answer is A. During an active FTP session. In active FTP mode, the client opens a listening port for the data connection, temporarily acting as a server for the data channel.
Question
In which scenario does the client act as a server?
Options
- ADuring an active FTP session
- BWhen an SMTP connection
- CDuring an SMTP connection
- DWhen browsing websites
How the community answered
(28 responses)- A75% (21)
- B14% (4)
- C7% (2)
- D4% (1)
Why each option
In active FTP mode, the client opens a listening port for the data connection, temporarily acting as a server for the data channel.
In active FTP mode, the client sends a PORT command to the server specifying a local port it is listening on, and the server then initiates the TCP data connection back to the client on that port. This reversal of the data channel means the client accepts an incoming connection from the server, fulfilling the role of a server for that data transfer.
SMTP is a client-initiated protocol where the sending host always connects outbound to port 25 on the mail server; the client never listens for or accepts incoming connections.
During an SMTP connection, the client pushes mail to the server by initiating the TCP connection; the client does not open a listening port for the server to connect back to.
When browsing websites, the client sends HTTP/HTTPS requests to the web server and only receives responses; all connections are outbound from the client.
Concept tested: Active FTP mode client data channel role
Source: https://www.rfc-editor.org/rfc/rfc959
Topics
Community Discussion
No community discussion yet for this question.