The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+23 votes

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

  1. HTTP
  2. FTP
  3. TCP
  4. POP3
  1. $(i)$ and $(ii)$ only
  2. $(ii)$ and $(iii)$ only
  3. $(ii)$ and $(iv)$ only
  4. $(iv)$ only
asked in Computer Networks by Loyal (7.8k points)
edited by | 4.6k views

5 Answers

+33 votes
Best answer

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 ->

answered by Boss (12.4k points)
edited by

A POP3 server listens on well-known port 110


Stateful is also used when a protocol has to

  • Maintain logs(FTP maintains log of the users)
  • Remember some sort of information about the user(IMAP remembers which folder currently we are looking at: Reference)
+43 votes

HTTP - stateless

FTP - stateful

TCP - not application layer protocol

POP3 - Stateful

And according to options answer would be C)

answered by Loyal (9.7k points)
edited by
POP3 stateless across session
why ftp is stateful
FTP is stateful . FTP  that keep track of current directory and currently logged in user.
is RIP network layer/ application layer protocol?
RIP is application layer protocol
+10 votes

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.
answered by Loyal (9.7k points)
+5 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)

answered by Active (2.3k points)
0 votes
Stateful Protocol --> A protocol that requires keeping of the  internal state on server  is known as stateful protocol

Stateless Protocol --> Stateless protocol is a communication protocol in which no information is retained by either sender or receiver

Stateless - HTTP, IP
Stateful - FTP, SMTP, POP3, TCP

TCP is stateful as it maintains connection information across multiple transfers, but TCP is a Transport layer protocol
FTP and POP3 is stateful Application layer protocol
answered ago by (199 points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,108 questions
53,221 answers
70,462 users