Overview
This introduction to networking starts with one computer and one cable and builds up to a load balancer. Rather than memorizing terms, it explains each part by the problem it solved: MAC addresses to know who is next to you, IP addresses to cross networks, TCP to know whether data arrived, ports to reach the right app, TLS to stop eavesdropping, DNS because numbers are hard to remember, and load balancers because one server is not enough.
Along the way, it tells short stories about the people behind the technology, from Robert Metcalfe (Ethernet) and Radia Perlman (Spanning Tree) to Paul Mockapetris (DNS), Tim Berners-Lee (the web) and Jim Roskind (QUIC).
Key Points
- Switches deliver data by MAC address inside a network, while routers forward packets by IP address between networks. DHCP hands out the IP address, subnet mask, default gateway and DNS server.
- Routes are set by static routing in small setups, by OSPF (which uses Dijkstra’s algorithm) inside an organization, and by BGP between organizations.
- TCP sets up a connection with a three-way handshake, numbers its packets and resends lost ones. UDP skips all of this, which suits calls and games.
- TLS uses public-key cryptography only to deliver a session key, then switches to fast symmetric encryption. The browser checks that the server’s certificate was issued by a trusted certificate authority.
- Beyond HTTP, the video covers SSH, FTP, SMTP, WebSocket and QUIC, which runs over UDP and merges the TCP and TLS setup into a single exchange.
Chapters
- 0:00 Introduction
- 0:49 Chapter 1: Connecting physically
- 2:50 Chapter 2: IP addresses
- 5:31 Chapter 3: Carrying data beyond the network
- 8:11 Chapter 4: Testing whether it really arrives
- 8:53 Chapter 5: TCP and UDP
- 11:27 Chapter 6: Ports and firewalls
- 12:34 Chapter 7: Protecting communication
- 16:37 Chapter 8: Getting there by name
- 18:11 Chapter 9: How the web exchanges data
- 19:36 Chapter 10: Other protocols
- 21:49 Chapter 11: Adding more servers
- 22:16 Summary
概要
コンピューター1台とケーブル1本から始めて、ロードバランサーまで順に組み立てながらネットワークの仕組みを解説する入門動画です。用語を覚えるのではなく、それぞれの部品がどんな不便を解くために足されたのかに注目します。隣が誰か分からないからMACアドレス、ネットワークをまたげないからIPアドレス、届いたか分からないからTCP、どのアプリ宛てか分からないからポート、読まれてしまうからTLS、数字を覚えられないからDNS、1台では足りないからロードバランサー、という流れです。
途中では、Ethernetのロバート・メトカーフやスパニングツリーのラディア・パールマンから、DNSのポール・モカペトリス、Webのティム・バーナーズ=リー、QUICのジム・ロスキンドまで、技術を作った人の話も紹介します。
ポイント
- スイッチは同じネットワークの中でMACアドレスを見てデータを届け、ルーターは別のネットワークとの間でIPアドレスを見てパケットを転送します。DHCPはIPアドレス、サブネットマスク、デフォルトゲートウェイ、DNSサーバーをまとめて配ります。
- 経路は、小規模な構成ではスタティックルーティング、組織の中ではダイクストラ法を使うOSPF、組織の間ではBGPで決めます。
- TCPは3ウェイハンドシェイクで接続を確立し、パケットに番号を振り、失われたものを送り直します。UDPはこれらを一切行わないため、通話やゲームに向いています。
- TLSは公開鍵暗号をセッション鍵の受け渡しにだけ使い、その後は高速な共通鍵暗号に切り替えます。ブラウザーは、サーバーの証明書が信頼できる認証局から発行されたものかを確かめます。
- HTTPに加えて、SSH、FTP、SMTP、WebSocket、そしてUDPの上で動き、TCPとTLSのやり取りを1回にまとめるQUICも取り上げます。