Skip to content
Naoya Tech
Go back

How Networks Work: Ethernet, TCP/IP, TLS, and DNS

24:35 Infrastructure & Networking

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

Chapters

概要

コンピューター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も取り上げます。

チャプター

Watch on YouTube

Share this post on:

Previous Video
DHH on the Future of Programming, Omarchy, and Why Linux Wins in the AI Era
Next Video
Inheritance vs. Composition, Explained with an Image Library