#2 20 pages

Networking

Core networking concepts for backend engineers and platform engineers — from physical bits to application protocols.

Files

File Topics
osi-model.md 7 OSI layers, full HTTPS request flow (curl google.com), encapsulation/decapsulation, debugging by layer
tcp-udp.md TCP 3-way handshake, 4-way teardown, state machine, flow control, congestion control (CUBIC/BBR), TIME_WAIT, UDP, when to use each
tls-encryption.md Symmetric vs asymmetric, SSL history, TLS 1.2 (2 RTT), TLS 1.3 (1 RTT), certificate chain, certificate validation, debugging with openssl
acme-certificate-automation.md PEM file format, ACME protocol (RFC 8555) lifecycle, HTTP-01 vs DNS-01, wildcard certs, acme.sh/certbot/lego/cert-manager, ECC vs RSA, Google Trust Services/EAB
http-versions.md HTTP/1.0 → HTTP/3, HOL blocking, binary framing, status codes, methods, important headers, caching (ETag), CORS, QUIC wire-level mechanics, WebSocket upgrade handshake/frame format
grpc-graphql.md gRPC architecture, Protobuf encoding, 4 streaming modes, connection flow, status codes; GraphQL SDL, query vs REST, N+1, DataLoader
grpc-deep-dive.md Protobuf wire format internals, all 4 streaming modes with full code, interceptors, deadline propagation, health checking, client-side load balancing, gRPC-Web, error code mapping
linux-networking.md Linux packet RX/TX path, netfilter hooks, conntrack, network namespaces, veth pairs, SO_REUSEPORT, debugging commands
bgp-routing.md Autonomous systems, path-vector routing and path selection (LOCAL_PREF/AS-PATH/MED), why anycast works, route leaks/hijacks, RPKI
load-balancers.md L4 vs L7, algorithms, health checks, sticky sessions, TLS termination, AWS ALB/NLB, LCU/NLCU, GCP GLB, nginx, HAProxy, common issues
cdn.md CDN internals, edge PoPs, cache hierarchy, Cache-Control headers, CloudFront, Cloudflare, GCP CDN, WAF, debugging
nslookup-vs-curl.md DNS resolution vs HTTP request path, when nslookup succeeds but curl fails, layered debugging
zero-trust.md Zero Trust vs perimeter security, BeyondCorp model, GCP Identity-Aware Proxy (IAP), mTLS + Istio AuthorizationPolicy, PSC + IAP + mTLS composition, debugging
dns-internals.md Full recursive resolution walk, all record types, DNSSEC chain of trust, split-horizon, CoreDNS + ndots in Kubernetes
overlay-networks.md VXLAN (VNI/VTEP/BUM), GENEVE extensible headers, WireGuard Noise protocol + cryptokey routing, CNI overlay comparison, MTU/PMTUD
ipvs-and-cni.md IPVS O(1) vs iptables O(n), kube-proxy modes, CNI spec ADD/DEL/CHECK, Calico Felix+BIRD, Cilium eBPF identity model, NetworkPolicy walkthrough
service-mesh.md Istio istiod + xDS API, Envoy sidecar injection, SPIFFE mTLS, VirtualService/DestinationRule canary, retries/circuit breaking/fault injection, Linkerd comparison
quic-http3.md QUIC vs TCP HoL blocking, connection IDs, 1-RTT/0-RTT, QUIC streams, QPACK, nginx QUIC config, qvis debugging
websocket-internals.md Upgrade handshake, frame format, ping/pong keepalives, backpressure, LB sticky sessions, horizontal scaling with Redis Pub/Sub
network-performance-tuning.md TCP buffer sizing (rmem/wmem), BBR vs CUBIC, ethtool ring tuning, RSS/RPS/RFS, IRQ affinity, jumbo frames, iperf3 benchmarking

Read Order

