CN117596143A - Real-time virtualization architecture and platform integrating computing and network - Google Patents

Real-time virtualization architecture and platform integrating computing and network Download PDF

Info

Publication number
CN117596143A
CN117596143A CN202311833459.5A CN202311833459A CN117596143A CN 117596143 A CN117596143 A CN 117596143A CN 202311833459 A CN202311833459 A CN 202311833459A CN 117596143 A CN117596143 A CN 117596143A
Authority
CN
China
Prior art keywords
time
sensitive network
network
dom
sensitive
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311833459.5A
Other languages
Chinese (zh)
Inventor
聂兰顺
王鹏
李雪
初佃辉
战德臣
徐晓飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Institute of Technology
Original Assignee
Harbin Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Institute of Technology filed Critical Harbin Institute of Technology
Priority to CN202311833459.5A priority Critical patent/CN117596143A/en
Publication of CN117596143A publication Critical patent/CN117596143A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0895Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

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, then 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 into a flow queue, and performs unified scheduling and transmitting; 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. The architecture solves the problem that the virtualization platform and the time-sensitive network are difficult to integrate.

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-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.
The real-time virtualization integrated platform based on Xen, based on the real-time virtualization general architecture integrating the calculation and the network, takes Xen as a bottom layer frame and takes an open source item 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;
the network communication between the Dom U and the Dom 0 can utilize 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, or OPC UA protocol is utilized for communication, OPC UA clients are created in the Dom U, and methods register_message () and get_message () are created on an OPC UA Server for the OPC UA clients to call and transfer time sensitive network stream information; when a time sensitive network is sent, the Dom 0 and the Dom U communicate by using a shared memory of a Xen Hypervisor layer, and message data is transmitted; UDP Server, UDP Client or UDP Client created on the Dom U is used as TSN API in the architecture;
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.
Compared with the prior art, the invention has the following advantages:
1. the invention integrates a virtualization platform and a real-time network, and provides a real-time virtualization universal architecture for integrating computation and network. In industrial sites and in-vehicle computing, applications in virtual machines are complex and require real-time communication, but these applications have different demands for real-time. With this architecture, these applications can define network flows of different real-time levels with time-sensitive networks and communicate in real-time as required.
2. The invention successfully builds a real-time virtualization integration platform based on Xen by utilizing Xen and OPC UA technology, makes an example for the general architecture, and also proves the feasibility of the architecture.
Drawings
FIG. 1 is a diagram of a real-time virtualized general architecture for computing and network integration;
FIG. 2 is a Xen-based real-time virtualized integrated platform architecture.
Detailed Description
The following description of the present invention is provided with reference to the accompanying drawings, but is not limited to the following description, and any modifications or equivalent substitutions of the present invention should be included in the scope of the present invention without departing from the spirit and scope of the present invention.
The invention provides a real-time virtualization universal architecture integrating calculation and network, as shown in fig. 1, wherein a virtual machine VM 0 is selected as a terminal capable of sending and receiving a time sensitive network in a virtualization platform, and other virtual machines VM 1-VM n collect respective time sensitive network flows into the virtual machine VM 0, perform unified scheduling and send the network flows. Meanwhile, the virtual machine VM 0 can also receive the time sensitive network stream and send the time sensitive network stream to the corresponding virtual machine.
In a virtualized platform, communication between different virtual machines is generally divided into two types, one is communication by using a virtual bridge, i.e. a network, and the other is communication by using a shared memory. The architecture defines some TSN APIs through which applications in the virtual machine can communicate with the transport scheduler in virtual machine VM 0. When the time sensitive network is transmitted, the TSN API firstly carries out network communication with the transmission scheduler, registers information of the time sensitive network flow to be transmitted, and transmits the actual time sensitive network flow to the transmission scheduler by utilizing a shared memory mechanism. The transmission scheduler receives the time sensitive network stream, stores the time sensitive network stream into a stream queue, and then performs unified scheduling and sends out the time sensitive network stream. 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.
The invention also provides a real-time virtualization integration platform based on Xen, which is shown in fig. 2, and according to the architecture, xen is taken as a bottom layer framework, and an open source item open62541 of OPC UA is taken as a main body framework. In Xen, only Dom 0 can actually transmit a time-sensitive network stream using the network card, so Dom 0 is selected as VM 0.Open62541 Open source projects integrate time-sensitive networks, so the present platform utilizes Open62541 as a specific implementation of a time-sensitive network.
Open62541 utilizes pub/sub mode to transmit time sensitive network, and also provides communication architecture of C/S. OPC UA Server is created in Dom 0 and can act as TSN Pub and TSN Sub. And creates a message structure on the OPC UA Server including a message number, a domain number, a priority, an expiration date, a specific message, etc. for transmitting and receiving the time-sensitive network stream. The network communication between the Dom U and the Dom 0 may use a common socket communication, when the time sensitive network is transmitted, the communication of control information is performed, and when the time sensitive network is received, the transmission of the message is performed. Because Open62541 provides a communication architecture for C/S, the present platform recommends using OPC UA protocol for communication. OPC UA clients are created in the Dom U, and methods register_message () and get_message () are created on the OPC UA Server to transfer time-sensitive network stream messages. When the time sensitive network is transmitted, the Dom 0 and the Dom U also use the shared memory of the Xen Hypervisor layer to communicate, and transmit the message data. Xen's shared memory is page-granularity based and is in kernel space, while applications are in user space, so ioctl is needed to translate with shared memory communication.
OPC UA Server in Dom 0 collects the time sensitive network flow from the Dom U, stores it in the message queue, and then selects the proper time sensitive network flow to send according to the comprehensive scheduling algorithm of priority and expiration date. And when receiving the time-sensitive network stream, directly transmitting specific information to the corresponding Dom U by using socket communication.

