Isolation device for protocol, access control method, equipment and medium

By introducing isolation devices and access control methods in industrial control systems, the legitimacy of the ModbusTCP protocol is analyzed and judged, and the problems of high-speed data interaction and secure access control in the industrial Internet of Things are solved, and secure and efficient data exchange and network security are achieved. promote.

CN118972167AInactive Publication Date: 2024-11-15ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD

Patent Information

Application Number
CN202411426331.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing industrial control systems are difficult to meet the high-speed data interaction needs of the industrial Internet of Things due to the use of a large number of aging equipment and traditional slow data exchange modules, and there are problems of data leakage and security maintenance.

Method used

Provide an isolation device and access control method, including an external network access control module, an intranet access control module and a high-speed data transmission module. By analyzing and judging the legitimacy of the ModbusTCP protocol, secure access control and high-speed data of the industrial control protocol are realized. exchange.

Benefits of technology

It realizes secure access control of ModbusTCP industrial control protocol, supports more convenient deployment methods, reduces customer network transformation costs, improves user satisfaction, and meets the high-speed data interaction needs of the industrial Internet of Things, improving the security of the internal network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972167A_ABST
    Figure CN118972167A_ABST
Patent Text Reader

Abstract

The invention discloses a protocol isolation device, an access control method, equipment and a medium. The isolation device comprises an extranet access control module, an intranet access control module and a high-speed data transmission module, wherein the extranet access control module comprises an access control strategy management function; the method and the device are used for realizing high-speed data exchange between the internal network and the external network and security access control of a Modbus TCP industrial control protocol. Compared with the prior art, the method supports a more convenient deployment mode, reduces the client network reconstruction cost, and improves the user satisfaction. And through high-speed data interaction, the continuously changing network flow requirements of customers are met, the security of an internal network is improved, and meanwhile, the high-speed data interaction requirements of the industrial Internet of Things are also met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of industrial control technology, and in particular to a method for controlling access to a protocol and related devices. Background Art

[0002] The rise of the industrial Internet has enabled industrial equipment to achieve a higher degree of connectivity and data sharing, and the application of cloud computing and cloud platforms has enabled industrial control systems to better achieve remote monitoring, data storage and analysis. The development of the above technologies, while providing convenience, also brings certain risks of data leakage.

[0003] For data security, most industrial enterprises have installed isolation cards, isolation control and other equipment to divide the enterprise into two networks: intranet and extranet. The intranet is used for internal communication and office automation, and the extranet is used to connect with external industrial equipment and build the industrial Internet. Isolation cards, isolation control and other equipment divide the enterprise into two networks, which to a certain extent solves the possibility of internal data leakage and external attacks. However, in the existing industrial control system, the use of a large number of aging equipment and technologies makes the security maintenance and upgrade of the industrial control system difficult, and the traditional slow data exchange module is also difficult to meet the high-speed data interaction requirements of the high-speed industrial Internet of Things. Summary of the invention

[0004] The present application provides an isolation device, access control method, equipment and medium for a protocol, which are used to realize high-speed data exchange between internal and external networks, as well as secure access control of the ModbusTCP industrial control protocol, while meeting the high-speed data interaction requirements of the industrial Internet of Things.

[0005] In view of this, the first aspect of the present application provides a device for isolating a protocol, the device comprising: an external network access control module including an access control policy management function, an internal network access control module and a high-speed data transmission module;

[0006] The external network access control module is used for:

[0007] S1. After parsing the preset access control policy, determine whether to prohibit all ModbusTCP protocols in the slave stations from the external network from passing through the isolation device according to the access control policy; if not, execute step S2, and if so, return an error message to the master station of the internal network;

[0008] S2. When receiving the ModbusTCP protocol of the external network, determine whether the ModbusTCP protocol is a legal message; if so, send it to the intranet access control module through the high-speed data transmission module; if not, discard the ModbusTCP protocol;

[0009] The intranet access control module is used for:

