Networking Knowledge Base
TCP/IP 5-Layer Protocol Stack ExplorerClick any layer to inspect
β Encapsulation (send) Β |Β β Decapsulation (receive)
Click any layer to inspect its protocols and PDUs
Network Packet Encapsulation β Layer-by-Layer
L5 App
Application Payload
GET /api/v1/user HTTP/1.1 Host: api.example.com Authorization: Bearer eyJhb...
Stage 1: Application Data
The application produces raw data β an HTTP request body, JSON payload, or binary message. No headers from lower layers yet. This is the PDU at the Application layer: a "Message" or "Data".
A structured guide covering everything you need to know about computer networking β from low-level protocols to distributed API design β with Java/Spring examples and interview questions throughout.
Topics Covered
| # | Topic | Description |
|---|---|---|
| 1 | OSI & TCP/IP Models | Layered models, encapsulation, ARP, ICMP, troubleshooting |
| 2 | MAC Addressing & Layer 2 Forwarding | EUI-48 MAC anatomy, CAM switch tables, ARP state machine, GARP failover, VXLAN |
| 3 | IP Addressing & Routing | IPv4/IPv6, CIDR, subnetting, BGP, OSPF, DHCP |
| 4 | TCP, UDP & Transport Layer | Handshake, flow control, congestion, UDP use cases |
| 5 | QUIC & Modern Transport | QUIC internals, 0-RTT, HOL blocking, HTTP/3, BBR |
| 6 | HTTP & HTTPS | HTTP/1.1β3, TLS handshake, headers, caching, CORS |
| 7 | DNS | Resolution process, record types, TTL, DNSSEC, DoH |
| 8 | CDN & Load Balancing | CDN architecture, LB algorithms, health checks, Anycast |
| 9 | Proxies, Firewalls, NAT & VPNs | Forward/reverse/SOCKS5 proxies, Netfilter conntrack, WireGuard vs IPsec, MSS clamping |
| 10 | Tor, Onion Routing & Privacy Networks | 3-hop circuit telescoping, onion peeling cryptography, V3 rendezvous services, traffic analysis |
| 11 | Network Security | TLS, firewalls, DDoS, Zero Trust, mTLS, cert management |
| 12 | API Authentication & Authorization | OAuth 2.0, JWT, OIDC, client credentials, mTLS |
| 13 | Socket Programming & I/O Models | Sockets, blocking/NIO, epoll, Netty, virtual threads |
| 14 | REST & gRPC API Design | REST, gRPC/protobuf, GraphQL, versioning, OpenAPI |
| 15 | WebSockets & Real-Time | WS protocol, SSE, long polling, Spring WebSocket |
| 16 | Network Performance & Optimization | Latency, throughput, TCP tuning, connection pooling |
| 17 | Service Mesh & Microservices Networking | Istio, Envoy, circuit breaker, service discovery, K8s |
| 18 | Network Troubleshooting Tools | tcpdump, Wireshark, curl, openssl, dig, nmap, ss |
| 19 | Application Protocols Reference | SMTP, FTP, SSH, SNMP, NTP, MQTT, WebRTC |
| 20 | Interview Questions β Master List | Top questions across all topics, interview-ready answers |
Java / Spring Focus
Java NIO, Netty, Spring WebFlux, Spring WebSocket, gRPC-Java, WebClient, Spring Security OAuth2, and Resilience4j examples are included throughout.
