Low-delay high-certainty industrial protocol conversion architecture and algorithm
By designing a low-latency and high-determinism industrial protocol conversion architecture, using time-sensitive networks and dynamic priority algorithms, the problems of large delay jitter and insufficient certainty between heterogeneous protocols in the existing technology are solved, and a variety of heterogeneous protocols have been achieved. It constructs efficient conversion and real-time guarantee of protocols to support the development of intelligent manufacturing and industrial automation.
Patent Information
- Application Number
- CN202411507497.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2044-10-25
AI Technical Summary
The existing industrial protocol conversion methods lack considerations for real-time and certainty, resulting in large delay jitter between heterogeneous protocols, which cannot ensure the real-time and certainty of key protocol conversion, affecting the application of industrial automation and intelligent manufacturing. .
A low-latency high-deterministic industrial protocol conversion architecture is designed, including protocol management control equipment, transmission network and heterogeneous protocol interaction management equipment, using time-sensitive networks and dynamic priority algorithms, through configuration management centers and heterogeneous data exchange Unit and interactive ports realize efficient conversion and priority processing of multiple heterogeneous protocols.
It realizes data interoperability between devices of different protocols, ensures real-time and certainty of data transmission, reduces the cost of physical hardware replacement, improves the real-time and system stability of data processing, and provides flexible protocol conversion. Solution.
Smart Images