[0010] S3, after receiving the ModbusTCP protocol, decapsulate the ModbusTCP protocol, and forward the decapsulated ModbusTCP protocol to the master station of the intranet, so that the master station responds and generates response data;

[0011] S4. Receive and parse the response data, and determine whether the response data is legal; if so, encapsulate the response data and send it to the high-speed data transmission module, so that the high-speed data transmission module forwards it to the external network access control module.

[0012] Optionally, step S2 includes:

[0013] S21. Initialize a TCP server in the external network according to the access control policy to monitor the ModbusTCP connection request from the external network;

[0014] S22. When the TCP server receives a ModbusTCP connection request from the external network, a client thread is created for communicating with the ModbusTCP slave station; a communication channel between the client thread and the high-speed data transmission module is initialized for high-speed data transmission, and the client thread is bound to the communication channel;

[0015] S23, when the client thread receives the ModbusTCP protocol from the external network, it is determined whether the ModbusTCP protocol is a legal message, if so, step S24 is executed, if not, the ModbusTCP protocol is discarded;

[0016] S24. After encapsulating the ModbusTCP protocol according to the requirements of the high-speed data transmission module, it is sent to the high-speed data transmission module through the communication channel. When the high-speed data transmission module receives the ModbusTCP protocol, it identifies the ModbusTCP protocol as a unique data stream and transmits it to the intranet access control module through the corresponding communication channel.

[0017] Optionally, the determining whether the ModbusTCP protocol is a legal message includes:

[0018] Condition 1: Match the master station address of the ModbusTCP protocol with the master station address in the access control policy;

[0019] Condition 2: Match the slave address of the ModbusTCP protocol with the slave address in the access control policy;

[0020] Condition three: matching the protocol number of the ModbusTCP protocol with the protocol number in the access control policy;

[0021] Condition 4: Match the function code of the ModbusTCP protocol with the function code in the access control policy;

[0022] Condition 5: Match the register address of the ModbusTCP protocol with the register address in the access control policy;

[0023] When conditions one to five are all matched successfully, the ModbusTCP protocol is determined to be a legal message, otherwise it is an illegal message.

[0024] Optionally, encapsulating the ModbusTCP protocol according to the requirement of the high-speed data transmission module includes:

[0025] The master station address and the master station port number in the access control policy are obtained, and the slave station address and the slave station port number are obtained through the client thread, and the ModbusTCP protocol is encapsulated according to the master station address, the master station port number, the slave station address and the slave station port number.

[0026] Optionally, step S3 includes:

[0027] S31, creating a monitoring thread for real-time monitoring of data receiving events from the high-speed data transmission module;

[0028] S32, after receiving the data receiving event, creating a client thread for receiving the ModbusTCP protocol in the high-speed data transmission module; and initializing a communication channel with the high-speed data transmission module for high-speed data transmission, and binding the client thread to the communication channel;

[0029] S33, after receiving the ModbusTCP protocol from the high-speed data transmission module through the client thread, decapsulating the ModbusTCP protocol;

[0030] S34, create a TCP client, establish a connection channel with the master station of the intranet, and forward the decapsulated ModbusTCP protocol to the master station of the intranet, so that the master station responds and generates response data.

[0031] Optionally, decapsulating the ModbusTCP protocol includes:

[0032] The ModbusTCP protocol is decapsulated to obtain the master station address, master station port number, slave station address, slave station port number and the message content of the ModbusTCP protocol.

[0033] Optionally, the sending to the high-speed data transmission module so that the high-speed data transmission module forwards to the external network access control module includes:

[0034] Sending the response data to the high-speed data transmission module through a communication channel, so that the high-speed data transmission module identifies the response data as a unique data stream according to a preset physical transmission protocol;

[0035] The data stream is uniformly transmitted to the external network access control module through the corresponding communication channel, so that the communication channel decapsulates the response data after receiving it from the high-speed data transmission module, and returns the decapsulated response data to the slave station of the external network through the client thread.

[0036] A second aspect of the present application provides a method for controlling access to a protocol, the method comprising:

[0037] S1. After parsing the preset access control policy, determine whether to prohibit all ModbusTCP protocols in the slave stations from the external network from passing through the isolation device according to the access control policy. If not, execute step S2. If yes, return an error message to the master station of the internal network;

[0038] S2. When the external network access control module receives the ModbusTCP protocol of the external network, it determines whether the ModbusTCP protocol is a legal message. If so, it sends it to the internal network access control module through the high-speed data transmission module. If not, the ModbusTCP protocol is discarded;

[0039] S3. After receiving the ModbusTCP protocol, the intranet access control module decapsulates the ModbusTCP protocol and forwards the decapsulated ModbusTCP protocol to the master station of the intranet, so that the master station responds and generates response data;

[0040] S4. The intranet access control module receives and parses the response data, and determines whether the response data is legal; if so, the response data is encapsulated and sent to the high-speed data transmission module, so that the high-speed data transmission module forwards it to the external network access control module.

[0041] A third aspect of the present application provides an access control device for a protocol, the device comprising a processor and a memory:

[0042] The memory is used to store program code and transmit the program code to the processor;

[0043] The processor is used to execute the steps of the access control method for the protocol as described in the second aspect according to the instructions in the program code.

[0044] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the access control method for the protocol described in the second aspect above.

[0045] It can be seen from the above technical solutions that this application has the following advantages:

[0046] The present application provides an isolation device and access control method for the protocol, which realizes secure access control of the ModbusTCP industrial control protocol, supports a more convenient deployment method, reduces customer network transformation costs, and improves user satisfaction; high-speed data interaction meets customers' ever-changing network traffic needs, which not only improves the security of the internal network, but also meets the high-speed data interaction needs of the industrial Internet of Things. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A typical deployment diagram of an isolation device for the ModbusTCP protocol provided in an embodiment of the present application;

[0048] Figure 2 A flow chart of an access control method for the ModbusTCP protocol provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0050] Terminology explanation:

[0051] Modbus was developed by MODICON in 1979 and is an industrial fieldbus protocol standard. In 1996, Schneider launched the Modbus protocol based on Ethernet TCP / IP: ModbusTCP.

[0052] The Modbus protocol is an application layer message transmission protocol, including three message types: ASCII, RTU, and TCP.

[0053] The standard Modbus protocol physical layer interfaces include RS232, RS422, RS485 and Ethernet interfaces, and use master / slave communication.

[0054] See also Figure 1 A protocol isolation device provided in an embodiment of the present application includes: an external network access control module including an access control policy management function, an internal network access control module and a high-speed data transmission module.

[0055] It should be noted that the management functions of the ModbusTCP access control policy for the external network access control module mainly include enabling, disabling, adding, deleting, and modifying.

[0056] The external network access control module is used to:

[0057] Step 101, after parsing the preset access control policy, determine whether to prohibit all ModbusTCP protocols from the slave stations in the external network from passing through the isolation device according to the access control policy; if not, execute step S2, and if so, return an error message to the master station of the internal network.

[0058] It should be noted that the content of the access control policy includes: master station address, slave station address, protocol number, function code, register address, etc.

[0059] Step 102: When receiving the ModbusTCP protocol from the external network, determine whether the ModbusTCP protocol is a legal message; if so, send it to the internal network access control module through the high-speed data transmission module; if not, discard the ModbusTCP protocol.

[0060] The intranet access control module is used to:

[0061] Step 103: After receiving the ModbusTCP protocol, the ModbusTCP protocol is decapsulated and the decapsulated ModbusTCP protocol is forwarded to the master station of the intranet, so that the master station responds and generates response data.

[0062] Step 104, receiving and parsing the response data, and determining whether the response data is legal; if so, encapsulating the response data and sending it to the high-speed data transmission module, so that the high-speed data transmission module forwards it to the external network access control module.

[0063] Further, in step 104, sending to the high-speed data transmission module so that the high-speed data transmission module forwards to the external network access control module specifically includes:

[0064] Sending the response data to the high-speed data transmission module through the communication channel, so that the high-speed data transmission module identifies the response data as a unique data stream according to a preset physical transmission protocol;

[0065] The data stream is uniformly transmitted to the external network access control module through the corresponding communication channel, so that the communication channel decapsulates the response data received from the high-speed data transmission module, and returns the decapsulated response data to the external network slave station through the client thread.

[0066] In one embodiment, step 102 specifically includes:

[0067] Step 1021: According to the access control policy, a TCP server is initialized in the external network to monitor the ModbusTCP connection request from the external network.

[0068] Step 1022: When the TCP server receives a ModbusTCP connection request from the external network, a client thread is created to communicate with the ModbusTCP slave station; and the communication channel between the client thread and the high-speed data transmission module is initialized to perform high-speed data transmission, and the client thread is bound to the communication channel.

[0069] Step 1023, when the client thread receives the ModbusTCP protocol from the external network, it determines whether the ModbusTCP protocol is a legal message, if so, executes step S24, if not, the ModbusTCP protocol is discarded.

[0070] Further, in step 1023, it is determined whether the ModbusTCP protocol is a legal message, specifically including:

[0071] Condition 1: Match the master address of the ModbusTCP protocol with the master address in the access control policy;

[0072] Condition 2: Match the slave address of the ModbusTCP protocol with the slave address in the access control policy;

[0073] Condition 3: Match the protocol number of the ModbusTCP protocol with the protocol number in the access control policy;

[0074] Condition 4: Match the function code of the ModbusTCP protocol with the function code in the access control policy;

[0075] Condition 5: Match the register address of the ModbusTCP protocol with the register address in the access control policy;

[0076] When conditions one to five are matched successfully, the ModbusTCP protocol is determined to be a legal message, otherwise it is an illegal message.

[0077] Step 1024: After encapsulating the ModbusTCP protocol according to the requirements of the high-speed data transmission module, it is sent to the high-speed data transmission module through the communication channel. When the high-speed data transmission module receives the ModbusTCP protocol, it identifies the ModbusTCP protocol as a unique data stream and transmits it to the intranet access control module through the corresponding communication channel.

[0078] Further, in step 1024, the ModbusTCP protocol is encapsulated according to the requirements of the high-speed data transmission module, specifically including:

[0079] The master station address and the master station port number in the access control policy are obtained, and the slave station address and the slave station port number are obtained through the client thread, and the ModbusTCP protocol is encapsulated according to the master station address, the master station port number, the slave station address and the slave station port number.

[0080] In one embodiment, step 103 specifically includes:

[0081] Step 1031: Create a monitoring thread for real-time monitoring of data receiving events from the high-speed data transmission module.

[0082] Step 1032: after receiving the data receiving event, create a client thread for receiving the ModbusTCP protocol in the high-speed data transmission module; initialize the communication channel between the high-speed data transmission module for high-speed data transmission, and bind the client thread to the communication channel.

[0083] Step 1033: After receiving the ModbusTCP protocol from the high-speed data transmission module through the client thread, the ModbusTCP protocol is decapsulated.

[0084] Further, in step 1033, the ModbusTCP protocol is decapsulated, specifically including:

[0085] Decapsulate the ModbusTCP protocol to obtain the master station address, master station port number, slave station address, slave station port number and ModbusTCP protocol message content.

[0086] Step 1034, create a TCP client, establish a connection channel with the master station of the intranet, and forward the decapsulated ModbusTCP protocol to the master station of the intranet, so that the master station responds and generates response data.

[0087] The present application provides a protocol isolation device, which realizes secure access control of the ModbusTCP industrial control protocol, supports more convenient deployment methods, reduces customer network transformation costs, and improves user satisfaction; high-speed data interaction meets customers' ever-changing network traffic needs, which not only improves the security of the internal network, but also meets the high-speed data interaction needs of the industrial Internet of Things.

[0088] The above is a protocol isolation device provided in an embodiment of the present application, and the following is a protocol access control method provided in an embodiment of the present application.

[0089] See also Figure 2 , a method for access control of a protocol provided in an embodiment of the present application includes:

