HOW THE DIGITAL WORLD REALLY WORKS / CHAPTER 06

The Secret Life of a SIM Card

Discover, experiment and code. All identities and networks in this lab are fictional.

Lab A. Build a miniature mobile operator

Choose events in order. If an event is not allowed in the current state, the model stays in that state.

Lab B. Challenge-response experiment

The two imaginary systems compute a response to the same challenge. Compare the results.

This is toy arithmetic, not secure cryptography. Never enter real SIM data or authentication keys.

Lab C. Move the phone

Move the slider slowly across the street, then back. The serving cell switches only when the other score exceeds it by more than the chosen margin.

AB
Cell A score:
Cell B score:
Serving cell:
Switches:

Scores are invented dB-like values, not real signal measurements. Real networks also use timers, coverage and resource allocation.

Code workbench

Choose a complete example from the chapter, edit it and run it. This separate sandbox prints console output. Only run code you understand.

Return to the companion index