Repository logo Repository

1. TCP/IP 전송 계층(Transport Layer) 개요


2. TCP (Transmission Control Protocol)

신뢰성을 최우선으로 하는 연결 지향적 전송 프로토콜임.


3. UDP (User Datagram Protocol)

속도와 효율성을 강조하는 비연결형 프로토콜임.


4. TCP vs UDP 비교 요약

구분 TCP UDP
연결 방식 연결 지향 (Connection-oriented) 비연결형 (Connectionless)
신뢰성 높음 (오류/흐름/혼잡 제어) 낮음 (제어 기능 없음)
데이터 단위 Segment Datagram
속도 비교적 느림 매우 빠름
주요 사례 HTTP, 파일 전송(FTP), 이메일(SMTP) 스트리밍, 온라인 게임, VoIP, DNS

5. 적용 사례 비교

파일 다운로드 (TCP 권장)

라이브 방송 스트리밍 (UDP 권장)


정리

Q. TCP와 UDP의 차이점을 묻는다면?

Q. UDP의 비신뢰성을 보완할 방법은 없는지?


출처

  1. RFC 9293, Transmission Control Protocol https://datatracker.ietf.org/doc/html/rfc9293
  2. RFC 768, User Datagram Protocol https://www.rfc-editor.org/rfc/rfc768
  3. RFC 9000, QUIC: A UDP-Based Multiplexed and Secure Transport https://www.rfc-editor.org/rfc/rfc9000

TCP 3-way handshake »