SOMEIP Gateway Architecture#
Feature Definition#
Rationale Behind Architecture Decomposition#
The SOME/IP Gateway architecture separates safety-qualified processing from the QM network stack across two daemon processes connected via mw::com (LoLa) shared-memory IPC:
Safety-qualified gateway process (
gatewayd,ASIL_B): Isolatesmw::comapplication-facing communication, sample serialization/deserialization, and contiguous 16-byte SOME/IP header framing in shared memory so future E2E protection executes entirely within theASIL_Bboundary.Central SOME/IP network daemon (
someipd,QM): Encapsulates the non-safety-qualified SOME/IP network stack, socket management, and SOME/IP Service Discovery in a singleQMprocess shared by one or moregatewaydinstances.
Used Components#
ASIL_B Side (Gateway, IPC Binding, Abstraction, and Serialization):
SOME/IP Gateway Daemon (comp__gatewayd) (
ASIL_B): Bridges localmw::comapplication services withsomeipdover the IPC binding, framing or stripping the 16-byte SOME/IP header contiguously with the payload in shared memory and serializing or deserializing application samples. See Gateway Daemon Architecture.Gateway IPC Binding (comp__gateway_ipc_binding) (
ASIL_B): Bridgessocomservices betweengatewaydandsomeipdovermw::comshared-memory IPC and provides daemon connectivity and runtime configuration exchange. See Gateway IPC Binding Architecture.SOCom (comp__socom) (
ASIL_B): In-process service-oriented communication abstraction used inside bothgatewaydandsomeipdto decouple service endpoints from IPC and network bindings. See SOCom library.SOME/IP Serializer (comp__serializer) (
ASIL_B): Serializes and deserializes application data types to and from SOME/IP wire format withingatewayd.Null Serializer (comp__null_serializer) (
ASIL_B): Passthrough serializer used bygatewaydwhen payloads are pre-serialized by the application.
QM Side (Network Daemon, Protocol, and Configuration):
SOME/IP Network Daemon (comp__someipd) (
QM): Central SOME/IP network daemon that owns the network sockets, handles SOME/IP Service Discovery, and routes messages between network peers and registeredgatewaydinstances.someip (comp__someip) (
QM): SOME/IP protocol header, identifier, and error code definitions used to frame and parse SOME/IP messages.Config (comp__config) (
QM): FlatBuffers and JSON schemas defining the gateway service and instance configuration.