Skip to main content

Networking Knowledge Base

TCP/IP 5-Layer Protocol Stack ExplorerClick any layer to inspect
L5
Application LayerPDU: Data / Message
HTTP/1.1HTTP/2HTTP/3HTTPSDNSgRPCWebSocketSSHSMTPFTP
L4
Transport LayerPDU: Segment / Datagram
TCPUDPQUICTLS (on TCP)DTLS
L3
Network LayerPDU: Packet
IPv4IPv6ICMPBGPOSPFIGMP
L2
Data Link LayerPDU: Frame
Ethernet (802.3)Wi-Fi (802.11)ARPVLANs (802.1Q)PPP
L1
Physical LayerPDU: Bits / Signal
Ethernet copper (Cat5e/6)Fiber (SMF/MMF)Wi-Fi (2.4/5GHz)USBRS-232
↓ 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

#TopicDescription
1OSI & TCP/IP ModelsLayered models, encapsulation, ARP, ICMP, request journey, middlebox placement
2MAC Addressing & Layer 2 ForwardingEUI-48 MAC anatomy, CAM switch tables, ARP state machine, GARP failover, VXLAN
3IP Addressing & RoutingIPv4/IPv6, CIDR subnetting math, BGP, OSPF, DHCP DORA, NAT translation tables
4TCP, UDP & Transport LayerHandshake, flow/congestion control, TCP state machine & leak diagnosis, PMTUD, Nagle
5QUIC & Modern Transport0-RTT resumption, stream multiplexing without HOL blocking, 3x anti-amplification, Stateless Reset, UDP GSO
6HTTP & HTTPSHTTP/1.1–3 evolution, TLS handshake, headers, caching, CORS
7DNS ResolutionRoot to authoritative resolution, record types, negative caching, K8s ndots:5 trap, Happy Eyeballs
8CDN & Load BalancingCDN architecture, LB algorithms, health checks, Anycast
9Proxies, Firewalls, NAT & VPNsForward/reverse/SOCKS5 proxies, Netfilter conntrack, WireGuard vs IPsec, MSS clamping
10Tor, Onion Routing & Privacy Networks3-hop circuit telescoping, onion peeling cryptography, V3 rendezvous services, traffic analysis
11Network SecurityPKI trust chains, OCSP Stapling, TLS 1.3 anti-replay, RPKI BGP validation, SYN cookies, IPsec NAT-T
12API Authentication & AuthorizationConstant-time API keys, OAuth 2.0 PKCE, DPoP (RFC 9449), SPIFFE/SPIRE zero-trust mTLS
13Socket Programming & I/O Models5 Linux I/O models, epoll ET vs LT, SO_REUSEPORT, zero-copy sendfile, Virtual Thread carrier pinning
14REST & gRPC API DesignREST, gRPC/protobuf, GraphQL, versioning, OpenAPI
15WebSockets & Real-TimeWS protocol, SSE, long polling, Spring WebSocket
16Network Performance & OptimizationSpeed of light latency hierarchy, NIC ring buffers, SoftIRQ drops, FQ-CoDel bufferbloat, BBR vs CUBIC, kTLS
17Service Mesh & Microservices NetworkingIstio, Envoy, circuit breaker, service discovery, K8s
18Network Troubleshooting Toolstcpdump, Wireshark, curl, openssl, dig, nmap, ss
19Application Protocols ReferenceSMTP, FTP, SSH, SNMP, NTP, MQTT, WebRTC
20Interview Questions β€” Master ListTop questions across all topics, conntrack table exhaustion, eBPF/XDP, MTU black hole
Java / Spring Focus

Java NIO, Netty, Spring WebFlux, Spring WebSocket, gRPC-Java, WebClient, Spring Security OAuth2, and Resilience4j examples are included throughout.

πŸ“–
Track Page Progress0 / 635 Read
Knowledge Base Completion0%