Vehicle body electrical network architecture based on remote virtual shared memory mechanism
Technical Field
The invention relates to a vehicle body electrical network architecture based on a remote virtual shared memory mechanism, and belongs to the field of vehicle body electrical network architectures.
Background
The Zonal body electrical architecture based on ethernet is becoming a popular architecture for next generation intelligent automobiles. In the Zonal architecture, most of the body's functional computations are in the central computer. The Zonal end controller is directly connected with the execution unit or the sensing unit. Most of the data is forwarded by Zonal and runs in the central computer. Whether most of the business logic is running in the central computer or some of the business is running on the edge Zonal controller, there is often a need to pay attention to the same data between these programs and a high degree of consistency is required. The situation of repeatedly calling and exchanging data occurs, the high-efficiency and high-performance real-time data transmission cannot be guaranteed, and more network resources are occupied.
Disclosure of Invention
The invention aims to solve the technical problems that: how to realize high-performance sharing and exchanging data based on the Zonal vehicle body electrical network architecture.
In order to solve the technical problems, the technical scheme provided by the invention is as follows: a car body electric network architecture based on a remote virtual shared memory mechanism comprises a car body electric network architecture body, and further comprises a first virtual shared memory, a second virtual shared memory, middleware and a TSN protocol stack on a computer platform; all the computing nodes in the body electrical network architecture body are interconnected through Ethernet, and all the computer nodes have corresponding application programs;
the first virtual shared memory is used for managing data used for exchanging and sharing in the vehicle body electric network architecture;
the second virtual shared memory is used for managing data local to the computing platform;
if the data which does not exist in the second virtual shared memory is required to be accessed or a new first virtual shared memory is created, the management program in the vehicle body electrical network mechanism is required to complete distribution and remote synchronous copying;
the middleware is used for serving DDS, remote procedure call RPC type or signal message type for data distribution; the first virtual shared memory pre-allocates space for each middleware; the application program exchanges external data through the middleware; the first virtual shared memory and the second virtual shared memory exchange data synchronously through a remote direct data access protocol and a RoCE protocol;
and the TSN protocol stack is a parameter layer and is used for scheduling the resources in the Ethernet.
The further improvement of the scheme is as follows: the first virtual share is based on the accessed message of the middleware request when the data synchronous exchange is carried out by the remote direct data access protocol.
The further improvement of the scheme is as follows: the remote direct data access is realized by a hardware acceleration mode.
The further improvement of the scheme is as follows: when the TSN protocol stack performs resource scheduling, mapping is required to be performed with a QoS (quality of service) parameter of the middleware or a channel allocation parameter of the first virtual shared memory so as to meet the transmission priority requirement of channel allocation.
The beneficial effects of the invention are as follows: the virtual shared memory is used for mapping the data to be shared in the whole vehicle body network into the shared memory, so that the application program and the middleware can be conveniently accessed. Efficient data synchronization is performed using remote direct data access RDMA/RoCE as a protocol for data synchronization.
Drawings
Fig. 1 is a schematic diagram of a vehicle body electrical network architecture based on a remote virtual shared memory mechanism according to an embodiment of the present invention.
Detailed Description
Examples
The vehicle body electrical network architecture based on the remote virtual shared memory mechanism of the embodiment, as shown in fig. 1, comprises a vehicle body electrical network architecture body, and further comprises a first virtual shared memory, a second virtual shared memory, middleware and a TSN protocol stack on a computer platform; all the computing nodes in the body electrical network architecture body are interconnected through Ethernet, and all the computer nodes have corresponding application programs;
the first virtual shared memory is used for managing data used for exchanging and sharing in the vehicle body electric network structure;
the second virtual shared memory is used for managing data local to the computing platform and is a plurality of independent components existing in the local shared memory pool.
If the data which does not exist in the second virtual shared memory is required to be accessed or a new first virtual shared memory is created, the management program in the vehicle body electrical network mechanism is required to complete distribution and remote synchronous copying; i.e. if access to locally non-existent data is required, or a new shared memory area is created, allocation and remote synchronization copying is done by the hypervisor.
Middleware is used for serving DDS, remote procedure call RPC type or signal message type for data distribution; the first virtual shared memory pre-allocates space for each middleware; the application program exchanges external data through the middleware; the first virtual shared memory and the second virtual shared memory exchange data synchronously through a remote direct data access protocol and a RoCE protocol;
the TSN protocol stack is a parameter layer for scheduling resources in the Ethernet.
When the first virtual shared memory is subjected to data synchronous exchange by means of a remote direct data access protocol, the accessed range is based on a message requested by the middleware, and only the memory which is required to be accessed by the local computer platform exists in the first virtual shared memory, so that the corresponding local mirror image exists in the first virtual shared memory.
Remote direct data access is realized by a hardware acceleration mode, and an IP protocol stack with huge expenditure can be bypassed.
When the TSN protocol stack performs resource scheduling, mapping is required to be performed with a QoS (quality of service) parameter of the middleware or a channel allocation parameter of the first virtual shared memory so as to meet the transmission priority requirement of channel allocation; and according to the service requirement, different synchronous performances are provided for different data.
Through the vehicle body electrical network architecture of the embodiment, various data of the vehicle body, particularly sensor data, can be accessed by means of a simple programming model, a request can be initiated through middleware to respond in time, the same data can be shared and called in a centralized mode, and meanwhile quick data issuing can be achieved. The user may choose different middleware to program, and may even use local middleware technology that does not support remote. And other services requiring communication can be realized by multiplexing the traditional network protocol. Because the virtual shared memory maps various data to be shared in the whole vehicle body network, various applications and middleware can be easily accessed.
The present invention is not limited to the specific technical solutions described in the above embodiments, and other embodiments may be provided in addition to the above embodiments. Any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art, which are within the spirit and principles of the present invention, are intended to be included within the scope of the present invention.