osi-model.md                    → understand the full picture
tcp-udp.md                      → transport layer (TCP state machine, TIME_WAIT)
tls-encryption.md               → TLS 1.2 vs 1.3, certificate validation, mTLS
acme-certificate-automation.md  → ACME protocol, DNS-01/HTTP-01, acme.sh/certbot/lego, EAB
http-versions.md                → HTTP/2 multiplexing, status codes, headers, QUIC, WebSocket
grpc-graphql.md                 → modern API protocols built on top
grpc-deep-dive.md               → gRPC wire-level internals and production concerns
linux-networking.md             → kernel packet path, netfilter, conntrack, namespaces
bgp-routing.md                  → how networks actually route between each other
load-balancers.md               → L4/L7, algorithms, AWS ALB/NLB, GCP, nginx, HAProxy
cdn.md                          → edge PoPs, caching, CloudFront/Cloudflare/GCP CDN
nslookup-vs-curl.md             → layered debugging when DNS works but HTTP fails
zero-trust.md                   → ZTNA, BeyondCorp, IAP, mTLS + PSC composition
dns-internals.md                → full resolution chain, DNSSEC, CoreDNS + ndots
overlay-networks.md             → VXLAN, GENEVE, WireGuard, CNI overlays, MTU
ipvs-and-cni.md                 → IPVS vs iptables at scale, CNI spec, Calico, Cilium
service-mesh.md                 → Istio, Envoy xDS, SPIFFE mTLS, traffic management, Linkerd
quic-http3.md                   → QUIC protocol internals, HTTP/3, 0-RTT, deployment
websocket-internals.md          → WebSocket frame format, keepalives, LB affinity, Redis fan-out

Pages in this section

1
OSI Model & Request Flow: `https://google.com`
The OSI model splits "send some data to another machine" into 7 layers, each with one narrow job and a clean handoff to the layer above and below it. The fastes
2
TCP and UDP
Both protocols move bytes over IP, but they sit at opposite ends of a tradeoff: TCP spends packets and RTTs buying reliability and ordering, UDP spends nothing
3
TLS, SSL, and Encryption
Before TLS specifics, understand the three types of encryption and why HTTPS needs all three.
4
ACME Certificate Automation
networking/tls-encryption.md covers how TLS itself works — handshakes, cipher suites, the
5
HTTP — Client-Server Communication, Versions, Methods, Headers
sequenceDiagram
6
gRPC and GraphQL
How two API styles beyond plain REST actually move bytes over the wire — gRPC's HTTP/2 + Protobuf transport and its four streaming modes, and GraphQL's single-e
7
gRPC Deep Dive
Implementation-level gRPC: wire format, streaming modes with full code, HTTP/2 mechanics, interceptors, deadlines, health checking, load balancing, gRPC-Web, an
8
Linux Networking Internals
How Linux handles network traffic — from NIC to application. Understanding this is essential for diagnosing performance issues, configuring firewalls, and runni
9
BGP — How the Internet Actually Routes Between Networks
osi-model.md and tcp-udp.md both assume something this file doesn't: that once a packet knows its destination IP, the network already knows how to get it there.
10
Load Balancers — Deep Dive
Beginner to advanced reference covering L4/L7, algorithms, health checks, TLS, AWS ALB/NLB, GCP, nginx, HAProxy, and common failure modes.
11
CDN — Content Delivery Network
Edge caching, routing, security, and deep dives into CloudFront, Cloudflare, and GCP CDN.
12
nslookup vs curl — DNS Resolution & Debugging
nslookup — DNS resolver only. Sends a query to a DNS server asking "what IP is this hostname?" Never connects to the target host.
13
Zero Trust Network Access (ZTNA)
From perimeter-based VPN security to per-request identity verification — the model that eliminates the concept of a trusted internal network.
14
DNS Internals — Resolution Chain, DNSSEC, and Kubernetes DNS
What actually happens between typing curl https://api.example.com and the first TCP packet
15
Overlay Networks — VXLAN, GENEVE, and WireGuard
How containers on different hosts reach each other when they live in separate L3 domains:
16
IPVS, kube-proxy Internals, and CNI Deep Dive
Why kube-proxy switched from iptables to IPVS at scale, how the CNI specification works
17
Service Mesh — Istio, Envoy, and Linkerd
What a service mesh does at the packet level, how Istio's control plane programs Envoy
18
QUIC and HTTP/3 — Protocol Internals
Why TCP's head-of-line blocking is the fundamental problem HTTP/3 solves, how QUIC's
19
WebSocket Internals
WebSocket is a full-duplex protocol that turns an HTTP connection into a persistent, bidirectional channel — understanding its framing, keepalive mechanics, and
20
Network Performance Tuning
Linux kernel TCP defaults were tuned for 1990s modem speeds. On modern 10 GbE / 25 GbE links they leave most bandwidth on the table. This guide covers the four