Claims (2)

1. A real-time virtualized general architecture for computing and network integration, the real-time virtualized general architecture 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-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 architecture for integrating computation and network according to claim 1, takes Xen as a bottom layer frame and takes an open source item 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 is communicated, when the time sensitive network is received, information is transmitted, when the communication is performed by utilizing an OPC UA protocol, an OPC UA Client is created in the Dom U, and a method register_message () and get_message () are created on an OPC UA Server for the OPC UA Client to call and transfer time sensitive network stream information; when a time sensitive network is sent, the Dom 0 and the Dom U communicate by using a shared memory of a Xen Hypervisor layer, and message data is transmitted; UDP Server, UDP Client or UDP Client created on the Dom U is used as TSN API in the architecture;
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.
CN202311833459.5A 2023-12-28 2023-12-28 Real-time virtualization architecture and platform integrating computing and network Pending CN117596143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311833459.5A CN117596143A (en) 2023-12-28 2023-12-28 Real-time virtualization architecture and platform integrating computing and network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311833459.5A CN117596143A (en) 2023-12-28 2023-12-28 Real-time virtualization architecture and platform integrating computing and network

Publications (1)

Publication Number Publication Date
CN117596143A true CN117596143A (en) 2024-02-23

Family

ID=89911724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311833459.5A Pending CN117596143A (en) 2023-12-28 2023-12-28 Real-time virtualization architecture and platform integrating computing and network

Country Status (1)

Country Link
CN (1) CN117596143A (en)

Similar Documents

Publication Publication Date Title
US11354179B2 (en) System, method and computer program product for sharing information in a distributed framework
EP1514191B1 (en) A network device driver architecture
US6336128B1 (en) Data-processing-aided electronic control system for a motor vehicle
CN114545906B (en) Vehicle-mounted Ethernet gateway and vehicle
CN103092676A (en) Analog input output method, device and system of virtual machine cluster
US20150046342A1 (en) System and method for telematics service of vehicle
Kenjić et al. Connectivity challenges in automotive solutions
CN114051040A (en) SOA-based communication architecture and fusion method for vehicle body domain and cockpit domain
CN117596143A (en) Real-time virtualization architecture and platform integrating computing and network
CN109286689B (en) Information sending method and device and vehicle-mounted man-vehicle interaction terminal
Takrouni et al. A new methodology for implementing the data distribution service on top of gigabit ethernet for automotive applications
CN102004716A (en) System and method for realizing device sharing
CN115616984A (en) Task processing method based on multi-core processor, numerical control machine and storage medium
CN111752575B (en) Vehicle-mounted application updating method, device, equipment and storage medium
US20070121662A1 (en) Network performance scaling
US20030204549A1 (en) Operating system for handling dynamic and static tasks
CN117807016B (en) Communication method, device and storage medium for multi-core heterogeneous system and external device
US11397592B2 (en) Configuration synthesis utilizing information extraction from service oriented architectures
CN114244878B (en) Device distributed access system and method in heterogeneous multi-core environment
WO2020028569A1 (en) Dynamically direct compute tasks to any available compute resource within any local compute cluster of an embedded system
Ferraro et al. Time-sensitive autonomous architectures
CN115037795B (en) Multi-machine communication method for embedded equipment
Shi et al. Development of Internet of Vehicle's Information System based on Cloud.
Trifunović et al. Data Exchange Interfaces in Automotive SOA
EP4044522A1 (en) Communication system, electronic control device, and communication method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination