| English | 意味 |
|---|---|
| application layer/ˌæplɪˈkeɪʃn ˈleɪə/ | アプリケーション層 |
| peer-to-peer/pɪə tə pɪə/ | ピア・トゥ・ピア |
| HTTP/ˌeɪtʃ tiː tiː ˈpiː/ | 超文本転送プロトコル |
| HTTPS/ˌeɪtʃ tiː tiː piː ˈes/ | 安全超文本転送プロトコル |
| TLS/ˌtiː el ˈes/ | 転送層セキュリティ |
| FTP/ˌef tiː ˈpiː/ | ファイル転送プロトコル |
| SMTP/ˌes em tiː ˈpiː/ | 簡易メール転送プロトコル |
| POP3/pɒp ˈθriː/ | ポストオフィスプロトコル33 |
| IMAP/ˈaɪmæp/ | インターネットメッセージアクセスプロトコル |
| BitTorrent/bɪt ˈtɒrənt/ | ビット Torrent |
Why your inbox looks the same on every device
- Open your email on a laptop, then on a phone. The same messages are there, and the ones you have read are marked read on both.
- That is not obvious. For twenty years the normal thing was for a mail program to download everything and delete it from the server, so whichever device fetched the mail first was the only one that had it.
- Both behaviours are still in use, and choosing between them is choosing between two protocols with the same job and opposite designs.
- This lesson is the application layer 应用层 protocols the syllabus names: web, file transfer, the three mail protocols, and peer-to-peer.
The web: HTTP and HTTPS
- HTTP 超文本传输协议 is how a browser fetches web pages and their resources from a server. It runs over TCP, normally on port 80.
- HTTPS 安全超文本传输协议 is HTTP carried inside TLS 传输层安全, so the traffic is encrypted, on port 443.
- What HTTPS adds: an eavesdropper on the path sees only ciphertext, the server proves its identity with a certificate, and any tampering is detected. Use it whenever the data is private, which today means always.
ネットワークルート実験
デバイスからネットワークハードウェアおよびプロトコルを経てデータを追跡せよ。
HTTPSとは:
難易度 1/5 · 100 コイン + 今日初回完了時に小ボーナス付与
HTTPSはTLS暗号化上でHTTPを実行(ポート443)し、転送中のデータを保護します。
標準的なHTTPに対して、HTTPSは何を追加しますか?適用されるものをすべて選択してください。
難易度 2/5 · 140 コイン + 今日初回完了時に小ボーナス付与
TLSは機密性、認証、完全性を提供します。圧縮はHTTP自体の別の機能です。
File transfer: FTP
- FTP 文件传输协议 transfers files between a client and a server: upload, download, list, rename and delete.
- It is designed for whole files, where HTTP is designed for documents and resources a browser renders.
- Plain FTP sends its credentials in the clear, which is why secured variants replaced it for anything sensitive.
Email: SMTP, POP3 and IMAP
- SMTP 简单邮件传输协议 sends mail: from the client to its outgoing server, and from server to server across the internet. It is the push half of email.
- POP3 邮局协议3 downloads mail to one device and usually deletes it from the server. The mail lives on that device.
- IMAP 互联网邮件访问协议 leaves mail on the server and synchronises the state, folders, read flags, deletions, across every device. The mail lives on the server.

Every one of these protocols ends up inside frames like this one
メールを送信するために使われるプロトコルはどれですか?
難易度 1/5 · 100 コイン + 今日初回完了時に小ボーナス付与
SMTPがメールを送信し、POP3とIMAPは受信・読みに使われます。
IMAPはメールをサーバーに残し、すべてのデバイスで同期しますが、POP3は通常、メールをダウンロードしてサーバーから削除します。
難易度 1/5 · 100 コイン + 今日初回完了時に小ボーナス付与
そのため、IMAPはスマホとラップトップで同じインボックスを表示しますが、POP3はメールを一つのデバイスに紐付けます。
Worked example: choose a mail protocol
- A user reads mail on a phone, a laptop and a desktop, and wants the same inbox on all three. Which receiving protocol, and why?
- IMAP: the messages stay on the server and the client synchronises with it, so a message read or filed on one device shows as read or filed on the others.
- A second user has one old laptop, a tiny mailbox quota and often no internet. POP3: the mail is downloaded to the laptop and removed from the server, which frees the quota and lets it be read offline.
- The deciding facts are how many devices and where the mail must live. SMTP is not an answer to either: it sends.
ユーザーが3つのデバイスでメールを読み、読み済みマークをすべてのデバイスで一致させたい場合、どのプロトコルがメールを受信しますか?
難易度 1/5 · 100 コイン + 今日初回完了時に小ボーナス付与
IMAPはメールをサーバーに残し、デバイスの状態を同期します。POP3は一つのデバイスにダウンロードし、通常は削除します;SMTPは送信用です。
POP3はメールを一つのデバイスにダウンロードし、通常はサーバーから ____ します。
難易度 1/5 · 100 コイン + 今日初回完了時に小ボーナス付与
これによりメイルボックスの quota が解放され、オフラインで使用される単一デバイスに適していますが、メールはそのデバイス上にのみ存在することになります。
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は、以下の理由により特定のサーバーへの負荷を軽減します:
難易度 1/5 · 100 コイン + 今日初回完了時に小ボーナス付与
ピア・トゥ・ピア・プロトコルであるため、各ピーアールが部分情報を共有するため、単一のサーバーが全体の負荷を負いません。
Worked example: why peer-to-peer for a large release
- A free operating system is released as a 4 GB file and a million people download it on the first day. Explain why BitTorrent suits this better than a single web server.
- With HTTP, one server must send 4 GB a million times, so its bandwidth and cost scale with the number of downloaders, and it becomes the bottleneck and a single point of failure.
- With BitTorrent, the file is split into pieces and each peer uploads the pieces it has already received, so capacity grows with the number of downloaders instead of being consumed by them.
- The answer names the load, says where it goes, and says what happens as demand rises.
BitTorrentでは、ファイルをダウンロードする人が増えるほど、それをサービスするための容量が増えます。
難易度 1/5 · 100 コイン + 今日初回完了時に小ボーナス付与
すべてのピアは、すでに持っている断片をアップロードするため、需要に応じて容量が増加します。一方で、単一のサーバーの帯域幅は需要によって消費されます。
The protocols at a glance
| Protocol | Job |
|---|---|
| HTTP | fetch web pages, port 80 over TCP |
| HTTPS | HTTP inside TLS, encrypted, port 443 |
| FTP | transfer whole files to and from a server |
| SMTP | send mail, client to server and server to server |
| POP3 | download mail to one device, usually deleting it from the server |
| IMAP | leave mail on the server, synchronised across devices |
| BitTorrent | peer-to-peer sharing of file pieces |
各プロトコルとその用途を対応させなさい。
難易度 2/5 · 140 コイン + 今日初回完了時に小ボーナス付与
HTTP = Web、FTP = ファイル、SMTP = メール送信(POP3/IMAPで受信)。
Marks that slip away
- SMTP sends; POP3 and IMAP receive. A question asking how mail is sent has exactly one answer.
- The IMAP versus POP3 difference is where the mail lives: server and synchronised, or downloaded and deleted.
- HTTPS is not a different protocol from HTTP; it is HTTP over TLS, and TLS is what adds the encryption.
- BitTorrent spreads load because every peer uploads. "It is faster" without that reason earns nothing.
You've got it
- HTTP fetches web pages over TCP; HTTPS is the same protocol inside TLS, encrypted and authenticated; FTP moves whole files
- SMTP sends mail; POP3 downloads and usually deletes it; IMAP leaves it on the server and synchronises every device
- choose a mail protocol from how many devices there are and where the mail must live
- BitTorrent is peer-to-peer: pieces from many peers in parallel, every downloader also uploading, so capacity grows with demand