Vehicle Communication and Networking · Middleware function
Service Discovery
Also known as SOME/IP-SD, DDS discovery, SPDP, SEDP, dynamic service discovery
The runtime mechanism by which distributed software finds out which services or data endpoints exist on the network, where they are and whether they are available, instead of relying only on statically configured addresses.
Explanation
Service-oriented vehicle software needs clients to locate service instances that may start, stop or move. In SOME/IP, the companion protocol SOME/IP-SD (AUTOSAR Foundation, R26-11) locates service instances, detects when they are available and implements publish/subscribe handling. Servers send offer entries, clients can send FindService requests, and clients subscribe to eventgroups. SD messages use a reserved header (service ID 0xFFFF, method ID 0x8100) and run only over UDP, even though SOME/IP itself supports TCP and UDP.
DDS uses a two-phase process based on the RTPS protocol. In the participant discovery phase, each DomainParticipant announces itself periodically, by default on well-known multicast addresses derived from the domain ID. In the endpoint discovery phase, participants exchange information about their DataWriters and DataReaders and match compatible ones. ROS 2 uses this distributed discovery by default, while alternatives such as a Fast DDS discovery server or the Zenoh router centralise it.
Discovery adds start-up delay and network traffic and is an attack surface, since offers could be spoofed. Systems may partly pre-configure it (for example DDS static endpoint discovery) and need security measures to authenticate participants.
How it works
A server announces each service instance it provides, together with its endpoint (IP address, port and transport protocol), and repeats the offer periodically. Clients that need the service listen for offers or search for it actively. Once a service is found, the client connects to it or subscribes to its event groups. If offers stop arriving, clients treat the service as unavailable and can fail over to another instance.
Automotive applications
- Locating SOME/IP services in AUTOSAR systems
- Automatic matching of DDS and ROS 2 publishers and subscribers
- Failover to redundant service instances
- Plug-and-play integration of test tools
Example
After the ADAS computer boots, its object-fusion service starts offering itself via SOME/IP-SD. The planning ECU, which has been sending FindService requests, receives the offer, subscribes to the object-list eventgroup and starts receiving notifications without any hard-coded IP address.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- SOME/IP Service Discovery Protocol Specification (Document UID 802), R26-11 (opens in a new tab)
“SOME/IP-SD can be used for service discovery in vehicle networks.”
- SOME/IP technical details (opens in a new tab)
- Fast DDS documentation: 5. Discovery (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.