How we teach
The answer-anything standard
After reading a protocol's chapters you can answer any question a working engineer, an interviewer, an exam or a design review would ask about it. This is how the books are built, and checked, to keep that promise.
The Protocol Dossier
22 parts after the passport, the same order, every protocol
A missing part is visible at once, and you always know where to look. Tier C protocols get the parts marked “every tier”.
- P0
Protocol Passport every tier
A one-page card: full name, who made it and when, the spec and version taught, OSI layers, topology, wires, speed, distance, node limit, duplex, addressing, error check, where you meet it and its sister protocols.
- P1
Why it exists every tier
The problem it solved, and its version timeline.
- P2
Where it lives every tier
Real systems that use it: an illustrated scene and a system diagram.
- P3
Architecture & roles
Topology, roles (controller and target, host and device…), layers.
- P4
Physical layer every tier
Voltage levels, drivers, termination and pull-ups, connectors and pinouts, cables, speed versus distance, EMC and protection.
- P5
Bit-level signalling every tier
Encoding, clocking, synchronisation and sampling, as timing diagrams.
- P6
Frame and packet format every tier
Every field, bit by bit: a bit-field figure and a table.
- P7
Transactions every tier
Complete exchanges as sequence charts; state machines.
- P8
Addressing, arbitration, access
Who may talk, when, and how collisions are resolved.
- P9
Timing & performance
Every timing parameter with real numbers; throughput, efficiency and latency worked out.
- P10
Errors & recovery every tier
Parity and CRC computed by hand, ACK/NACK, retries, error states, bus recovery.
- P11
Flow control, power, configuration
Flow control, power states, configuration and enumeration.
- P12
Versions & variants
What changed in each version, and the compatibility rules.
- P13
Hardware design
Reference schematic, part choice, layout rules, level shifting, isolation.
- P14
Implementation
Driver code (C), RTL (Verilog) for hardware-level protocols, stack code for network protocols, line by line.
- P15
See it on the wire every tier
A real capture from a lab run, decoded: analyzer view or packet dissection.
- P16
Debugging playbook
Symptom → cause → check → fix, with scope and analyzer recipes.
- P17
Security
Attacks and defences, where relevant.
- P18
Compare & choose
Against its sister protocols, with a selection guide.
- P19
Myths & mistakes
“Wrong → Why → Right” boxes.
- P20
In industry
Real chips, products and practice, with the facts checked and dated.
- P21
Question bank every tier
Graded questions with worked answers.
- P22
Cheat sheet every tier
One visual page that holds the whole protocol.
Depth tiers
Each protocol gets the depth it deserves
| Tier | For | Size per protocol | Dossier | Labs | Printed Q&A | In the register |
|---|---|---|---|---|---|---|
| Tier A Core | Protocols an engineer works with daily: I²C, CAN, PCIe, TCP, AXI, DDR… | 40–100 pages (several chapters) | All 22 parts | 2–4 | 100–200 | 187 |
| Tier B Important | Protocols you meet often in one field | 15–35 pages (one chapter) | All 22 parts, shorter | 1 | 40–80 | 518 |
| Tier C Specialist & legacy | Niche, historical or proprietary protocols | 5–12 pages (a section) | The core parts | Optional | 15–25 | 58 |
| Tier D Not a protocol | Standards and methods often listed as protocols by mistake | A 1–2 page note and a pointer | — | — | — | — |
Quality
How each chapter is checked before it ships
- 1
Question universe first
Before a protocol is written, every kind of question about it is collected: concepts, exact fields and bits, timing numbers, calculations, version differences, hardware design, driver and RTL code, debug scenarios, security, industry practice, interview and GATE-style questions.
- 2
Write to the universe
The chapter is written so that every question is answerable from its text, figures and tables.
- 3
Blind test
A fresh reviewer reads only the finished chapter and answers a held-out sample of the questions, graded against a key checked against the spec. The target is at least 95 % correct; every miss becomes new content and the chapter is re-tested.
- 4
Spec check
Every number (timings, voltages, field widths, limits) is traced to the primary spec, datasheet or RFC, with its section number logged.
- 5
Lab check
Every lab and code listing is run, and every output printed in the book comes from a real run.
Visual-first
At least one figure every 1.5 pages
Each protocol has a required figure set, drawn with the same colour rules in every book: in every timing diagram the controller's bits are one colour and the target's another, so you always see who is driving the wire.
- 01Hero scene: where the protocol lives
- 02Passport card
- 03Topology and system diagram
- 04Physical-layer schematic and connector pinout
- 05Bit-level timing diagram, every parameter labelled
- 06Frame or packet bit-field diagram
- 07Transaction sequence chart
- 08State machine
- 09Protocol stack and layer diagram
- 10“See it on the wire”: a decoded capture from a real lab run
- 11Eye diagram, spectrum or constellation
- 12Comparison chart and debug flowchart
Labs
Desk labs you can run, bench labs you can build
Desk labs: run by the author, on free tools
- Hardware protocols as RTL: Icarus Verilog, Verilator, cocotb
- Decoding signal captures: sigrok-cli and its protocol decoders (UART, SPI, I²C, CAN, LIN, 1-Wire, JTAG, SWD, USB, I²S…)
- Network and fieldbus traffic: tshark/Wireshark, scapy, and real open-source stacks on loopback or in network namespaces
- The CAN family: python-can virtual bus, cantools, ISO-TP
- Radio PHY: NumPy/SciPy waveform labs
- Maths and plots: Python with NumPy, SciPy and matplotlib
Bench labs: on your own hardware
For an ESP32, STM32 or Pico board, an 8-channel USB logic analyzer, a USB-CAN adapter, RS-485 modules, common sensors, a LoRa module or an RTL-SDR. Each book lists its own small kit. Bench labs are clearly labelled “not run by the author”.
Inside every book
The same structure in all of them
Front matter
- How to use this book
- A readiness check: 10 questions that point back to the right earlier book
- Learning outcomes
- A “protocols in this book” map with tiers
- Desk and bench setup
Chapters
- A banded opener with a hero image
- A “Where we are” strip, warm-up questions and outcomes
- Basic / Intermediate / Advanced labels and Deep Dive boxes
- Key idea, at-a-glance and real-world boxes
- Common mistakes, an interview corner and a summary
End matter
- A book project
- A final test with worked answers
- Revision cards and comparison tables
- A spec reference table (which spec, which version, which section)
- Glossary and index
Written in simple English: short sentences, one idea per paragraph, and every term defined at first use. For the giant specifications (PCIe, USB4, 5G NR, Wi-Fi, Bluetooth, DDR5), the books teach every mechanism and every number engineers use, and say exactly which spec section holds the rest.
The books explain specifications in their own words. For conformance and certification work, always use the official specification of the standards body. Bench labs that need the reader's own hardware are marked “not run by the author”; desk labs were run, and their printed output comes from those runs.