Application-layer protocols
도입됨
11:12
프로토콜이 필요한 이유
두 컴퓨터가 통신하려고 하지만, 한쪽은 데이터를 한 방식으로 보내고 다른 쪽은 완전히 다른 방식을 기대합니다. 그 결과는 알아들을 수 없는 내용입니다. 마치 두 사람이 서로 다른 언어로 말하는 것처럼…
영어 내레이션 · 영어와 중국어 자막 전환 가능
이 수업의 내용
| English | 의미 |
|---|---|
| email/ˈiːmeɪl/ | A service for sending and receiving messages over the internet. |
| mail program | Software used to send, receive and manage email messages. |
| download/ˈdaʊnləʊd/ | To receive data from another computer and save it locally. |
| delete/dɪˈliːt/ | To remove a record from a table. |
| server/ˈsɜːvə/ | A computer or program that provides services or resources in response to requests from clients. |
| protocols/ˈprəʊtəkɒlz/ | An agreed set of rules governing communication between devices or systems. |
| application layer/ˌæplɪˈkeɪʃn ˈleɪə/ | 응용 계층 |
| web/web/ | A collection of linked pages and other resources accessed through the internet. |
| file transfer | The process of sending files from one device to another over a network. |
| peer-to-peer/pɪə tə pɪə/ | 피어-투-피어 |
| HTTP/ˌeɪtʃ tiː tiː ˈpiː/ | 초문서 전송 프로토콜 |
| HTTPS/ˌeɪtʃ tiː tiː piː ˈes/ | 안전 초문서 전송 프로토콜 |
| browser | A program used to access and display pages on the web. |
| web pages | Documents on the web that a browser can display. |
| TCP/ˌtiː siː ˈpiː/ | A transport protocol that establishes a connection and delivers data reliably and in order. |
| port/pɔːt/ | In this hardware topic, a physical socket or connection used to attach a peripheral. |
| TLS/ˌtiː el ˈes/ | 전송 계층 보안 |
| encrypted/enˈkrɪptɪd/ | Changed into a form that cannot be understood without the correct key. |
| ciphertext/ˈsaɪfətekst/ | Information transformed by encryption into a form intended to be unreadable without the appropriate key. |
| certificate/səˈtɪfɪkət/ | A digital document that helps prove the identity of a website. |
| FTP/ˌef tiː ˈpiː/ | 파일 전송 프로토콜 |
| client/ˈklaɪənt/ | A device or program that requests a service or resource from a server. |
| upload | To send data from a device to another computer over a network. |
| credentials | Information used to confirm a user's identity when accessing a system. |
| SMTP/ˌes em tiː ˈpiː/ | 간단한 메일 전송 프로토콜 |
| POP3/pɒp ˈθriː/ | Download mail to one device, usually deleting it from the server. |
| IMAP/ˈaɪmæp/ | 인터넷 메일 액세스 프로토콜 |
| internet/ˈɪntənet/ | A worldwide system of interconnected networks using Internet Protocol. |
| push/pʊʃ/ | To send data to another computer without waiting for a request. |
| synchronises | Keeps data and its state consistent across a server and devices. |
| folders | Containers used to organise files and other folders in a file system. |
| read flags | Marks that record whether messages have been read. |
| frames/freɪmz/ | Individual images shown in sequence to make a video. |
| BitTorrent/bɪt ˈtɒrənt/ | A peer-to-peer protocol: there is no single server holding the file for everyone. |
| tracker/ˈtrækə/ | A server that helps computers sharing a file find each other. |
| peers | Computers that share file pieces directly with one another. |
| in parallel/ɪn ˈpærəlel/ | At the same time, rather than one after another. |
| bandwidth/ˈbændwɪdθ/ | The frequency range carried by a signal or channel; in networking, often used for its data transfer capacity. |
| operating system/ˈɒpəreɪtɪŋ ˈsɪstəm/ | System software that manages hardware resources and provides services for applications. |
| bottleneck/ˈbɒtəlnek/ | A part of a system that limits its overall speed or capacity. |
| single point of failure/ˈsɪŋɡl pɔɪnt ɒv ˈfeɪlɪə/ | One part whose failure can cause the whole system to stop working. |
| authenticated/ɔːˈθentɪkeɪtɪd/ | Describes an identity that has been checked and confirmed. |
모든 기기에서 inbox가 동일하게 보이는 이유
- 노트북에서 이메일을 열고, 그다음 휴대폰에서도 열어보세요. 동일한 메시지가 표시되며, 이미 읽은 메시지는 두 기기 모두에서 읽음으로 표시됩니다.
- 이는 명확하지 않습니다. 20년 동안 통상적인 방식은 메일 프로그램이 모든 메일을 다운로드하여 서버에서 삭제하는 것이었으며, 따라서 메일을 가장 먼저 가져온 기기가 유일한 보유자가 되었습니다.
- 두 가지 동작 방식 모두 여전히 사용되고 있으며, 이 둘 사이에서 선택한다는 것은 동일한 목적을 가지고 있지만 반대되는 설계의 두 프로토콜 중 하나를 선택하는 것입니다.
- 이 수업에서는 커리큘럼에서 언급하는 응용 계층 프로토콜인 웹, 파일 전송, 세 가지 메일 프로토콜, 그리고 피어 투 피어를 다룹니다.
웹: HTTP 및 HTTPS
- HTTP은 브라우저가 서버로부터 웹 페이지와 해당 리소스를 가져오는 방식입니다. TCP 위에서 작동하며, 일반적으로 포트 80을 사용합니다.
- HTTPS는 TLS 내부로 운반되는 HTTP이므로 트래픽이 암호화되며, 포트 443을 사용합니다.
- HTTPS가 추가하는 기능: 경로상의 도청자는 ciphertext(암호문)만 볼 수 있으며, 서버는 인증서를 통해 자신의 신원을 증명하고, 어떠한 변조도 감지할 수 있습니다. 데이터가 비공개인 경우에는 항상 사용해야 하며, 오늘날에는 항상 사용해야 합니다.
Network route lab
Follow data from a device through network hardware and protocols.
HTTPS is:
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
HTTPS runs HTTP over TLS encryption (port 443), protecting the data in transit.
What does HTTPS add over plain HTTP? Select 모든 that apply.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
TLS supplies confidentiality, authentication and integrity. Compression is a separate feature of HTTP itself.
파일 전송: FTP
- FTP는 클라이언트와 서버 간에 파일을 전송합니다: 업로드, 다운로드, 목록 확인, 이름 변경 및 삭제.
- 이 방식은 전체 파일을 대상으로 설계되었으나, HTTP는 브라우저가 렌더링하는 문서와 리소스를 위해 설계되었습니다.
- 평문 FTP는 인증 정보를 평문으로 전송하므로, 민감한 데이터에는 보안을 강화한 대체 방식이 사용되었습니다.
이메일: SMTP, POP3 및 IMAP
- SMTP로 메일을 전송합니다. 클라이언트에서 outgoing 서버로, 그리고 인터넷을 통해 서버 간에 전달됩니다. 이는 이메일의 푸시(push) 방식입니다.
- POP33 메일을 한 기기에게 다운로드하며, 일반적으로 서버에서 이를 삭제합니다. 메일은 해당 기기에만 존재합니다.
- IMAP로 메일을 서버에 유지하고, 상태, 폴더, 읽음 표시, 삭제 여부를 모든 장치에서 동기화합니다. 메일은 서버에 저장됩니다.

