Unidirectional transmission type data isolation device and method
By designing a one-way transmission data isolation device in the new power distribution terminal, using the pulse signal control of the serial data receiving and sending module and the verification of the dual-port RAM, the security risks faced by the control business of the new power distribution terminal are solved and realized This ensures the physical isolation between control-related services and non-control-related services and the reliability of data transmission.
Patent Information
- Application Number
- CN202410644559.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-10
AI Technical Summary
When new power distribution terminals carry measurement and control protection services and IoT sensing services, they face security risks from non-control-related domains, such as forged control instructions, malicious code infection, data tampering and unauthorized access, resulting in security threats to control-related services.
Design a one-way transmission data isolation device, including a serial data receiving module, a dual-port RAM and a serial data sending module. Through the pulse signal control of the serial data receiving and sending modules, the control-related subsystem and the non-control-related subsystem are realized Physical isolation between subsystems and data caching and verification through the write-only and read-only ports of dual-port RAM ensure the integrity and security of data transmission.
It effectively prevents security risks from non-control-related subsystems from affecting control-related businesses, achieves physical isolation of control-related businesses, ensures the reliability and security of data transmission, and avoids risks such as forged control instructions, malicious code infection, and data tampering. .
Smart Images

Figure CN118631497A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network security isolation, and in particular to a one-way transmission type data isolation device and method. Background Art
[0002] With the green transformation of the energy system, the "source end, load end, and network end" of the distribution network are undergoing tremendous changes. The distribution system is a link between the upper and lower levels. It needs to support large-scale distributed energy access, meet the power supply needs of diversified loads, and have the ability to coordinate regional energy and deeply interact between supply and demand. Traditional distribution network equipment and functions face relatively large challenges, and new distribution terminals based on Internet of Things technology and digital implementation solutions have emerged. The new distribution terminal has edge computing functions and adopts the Internet of Things architecture of "real-time channel + Internet of Things channel" to realize fault warning diagnosis and analysis under the new distribution system and panoramic status perception of distribution equipment, supporting the digital transformation of distribution equipment.
[0003] The new distribution terminal carries both measurement, control and protection services and IoT perception services. It will face application scenarios where it is connected to the production control area master station and the management information area master station at the same time, causing the terminal's internal control-related services to face security risks from non-control-related domains, such as forged control instructions, malicious code infection, data tampering, mutual interference between applications, and unauthorized access. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a one-way transmission type data isolation device and method to prevent network attacks from non-control-related domains from affecting control-related businesses and achieve the security requirements of physical isolation.
[0005] The technical solution adopted by the present invention to solve its technical problem is: to provide a unidirectional transmission type data isolation device, comprising a serial data receiving module, a dual-port RAM, a serial data sending module and a transceiver control module, wherein the input end of the serial data receiving module is connected to a control-related subsystem, and is used to convert the serial data stream sent by the control-related subsystem into byte data of a preset number of bits, and output it to the dual-port RAM and the transceiver control module; the output end of the serial data sending module is connected to the non-control-related subsystem, and is used to send the data stored in the dual-port RAM to the non-control-related subsystem in the form of a serial data stream; the dual-port RAM is used to cache the byte data of the preset number of bits, and comprises a write-only port and a read-only port, wherein the write-only port is connected to the serial data receiving module, and the read-only port is connected to the serial data sending module; the transceiver control module is used to control the working process of the serial data receiving module and the serial data sending module, and to set the write address and the read address of the dual-port RAM, so that only one of the serial data receiving module and the serial data sending module is in working state at any time.
[0006] During the data receiving process, after the serial data receiving module receives each complete byte of data from the control subsystem, it sends a first positive pulse signal to the transceiver control module, and sends the byte data to the transceiver control module and the dual-port RAM. After the transceiver control module receives the first positive pulse signal, it generates a write pulse signal to the dual-port RAM, modifies the write address of the dual-port RAM, and updates the calculated value of the checksum.
[0007] The transceiver control module is also used to verify the integrity, content and checksum of the message structure of the byte data of the preset number of bits, and when the verification fails, clear the write address of the dual-port RAM and control the serial data receiving module to receive data again.
[0008] During the data sending process, when the transceiver control module detects that the serial data sending module is in an idle state, it generates a second positive pulse signal to the serial data sending module, generates a read pulse signal to the dual-port RAM, and modifies the read address of the dual-port RAM; after the serial data sending module receives the second positive pulse signal, it sends a byte of data in the read address of the dual-port RAM in a serial manner to the non-control-related subsystem according to the read address of the dual-port RAM, and modifies itself to a busy state during the sending period, and modifies itself to an idle state after the sending is completed.
[0009] The unidirectional transmission type data isolation device also includes: a D trigger, the D end of the D trigger is grounded, the clock end is connected to the non-control-related subsystem, the Q end is connected to the control-related subsystem, and the set end is connected to the transceiver control module.
[0010] During the data receiving process, after the transceiver control module receives a byte of data, it sends a control signal to the set end of the D flip-flop, so that the Q end of the D flip-flop generates a high level; the transceiver control module is also used to verify the integrity, content and checksum of the message structure of the byte data of the preset number of bits, and after the verification is passed, release the control signal of the set end of the D flip-flop.
[0011] During the data sending process, after the non-control-related subsystem receives the complete message and passes the verification, it generates a response signal to the clock end of the D flip-flop. After receiving the response signal, the D flip-flop generates a low level to the Q end of the D flip-flop to the control-related subsystem.
[0012] The technical solution adopted by the present invention to solve the technical problem is: to provide a method for using the above-mentioned unidirectional transmission type data isolation device, including a data receiving process, wherein the data receiving process includes the following steps:
[0013] (A) the transceiver control module sends an enable signal to the serial data receiving module and places the write address of the dual-port RAM in an initial position;
[0014] (B) the serial data receiving module sends a first positive pulse signal to the transceiver control module after receiving a complete byte of data sent by the control subsystem, and sends the byte data to the dual-port RAM and the transceiver control module respectively;
[0015] (C) After receiving the first positive pulse signal, the transceiver control module determines whether a byte of data is received. After receiving the byte of data, the transceiver control module generates a write pulse signal to the dual-port RAM, modifies the write address of the dual-port RAM, and updates the calculated value of the checksum; the dual-port RAM writes the byte data to the corresponding write address according to the received write pulse signal.
[0016] The method of use includes a data sending process, and the data sending process includes the following steps:
[0017] (a) the transceiver control module sends an enable signal to the serial data sending module and simultaneously places the read address of the dual-port RAM at an initial position;
[0018] (b) the transceiver control module determines whether the serial data sending module is in an idle state, and if the serial data sending module is in an idle state, generates a second positive pulse signal to the serial data sending module, generates a read pulse signal to the dual-port RAM, and modifies the read address of the dual-port RAM;
[0019] (c) after receiving the second positive pulse signal, the serial data sending module sends one byte of data in the read address of the dual-port RAM to the non-control-related subsystem in a serial manner according to the read address of the dual-port RAM, and modifies itself to a busy state during the sending period, and modifies itself to an idle state after the sending is completed;
[0020] Repeat the above steps (b)-(c) until the data in the dual-port RAM is sent.
[0021] After receiving a byte of data in the step (C), the transceiver control module sends a control signal to the set end of the D flip-flop, so that the Q end of the D flip-flop generates a high level; after the step (C), the transceiver control module verifies the integrity, content and checksum of the message structure of the byte data of the preset number of bits, and after the verification is passed, releases the control signal of the set end of the D flip-flop; after the verification fails, sets the write address of the dual-port RAM to the initial position, and controls the serial data receiving module to receive data again.
[0022] The step (c) also includes that after the non-control-related subsystem receives the complete message and passes the verification, it generates a response signal to the clock end of the D flip-flop, and after receiving the response signal, the D flip-flop generates a low level to the Q end of the D flip-flop to the control-related subsystem.
[0023] Beneficial Effects
[0024] Due to the adoption of the above-mentioned technical scheme, the present invention has the following advantages and positive effects compared with the prior art: The present invention aims at the scenario where the new type of Internet of Things distribution terminal has both control-related services and non-control-related services. In order to ensure the security of the control-related services, a unidirectional transmission type data isolation device and method are designed to achieve physical isolation between the subsystems that respectively carry the above two types of services, prevent the security risks from the non-control-related subsystems from affecting the control-related services, and at the same time use the feedback single-bit response signal to ensure the reliability of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a schematic structural diagram of a unidirectional transmission type data isolation device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.
[0027] The embodiment of the present invention relates to a unidirectional transmission type data isolation device, such as Figure 1 As shown, it includes a serial data receiving module, a dual-port RAM, a serial data sending module and a transceiver control module.
[0028] The input end of the serial data receiving module is connected to the control subsystem, and is used to convert the serial data stream sent by the control subsystem into 8-bit byte data Rx_data, and output it to the dual-port RAM and the transceiver control module. In this embodiment, after receiving each byte of data, the serial data receiving module sends a 40ns width Rx_ready positive pulse signal to the transceiver control module. The serial data receiving module can only work when the enable signal Enable_rx sent by the transceiver control module is high.
[0029] The output end of the serial data transmission module is connected to the non-control-related subsystem, and is used to send the data stored in the dual-port RAM to the non-control-related subsystem in the form of a serial data stream. In this embodiment, after the serial data transmission module receives a 40ns width Tx_start positive pulse signal, it starts to send one byte of data and sets its own busy signal Tx_busy to a high level. The serial data transmission module can only work when the enable signal Enable_rx sent by the transceiver control module is low.
[0030] The dual-port RAM is used to cache the byte data of the preset number of bits, including a write-only port and a read-only port, the write-only port is connected to the serial data receiving module, the read-only port is connected to the serial data sending module, the data bit width is 8 bits, and the RAM capacity is 32kB.
[0031] The transceiver control module is used to control the workflow of the serial data receiving module and the serial data sending module, and to set the write address and the read address of the dual-port RAM. In this embodiment, the transceiver control module uses Enable_rx, Rx_data, Rx_ready, Tx_start, and Tx_busy signals to control the workflow of the serial data receiving module and the serial data sending module, so that only one of the above two modules is in working state at any time, and uses ClkA, AddrA, ClkB, and AddrB signals to control data to be stored in or taken out of the dual-port RAM.
[0032] The unidirectional transmission type data isolation device of this embodiment also includes a D flip-flop, the D end of the D flip-flop is grounded, the clock end is connected to the non-control-related subsystem, the Q end is connected to the control-related subsystem, and the set end is connected to the transceiver control module. The D flip-flop in this embodiment receives the response pulse signal ACK_CLK sent by the non-control-related subsystem, and outputs a single-bit response signal ACK to the control-related subsystem, and at the same time receives the Set set signal of the transceiver control module to restore to the initial state. Its data input end D is grounded, the clock end Clk is connected to the ACK_CLK pin, and the output end Q is connected to the ACK pin.
[0033] When receiving data using the unidirectional transmission type data isolation device of this embodiment, the following steps are included:
[0034] 1) The transceiver control module sets the enable signal Enable_rx of the serial data receiving module to a high level, and sets the write address AddrA of the dual-port RAM to 0;
[0035] 2) The control subsystem sends data to the data receiving pin RXD of the unidirectional transmission type data isolation device in serial mode according to the agreed message format; the message includes a start character, a length field, a data field, a checksum, and a stop character. According to the configuration requirements, only voltage, current, and power data are allowed to be transmitted;
[0036] 3) After receiving a complete byte of data, the serial data receiving module outputs it to the Rx_data port, and generates a 40ns width positive pulse signal Rx_ready to send to the transceiver control module, and also sends the complete byte data to the dual-port RAM and the transceiver control module respectively;
[0037] 4) After the transceiver control module detects the Rx_ready signal, it determines whether 1 byte of data is received; when 1 byte of data is received, it outputs a high level to the Set end of the D flip-flop to make the ACK pin high;
[0038] 5) After receiving each byte of data, the transceiver control module generates a ClkA write pulse signal to the dual-port RAM, increases the write address AddrA by 1, and updates the checksum calculation value; the dual-port RAM writes the byte data Rx_data to the corresponding write address at the rising edge of the ClkA write pulse signal;
[0039] 6) The transceiver control module also verifies the integrity of the message structure of the received data (whether it includes the start character, length field, data field, checksum, stop character), content (whether it is voltage, current, power data), and checksum. If the verification passes, the data sending process is entered and the signal at the Set end of the D flip-flop is set to a low level. Otherwise, the write address AddrA and the checksum calculation value are cleared to zero, and the data receiving process is restarted.
[0040] When using the unidirectional transmission type data isolation device of this embodiment to send data, the following steps are included:
[0041] 1) The transceiver control module sets the enable signal Enable_rx of the serial data transmission module to a low level, and sets the read address AddrB of the dual-port RAM to 0;
[0042] 2) If the transceiver control module detects that the Tx_busy signal of the serial data transmission module is at a low level, it generates a 40ns width positive pulse Tx_start to the serial data transmission module, generates a ClkB read pulse signal to the dual-port RAM, and increases the read address AddrB by 1; the dual-port RAM outputs the data of the corresponding address at the rising edge of the ClkB read pulse signal;
[0043] 3) After receiving the positive pulse Tx_start, the serial data transmission module sends 1 byte of data Tx_data to the non-control subsystem in serial mode; during the transmission process, the Tx_busy signal is set to a high level, and after the transmission is completed, the Tx_busy signal is set to a low level;
[0044] 4) Repeat the above steps 2) to 3) until the data in the dual-port RAM is sent; the data length is determined by the length field in the message;
[0045] 5) After the non-control subsystem receives the complete message, if the verification is passed, it generates a positive pulse as an acknowledgement signal and sends it to the ACK_CLK pin of the device;
[0046] 6) After receiving the ACK_CLK pulse, the D flip-flop outputs a low level to the ACK pin. When the control subsystem finds that the ACK pin of the device is at a low level, it knows that the message has been sent successfully and proceeds with the subsequent message sending process. If the control subsystem does not find that the ACK pin has become a low level within the set timeout period, the message will be resent. The timeout period can be set to: (number of message bytes × 2) / (baud rate / 10)+2 seconds.
[0047] It is not difficult to find that the present invention aims at the scenario where the new type of Internet of Things distribution terminal has both control-related and non-control-related businesses. In order to ensure the security of the control-related businesses, a unidirectional transmission type data isolation device and method are designed to achieve physical isolation between the subsystems that carry the above two types of businesses respectively, prevent the security risks from the non-control-related subsystems from affecting the control-related businesses, and at the same time use the feedback single-bit response signal to ensure the reliability of data transmission.
Claims
1. A one-way transmission type data isolation device, characterized in that: It includes a serial data receiving module, a dual-port RAM, a serial data sending module and a transceiver control module. The input end of the serial data receiving module is connected to the control subsystem, and is used to convert the serial data stream sent by the control subsystem into byte data of a preset number of bits, and output it to the dual-port RAM and the transceiver control module; The output end of the serial data sending module is connected to the non-control-related subsystem, and is used to send the data stored in the dual-port RAM to the non-control-related subsystem in the form of a serial data stream; The dual-port RAM is used to cache the byte data of the preset number of bits, and includes a write-only port and a read-only port, the write-only port is connected to the serial data receiving module, and the read-only port is connected to the serial data sending module; the transceiver control module is used to control the working process of the serial data receiving module and the serial data sending module, and to set the write address and read address of the dual-port RAM, so that only one of the serial data receiving module and the serial data sending module is in a working state at any time.
2. The one-way transmission type data isolation device according to claim 1, characterized in that: During the data receiving process, after the serial data receiving module receives each complete byte of data from the control subsystem, it sends a first positive pulse signal to the transceiver control module, and sends the byte data to the transceiver control module and the dual-port RAM. After the transceiver control module receives the first positive pulse signal, it generates a write pulse signal to the dual-port RAM, modifies the write address of the dual-port RAM, and updates the calculated value of the checksum.
3. The one-way transmission type data isolation device according to claim 2, characterized in that: The transceiver control module is also used to verify the integrity, content and checksum of the message structure of the byte data of the preset number of bits, and when the verification fails, clear the write address of the dual-port RAM and control the serial data receiving module to receive data again.
4. The one-way transmission type data isolation device according to claim 1, characterized in that: During the data transmission process, when the transceiver control module detects that the serial data transmission module is in an idle state, it generates a second positive pulse signal to the serial data transmission module, generates a read pulse signal to the dual-port RAM, and modifies the read address of the dual-port RAM; After receiving the second positive pulse signal, the serial data sending module sends a byte of data in the read address of the dual-port RAM to the non-control-related subsystem in a serial manner according to the read address of the dual-port RAM, and modifies itself to a busy state during the sending period, and modifies itself to an idle state after the sending is completed.
5. The one-way transmission type data isolation device according to claim 1, characterized in that: It also includes: a D trigger, wherein the D end of the D trigger is grounded, the clock end is connected to the non-control-related subsystem, the Q end is connected to the control-related subsystem, and the set end is connected to the transceiver control module.
6. The one-way transmission type data isolation device according to claim 5, characterized in that: During the data receiving process, after the transceiver control module receives a byte of data, it sends a control signal to the set end of the D flip-flop, so that the Q end of the D flip-flop generates a high level; the transceiver control module is also used to verify the integrity, content and checksum of the message structure of the byte data of the preset number of bits, and after the verification is passed, release the control signal of the set end of the D flip-flop.
7. The one-way transmission type data isolation device according to claim 5, characterized in that: During the data sending process, after the non-control-related subsystem receives the complete message and passes the verification, it generates a response signal to the clock end of the D flip-flop. After receiving the response signal, the D flip-flop generates a low level to the Q end of the D flip-flop to the control-related subsystem.
8. A method for using the one-way transmission type data isolation device as claimed in any one of claims 1 to 7, characterized in that: The data receiving process includes the following steps: (A) the transceiver control module sends an enable signal to the serial data receiving module and places the write address of the dual-port RAM in an initial position; (B) the serial data receiving module sends a first positive pulse signal to the transceiver control module after receiving a complete byte of data sent by the control subsystem, and sends the byte data to the dual-port RAM and the transceiver control module respectively; (C) After receiving the first positive pulse signal, the transceiver control module determines whether a byte of data is received. After receiving the byte of data, the transceiver control module generates a write pulse signal to the dual-port RAM, modifies the write address of the dual-port RAM, and updates the calculated value of the checksum; the dual-port RAM writes the byte data to the corresponding write address according to the received write pulse signal.
9. The method of use according to claim 8, characterized in that: The data transmission process includes the following steps: (a) the transceiver control module sends an enable signal to the serial data sending module and simultaneously places the read address of the dual-port RAM at an initial position; (b) the transceiver control module determines whether the serial data sending module is in an idle state, and if the serial data sending module is in an idle state, generates a second positive pulse signal to the serial data sending module, generates a read pulse signal to the dual-port RAM, and modifies the read address of the dual-port RAM; (c) After receiving the second positive pulse signal, the serial data sending module reads the data according to the read address of the dual-port RAM. Sending one byte of data in the read address of the dual-port RAM to the non-control-related subsystem in a serial manner, and changing itself to a busy state during the sending period, and changing itself to an idle state after the sending is completed; Repeat the above steps (b)-(c) until the data in the dual-port RAM is sent.
10. The method of use according to claim 8, characterized in that: After receiving a byte of data in the step (C), the transceiver control module sends a control signal to the set end of the D flip-flop, so that the Q end of the D flip-flop generates a high level; after the step (C), the transceiver control module verifies the integrity, content and checksum of the message structure of the byte data of the preset number of bits, and after the verification is passed, releases the control signal of the set end of the D flip-flop; after the verification fails, sets the write address of the dual-port RAM to the initial position, and controls the serial data receiving module to receive data again.
11. The method of use according to claim 9, characterized in that: The step (c) also includes that after the non-control-related subsystem receives the complete message and passes the verification, it generates a response signal to the clock end of the D flip-flop, and after receiving the response signal, the D flip-flop generates a low level to the Q end of the D flip-flop to the control-related subsystem.
