Protocols and the TCP/IP model
도입됨
11:12
프로토콜이 필요한 이유
두 컴퓨터가 통신하려고 하지만, 한쪽은 데이터를 한 방식으로 보내고 다른 쪽은 완전히 다른 방식을 기대합니다. 그 결과는 알아들을 수 없는 내용입니다. 마치 두 사람이 서로 다른 언어로 말하는 것처럼…
영어 내레이션 · 영어와 중국어 자막 전환 가능
이 수업의 내용
| English | 의미 |
|---|---|
| byte/baɪt/ | A group of eight bits, commonly used as a unit of data storage. |
| protocol/ˈprəʊtəkɒl/ | 프로토콜 |
| stack/stæk/ | A set of network protocol layers arranged so each layer performs a particular job. |
| layered/ˈleɪəd/ | Describes a system divided into levels, each with a particular job. |
| TCP/IP | A set of network protocols organised into four layers for communication across networks. |
| TCP/ˌtiː siː ˈpiː/ | 전송 제어 프로토콜 |
| UDP/ˌjuː diː ˈpiː/ | 사용자 데이터그램 프로토콜 |
| addresses | Numbers that identify specific locations in a computer's memory. |
| payload/ˈpeɪləʊd/ | The data being carried in a message, excluding information added to deliver it. |
| acknowledge/əkˈnɒlɪdʒ/ | To send a message confirming that data has been received. |
| timeouts | Periods after which a sender stops waiting for a response and takes action. |
| retransmissions | The sending of data again, usually because no acknowledgement arrived in time. |
| Modularity/ˌmɒdjʊˈlærɪti/ | One layer can be replaced without touching the others, so swapping Ethernet for Wi-Fi changes nothing above the link layer. |
| Ethernet/ˈiːθənet/ | A technology used to connect devices and transfer data over wired networks. |
| Wi-Fi | A set of rules for sending data across a wireless local network. |
| link layer/lɪŋk ˈleɪə/ | 링크 계층 |
| Standardisation/ˌstændədaɪˈzeɪʃn/ | Establishing or using consistent specifications, procedures or measures. |
| interface/ˈɪntəfeɪs/ | A way for users or programs to communicate with the computer's hardware. |
| Abstraction/əbˈstrækʃn/ | Representing essential features while leaving out unnecessary detail. |
| web app/web æp/ | A program that users access through a web browser. |
| application layer/ˌæplɪˈkeɪʃn ˈleɪə/ | 응용 계층 |
| HTTP/ˌeɪtʃ tiː tiː ˈpiː/ | Hypertext Transfer Protocol: an application-layer request/response protocol used to transfer web resources. |
| FTP/ˌef tiː ˈpiː/ | A protocol used to transfer files between computers over a network. |
| SMTP/ˌes em tiː ˈpiː/ | A protocol used to send email between computers over a network. |
| IMAP/ˈaɪmæp/ | A protocol used to access and manage email stored on a server. |
| transport layer/ˈtrænspɔːt ˈleɪə/ | 전송 계층 |
| end-to-end delivery | The transfer of data from a process on one host to a process on another. |
| processes/ˈprəʊsesɪz/ | Programs that are running and can send or receive data. |
| port numbers/pɔːt ˈnʌmbəz/ | 포트 번호 |
| internet layer/ˈɪntənet ˈleɪə/ | |
| packets/ˈpækɪts/ | 패킷 |
| hosts | Devices connected to a network that can send or receive data. |
| IP address/ˌaɪ ˈpiː əˈdres/ | IP 주소 |
| routers/ˈruːtəz/ | 라우터 |
| bits/bɪts/ | The smallest units of data, each having a value of zero or one. |
| physical link | The physical connection that carries signals between directly connected network devices. |
| framing/ˈfreɪmɪŋ/ | The process of putting data into frames for sending across a link. |
| MAC addresses/mæk əˈdresɪz/ | MAC 주소 |
| browser | A program used to access and display pages on the web. |
| server/ˈsɜːvə/ | A computer or program that provides services or resources in response to requests from clients. |
| HTTP request/ˌeɪtʃ tiː tiː ˈpiː rɪˈkwest/ | A message sent to a server to ask for a web resource. |
| segments/ˈseɡmənts/ | Units of data created by TCP for transport between processes. |
| hop/hɒp/ | One step in a packet's journey between directly connected network devices. |
| networks/ˈnetwɜːks/ | A set of connected devices or nodes that can exchange information. |
| frame/freɪm/ | A discrete unit in a sequence or transmission; in video, one complete image, and in networking, a link-layer data unit. |
| connection-oriented/kəˈnekʃn ˈɔːrɪəntɪd/ | 연결 지향적 |
| overhead/ˌəʊvəˈhed/ | Extra data or work needed to manage communication. |
| delay/dɪˈleɪ/ | The time taken for data to travel from sender to receiver. |
| HTTPS/ˌeɪtʃ tiː tiː piː ˈes/ | A secure set of rules for transferring web pages and other web content. |
| connectionless/kəˈnekʃənləs/ | 비연결 |
| acknowledgements/əkˈnɒlɪdʒmənts/ | Messages sent to confirm that data has been received. |
| live streaming | The sending of audio or video over a network as it happens. |
| DNS/ˌdiː en ˈes/ | A system that translates domain names into IP addresses. |
| reliability/rɪˌlaɪəˈbɪlɪti/ | How consistently a system supplies the required output. |
| video frame | One still image in a sequence that makes up a video. |
| layering/ˈleɪərɪŋ/ | 층화 |
| error handling | The actions taken when an error occurs during communication. |
인터넷을 시작한 두 단어 메시지
- 1969년 10월 29일 UCLA 학생이 스탠퍼드 대학의 기계에 LOGIN이라는 단어를 한 글자씩 입력했습니다. 전화기로 확인하던 동료와 함께 L과 O 이후 시스템이 충돌(crash)했습니다.
- 문제는 전선이 아니었습니다. 서로 다른 회사가 만든 두 기계가 바이트(byte)가 무엇을 의미하는지, 언제 말해야 하는지, 혹은 무언가가 분실되었을 때 어떻게 해야 하는지에 대한 합의된 규칙이 없었던 것입니다.
- 이후 모든 것은 그 규칙들을 기록하는 것이었습니다. 프로토콜(protocol) 은 그러한 합의이며, 인터넷은 그것들의 계층(stack)입니다.
- 이 수업은 프로토콜이 왜 존재하며, 왜 계층적(layered) 인지, 네 가지 TCP/IP 레이어, 그리고 TCP와 UDP의 차이를 설명합니다.
프로토콜이 정의하는 것
- 프로토콜은 장치가 통신하는 방식에 대한 규칙의 집합입니다. 양쪽 모두 같은 규칙을 따르지 않으면 하나의 끝에서 온 신호가 다른 쪽에게 무의미하게 됩니다.
- 데이터의 포맷(주소 위치와 페로드 시작점), 메시지 순서(누가 먼저 말하고 언제 확인하는지), 각 메시지의 의미, 타이밍(타임아웃 및 재전송), 그리고 에러 발생 시 처리 방법을 정의합니다.
- 프로토콜이 없으면, 공유된 언어가 없는 두 사람이 실패하듯 통신이 완전히 실패합니다.

