CAN bus load, measured from your log
Drop a BLF, ASC or MF4 file. Every frame is counted bit by bit, stuffing included, for average, peak and per-ID load.
Drop a CAN log to measure its bus load
orBLF, ASC, MF4, CSV or candump .log, up to 150 MiB. Read in your browser.
How CAN bus load is calculated
Bus load is the share of time the bus is busy. A frame's time is its bit count divided by the bit rate.
bus load = Σ frame time ÷ window length
frame time = nominal-rate bits ÷ arbitration bit rate + data-phase bits ÷ data bit rate
Every bit of every frame
SOF, ID, control field, data, CRC, delimiters, ACK, end of frame and the 3-bit interframe space, plus the stuff bits the real payload causes. A classic 8-byte frame with a standard ID is 108 bits plus the interframe space before stuffing.
Two bit rates in CAN FD
With bit rate switching, the arbitration field and the end of the frame run at the nominal rate and the data phase at the faster data rate. Each part is timed at its own rate.
Windows, peak and average
Frame time is summed every 10 ms and shown in 10 ms, 100 ms or 1 s windows. The average covers the whole recording; the peak is the busiest full window.
Why a formula alone underestimates bus load
Most calculators assume a fixed frame length. Real frames are longer, and by how much depends on the data.
Bit stuffing depends on the payload
After five equal bits the controller inserts an opposite bit. Runs of 0x00 or 0xFF add many stuff bits, changing data adds few. Counting them from the recorded bytes removes the guesswork.
CAN FD adds fixed stuff bits
The CAN FD CRC field carries a stuff count and a fixed stuff bit every four bits, and the CRC grows to 17 or 21 bits. On a real 500 kbit/s and 2 Mbit/s recording, 64-byte frames took about 10% longer than a stuffing-free estimate.
The interframe space counts
Three recessive bits separate frames, and no frame can start inside them. They are counted with every frame, so a bus with no idle time reads 100%.
Where the bit rate comes from
A log rarely states its bit rate. The tool looks in three places and shows which one it used for each channel.
Read from the file
BLF logs written by Vector tools store the bit timing of both phases with each CAN FD frame. The tool reads it, so there is nothing to enter.
Inferred from timestamps
Two frames can't overlap, so the gap between them can't be shorter than a frame. The slowest standard rate no gap contradicts is suggested, and called exact only when frames run back to back at it.
Entered by you
When the timestamps give only a lower bound, the tool assumes 500 kbit/s (2 Mbit/s data phase) and marks the rate. Type the rate from your network spec and every number updates.
How to measure bus load from a log
Four steps, all in the browser.
Open the log
Drop a BLF, ASC, MF4, CSV or candump file, or try the sample log.
Check the bit rates
Each channel shows its rate and where it came from. Correct any rate marked as assumed.
Read the load
Pick a channel and a window. Average, peak, 95th percentile and the chart update at once.
Find the heavy IDs
The ID table ranks messages by bus time. Export the windows as CSV for a report.
How high is too high?
There is no single limit. Network specifications set their own, and design guides often quote about 80% as a ceiling.
Average
How full the bus is over the whole recording. Compare it with the budget in your network specification, not with 100%.
Peak
Bursts matter more than averages. A 1 s average can hide 10 ms windows close to 100%, where low-priority frames have to wait. Check the peak at 10 ms as well.
Heavy IDs
A few fast or long CAN FD messages often take most of the bus time. The ID table shows which to look at first.
Before and after
Record the same drive before and after a software change and compare at the same window to see what a new message costs.
What it can't see
The result is the load of the frames in the file. Some bus time never reaches a log.
Missed frames
If the logger dropped frames or filtered IDs, their bus time is missing and the load reads low.
Retransmissions
A frame that lost arbitration or its ACK is sent again but logged once. Recorded error frames count at their minimum length.
Bit rate switching
Bits are counted exactly, and the two rate switches in a CAN FD frame are timed at their sample points. On a real CAN FD recording from Vector hardware, the result was within about 1% of the frame lengths the hardware measured.
Timestamps
Inference expects each timestamp at the end of its frame, as Vector loggers write them. Logs with identical timestamps need the rate entered.
Other buses
LIN and other non-CAN frames in the same file are left out of the load.
Privacy
The file is read and analysed in your browser. Nothing is uploaded.
CAN bus load FAQ
How do you calculate CAN bus load?
Add up the time every frame occupies the bus in a window and divide by the window length. A frame's time is its bit count, including stuff bits and the interframe space, divided by the bit rate. CAN FD frames with bit rate switching use the data rate for the data phase.
Why does my result differ from CANoe?
Tools differ in whether they count the interframe space, how long their windows are and how they average. This tool counts the interframe space and uses fixed windows from the start of the file. For logs from Vector hardware you can switch to the frame lengths the logger recorded and compare.
Do I need to know the bit rate?
Not for BLF logs from Vector tools with CAN FD frames, which store it. For other files the tool infers it from the timestamps when the bus is busy enough; otherwise it assumes 500 kbit/s and asks you to check.
Does it work with CAN FD?
Yes. The arbitration and data phases are timed at their own bit rates, with the CAN FD stuff count, fixed stuff bits and a 17- or 21-bit CRC.
What bus load is acceptable?
It depends on your network specification. Many guides put the ceiling around 80% and design for less. Check the peak at short windows as well as the average.
Is my log uploaded?
No. The file is read and analysed in your browser and never leaves your computer.
Which file formats are supported?
Vector BLF and ASC, ASAM MF4 bus logging files, CSV exports and candump .log files up to 150 MB.
More free tools
The next job after this one, each on its own page.