이러한 프로토콜 중 하나도 이 같은 프레임 내부에 포함됩니다

Which protocol is used to SEND email?
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
SMTP sends mail; POP3 and IMAP are used to receive/read it.
IMAP leaves mail on the server and syncs it across all your devices, while POP3 typically downloads the mail and deletes it from the server.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
That is why IMAP shows the same inbox on your phone and laptop, whereas POP3 ties mail to one device.
worked example: 이메일 프로토콜 선택하기
- 사용자가 휴대폰, 노트북, 데스크톱에서 메일을 확인하며 세 장치 모두 동일한 수신함을 유지하고자 합니다. 어떤 수신 프로토콜을 선택해야 하며, 그 이유는 무엇입니까?
- IMAP: 메일 서버에 메일이 저장되고 클라이언트가 서버와 동기화되므로, 어느 기기에서 메일을 읽거나 분류해도 다른 기기에서도 해당 상태가 반영됩니다.
- 두 번째 사용자는 오래된 노트북 하나만 가지고 있으며,메일 양도가 매우 작고 인터넷 연결이 자주 끊깁니다. POP3: 메지가 노트북으로 다운로드되어 서버에서 제거되므로,quota를 확보하여 오프라인에서 읽을 수 있습니다.
- 결정적 사실은 장치의 수와 메일이 어디에 보관되어야 하는지입니다. SMTP는 두 경우 모두에 대한 답이 아닙니다; 그것은 전송할 뿐입니다.

