This chapter explains Bluetooth Low Energy (BLE) §7.1, the short-range radio technology of battery-powered devices, and uses it to show how to reason about a layered network protocol. The first entries follow the protocol from the bottom up: the roles that devices take, advertising and scanning §7.3, the division of a device into a Controller and a Host, the Link Layer §7.6 that schedules every radio exchange, and the Attribute Protocol §7.9 and the Generic Attribute Profile §7.10 (GATT) through which devices read and write each other’s data, together with message sizes and flow control.
The second part covers security: how pairing creates keys, the methods by which a person confirms that the right two devices are pairing, what each method protects against, the keys that bonded devices store, and the private addresses that stop strangers from tracking a device. The final entries are about reasoning across layers: what each kind of acknowledgment proves, how lost and repeated messages are handled, why a protected link does not show who wrote the data it carries, how a peer can use up a device’s connections, and how measured throughput relates to the useful data delivered.