[Network] 9. E-Mail

dnjstjt12·2024년 11월 9일

Electronic mail

  • Three major component
    1. User agents
    2. Mail server
    3. Simple mail transfer protocol: SMTP

User Agent(mail reader)

  • 사용자가 메일을 읽을 수 있고, 수정할 수 있게 해준다.
  • 메시지를 구성한다.

mail servers

  • mailbox: 사용자의 메시지를 유지시켜준다.
  • message queue: 메일 메시지를 보내는 큐이다.
  • SMTP protocol: mail server에서 메시지를 보내는 protocol이다.

SMTP

  • transport layer에서 TCP를 사용하여 신뢰성을 보장한다.

  • Port Number 25를 사용한다.

  • 메시지 전달과정:
    1. TCP Connection을 하여 handshaking을 한다.
    2. 메시지가 전송된다.
    3. closure

  • command/reponse interraction
    commands: ASCII text(7-bit)
    response: code와 phrase의 상태

  • persistent connections: 한 개의 TCP Connection에서 서버는 여러 개의 메시지를 보낼 수 있다.

HTTP vs SMTP
HTTP
1. pull(서버에서 리소스를 pull한다.)
2. 각 obecte들은 response message에 담겨 전송된다.
SMTP
1. push(서버에게 메일을 push한다.)
2. 한개의 응답 메시지는 한개의 Object를 가진다.

SMTP Mail message format

  • RFC 822: text message format의 표준

  • header lines: to, from, subject

  • Body: the message(ASCII)

Mail access protocols

  • POP: Post Office protocol(RFC 1939)
  • IMAP: Internet Mail Access Protocol(RFC 1730)
  • HTTP: gmail, etc

[참고] Computer Networking A Top-Down Approach EIGHTH EDITION/Kurose.Ross/Pearson

profile
안녕하세요!

0개의 댓글