CN-117596143-B - Real-time virtualization architecture and platform integrating computing and network
Abstract
The invention discloses a real-time virtualization universal architecture and a platform for integrating calculation and network, wherein the real-time virtualization universal architecture comprises a virtualization platform, a transmission scheduler, a TSN API and a TSN, when the virtualization platform transmits a time-sensitive network, an application program in a virtual machine VM 1-VM n firstly performs network communication with the transmission scheduler through the TSN API, registers information of a time-sensitive network flow to be transmitted, transmits the actual time-sensitive network flow to the transmission scheduler by utilizing a shared memory mechanism, receives the time-sensitive network flow, stores the time-sensitive network flow in a flow queue, performs unified scheduling and transmits the time-sensitive network flow, and when the virtualization platform receives the time-sensitive network flow, the transmission scheduler in a virtual machine VM 0 analyzes a destination of the network flow and directly transmits the network flow to a corresponding virtual machine by utilizing network communication. The architecture solves the problem that the virtualization platform and the time-sensitive network are difficult to integrate.
Inventors
- NIE LANSHUN
- WANG PENG
- LI XUE
- CHU DIANHUI
- ZHAN DECHEN
- XU XIAOFEI
Assignees
- 哈尔滨工业大学
Dates
- Publication Date
- 20260508
- Application Date
- 20231228
Claims (2)
- 1. A real-time virtualized general system integrated with a computing and network, the real-time virtualized general system comprising a virtualized platform, a transport scheduler, a TSN API, and a TSN, wherein: The virtualization platform comprises virtual machines VM 0-VM n, wherein the virtual machines VM 0 are used as terminals for sending and receiving time-sensitive networks, the other virtual machines VM 1-VM n collect respective time-sensitive network flows into the virtual machines VM 0 and perform unified scheduling, the network flows are sent, and meanwhile the virtual machines VM 0 receive the time-sensitive network flows and send the time-sensitive network flows to corresponding virtual machines; The transmission scheduler refers to a software scheduler of VM 0 when sending and receiving time sensitive network streams; The TSN API is an interface API of the transmission scheduler, which is used by application programs in other virtual machines VM 1-VM n to call the transmission scheduler; When the virtualization platform sends a time-sensitive network flow, an application program in a virtual machine VM 1-VM n firstly carries out network communication with a transmission scheduler through a TSN API, registers information of the time-sensitive network flow to be sent, then sends the actual time-sensitive network flow to the transmission scheduler by utilizing a shared memory mechanism, and the transmission scheduler receives the time-sensitive network flow, stores the time-sensitive network flow in a flow queue, and then carries out unified scheduling and sends the time-sensitive network flow; when the virtualization platform receives the time-sensitive network flow, a transmission scheduler in the virtual machine VM 0 analyzes the destination of the network flow, and then the network flow is directly sent to the corresponding virtual machine by utilizing network communication.
- 2. The real-time virtualization integration platform based on Xen is characterized in that the real-time virtualization integration platform is based on the real-time virtualization general system for integrating computation and network according to claim 1, takes Xen as a bottom layer frame and takes an Open source project Open62541 of OPC UA as a main body frame, wherein: In Xen, selecting a Dom 0 as VM 0 and a Dom U as VM 1-VM n; the Open62541 is used as a TSN to realize transmission of a time-sensitive network in a pub/sub mode, and a communication architecture of C/S is provided at the same time; Creating an OPC UAServer in the Dom 0, serving as a TSN Pub and a TSN Sub, creating a message structure on the OPC UAServer for sending and receiving time-sensitive network streams, and creating a transmission scheduler on the OPC UAServer; When the network communication between the Dom U and the Dom 0 utilizes socket communication, when a time sensitive network is transmitted, control information communication is carried out, when the time sensitive network is received, information transmission is carried out, when the communication is carried out by utilizing an OPC UA protocol, an OPC UA Client is created in the Dom U, and a method register_message () and a get_message () are created on an OPC UA Server for the OPC UA Client to call for carrying out the transmission of time sensitive network stream information; And the OPC UA Server in the Dom 0 collects the time-sensitive network flows from the Dom U, stores the time-sensitive network flows in a message queue, then selects a proper time-sensitive network flow to send according to a comprehensive scheduling algorithm of priority and expiration date, and directly utilizes socket communication to send specific information to the corresponding Dom U when receiving the time-sensitive network flow.
Description
Real-time virtualization architecture and platform integrating computing and network Technical Field The invention belongs to the field of industrial site and vehicle-mounted computing, and relates to a real-time virtualization universal architecture and platform integrating computing and network. Background In industrial sites there are many different applications which change frequently, resulting in increased complexity of the system. Different applications may have different requirements on the running environment, but they may share the same hardware platform, and these hardware platforms are mostly heterogeneous platforms. In industrial fields, communication systems are mainly implemented by field bus technology, which plays a very important role in systems of industrial fields. The field bus technology at present is about 50 or more, and various field buses are generally used in industrial fields, so that the variety of communication protocols becomes more complex. And the transmission rate of the field bus is not high, and the real-time performance is poor, so that the current increasing communication requirement cannot be met. The applications required in the automotive industry are also becoming more and more complex. People not only put forth safer and more comfortable demands on basic traffic functions of automobiles, but also put forth demands on entertainment and intelligence of automobiles. With the increasing complexity of the functionality of modern vehicles, more and more ECUs are required to perform these functions, and now a vehicle has up to hundreds of ECUs, resulting in more and more complex hardware and communication systems. And applications of human-computer interaction of automobiles such as instrument panels (ICs), in-Vehicle Infotainment Systems (IVIs), advanced Driver Assistance Systems (ADAS), etc. are increasingly complex, and the demands of these applications for real-time are also different. This requires that these applications be placed in different operating environments, call the underlying hardware together, and accomplish communication with different real-time requirements. Modern applications in the fields of industrial sites, automobiles and the like are increasing and more complex, which leads to the development of a virtualization platform. Platforms are typically built on heterogeneous devices that provide different operating environments for applications. And virtualized platforms also typically require connections to external devices, which requires real-time communication between the platform and the devices, so time sensitive network Technology (TSN) may be selected as the communication network. Disclosure of Invention Based on the problems in the industrial field and the vehicle-mounted computing field, the invention provides a real-time virtualization universal architecture for integrating computing and network, and realizes a real-time virtualization integration platform based on Xen by utilizing Xen, OPC UA and other technologies. The virtual platform and the time sensitive network can be integrated together through the framework, the problem that the virtual platform and the time sensitive network are difficult to integrate is solved, and the application in the virtual machine can communicate in real time by utilizing the time sensitive network. The invention aims at realizing the following technical scheme: a real-time virtualized general architecture for computing and network integration, comprising a virtualized platform, a transport scheduler, a TSN API, and a TSN, wherein: The virtualization platform comprises virtual machines VM 0-VM n, wherein the virtual machines VM 0 are used as terminals capable of sending and receiving time-sensitive networks, the other virtual machines VM 1-VM n collect respective time-sensitive network flows into the virtual machines VM 0 and perform unified scheduling, the network flows are sent, and meanwhile the virtual machines VM 0 receive the time-sensitive network flows and send the time-sensitive network flows to corresponding virtual machines; The transmission scheduler refers to a software scheduler of VM 0 when sending and receiving time sensitive network streams; The TAN API is an interface API of the transmission scheduler, which is used by application programs in other virtual machines VM 1-VM n to call the transmission scheduler; When the virtualization platform transmits a time-sensitive network, an application program in a virtual machine VM 1-VM n firstly performs network communication with a transmission scheduler through a TSN API, registers information of a time-sensitive network flow to be transmitted, transmits the actual time-sensitive network flow to the transmission scheduler by utilizing a shared memory mechanism, and the transmission scheduler receives the time-sensitive network flow, stores the time-sensitive network flow in a flow queue, performs unified scheduling and transmits the time-sensiti