[0090] Step 201, after parsing the preset access control policy, determine whether to prohibit all ModbusTCP protocols from the external network slave station from passing through the isolation device according to the access control policy, if not, execute step 202, if yes, return an error message to the master station of the internal network.

[0091] Step 202: When the external network access control module receives the ModbusTCP protocol from the external network, it determines whether the ModbusTCP protocol is a legal message; if so, it is sent to the internal network access control module through the high-speed data transmission module; if not, the ModbusTCP protocol is discarded.

[0092] Step 203: After receiving the ModbusTCP protocol, the intranet access control module decapsulates the ModbusTCP protocol and forwards the decapsulated ModbusTCP protocol to the master station of the intranet, so that the master station responds and generates response data.

[0093] Step 204, the intranet access control module receives and parses the response data, and determines whether the response data is legal; if so, the response data is encapsulated and sent to the high-speed data transmission module, so that the high-speed data transmission module forwards it to the external network access control module.

[0094] Furthermore, an access control device for a protocol is also provided in an embodiment of the present application, the device comprising a processor and a memory:

[0095] The memory is used to store program code and transmit the program code to the processor;

[0096] The processor is used to execute the steps of the access control method for the protocol as described in the above method embodiment according to the instructions in the program code.

[0097] Furthermore, a computer-readable storage medium is provided in an embodiment of the present application, and the computer-readable storage medium is used to store program code, and the program code is used to execute the access control method for the protocol described in the above method embodiment.

[0098] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0099] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0100] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0101] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0102] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0103] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0104] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.

[0105] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A device for isolating a protocol, characterized in that: include: Contains an external network access control module, an internal network access control module, and a high-speed data transmission module for access control policy management functions; The external network access control module is used for: S1. After parsing the preset access control policy, determine whether to prohibit all ModbusTCP protocols in slave stations from the external network from passing through the isolation device according to the access control policy; If not, then execute step S2, if yes, then return error information to the master station of the intranet; S2. When receiving the ModbusTCP protocol of the external network, determine whether the ModbusTCP protocol is a legal message; if so, send it to the intranet access control module through the high-speed data transmission module; if not, discard the ModbusTCP protocol; The intranet access control module is used for: S3, after receiving the ModbusTCP protocol, decapsulate the ModbusTCP protocol, and forward the decapsulated ModbusTCP protocol to the master station of the intranet, so that the master station responds and generates response data; S4. Receive and parse the response data, and determine whether the response data is legal; if so, encapsulate the response data and send it to the high-speed data transmission module, so that the high-speed data transmission module forwards it to the external network access control module.

2. The protocol isolation device according to claim 1, characterized in that: Step S2 comprises: S21. According to the access control policy, a TCP server is initialized in the external network to monitor the ModbusTCP connection request from the external network; S22. When the TCP server receives a ModbusTCP connection request from the external network, a client thread is created for communicating with the ModbusTCP slave station; a communication channel between the client thread and the high-speed data transmission module is initialized for high-speed data transmission, and the client thread is bound to the communication channel; S23, when the client thread receives the ModbusTCP protocol from the external network, it is determined whether the ModbusTCP protocol is a legal message, if so, step S24 is executed, if not, the ModbusTCP protocol is discarded; S24. After encapsulating the ModbusTCP protocol according to the requirements of the high-speed data transmission module, it is sent to the high-speed data transmission module through the communication channel. When the high-speed data transmission module receives the ModbusTCP protocol, it identifies the ModbusTCP protocol as a unique data stream and transmits it to the intranet access control module through the corresponding communication channel.

3. The protocol isolation device according to claim 1 or 2, characterized in that: The determining whether the ModbusTCP protocol is a legal message includes: Condition 1: Match the master station address of the ModbusTCP protocol with the master station address in the access control policy; Condition 2: Match the slave address of the ModbusTCP protocol with the slave address in the access control policy; Condition three: matching the protocol number of the ModbusTCP protocol with the protocol number in the access control policy; Condition 4: Match the function code of the ModbusTCP protocol with the function code in the access control policy; Condition 5: Match the register address of the ModbusTCP protocol with the register address in the access control policy; When conditions one to five are all matched successfully, the ModbusTCP protocol is determined to be a legal message, otherwise it is an illegal message.

