Vehicle Communication and Networking · Diagnostics transport
ISO-TP
ISO Transport Protocol (ISO 15765-2)
Also known as ISO 15765-2, DoCAN transport layer, CAN TP, CanTp, isotp
The transport and network-layer protocol of ISO 15765-2 that splits messages longer than one CAN frame into a sequence of frames with flow control, so diagnostic protocols such as UDS can exchange long messages over CAN and CAN FD.
Explanation
A Classical CAN frame holds only 8 bytes, but diagnostic requests and responses, such as data records or software blocks, are often much longer. ISO-TP adds a small protocol control header to each frame. It uses single frames for short messages, and first frames, consecutive frames and flow-control frames for segmented transfers. It works on Classical CAN and CAN FD and is used, for example, as the transport for UDS on CAN (ISO 14229-3) and for emissions-related diagnostics.
Addressing can be physical (one-to-one) or functional (one-to-many). Normal addressing uses the CAN identifier alone, while extended and mixed addressing also use the first byte of the payload. The current edition is ISO 15765-2:2024. ISO marks it as to be revised, with a fifth edition at committee-draft stage.
The ISO-TP transport is unconfirmed: it does not acknowledge each message end to end, so the application protocol (for example UDS responses and timeouts) provides confirmation. Throughput is limited by the receiver's chosen block size and minimum separation time (STmin).
How it works
If the payload fits in one frame, the sender transmits a single frame that includes the length. Otherwise it sends a first frame with the total length and the first bytes, then waits. The receiver answers with a flow-control frame giving a block size and STmin. The sender transmits numbered consecutive frames, pausing after each block for the next flow-control frame, until the whole message has been sent.
Automotive applications
- UDS diagnostics over CAN and CAN FD
- ECU reprogramming over CAN
- Emissions-related OBD diagnostics
- Any request-response protocol needing payloads larger than one frame
Example
A tester requests a 200-byte calibration record. The ECU replies with a first frame announcing 200 bytes, and the tester returns flow control with block size 8 and STmin 1 ms. The ECU then sends the rest in consecutive frames, pausing after every eight for further flow control.
An illustrative example: any figures in it are worked numbers, not measurements.
Standard details
- Standard
- ISO 15765-2
- Edition
- ISO 15765-2:2024 (Edition 4)
- Publication status
- Published; marked 'to be revised' (stage 90.92), with ISO/CD 15765-2 (Edition 5) under development
- Scope
- Specifies a transport protocol and network-layer services for diagnostic communication on CAN-based vehicle networks.
- How this was checked
- Direct fetch of iso.org returned HTTP 403; edition and stage from the iso.org catalogue as returned by web search. The Linux kernel ISO-TP documentation also cites the 2024 edition.
References
- ISO 15765-2 (ISO-TP) (opens in a new tab)
“ISO 15765-2, also known as ISO-TP, is a transport protocol specifically defined for diagnostic communication on CAN.”
- ISO 15765-2:2024 Road vehicles — Diagnostic communication over Controller Area Network (DoCAN) — Part 2: Transport protocol and network layer services (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.