TCP (Transmission Control Protocol)

Connected service transport layer protocol. Basic protocol on the Internet. Offering reliable data transfer, flow control, and congestion control.

Reliable via sequence number and ack number
3-way handshaking(connect) and 4-way handshaking(disconnect)
Prevent receiver buffer overflow, congestion control
Full-duplex, Point to Point
1:1 communication
Ensure the data sending sequence
Check the data is safely arrived

연결형 서비스를 지원하는 전송 계층 프로토콜. 3-way handshaking을 통한 연결 설정으로 신뢰성 제공. 데이터 흐름 제어, 혼잡제어 제공.


>Server creates socket, allocate address, wait for connection, response to request

>Client creates socket, allocate address, request connection



UDP (User Datagram Protocol)

Non-connected service. There is no signal when sending or receiving data. Sender does not have to check the data is accurately transferred.

비연결형 서비스를 지원하는 전송계층 프로토콜. 보내는 쪽에서 일방적으로 데이터를 전달하며, 송신자는 수신자가 데이터를 받았는지 체크할 필요가 없다. 비연결형으로 TCP의 3-way handshaking 같은 연결 과정을 거치지 않는다. 따라서 안정성은 떨어지지만 속도는 훨씬 빠르다.

None reliability than TCP

Less packet overhead (less network load)

Error check field in header

No connection setting like TCP

DNS, NFS, SNMP, RIP ..etc

1:1, 1:n, n:m communication

Transfer sequence is variable


>Server creates socket, allocate address, data communicate

>Client creates socket and data communicate

'System Engineering > Network' 카테고리의 다른 글

HTTP - 2. Message  (0) 2018.07.06
HTTP 1. HTTP  (0) 2018.07.02
About https  (0) 2018.06.11
HAProxy – 오픈 소스 로드 밸런서  (0) 2018.05.24
포트 미러링  (0) 2018.05.24

+ Recent posts