Prem's Labs
Interactive simulators for computer architecture, operating systems, and networking. Each lab comes with a full written lesson below the simulator so you can learn the real mechanics, not just click buttons.
Start with the puzzle
Every lab opens with a concrete question or bug. Scroll down to read the lesson while keeping the simulator handy.
Work it out on paper
Try the exercises in your head or on scratch paper first, then use the simulator to check if you were right.
Test your intuition
Answer the four quick questions at the bottom of each lesson and mark it done to track where you left off.
No labs match your search.
Computer Science & Data
Algorithms & Data Structures
Systems Architecture
CPU Pipeline Simulator
Explore a 5-stage instruction pipeline. Visualise data hazards, forwarding, stalls and branch prediction.
CPU Cache Simulator
Simulate direct-mapped and set-associative caches. Observe temporal and spatial locality and the three C's of misses.
Virtual Memory Simulator
Trace virtual address translation through the TLB and page table to physical frames, including page faults.
CPU Process Scheduler
Schedule processes across FCFS, SJF, SRTF, and Round Robin on a live Gantt chart. Measure waiting, turnaround, and response times.
Networking
CIDR / IPv4 Subnet Lab
Manipulate IP addresses and prefix lengths. Visualise subnet masks, broadcast addresses and network boundaries in binary.
DNS Resolution & Caching
Trace domain lookups across Browser, Recursive Resolver, Root, TLD, and Authoritative servers. Test TTL caching and CNAME chains.
TCP Three-Way Handshake
Step through the TCP state machine. Inspect SYN, ACK, sequence numbers and connection establishment.
TCP Congestion Control
Simulate cwnd, slow start and congestion avoidance. Compare Tahoe and Reno under timeouts and triple duplicate ACKs.