What bus load measures
Bus load is the fraction of time the bus is busy transmitting frames. Add up the frame time of every message sent in one second and divide by one second. A J1939 network at 250 kbit/s carrying 400 frames per second of 8-byte, 29-bit-ID frames is busy for 400 × 640 µs = 256 ms of every second: 25.6% load.
The hard part is the frame time. A CAN frame is not 8 × payload bytes divided by the bit rate. It carries an identifier, control bits, a CRC, an ACK, an end-of-frame marker and an interframe gap. On top of that the controller inserts stuff bits, and their number depends on the data. CAN FD adds a second bit rate for part of the frame. The calculator above handles all of this. Enter your message groups and it gives the load, the per-frame bit count and the effective throughput.
Classic CAN frame length
An 11-bit-ID (base format) data frame with n payload bytes:
SOF 1 + ID 11 + RTR 1 + IDE 1 + r0 1 + DLC 4 = 19
data = 8n
CRC 15 + CRC delimiter 1 = 16
ACK slot 1 + ACK delimiter 1 + EOF 7 = 9
interframe space (intermission) = 3
total without stuff bits = 47 + 8n
A 29-bit-ID (extended format) frame adds SRR, 18 more ID bits and r1: 67 + 8n bits. With 8 bytes that is 111 bits for an 11-bit ID and 131 bits for a 29-bit ID.
The interframe space is not part of the frame in the spec, but no other frame can start during it, so it counts toward load.
Bit stuffing
After five consecutive bits of the same level, the transmitter inserts one bit of the opposite level. Receivers drop it. Stuffing runs from SOF through the end of the CRC sequence. The CRC delimiter, ACK, EOF and interframe space are fixed-form and never stuffed.
The stuffed region is g + 8n bits, with g = 34 for 11-bit IDs and g = 54 for 29-bit IDs. The worst case is one stuff bit per four bits after the first, because an inserted stuff bit can itself start a new run of five. That gives the bound used by Davis, Burns, Bril and Lukkien in their 2007 CAN schedulability paper:
worst-case frame bits = g + 8n + 13 + floor((g + 8n - 1) / 4)
The 13 is CRC delimiter + ACK slot + ACK delimiter + 7 EOF bits + 3 interframe bits. For 8 bytes:
| ID | No stuffing | Worst case | Worst case at 250 kbit/s | Worst case at 500 kbit/s |
|---|---|---|---|---|
| 11-bit | 111 bits | 135 bits | 540 µs | 270 µs |
| 29-bit | 131 bits | 160 bits | 640 µs | 320 µs |
Real traffic sits between the two columns. Payloads full of 0x00 or 0xFF, and IDs with long runs of zeros, push toward the worst case. The calculator shows both. Plan with the worst case. Compare the best case against what a bus analyser reports.
CAN FD: two bit rates
CAN FD with bit rate switching (BRS) sends the arbitration field at the nominal rate, switches to the data rate at the sample point of the BRS bit, and switches back at the CRC delimiter. Only the middle of the frame gets faster.
Counting used here (ISO 11898-1:2015 frame format):
nominal rate: SOF, ID 11, RRS, IDE, FDF, res, BRS = 17 bits (11-bit ID)
(29-bit ID adds SRR and 18 ID bits) = 36 bits
data rate: ESI 1 + DLC 4 + data 8n
stuff count 4 + CRC 17 (n <= 16) or 21 (n > 16)
fixed stuff bits 6 (CRC-17) or 7 (CRC-21)
nominal rate: CRC delimiter, ACK, ACK delimiter, EOF 7, IFS 3 = 13 bits
The CRC field uses fixed stuff bits: one before the stuff count and then one after every four bits, regardless of the data. Dynamic stuffing applies from SOF to the end of the data field. The calculator applies the same floor((bits - 1) / 4) worst case over that region and charges the stuff bits in the arbitration field at the nominal rate and the rest at the data rate.
The calculator counts the CRC delimiter at the nominal rate. The real switch happens at its sample point, so the computed frame time is high by less than one nominal bit. That error is on the safe side.
Worked example: J1939 at 250 kbit/s
A J1939 powertrain segment, all 29-bit IDs, all 8-byte payloads:
- 4 messages every 10 ms (engine speed and torque, like EEC1)
- 12 messages every 100 ms
- 20 messages every 1000 ms
Frame rate: 4 × 100 + 12 × 10 + 20 × 1 = 540 frames/s.
Worst-case frame time at 250 kbit/s: 160 bits × 4 µs = 640 µs.
load = 540 × 640 µs / 1 s = 0.3456 = 34.6 %
Without stuff bits: 131 × 4 µs = 524 µs, 540 × 524 µs = 28.3%. A bus analyser on this segment should read somewhere between those two numbers, before any diagnostics or transport-protocol traffic starts. That is the “J1939 250k” preset in the calculator.
Now move the same 540 frames/s to CAN FD at 500 kbit/s / 2 Mbit/s with 11-bit IDs. An 8-byte FD frame is 30 nominal + 96 data bits without stuffing, and 34 + 113 bits worst case: 68 µs + 56.5 µs = 124.5 µs. Load drops to 6.7%. Packing the payload of those 36 messages into fewer 64-byte frames saves more, because every frame pays the nominal-rate overhead once.
Throughput, not bit rate
The bit rate is not the payload rate. Payload bits divided by frame time gives what one ID can move back to back:
| Frame | Frame time (best to worst) | Payload throughput |
|---|---|---|
| Classic, 11-bit, 8 B, 500 kbit/s | 222 to 270 µs | 237 to 288 kbit/s |
| Classic, 29-bit, 8 B, 250 kbit/s | 524 to 640 µs | 100 to 122 kbit/s |
| FD, 11-bit, 64 B, 500 kbit/s / 2 Mbit/s | 334.5 to 407 µs | 1.26 to 1.53 Mbit/s |
Classic CAN at 8 bytes delivers about half its nominal bit rate as payload. CAN FD at 64 bytes and a 4:1 data-to-nominal ratio delivers about 2.5 to 3 times its nominal rate. Short FD frames gain far less: the 30 nominal-rate bits of overhead cost 60 µs at 500 kbit/s no matter how fast the data phase runs.
When the estimate breaks down
Error frames. Each error adds an error flag, delimiter and a full retransmission. One bad node or a marginal termination can add load the calculator does not see. Leave margin.
FD payload padding. CAN FD only has DLC lengths 0 to 8, 12, 16, 20, 24, 32, 48 and 64. A 9-byte payload goes out as 12 bytes. The calculator pads and shows the transmitted length, for example 9→12 (9) where 9 is the DLC.
Non-ISO CAN FD. The original Bosch CAN FD 1.0 format has no 4-bit stuff count and one fewer fixed stuff bit. Some controllers can still be switched to it. On M_CAN-based peripherals such as STM32 FDCAN that is the NISO bit in CCCR. Frames are 5 data-rate bits shorter. The difference is small, but non-ISO and ISO nodes cannot talk on the same bus.
Periodic is not the whole story. Event-triggered messages, J1939 transport protocol (TP.CM/TP.DT) bursts and UDS diagnostic sessions arrive in bursts. A 1 s average can hide a 10 ms window at 100%. Run the calculator again for the burst. J1939-21 spaces BAM TP.DT packets 50 to 200 ms apart, but an RTS/CTS session can send them back to back.
Load is not latency. At 40% average load a low-priority ID can still wait several frame times when higher-priority frames queue up together. Response-time analysis (the same Davis et al. paper) is the tool for latency guarantees. Bus load only tells you whether the schedule fits at all.
Remote frames and overload frames. Remote frames have no data field, so model them as 0-byte payloads. Overload frames are rare on modern controllers and are not modeled.
Related
Set the bit rate itself with the CAN bit timing calculator, which gives prescaler, segment lengths and sample point for classic CAN and CAN FD. Use this page to check that your message list fits at that rate.