Networking & the Internet
A free, hands-on computer networking course that starts from zero: from what a packet is to Ethernet, IP, TCP, DNS, HTTP/3 and TLS, with real Linux labs and real output.
published · last updated
- lessons
- 19
- study time
- 44 h
- level
- beginner
- price
- free
What you'll be able to do
- Explain, step by step and in plain words, what happens when you open a web page
- Explain what each network layer does and find every layer inside a captured packet
- Explain MAC addresses, switches and ARP, and build a local network from Linux namespaces
- Read any IPv4 address and prefix, and subnet in your head; handle IPv6 the same way
- Explain routing, NAT and DHCP, and build a router with NAT yourself
- Explain how TCP makes a reliable connection out of unreliable packets, and use sockets from code
- Explain DNS, HTTP/1.1 to HTTP/3 with QUIC, and TLS with certificates, as protocols
- Explain how the Internet is wired (autonomous systems, BGP, IXPs, CDNs) and who runs it
- Design and debug firewalls, load balancers, proxies, VPNs, cloud and container networks
- Recognize network attacks at every layer and the defenses against them
- Find any network problem systematically with ip, ss, dig, curl, tcpdump, nft and openssl
This course takes you from knowing nothing about networks to understanding how the Internet works well enough to design with it and debug it. It starts with what a packet is and ends with firewalls, cloud networks and finding problems with tcpdump. Nothing is skipped, and nothing is used before it has been explained.
Who this course is for
Anyone who wants to really understand networks: developers, students, people starting in IT or DevOps, or anyone who knows the words (TCP, DNS, subnet, TLS) without knowing what actually happens. You need to be comfortable typing commands in a Linux terminal. Some programming helps, because a few examples use short Python scripts, but it isn’t required; every script is explained.
How it works
There are 19 lessons in six parts plus a wrap-up, listed in the syllabus. Go at your own pace, but take the lessons in order: each one builds on the previous ones and starts by saying what it assumes.
Every lesson follows the same pattern: the idea first, then why it matters, then a lab where you see it with your own eyes. Each lab starts with a goal (the question it answers) and explains what you just saw after every command. Each lesson ends with a self-check; if you can’t tick every item without looking, re-read that part before moving on.
Set up the lab
You need one Linux machine where you can use sudo: a virtual machine, WSL2 or a cheap cloud server all work. A VM is the most comfortable choice, because you can experiment freely. No extra hardware is needed. Install the tools once:
# Debian / Ubuntu: everything in this course is a command-line tool
sudo apt update
sudo apt install -y iproute2 iputils-ping traceroute mtr-tiny tcpdump \
dnsutils curl openssl netcat-openbsd nmap iperf3 ethtool conntrack \
nftables bridge-utils arping ndisc6 python3
# check the tools and Python are there
python3 -c "import socket, struct, ipaddress; print('python ok')"
python ok
From lesson 3 onwards you’ll build small virtual networks, with several “computers”, switches and routers, all inside your one machine, using a Linux feature called network namespaces. Lesson 3 explains it from scratch. The labs never change your machine’s real network settings without saying so, and every lab ends with a clean-up step that removes what it built.
If you’d rather not install anything on your own system, all of these tools come ready-made in one container image:
# netshoot is a container full of network tools; --privileged + host network
# let you poke at real interfaces from inside it
docker run --rm -it --privileged --network host nicolaka/netshoot
What the boxes mean
- Lab: hands-on practice, with a goal. Type and run everything yourself.
- Tip: tricks and best practices.
- Watch out: common mistakes and things that cause trouble in production.
- Why it matters and Note: background that explains the reason behind something.
- Interview question: common interview questions with short answers.
- Self-check: at the end of every lesson.
At the end of the course you’ll find the full port table, special IPv4 and IPv6 address tables, a subnetting table, the RFCs worth knowing, a 50-question final exam with answers, a complete checklist and a roadmap for what to learn next.
Syllabus
19 lessons · 7 partsPart 1 · Foundations
Start from zero: what a network, a packet, an address and a protocol are, and what happens when you open a web page. Then how protocols are stacked in layers, and how machines on one local network reach each other with MAC addresses, switches and ARP. You finish by building a small LAN on your own machine.
- 01How the Internet works: what happens when you open a URLNetworking from zero: what a network is, packets, IP addresses, ports, DNS, routers and protocols, explained simply, then what really happens when you open a URL.
- 02OSI and TCP/IP models: network layers and encapsulationNetwork layers explained from scratch: why networks are built in layers, the 4 TCP/IP layers and the 7 OSI layers, encapsulation, and a lab that finds every layer in one real packet.
- 03Ethernet, switches, VLANs and ARP: the link layer explainedHow machines on one local network reach each other: MAC addresses, Ethernet frames, how switches learn, ARP, then VLANs, STP and Wi-Fi, with a lab that builds a virtual LAN on Linux.
Part 2 · Addresses and routing
How an IP address decides between "deliver it here" and "send it to the router", subnets in your head, ping and traceroute; then routing tables, NAT and DHCP, and IPv6. You finish with two subnets, a router and NAT that you built yourself.
- 04IPv4 subnetting explained: CIDR, MTU, fragmentation and ICMPIPv4 from scratch: what an address is, the network and host parts, why subnets exist, subnetting without a calculator (with worked examples), special ranges, the IP header, ping, traceroute and MTU.
- 05Routing, NAT and DHCP: how packets find their wayHow routing tables and longest prefix match pick a path, how NAT, PAT and conntrack share one public IP, how DHCP works, plus a Linux router and NAT lab.
- 06IPv6 explained: addresses, NDP, SLAAC and dual stackIPv6 for programmers: address notation and types, why every LAN is a /64, NDP, SLAAC and DHCPv6, ICMPv6, dual stack, Happy Eyeballs, NAT64 and common mistakes.
Part 3 · Ports, connections and names
How data reaches the right program: ports, UDP and TCP (the handshake, reliability, flow and congestion control) with sockets in Python. Then DNS, the Internet's phone book, including a DNS client you write byte by byte.
- 07TCP and UDP in depth: ports, sockets, handshakes and congestionHow TCP and UDP really work: ports, sockets, the three-way handshake, TIME_WAIT and CLOSE_WAIT, flow and congestion control, with Python and tcpdump labs.
- 08How DNS works: resolution, records, DNSSEC and encrypted DNSHow DNS works from root to authoritative: zones and glue, resolution, TTL caching, record types, the wire format, DNSSEC, DoH, and a DNS client in Python.
Part 4 · The web and everyday protocols
The protocols you use every day: HTTP from 1.1 to HTTP/3 and QUIC, TLS and certificates, and a tour of email, SSH, NTP and WebRTC.
- 09How HTTP works: HTTP/1.1, HTTP/2, HTTP/3 and QUICHow HTTP works: methods, status codes, caching headers, cookies and CORS, HTTP/1.1, HTTP/2 multiplexing, HTTP/3 over QUIC, WebSocket and gRPC, with curl labs.
- 10TLS 1.3 and PKI: how encryption and trust work on the InternetHow TLS 1.3 and PKI work: the one-RTT handshake, X.509 certificates and chains, validation, ACME and Let's Encrypt, CT, SNI and ECH, mTLS, and openssl labs.
- 11Email, SSH, NTP and WebRTC: other protocols you should knowHow email works with SMTP, IMAP, SPF, DKIM and DMARC, plus SSH keys and tunnels, why NTP matters, common ports, and WebRTC NAT traversal with STUN and TURN.
Part 5 · How the Internet is wired and run
The big picture, now that you know the parts: autonomous systems, BGP, peering, IXPs, CDNs and submarine cables, then the organizations that write the standards and hand out names and numbers.
- 12BGP, autonomous systems and IXPs: how the Internet is wiredHow the Internet is wired: autonomous systems, BGP routes and policy, transit and peering, IXPs, CDNs and anycast, submarine cables, and RPKI against hijacks.
- 13Who runs the Internet: ICANN, IANA, IETF, RIRs and root serversWho runs the Internet: what ICANN, IANA, the IETF, ISOC, the five RIRs, root server operators and the CA/Browser Forum each do, and how to read an RFC.
Part 6 · Real networks: infrastructure, security and operations
The building blocks of real networks (firewalls, load balancers, proxies, VPNs), attacks and defenses at every layer, cloud and container networking, systematic troubleshooting, and performance from a programmer’s point of view.
- 14Firewalls, load balancers, proxies, VPNs and overlay networksHow firewalls, load balancers, proxies, VPNs and tunnels work: netfilter and nftables, L4 vs L7 load balancing, WireGuard, IPsec, VXLAN, tunnel MTU and QoS.
- 15Network security: attacks and defenses at every layerNetwork attacks and defenses by layer: ARP spoofing, IP spoofing, port scans, DDoS amplification, MITM, SSRF, segmentation and zero trust, with an nmap lab.
- 16Cloud and container networking: VPCs, Docker and KubernetesHow networking works in the cloud and in containers: VPC subnets, route tables, security groups, Docker veth and NAT, Kubernetes CNI, Services and service mesh.
- 17Network troubleshooting: a systematic method with tcpdump and curlA systematic way to debug network problems: a layer-by-layer toolbox, tcpdump BPF filters, curl timing, and the first command to run for ten common failures.
- 18Network performance for programmers: latency, retries, throughputNetwork performance for programmers: latency numbers, the RTT cost of a request, connection reuse, retries with jitter, TCP throughput and hidden server limits.
Wrap-up
Reference tables, a 50-question final exam with answers, a complete checklist and where to go next.