HelloMinchan
처음처럼
HelloMinchan
LinkedIn
전체 방문자
오늘
어제
  • 분류 전체보기 (306)
    • Backend (4)
      • NestJS (1)
      • Express (1)
      • Spring (2)
    • Infrastructure (1)
      • AWS (1)
    • Frontend (1)
      • Next.js (1)
    • Language & Runtime (4)
      • Java (2)
      • Node.js (2)
    • Computer Science (8)
      • Computer Networks (3)
      • Operating Systems (4)
      • OOP (1)
    • 독서 (4)
      • 데이터 중심 애플리케이션 설계 (3)
      • 객체지향의 사실과 오해 (1)
    • 회고 (4)
      • Project (2)
      • Career (2)
    • Deprecated (280)

채널

  • GitHub
  • LinkedIn

최근 글

태그

  • 개발자
  • Baekjoon Online Judge
  • 데이터베이스
  • 프로그래밍
  • Algospot
  • 백준Go
  • 프로그래머스
  • 백준C++
  • 알고스팟
  • 알고스팟Python
  • 백준Python
  • back-end
  • 백준
  • 프로그래머스Python
  • 백엔드
  • 프로그래머스C++
  • front-end
  • Database
  • 코딩
  • programmers

최근 댓글

인기 글

hELLO
HelloMinchan

처음처럼

[Computer Networks] 프로토콜(Protocol)이란?
Computer Science/Computer Networks

[Computer Networks] 프로토콜(Protocol)이란?

2022. 12. 20. 18:53

네트워크 공부를 시작하며, 계속 사용되는 단어인 프로토콜을 알아보자!

 

먼저 위키피디아를 보자,

A communication protocol is a system of rules that allows two or more entities of a communications system to transmit information via any kind of variation of a physical quantity. The protocol defines the rules, syntax, semantics and synchronization of communication and possible error recovery methods. Protocols may be implemented by hardware, software, or a combination of both.

통신 프로토콜이란 둘 이상의 통신 시스템에서 정보를 주고받는 규칙, 규약이라는 것이 핵심이다.

위 그림을 보고 좀 더 쉽게 이해를 해보자,

 

왼쪽을 보면 어떤 두 사람이 시간을 물어보는 대화를 하고 있다.

놀랍게도 이 프로토콜을 공부하며 깨닫게 된 사실인데.. 보통 사람 간의 대화가 시작될 때 본론을 먼저 말하기보다 인사 혹은 안부로 대화의 시작이 진행되는 걸 알 수 있다.

 

1. A가 B에게 안녕?이라고 함.

2. B가 A에게 안녕.이라고 함.

3. 몇 시냐고 물어봄.

4. 2시라고 대답함.

(이 대화의 과정을 규칙이라고 해보자.)

 

만약 A가 B에게 "안녕?"이라고 물어봤는데 B에게 대답이 돌아오지 않는다면 본론은커녕 대화를 시작할 수 조차 없다...

 

오른쪽을 보면 네트워크 통신 사이에서도 이러한 규칙이 적용되는데,

먼저, 클라이언트가 호스트인 서버에게 TCP 연결 요청을 보내고("안녕?"과 같은 행위) 서버가 TCP 연결 응답("안녕.")을 보내줘야 클라이언트가 GET 요청을 보낼 수 있는 것이다.

 

바로 이와 같은 대화의 과정 즉, 통신 규칙을 프로토콜이라 하는 것이다.

저작자표시 비영리 변경금지 (새창열림)

'Computer Science > Computer Networks' 카테고리의 다른 글

[Computer Networks] HTTP란?  (0) 2022.12.26
[Computer Networks] Circuit Switching과 Packet Switching  (0) 2022.12.20
    'Computer Science/Computer Networks' 카테고리의 다른 글
    • [Computer Networks] HTTP란?
    • [Computer Networks] Circuit Switching과 Packet Switching
    HelloMinchan
    HelloMinchan
    Though you should not fear failure, You should do your very best to avoid it.

    티스토리툴바