Foundations: Linux, scripting, Git & networking
Networking fundamentals
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.
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
-
1Network models and encapsulation
- OSI and TCP/IP
- Encapsulation
- Don't recite — walk a request
-
2Layer 2: Ethernet, MAC addresses and switching
- MAC addresses and frames
- Switches
- ARP
- MTU
-
3Layer 3: IP, routing, ICMP and NAT
- Routing decisions
- ICMP
- NAT
- DHCP
-
4Transport, proxies, load balancers and edge services
- Ports and sockets
- Firewalls: stateful vs stateless
- Forward vs reverse proxies
- Layer 4 vs layer 7 load balancing
- CDN, anycast, VPN
- Latency vs bandwidth
-
5AWS VPC networking in depth
- 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
-
6AWS load balancers in practice
- Choosing a load balancer
- Settings that cause real incidents
- 7Kubernetes networking and service meshes (bridge to other topics)
-
8A troubleshooting method
- Bottom-up, with evidence at each layer
- Reading failure signatures
- Tools
- Scenario walkthroughs
-
9Interview questions and model answers
- "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?"