CN117440059A - Heterogeneous industrial wired/wireless protocol conversion architecture and method oriented to OT and IT fusion - Google Patents

Heterogeneous industrial wired/wireless protocol conversion architecture and method oriented to OT and IT fusion Download PDF

Info

Publication number
CN117440059A
CN117440059A CN202311586062.0A CN202311586062A CN117440059A CN 117440059 A CN117440059 A CN 117440059A CN 202311586062 A CN202311586062 A CN 202311586062A CN 117440059 A CN117440059 A CN 117440059A
Authority
CN
China
Prior art keywords
protocol
conversion
heterogeneous
data
industrial
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
CN202311586062.0A
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.)
Shanghai Jiaotong University
Original Assignee
Shanghai Jiaotong University
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 Shanghai Jiaotong University filed Critical Shanghai Jiaotong University
Priority to CN202311586062.0A priority Critical patent/CN117440059A/en
Publication of CN117440059A publication Critical patent/CN117440059A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses an architecture and a method for OT and IT fusion-oriented heterogeneous industrial wired/wireless protocol conversion, and relates to the field of protocol conversion. The system comprises OT equipment, heterogeneous protocol conversion equipment and network equipment, wherein the OT equipment comprises heterogeneous protocol equipment; the heterogeneous protocol conversion equipment architecture comprises a protocol layer, a conversion layer, an ontology-based model management engine and a TSN interface; the network equipment comprises a gateway, a TSN switch and a client; the protocol sub-module in the protocol layer utilizes a unified physical interface to access a plurality of protocols; the conversion layer is responsible for resolving and converting the protocol. The invention is connected with OT/IT equipment, and can realize the access and conversion of various protocols.

Description

