SOME/IP Protocol Specification
AUTOSAR FO R19-11
Table of Contents
1 Introduction and overview 6
1.1 Protocol purpose and objectives . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Applicability of the protocol . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2.1 Constraints and assumptions . . . . . . . . . . . . . . . . . . 6
1.2.2 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.3 Dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.4 Document Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2 Protocol Requirements 8
2.1 Requirements Traceability . . . . . . . . . . . . . . . . . . . . . . . . . 8
3 Acronyms and Abbreviations 16
4 Protocol specification 18
4.1 Specification of SOME/IP on wire-format (Serialization) . . . . . . . . . 18
4.1.1 Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.1.1.1 Message ID [32 Bit] . . . . . . . . . . . . . . . . . . 20
4.1.1.2 Length [32 Bit] . . . . . . . . . . . . . . . . . . . . . 20
4.1.1.3 Request ID [32 Bit] . . . . . . . . . . . . . . . . . . . 20
4.1.1.4 Protocol Version [8 Bit] . . . . . . . . . . . . . . . . . 22
4.1.1.5 Interface Version [8 Bit] . . . . . . . . . . . . . . . . 22
4.1.1.6 Message Type [8 Bit] . . . . . . . . . . . . . . . . . . 23
4.1.1.7 Return Code [8 Bit] . . . . . . . . . . . . . . . . . . . 23
4.1.1.8 Payload [variable size] . . . . . . . . . . . . . . . . . 24
4.1.2 Event, Field and Eventgroup . . . . . . . . . . . . . . . . . . 24
4.1.3 Endianess . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.1.4 Serialization of Data Structures . . . . . . . . . . . . . . . . . 25
4.1.4.1 Basic Datatypes . . . . . . . . . . . . . . . . . . . . 26
4.1.4.2 Structured Datatypes (structs) . . . . . . . . . . . . . 27
4.1.4.3 Structured Datatypes and Arguments with Identifier
and optional members . . . . . . . . . . . . . . . . . 28
4.1.4.4 Strings . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4.1.4.5 Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4.1.4.6 Enumeration . . . . . . . . . . . . . . . . . . . . . . 40
4.1.4.7 Bitfield . . . . . . . . . . . . . . . . . . . . . . . . . . 40
4.1.4.8 Union / Variant . . . . . . . . . . . . . . . . . . . . . 41
4.2 Specification of SOME/IP Protocol . . . . . . . . . . . . . . . . . . . . 42
4.2.1 Transport Protocol Bindings . . . . . . . . . . . . . . . . . . . 43
4.2.1.1 UDP Binding . . . . . . . . . . . . . . . . . . . . . . 43
4.2.1.2 TCP Binding . . . . . . . . . . . . . . . . . . . . . . 44
4.2.1.3 Multiple Service-Instances . . . . . . . . . . . . . . . 46
4.2.1.4 Transporting large SOME/IP messages of UDP
(SOME/IP-TP) . . . . . . . . . . . . . . . . . . . . . 47
4.2.2 Request/Response Communication . . . . . . . . . . . . . . 53
4 of 68
— AUTOSAR CONFIDENTIAL —
Document ID 696: AUTOSAR_PRS_SOMEIPProtocol