SMTP (E-mail)
1. SMTP??
- application layer protocol (5계층)
- TCP(4계층) 사용
- 서버끼리 하는 direct transfer ( sending server to receiving server )
- commands : ASCII text
- response : status code and phrase
- messages must be in 7-bit ASCII(text-based)
- RFC 822
2. Three phases of transfer
- 1. handshaking (greeting)
- 2. transfer of messages
- 3. closure
3. SMTP : final words
- SMTP 는 persistent connections를 사용
- uses CRLF (to determine end of message)
4. HTTP vs SMTP
- HTTP : pull, 기본적으로 non-persistent 방식 (default)
(URL을 치면 내가 거기가서 데이터를 당겨오는 방식)
- SMTP : push, persistent 방식
(server 가 push하는 방식)
5. 그외
- POP : Post Office Protocol[RFC 1939] -authorization, download
- IMAP : Internet Mail Access Protocol[RFC 1730] -manipulation of stored msgs on server.....
- HTTP : user agent를 사용하지 않고 web에서 바로 주고받는 경우 -gmail, hotmail.....
( 가운데 server를 하나 더 놓는 느낌 )