Heterogeneous industrial wired/wireless protocol conversion architecture and method oriented to OT and IT fusion
Technical Field
The invention relates to the field of protocol conversion, in particular to a heterogeneous industrial wired/wireless protocol conversion architecture and method for OT and IT fusion.
Background
The goal of industry 4.0 is to implement manufacturing equipment equipped with sensors and networks to form a network physical system (Cyber Physical System, CPS) that visualizes the entire production flow and enables intelligent decisions. Industrial internet of things (Industrial Internet of Things, IIoT), one of the most important directions of industrial 4.0 development, aims to establish an intelligent factory through application of internet of things technology, thereby efficiently producing manufactured goods. Communication and networking technologies serve as key enabling technologies for IIoT, connecting everything together in the manufacturing industry and letting them share their information. However, due to different manufacturing scenarios and requirements, networks in IIoT have very complex heterogeneous features, and connections between various types of networks are established through various network communication protocols. The wired industrial network protocols include CAN, etherCAT, PROFINET and the like. International standards for industrial wireless networks include WirelessHART, SP-100 and WIA-PA, among others.
The interaction of data is not possible between the different network communication protocols used by the various IIOT devices. In addition, to enhance the certainty and real-time of IEEE802.1 ethernet, the IEEE802.1 TSN task group has developed time-sensitive network (Time Sensitive Networking, TSN) technology. Existing industrial equipment does not have corresponding hardware support for TSN technology. Therefore, in order to realize data intercommunication between industrial heterogeneous networks composed of different devices and enhance the certainty and real-time performance of communication by using the TSN technology, how to design a gateway compatible with the TSN technology and supporting industrial wired or wireless multi-protocol conversion is a key problem to be solved.
The closest implementation scheme found by searching the prior literature is Chinese patent application number 201410019937, and the name is: a multi-protocol conversion device based on wireless ZigBee, CAN bus and MODBUS/TCP and its realization method, its concrete method is: the microprocessor is used as a control center of the device, and completes data conversion among three protocols of a wireless ZigBee network, a CAN bus and a MODBUS/TCP Ethernet by opening up an address conversion mapping table, so as to realize a wireless/wired heterogeneous control network and complete analysis and distribution of information among different protocols. The Chinese patent application number is 200810201577, and the name is: a conversion method between multi-protocol buses comprises the following specific steps: the microprocessor receives DeviceNet, profibus and Modbus/TCP protocol data, stores the data in the microprocessor, and periodically performs protocol conversion according to the data. The Chinese patent application number is 200810201578.8, and the name is: the industrial wireless network is connected with the industrial Ethernet and the field bus to form a multi-protocol gateway and a protocol conversion method, which comprises the following specific steps: protocol conversion between the industrial wireless network access MODBUS/TCP industrial Ethernet based on IEEE802.15.4a and PROFIBUS-DP field bus is realized by the control of a microprocessor. The Chinese patent application number is 201610201994, and the name is: the industrial control automation network communication protocol converter and the communication protocol conversion method have the following specific steps: and the microprocessor is utilized to realize protocol conversion between the free protocol and Modbus RTU protocol and TCP/IP protocol. However, all the above are protocol conversion for three fixed wired/wireless protocols, and there is no flexible on-line configuration. The Chinese patent application number is 201710103436, and the name is: the encoder data acquisition module and method of compatible multi-industry Ethernet bus of the multiprotocol, its concrete implementation is: the FPGA is used for converting the encoder data into one protocol of EtherCAT, powerlink, ethernet/IP, modbus-TCP or common Ethernet, and the protocols can be flexibly selected through the dial switch, but the FPGA can only adapt to the protocols of the encoder and can not realize the mutual conversion among multiple protocols. The Chinese patent application number is 202110535853, the name is an industrial heterogeneous network high-speed protocol conversion device and a parallel processing unit, and the specific method comprises the following steps: and the wireless module and the network card are used for respectively receiving and transmitting industrial wireless network data, industrial wired network data and IPv6 backbone network data, entering the protocol conversion unit for parallel processing and conversion of the data, and controlling the protocol conversion device through the SDN management interface unit. The above-mentioned patent enables access and high-speed conversion of various industrial wireless/wired protocols, but is not adapted for TSN technology.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, the present invention is mainly aimed at solving the drawbacks of flexibility and certainty of the existing industrial protocol conversion method.
In order to achieve the above purpose, the invention provides a heterogeneous industrial wired/wireless protocol conversion architecture and method for fusion of OT and IT, which is characterized by comprising OT equipment, heterogeneous protocol conversion equipment and network equipment, wherein the OT equipment refers to heterogeneous protocol equipment; the heterogeneous protocol conversion equipment architecture comprises a protocol layer, a conversion layer, an ontology-based model management engine and a TSN interface; the network equipment comprises a gateway, a TSN switch and a client; the protocol sub-module in the protocol layer utilizes a unified physical interface to access a plurality of protocols; the conversion layer is responsible for resolving and converting the protocol.
Further, the gateway and the TSN switch together form an edge network topology, and a user queries and configures the heterogeneous protocol conversion device through the client; and the client is provided with an ontology-based model interaction upper computer, and the upper computer performs data query and visual configuration on the heterogeneous protocol conversion equipment.
Further, the heterogeneous protocol device is connected with the IT device and the OT device and is responsible for accessing the OT device, receiving information of the IT device and converting industrial protocol data.
Further, the protocol layer designs the wired protocol and the wireless protocol separately, the wired protocol submodule is designed into module plug-ins with the same size and uniform interface, the modules are selected according to the on-site protocol, and the wireless protocol submodule is designed into a single module plug-in which is in butt joint with the bottom plate.
Further, the conversion layer comprises a unified protocol middleware, a protocol conversion middleware and an information model fusion unit; the unified protocol middleware analyzes and receives accessed protocol data through a heterogeneous protocol access library (Heterogeneous Protocol Access Lib, HPAIb), distributes a shared memory address to the accessed protocol data, and then transmits the shared memory address to a protocol information model module to generate a protocol information model of each protocol; the conversion information model module in the protocol conversion middleware stores the issued protocol conversion parameters of the client, then converts different protocol data according to a deterministic protocol conversion library (Deterministic Protocol Conversion Lib, detPCLIb), wherein the sequence of protocol conversion is obtained by calculating the parameters in the conversion information model, and finally the conversion information model module generates the conversion information model of each protocol; the information model fusion unit fuses the protocol information model and the conversion information model to generate a whole heterogeneous protocol conversion information model, wherein the whole heterogeneous protocol conversion information model comprises an information model accessed by heterogeneous protocol equipment, configuration information issued by a client and an information model in a conversion process.
Further, the model management engine based on the ontology is built on the TCP/IP service, receives a configuration instruction of an upper client, stores the configuration instruction into the device after analysis, and otherwise, the client can also query the triplet data in the device to obtain information model data of the device.
Further, after receiving VLAN configuration parameters of an upper client, the TSN interface is stored in VLAN rules; when the heterogeneous protocol device returns data, the priority of the transmission of the heterogeneous protocol data in the TSN network can be calculated according to the VLAN rule and by combining parameters such as processing time delay, and then the VLAN label is marked on a network protocol frame and the network protocol frame is sent to the network.
The heterogeneous industrial wired/wireless protocol conversion method is characterized by comprising a heterogeneous protocol deterministic conversion mechanism, a TSN-based dynamic priority algorithm and an ontology-based protocol conversion configuration flow; the mechanism for deterministic conversion of the heterogeneous protocol comprises the following steps:
step S11: firstly, initializing heterogeneous protocol conversion equipment, including initializing a drive, initializing a wired/wireless protocol sub-module, reading information of the protocol sub-module, establishing a TCP/IP server and establishing a thread task;
step S12: the industrial wired protocol is accessed to the protocol layer through the industrial wired submodule, and the industrial wireless protocol is accessed to the protocol layer through the industrial wireless submodule;
meanwhile, the processor monitors the insertion and extraction events of the industrial protocol sub-module, if the events occur, the extracted industrial protocol sub-module and the initialized inserted industrial protocol sub-module are enabled, and the processor waits for the next reading period to read the data of the industrial protocol sub-module which is normally operated.
Step S13: reading protocol data; firstly, detecting whether a module is accessed, after detecting that the industrial protocol submodule is accessed, reading protocol data into the input queue in a reading period, then storing the protocol data into the input data block of the shared cache, and recording the time of entering each protocol data;
step S14: according to the protocol conversion rule in the embodiment, calculating the conversion priority of the protocol conversion rule and corresponding to the gate level control;
the protocol conversion rule parameters are a source protocol, a target protocol, a source protocol address, a target protocol address, a maximum conversion time delay and a conversion byte number;
the conversion priority carries out operation according to deterministic conversion constraint, including conversion delay constraint and jitter constraint; the conversion delay constraint prescribes that the conversion delay between protocols, namely the time from the entry of source protocol data to the output of target protocol data, must be smaller than the maximum conversion delay in the protocol conversion rule; the jitter constraint specifies that the transition delay jitter is required to be within an expected range;
the conversion priority and the corresponding requirement of the gate level control meet protocol forwarding constraint; the protocol forwarding constraint prescribes that the gate state of the output queue corresponding to the protocol with the highest conversion priority is opened, and only one gate state is opened at the same time; the conversion priority cannot have the same value at the same time;
step S15: forwarding protocol data; when the gate level control opens the corresponding gate, protocol data is distributed to the output queue, then the protocol data is forwarded to the corresponding industrial protocol sub-module, and finally the protocol data is forwarded to an industrial protocol line to control actual output.
Further, the dynamic priority algorithm based on TSN comprises the following steps:
step S21: receiving an instruction; after the TCP/IP connection is established between the upper computer client and the heterogeneous protocol conversion equipment, the upper computer client sends an instruction to read protocol data in the heterogeneous protocol conversion equipment, and after the heterogeneous protocol conversion equipment receives the instruction, the information of the instruction is analyzed and the time for entering the instruction of the client is recorded;
step S22: calculating priority; firstly judging whether the protocol data is returned to enable VLAN rule, calculating the dynamic priority of the returned according to VLAN rule and packaging the dynamic priority into VLAN label;
the VLAN rule parameters are VLAN IDs, and priority and timeout time are preset;
the dynamic priority algorithm is a dynamic priority algorithm,
wherein x represents the number of processing delay levels and is a positive integer. Specifically, the value of x is 8, which corresponds to the number of TSN queues. n represents the processing delay level, and takes on the value of 1 to x, T ddl T represents the processing delay of an instruction from entering the heterogeneous protocol conversion device to data back transmission timeout Representing a timeout in the VLAN rule;
wherein m represents a preset priority in the VLAN rule, alpha and beta represent coefficients of m and n respectively, the sum of alpha and beta is required to be equal to 1, and P represents a scheduling priority in a VLAN label;
step S23: returning data; and after the protocol data is encapsulated into a correct frame format, the protocol data is returned to the client of the upper computer.
Further, the protocol conversion configuration flow based on the ontology comprises the following steps:
step S31: uploading the information model, after the upper computer client establishes TCP/IP connection with the heterogeneous protocol conversion equipment, the heterogeneous protocol conversion equipment judges whether the information model needs to be uploaded to the upper computer client or not, and the format of the information model can be selected from JSON format;
step S32: the method comprises the steps of designing rules, and drawing configuration information relation based on an ontology at an upper computer client;
step S33: receiving configuration information, judging whether the configuration information from the upper computer client is received by the heterogeneous protocol conversion equipment, if the configuration information from the upper computer client arrives, receiving the configuration information, wherein the configuration information can be in a JSON format, analyzing the configuration information and then storing the configuration information in a corresponding position; otherwise, continuing to monitor.
The invention has the following technical effects:
(1) The OT/IT equipment is connected to realize the access and conversion of various protocols;
(2) The mechanism improves the certainty of the protocol conversion process based on the conversion priority, and reduces the delay jitter in the conversion process;
(3) In the field of protocol conversion, the efficiency of protocol conversion configuration is improved, and the interaction between a user and heterogeneous protocol conversion equipment is simplified;
(4) And the support and compatibility of the heterogeneous protocol conversion equipment terminal to the TSN function are realized.
The conception, specific structure, and technical effects of the present invention will be further described with reference to the accompanying drawings to fully understand the objects, features, and effects of the present invention.
Drawings
FIG. 1 is a diagram of a heterogeneous industrial wired/wireless protocol conversion architecture in accordance with a preferred embodiment of the present invention;
FIG. 2 is a diagram of a heterogeneous protocol device framework of a preferred embodiment of the present invention;
FIG. 3 is a diagram of a heterogeneous protocol deterministic conversion mechanism in accordance with a preferred embodiment of the present invention;
FIG. 4 is a flow chart of heterogeneous protocol device initialization in accordance with a preferred embodiment of the present invention;
FIG. 5 is a flow chart of protocol data reading and conversion according to a preferred embodiment of the present invention;
FIG. 6 is a flow chart of the protocol sub-module plug-and-plug monitoring in accordance with a preferred embodiment of the present invention;
FIG. 7 is a flow chart of a VLAN dynamic priority algorithm according to a preferred embodiment of the present invention;
FIG. 8 is a flow chart of information upload and configuration issue according to a preferred embodiment of the present invention;
fig. 9 is a diagram showing an ontology-based protocol conversion configuration relationship according to a preferred embodiment of the present invention.
Detailed Description
The following description of the preferred embodiments of the present invention refers to the accompanying drawings, which make the technical contents thereof more clear and easy to understand. The present invention may be embodied in many different forms of embodiments and the scope of the present invention is not limited to only the embodiments described herein.
In the drawings, like structural elements are referred to by like reference numerals and components having similar structure or function are referred to by like reference numerals. The dimensions and thickness of each component shown in the drawings are arbitrarily shown, and the present invention is not limited to the dimensions and thickness of each component. The thickness of the components is exaggerated in some places in the drawings for clarity of illustration.
The invention aims to overcome the defects of flexibility and certainty of the existing industrial protocol conversion method and provides a heterogeneous industrial wired/wireless protocol conversion architecture and method for OT and IT fusion, wherein the architecture comprises OT equipment, heterogeneous protocol conversion equipment and network equipment as shown in figure 1.
The OT devices include heterogeneous protocol devices such as robotic arms, programmable logic controllers (Programmable Logic Controller, PLCs), industrial control computers (Industrial Personal Computer, IPCs), wireless devices, etc., which access upper layer devices via different protocols.
The network device includes a gateway, a TSN switch, and a client. The gateway and the TSN switch together form an edge network topology, and a user queries and configures heterogeneous protocol conversion equipment through client equipment. The client is provided with an ontology-based model interaction upper computer, and data query and visual configuration are carried out on heterogeneous protocol conversion equipment in the upper computer.
The heterogeneous protocol device is connected with the IT and the OT and is responsible for accessing the OT device, receiving information of the IT device and converting industrial protocol data. The heterogeneous protocol conversion device architecture is shown in fig. 2, and includes a protocol layer, a conversion layer, an ontology-based model management engine, and a TSN interface.
The protocol layer is mainly responsible for accessing the heterogeneous protocol equipment, the wired protocol and the wireless protocol are designed separately, the wired protocol submodule is designed into module plug-ins with the same size and uniform interface, the modules are selected according to the on-site protocol, the wireless protocol submodule comprises wireless protocols such as ZigBee, loRa and the like, and the wired protocol submodule is designed into a single module plug-in unit which is in butt joint with the bottom plate.
The conversion layer comprises a unified protocol middleware, a protocol conversion middleware and an information model fusion unit. The unified protocol middleware analyzes and receives accessed protocol data through a heterogeneous protocol access library (Heterogeneous Protocol Access Lib, HPAIb), distributes a shared memory address to the accessed protocol data, and then transmits the shared memory address to a protocol information model module to generate a protocol information model of each protocol; the conversion information model module in the protocol conversion middleware stores the issued protocol conversion parameters of the client, then converts different protocol data according to a deterministic protocol conversion library (Deterministic Protocol Conversion Lib, detPCLIb), wherein the sequence of protocol conversion is calculated by the parameters in the conversion information model, and finally the conversion information model module generates the conversion information model of each protocol. The information model fusion unit fuses the protocol information model and the conversion information model to generate a whole heterogeneous protocol conversion information model, wherein the whole heterogeneous protocol conversion information model comprises an information model accessed by heterogeneous protocol equipment, configuration information issued by a client and an information model in a conversion process.
The model management engine based on the ontology is built on the TCP/IP service, receives configuration instructions (such as JSON format data and RDF format data) of an upper client, stores the configuration instructions into the equipment after analysis, and otherwise, the client can also query the triplet data in the equipment to obtain information model data of the equipment.
And after receiving VLAN configuration parameters of the upper client, the TSN interface is stored in VLAN rules. When the heterogeneous protocol device returns data, the priority of the heterogeneous protocol data transmitted in the TSN network is calculated according to VLAN rules and combining parameters such as processing time delay, and then the network protocol frame is marked with VLAN labels and then is sent to the network.
The method comprises a heterogeneous protocol deterministic conversion mechanism, a TSN-based dynamic priority algorithm and an ontology-based protocol conversion configuration flow.
The mechanism for deterministic conversion of the heterogeneous protocols can realize conversion of the heterogeneous industrial network protocol data and ensure the certainty of the conversion process. As shown in fig. 3, the heterogeneous protocol conversion process embodiment of the present invention is composed of four parts: input queue, shared buffer, output queue, protocol conversion configuration unit. Wherein the input queues are in one-to-one correspondence with the protocol lines; the shared cache opens up independent input data blocks and output data blocks for each protocol data, and corresponds to the actual input and output of each protocol line respectively; the output queues are in one-to-one correspondence with the protocol lines; the protocol conversion configuration unit comprises a protocol priority module, a gate level control module and a conversion rule module, wherein the function of the protocol conversion configuration unit is respectively used for calculating the conversion priority, controlling the data to enter the output queue and maintaining the protocol conversion rule. The following describes a heterogeneous protocol deterministic conversion mechanism by taking PROFINET conversion into EtherCAT as an example, and the mechanism comprises the following steps:
step S11: as shown in fig. 4, the heterogeneous protocol conversion device is initialized first, including initializing a driver, initializing a wired/wireless protocol sub-module, reading protocol sub-module information, establishing a TCP/IP server, and creating a thread task.
Step S12: the industrial wired protocols such as PROFINET, etherCAT, etherNet/IP, CAN, modbus are accessed to the protocol layer through the industrial wired submodule, and the industrial wireless protocols such as ZigBee and LoRa are accessed to the protocol layer through the industrial wireless submodule.
Further, the processor monitors the insertion and extraction events of the industrial protocol sub-module, and if such an event occurs, the processor disables the extracted industrial protocol sub-module and initializes the inserted industrial protocol sub-module, and waits for the next reading cycle to read the data of the industrial protocol sub-module that is operating normally, as shown in fig. 6.
Step S13: protocol data is read. As shown in fig. 5, it is first detected whether there is a module access, here taking a transition from PROFINET to EtherCAT as an example, after detecting that PROFINET and EtherCAT protocol submodules are accessed, protocol data is read into the input queue in a reading period, and then stored into the input data block of the shared cache and the time when each protocol data is entered is recorded. The embodiment is that the PROFINET line input data is read from the PROFINET protocol submodule to the corresponding input queue, and then the PROFINET line input data is stored in the shared buffer.
Step S14: the conversion priority is calculated. As shown in fig. 5, it is checked whether the protocol conversion rule is enabled, and in this embodiment, a rule is set for converting PROFINET protocol input data into EtherCAT protocol output data, and according to the protocol conversion rule in the embodiment, the conversion priority thereof is calculated and corresponds to the gate level control.
Further, the protocol conversion rule parameters are a source protocol, a target protocol, a source protocol address, a target protocol address, a maximum conversion time delay and a conversion byte number.
Further, the conversion priority operates according to deterministic conversion constraints, including conversion delay constraints, jitter constraints. The conversion delay constraint specifies that the conversion delay between protocols, i.e. the time for the source protocol data to enter the target protocol data output, must be less than the maximum conversion delay in the protocol conversion rules. Jitter constraints dictate that the transition delay jitter be within the expected range.
Further, the conversion priority and the gate level control are required to meet protocol forwarding constraint. Protocol forwarding constraints specify that the highest conversion priority protocol corresponds to an output queue with a gate state that is open, and that only one gate state is open at a time. In particular, the transition priorities cannot have the same value at the same time.
Step S15: and forwarding the protocol data. When the gate level control opens the corresponding gate, protocol data is distributed to the output queue, then the protocol data is forwarded to the corresponding protocol sub-module, and finally forwarded to the industrial protocol line to control the actual output. The embodiment is that when the gate state is open, the output data of the EtherCAT protocol is distributed to a corresponding output queue, then forwarded to the EtherCAT protocol sub-module, and finally forwarded to the output of the EtherCAT line.
The dynamic priority algorithm based on TSN can change VLAN priority of the network protocol frame according to the data transmission delay condition, and sends the VLAN priority to the time sensitive network, so that network transmission quality is improved. The following describes a TSN-based dynamic priority algorithm with read PROFINET data as an example, the algorithm comprising the steps of:
step S21: an instruction is received. As shown in fig. 7, after the host client establishes a TCP/IP connection with the heterogeneous protocol conversion device, the host client sends an instruction to read protocol data in the heterogeneous protocol conversion device, and after the heterogeneous protocol conversion device receives the instruction, the heterogeneous protocol conversion device analyzes instruction information and records the time when the client instruction enters.
The embodiment is that the client of the upper computer sends and reads PROFINET data in the heterogeneous protocol conversion equipment, and after the heterogeneous protocol conversion equipment receives the instruction, the information of the instruction is analyzed and the time of the instruction entering is recorded.
Step S22: the priority is calculated. As shown in fig. 7, first, it is determined whether the protocol data backhaul enables the VLAN rule, the embodiment enables the VLAN rule of the PROFINET data backhaul, and according to the VLAN rule in the embodiment, the dynamic priority of the PROFINET data backhaul is calculated and encapsulated into the VLAN tag.
Further, the VLAN rule parameter is a VLAN ID, and a priority and a timeout period are preset.
Further, the dynamic priority algorithm is that,
in the formula (2-1), x represents the number of processing delay levels, and the value is a positive integer. Specifically, the value of x is 8, which corresponds to the number of TSN queues. n represents the processing delay level and takes on the value of 1 to x. T (T) ddl Representing the processing delay of an instruction from entering the heterogeneous protocol conversion device to the data backhaul. T (T) timeout Representing the timeout in the VLAN rule.
In the formula (2-2), m represents a preset priority in the VLAN rule. Alpha and beta represent the coefficients of m and n, respectively, the sum of alpha and beta being equal to 1.P represents the scheduling priority in the VLAN tag.
Step S23: and returning the data. And after the protocol data is encapsulated into a correct frame format, the protocol data is returned to the client of the upper computer.
The protocol conversion configuration flow based on the ontology is the visual configuration of the protocol conversion equipment by the client of the upper computer, so that the flexibility and the efficiency of the configuration are improved. The protocol conversion configuration flow based on the ontology is described below by taking configuration EtherCAT and PROFINET as embodiments, and a schematic diagram of the visual configuration relationship in the client of the upper computer is shown in FIG. 9. Further, the configuration information has a protocol conversion rule and a VLAN rule, wherein the conversion rule and the VLAN rule are respectively corresponding to a conversion method and a VLAN configuration connected to the PROFINET by an Event of; srcAddress, dstAddress, convTime and byte connected to the convertionmethod represent the source protocol address, the destination protocol address, the maximum conversion delay and the converted byte number in the protocol rule parameters described above, respectively, and the data types are byte, unsigned integer (uint) and unsigned integer (uint), respectively; the vid, prePrio and timeout connected to the VLAN configuration represent the VLAN ID, the preset priority and the timeout time in the VLAN rule parameters described above, and the data types are unsigned integer (uint), byte (byte) and unsigned integer (uint), respectively; the isconvertdby is connected with the EtherCAT and the PROFINET to represent the relation of protocol conversion, and the source protocol and the target protocol in the protocol rule parameters are defined. The protocol conversion configuration flow comprises the following steps:
step S31: and uploading the information model. As shown in fig. 8, after the host client establishes a TCP/IP connection with the heterogeneous protocol conversion device, the heterogeneous protocol conversion device determines whether an information model needs to be uploaded to the host client, where the format of the information model may be JSON format.
Step S32: design rules. And drawing a configuration information relation based on an ontology at the upper computer client, wherein a schematic diagram is shown in fig. 9, in the embodiment, the visualized configuration is converted into EtherCAT, and two protocols are connected by isconvertedBy so as to define a source protocol and a target protocol as PROFINET and EtherCAT respectively.
Further, profile may set a convertionmethod for heterogeneous protocol conversion, embodiments set a parameter source protocol address, a target protocol address and conversion bytes of 0x00, 10 (in milliseconds) and 1, respectively.
Further, the profile may set a VLAN configuration to enable the upper computer client to play a dynamic priority VLAN frame when reading the profile data backhaul, and the embodiment sets a parameter VLAN ID, where the preset priority and timeout time are 1,0x05, and 50 (in milliseconds), respectively.
Step S33: configuration information is received. The heterogeneous protocol conversion equipment judges whether configuration information from a host computer client is received or not, if the configuration information from the host computer client arrives, the configuration information is received, the configuration information can be in a JSON format, and then the configuration information is analyzed and then stored in a corresponding position; otherwise, continuing to monitor. The foregoing describes in detail preferred embodiments of the present invention. It should be understood that numerous modifications and variations can be made in accordance with the concepts of the invention without requiring creative effort by one of ordinary skill in the art. Therefore, all technical solutions which can be obtained by logic analysis, reasoning or limited experiments based on the prior art by the person skilled in the art according to the inventive concept shall be within the scope of protection defined by the claims.

