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를 하나 더 놓는 느낌 )

'학부생 공부 > 네트워크' 카테고리의 다른 글

TCP(전송 제어 프로토콜) / IP(인터넷 프로토콜)  (0) 2021.05.28
DNS (domain name system)  (0) 2020.04.13
FTP  (0) 2020.04.12
Web and HTTP  (0) 2020.04.06
TCP, UDP  (0) 2020.04.06

1. FTP 란?

 - the file transfer protocol

 - 원격의 호스트들끼리 파일을 주고 받을 때 사용하는 protocol

 - client / server 모델

 - RFC 959로 정의된다.

 - 주로 port 21번 사용

 

 

2. 특징

 - FTP client는 port 21번을 통해 FTP server와 contact

 - (using TCP)

 - server가 file transfer command 를 받으면, server는 2nd data connection 을 한다 (client 에게) 

 - 즉 2channel 통신이다.

 - "out of band"

 - ---> 데이터를 주고받는 band 외의 다른 band에서 control 정보를 주고 받는다.

 - "state" - (current directory, earlier authentication)

 

'학부생 공부 > 네트워크' 카테고리의 다른 글

DNS (domain name system)  (0) 2020.04.13
SMTP (E-mail)  (0) 2020.04.12
Web and HTTP  (0) 2020.04.06
TCP, UDP  (0) 2020.04.06
Application Layer  (0) 2020.04.04

** TCP: Transmission Control Protocol

 - reliable transport (between sending and recieving process)

 - flow control : sender won't overwhelm receiver (받는 쪽의 버퍼 사이즈 이상으로 

                                보내지 않는다)

 - connection - oriented (연결 지향형) - 클라이언트와 서버간의 통신전 setup이 요구된다

                                                                              ( 데이터를 보내기전에 connection 을 먼저 만든다 )

 - timing,  minimum throughput 은 보장하지 않는다.

 

**UDP : User Datagram Protocol

 - unreliable data transfer (between sending and recieving process)

 - TCP보다 빠르다.

 - 지원하지 않는 것이 많다 (reliability, flow control, timing, throughput, security )

 

**그렇다면 왜 UDP를 버리지 않고 사용하는 곳이 있을까?

 - 예를들면, 비디오나 오디오를 다운받을 때 데이터의 약간의 변형 정도는 허용이 될때 TCP보다 빠르게 전송할 수 있다.

 - streaming multimedia 나 Internet telephony  등에서 TCP와 UDP를 섞어서 사용한다.

 

'학부생 공부 > 네트워크' 카테고리의 다른 글

FTP  (0) 2020.04.12
Web and HTTP  (0) 2020.04.06
Application Layer  (0) 2020.04.04
Internet structure  (0) 2020.03.26
Network Core  (0) 2020.03.25

+ Recent posts