Labs for Computer Systems Modelling

Interactive labs I have built for my Cambridge course Computer Systems Modelling. Each one runs in the browser, with no installation needed, and explains at the top how it works and what to try. Section numbers refer to S. Keshav, Mathematical Foundations of Computer Networking, Addison-Wesley, 2012; labs without one draw on other course notes.

Simulation

Queuing theory

  • Random Walk: transience and recurrence in a birth–death chain
  • Eigenvalues §3.5–3.6: a refresher on eigenvectors, stochastic matrices and the power method, before they are used for Markov chains
  • Markov Chains §6.2: trajectories, distributions and stationarity
  • CTMC Rates §6.3: how a continuous-time Markov chain arises from coin flips, and what the entries of the rate matrix Q mean
  • Birth–Death Processes §6.4: the continuous-time chains behind simple queues
  • M/M/1 Queue §6.4.4: queue length, delay and Little’s theorem
  • M/M/1/K Queue §6.6.2: finite buffers and blocking probability
  • M/D/1 and M/G/1 Queues §6.7.1: service-time variability and the P-K formula

Signals and systems

  • Phasors §5.1: sinusoids as rotating vectors, and Euler’s formula
  • Keying Ex. 5.3: sending bits with ASK, FSK and PSK
  • Convolution §5.1.4–5.1.5: computing a convolution by flipping one function, sliding it along the other, multiplying and adding
  • Complex Exponentials §5.2.1: the signal k est, with s = σ + jω, drawn as a helix in three dimensions
  • System Properties §5.3: testing for linearity, time invariance and causality
  • LTI Systems §5.4: eigenfunctions, natural response and the impulse response
  • Fourier Series §5.6: periodic signals as sums of harmonics
  • Fourier Transform §5.7: transform pairs, properties and convolution
  • Laplace Transform §5.8: poles, zeros, the region of convergence and the final value theorem
  • First- and Second-Order Systems §8.3–8.4: step responses, time constants and damping

Control theory

  • Feedback Control §8.5: proportional control of a thermostat and a router buffer
  • PID Control §8.6: proportional, integral and derivative modes, and how they combine