A user reads mail on three devices and wants read messages marked read everywhere. Which protocol receives the mail?
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
IMAP leaves the mail on the server and synchronises state across devices. POP3 downloads to one device and usually deletes; SMTP sends.
POP3 downloads mail to one device and usually ____ it from the server.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
That frees the mailbox quota and suits a single device used offline, but the mail then exists only on that device.
이 카드는 내용이 수정되어 번역이 업데이트될 때까지 영어로 표시됩니다.
Peer-to-peer: BitTorrent
- BitTorrent 比特洪流 is a peer-to-peer 对等网络 protocol: there is no single server holding the file for everyone.
- The file is split into pieces. A tracker 追踪服务器 helps peers 对等节点 find each other, and each peer then downloads pieces from many other peers in parallel 并行 while uploading the pieces it already has.
- The effect: the more popular a file, the more peers there are to serve it, so the load spreads instead of concentrating. A single server would need bandwidth 带宽 proportional to the number of downloaders.

Every downloader is also an uploader
BitTorrent reduces load on any single server because it:
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
As a peer-to-peer protocol, each peer shares pieces, so no single server carries the whole load.
worked example: 대규모 배포에 피어 투 피어를 사용하는 이유
- 무료 운영체제가 4GB 파일로 출시되고 첫 날 백만 명이 다운로드합니다. 왜 단일 웹 서버보다 BitTorrent이 더 적합한지 설명하십시오.
- HTTP에서는 단일 서버가 4GB를 백만 번 전송해야 하므로, 대역폭과 비용이 다운로드 수에 따라 Scaling되며, 이것이 Bottleneck이자 단일 고장 지점이 됩니다.
- BitTorrent에서는 파일이 조각으로 나뉘고 각 피어가 이미 받은 조각을 업로드하므로, 용량이 Downloads에 의해 소모되는 대신 증가합니다.
- 정답은 부하를 명시하고, 그것이 어디로 이동하며, 수요가 증가함에 따라 어떤 일이 일어나는지를 설명합니다.

With BitTorrent, the more people download a file, the more capacity there is to serve it.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
Every peer uploads the pieces it already has, so capacity grows with demand. A single server's bandwidth is consumed by demand instead.
프로토콜 한눈에 보기
| 프로토콜 | 역할 |
|---|---|
| HTTP | 웹 페이지 가져오기, TCP 기반 포트 80 |
| HTTPS | TLS 내의 HTTP, 암호화됨, 포트 443 |
| FTP | 서버와의 전체 파일 전송 |
| SMTP | 메일 전송, 클라이언트에서 서버로, 서버 간 |
| POP3 | 메일을 한 장치로 다운로드, 일반적으로 서버에서 삭제 |
| IMAP | 메일을 서버에 남겨두고 여러 기기에서 동기화됨 |
| BitTorrent | 피어 투 피어 파일 조각 공유 |

Match each protocol to its use.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
HTTP = web, FTP = files, SMTP = sending email (POP3/IMAP receive it).
놓칠 수 있는 점
- SMTP는 전송; POP3과 IMAP는 수신. 메일 전송 방법을 묻는 질문에는 오직 하나의 정답이 있습니다.
- IMAP와 POP3의 차이는 메일이 어디에 있는지입니다: 서버에 있고 동기화되는지, 아니면 다운로드되어 삭제되는지.
- HTTPS는 HTTP와 다른 프로토콜이 아니라, TLS 위 HTTP이며 TLS가 암호화를 추가하는 것입니다.
- BitTorrent이 부하를 분산시키는 이유는 모든 피어가 업로드하기 때문입니다. "더 빠르다"라는 이유 없이 점수를 얻을 수 없습니다.
이해했습니다
- HTTP는 TCP를 통해 웹 페이지를 가져옵니다; HTTPS는 TLS 안의 Same Protocol로, 암호화되고 인증됩니다; FTP는 전체 파일을 이동시킵니다
- SMTP로 메일을 전송; POP3로 다운로드하고 일반적으로 삭제; IMAP로 서버에 두고 모든 장치와 동기화
- 장치의 수와 메일이 어디에 있어야 하는지에 따라 이메일 프로토콜 선택
- BitTorrent은 피어 투 피어입니다: 병렬로 여러 피어로부터 조각을 받아, 모든 다운로더가 업로드하므로 용량이 수요에 따라 증가
어떤 문제가 있었나요? 사이트 팀만 이 내용을 볼 수 있습니다.