edited by
18,769 views
48 votes
48 votes

Which of the following is/are example(s) of stateful application layer protocol?

  1. $\textsf{HTTP}$
  2. $\textsf{FTP}$
  3. $\textsf{TCP}$
  4. $\textsf{POP3}$
  1. $\text{(i)}$ and $\text{(ii)}$ only
  2. $\text{(ii)}$ and $\text{(iii)}$ only
  3. $\text{(ii)}$ and $\text{(iv)}$ only
  4. $\text{(iv)}$ only
edited by

7 Answers

Best answer
63 votes
63 votes

Answer is (C) part

Stateless protocol is a communications protocol in which no information is retained by either sender or receiver.(Note:The remembered information is called as the state)

HTTP(Stateless | Application Layer | Uses TCP (80)) - No information is maintained. If in some case state maintenance is required then cookies are used. Now HTTPS is HTTP over a secure connection So it is also stateless.

FTP (Stateful | Application Layer | Uses TCP (20 and 21)) server that conducts an interactive session with the user. During the session, a user is provided a means to be authenticated and set various variables (working directory, transfer mode), all stored on the server as part of the user's state.

TCP (Stateful / Transport Layer) various information related to connection is maintained.

BGP (Stateful / Application Layer / Uses TCP )  Finite state Automata is used to describe the state.

POP3 (Stateful / Application Layer / Uses TCP(110))

In General if some authorization is required then stateful design is used.

Refer ->

edited by
61 votes
61 votes

HTTP - stateless

FTP - stateful

TCP - not application layer protocol

POP3 - Stateful

And according to options answer would be C)
 

13 votes
13 votes
Option-C

Because of we know that HTTP is not stateful protocol is stateless protocol.

Whereas FTP is stateful protocol of application layer bcz it remember all the log file corresponding of client.

TCP is also stateful but but it is not application layer protocol .So this option will be wrong.

Whereas POP3 is stateful protocol of application layer.that's why Option -C is correct option.
12 votes
12 votes

Above answers are well explained on Statefulness and Statelessness of any protocol., just to add few more points.

Despite of the fact that if protocol is Stateless, we need to include additional information in every request (many a times repeated data) and this extra information will be needed to be interpreted by the server , which is the very drawback of Stateless protocols, Stateless protocols have been worldwide used as the protocol for the Web (http or https)  because of following advantages.

 Stateless protocols are preferred-

  1. Better Scalability and high Availability, as the state itself doesn't need to be stored on server so they ease replication concerns and no dynamic storage needed ex. HTTP ,which would be difficult otherwise, to implement. Even on connection loss, simply request-resend will resolve the problem.Request can be sent to any node at any time
  2. Also they are cacheable  (EX. UDP, HTTP, IP etc)

On the other side, Stateful protocols are heavy to implement and Scalability is difficult. Ex. TCP, POP3, IMAP, FTP, SMTP etc.

Though nowadays many web applications (where protocol is HTTP) have started keeping logs of users. So we can say they (stateless protocols) virtually look like Stateful, which can be done by either Implementing cookies or by extending the URLs (state sent as URL part)..

Concluding for above question, Application layer stateful protocols are FTP & POP3. so (C)

Answer:

Related questions

58 votes
58 votes
11 answers
3
Sandeep Singh asked Feb 12, 2016
26,065 views
A sender uses the Stop-and-Wait $\text{ARQ}$ protocol for reliable transmission of frames. Frames are of size $1000$ bytes and the transmission rate at the sender is $80\...
34 votes
34 votes
6 answers
4
Sandeep Singh asked Feb 12, 2016
18,001 views
Which one of the following protocols is NOT used to resolve one form of address to another one?$\textsf{DNS}$$\textsf{ARP}$$\textsf{DHCP}$$\textsf{RARP}$