A method for formulating a unified data model for industrial Ethernet
By formulating a unified data model for industrial Ethernet, the problem of data interconnection in the ground simulation device of space environment is solved, efficient data analysis and storage management is realized, adapting to different functional needs, and improving the control capabilities of the system.
Patent Information
- Application Number
- CN202210879168.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-25
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2042-07-25
AI Technical Summary
The communication methods of various experimental equipment in the spatial environment ground simulation device are diverse, which makes it difficult to interconnect data and difficult to achieve reasonable planning, scheduling and coordinated control.
Formulate an industrial Ethernet unified data model, and by building a unified data model architecture, obtaining data packets and communication protocols of experimental equipment, parsing and fusion, determining the number of fields and bytes, realizing data interconnection and unified storage management, And streamlined and refactored according to the usage scenario.
It realizes data interconnection in multi-source heterogeneous experimental devices, improves data packet resolution efficiency and storage space utilization, supports common and private communication protocols, and adapts to different functional requirements.
Smart Images

Figure CN115242887B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of data communication and relates to a method for formulating a unified data model of industrial Ethernet. Background Art
[0002] As human exploration of space becomes increasingly in-depth, in-depth research is urgently needed on the space environment effects of spacecraft materials, devices and their functional systems. The space environment ground simulation device is a major national scientific and technological infrastructure. Building an internationally leading space comprehensive environment ground simulation platform to simulate the main space environmental factors and their effects is a key means to solve the above problems.
[0003] The space environment ground simulation device is a complex system with a variety of experimental equipment. Since industrial Ethernet has the characteristics of high communication rate and strong stability, the space environment ground simulation device uses industrial Ethernet to transmit and exchange information on the monitoring and management data of each experimental equipment. However, for such a large-scale device composed of multiple experimental systems, each experimental system has a large number of different types of experimental equipment. These experimental equipment have various communication methods, which generate structured, semi-structured, and unstructured data such as numerical values, images, videos, and texts, forming a multi-source heterogeneous data environment. There are problems such as difficulty in interconnecting data between systems, difficulty in rationally planning and scheduling the device, and difficulty in overall control.
[0004] In order to achieve data interoperability and facilitate the rational planning, scheduling and overall control of the device, it is necessary to provide a standard, universal and unified data model for data transmission, storage and management. This model should be global, fundamental and basic, that is, the established unified data model is universal and applicable to various complex systems, which can solve the problem of data interconnection and interoperability. At the same time, it can be reconstructed based on the established unified data model according to different functional requirements. Summary of the invention
[0005] In order to solve the above problems, the present invention provides a method for formulating a unified data model for industrial Ethernet. The unified data model formulated by this method is global, fundamental and basic, and can realize the interconnection and intercommunication between data of various experimental equipment in a multi-source heterogeneous experimental device as well as the unified storage and management of data.
[0006] The objective of the present invention is achieved through the following technical solutions:
[0007] A method for formulating a unified data model for industrial Ethernet comprises the following steps:
[0008] S1. Build a unified data model architecture;
[0009] S2, obtaining data packets sent by various experimental devices in the space environment ground simulation device;
[0010] S3, obtaining the communication protocols of various experimental devices in the space environment ground simulation device, and constructing a communication protocol feature rule library;
[0011] S4. Create an experimental equipment configuration file and obtain the configuration information of each experimental equipment;
[0012] S5. Obtain the default information of each experimental equipment through the supporting information of the experimental equipment;
[0013] S6, mapping the received data packet with the communication protocol used;
[0014] S7, parsing the received data packet according to the communication protocol rules to obtain the IP address, IP port number and content information of the data packet;
[0015] S8, integrating the acquired data information, configuration information and default information;
[0016] S9, classifying the fused information and determining the number of fields of the data model;
[0017] S10, analyzing the characteristics of each field, determining the number of bytes of each field, and building a unified data model;
[0018] S11. Simplify and reconstruct the unified data model according to the usage scenarios and different functions of the data model.
[0019] Compared with the prior art, the present invention has the following advantages:
[0020] The unified data model constructed by the present invention supports the acquisition of general communication protocols and private communication protocols, can realize the interconnection and interoperability of data, and is fundamental; adopts a hierarchical parsing method to parse a part of the content each time, thereby improving the parsing efficiency of the data packet and realizing the rapid construction of the unified data model; integrates configuration information and default information on the basis of the data packet content information obtained by data packet parsing, making the established unified data model more comprehensive and global; reasonably allocates the number of field bytes by analyzing the characteristics of each field, saves storage space, and improves the transmission efficiency of the data model; according to different functional requirements, the established unified data model can be streamlined and reconstructed, which is fundamental. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a block diagram of the unified data model of Industrial Ethernet.
[0022] Figure 2 It is a flow chart for the development of the unified data model for Industrial Ethernet.
[0023] Figure 3It is a specific flow chart for formulating the unified data model of industrial Ethernet in the embodiment. DETAILED DESCRIPTION
[0024] The technical solution of the present invention is further described below in conjunction with the accompanying drawings, but is not limited thereto. Any modification or equivalent replacement of the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention should be included in the protection scope of the present invention.
[0025] The present invention provides a method for formulating a unified data model for industrial Ethernet. Figure 1 As shown, the method includes three major links: the pre-link, the parsing link and the fusion link, wherein: the pre-link includes building a unified data model architecture, acquiring data packets, configuration information, default information and communication protocols sent by each experimental device in the device and building a communication protocol feature rule library; the parsing link includes data packet IP address parsing, IP port number parsing and content information parsing; the fusion link includes determining the number of fields in the unified data model, determining the number of bytes of each field in the unified data model, and building a unified data model; the parsing link is implemented through the mapping of the pre-link, and each data packet is parsed according to the rules of the communication protocol used by the data packet; the fusion link calls all the information obtained in the pre-link and the parsing link to form each field of the data model. Figure 2 As shown, the method specifically comprises the following steps:
[0026] S1: Build a unified data model architecture through the front-end link, obtain the data packets, configuration information, default information and communication protocols sent by each experimental device in the space environment ground simulation device, and build a communication protocol feature rule library;
[0027] S2: Obtain the communication protocol used by the data packet through the mapping of the previous link and parse the received data packet according to the communication protocol rules;
[0028] S3: Obtain the IP address, IP port number and content information of the data packet through the parsing stage;
[0029] S4: All the information obtained in the pre-processing and parsing phases is called through the fusion phase to form the fields of the data model and classify and feature analyze the obtained information to determine the number of fields and the number of bytes of each field in the data model, and build a unified data model.
[0030] S5: Simplify and reconstruct the unified data model based on the usage scenarios and functions of the data model.
[0031] In the present invention, the unified data model is global, fundamental and basic.
[0032] In the present invention, the industrial Ethernet uses the IPv6 Internet Protocol.
[0033] In the present invention, the communication protocol includes universal / standard communication protocols and private communication protocols, wherein: universal / standard communication protocols include but are not limited to ModbusTCP communication protocol, EtherCAT communication protocol, PROFINET communication protocol, etc.; private communication protocol refers to unified and customized regulations on communication data format, synchronization mode, transmission speed, transmission steps, error detection and correction method, and control character definition.
[0034] In the present invention, configuration information includes static configuration information and dynamic configuration information, wherein: configuration information includes but is not limited to device name, device serial number, device usage time, etc.; static configuration information includes but is not limited to device name, device serial number, etc.; dynamic configuration information includes but is not limited to experiment sequence number, device geographic location, etc.
[0035] In the present invention, the data packet parsing method is a hierarchical parsing method. For the received data packet, the IP address is first parsed, and the IP address is divided into a destination IP address and a source IP address; the port number is then parsed, and the port number is divided into a destination port number and a source port number; and finally the data packet content is parsed.
[0036] In the present invention, the classification method adopts a hierarchical neural network classifier. First, the data domain of each field of the data packet content information field is determined by the top-level classifier, and then the data domain of each field is refined by the bottom-level classifier to determine the number of fields of the formulated unified data model. At the same time, the dependency relationship between the levels is learned to improve the classification accuracy.
[0037] Example:
[0038] This embodiment provides a method for formulating a unified data model for industrial Ethernet. Figure 3 As shown, the method comprises the following steps:
[0039] S1. Build a unified data model architecture:
[0040] Based on the analysis of data requirements for ground simulation devices in space environment, a unified data model architecture is constructed.
[0041] In this step, the data requirements can be divided into two types: the real-time and transmission volume of data collection, and the importance of data information and the degree of time correlation. Among them: the real-time and transmission volume of data collection can be divided into two modes: single data transmission and batch data transmission; the importance of data information and the degree of time correlation can be divided into hard real-time data, soft real-time data and non-real-time data.
[0042] In this step, the unified data model architecture can be divided into multiple different fields to facilitate user understanding and management, including but not limited to data model category, source system, destination system, parameter length, parameter body, timestamp, etc.
[0043] S2. Obtain the data packets sent by each experimental device in the space environment ground simulation device:
[0044] Use Wireshark to collect data packets uploaded by the system connected to the digital simulation central control system.
[0045] In this step, the data packet collection process is: obtaining a network adapter list, opening a selected network adapter, setting a data packet filter, releasing the called idle network adapter resources, performing cyclic capture of data packets, releasing resources and closing the interface.
[0046] In this step, the connected system refers to the system that interacts (is connected) with the digital simulation central control system, including 7 experimental systems, supporting systems and low-energy accelerator radiation protection system (hereinafter referred to as "radiation protection system" or "protection system"). Among them: the 7 experimental systems include comprehensive environment simulation subsystem (referred to as "comprehensive subsystem"), space life science subsystem (referred to as "life subsystem"), microscopic mechanism analysis subsystem (referred to as "microscopic subsystem"), ion accelerator subsystem, device ion irradiation subsystem (referred to as "device subsystem"), space magnetic environment simulation and research system (referred to as "magnetic system"), space plasma environment simulation and research system (referred to as "plasma system"); the supporting system includes experimental area air conditioning control system, low-energy area cooling water control system, intelligent building monitoring system and building information model (BIM).
[0047] In this step, the data packet includes but is not limited to the vacuum degree data of the integrated cabin vacuum thermal system of the integrated subsystem, the current intensity data of the 300MeV proton and heavy ion accelerator of the ion accelerator subsystem, the outlet temperature data of the magnetic sheath coil cooling water equipment of the plasma system, the magnetic induction intensity data of the superconducting quantum interferometer of the magnetic system, the state data of the high-energy ion irradiation terminal molecular pump of the device subsystem, the AC phase voltage data of the SiC chemical vapor deposition furnace of the microscopic subsystem, the operating temperature data of the femtosecond laser of the life subsystem, the humidity data of the air conditioning control and monitoring system of the experimental area, the water temperature data of the unit of the cooling water control system of the low-energy area, the radiation anomaly data of the radiation protection system area, etc.
[0048] S3. Obtain the communication protocols of each experimental device in the space environment ground simulation device and build a communication protocol feature rule library:
[0049] Obtain the communication protocols of each experimental equipment in the ground simulation device of the space environment, build a communication protocol library, learn the protocol characteristics, and build a communication protocol feature rule library.
[0050] In this step, the communication protocol includes a universal / standard communication protocol and a private communication protocol. The universal / standard communication protocol includes but is not limited to ModbusTCP communication protocol, EtherCAT communication protocol, PROFINET communication protocol, etc. The private communication protocol refers to a unified and customized regulation for the communication data format, synchronization mode, transmission speed, transmission steps, error detection and correction mode, and control character definition.
[0051] In this step, the protocol features include frame length, data field length, function code, special fields, etc.
[0052] In this step, the ModbusTCP communication protocol has a function code and a protocol identifier; the EtherCAT communication protocol uses an Ethernet data frame of type 0x88A4 for data transmission, and the EtherCAT data consists of a data header (2 bytes) and a data area (44 to 1498 bytes); the PROFINET communication protocol has a special field 0x8892, indicating that the frame is a frame of the PROFINET communication protocol.
[0053] S4. Create an experimental equipment configuration file and obtain the configuration information of each experimental equipment:
[0054] In order to ensure the foundation of the unified data model constructed, an experimental equipment configuration file is created to obtain the configuration information of each experimental equipment.
[0055] In this step, the configuration information includes static configuration information and dynamic configuration information, wherein: the static configuration information includes but is not limited to the device name, device serial number, etc.; the dynamic configuration information includes but is not limited to the experiment sequence number, device geographic location, etc.
[0056] In this step, the experimental equipment configuration file is a .xml file. An XML element can contain one or more attributes. Attributes are supplements to the information stored in the element. The attributes are composed of a name and a corresponding value to save the structured data of the experimental equipment. <node>The element indicates that at each layer <node>It can contain several <value>Elements can read or modify configuration files through a unified interface to obtain dynamic configuration information of experimental equipment. The content of Value is the configuration information.
[0057] S5. Obtain the default information of each experimental device through the supporting information of the experimental equipment:
[0058] The default information of each experimental equipment is obtained through the supporting information of the experimental equipment, wherein: the supporting information includes but is not limited to the instruction manual, teaching video, CD, etc. of the experimental equipment; the default information includes but is not limited to the production company, size and other factory information of the experimental equipment.
[0059] S6. Map the acquired data packets to the communication protocol used:
[0060] The pattern string matching algorithm is used to identify the communication protocol used by the data packet obtained in S2 from the communication protocol special rule base established in S3, and then mapping matching is performed.
[0061] S7. Analyze each data packet to obtain the data packet content information:
[0062] Each data packet obtained by S2 is parsed through the mapping relationship between the data packet and the communication protocol obtained by S6.
[0063] In this step, the parsing process includes IP address parsing, port number parsing, data packet content parsing and don't care information. Among them: the IP address is divided into a destination IP address and a source IP address, and the IP address information is obtained through the socket information; the port number is divided into a source port number and a destination port number, and the port number information is obtained through the socket information; the data packet content parsing is because different communication software has different communication protocols, and its communication content data also has different encoding methods. Therefore, in order to correctly parse the data content, different parsing methods should be used according to different protocols.
[0064] S8. Merge the acquired data packet content information, configuration information, and default information:
[0065] The configuration information obtained by S4, the default information obtained by S5 and the data packet content information obtained by S7 are merged indiscriminately to form a data packet content information field.
[0066] S9. Classify the fused information and determine the number of fields in the data model:
[0067] The information in the data packet content information field formed by S8 is classified, and the number of fields of the established unified data model is determined through the classification.
[0068] In this step, the classification method adopts a hierarchical neural network classifier. First, the data domain of each field of the data packet content information field is determined by the top-level classifier, and then the data domain of each field is refined by the bottom-level classifier to determine the number of fields of the formulated unified data model. At the same time, the dependency relationship between the levels is learned to improve the classification accuracy.
[0069] In this step, the data domain includes but is not limited to the experiment identification domain, source identification domain, data auxiliary description domain, data domain, timestamp, etc. Among them: the experiment identification domain is a set of fields that identify the content related to the experiment, including but not limited to the experiment serial number, experiment category, experiment name, etc.; the source identification domain is a set of fields that identify the content related to the data sender, including but not limited to the system identifier, subsystem identifier, unit identifier, device identifier, sub-device identifier, measurement point identifier, etc.; the data auxiliary description domain is a set of fields that assist and describe the data domain, including but not limited to the data item category, data item data type, data item priority, etc.; the data domain is a set of fields for the specific content of the data, including but not limited to the data item name, data item abbreviation, data item value, data item unit, etc.; the timestamp is the time when the data generates the action.
[0070] In this step, the unified data model adds a data extension field for extending the data structure, and can also be used as a reserved position for upgrading the data structure.
[0071] S10. Analyze the characteristics of each field, determine the number of bytes of each field, and build a unified data model:
[0072] Perform feature analysis on each field of the unified data model determined by S9 to determine the number of bytes of each field and build a complete unified data model.
[0073] In this step, the characteristics of each field include but are not limited to the semantics of each field, the encoding type of each field, and the number of bits of each field encoding. For each field, the maximum value of the number of bytes of each data corresponding to the field is selected as the number of bytes of the field in the unified data model, and the length of the constructed data field is between 46 and 1500 bytes.
[0074] S11. Simplify and reconstruct the unified data model for different functions:
[0075] According to different data usage scenarios and functions, the unified data model is streamlined and reconstructed for data transmission and storage.
[0076] In this step, the data usage scenarios include uploading data and downloading data; the data functions include but are not limited to monitoring data and operation management data.
[0077] In this step, the data model simplification and reconstruction method is to fill each field of the established unified data model and the field corresponding to each functional data according to the original data content, and fill the remaining fields with default values.< / value> < / node> < / node>
Claims
1. A method for formulating a unified data model for industrial Ethernet, characterized in that The method comprises the following steps: S1. Build a unified data model architecture, obtain data packets, configuration information, default information and communication protocols sent by each experimental device in the space environment ground simulation device, and build a communication protocol feature rule library, wherein: the unified data model architecture includes but is not limited to data model category, source system, destination system, parameter length, parameter body, and timestamp; S2, obtaining data packets sent by various experimental devices in the space environment ground simulation device; S3, obtaining the communication protocol of each experimental device in the space environment ground simulation device, and constructing a communication protocol feature rule base, wherein: the communication protocol includes a universal / standard communication protocol and a private communication protocol; the universal / standard communication protocol includes but is not limited to ModbusTCP communication protocol, EtherCAT communication protocol, PROFINET communication protocol; the private communication protocol refers to the unified and customized regulations on the communication double-transmission data format, synchronization mode, transmission speed, transmission steps, error detection and correction mode, and control character definition; S4. Create an experimental equipment configuration file and obtain the configuration information of each experimental equipment; S5. Obtain the default information of each experimental equipment through the supporting information of the experimental equipment; S6, mapping the received data packet with the communication protocol used by it; S7, parsing the received data packet according to the communication protocol rules to obtain the IP address, IP port number and content information of the data packet; S8, integrating the acquired data information, configuration information and default information; S9, classify the fused information and determine the number of fields of the data model. The classification method adopts a hierarchical neural network classifier. First, the data domain of each field of the data packet content information field is determined by the top-level classifier, and then the data domain of each field is refined by the bottom-level classifier to determine the number of fields of the unified data model. At the same time, the dependency relationship between the levels is learned to improve the classification accuracy. S10, analyzing the characteristics of each field, determining the number of bytes of each field, and building a unified data model; S11. Simplify and reconstruct the unified data model according to the usage scenarios and different functions of the data model.
2. The method for formulating a unified data model for industrial Ethernet according to claim 1, characterized in that In S4, the configuration information includes static configuration information and dynamic configuration information.
3. The method for formulating a unified data model for industrial Ethernet according to claim 2, characterized in that The configuration information includes but is not limited to the device name, device serial number, and device usage time; static configuration information includes but is not limited to the device name and device serial number; dynamic configuration information includes but is not limited to the experiment sequence number and device geographic location.
4. The method for formulating a unified data model for industrial Ethernet according to claim 1, characterized in that In S7, the data packet parsing method is a hierarchical parsing method. For a received data packet, the IP address is first parsed, the IP port number is secondly parsed, and finally the data packet content is parsed.
5. The method for formulating a unified data model for Industrial Ethernet according to claim 1 or 4, characterized in that The IP address is divided into a destination IP address and a source IP address; the IP port number is divided into a destination port number and a source port number.