Figure CN119155358A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of industrial protocol conversion, and in particular to a low-latency and high-determinism industrial protocol conversion architecture and algorithm. Background Art
[0002] The Industrial Internet of Things (IIOT) field has strict requirements on the information sharing capabilities between computer systems, network operating systems and applications. Due to differences in deployment costs, application functions, communication performance, etc., there are multiple heterogeneous communication protocols coexisting in devices in multiple IIOT systems, which greatly affects the determinism and real-time performance of data transmission between systems. The inflexibility of existing protocol conversion and configuration management mechanisms will also reduce the interoperability between different systems. Time-Sensitive Network (TSN) is a technology that supports deterministic communication and network traffic control, which can ensure the reliability of data transmission and is a new development trend in the industrial field. Therefore, it is necessary to design a protocol conversion device that can access heterogeneous data traffic in industrial sites to a time-sensitive network to achieve mutual conversion between multiple protocols, and to design a flexible management and configuration solution that is compatible with it to ensure the real-time and deterministic performance of data transmission. It will be conducive to the establishment of a new industrial converged network with deep integration of operation technology (OT) and information technology (IT).
[0003] There are demands for mutual conversion and interconnection of multiple wired and wireless heterogeneous protocols in existing industrial sites, but most of the existing technical solutions adopt a one-to-one conversion method. A few technical solutions can realize the conversion between multiple heterogeneous wired / wireless protocols, but lack consideration of real-time and determinism. Existing protocol conversion hardware solutions developed based on FPGA often ignore the use of switching architecture, which limits their performance when processing different protocols. In addition, these solutions generally lack the identification and distinction of the importance of data streams, resulting in their inability to ensure the determinism and real-time conversion of key protocols, which is a significant shortcoming for time-sensitive application scenarios such as industrial automation and intelligent manufacturing. In terms of conversion of multiple heterogeneous protocols, due to the presence of various devices supporting different industrial protocols in industrial sites, there are problems such as difficulty in interconnection between heterogeneous protocol devices and large conversion delay jitter. Time-sensitive network switches and terminal devices use priority queues to process data packets to ensure that mission-critical data packets are processed and forwarded first. This is one of the mechanisms used by time-sensitive networks to ensure the real-time and determinism of critical tasks. However, when time-sensitive networks are integrated with traditional devices, the data of traditional devices does not have priority tags and is not compatible with the above time-sensitive mechanism, resulting in a decrease in its determinism.
[0004] Therefore, technicians in this field are committed to developing a low-latency and high-determinism industrial protocol conversion architecture and algorithm. Summary of the invention
[0005] In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is that the existing methods for mutual conversion and interconnection of various industrial wired and wireless heterogeneous protocols lack consideration of real-time and determinism.
[0006] To achieve the above-mentioned object, the present invention provides a low-latency and high-determinism industrial protocol conversion architecture, including a protocol management and control device, a transmission network, a heterogeneous protocol interaction management device and a device layer;
[0007] The protocol management and control device includes a host computer, which includes a protocol conversion configuration interface and a heterogeneous protocol conversion processing algorithm. A user can configure the initial parameters of a variety of heterogeneous protocols and query data through the protocol conversion configuration interface, and then use the configured data as processing data of the heterogeneous protocol conversion processing algorithm to obtain the optimal processing solution.
[0008] Furthermore, the transmission network includes a time-sensitive network, which supports technologies of deterministic communication and network traffic control to ensure the reliability of data transmission. The time-sensitive network includes a gateway, a time-sensitive network switch and a client.
[0009] Furthermore, the heterogeneous protocol interaction management device includes a hardware framework, task scheduling and a time-sensitive network dynamic priority algorithm. The heterogeneous protocol interaction management device has the functions of accessing the device layer and the transmission network, receiving data from the device layer and from the upper layer, and converting industrial heterogeneous protocols.
[0010] Furthermore, the hardware framework of the heterogeneous protocol interaction management device includes: a configuration management center, a heterogeneous data exchange unit and an interaction port.
[0011] Further, the configuration management center includes a management port, a configuration scheme module, a gating list module, and a time-sensitive network dynamic priority algorithm module;
[0012] The management port is an Ethernet port, which can receive configuration data;
[0013] The configuration scheme module includes an optimal processing scheme lookup table, an arrangement sequence table, and user-configured protocol information; the optimal processing scheme lookup table is used to find the optimal processing scheme corresponding to the input sequence; the arrangement sequence table finds the output sequence of different protocol data corresponding to the optimal processing scheme;
[0014] The gating list module generates a gating list according to the output sequence, which is used to control the switching sequence of the gating switches;
[0015] The time-sensitive network dynamic priority algorithm module uses the time-sensitive network dynamic priority algorithm to process and calculate the protocol information configured by the user, and defines the time-sensitive network priority for data of different protocols.
[0016] Further, the heterogeneous data exchange unit includes an input path, an address lookup forwarding scheduling module, a Crossbar switching structure, a conversion processing unit, and a monitoring data output path;
[0017] The input path includes a port and a heterogeneous protocol data parsing module; the heterogeneous protocol data parsing module analyzes the source address and destination address of different protocol data, and sends this information to the address lookup forwarding scheduling module; the address lookup forwarding scheduling module includes a lookup table, receives the destination address parsed by the heterogeneous protocol data parsing module, converts the destination address of different data into a port signal and sends it to the Crossbar switching structure; the Crossbar switching structure realizes the data exchange function, and the address mapping is controlled by the address lookup forwarding scheduling module.
[0018] Furthermore, the interactive port realizes the interaction of data and control information between the configuration management center and the heterogeneous data exchange unit.
[0019] The present invention also provides a low-latency and high-determinism industrial protocol conversion method, including a heterogeneous protocol conversion processing algorithm, a time-sensitive network dynamic priority algorithm and a task scheduling process applied to the low-latency and high-determinism industrial protocol conversion architecture. The heterogeneous protocol conversion processing algorithm retrieves the protocol type, quantity, priority, user-defined priority, deadline and conversion relationship data between heterogeneous protocols of the user-defined device from the protocol conversion configuration interface, generates an optimal processing solution lookup table, and generates a random sample to verify the optimal processing solution lookup table.
[0020] Furthermore, the time-sensitive network dynamic priority algorithm is used to calculate the dynamic priority of different protocol data when interacting with the heterogeneous protocol interaction management device, and the time-sensitive network dynamic priority algorithm includes the following steps:
[0021] Calculate the priority p E : When the heterogeneous protocol interaction management device receives a request to upload data of a certain device to the transmission network during the protection band time period, the requested data will be uploaded during the next processing cycle. When there is free time during a processing cycle, the requested data can be extracted from the device layer. The data will not be uploaded to the transmission network before the next protection band comes. The time when the data is extracted to the heterogeneous protocol interaction management device determines its priority pE ;
[0022]
[0023] Δ is the unit waiting time distance, p is the priority number, and the waiting time T of the requested data in the heterogeneous protocol interaction management device can be calculated. delay The corresponding priority p of the data flow in the heterogeneous protocol interaction management device E , the smaller the value, the greater the priority in the end device;
[0024] Calculate the dynamic priority p of time-sensitive network TSN :
[0025]
[0026] P u The user-defined priority is introduced to indicate the importance of the data to the user, thereby affecting the priority of the data. α is the weight of the user-defined priority, and 1-α is p E The weight of the two is the priority p of the data flow in the time-sensitive network. TSN .
[0027] Furthermore, the task scheduling process applied to the low-latency and high-determinism industrial protocol conversion architecture includes a device layer data conversion process, a heterogeneous protocol interaction management device configuration process and a data query process. The device layer data conversion process, the heterogeneous protocol interaction management device configuration process and the data query process can be executed in parallel.
[0028] Technical Effects
[0029] (1) The low-latency and high-determinism industrial protocol conversion architecture supports multiple industrial protocols such as PROFINE, EtherNet / IP, Wifi, and ZigBee, achieving data interoperability between devices with different protocols and ensuring the real-time and deterministic nature of data transmission. In addition, the industrial protocol conversion architecture in the present invention provides an efficient solution for accessing time-sensitive networks for existing heterogeneous protocol devices, effectively reducing the cost of physical hardware replacement. These technical effects provide solid technical support for the realization of intelligent manufacturing and promote the further development of industrial automation and intelligence;
[0030] (2) The hardware framework of the present invention divides the FPGA into a configuration management center, a heterogeneous data exchange unit, and an interactive port through clear partitioning, thereby realizing efficient organization of the data processing flow. The configuration management center is responsible for the initial settings and configuration of the initial algorithm data, and the heterogeneous data exchange unit directs the data flow and undertakes the actual data processing tasks; the time-sensitive network dynamic priority algorithm calculates the priority of each Ethernet data frame; the optimal processing solution lookup table manages the output order of the port protocol data. The design of the framework allows for flexible configuration of the number and types of different protocols, demonstrating its high flexibility and scalability; whether it is to cope with the conversion requirements of existing protocols or future new protocols, the hardware framework of the present invention can provide stable support;
[0031] (3) The heterogeneous protocol conversion processing algorithm in the present invention realizes the calculation of dynamic priority in the process of data conversion between multiple heterogeneous protocols. Under the requirements of real-time and determinism, data conversion between different protocols can be performed efficiently and stably. The algorithm uses timeout rate, determinism and real-time as core evaluation indicators. The algorithm not only improves the real-time of data processing and the determinism of operation, but also effectively reduces the risk of data timeout during the conversion process. In addition, the algorithm optimizes local delay jitter, further improving the overall stability and reliability of the system. Combining these technical effects, the algorithm provides strong technical support for building an efficient, stable and reliable heterogeneous protocol conversion system.
[0032] (4) The time-sensitive network dynamic priority algorithm in the present invention ensures that the delay of sending data to the protocol management and control device is deterministic; and the algorithm takes into account the user's definition of protocol priority, and can balance the waiting delay of uploading data and the user's attention to the data, so that the priority of the data when being processed by the time-sensitive network is more reasonable, and neither the data that the user cares about nor the data with a long waiting delay will be ignored.
[0033] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a schematic diagram of a low-latency and high-determinism industrial protocol conversion architecture of a preferred embodiment of the present invention;
[0035] Figure 2 It is a schematic diagram of the hardware framework of a heterogeneous protocol interaction management device of a preferred embodiment of the present invention;
[0036] Figure 3 It is the steps of a heterogeneous protocol conversion processing algorithm of a preferred embodiment of the present invention;
[0037] Figure 4 It is a flow chart of device layer data conversion task of a preferred embodiment of the present invention;
[0038] Figure 5 It is a flow chart of heterogeneous protocol interaction management equipment configuration tasks of a preferred embodiment of the present invention;
[0039] Figure 6 It is a data query task flow chart of a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0040] The following describes several preferred embodiments of the present invention with reference to the drawings in the specification, so that the technical content is clearer and easier to understand. The present invention can be embodied in many different forms of embodiments, and the protection scope of the present invention is not limited to the embodiments mentioned in the text.
[0041] In the drawings, components with the same structure are indicated by the same numerical reference numerals, and components with similar structures or functions are indicated by similar numerical reference numerals. The size and thickness of each component shown in the drawings are arbitrarily shown, and the present invention does not limit the size and thickness of each component. In order to make the illustration clearer, the thickness of the components is appropriately exaggerated in some places in the drawings.
[0042] like Figure 1 As shown in the figure, the low-latency and high-determinism industrial protocol conversion architecture includes protocol management and control equipment, transmission network, heterogeneous protocol interaction management equipment and device layer. The following uses the conversion of four heterogeneous industrial protocols, PROFINET, EtherNet / IP, Wifi and ZigBee, as an example to illustrate this architecture.
[0043] The protocol management and control equipment includes a host computer, which includes a protocol conversion configuration interface and a heterogeneous protocol conversion processing algorithm. Users can configure the initial parameters of multiple heterogeneous protocols and query data through the protocol conversion configuration interface, and then use the configured data as the processing data of the heterogeneous protocol conversion processing algorithm to obtain the optimal processing solution to ensure the real-time and deterministic transmission of heterogeneous protocol data. The device layer includes industrial nodes, automation controllers, wireless devices and other devices, which support PROFINET, EtherNet / IP, Wifi and ZigBee protocols. The protocol conversion configuration interface is an interface provided by the host computer for users to configure protocol conversion. In the protocol conversion configuration interface, users can customize the protocol type, quantity, offset time, priority, user-defined priority and conversion relationship between heterogeneous protocols of the device. Users can also extract data of devices in the device layer; the selection range of protocol types includes PROFINET, EtherNet / IP, Wifi, ZigBee, and users define up to four types of protocols: Type 1, Type 2, Type 3, and Type 4. After defining the protocol types represented by Type 1 to Type 4, configure the protocol types used by different devices respectively; the number ranges from one to four; the numerical range of priority and user-defined priority is zero to three; the offset time defines the offset time of different protocol data input, which indirectly reflects the input order of different protocol data.
[0044] The transmission network includes a time-sensitive network, which supports deterministic communication and network traffic control technologies to ensure the reliability of data transmission. The network includes gateways, time-sensitive network switches and clients, which are linked together according to different topologies and can send or read data to a variety of heterogeneous protocol devices through the network.
[0045] The heterogeneous protocol interaction management device includes a hardware framework, its task scheduling, and a time-sensitive network dynamic priority algorithm. It has the functions of accessing the device layer and the transmission network, receiving the device layer and data from the upper layer, and converting four industrial heterogeneous protocols.
[0046] like Figure 2 As shown, it is a schematic diagram of the core hardware framework that can realize the functions of low-latency and high-determinism industrial protocol conversion architecture. The hardware is developed based on field programmable gate array (FPGA), including configuration management center, heterogeneous data exchange unit and interactive port.
[0047] The configuration management center includes a management port, a configuration scheme, a gating list and a time-sensitive network dynamic priority algorithm module; the management port is an Ethernet port through which configuration data can be received; the configuration scheme module contains an optimal processing scheme lookup table, an arrangement sequence table and user-configured protocol information; the optimal processing scheme lookup table is used to find the optimal processing scheme corresponding to the input sequence; the arrangement sequence table finds the output sequence of different protocol data corresponding to the optimal processing scheme; the gating list module generates a gating list according to the output sequence to control the switching sequence of the gating switch; the time-sensitive network dynamic priority algorithm module uses the time-sensitive network dynamic priority algorithm to process and calculate the user-configured protocol information, and defines the time-sensitive network priority for data of different protocols.
[0048] The heterogeneous data exchange unit includes an input path, an address lookup forwarding scheduling, a Crossbar switching structure, a conversion processing unit, and a monitoring data output path; the input path includes a port and a heterogeneous protocol data parsing module; a device equipped with a wired protocol PROFINET or EtherNet / IP accesses the port through a serial port; a wireless device equipped with a wireless protocol Wifi or ZigBee connects to the port through a wireless communication protocol; the heterogeneous protocol data parsing module analyzes the source address and destination address of different protocol data, and sends this information to the address lookup forwarding scheduling module; the address lookup forwarding scheduling module includes a lookup table, receives the destination address parsed by the heterogeneous protocol data parsing module, converts the destination address of different data into a port signal and sends it to the Crossbar switching structure; the Crossbar switching structure module The data exchange function is realized, and the address mapping is controlled by the address lookup forwarding scheduling module; the conversion processing unit includes FIFO queues of four protocols, protocol conversion, gated switches and port modules, and the processing cycle of this module is divided into injection time and conversion time; the FIFO queues of the four protocols are used to arrange the data of the four protocols respectively, and also to classify the different protocol data output to a conversion processing unit module; the protocol conversion module converts the data of the four protocols into the protocol data corresponding to the port module to be output; the switching order of the gated switch is determined by the gate list; the monitoring data output path includes a dynamic priority shaper and a port; the dynamic priority shaper processes Ethernet data, and the value of its VLAN tag is the time-sensitive network priority. A period of time in the processing cycle of this module is taken as a protection band, and data upload is realized within the protection band time.
[0049] The interactive port realizes the interaction of data and control information between the configuration management center and the heterogeneous data exchange units.
[0050] The method of the present invention includes a heterogeneous protocol conversion processing algorithm, a time-sensitive network dynamic priority algorithm and a task scheduling process applied to a low-latency and high-determinism industrial protocol conversion architecture.
[0051] The steps of the heterogeneous protocol conversion processing algorithm are as follows Figure 3 As shown; the heterogeneous protocol conversion processing algorithm takes out the protocol type, quantity, priority, user-defined priority, deadline and conversion relationship data between heterogeneous protocols of the user-defined device from the protocol conversion configuration interface, and generates an optimal processing solution lookup table; the following uses the conversion of four heterogeneous industrial protocols, PROFINET, EtherNet / IP, Wifi and ZigBee, as an example to illustrate the heterogeneous protocol conversion processing algorithm, which includes the following steps:
[0052] Step S11: extracting initial data from the protocol conversion configuration interface: protocol type, quantity, priority, user-defined priority, deadline, and conversion relationship data between heterogeneous protocols of user-defined devices; the smaller the priority and user-defined priority value, the higher the priority;
[0053] Step S12: Generate an arrangement sequence number table, which is a table with p(n) rows and n+1 columns; the first column of the arrangement sequence number table contains a sequence number from 1 to P(n), and the second to n+1 columns after each sequence number represent the order in which type 1, ..., type n protocol data interacts with the heterogeneous protocol interaction management device; interaction means input or output; n is the number of user-defined protocols, The number of permutations and combinations of n types of protocol data when interacting with heterogeneous protocol interaction management devices;
[0054] Step S13: Generate a lookup table, which is a table with 2P(n) rows and P(n) columns; each element of the lookup table is denoted by D m(x)j , D m(x)j Indicates whether the basic requirements are met when the data of different protocols are input to the heterogeneous protocol interaction management device in the order of different protocol inputs corresponding to the first column number m of the sequence number table, and the data of different protocols are output to the device layer in the order of different protocol outputs corresponding to the first column number j of the sequence number table; x is the representative sample type of sequence number m; the basic requirements include meeting the deadline and the delay jitter not exceeding the optimal delay jitter; D m(x)j The value is 0 or 1, 0 means it does not meet the basic requirements, and 1 means it meets the basic requirements; the initial state of the lookup table is:
[0055]
[0056] Step S14: Generate representative samples, and generate two representative samples for the order in which different protocols corresponding to any sequence number m in the sequence number table input data to the heterogeneous protocol interaction management device, including representative sample 1 and representative sample 2; representative sample 1 indicates that devices of different protocols input data to the heterogeneous protocol interaction management device in the order corresponding to the sequence number m in the sequence number table, and input data at the beginning of the injection time; representative sample 2 indicates that devices of different protocols input data to the heterogeneous protocol interaction management device in the order corresponding to the sequence number m in the sequence number table, and input data only when the injection time is about to end; there are a total of 2P(n) representative samples;
[0057] Step S15: Calculate the waiting time T(m, x, i) within the injection time.
[0058]
[0059] Where m refers to the input sequence of different protocols corresponding to the sequence number m in the first column of the sequence number table to input different types of protocol data to the heterogeneous protocol interaction management device; x refers to the xth sample of m; i refers to the ith protocol; T(m, x, i) refers to the waiting time from the time when the ith protocol of the xth sample of the mth input sequence is input to the heterogeneous protocol interaction management device to the end of the injection time; t(m, x, i) refers to the time when the ith protocol data of the xth sample of the mth input sequence is input to the heterogeneous protocol interaction management device; range refers to the duration of the injection time;
[0060] Step S16: Calculate the delay D(m, x, i, j),
[0061]
[0062] j indicates that the data of different protocols are output to the device layer in the order of the output of different protocols corresponding to the first column number j in the sequence number table. p (i, j) refers to the time duration between the end of the injection time of the i-th protocol and the time when the protocol data is output from the heterogeneous protocol interaction management device when the data of different types of protocols are output to the device layer in the output order of different types of protocols corresponding to the first column number j in the arrangement sequence table; D(m, x, i, j) refers to the total delay between the time when the i-th protocol of the x-th representative sample is input into the heterogeneous protocol interaction management device and the time when the data is output when the data of different types of protocols are input into the heterogeneous protocol interaction management device in the input order of different types of protocols corresponding to the first column number m in the arrangement sequence table;
[0063] Step S17: Update the lookup table and compare the delay D(m, x, i, j) with the deadline DDL(i) of the i-th protocol. This indicates that D m(x)j Meet the basic requirement of deadline; after calculation in steps S14, S15, and S16, update all elements D of the lookup table m(x)j , update the elements that do not meet the basic requirement of deadline to 0;
[0064] Step S18: Calculate the average delay time T MID (i)
[0065]
[0066] Step S19: Calculate the optimal delay jitter ΔD(i). The optimal delay jitter ΔD(i) refers to the optimal jitter delay of the i-th protocol. ΔD(i) is obtained by binary search and traversal method, and must satisfy constraint 1. Constraint 1 is User defined priority c i The weight that affects the optimal delay jitter of the i-th protocol, ΔD 1 (i) Use the middle value in the dichotomy process;
[0067] Step 110: Update the lookup table and delay to meet T MID (i)-ΔD(i)≤D(m,x,i,j)≤T MID (i)+ΔD(i) represents the basic requirement that the delay jitter does not exceed the optimal delay jitter; update all elements D in the lookup table m(x)j ,The elements that do not meet the basic requirement that the delay jitter does not exceed the optimal delay jitter are updated to 0;
[0068] Step 111: Generate an optimal processing solution lookup table. The optimal processing solution lookup table is a table with 2P(n) rows and 2 columns. The first column of the optimal processing solution lookup table contains the sequence number y from 1 to 2P(n), y=m(x)=2*(m-1)+x, m=1,...,P(n), x=1,2. The second column contains the optimal processing solution corresponding to the sequence number y. The optimal processing solution z refers to the output order of different types of protocols corresponding to the sequence number z in the first column of the sequence number table.
[0069] The device layer outputs data of different protocols; the optimal processing solution z corresponding to sequence number y is D in the lookup table m(x)j =1, m(x)=y, z=j, lookup table D m(x)j = 1, there may be multiple values of j, then the solution with the smallest sum of the delays of the i protocols is taken as the optimal solution.
[0070] Step 112: Verify the feasibility of the solution, generate k random samples for verifying the optimal processing solution lookup table, and index the corresponding optimal processing solution z in the optimal processing solution lookup table according to the order and time of the data of the i-th protocol of each sample being input into the heterogeneous protocol interaction management device; the order of the data of the i-th protocol of each sample being input into the heterogeneous protocol interaction management device is indexed in the arrangement sequence table with its corresponding sequence number m, and if the sum of the time when the data of the i-th protocol of each sample is input into the heterogeneous protocol interaction management device is less than 0.75 times the injection time, then x=1, otherwise x=2, and y=m(x) is obtained; use y to index the optimal processing solution z in the optimal processing solution lookup table, and verify whether the random sample meets the two conditions of deadline and not exceeding 5% of the optimal delay jitter. Conditions, as long as one of them is not satisfied, return to step S18, and before starting step S18, the optimal processing solution z that does not meet the requirements will be set to zero in the lookup table; if the above two conditions are met, it means that the optimal processing solution lookup table is feasible, and the heterogeneous protocol conversion processing algorithm ends; the user-defined priority, offset time, optimal processing solution lookup table and arrangement sequence table are transmitted from the protocol management control device to the heterogeneous protocol interaction management device through the transmission network; when the configuration information of the protocol type, quantity, priority, user-defined priority, deadline and conversion relationship data between heterogeneous protocols of the user-defined device remains unchanged, there is no need to repeatedly update the optimal processing solution lookup table and the arrangement sequence table, and only the offset time information needs to be transmitted to the heterogeneous protocol interaction management device.
[0071] The tasks in the heterogeneous protocol interaction management device include device layer data conversion, heterogeneous protocol interaction management device configuration and data query. Because the hardware is developed based on FPGA, the above tasks can be executed in parallel.
[0072] The device layer data conversion task realizes the mutual conversion and exchange forwarding between different protocol data at the device layer. The following example uses the conversion of four heterogeneous industrial protocols: PROFINET, EtherNet / IP, Wifi, and ZigBee to illustrate this task. Figure 4 As shown, this task includes the following steps:
[0073] Step S21: Data input, the device layer sends the above-mentioned four protocol data to the heterogeneous protocol interaction management device through port 0 to port 4;
[0074] Step S22: parsing heterogeneous protocol data, parsing heterogeneous protocol data frames, and extracting their source addresses and destination addresses;
[0075] Step S23: forwarding data, the data is forwarded through the Crossbar switching structure, and the data will be sent to the port corresponding to the destination address;
[0076] Step S24: the data input into the conversion processing unit at the beginning of the injection time enters the classification queue, the data is classified according to different protocols, and is put into four first-in first-out queues respectively;
[0077] Step S25: protocol conversion at the beginning of the conversion time, converting data of different protocols into the protocol corresponding to the output port;
[0078] Step S26: searching for a configuration scheme, using the offset time of different protocol data to calculate the input order, using the offset time and the input order to search for the optimal processing scheme lookup table, obtaining the optimal processing scheme, and searching for the output order of different protocol data corresponding to the optimal processing scheme in the arrangement sequence table;
[0079] Step S27: Generate a gating list, generate the gating list according to the optimal output sequence, and control the switching sequence of the gating switches;
[0080] Step S28: Queue output, data from different queues are output in sequence according to the switching order of the gate switches.
[0081] The heterogeneous protocol interaction management device configuration task configures part of the user-configured data in the protocol management control device to the heterogeneous protocol interaction management device, such as Figure 5 As shown, this task includes the following steps:
[0082] Step S31: Management port data input, the data to be configured is input into the device through the Ethernet port, and the data must be configuration data;
[0083] Step S32: Data input, the device layer sends data to the heterogeneous protocol interaction management device through port 0;
[0084] Step S32: Send data to the configuration management center, analyze the destination address of the data frame from port 0, if the destination port is an interactive port, the data is a configuration data, the data is sent to the configuration scheme module of the configuration management center through heterogeneous protocol data parsing, address lookup forwarding scheduling and interactive port module, and the data from the management port is directly sent to the configuration scheme;
[0085] Step S33: extracting configuration content, extracting configuration content from the payload of the data frame, the configuration content including user-defined priority, offset time, optimal processing solution lookup table and arrangement sequence number table;
[0086] Step S34: updating the optimal processing solution lookup table;
[0087] Step S35: Update the arrangement sequence number lookup table;
[0088] Step S36: Update user configuration data.
[0089] The data query task feeds back the requested query data to the protocol management control device and the transmission network, such as Figure 6 As shown, this task includes the following steps:
[0090] Step S41: Port 0 input, a data query request is input into the device through port 0;
[0091] Step S42: parsing heterogeneous protocol data, parsing heterogeneous protocol data frames, and extracting their source addresses and destination addresses;
[0092] Step S43: extract the data to be uploaded, and the Crossbar switching structure switches the query data to port 0 for output, and outputs it to the monitoring data output path module;
[0093] Step S44: using the time-sensitive network dynamic priority algorithm to define the processing offset time and the user-defined priority to calculate the priority of the data to be uploaded in the time-sensitive network;
[0094] Step S45: Dynamic priority adjustment, receiving the time-sensitive network priority calculated by the time-sensitive network priority algorithm in the dynamic priority shaper, and assigning the priority to the VLAN tag of the data frame;
[0095] Step S45: Port 0 output, sending the Ethernet data frame to port 0 output, and returning the queried data to the query end.
[0096] The time-sensitive network dynamic priority algorithm calculates the dynamic priority of the type 1, ..., type n protocol data when interacting with the heterogeneous protocol interaction management device, and determines the priority of different protocol data in the time-sensitive network; the time-sensitive network dynamic priority algorithm includes the following steps:
[0097] Step S51: Calculate the priority p E When the heterogeneous protocol interaction management device receives a request to upload data of a certain device to the transmission network during the protection band time period, it will upload the requested data during the protection band time period in the next processing cycle; when there is idle time in a processing cycle, the requested data can be extracted from the device layer, and the data will not be uploaded to the transmission network before the next protection band comes. The time when the data is extracted to the heterogeneous protocol interaction management device determines its priority p E ;
[0098]
[0099] Δ is the unit waiting time distance, p is the number of priorities. Since the number of time-sensitive network queues is usually 8, p is usually 8. The waiting time T of the requested data in the heterogeneous protocol interaction management device can be calculated. delayThe corresponding priority p of the data flow in the heterogeneous protocol interaction management device E The smaller the value, the greater the priority in the end device; E The calculation formula is to calculate the waiting time of the requested data as a percentage of pp E Unit waiting time distance Δ;
[0100] Step S52: Calculate the time-sensitive network dynamic priority p TSN ,
[0101]
[0102] P u The user-defined priority is introduced to indicate the importance of the data to the user, thereby affecting the priority of the data. α is the weight of the user-defined priority, and 1-α is p E The weight of the two is the priority p of the data flow in the time-sensitive network. TSN .
[0103] The preferred specific embodiments of the present invention are described in detail above. It should be understood that ordinary technicians in the field can make many modifications and changes based on the concept of the present invention without creative work. Therefore, all technical solutions that can be obtained by technicians in the technical field based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A low-latency and high-determinism industrial protocol conversion architecture, characterized in that: Includes protocol management and control equipment, transmission network, heterogeneous protocol interaction management equipment and device layer; The protocol management and control device includes a host computer, which includes a protocol conversion configuration interface and a heterogeneous protocol conversion processing algorithm. A user can configure the initial parameters of a variety of heterogeneous protocols and query data through the protocol conversion configuration interface, and then use the configured data as processing data of the heterogeneous protocol conversion processing algorithm to obtain the optimal processing solution.
2. The low-latency, high-determinism industrial protocol conversion architecture according to claim 1, characterized in that: The transmission network includes a time-sensitive network, which supports technologies of deterministic communication and network traffic control to ensure the reliability of data transmission. The time-sensitive network includes a gateway, a time-sensitive network switch and a client.
3. The low-latency, high-determinism industrial protocol conversion architecture according to claim 1, characterized in that: The heterogeneous protocol interaction management device includes a hardware framework, task scheduling and a time-sensitive network dynamic priority algorithm. The heterogeneous protocol interaction management device has the functions of accessing the device layer and the transmission network, receiving data from the device layer and from the upper layer, and converting industrial heterogeneous protocols.
4. The low-latency, high-determinism industrial protocol conversion architecture as described in claim 3, characterized in that: The hardware framework of the heterogeneous protocol interaction management device includes: a configuration management center, a heterogeneous data exchange unit and an interaction port.
5. The low-latency, high-determinism industrial protocol conversion architecture according to claim 4, characterized in that: The configuration management center includes a management port, a configuration scheme module, a gating list module and a time-sensitive network dynamic priority algorithm module; The management port is an Ethernet port, which can receive configuration data; The configuration scheme module includes an optimal processing scheme lookup table, an arrangement sequence number table, and user-configured protocol information; the optimal processing scheme lookup table is used to find the optimal processing scheme corresponding to the input sequence; The arrangement sequence table searches for the output sequence of different protocol data corresponding to the optimal processing solution; The gating list module generates a gating list according to the output sequence, which is used to control the switching sequence of the gating switches; The time-sensitive network dynamic priority algorithm module uses the time-sensitive network dynamic priority algorithm to process and calculate the protocol information configured by the user, and defines the time-sensitive network priority for data of different protocols.
6. The low-latency, high-determinism industrial protocol conversion architecture according to claim 4, characterized in that: The heterogeneous data exchange unit includes an input path, an address lookup forwarding scheduling module, a Crossbar switching structure, a conversion processing unit and a monitoring data output path; The input path includes a port and a heterogeneous protocol data parsing module; The heterogeneous protocol data parsing module analyzes the source address and destination address of different protocol data, and sends this information to the address search forwarding scheduling module; The address lookup forwarding scheduling module includes a lookup table, receives the destination address parsed by the heterogeneous protocol data parsing module, converts the destination address of different data into a port signal and sends it to the Crossbar switching structure; the Crossbar switching structure realizes the data exchange function, and the address mapping is controlled by the address lookup forwarding scheduling module.
7. The low-latency, high-determinism industrial protocol conversion architecture of claim 4, wherein: The interactive port realizes the interaction of data and control information between the configuration management center and the heterogeneous data exchange unit.
8. A low-latency and high-determinism industrial protocol conversion method, characterized in that: It includes a heterogeneous protocol conversion processing algorithm, a time-sensitive network dynamic priority algorithm and a task scheduling process applied to the low-latency and high-determinism industrial protocol conversion architecture. The heterogeneous protocol conversion processing algorithm extracts the protocol type, quantity, priority, user-defined priority, deadline and conversion relationship data between heterogeneous protocols of the user-defined device from the protocol conversion configuration interface, generates an optimal processing solution lookup table, and generates a random sample to verify the optimal processing solution lookup table.
9. The low-latency and high-determinism industrial protocol conversion method according to claim 8, characterized in that: The time-sensitive network dynamic priority algorithm is used to calculate the dynamic priority of different protocol data when interacting with the heterogeneous protocol interaction management device, and the time-sensitive network dynamic priority algorithm includes the following steps: Calculate the priority p E : When the heterogeneous protocol interaction management device receives a request to upload data of a certain device to the transmission network during the protection band time period, the requested data will be uploaded during the next processing cycle. When there is free time during a processing cycle, the requested data can be extracted from the device layer. The data will not be uploaded to the transmission network before the next protection band comes. The time when the data is extracted to the heterogeneous protocol interaction management device determines its priority p E ; Δ is the unit waiting time distance, p is the priority number, and the waiting time T of the requested data in the heterogeneous protocol interaction management device can be calculated. delay The corresponding priority p of the data flow in the heterogeneous protocol interaction management device E , the smaller the value, the greater the priority in the end device; Calculate the dynamic priority p of time-sensitive network TSN : P u The user-defined priority is introduced to indicate the importance of the data to the user, thereby affecting the priority of the data. α is the weight of the user-defined priority, and 1-α is p E The weight of the two is the priority p of the data flow in the time-sensitive network. TSN .
10. The low-latency and high-determinism industrial protocol conversion method according to claim 8, characterized in that: The task scheduling process applied to the low-latency and high-determinism industrial protocol conversion architecture includes a device layer data conversion process, a heterogeneous protocol interaction management device configuration process and a data query process. The device layer data conversion process, the heterogeneous protocol interaction management device configuration process and the data query process can be executed in parallel.
Citation Information
Patent Citations
Industrial heterogeneous network protocol deterministic conversion method and device
CN114172975A
Protocol conversion method for AUTBUS and time sensitive network
CN115665273A
Heterogeneous industrial wired / wireless protocol conversion architecture and method for OT and IT fusion
CN117440059A
Protocol conversion method for fusion of 5G network and industrial field network
CN117834749A
Intelligent hub for protocol-agnostic file transfer
US10701135B1
Cited By
Airborne time-sensitive network data flow priority classification method
CN121664752A
