Data communication device and data communication method
By using the combination of circuit modules, configuration management modules and data encryption modules in the data communication device, efficient processing and secure transmission of data circulation are achieved, the problem of inefficiency in massive data transmission is solved, and the system operation rate and fault tolerance are improved. ability.
Patent Information
- Application Number
- CN202411009437.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-12
AI Technical Summary
In complex business systems, the encryption transmission and attribute identification processing efficiency of massive data is low, resulting in a reduced data circulation processing efficiency, making it difficult to meet the security, accuracy and efficiency requirements of data circulation.
Design a data communication device, including a circuit module, a configuration management module and a data encryption module, through identification and parallel verification of data configuration information, simplify the data frame content, reduce memory usage and communication frequency, and adopt double limits of time and number of times The waiting mechanism ensures the safety and efficiency of data circulation.
It improves the processing efficiency of data circulation, enhances data security, reduces errors caused by human factors, saves system resources, simplifies the generation and analysis logic of data configuration information, and improves the system operation speed and fault tolerance.
Smart Images

Figure CN118945050A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data communication device and a data communication method. Background Art
[0002] Data generation, data circulation and data application are the complete industrial chain in the big data ecosystem, and the data circulation link is the key node to open up this industrial chain.
[0003] In the complex business systems currently in practical use, the data of a data entity is usually massive. To ensure the security of data circulation, people will choose to encrypt data for circulation. In the traditional interface encryption method, the system will request transmission of encrypted data through the http / https protocol. When the amount of encrypted data is large, the transmission speed of this method is slow.
[0004] Moreover, data circulation also requires certain circulation rules to regulate the process of data transmission from the data source to the data terminal, and ensure the safe, accurate and efficient circulation of data through the rules. In order to determine whether the circulated business data frame meets the circulation rules, each circulation of the business data frame is accompanied by the identification of its attributes. At present, as data information becomes more and more complex, the size of data frames is also increasing. Correspondingly, the system's processing efficiency of identifying data attributes and performing encryption operations will become lower and lower, that is, the processing efficiency of data circulation is reduced.
[0005] In this context, how to improve the processing efficiency of data circulation has become a technical problem that needs to be solved urgently. Summary of the invention
[0006] Purpose of the invention: In view of the problems existing in the prior art, the present application provides a data communication device and a data communication method.
[0007] Technical solution: The present invention provides a data communication device, comprising a circuit module, a configuration management module and a data encryption module, wherein the circuit module is respectively connected to the configuration management module and the data encryption module for communication;
[0008] The circuit module is configured to receive / send service data frames, respond to data configuration information corresponding to the service data frames, manage data configuration information, and access external devices;
[0009] The configuration management module is configured to perform data configuration analysis on the received service data frame to obtain corresponding data configuration information, perform a verification operation on the data configuration information, and feed back the verified data configuration information to the circuit module;
[0010] The data encryption module is configured to perform encryption operations on the service data frames that successfully respond to the data configuration information to obtain ciphertext, and return the ciphertext to the circuit module.
[0011] As an improvement of the present invention, the circuit module includes a first interface, a second interface, a third interface, a fourth interface, a data response unit and a configuration storage unit, wherein the first interface is communicatively connected to the second interface, the second interface and the third interface are communicatively connected to the data response unit, the configuration management module and the data encryption module respectively, the third interface is also communicatively connected to the fourth interface, and the data response unit is also communicatively connected to the configuration storage unit;
[0012] The first interface and / or the fourth interface is used to receive and forward service data frames from an external device; and is also used to send the received ciphertext to the external device;
[0013] The second interface and / or the third interface is used to send the received business data frame to the configuration management module and receive the verified data configuration information from the configuration management module and forward it to the data response module; to receive the ciphertext from the data encryption module and forward it to the data response unit; to interact with the data response unit to receive the response information of the data configuration information and the instruction information of the ciphertext; to send the business data frame with successful response of the data configuration information to the data encryption module; and to forward the ciphertext to the interface connected to the external device according to the instruction information of the ciphertext;
[0014] The data response unit includes a configuration response subunit and a business response subunit, wherein the configuration response subunit is used to receive the verified data configuration information to respond, and send the response information to the second interface and / or the third interface, and send the data configuration information with successful response to the configuration storage unit for storage; the business response subunit is used to receive the ciphertext and generate instruction information to control the second interface and / or the third interface to forward the ciphertext;
[0015] The configuration storage unit is used to store data configuration information of a successful response.
[0016] As an improvement of the present invention, the configuration management module includes a data configuration unit and a configuration verification unit, wherein the data configuration unit and the configuration verification unit are connected to each other in communication; the data configuration unit is preset with a plurality of data configuration conditions, and the configuration verification unit is preset with a plurality of verification submodules, wherein each data configuration condition corresponds to a verification submodule;
[0017] The performing of data configuration analysis means that the data configuration unit adds multiple identifiers to the service data frame according to multiple data configuration conditions and combines them, and the combination of the multiple identifiers is the data configuration information;
[0018] The execution verification operation refers to the configuration verification unit using multiple verification sub-modules to verify in parallel whether the identifier of the data configuration information complies with the digital enumeration value in the data configuration condition. If so, it means that the verification is passed and the data configuration unit is controlled to send the verified data configuration information to the second interface and / or the third interface; otherwise, the verification fails.
[0019] As an improvement of the present invention, the data encryption module includes an execution unit and a clock crystal oscillator, wherein the execution unit is respectively connected to the clock crystal oscillator, the second interface and the third interface in the circuit module for communication;
[0020] The execution unit is used to obtain the service data frame of the successful data configuration information response from the second interface and / or the third interface, perform an encryption operation on it to obtain the ciphertext of the service data frame, and send the ciphertext to the second interface and / or the third interface;
[0021] The clock crystal oscillator is used to provide a clock signal for the execution unit, and the clock signal is used to trigger the execution unit to initiate a communication request to the second interface at a fixed time interval to obtain a service data frame.
[0022] As an improvement of the present invention, the data communication device further includes a data temporary storage module configured to cache service data frames, and the circuit module is communicatively connected with the configuration management module and the data encryption module through the data temporary storage module;
[0023] The data temporary storage module includes a temporary storage unit, a transmission channel and a discarding unit, the transmission channel is communicatively connected with the temporary storage unit, the discarding unit, the second interface and the third interface in the circuit module, and the data configuration unit in the configuration management module, and the temporary storage unit is also communicatively connected with the execution unit in the data encryption module;
[0024] The transmission channel is used to cache the business data frames from the circuit module, and call the data configuration unit to perform data configuration analysis according to the cached business data frames to obtain corresponding data configuration information, and send the data configuration information that has passed the verification to the second interface and / or the third interface according to the feedback information of the passed verification, send the data configuration information that has failed the verification to the discarding unit for discarding according to the feedback information of the failed verification, and send the business data frames corresponding to the data configuration information that the circuit module responds successfully to the temporary storage unit for storage, so that the execution unit in the data encryption module can obtain the data to be encrypted.
[0025] As an improvement of the present invention, the data communication device includes an isolation area and a privacy area, the circuit module is located in the isolation area, and the data temporary storage module, the configuration management module and the data encryption module are located in the privacy area.
[0026] As an improvement of the present invention, a data communication method is also provided, which is applied to the data communication device described above, and the method comprises:
[0027] The circuit module in the data communication device receives the service data frame from the external device and sends it to the configuration management module in the data communication device;
[0028] The configuration management module performs data configuration analysis on the service data frame to obtain corresponding data configuration information, verifies the data configuration information, and feeds back the verified data configuration information to the circuit module;
[0029] The circuit module responds to the data configuration information that has passed the verification, stores the data configuration information that has successfully responded, discards the data configuration information that has failed to respond and issues an alarm to the external device; and sends the service data frame corresponding to the data configuration information that has successfully responded to the data encryption module in the data communication device;
[0030] The data encryption module performs encryption operation on the received service data frame to obtain ciphertext, and returns the ciphertext to the circuit module, which then sends it to the external device.
[0031] As an improvement of the present invention, in the method:
[0032] The performing of data configuration analysis on the business data frame refers to adding multiple identifiers to the business data frame and combining them according to multiple data configuration conditions to obtain data configuration information; wherein the preset data configuration conditions include the interface number of the business data frame entering the data communication device, the flow direction of the business data frame, the Ethernet type, and the transport layer protocol type.
[0033] As an improvement of the present invention, in the method:
[0034] The responding includes responding under a waiting mechanism, and the waiting mechanism includes pre-setting a time threshold and a number threshold: if the response time does not exceed the time threshold and the number does not exceed the number threshold, the response is determined to be successful; if the response time exceeds the time threshold and / or the number exceeds the number threshold, the response is determined to be a failure.
[0035] As an improvement of the present invention, a data communication method is also provided, which is applied to the data communication device described above, and the method comprises:
[0036] The circuit module in the data communication device receives the service data frame from the external device and sends it to the data temporary storage module in the data communication device;
[0037] The data temporary storage module calls the configuration management module in the data communication device to perform data configuration analysis on the service data frame, obtain corresponding data configuration information, verify the data configuration information, and feed back the verified data configuration information to the circuit module;
[0038] The circuit module responds to the data configuration information that has passed the verification, stores the data configuration information that has successfully responded, discards the data configuration information that has failed to respond and issues an alarm to the external device; and sends the service data frame corresponding to the data configuration information that has successfully responded to the data encryption module in the data communication device via the data temporary storage module;
[0039] The data encryption module performs encryption operation on the received service data frame to obtain ciphertext, and returns the ciphertext to the circuit module via the data temporary storage module, which then sends it to the external device.
[0040] Beneficial effects:
[0041] 1. The circuit modules in the isolation area are used as hard isolation in conjunction with hardware and soft isolation in the field programmable logic gate array software programming. They strictly control data filtering from both software and hardware aspects, making the data in the privacy area more secure.
[0042] 2. Data configuration information is identified, the content of the business data frame is simplified, the memory usage is reduced while the communication frequency is reduced. The startup delay will not be affected by the new data configuration information generated by adding other functions. At the same time, it greatly saves system resources, simplifies the logic of generating and parsing data configuration information, and greatly improves the friendliness of configuration data;
[0043] 3. Verification of data configuration information can reduce errors caused by human factors, reduce consumed resources, and further improve the system operation speed;
[0044] 4. The dual restriction method of time and number of times is a timeout mechanism that meets the needs of most business scenarios. The system startup time and data fault tolerance can be well controlled. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0046] Figure 1 This is a schematic diagram of the structure of a data communication device according to a first embodiment of the present invention;
[0047] Figure 2 This is a schematic diagram of the structure of a data communication device according to a second embodiment of the present invention;
[0048] Figure 3 A schematic diagram of data configuration information of the present invention;
[0049] Figure 4 The figure is a flow chart of a data communication method according to the first embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0051] Embodiment 1
[0052] In one embodiment of the present invention, Figure 1 As shown, the present invention provides a data communication device, comprising a circuit module, a configuration management module and a data encryption module, wherein the circuit module is communicatively connected with the configuration management module and the data encryption module respectively.
[0053] In an embodiment of the present invention, the circuit module is configured to receive / send service data frames, respond to data configuration information corresponding to the service data frames, manage data configuration information, and access external devices.
[0054] In the embodiment of the present invention, the external device may be a host computer or other control device.
[0055] In an embodiment of the present invention, the circuit module is applied as a Field Programmable Gate Array (FPGA) or other chips that meet the same function.
[0056] The circuit module includes a first interface, a second interface, a third interface, a fourth interface, a data response unit and a configuration storage unit, wherein the first interface is communicatively connected to the second interface, the second interface and the third interface are communicatively connected to the data response unit, the configuration management module and the data encryption module respectively, the third interface is also communicatively connected to the fourth interface, and the data response unit is also communicatively connected to the configuration storage unit.
[0057] The first interface and / or the fourth interface are used to receive and forward service data frames from an external device; and are also used to send received ciphertext to an external device.
[0058] The second interface and / or the third interface is used to send the received business data frame to the configuration management module and receive the verified data configuration information from the configuration management module and forward it to the data response module; to receive the ciphertext from the data encryption module and forward it to the data response unit; to interact with the data response unit to receive the response information of the data configuration information and the instruction information of the ciphertext; to send the business data frame that successfully responds to the data configuration information to the data encryption module; and to forward the ciphertext to the interface connected to the external device according to the instruction information of the ciphertext.
[0059] The data response unit includes a configuration response subunit and a business response subunit. The configuration response subunit is used to receive the verified data configuration information to respond, and send the response information to the second interface and / or the third interface, and send the data configuration information with successful response to the configuration storage unit for storage; the business response subunit is used to receive ciphertext and generate instruction information to control the second interface and / or the third interface to forward the ciphertext.
[0060] The configuration storage unit is used to store data configuration information of a successful response.
[0061] In an embodiment of the present invention, the configuration management module is configured to perform data configuration analysis on the received service data frame to obtain corresponding data configuration information, perform verification operation on the data configuration information, and feed back the verified data configuration information to the circuit module.
[0062] The configuration management module includes a data configuration unit and a configuration verification unit, wherein the data configuration unit and the configuration verification unit are connected to each other for communication; the data configuration unit is preset with a plurality of data configuration conditions, and the configuration verification unit is preset with a plurality of verification submodules, wherein each data configuration condition corresponds to a verification submodule.
[0063] In an embodiment of the present invention, the flow direction of the service data frame includes uplink and downlink. For example, the uplink flow direction indicates that the service data frame flows into the data communication device of the present invention from the first interface; the downlink flow direction is just the opposite: it indicates that the service data frame flows into the data communication device of the present invention from the fourth interface. For example, the preset data configuration condition includes the interface number of the service data frame entering the data communication device (for example, the first interface / the fourth interface, the interface number is separated from other data configuration conditions by the symbol "|"), the flow direction of the service data frame (for example, receiving / sending), the filtering type (for example, whether it passes through the privacy zone), the Ethernet type (for example, ARP, IPV4, IPV6), the transport layer protocol type (for example, TCP, UDP), the four-tuple type (for example, source IP, source port, sink IP, sink port), etc. Since each circulation requires data configuration analysis of the service data frame, the transmission content is quite cumbersome, so that a frame of data may not complete the issuance of a data configuration analysis, and also increase the communication burden between the circuit module and the encryption module. In order to save communication resources, reduce the communication burden between the circuit module and the encryption module, and make the packaging and unpacking logic of the data configuration information simpler and clearer, each of the preset data configuration conditions of the present invention corresponds to a simple and easily identifiable identifier, and the execution of data configuration analysis refers to the data configuration unit adding multiple identifiers to the business data frame according to the multiple data configuration conditions, and each data configuration condition corresponds to an identifier, for example: when the interface number is the first interface, the identifier is A, and when it is the fourth interface, it is B, and 0 cannot be filled in; when the flow direction is receiving, it is identified as R, and when it is sending, it is T, and 0 cannot be filled in; whether to filter: only filter without passing through the privacy zone is identified as 1, and filter and pass through the privacy zone is identified as 2, and 0 cannot be filled in); when the Ethernet type of the business data frame is ARP, it is identified as 1, 2 for IPV4, 3 for IPV6, and 0 cannot be filled in; when the transport layer protocol type of the service data frame is TCP, it is marked as 1, and 2 for UDP. If neither is supported, 0 can be filled in; for the identification of the four-tuple type, see: ip uses the normal dotted decimal format or the colon format of ipv6. Currently, ipv6 only supports 8 segments and does not support abbreviations. Port uses a normal decimal value. Areas without data configuration information are replaced by "0", such as "0-0-0-0", "0-0-2342-0"; except for the interface number, each other data configuration condition is separated by the symbol "," and the last data configuration condition ends with the symbol "#", and any irrelevant characters such as spaces are prohibited in the string. If there is no attribute for this data configuration condition, fill it with a "0". After parsing the service data frame through the data configuration condition, a group of identifiers are obtained, and the group of identifiers are combined in sequence. The combination of the multiple identifiers is the data configuration information. See the table below:
[0064] Data configuration condition identification reference table
[0065]
[0066] In other embodiments of the present invention, the data configuration conditions and identifiers may be modified accordingly according to the application requirements of the user and are not limited to the attributes listed above.
[0067] The execution verification operation refers to the configuration verification unit using multiple verification submodules to verify in parallel whether the identifier of the data configuration information complies with the digital enumeration value in the data configuration condition. If so, it means that the verification is passed and the data configuration unit is controlled to send the verified data configuration information to the second interface and / or the third interface; otherwise, the verification fails. The verification submodule used in the present invention is similar to the function of a state machine. For example, when designing a program, seven state machines are set up at the same time, corresponding to the verification of the above six data configuration conditions and one additional data configuration condition. An example of multiple data configuration information is as follows: Figure 3 As shown. For example, for a piece of data configuration information "A|R; 2; 2; 0; 192.168.88.180-0-0-10010#", the parsing is completed, and the values of the six attributes are placed in the corresponding six state machines. The sorted state machines will find the corresponding attributes they need to detect in order. The seventh state machine verifies the format of the entire data configuration information. This is equivalent to processing seven state machines in parallel, which greatly shortens the processing time.
[0068] In an embodiment of the present invention, the data encryption module is configured to perform an encryption operation on a service data frame that successfully responds to the data configuration information to obtain a ciphertext, and return the ciphertext to the circuit module.
[0069] Specifically, the data encryption module includes an execution unit and a clock crystal oscillator, wherein the execution unit is communicatively connected with the clock crystal oscillator, the second interface and the third interface in the circuit module respectively.
[0070] The execution unit is used to obtain the business data frame that successfully responds to the data configuration information from the second interface and / or the third interface, perform encryption operations on it to obtain the ciphertext of the business data frame, and send the ciphertext to the second interface and / or the third interface.
[0071] The clock crystal oscillator is used to provide a clock signal for the execution unit, and the clock signal is used to trigger the execution unit to initiate a communication request to the second interface at a fixed time interval to obtain a service data frame. If the instruction to start the program is not obtained after the timeout, the execution unit can actively initiate a request service according to the clock signal provided by the clock crystal oscillator to avoid the system missing a service data frame due to a fault.
[0072] In an embodiment of the present invention, the data communication device comprises an isolation area and a privacy area, the circuit module is located in the isolation area, and the configuration management module and the data encryption module are located in the privacy area.
[0073] In this embodiment, if Figure 4 As shown, the data communication method corresponding to the data communication device specifically includes the following steps:
[0074] Step 1: The circuit module in the data communication device receives a service data frame from an external device and sends it to the configuration management module in the data communication device;
[0075] Step 2: The configuration management module performs data configuration analysis on the service data frame to obtain corresponding data configuration information, verifies the data configuration information, and feeds back the verified data configuration information to the circuit module;
[0076] Specifically, performing data configuration analysis on the business data frame refers to adding multiple identifiers to the business data frame and combining them according to multiple data configuration conditions to obtain data configuration information; wherein the preset data configuration conditions include the interface number of the business data frame entering the data communication device, the flow direction of the business data frame, the Ethernet type, and the transport layer protocol type.
[0077] Step 3: The circuit module responds to the data configuration information that has passed the verification, stores the data configuration information that has responded successfully, discards the data configuration information that has failed to respond, and issues an alarm to the external device; and sends the service data frame corresponding to the data configuration information that has responded successfully to the data encryption module in the data communication device;
[0078] Specifically, the responding includes responding under a waiting mechanism, and the waiting mechanism includes pre-setting a time threshold and a number threshold: if the response time does not exceed the time threshold and the number does not exceed the number threshold, the response is judged to be successful; if the response time exceeds the time threshold and / or the number exceeds the number threshold, the response is judged to be a failure.
[0079] More specifically, the waiting mechanism of the present invention adopts a dual restriction method of time and number of times, which not only ensures the completion of the data configuration information but also allows the system to have multiple attempts. For example, after a piece of data configuration information is sent, it is limited to try to receive a response for a maximum of m times. If after receiving m responses, it is still not a corresponding response, it will be determined that the data configuration information has failed to be sent, and the program will be directly started and return failure, and it will be sent again after the next restart. Similarly, after a piece of data configuration information is sent, it is limited to wait for a response for a maximum of n milliseconds. If after n milliseconds, there is still no corresponding response, it will be determined that the data configuration information has failed to be sent, and the program will be directly started and return failure, and it will be sent again after the next restart.
[0080] Therefore, the frequency timeout mechanism is for hot scenarios. If the data source is not disconnected, the response message will be mixed in the business data frame. The FPGA response is 20ms, so set m = 1000. According to the packet receiving rate of the network interface, it can be calculated that there must be a response packet within 1000 packets. If not, it means that the response has failed. The time timeout mechanism is a setting for the startup mechanism of the program to be cut off in time when there is no data or there is a problem with the network interface communication.
[0081] Step 4: The data encryption module performs an encryption operation on the received service data frame to obtain a ciphertext, and returns the ciphertext to the circuit module, which then sends it to an external device.
[0082] Embodiment 2
[0083] In another embodiment of the present invention, Figure 2 As shown, in addition to the circuit module, the configuration management module and the data encryption module, the data communication device also includes a data temporary storage module configured to cache service data frames, and the circuit module is communicatively connected with the configuration management module and the data encryption module through the data temporary storage module;
[0084] The data temporary storage module includes a temporary storage unit, a transmission channel and a discarding unit, the transmission channel is communicatively connected with the temporary storage unit, the discarding unit, the second interface and the third interface in the circuit module, and the data configuration unit in the configuration management module, and the temporary storage unit is also communicatively connected with the execution unit in the data encryption module;
[0085] The transmission channel is used to cache the business data frames from the circuit module, and call the data configuration unit to perform data configuration analysis according to the cached business data frames to obtain corresponding data configuration information, and send the data configuration information that has passed the verification to the second interface and / or the third interface according to the feedback information of the passed verification, send the data configuration information that has failed the verification to the discarding unit for discarding according to the feedback information of the failed verification, and send the business data frames corresponding to the data configuration information that the circuit module responds successfully to the temporary storage unit for storage, so that the execution unit in the data encryption module can obtain the data to be encrypted.
[0086] In this embodiment, the data temporary storage module exists to provide a cache mechanism for the service data frame, while reducing the storage burden for other modules, and further improving the efficiency and accuracy of the data communication device in processing services.
[0087] In this embodiment, the data communication device includes an isolation area and a privacy area, the circuit module is located in the isolation area, and the data temporary storage module, the configuration management module and the data encryption module are located in the privacy area.
[0088] In this embodiment, the data communication method corresponding to the data communication device specifically includes the following steps:
[0089] The circuit module in the data communication device receives the service data frame from the external device and sends it to the data temporary storage module in the data communication device;
[0090] The data temporary storage module calls the configuration management module in the data communication device to perform data configuration analysis on the service data frame, obtain corresponding data configuration information, verify the data configuration information, and feed back the verified data configuration information to the circuit module;
[0091] The circuit module responds to the data configuration information that has passed the verification, stores the data configuration information that has successfully responded, discards the data configuration information that has failed to respond and issues an alarm to the external device; and sends the service data frame corresponding to the data configuration information that has successfully responded to the data encryption module in the data communication device via the data temporary storage module;
[0092] The data encryption module performs encryption operation on the received service data frame to obtain ciphertext, and returns the ciphertext to the circuit module via the data temporary storage module, which then sends it to the external device.
Claims
1. A data communication device, characterized in that: It comprises a circuit module, a configuration management module and a data encryption module, wherein the circuit module is respectively connected to the configuration management module and the data encryption module for communication; The circuit module is configured to receive / send service data frames, respond to data configuration information corresponding to the service data frames, manage data configuration information, and access external devices; The configuration management module is configured to perform data configuration analysis on the received service data frame to obtain corresponding data configuration information, perform a verification operation on the data configuration information, and feed back the verified data configuration information to the circuit module; The data encryption module is configured to perform encryption operations on the service data frames that successfully respond to the data configuration information to obtain ciphertext, and return the ciphertext to the circuit module.
2. The data communication device according to claim 1, characterized in that: The circuit module includes a first interface, a second interface, a third interface, a fourth interface, a data response unit and a configuration storage unit, wherein the first interface is communicatively connected to the second interface, the second interface and the third interface are communicatively connected to the data response unit, the configuration management module and the data encryption module respectively, the third interface is also communicatively connected to the fourth interface, and the data response unit is also communicatively connected to the configuration storage unit; The first interface and / or the fourth interface is used to receive and forward service data frames from an external device; It is also used to send the received ciphertext to an external device; The second interface and / or the third interface is used to send the received service data frame to the configuration management module and receive the verified data configuration information from the configuration management module and forward it to the data response module; Used to receive the ciphertext from the data encryption module and forward it to the data response unit; For interacting with the data response unit to receive response information of the data configuration information and instruction information of the ciphertext; Used to send the business data frame of successful data configuration information response to the data encryption module; It is also used to forward the ciphertext to an interface connected to an external device according to the instruction information of the ciphertext; The data response unit includes a configuration response subunit and a business response subunit, wherein the configuration response subunit is used to receive the verified data configuration information to respond, and send the response information to the second interface and / or the third interface, and send the data configuration information with successful response to the configuration storage unit for storage; the business response subunit is used to receive the ciphertext and generate instruction information to control the second interface and / or the third interface to forward the ciphertext; The configuration storage unit is used to store data configuration information of a successful response.
3. The data communication device according to claim 2, characterized in that: The configuration management module includes a data configuration unit and a configuration verification unit, wherein the data configuration unit and the configuration verification unit are connected to each other in communication; the data configuration unit is preset with a plurality of data configuration conditions, and the configuration verification unit is preset with a plurality of verification submodules, wherein each data configuration condition corresponds to a verification submodule; The performing of data configuration analysis means that the data configuration unit adds multiple identifiers to the service data frame according to multiple data configuration conditions and combines them, and the combination of the multiple identifiers is the data configuration information; The execution verification operation refers to the configuration verification unit using multiple verification sub-modules to verify in parallel whether the identifier of the data configuration information complies with the digital enumeration value in the data configuration condition. If so, it means that the verification is passed and the data configuration unit is controlled to send the verified data configuration information to the second interface and / or the third interface; otherwise, the verification fails.
4. The data communication device according to claim 2, characterized in that: The data encryption module includes an execution unit and a clock crystal oscillator, wherein the execution unit is respectively connected to the clock crystal oscillator, the second interface and the third interface in the circuit module for communication; The execution unit is used to obtain the service data frame of the successful data configuration information response from the second interface and / or the third interface, perform an encryption operation on it to obtain the ciphertext of the service data frame, and send the ciphertext to the second interface and / or the third interface; The clock crystal oscillator is used to provide a clock signal for the execution unit, and the clock signal is used to trigger the execution unit to initiate a communication request to the second interface at a fixed time interval to obtain a service data frame.
5. The data communication device according to any one of claims 1 to 4, characterized in that: The data communication device further comprises a data temporary storage module configured to cache service data frames, and the circuit module is communicatively connected with the configuration management module and the data encryption module via the data temporary storage module; The data temporary storage module includes a temporary storage unit, a transmission channel and a discarding unit, the transmission channel is communicatively connected with the temporary storage unit, the discarding unit, the second interface and the third interface in the circuit module, and the data configuration unit in the configuration management module, and the temporary storage unit is also communicatively connected with the execution unit in the data encryption module; The transmission channel is used to cache the business data frames from the circuit module, and call the data configuration unit to perform data configuration analysis according to the cached business data frames to obtain corresponding data configuration information, and send the data configuration information that has passed the verification to the second interface and / or the third interface according to the feedback information of the passed verification, send the data configuration information that has failed the verification to the discarding unit for discarding according to the feedback information of the failed verification, and send the business data frames corresponding to the data configuration information that the circuit module responds successfully to the temporary storage unit for storage, so that the execution unit in the data encryption module can obtain the data to be encrypted.
6. The data communication device according to claim 5, characterized in that: The data communication device comprises an isolation area and a privacy area. The circuit module is located in the isolation area, and the data temporary storage module, the configuration management module and the data encryption module are located in the privacy area.
7. A data communication method, characterized in that: Applied to the data communication device according to any one of claims 1 to 4, the method comprises: The circuit module in the data communication device receives the service data frame from the external device and sends it to the configuration management module in the data communication device; The configuration management module performs data configuration analysis on the service data frame to obtain corresponding data configuration information, verifies the data configuration information, and feeds back the verified data configuration information to the circuit module; The circuit module responds to the data configuration information that has passed the verification, stores the data configuration information that has successfully responded, discards the data configuration information that has failed to respond and issues an alarm to the external device; and sends the service data frame corresponding to the data configuration information that has successfully responded to the data encryption module in the data communication device; The data encryption module performs encryption operation on the received service data frame to obtain ciphertext, and returns the ciphertext to the circuit module, which then sends it to the external device.
8. The data communication method according to claim 7, characterized in that: In the method: The performing of data configuration analysis on the business data frame refers to adding multiple identifiers to the business data frame and combining them according to multiple data configuration conditions to obtain data configuration information; wherein the preset data configuration conditions include the interface number of the business data frame entering the data communication device, the flow direction of the business data frame, the Ethernet type, and the transport layer protocol type.
9. The data communication method according to claim 7, characterized in that: In the method: The responding includes responding under a waiting mechanism, and the waiting mechanism includes pre-setting a time threshold and a number threshold: if the response time does not exceed the time threshold and the number does not exceed the number threshold, the response is determined to be successful; if the response time exceeds the time threshold and / or the number exceeds the number threshold, the response is determined to be a failure.
10. A data communication method, characterized in that: Applied to the data communication device according to claim 5 or 6, the method comprises: The circuit module in the data communication device receives the service data frame from the external device and sends it to the data temporary storage module in the data communication device; The data temporary storage module calls the configuration management module in the data communication device to perform data configuration analysis on the service data frame, obtain corresponding data configuration information, verify the data configuration information, and feed back the verified data configuration information to the circuit module; The circuit module responds to the data configuration information that has passed the verification, stores the data configuration information that has successfully responded, discards the data configuration information that has failed to respond and issues an alarm to the external device; and sends the service data frame corresponding to the data configuration information that has successfully responded to the data encryption module in the data communication device via the data temporary storage module; The data encryption module performs encryption operation on the received service data frame to obtain ciphertext, and returns the ciphertext to the circuit module via the data temporary storage module, which then sends it to the external device.