양쪽 모두에 의해 사전에 합의된 규칙

A network protocol is:
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
A protocol defines the format, order, meaning, timing and error handling of messages — both ends must agree.
What does a protocol define? Select 모든 that apply.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
Format, order, meaning, timing and error handling. The cable's speed is a property of the hardware, not of the agreement.
프로토콜이 계층으로 나뉜 이유
- 네트워크는 하나의 규칙 집합으로는 너무 복잡하므로 레이어로 나뉩니다. 각 레이어는 특정 기능에 집중하며 상하 레이어와의 통신만 수행합니다. 구현 방식은 스택 구조입니다.
- 모듈화: 한 layer를 다른 layer에 영향을 주지 않고 교체할 수 있으므로, Ethernet을 Wi-Fi로 교체해도 링크 계층 위에는 아무런 변화가 없습니다.
- 표준화: 각 layer의 인터페이스가 합의되어 있어 서로 다른 제조사의 장비끼리 상호 운용 가능합니다. 추상화: 웹 앱을 작성하는 프로그래머는 하위 layers가 처리하는 모든 것을 무시합니다.

네 가지 계층, 각기 하나의 임무

A benefit of splitting networking into layers is:
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
Each layer has one job and a clear interface, so (e.g.) Ethernet can be swapped for Wi-Fi without touching higher layers.
TCP/IP의 네 가지 계층
| 계층 | 용도 | 예시 |
|---|---|---|
| 응용 계층 | 사용자 프로그램 위한 서비스 및 해당 프로그램들이 사용하는 프로토콜 | HTTP, FTP, SMTP, IMAP |
| 전송 계층 | 프로세스 간 최종 전달, 포트 번호로 식별됨 | TCP, UDP |
| 인터넷 계층 | IP 주소를 통해 호스트 간 패킷 전송, 라우터에 의해 중계됨 | IP |
| 링크 계층 | 물적 링크 위에 비트 전송, MAC 주소로 프레임 구성 | MAC, 이더넷, Wi-Fi |
- 인터넷 계층은 전달 보장을 제공하지 않습니다. 이는 전송 계층의 역할이며, 오직 TCP를 사용할 때에만 해당됩니다.
Tap the four layers of the TCP/IP model
Explore each layer. Data travels DOWN the stack as it's sent (each layer adds its header) and back UP as it's received — and any layer can be swapped without touching the others.
Match each TCP/IP layer to its job.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
Application = user protocols; Transport = TCP/UDP delivery; Internet = IP routing; Link = bits on the medium.
The internet layer (IP) guarantees that every packet arrives.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
IP forwards packets and does not guarantee delivery. Reliability is added above it, by TCP, and UDP deliberately does without it.
worked example: 인터넷을 가로지르는 메시지
- 브라우저가 서버에서 페이지를 요청할 때 각 레이어에서 일어나는 과정을 설명하십시오.
- 응용: 브라우저가 해당 페이지를 위한 HTTP 요청을 생성합니다.
- 전송: TCP를 사용하여 세그먼트로 나누고 포트 번호를 추가하며, 분실된 데이터에 대해 확인 및 재전송합니다.
- 인터넷: IP가 각 패킷에 소스 및 목적지 IP 주소를 추가하고, 라우터가 이를 네트워크를 통해 hop-by-hop으로 중계합니다.
- 링크: 각 hop마다 패킷을 MAC 주소 포함 프레임에 넣어 케이블이나 무선으로 비트를 전송합니다. 서버에서는 역순으로 레이어를 해제합니다.