Claims (10)

1. The OT and IT fusion-oriented heterogeneous industrial wired/wireless protocol conversion architecture and method are characterized by comprising OT equipment, heterogeneous protocol conversion equipment and network equipment, wherein the OT equipment refers to heterogeneous protocol equipment; the heterogeneous protocol conversion equipment architecture comprises a protocol layer, a conversion layer, an ontology-based model management engine and a TSN interface; the network equipment comprises a gateway, a TSN switch and a client; the protocol sub-module in the protocol layer utilizes a unified physical interface to access a plurality of protocols; the conversion layer is responsible for resolving and converting the protocol.
2. The OT and IT convergence oriented heterogeneous industrial wired/wireless protocol conversion architecture and method of claim 1, wherein said gateway and said TSN switch together comprise an edge network topology, a user querying and configuring said heterogeneous protocol conversion device via said client; and the client is provided with an ontology-based model interaction upper computer, and the upper computer performs data query and visual configuration on the heterogeneous protocol conversion equipment.
3. The OT and IT convergence oriented heterogeneous industrial wired/wireless protocol conversion architecture and method of claim 2, wherein said heterogeneous protocol device connects an IT device and said OT device and is responsible for accessing said OT device, receiving said IT device information, and converting industrial protocol data.
4. The heterogeneous industrial wired/wireless protocol conversion architecture and method for fusion of OT and IT according to claim 3, wherein the protocol layer designs the wired protocol and the wireless protocol separately, the wired protocol submodules are designed as module plug-ins with the same size and uniform interfaces, the modules are selected according to the on-site protocol, and the wireless protocol submodules are designed as a single module plug-in to be in butt joint with a bottom plate.
5. The OT and IT fusion-oriented heterogeneous industrial wired/wireless protocol conversion architecture and method according to claim 4, wherein the conversion layer comprises unified protocol middleware, protocol conversion middleware and information model fusion unit; the unified protocol middleware analyzes and receives accessed protocol data through a heterogeneous protocol access library (Heterogeneous Protocol Access Lib, HPAIb), distributes a shared memory address to the accessed protocol data, and then transmits the shared memory address to a protocol information model module to generate a protocol information model of each protocol; the conversion information model module in the protocol conversion middleware stores the issued protocol conversion parameters of the client, then converts different protocol data according to a deterministic protocol conversion library (Deterministic Protocol Conversion Lib, detPCLIb), wherein the sequence of protocol conversion is obtained by calculating the parameters in the conversion information model, and finally the conversion information model module generates the conversion information model of each protocol; the information model fusion unit fuses the protocol information model and the conversion information model to generate a whole heterogeneous protocol conversion information model, wherein the whole heterogeneous protocol conversion information model comprises an information model accessed by heterogeneous protocol equipment, configuration information issued by a client and an information model in a conversion process.
6. The heterogeneous industrial wired/wireless protocol conversion architecture and method for fusion of OT and IT according to claim 5, wherein the ontology-based model management engine is built on the TCP/IP service, receives configuration instructions of an upper client, stores the configuration instructions into the equipment after analysis, and otherwise the client can query the triplet data in the equipment to obtain information model data of the equipment.
7. The OT and IT fusion-oriented heterogeneous industrial wired/wireless protocol conversion architecture and method according to claim 6, wherein the TSN interface stores VLAN configuration parameters of an upper client in VLAN rules after receiving the VLAN configuration parameters; when the heterogeneous protocol device returns data, the priority of the transmission of the heterogeneous protocol data in the TSN network can be calculated according to the VLAN rule and by combining parameters such as processing time delay, and then the VLAN label is marked on a network protocol frame and the network protocol frame is sent to the network.
8. The heterogeneous industrial wired/wireless protocol conversion method for OT and IT fusion is characterized by comprising a heterogeneous protocol deterministic conversion mechanism, a TSN-based dynamic priority algorithm and an ontology-based protocol conversion configuration flow; the mechanism for deterministic conversion of the heterogeneous protocol comprises the following steps:
step S11: firstly, initializing heterogeneous protocol conversion equipment, including initializing a drive, initializing a wired/wireless protocol sub-module, reading information of the protocol sub-module, establishing a TCP/IP server and establishing a thread task;
step S12: the industrial wired protocol is accessed to the protocol layer through the industrial wired submodule, and the industrial wireless protocol is accessed to the protocol layer through the industrial wireless submodule;
meanwhile, the processor monitors the insertion and extraction events of the industrial protocol sub-module, if the events occur, the extracted industrial protocol sub-module and the initialized inserted industrial protocol sub-module are enabled, and the processor waits for the next reading period to read the data of the industrial protocol sub-module which is normally operated.
Step S13: reading protocol data; firstly, detecting whether a module is accessed, after detecting that the industrial protocol submodule is accessed, reading protocol data into the input queue in a reading period, then storing the protocol data into the input data block of the shared cache, and recording the time of entering each protocol data;
step S14: according to the protocol conversion rule in the embodiment, calculating the conversion priority of the protocol conversion rule and corresponding to the gate level control;
the protocol conversion rule parameters are a source protocol, a target protocol, a source protocol address, a target protocol address, a maximum conversion time delay and a conversion byte number;
the conversion priority carries out operation according to deterministic conversion constraint, including conversion delay constraint and jitter constraint; the conversion delay constraint prescribes that the conversion delay between protocols, namely the time from the entry of source protocol data to the output of target protocol data, must be smaller than the maximum conversion delay in the protocol conversion rule; the jitter constraint specifies that the transition delay jitter is required to be within an expected range;
the conversion priority and the corresponding requirement of the gate level control meet protocol forwarding constraint; the protocol forwarding constraint prescribes that the gate state of the output queue corresponding to the protocol with the highest conversion priority is opened, and only one gate state is opened at the same time; the conversion priority cannot have the same value at the same time;
step S15: forwarding protocol data; when the gate level control opens the corresponding gate, protocol data is distributed to the output queue, then the protocol data is forwarded to the corresponding industrial protocol sub-module, and finally the protocol data is forwarded to an industrial protocol line to control actual output.
9. The OT and IT fusion-oriented heterogeneous industrial wired/wireless protocol conversion method according to claim 8, wherein said one TSN-based dynamic priority algorithm comprises the steps of:
step S21: receiving an instruction; after the TCP/IP connection is established between the upper computer client and the heterogeneous protocol conversion equipment, the upper computer client sends an instruction to read protocol data in the heterogeneous protocol conversion equipment, and after the heterogeneous protocol conversion equipment receives the instruction, the information of the instruction is analyzed and the time for entering the instruction of the client is recorded;
step S22: calculating priority; firstly judging whether the protocol data is returned to enable VLAN rule, calculating the dynamic priority of the returned according to VLAN rule and packaging the dynamic priority into VLAN label;
the VLAN rule parameters are VLAN IDs, and priority and timeout time are preset;
the dynamic priority algorithm is a dynamic priority algorithm,
wherein x represents the number of processing delay levels and is a positive integer. Specifically, the value of x is 8, which corresponds to the number of TSN queues. n is substituted byThe table processing delay grade is 1 to x, T ddl T represents the processing delay of an instruction from entering the heterogeneous protocol conversion device to data back transmission timeout Representing a timeout in the VLAN rule;
wherein m represents a preset priority in the VLAN rule, alpha and beta represent coefficients of m and n respectively, the sum of alpha and beta is required to be equal to 1, and P represents a scheduling priority in a VLAN label;
step S23: returning data; and after the protocol data is encapsulated into a correct frame format, the protocol data is returned to the client of the upper computer.
10. The OT and IT fusion-oriented heterogeneous industrial wired/wireless protocol conversion method according to claim 9, wherein the protocol conversion configuration flow based on the ontology comprises the following steps:
step S31: uploading the information model, after the upper computer client establishes TCP/IP connection with the heterogeneous protocol conversion equipment, the heterogeneous protocol conversion equipment judges whether the information model needs to be uploaded to the upper computer client or not, and the format of the information model can be selected from JSON format;
step S32: the method comprises the steps of designing rules, and drawing configuration information relation based on an ontology at an upper computer client;
step S33: receiving configuration information, judging whether the configuration information from the upper computer client is received by the heterogeneous protocol conversion equipment, if the configuration information from the upper computer client arrives, receiving the configuration information, wherein the configuration information can be in a JSON format, analyzing the configuration information and then storing the configuration information in a corresponding position; otherwise, continuing to monitor.
CN202311586062.0A 2023-11-24 2023-11-24 Heterogeneous industrial wired/wireless protocol conversion architecture and method oriented to OT and IT fusion Pending CN117440059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311586062.0A CN117440059A (en) 2023-11-24 2023-11-24 Heterogeneous industrial wired/wireless protocol conversion architecture and method oriented to OT and IT fusion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311586062.0A CN117440059A (en) 2023-11-24 2023-11-24 Heterogeneous industrial wired/wireless protocol conversion architecture and method oriented to OT and IT fusion

