Vehicle Communication and Networking · Vehicle bus
CAN Arbitration
Also known as bit-wise arbitration, non-destructive arbitration, bus arbitration
The mechanism by which CAN nodes resolve simultaneous transmission attempts: identifiers are compared bit by bit on the wired-AND bus, the frame with the lowest identifier continues undisturbed, and the losing nodes become receivers and retry later.
Explanation
CAN has no central bus master. Any node may start transmitting when the bus is idle, so simultaneous starts are expected. During the arbitration field, each transmitter monitors the bus at the sample point. Because the dominant level overwrites the recessive level, a node that sends recessive but observes dominant knows a higher-priority frame is on the bus, and it stops transmitting. No bus time is lost, because the winning frame is not destroyed.
The result is fixed-priority, non-preemptive scheduling of frames by identifier, which lets designers bound the worst-case latency of high-priority messages with response-time analysis. In 2007, Davis, Burns, Bril and Lukkien showed that the widely used original CAN schedulability analysis from 1994 was flawed and published a corrected method, an important caveat for results from older tools.
Arbitration requires the bus to be short enough for all nodes to see each bit within one bit time, which limits network length at a given bit rate; this is why CAN FD and CAN XL keep the nominal rate during arbitration. Under heavy load, low-priority frames can be delayed for long periods.
How it works
Suppose node A (identifier 0x065) and node B (identifier 0x067) start together. Both send identical bits until the first difference: bit 1 is 0 in 0x065 and 1 in 0x067. A drives dominant while B sends recessive but reads dominant, so B stops and switches to receiving. A completes its frame without delay, and B retries as soon as the bus is idle again.
Automotive applications
- Prioritising safety-critical messages
- Worst-case response-time analysis of CAN networks
- Designing identifier allocation schemes
- Diagnosing priority problems caused by poor identifier assignment
Example
An airbag controller's crash notification uses identifier 0x050, lower than any other on its bus. Even at high bus load it wins arbitration against routine body messages, so without errors its worst-case delay is the remainder of any frame already being sent plus its own transmission time.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- CAN CC (Classical CAN) (opens in a new tab)
“This mechanism is called bit-wise arbitration.”
- Controller Area Network (CAN) schedulability analysis: Refuted, revisited and revised (Davis, Burns, Bril, Lukkien), Real-Time Systems 35(3):239-272, 2007 (opens in a new tab)
- Designing a CAN network (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.