네트워크 Overview - E-mail, SMTP, IMAP

김준석·2023년 4월 8일
0

네트워크

목록 보기
4/6

E-mail

Three major components
User agents
mail servers
simple mail transfer protocol : SMTP

User Agent

a.k.a : mail reader
Composiing, editing, reading mail messages

mail servers

  • sender mail server
  • reciever mail server

mail servers:

  • mail box
  • message queue

SMTP RFC

  • TCP를 사용하고 Port는 25
  • transfer을 위해 three phases가 있다.
  1. SMTP handshaking
  2. SMTP transfer of messages
  3. SMTP closure

Alice가 bob에게 메세지 보내는 시나리오

  1. Alice는 이메일주소에 메세지를 작성하여 보낸다.
  2. 메세지를 자신의 sending mail server에 SMTP를 사용하며 메세지를 보낸다
  3. CLIENT side에서는 Bob의 메일 서버와 tcp connection을 한다.
  4. SMTP는 ALICE의 메세지를 TCP connection을 통해 전송한다.
  5. Bob의 메일서버는 이를 저장한다.

SMTP: observations

Http와 비교

  • HTTP: client pull
  • SMTP: client push
  • HTTP: 각 object가 각 response메세지를 전달

  • SMTP : multiple한 object가 multipart 한 message를 보낸다.

  • SMTP : persistent connections

Retreving email

  • SMTP :receiver's server에 메세지를 저장하거나 전송
  • mail access protocol : retrieval from server
    IMAP : 메세지를 서버에 저장하고, retrieval, deletion, folders등의 기능
profile
기록하면서 성장하기!

0개의 댓글