4. The protocol isolation device according to claim 2, characterized in that: The encapsulating the ModbusTCP protocol according to the requirements of the high-speed data transmission module includes: The master station address and the master station port number in the access control policy are obtained, and the slave station address and the slave station port number are obtained through the client thread, and the ModbusTCP protocol is encapsulated according to the master station address, the master station port number, the slave station address and the slave station port number.

5. The protocol isolation device according to claim 2, characterized in that: Step S3 includes: S31, creating a monitoring thread for real-time monitoring of data receiving events from the high-speed data transmission module; S32, after receiving the data receiving event, creating a client thread for receiving the ModbusTCP protocol in the high-speed data transmission module; and initializing a communication channel with the high-speed data transmission module for high-speed data transmission, and binding the client thread to the communication channel; S33, after receiving the ModbusTCP protocol from the high-speed data transmission module through the client thread, decapsulating the ModbusTCP protocol; S34, create a TCP client, establish a connection channel with the master station of the intranet, and forward the decapsulated ModbusTCP protocol to the master station of the intranet, so that the master station responds and generates response data.

6. The protocol isolation device according to claim 1 or 5, characterized in that: Decapsulating the ModbusTCP protocol includes: The ModbusTCP protocol is decapsulated to obtain the master station address, master station port number, slave station address, slave station port number and the message content of the ModbusTCP protocol.

7. The protocol isolation device according to claim 5, characterized in that: The sending to the high-speed data transmission module so that the high-speed data transmission module forwards to the external network access control module includes: Sending the response data to the high-speed data transmission module through a communication channel, so that the high-speed data transmission module identifies the response data as a unique data stream according to a preset physical transmission protocol; The data stream is uniformly transmitted to the external network access control module through the corresponding communication channel, so that the communication channel decapsulates the response data after receiving it from the high-speed data transmission module, and returns the decapsulated response data to the slave station of the external network through the client thread.

8. A method for controlling access to a protocol, characterized in that: include: S1. After parsing the preset access control policy, determine whether to prohibit all ModbusTCP protocols in the slave stations from the external network from passing through the isolation device according to the access control policy. If not, execute step S2. If yes, return an error message to the master station of the internal network; S2. When the external network access control module receives the ModbusTCP protocol of the external network, it determines whether the ModbusTCP protocol is a legal message. If so, it sends it to the internal network access control module through the high-speed data transmission module. If not, the ModbusTCP protocol is discarded; S3. After receiving the ModbusTCP protocol, the intranet access control module decapsulates the ModbusTCP protocol and forwards the decapsulated ModbusTCP protocol to the master station of the intranet, so that the master station responds and generates response data; S4. The intranet access control module receives and parses the response data, and determines whether the response data is legal; if so, the response data is encapsulated and sent to the high-speed data transmission module, so that the high-speed data transmission module forwards it to the external network access control module.

9. A device for controlling access to a protocol, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the access control method for the protocol according to claim 8 according to the instructions in the program code.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes, and the program codes are used to execute the access control method for the protocol described in claim 8.

Citation Information

Patent Citations

  • Numerical control system long-distance direct numerical control (DNC) control method based on transmission control protocol (TCP) / internet protocol (IP) and linux network program

    CN103064391A

  • Implementation method of industrial control firewall supporting Modbus TCP protocol filtering

    CN104519065A

  • Protocol isolation method based on deep resolution of Modbus / TCP (Transmission Control Protocol)

    CN106027511A

  • Numerical-control machine tool servo adjustment method based on TCP / IP protocol

    CN106647615A

  • Method for identifying and filtering MODBUS TCP / UDP protocol

    CN111262861A

Cited By

  • Isolation device for protocol, access control method, equipment and medium

    CN120880806A

  • An isolation device for protocols, access control method, device and medium

    CN120880806B