← [ BACK_TO_NOTES ]

计算机网络 MOC

计算机网络系统学习入口,按分层与请求链路、DNS、TCP/UDP、TLS/HTTPS、HTTP/1.1-2-3、缓存与实时通信、代理与系统化排障组织知识。

#network #moc #growing

[!info] related notes

计算机网络 MOC

知识总览

filters:
  and:
    - 'file.ext == "md"'
    - 'file.inFolder("z")'
    - 'this.file.links.contains(file)'
    - 'file.path != this.file.path'
formulas:
  knowledge: 'file.asLink(title)'
properties:
  formula.knowledge:
    displayName: 知识
  note.description:
    displayName: Description
  note.mastery:
    displayName: Mastery
views:
  - type: table
    name: 知识总览
    order:
      - formula.knowledge
      - note.description
      - note.mastery
    columnSize:
      formula.knowledge: 280
      note.description: 760
      note.mastery: 56

[!abstract] 学习目标 不把协议背成孤立名词,而是沿着“一次请求如何找到服务器、建立连接、保护传输、交换 HTTP 消息并返回结果”建立完整链路。

一张图看请求链路

URL
→ DNS: domain → IP
→ Route / Proxy / NAT
→ TCP or QUIC connection
→ TLS authentication + key agreement
→ HTTP request / response
→ Gateway / Application / Database
→ response bytes back to client

推荐学习顺序

1. 分层与完整请求

先理解分层的意义:每层只承诺自己的接口,故障也必须逐层定位。

2. DNS

进入 DNS 知识地图,重点掌握:

Stub Resolver → Recursive Resolver
→ Root → TLD → Authoritative Server
→ Cache / TTL → IP

能解释 DNS 缓存、递归/迭代、记录类型、DoH/DoT 与错误 IP 如何导致后续 TLS 失败。

3. TCP 与 UDP

核心不是背报文,而是理解:序号、ACK、重传、流量控制、拥塞控制和连接状态共同提供字节流可靠性。

4. TLS 与 HTTPS

Certificate chain → authenticate server
Key exchange       → establish shared secrets
Symmetric crypto   → protect application data

5. HTTP 语义

最重要的版本关系:

HTTP semantics remain similar
HTTP/1.1 → textual messages over TCP
HTTP/2   → binary frames + multiplexed streams over TCP
HTTP/3   → HTTP mapping over QUIC

6. 连接、缓存与实时通信

能区分 HTTP cache、连接复用、长连接、服务端推送和全双工通信。

7. Proxy、Gateway 与现实拓扑

Client → Forward Proxy → Internet
Client → Reverse Proxy / Gateway → Services

代理会改变连接终点、证书、IP、超时、缓存和日志视角,是生产排障的重要边界。

8. 分层排障

Name resolution
→ route / reachability
→ TCP or QUIC
→ TLS
→ HTTP
→ proxy / gateway
→ application
→ database / dependency

对应入口:服务请求延迟分层排查。

实际网络栈 / 代理排障案例:

面试最短主线

  1. DNS 如何找到 IP;
  2. TCP 如何可靠、为什么三次握手和四次挥手;
  3. TLS 如何认证身份并协商密钥;
  4. HTTP/1.1、HTTP/2、HTTP/3 的传输差异;
  5. Keep-Alive、多路复用和队头阻塞;
  6. SSE 与 WebSocket 如何选;
  7. 502、504、连接重置和超时如何分层定位。

掌握标准

  • 能画出浏览器到后端服务的完整链路。
  • 能区分 DNS 失败、TCP 失败、TLS 失败和 HTTP 错误。
  • 能解释 HTTP/2 解决了什么、为什么 HTTP/3 仍要换 QUIC。
  • 能说明代理层 buffering / timeout 为什么影响流式输出。
  • 能用 dig、curl -v、openssl s_client、ss 等工具验证假设。

相邻地图

创建于 2025/12/8 更新于 2026/10/16
Digital Biome
Access

键盘导航

j / k / ↑ / ↓
选择对象
Enter / o
打开选择
/ 或 Ctrl+K
全站搜索
i / f / 1–4
筛选当前列表
g → h / l / p / t / a
首页 / 笔记 / 项目 / 工具 / About
r → 1–9
打开所选对象的关联
u
返回上一页
Esc
关闭浮层 / 取消命令;输入框内清空文本