Thursday, February 6, 2020

POP Protocol | IMAP Protocol | POP Vs IMAP

Reference: https://www.gatevidyalay.com/post-office-protocol-pop3-imap-vs-pop3/

Important application layer protocols are-
 

  1. Domain Name Service (DNS)
  2. Hyper Text Transfer Protocol (HTTP)
  3. Simple Mail Transfer Protocol (SMTP)
  4. Post Office Protocol (POP)
  5. File Transfer Protocol (FTP)

In this article, we will discuss about Post Office Protocol (POP).

Post Office Protocol-




  • POP is short for Post Office Protocol.
  • It is an application layer protocol.
Post Office Protocol (POP) enables a workstation to retrieve mail from a mail server. With POP, mail is downloaded from the server to the client and then deleted on the server.

The server starts the POP service by passively listening on TCP port 110 for client connection requests. When a client wants to make use of the service, it sends a request to establish a TCP connection with the server. When the connection is established, the POP server sends a greeting. The client and POP server then exchange commands and responses until the connection is closed or aborted.

Because email messages are downloaded to the client and removed from the server, there is not a centralized location where email messages are kept. Because POP does not store messages, it is undesirable for a small business that needs a centralized backup solution.
POP3 is desirable for an ISP, because it alleviates their responsibility for managing large amounts of storage for their email servers.

Purpose-


  • It is a message access protocol.
  • It enables the clients to receive or download the emails from their remote mail server.
  • POP version 3 (POP3) is the most popularly used version.

Working-


To retrieve a message from the mail server-
  • Client establishes a TCP connection using port 110.
  • Client identifies itself to the server.
  • Client issues a series of POP3 commands.


Characteristics of POP-


  • POP is a pull protocol.
  • POP uses TCP at the transport layer.
  • POP uses port number 110.
  • POP uses persistent TCP connections.
  • POP is a connection oriented protocol.
  • POP is an in-band protocol.
  • POP is a stateful protocol until the mail is downloaded as well as stateless across sessions.

Internet Message Access Protocol-


  • IMAP is short for Internet Message Access Protocol.
  • It is an application layer protocol.
  • It also enables the clients to receive or download the emails from their remote mail server.

POP has been largely superseded by Internet Message Access Protocol (IMAP).

Characteristics of IMAP-


  • IMAP is a pull protocol.
  • IMAP uses TCP at the transport layer.
  • IMAP uses port number 143.
  • IMAP uses persistent TCP connections.
  • IMAP is a connection oriented protocol.
  • IMAP is an in-band protocol.
  • IMAP is a stateful protocol.
  • IMAP distributes mail boxes across multiple servers.

POP Vs IMAP-


The following table lists the differences between POP and IMAP-

Post Office ProtocolInternet Message Access Protocol
POP allows you to read the mail only after downloading it.IMAP allows you to check the mail content before downloading.
So, with IMAP you can choose to download your messages or just delete them.
The email message is downloaded to the local computer and the copy at the server is deleted.The email message is stored on the mail server itself.
The user can not organize mails in the mail box of the mail server.The user can organize mails on the server.
Mails can only be accessed from a single device.Mails can be accessed from multiple devices which is the biggest advantage.
In POP, the mail server and client’s mail account are not synced.
So, changes made in the client’s mail account are not visible on the web mail inbox.

Example-


If you are using POP and marks a mail as read, it does not get marked as read in the web mail inbox because the mails are downloaded to the computer and so the changes won’t be visible on the server.
In IMAP, the mail server and the client’s mail account are synced.
So, changes made in the client’s mail account are instantly visible on the web mail inbox.

Example-


If you are using IMAP and marks a mail as read, it gets marked as read in the web mail inbox too because the changes are taking place on the server.
POP is a stateful protocol until the mail is downloaded as well as stateless across sessions.IMAP is a stateful protocol because the IMAP server has to maintain a folder hierarchy for each of its users.
POP is a better choice for those who hardly checks their mail on any other computer.IMAP is a better choice for those who frequently check their mails on other computers.

To gain better understanding about POP Protocol and IMAP Protocol,

No comments:

Post a Comment