6,577 views

$\textsf{HELO}$ and $\textsf{PORT}$, respectively, are commands from the protocols:

1. $\textsf{FTP}$ and $\textsf{HTTP}$
2. $\textsf{TELNET}$ and $\textsf{POP3}$
3. $\textsf{HTTP}$ and $\textsf{TELNET}$
4. $\textsf{SMTP}$ and $\textsf{FTP}$

HELO - Sender's Host Name (SMTP)
PORT -  is a ftp command.
Option D) SMTP and FTP

For SMTP: Various commands

1. HELO : It's the first SMTP command: is starts the conversation identifying the sender server and is generally followed by its domain name.
2. EHLO : An alternative command to start the conversation, underlying that the server is using the Extended SMTP protocol.
3. MAIL FROM : With this SMTP command the operations begin: the sender states the source email address in the "From" field and actually starts the email transfer.
4. RCPT TO : It identifies the recipient of the email; if there are more than one, the command is simply repeated address by address.
5. SIZE : This SMTP command informs the remote server about the estimated size (in terms of bytes) of the attached email. It can also be used to report the maximum size of a message to be accepted by the server.
6. DATA : With the DATA command the email content begins to be transferred; it's generally followed by a 354 reply code given by the server, giving the permission to start the actual transmission.
7. VRFY : The server is asked to verify whether a particular email address or username actually exists.
8. TURN: This command is used to invert roles between the client and the server, without the need to run a new connaction.
9. AUTH : With the AUTH command, the client authenticates itself to the server, giving its username and password. It's another layer of security to guarantee a proper transmission.
10. RSET : It communicates the server that the ongoing email transmission is going to be terminated, though the SMTP conversation won't be closed (like in the case of QUIT).
11. EXPN : This SMTP command asks for a confirmation about the identification of a mailing list.
12. HELP : It's a client's request for some information that can be useful for the a successful transfer of the email.
13. QUIT : It terminates the SMTP conversation.

FTP may run in active or passive mode, which determines how the data connection is established. In both cases, the client creates a TCP control connection from a random, usually an unprivileged, port N to the FTP server command port 21.

For HTTP commands :

1. GET :Retrieves the document specified in the URL property (use GetHeader to retrieve header information and GetChunk to get the rest of the information)
3. POST : Sends data to the server.
4. PUT : Replaces the page specified in the URL property with the specified data

by

Where did u get this ?? resources ??
From book Forouzan .
FTP has port number 21 too

srestha

yes port no 20 for data connection.

and port no 21 for control connection.

HELO:  The domain name or IP address of the SMTP client is usually sent as an argument together with the command (e.g. “HELO client.example.com”). If a domain name is used as an argument with the HELO command, it must be a fully qualified domain name (also called FQDN).

FTP  : FTP may run in active or passive mode, which determines how the data connection is established. In both cases, the client creates a TCP control connection from a random, usually an unprivileged, port N to the FTP server command port 21.

by

NO. in both the cases it doesnt use port 21 on server side: here’s the reference:

In situations where the client is behind a firewall and unable to accept incoming TCP connections, passive mode may be used. In this mode, the client uses the control connection to send a PASV command to the server and then receives a server IP address and server port number from the server,[9] which the client then uses to open a data connection from an arbitrary client port to the server IP address and server port number received.

i have been trying to understand where i am wrong (if i am) but i dont see what u trying to tell me here. As is given in my above comment the client clearly is going to use the port no given by the server(as a response to the PASV command) for connection establishment if its in passive mode. Can u tell me where u think i am wrong? it will be very helpful

Option-D

HELO(HELLO) and Port is usualy command of SMTP as well as FTP.