Opscraft
Foundations: Linux, scripting, Git & networking

Networking fundamentals

Must-know9 lessons · 42 min · 3 tests ·

Networking is where many DevOps engineers are weakest, and interviewers know it. You need to follow a request from a browser to a pod and back, name the device and protocol at each hop, and know which tool proves where it breaks. This topic is the foundation for the rest of the networking section (IP addressing, TCP/UDP, the TCP handshake, TLS, DNS, HTTP): layers and encapsulation, switching and routing, NAT, load balancers and proxies, and AWS VPC networking in depth, finishing with a troubleshooting method.

Stage 1 · Foundations

Know these first

After this topic you can

  • Explain the network layers and what happens to a packet
  • Read routes, ports and firewall rules
  • Reason about NAT, load balancers and proxies

Lessons

  1. 1Network models and encapsulation 4 min read
    • OSI and TCP/IP
    • Encapsulation
    • Don't recite — walk a request
  2. 2Layer 2: Ethernet, MAC addresses and switching 3 min read
    • MAC addresses and frames
    • Switches
    • ARP
    • MTU
  3. 3Layer 3: IP, routing, ICMP and NAT 5 min read
    • Routing decisions
    • ICMP
    • NAT
    • DHCP
  4. 4Transport, proxies, load balancers and edge services 6 min read
    • Ports and sockets
    • Firewalls: stateful vs stateless
    • Forward vs reverse proxies
    • Layer 4 vs layer 7 load balancing
    • CDN, anycast, VPN
    • Latency vs bandwidth
  5. 5AWS VPC networking in depth 8 min read
    • Building blocks
    • Security groups vs NACLs
    • Private connectivity to AWS services: VPC endpoints
    • Connecting VPCs and on-premises
    • Visibility and diagnosis tools
    • A three-tier VPC design
  6. 6AWS load balancers in practice 4 min read
    • Choosing a load balancer
    • Settings that cause real incidents
  7. 7Kubernetes networking and service meshes (bridge to other topics) 3 min read
  8. 8A troubleshooting method 5 min read
    • Bottom-up, with evidence at each layer
    • Reading failure signatures
    • Tools
    • Scenario walkthroughs
  9. 9Interview questions and model answers 4 min read
    • "What happens when you type a URL into a browser?"
    • "Security group vs NACL?"
    • "Connection refused vs connection timed out?"
    • "Private subnet instances can't reach the internet. Walk me through it."
    • "ALB vs NLB?"
    • "Explain SNAT vs DNAT with examples."
    • "How would you design network isolation for a three-tier app on AWS?"
    • "Why might a NetworkPolicy have no effect?"