SOME/IP (Scalable service-Oriented MiddlewarE over IP) is an automotive middleware protocol for service-oriented communication between software components running on different ECUs. It supports request/response methods, event notifications and fields, and it can use SOME/IP Service Discovery (SOME/IP-SD) to find service instances and manage event-group subscriptions.
SOME/IP is commonly deployed over Automotive Ethernet and IP networks. It is not itself an Ethernet PHY, switch protocol or replacement for IP. It defines application communication message formats and semantics above the transport and network layers.
Implementation note: SOME/IP behavior depends on the applicable AUTOSAR specifications, service-interface definitions, deployment configuration, network design and OEM requirements. Confirm identifiers, serialization, transport, timing, discovery options and supported message types against the controlled project baseline. Examples in this article are illustrative, not normative configuration values.
1. Why SOME/IP is used in automotive systems
Traditional ECU communication often uses signals and messages with statically configured communication relationships. As vehicle software becomes more distributed, service-oriented communication provides another way to structure interactions: a software component offers a capability, and one or more consumers use that capability through a defined interface.
Typical use cases include:
- Vehicle-state and motion information distributed to multiple consumers.
- ADAS functions exchanging object, environment or feature data.
- Body, comfort and cockpit functions consuming services from domain or zonal controllers.
- Infotainment and connectivity applications communicating with other vehicle services.
- Software components that need runtime service availability and event subscription behavior.
SOME/IP is useful when the architecture benefits from service interfaces, methods, events and discovery. It does not automatically guarantee deterministic timing, functional safety, cybersecurity or reliable delivery. Those properties require system-level design, transport selection, network configuration, resource management and verification.
2. Where SOME/IP fits in the protocol stack
A SOME/IP message is carried over an underlying transport and network path. A typical path looks like this:
| Layer | Responsibility | Engineering examples |
|---|---|---|
| Application | Implements the vehicle function | Vehicle status, speed provider, ADAS consumer |
| SOME/IP | Defines service messages and request/event semantics | Methods, responses, notifications, fields |
| SOME/IP-SD | Discovers services and manages event-group subscriptions | OfferService, FindService, SubscribeEventgroup |
| Transport | Carries SOME/IP messages | UDP datagrams or TCP byte stream |
| Network | Provides endpoint addressing and routing | IP address, subnet, gateway |
| Ethernet | Transfers frames across the switched network | MAC addresses, VLANs, switch forwarding |
SOME/IP-SD is a related protocol mechanism for service discovery. SOME/IP communication can also be configured without dynamic discovery, when endpoints and service availability are statically configured. Do not assume every SOME/IP deployment uses the same discovery arrangement.
3. Service-oriented communication model
A service interface describes what a provider makes available to consumers. It defines the operations and data that can be exchanged, while deployment configuration defines how the interface is mapped onto the network.
The main roles are:
- Service provider: Offers an implementation of a service.
- Service consumer: Uses one or more operations or data elements exposed by the service.
- Service instance: A deployed instance of a service, identified within the project configuration.
- Service interface: Defines methods, events, fields and their data types.
- Deployment: Maps interface elements to identifiers, transport endpoints, event groups, serialization rules and other communication settings.
A service ID identifies a service at the SOME/IP protocol level. A service instance is a deployed occurrence of that service. The service ID alone may therefore be insufficient to identify a particular provider in a system with multiple instances.
3.1 Methods, events and fields
| Interface element | Communication pattern | Typical use |
|---|---|---|
| Method | Consumer sends a request; provider may return a response | Requesting a calculation or controlled operation |
| Event | Provider sends notifications to subscribed consumers | Publishing speed or status updates |
| Field | Represents service data with getter, setter and/or notifier behavior as defined by the interface | Reading or changing a state value and receiving updates |
A method is not the same as an event. A method request is initiated by a consumer and may have a correlated response. An event notification is produced by the provider and delivered according to the event subscription and deployment configuration.
A field is not simply another name for an event. Its getter, setter and notifier behavior should be defined by the interface model and supported by the middleware implementation.
4. SOME/IP message format
A standard SOME/IP message has a 16-byte header followed by an optional payload. The header carries message identity, length, request correlation and protocol information.
| Header field | Size | Purpose |
|---|---|---|
| Message ID | 4 bytes | Combines the Service ID and Method ID or Event ID |
| Length | 4 bytes | Gives the number of bytes following the Length field |
| Request ID | 4 bytes | Combines Client ID and Session ID for request/response correlation |
| Protocol Version | 1 byte | Identifies the SOME/IP protocol version |
| Interface Version | 1 byte | Identifies the major interface version used by the message |
| Message Type | 1 byte | Identifies the message category, such as request, response or notification |
| Return Code | 1 byte | Indicates the processing result where applicable |
The Length field counts the bytes after the Length field itself: the Request ID, the remaining fixed header bytes and the payload. For the standard fixed header, this means the length includes eight bytes of header fields after Length, plus the payload size.
4.1 Message ID
The Message ID is 32 bits and is composed of:
- Service ID: 16 bits identifying the service.
- Method ID or Event ID: 16 bits identifying the method or event within that service.
The interpretation of the lower part depends on the message and interface definition. A packet decoder needs the service/interface deployment information to label a message correctly.
4.2 Request ID
The Request ID is composed of:
- Client ID: Identifies the requesting client in the relevant deployment context.
- Session ID: Helps correlate a response with a request.
For a request/response exchange, the consumer uses the correlation information to associate the received response with the outstanding request. An event notification is not a response to a method call and should not be correlated as one.
4.3 Message type and return code
The Message Type distinguishes the kind of SOME/IP message. Common categories include request, request without return, notification, response and error. SOME/IP also defines acknowledgement and transport-protocol-related message types for applicable use cases.
The Return Code communicates the processing result for message types where it is meaningful. A decoder should interpret it together with the Message Type and the relevant specification. Do not treat every nonzero value as an application-specific UDS-style negative response: SOME/IP and UDS have different message semantics.
5. Method request and response flow
A method is used when a consumer needs a provider to perform an operation or return information. A typical request/response flow is:
- The consumer prepares the method parameters according to the service interface.
- The SOME/IP middleware creates a request message with the configured service/method identity and request correlation information.
- The message is transported to the provider using the configured endpoint and transport.
- The provider validates and processes the request.
- The provider sends a response when the method contract requires one.
- The consumer matches the response to the outstanding request and decodes the payload.
A method may be configured as a request/response interaction or as a request without a return, depending on the interface definition. Do not assume every request produces a response payload.
5.1 Method engineering checks
- Confirm the Service ID, Method ID and interface version.
- Verify the request and response data types and serialization.
- Check the configured transport protocol and endpoint.
- Confirm request timeout and error-handling behavior.
- Verify that the response is correlated to the correct outstanding request.
- Test provider unavailability, delayed response and malformed payload behavior.
- Confirm how concurrent requests are distinguished and resource-limited.
6. Events, event groups and notification flow
Events allow a provider to publish data without requiring each consumer to poll the provider continuously. Consumers can subscribe to event groups, and the provider sends notifications according to the interface and deployment configuration.
An event group is a deployment construct that groups events for subscription purposes. It is not the same as a Service ID or an Event ID.
The diagram is conceptual. The exact discovery exchange, endpoint options, multicast/unicast use, subscription acknowledgement and renewal behavior depend on the applicable SOME/IP-SD specification and deployment.
6.1 Event delivery considerations
- The consumer must subscribe to the correct service instance and event group.
- The provider must accept and maintain the subscription according to the configured policy.
- The event payload must match the interface serialization.
- Update frequency and data validity must be defined by the application requirements.
- Multicast and unicast endpoint behavior must match the network configuration.
- Consumers must handle service disappearance, subscription expiry and provider restart.
- Packet loss and consumer overload must be considered; event delivery should not be assumed to be lossless merely because the service uses Ethernet.
7. SOME/IP Service Discovery (SOME/IP-SD)
SOME/IP-SD provides mechanisms for service availability discovery and event-group subscription management. It is commonly used when service consumers and providers need to discover one another dynamically.
Important SD entry concepts include:
| SD operation / concept | Purpose |
|---|---|
| OfferService | Provider announces that a service instance is available |
| FindService | Consumer searches for a service |
| StopOfferService | Provider indicates that a previously offered service is no longer available |
| SubscribeEventgroup | Consumer requests subscription to an event group |
| SubscribeEventgroup acknowledgement | Provider indicates the outcome of a subscription request |
| TTL | Time-to-live information used to manage the validity of offers or subscriptions |
The exact entry and option fields, flags, timing and transport behavior must be interpreted using the relevant SOME/IP-SD specification and deployment configuration.
7.1 Offer and find behavior
A provider may offer a service using configured announcement behavior. A consumer may issue a find request when it needs to locate a service. Depending on the deployment, service offers and discovery messages can use multicast and/or unicast.
When a service offer expires, the consumer should treat the offer as no longer valid according to the SD state handling. It should not continue using stale endpoint information indefinitely.
7.2 Event-group subscription lifecycle
A consumer requests an event-group subscription. The provider evaluates the request and returns the applicable acknowledgement or rejection behavior. Subscriptions may need renewal according to their TTL and the deployment rules.
When a provider restarts, consumers may need to rediscover the service and re-establish subscriptions. The exact recovery behavior should be tested rather than assumed.
7.3 Multicast and network configuration
SOME/IP-SD often uses multicast for discovery in configured deployments. This makes network configuration important:
- Confirm multicast addresses and ports from the approved deployment.
- Verify VLAN membership and multicast forwarding behavior.
- Check IGMP snooping or multicast-management configuration where applicable.
- Confirm that switch filtering does not block required discovery traffic.
- Verify endpoint options and unicast return paths.
- Capture traffic at both provider and consumer sides when discovery fails.
Do not copy multicast addresses, ports or timing values from an unrelated project. They are configuration items and must come from the approved deployment and specification baseline.
8. UDP and TCP transport selection
SOME/IP can be deployed over UDP or TCP, depending on the service and system requirements. The transport choice affects delivery behavior, connection management, message handling and timing.
| Characteristic | SOME/IP over UDP | SOME/IP over TCP |
|---|---|---|
| Transport model | Datagram-based | Connection-oriented byte stream |
| Message boundaries | Datagram boundaries are preserved by UDP | Application must reconstruct SOME/IP messages from the byte stream |
| Delivery | No transport-level guarantee of delivery or ordering | Reliable, ordered byte stream while the connection remains viable |
| Connection setup | No TCP-style connection establishment | TCP connection establishment required |
| Engineering focus | Loss, duplication, ordering assumptions, datagram size and timeout behavior | Connection lifecycle, segmentation, stream framing, retransmission and timeout behavior |
Neither transport automatically guarantees application deadlines or deterministic end-to-end latency. A system must define timeout behavior, load assumptions, recovery behavior and acceptable data age.
8.1 TCP stream parsing
A common implementation error is assuming that one TCP segment contains one complete SOME/IP message. TCP provides a byte stream, so a message can be split across multiple segments or multiple messages can be delivered together. The receiver must reconstruct message boundaries using the SOME/IP header and Length field.
8.2 UDP datagram handling
With UDP, a datagram boundary is preserved, but the receiver still needs to validate the SOME/IP message length and payload. The system should define behavior for lost, duplicated, delayed or out-of-order datagrams where those conditions matter to the application.
9. Payload serialization and interface compatibility
SOME/IP defines the message envelope, but the service interface and serialization rules define how application data is represented in the payload.
The interface description should define:
- Data types and their widths.
- Field order and serialization rules.
- Array and string representation.
- Optional or variant data behavior.
- Units, scaling and invalid values.
- Interface major/minor versioning policy.
- Method request and response parameter layout.
- Event payload layout.
- Compatibility expectations between provider and consumer software versions.
A packet capture may show a valid SOME/IP header while the application still decodes the payload incorrectly. Possible causes include mismatched interface versions, incorrect serialization configuration, incompatible generated code or an outdated interface description.
9.1 Version compatibility
The interface version in the SOME/IP header is not a substitute for the complete service deployment configuration. Projects should define how providers and consumers handle major and minor version compatibility, including behavior when a consumer encounters an unsupported version.
Do not assume that two ECUs are compatible merely because they use the same Service ID. Confirm the service instance, interface version, method/event definitions, serialization and endpoint configuration.
10. AUTOSAR integration considerations
SOME/IP is used in AUTOSAR-based architectures, but the integration path differs between Classic and Adaptive Platform deployments and depends on the AUTOSAR release and project architecture.
At a high level:
- AUTOSAR Adaptive Platform: Service-oriented communication is a central architectural concept. Service interfaces and deployment descriptions are used to configure communication between applications and processes.
- AUTOSAR Classic Platform: SOME/IP communication may be supported through the applicable communication stack and integration architecture, depending on the ECU software design and AUTOSAR release. Do not assume every Classic ECU includes the same SOME/IP capabilities.
- Generated configuration and code: Interface and deployment descriptions may be used by tools to generate or configure communication artifacts. Keep these outputs aligned across provider and consumer builds.
- Integration: Verify the configured service identifiers, instance identifiers, endpoints, event groups, transport and serialization against the system design.
The exact AUTOSAR modules, APIs, configuration artifacts and supported features are release- and vendor-dependent. Use the relevant AUTOSAR specifications and supplier documentation rather than assuming one universal module arrangement.
11. Practical example: VehicleStatus service
Consider a provider ECU that offers vehicle speed and a consumer ECU that uses the information for a display or driver-assistance function.
The interface could conceptually contain:
- A
GetVehicleSpeedmethod to request the current value. - A
VehicleSpeedChangedevent to publish updates. - A
VehicleSpeedfield with getter and notifier behavior if defined by the interface.
These names are illustrative. The real Service ID, Method ID, Event ID, Event Group ID, data type, scaling, units, update rate and endpoint must be defined by the project's interface and deployment descriptions.
A practical integration sequence is:
- Provider and consumer teams agree on the service interface.
- The deployment assigns identifiers, versions, endpoints and transport.
- The provider starts and offers the service if SOME/IP-SD is used.
- The consumer discovers the intended service instance.
- The consumer subscribes to the required event group.
- The provider sends event notifications and responds to method requests as defined.
- The consumer validates payload values, timing and data freshness.
- Both sides handle provider restart, service disappearance and communication faults.
12. Packet capture and trace analysis
A packet capture is most useful when interpreted with the service interface and deployment configuration. The following sequence is a practical review method:
- Identify the source and destination IP addresses.
- Identify UDP or TCP and the configured source/destination ports.
- Decode the SOME/IP header and validate the declared message length.
- Interpret the Message ID using the service and method/event mapping.
- Check the Request ID for request/response correlation where applicable.
- Interpret the message type and return code.
- Decode the payload using the correct interface and serialization definition.
- For SD traffic, inspect service offers, find requests, subscription entries, options and TTL behavior.
- Correlate timestamps with provider, consumer and application logs.
| Symptom in trace | First checks |
|---|---|
| No SOME/IP packets | ECU interface state, application/provider state, IP path and endpoint configuration |
| SD offer not visible at consumer | Multicast path, VLAN, switch filtering, configured SD endpoint and capture location |
| Service offer visible but method times out | Consumer endpoint, transport, provider method state, firewall/ACL and response path |
| Method response cannot be matched | Client ID, Session ID, outstanding-request state and provider response behavior |
| Subscription rejected | Service instance, event-group ID, endpoint options, TTL and provider policy |
| Subscription accepted but no events arrive | Event production, event-to-group mapping, endpoint path, multicast/unicast configuration and provider state |
| Payload decodes incorrectly | Interface version, serialization, data type definition and generated-code/configuration baseline |
13. Verification strategy and practical test cases
A complete test strategy should cover service availability, method behavior, event delivery, discovery, version compatibility, transport behavior and fault recovery.
| Test ID | Test objective | Stimulus | Example expected observation |
|---|---|---|---|
| SOMEIP-001 | Service offer | Start provider with approved configuration | Expected service instance is offered |
| SOMEIP-002 | Service discovery | Start consumer and request the configured service | Consumer identifies the intended service instance |
| SOMEIP-003 | Method request/response | Send a valid method request | Correct response is correlated to the request |
| SOMEIP-004 | Request timeout | Delay or suppress provider response in a controlled test | Consumer applies the specified timeout and recovery behavior |
| SOMEIP-005 | Event subscription | Subscribe to a configured event group | Provider returns the expected subscription result |
| SOMEIP-006 | Event notification | Publish a valid event after subscription | Consumer receives and decodes the event as specified |
| SOMEIP-007 | Subscription expiry | Allow the configured subscription TTL to expire in a controlled test | Consumer/provider state follows the defined lifecycle |
| SOMEIP-008 | Version compatibility | Use a provider/consumer version combination defined for compatibility testing | Compatibility behavior matches the interface policy |
| SOMEIP-009 | Provider restart | Restart the provider during operation | Discovery and subscription recover according to requirements |
| SOMEIP-010 | Payload validation | Send valid, boundary and invalid payload values | Consumer validates data and handles invalid values as specified |
| SOMEIP-011 | Network load | Apply the defined traffic profile | Latency, loss and resource usage remain within project limits |
| SOMEIP-012 | Transport interruption | Interrupt the configured transport path | Application detects and handles communication loss as specified |
A production test specification must add preconditions, software/configuration baseline, exact interface identifiers, test setup, stimulus timing, acceptance thresholds and evidence requirements. Do not invent universal timeout or latency values; derive them from system requirements.
13.1 Evidence to retain
- Provider and consumer software versions.
- Service interface and deployment description versions.
- ECU IP and transport endpoint configuration.
- SOME/IP and SOME/IP-SD packet captures.
- Provider and consumer application logs.
- Switch/VLAN/multicast configuration where relevant.
- Test input, timestamps, expected result and verdict.
- Relevant requirements and regression-test references.
14. Troubleshooting workflow
When SOME/IP communication fails, isolate the problem layer by layer:
- Confirm both ECUs are powered and their Ethernet links are established.
- Verify VLAN, IP addressing, routing and basic endpoint reachability.
- Confirm the provider application is running and configured to offer the service.
- Inspect SOME/IP-SD traffic if discovery is used.
- Confirm the consumer uses the correct service and instance configuration.
- Check method/event identifiers, interface version and transport endpoints.
- Inspect event-group subscription state and endpoint options.
- Decode the message payload using the correct interface definition.
- Correlate packet captures with application logs and timing requirements.
- Reproduce the issue with a controlled test and add a regression case.
14.1 Common root-cause patterns
- No service offer: Provider startup, deployment configuration, network path or SD transmission issue.
- Offer received, method fails: Wrong endpoint, transport mismatch, provider method error, timeout or response-path issue.
- Subscription rejected: Incorrect event-group configuration, unsupported subscription or provider policy.
- Subscription accepted, no event: Event not produced, incorrect event-group mapping, endpoint or multicast path issue.
- Payload is corrupted or implausible: Interface mismatch, serialization mismatch, incorrect data interpretation or stale generated artifacts.
- Intermittent communication: Network congestion, packet loss, ECU load, lifecycle handling or timing assumptions.
15. Common engineering mistakes
- Treating SOME/IP and SOME/IP-SD as the same thing.
- Assuming every SOME/IP deployment uses dynamic service discovery.
- Confusing Service ID, Method ID, Event ID, Instance ID and Event Group ID.
- Treating events as method responses.
- Assuming a field is simply an event without checking getter/setter/notifier semantics.
- Assuming one TCP segment always contains one complete SOME/IP message.
- Decoding payload bytes without the matching service interface and serialization definition.
- Assuming multicast discovery works without validating VLAN and switch multicast configuration.
- Treating successful IP connectivity as proof that a service is available.
- Reusing identifiers, endpoint values or timing assumptions from another vehicle program.
- Failing to test provider restart, subscription expiry and consumer recovery.
16. Key takeaways
- SOME/IP provides service-oriented communication over IP-based networks.
- Methods support consumer-initiated operations; events publish provider notifications; fields model service data with defined access and notification behavior.
- SOME/IP-SD supports service discovery and event-group subscription management when used by the deployment.
- The SOME/IP header carries message identity, length, request correlation, version, message type and return code.
- The service interface and deployment define identifiers, payload serialization, endpoints and compatibility.
- UDP and TCP have different transport behavior; neither guarantees application-level deadlines by itself.
- AUTOSAR integration is release- and architecture-dependent.
- Effective debugging correlates packet captures, service descriptions, deployment configuration and ECU logs.
17. Check your understanding
- What is the difference between SOME/IP and SOME/IP-SD?
- How are Service ID and Method ID represented in the Message ID?
- What is the purpose of the Request ID?
- How does a method differ from an event?
- What is an event group used for?
- Why must a TCP receiver use the SOME/IP Length field?
- Why can an SD offer be visible while a method call still fails?
- What information is needed to decode a SOME/IP payload correctly?
- Why should multicast configuration be checked during service-discovery troubleshooting?
- Why is a provider restart an important integration test?
Suggested answers
- SOME/IP defines service communication messages and semantics; SOME/IP-SD manages service availability discovery and event-group subscriptions.
- The 32-bit Message ID contains a 16-bit Service ID and a 16-bit Method ID or Event ID.
- It combines Client ID and Session ID to support request/response correlation.
- A method is consumer-initiated and may return a correlated response; an event is provider-published notification data.
- It groups events for subscription management.
- TCP is a byte stream and does not preserve SOME/IP message boundaries.
- Discovery only indicates service availability; transport endpoints, method configuration, provider state or application behavior can still be wrong.
- The matching service interface, data types, serialization rules and deployment/version configuration.
- SD commonly uses multicast in configured deployments, and VLAN or switch filtering can prevent messages from reaching consumers.
- It verifies that service availability, discovery and subscriptions recover correctly after lifecycle changes.
Related articles
- Automotive Ethernet Explained: Physical Layers, Network Architecture and Packet Flow
- DoIP — ISO 13400: A Practical Automotive Engineering Guide
- UDS over Automotive Ethernet: A Practical Engineering Guide
- AUTOSAR Communication Stack Explained
Further reading
Use the applicable AUTOSAR specifications for SOME/IP and SOME/IP-SD, the controlled service-interface and deployment descriptions, the relevant transport and Ethernet specifications, ECU supplier documentation and OEM network architecture documents. Confirm message formats, supported options, serialization, timing and lifecycle behavior against the exact project baseline.
