Learning Tools / CMPS 2650

CMPS 2650 Learning

Interactive lessons that go with the course, in a suggested learning order. Start at the top, or jump to any topic below or in the sidebar.

Foundations

1 TCP/IP High-level

Watch a message get chopped into numbered packets, race across a mesh of routers along different paths, arrive out of order, and get put back together. Break links and lose packets to see how the internet copes.

2 The OSI Model

Follow a web request, an email, or a DNS lookup down the seven layers and back up again, and watch it get wrapped into a segment, packet, frame and bits along the way.

3 The TCP/IP Model

The same examples through the four layers the internet actually uses, and how each one maps to the OSI model.

4 Hubs, Switches & Routers

Put a hub, a switch or a router in the middle of four hosts and send frames: see who gets a copy, watch a switch learn MAC addresses, cause a collision on a hub, and see a router stop broadcasts.

5 Bandwidth vs Latency

Why a faster plan doesn’t always make pages load faster. Stretch and widen a pipe to see what bandwidth and latency each change, calculate real transfer times, race a truck of hard drives against fiber, and find TCP’s speed limit.

Addressing

6 How Subnets Work

Enter an IP address and a CIDR prefix or subnet mask, and see the 32 bits, the network and broadcast addresses, the usable host range, and how to split the network into smaller subnets.

7 Subnets vs VLANs

Subnets divide IP addresses (Layer 3); VLANs divide switch ports into broadcast domains (Layer 2). Ping and ARP between hosts in four setups and see what reaches whom, including a broken one.

8 IPv6

Take any IPv6 address apart: expand it, shorten it the standard way, see all 128 bits and what kind of address it is, then build an address from a MAC address with EUI-64, step by step.

9 ARP

How a computer finds the MAC address behind an IP address: watch ARP broadcasts and replies fill the caches, see why off-network traffic ARPs for the router, and watch ARP poisoning redirect traffic.

10 DHCP

Watch a laptop get its IP address through DORA (Discover, Offer, Request, Acknowledge), including through a router relay. See what happens when the server is down (a 169.254 address) and how a lease renews, rebinds and expires.

11 NAT & Port Forwarding

Three home devices share one public IP address. Watch the router rewrite each packet and fill its NAT table, see why an unsolicited connection from a friend is dropped until you add a port-forward rule, and what an ISP’s shared NAT (CGNAT) breaks.

Moving Data

12 How Routing Works

Six routers, four ways to fill their routing tables: static routes, RIP, OSPF and BGP. Watch them learn routes, send packets hop by hop, and break links to see how each one recovers.

13 How TCP/IP Works

Watch packets travel between a client and a server: the three-way handshake, data segments and ACKs, a lost packet being resent, and the connection closing. Open any packet to see its layers.

14 TCP vs UDP

Race the same packets over TCP and UDP through a lossy network: watch TCP resend and hold data in order while UDP just keeps going. Then compare the headers and pick the right protocol for five real apps.

15 Ports & Sockets

Open connections from three clients to a server’s ports and watch its socket table fill up: see how one port serves many clients, why a database on localhost refuses outsiders, and what "connection refused" means.

16 How DNS Works

Type in any domain name and watch the lookup happen step by step, from the root servers down to the servers that hold the final answer.

17 Visiting a URL

Follow https://www.csub.edu/ from the moment you press Enter: DNS, ARP, the TCP and TLS handshakes, the HTTP request, and loading the page. Drag the round-trip time and see exactly where the milliseconds go.

Security & Tools

18 Firewall Rules

Write firewall rules and watch packets get checked against them top to bottom. First match wins, a broad rule can hide the ones below it, default deny catches the rest, and stateful firewalls let replies back in.

19 Visual Traceroute

Run a real traceroute from a probe anywhere in the world, or paste your own tracert output, and watch the path appear on a map. Spot long-distance links and locations that break the speed of light.

20 Troubleshooting Toolkit

Diagnose a broken network like a technician: run ipconfig, ping, nslookup, tracert and Test-NetConnection on a simulated PC, watch the evidence pile up, and name the fault.

Virtualization

21 How Virtualization Works

What a hypervisor does: Type 1 vs Type 2, how guest code runs directly on the CPU until a privileged instruction triggers a VM exit, and how memory gets translated twice.

22 Virtual Network Modes

NAT, NAT Network, Bridged, Host-only, Internal or Not attached: see who can reach a VM in each mode, and why, by testing connections between VMs, your computer, the LAN and the internet.

23 How Containers Work

See what a container really is: an isolated process on a shared kernel. Build an image layer by layer, watch the build cache work, peek through namespaces, and hit cgroup limits.

24 VMs vs Containers

Compare virtual machines and containers side by side: where the kernel lives, how strong the wall is, how many fit on a server, and how fast they start. Then test yourself on four real scenarios.

The Linux Shell

25 File Permissions

Flip the rwx bits for owner, group and others and watch the octal number, the ls -l string and the chmod command change together. Then check which users can read, write or cd into a file or folder, and see what umask and setuid do.

26 The Sticky Bit

Why can’t you delete someone else’s file in /tmp when everyone can write there? Put several users in a shared folder, turn the sticky bit on and off, and try to delete, rename and overwrite each other’s files to see exactly what it protects and what it doesn’t.