Publications (1)

Publication Number Publication Date
CN117440059A true CN117440059A (en) 2024-01-23

Family

ID=89555247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311586062.0A Pending CN117440059A (en) 2023-11-24 2023-11-24 Heterogeneous industrial wired/wireless protocol conversion architecture and method oriented to OT and IT fusion

Country Status (1)

Country Link
CN (1) CN117440059A (en)

Similar Documents

Publication Publication Date Title
CN101075945B (en) Method for determining realtime Ethernet telecommunication
US6360277B1 (en) Addressable intelligent relay
CN101208674B (en) Method and device for data communication of bus users in an open automation system
US7411966B2 (en) Method and system for coupling data networks
US6952727B1 (en) Method for adapting a computer-to-computer communication protocol for use in an industrial control system
Hemmatpour et al. DIIG: a distributed industrial IoT gateway
CN114301995B (en) Conversion switching and intercommunication fusion system and method of real-time industrial Ethernet protocol
CN116155431A (en) Industrial field device supporting OPC UA and time sensitive network and communication system
CN114338274B (en) Heterogeneous industrial field bus fusion method and system
CN112039746B (en) Industrial control network system
EP3471353B1 (en) Method and apparatus for communication in a motor drive application
CN117440059A (en) Heterogeneous industrial wired/wireless protocol conversion architecture and method oriented to OT and IT fusion
US9088610B2 (en) Method and apparatus for communications accelerator on CIP motion networks
JP5185383B2 (en) Control node for a network consisting of multiple control nodes
CN115065596B (en) Industrial heterogeneous network integrated configuration system and method based on software definition
Bertoluzzo et al. Ethernet networks for factory automation
Lin et al. Gigabit Modbus user datagram protocol fieldbus network integrated with industrial vision communication
US20050286450A1 (en) Deterministic communication system
Kerschbaum et al. A framework for establishing performance guarantees in industrial automation networks
EP3439254B1 (en) A multiport device
Gundall et al. Assessing open interfaces and protocols of PLCs for computation offloading at field level
Feng et al. EPA-based open network control system
Hunt Ethernet cuts fieldbus costs in industrial automation
Xue et al. Analysis of Industrial Ethernet used in Active Surface System of QTT
Kostenko Real-time communication between robot PLC and PC over Ethernet-based protocols

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