Put the TCP/IP layers in order, from the user's program down to the wire.
난이도 3/5 · 200코인 + 오늘 첫 완료 시 작은 보너스 추가
Each layer wraps the one above; at the far end they are unwrapped in reverse order.
TCP와 UDP
- TCP는 연결 지향적입니다: 먼저 연결을 설정하고, 모든 데이터가 도착하며 순서대로 전달되며, 분실된 패킷을 재전송하고 흐름을 제어합니다. 신뢰할 수 있지만 오버헤드와 지연 시간이 발생합니다. HTTP, HTTPS, SMTP 및 FTP에서 사용됩니다.
- UDP는 비연결적입니다: 전송 후 잊어버리는 방식이며, 확인 응답, 순서 보장 또는 재전송이 없습니다. 오버헤드가 적지만 보장이 없습니다.
- UDP는 라이브 스트리밍, DNS, 온라인 게임 등에 사용됩니다. 여기서 속도가 신뢰성보다 우선됩니다. 재전송된 비디오 프레임이 필요한 시점을 지나면 안 되므로 기다리기보다 버리는 것이 더 나쁩니다.

보장되고 느리거나, 빠르지만 보장되지 않음

How does TCP differ from UDP?
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
TCP sets up a connection and ensures reliable, ordered delivery (with overhead); UDP is fire-and-forget.
TCP is connection-oriented and guarantees ordered, complete delivery (with overhead), while UDP is fire-and-forget — faster but with no delivery guarantee.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
That's why UDP suits live streaming, gaming and DNS, but TCP is used for files, email and secure web pages where every byte must arrive.
Live video streaming uses ____ because speed matters more than retransmitting lost packets.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
A resent frame would arrive after the moment it was needed, so dropping it beats waiting. TCP's guarantees are worth their cost for a payment page.
worked example: 운송 프로토콜 선택하기
- 한 회사가 스포츠 경기 생중계를 방송하고 웹 페이지를 통해 티켓을 판매합니다. 각 경우에 어떤 운송 프로토콜을 사용할지, 그리고 그 이유를 설명하십시오.
- 생중계: UDP. 분실된 프레임은 재전송될 시점에는 더 이상 가치가 없으므로 완전함보다 속도와 낮은 지연 시간이 중요하며, 시청자는 화면이 멈추는 것을 보기보다 프레임 하나를 잃는 것을 선호합니다.
- 티켓 페이지: TCP. 결제 및 예약의 모든 바이트가 정확하고 순서대로 도착해야 하므로, 확인 응답과 재전송의 오버헤드는 정당화됩니다.
- 프로토콜 이름을 명시하고, 이를 결정하는 데이터의 속성을 설명하십시오.
놓칠 수 있는 점
- 프로토콜은 프로그램이나 케이블이 아닌 규칙의 집합입니다. 그것이 정의하는 것 중 최소 두 가지를 언급하십시오.
- 계층 구조의 이점은 "더 빠르기"가 아니라 모듈화, 표준화 및 추상화입니다.
- IP는 Delivery를 보장하지 않습니다; TCP가 보장합니다. 인터넷 계층에 신뢰성을 인정하지 마십시오.
- UDP가 "나쁘다"는 뜻은 아닙니다. 속도가 신뢰성보다 중요한 곳에서 선택되며, 답에는 그러한 데이터의 종류를 명시해야 합니다.
이해했습니다
- 프로토콜은 형식, 순서, 의미, 타이밍 및 오류 처리에 대한 양쪽 모두에 의해 준수되는 합의된 규칙입니다.
- 프로토콜은 층의 스택을 형성하여 모듈화, 표준화 및 추상화를 제공합니다.
- TCP/IP 계층: 응용 (HTTP, SMTP), 운송 (TCP, UDP, 포트 번호), 인터넷 (IP 주소, 라우터), 링크 (이더넷, Wi-Fi, MAC 주소)
- TCP는 연결 지향적, 순서 보장, 신뢰 가능하며, UDP는 비연결적이며 보장이 없어 스트리밍, DNS 및 게임에 적합합니다.
어떤 문제가 있었나요? 사이트 팀만 이 내용을 볼 수 있습니다.