27 Pipes & Redirection

Chain cat, grep, sort, uniq -c, head and tee, and watch the data change at every pipe. stdout and stderr are drawn as separate streams, so you can see exactly where >, >>, 2>&1 and /dev/null send each one.

28 Shell Expansion

Type a bash command and step through everything the shell does before it runs: quotes, ~, $VAR, $(...), $((...)), word splitting and globbing. At the end you see the exact list of arguments the program gets.

29 Shell Startup Files

Which files run when you open a terminal, log in over SSH, run a script or type su? Pick a kind of session and watch bash read /etc/profile, ~/.bash_profile, ~/.bashrc and the others in order, and see why a setting you added “doesn’t work”.

30 Customize Your Prompt

Build your own bash prompt: pick pieces like user, host and folder, colors and styles, and get the PS1 line with its \u, \h, \w and color codes to paste into ~/.bashrc. Then see when PS2, PS3 and PS4 show up.

Text & File Tools

31 diff & patch

Edit two versions of a file and see how diff finds what changed, in normal, context and unified format. Read every @@ hunk header, then apply the diff with patch and see what happens when the file has changed underneath it.

32 Basic awk

Watch awk read a file one line at a time, split it into $1, $2 and so on, test each pattern and run its action. Change the separator, use NR and NF, add up columns in END, and build one-liners step by step.

33 Archiving & Compression

Pack files with tar, squeeze them with gzip, bzip2 or xz, and compare them with zip. See what tar -czvf really means letter by letter, compare sizes and speeds, and extract a single file from an archive.

Storage & File Systems

34 The Root Folders

Tour the Linux directory tree from /: what lives in /bin, /etc, /var, /home, /usr, /tmp, /dev, /proc and the rest, and why. Find where a program, its config file, its logs and its data go, and sort files into the right folder yourself.

35 File Systems

Look inside a file system: the superblock, the inode table, data blocks and directories that map names to inode numbers. Create, append to and delete files and watch the blocks fill up, see how a journal protects against a crash, and compare ext4, XFS, Btrfs and FAT.

36 Links & Inodes

Follow a path from / through each directory down to its inode. Make hard links and symbolic links, watch the link count change, then delete or move the original to see which links still work and which ones break.

37 Hard Links vs Symlinks

The same commands on a hard link and a symlink, side by side. See the hard link share the file’s inode while the symlink gets an inode of its own that only holds a path, then delete, rename and recreate the original and watch which link survives.

38 LVM & Mounting

Build storage from a bare disk, one step at a time: partitions, physical volumes, a volume group, logical volumes, a file system, a mount point and an /etc/fstab line. Every step shows the command that does it. Then add a disk and grow a volume while it’s mounted.

Linux Administration

39 How the Kernel Works

Follow a program as it asks the kernel for help: system calls crossing from user space into kernel space, the scheduler sharing the CPU, virtual memory and page faults, drivers and loadable modules, and interrupts from hardware. Then peek at it all live through strace, /proc and /sys.

40 Users, Groups & sudo

Decode every field in /etc/passwd, /etc/shadow and /etc/group. Run useradd, usermod, passwd and groupadd to see which lines change, then see how group membership and sudo rules decide what each user is allowed to do.

41 Processes

A live process tree you can grow: watch bash fork a copy of itself and exec a new program, see every parent and child with its PID and state, make zombies and orphans, and move jobs between the foreground and background with &, Ctrl-Z, bg and fg.

42 Signals & kill

Send TERM, INT, HUP, KILL, STOP and CONT to running processes and see how each one reacts: programs that clean up, ignore the signal or reload their config, and the two signals nobody can catch. Learn what Ctrl-C, Ctrl-Z and kill really send.

43 Boot & systemd

Follow a machine from power-on through firmware, GRUB, the kernel and initramfs to a systemd target. Then start, stop, enable and disable units, watch dependencies bring in other units, and use journalctl to find a failing service.

44 Daemons

What makes a program a daemon: no terminal, started at boot, running in the background. Watch systemd start, supervise and restart a daemon when it crashes, check its health with systemctl, ps, ss and journalctl, and reload its config without dropping users.

45 Package Managers

What happens when you run apt install or dnf install: repositories, metadata, the dependency tree, downloading and verifying packages, and running their scripts. Compare apt, dnf, zypper and pacman command by command across Linux families.

46 cron & crontab

Build a crontab line field by field, see it explained in plain English along with the next times it will run, and decode lines others wrote. Learn crontab -e, the system crontab’s extra user field, and why a job that works in your terminal fails under cron.

47 System Logs (syslog)

Send messages with logger and watch rsyslog sort them by facility and priority into log files. Read and write rsyslog rules like authpriv.* /var/log/secure, rotate logs with logrotate, and search the systemd journal.

The Linux Desktop

48 The Graphics Layers

Peel a Linux desktop apart layer by layer: kernel graphics driver, display server, window manager, desktop environment, and the apps on top. Swap GNOME for KDE or a tiling window manager, turn off layers to see what’s left, and compare X11 with Wayland.

49 The X Window System

X turns client and server around: the server is the program that owns your screen, keyboard and mouse, and apps are clients that talk to it, even from another computer. Watch requests and events flow, set DISPLAY, and run a remote app over ssh -X.