Data transmission method and device, electronic equipment and storage medium
By verifying the identification information of the data packet to be transmitted on the data transmission path of the power system equipment, ensuring that the transmission is only after the verification is successful, the problem of low transmission efficiency and inability to detect tampering in time is solved, and the security and reliability of data transmission are improved enhances the safety of power system equipment.
Patent Information
- Application Number
- CN202411173390.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-11-12
AI Technical Summary
The prior art cannot quickly and accurately transmit data, and the transmission efficiency is low and the tampered data cannot be detected in time, making it difficult to guarantee the security of power system equipment in the network environment.
By receiving data packets to be transmitted on each device node on the data transmission path, extracting and verifying the actual hidden identification information and reference bit information, ensuring that the data packet is transmitted only after the verification is successful, and the data packet is deleted if the verification fails, so that the data is realized. Independence and security in the transmission path.
It improves the security and reliability of data transmission, ensures the independence of data in the transmission path, avoids tampered information transmission, and enhances the safe operation of power system equipment.
Smart Images

Figure CN118945196A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission control, and in particular to a data transmission method, device, electronic equipment and storage medium. Background Art
[0002] In today's highly information-based era, the safe and stable operation of the power system is crucial to social and economic development. With the widespread application of remote hardware equipment at power terminals, how to effectively ensure the security of these devices in a network environment and prevent potential security threats has become an urgent problem to be solved.
[0003] As wireless sensors are widely used in remote monitoring and data collection of power terminals, confidential information of many power systems is involved, especially for some power equipment that collects key data. In order to ensure the security of streaming data during transmission, processing and storage, given that sensor network nodes usually have limited computing power and resources, traditional security measures are difficult to directly apply. After network viruses attack hardware devices, data may be tampered and forged during transmission, and the accuracy of data transmission cannot be guaranteed. Existing technologies also mostly use complex encryption algorithms to improve data, but there are problems such as slow processing efficiency and inability to detect tampered data in a timely manner. Summary of the invention
[0004] The present invention provides a data transmission method, device, electronic device and storage medium to solve the problems existing in the prior art of being unable to quickly and accurately perform data transmission, as well as the problems of low transmission efficiency and being unable to timely detect tampered data.
[0005] According to one aspect of the present invention, a data transmission method is provided, which is applied to each device node on a data transmission path, comprising:
[0006] receiving a data packet to be transmitted, wherein the data packet to be transmitted includes target device detection data, first transmission path information and actual hidden identification information, and the first transmission path information includes at least one device node number;
[0007] Extracting the actual hidden identification information corresponding to the data packet to be transmitted, obtaining the reference bit information of the current device node, and determining the verification result based on the actual hidden identification information and the reference bit information, wherein the reference bit information of the current device node is determined based on the reference hidden identification information;
[0008] If the verification result is successful, the next device node number is determined based on the first transmission path information in the data packet to be transmitted, and the data packet to be transmitted is transmitted to the device node corresponding to the next device node number. If the verification result is failed, the data packet to be transmitted is deleted.
[0009] Optionally, each device node is pre-configured with reference hidden identification information; obtaining the reference bit information of the current device node includes: processing the reference hidden identification information by a preset reference concealment algorithm to obtain the reference bit information of the current device node.
[0010] Optionally, the verification result is determined based on the actual hidden identification information and the reference bit information, including: processing the actual hidden identification information through a preset reference concealment algorithm to obtain basic bit information corresponding to the actual hidden identification information; judging whether the basic bit information and the reference bit information are consistent, if the basic bit information and the reference bit information are consistent, then determining the verification result as a successful verification, if the basic bit information and the reference bit information are inconsistent, then determining the verification result as a failed verification.
[0011] Optionally, determining the next device node number based on the first transmission path information in the data packet to be transmitted includes: obtaining the device node number of the current device node, comparing the device node number with the first transmission path information in the data packet to be transmitted, and determining the next device node number of the current device node.
[0012] Optionally, when the verification result is a verification failure, the method further includes: generating corresponding alarm information based on the verification result; obtaining second transmission path information corresponding to the current device node, and uploading the alarm information based on the second transmission path information.
[0013] Optionally, before obtaining the reference bit information of the current device node, the method further includes: when detecting that the current device node is the last device node in the first transmission path information, stopping the transmission of the data packet to be transmitted, and determining that the transmission of the data packet to be transmitted is successful.
[0014] Optionally, after receiving the data packet to be transmitted, the method also includes: extracting the first transmission path information in the data packet to be transmitted, matching the device number of the current device node with the first transmission path information, if the match is successful, then determining that the current device node belongs to an authenticated device; if the match fails, then determining that the current device node belongs to an authenticated device.
[0015] According to another aspect of the present invention, there is provided a data transmission device, comprising:
[0016] A module for receiving data packets to be transmitted, used for receiving data packets to be transmitted, wherein the data packets to be transmitted include target device detection data, first transmission path information and actual hidden identification information, and the first transmission path information includes at least one device node number;
[0017] A verification result determination module, used to extract the actual hidden identification information corresponding to the data packet to be transmitted, obtain the reference bit information of the current device node, and determine the verification result based on the actual hidden identification information and the reference bit information, wherein the reference bit information of the current device node is determined based on the reference hidden identification information;
[0018] The data transmission module is used to determine the next device node number based on the first transmission path information in the data packet to be transmitted when the verification result is successful, and transmit the data packet to be transmitted to the device node corresponding to the next device node number; when the verification result is a verification failure, delete the data packet to be transmitted.
[0019] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0020] at least one processor; and
[0021] a memory communicatively connected to at least one processor; wherein,
[0022] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the data transmission method in any embodiment of the present invention.
[0023] According to another aspect of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the data transmission method of any embodiment of the present invention when executed by a processor.
[0024] The technical solution of the embodiment of the present invention is to receive a data packet to be transmitted, wherein the data packet to be transmitted includes target device detection data, first transmission path information and actual hidden identification information, and the first transmission path information includes at least one device node number; extract the actual hidden identification information corresponding to the data packet to be transmitted, obtain the reference bit information of the current device node, and determine the verification result based on the actual hidden identification information and the reference bit information, wherein the reference bit information of the current device node is determined based on the reference hidden identification information; when the verification result is a successful verification, determine the next device node number based on the first transmission path information in the data packet to be transmitted, and transmit the data packet to be transmitted to the device node corresponding to the next device node number; when the verification result is a failed verification, delete the data packet to be transmitted. This solution realizes that the data sent by the previous node is verified in turn at each node in the transmission path to ensure that only the data that has been successfully verified can be transmitted in the transmission path, thereby ensuring the independence of the transmission path, avoiding the risk of tampered information being transmitted in the transmission path, and even being transmitted to the target node, improving the reliability of the data source, improving the security and reliability of data transmission, thereby improving the safe operation of the equipment, and helping to improve the security of the power system.
[0025] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 is a flow chart of a data transmission method provided by Embodiment 1 of the present invention;
[0028] Figure 2 is a flow chart of a data transmission method provided by Embodiment 2 of the present invention;
[0029] Figure 3 is a flow chart of a data transmission method applicable to an embodiment of the present invention;
[0030] Figure 4 is a structural diagram of a data transmission device provided in Embodiment 3 of the present invention;
[0031] Figure 5It is a structural schematic diagram of an electronic device for implementing the data transmission method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof 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.
[0034] Embodiment 1
[0035] Figure 1 It is a flowchart of a data transmission method provided in Example 1 of the present invention. This embodiment can be applied to situations where data is securely transmitted. The method can be executed by a data transmission device. The data transmission device can be implemented in the form of hardware and / or software. The data transmission device can be configured in electronic devices such as controllers, computers, and edge computing modules.
[0036] The application scenario of this embodiment may be to monitor and collect data on power terminal equipment, usually by remotely controlling the power terminal equipment. The collected data involves important information in the power system. In the transmission path, there is a risk of tampering, and there is also a risk of being stolen by some unauthenticated device nodes, which leads to security risks in the data transmission process. It is necessary to ensure that the data to be transmitted is transmitted between authenticated device nodes. The data transmission method proposed in this solution can be used by each device node on the transmission path to verify the data to be transmitted, and control the transmission of successfully verified data in the transmission path to ensure data security and stable operation of the power system.
[0037] like Figure 1As shown, the method includes:
[0038] S110, receiving a data packet to be transmitted, wherein the data packet to be transmitted includes target device detection data, first transmission path information and actual hidden identification information, and the first transmission path information includes at least one device node number.
[0039] The data packet to be transmitted can be specifically understood as a data packet that needs to be transmitted in the transmission path, which is a data packet obtained by packaging the data to be transmitted according to a preset data format, wherein the preset data format is set according to the data transmission protocol corresponding to the current data sending end or the data receiving end, and preferably, the data transmission protocol of the data sending end and the data receiving end is the same. The current data sending end can be the starting device node of the transmission path, or it can be a device node passed in the transmission path.
[0040] It should be noted that the target device can be specifically understood as the starting node of the transmission path. If the device node that transmits the data packet to be transmitted is the target device, the target device detects and obtains the detection data by real-time data collection or timed data collection. Data detection can be performed according to the preset information attention list, without detecting irrelevant data, thereby reducing the amount of data to be transmitted. The first transmission path information and reference hidden identification information pre-configured in the target device are obtained, and the reference hidden identification information is used as the actual hidden identification information, and is packaged with the first transmission path information and the target device detection data to obtain the data packet to be transmitted corresponding to the target device node. The data packet to be transmitted corresponding to the device nodes other than the starting device node in the transmission path is called the actual hidden identification information. If the data packet to be transmitted has not been tampered with, the actual hidden identification information and the reference hidden identification information are consistent. The first transmission path information and the reference hidden identification information are stored at the set position of the data packet to be transmitted, so that only the data to be verified at the set position needs to be read when performing subsequent verification, thereby avoiding problems such as reading the detection data of the target device in the data packet to be transmitted and tampering and forging it.
[0041] When the data packet to be transmitted starts to be transmitted at the starting device node, the actual hidden identification information in the data packet to be transmitted is the same as the reference hidden identification information. Once the data packet to be transmitted is tampered with or forged during the transmission process, it will trigger the actual hidden identification information in the data packet to be transmitted to change, which will cause the actual hidden identification information to be different from the reference hidden identification information.
[0042] It should be noted that during the installation process of each device node, the first transmission path information and reference hidden identification information corresponding to each device node will be configured at the target position corresponding to each device node, and can be configured in a pre-set target storage space. The reference hidden identification information set for the device nodes in the same transmission path is the same or has a certain correspondence, so as to facilitate subsequent data verification. Preferably, the reference hidden identification information set for the device nodes in the same transmission path is the same. The reference hidden identification information is identification information used to verify the data, and the identification information can be numbers, characters, strings, arrays, etc., which are not limited here. The first transmission path information specifically refers to the transmission path information of the data packet to be transmitted, including the device number information of each device node between the starting device node and the last device node, so that the data packet to be transmitted sent from the starting device node is transmitted according to the corresponding first transmission path information.
[0043] Specifically, if the current device node is a node corresponding to the target device, then the current device node is the starting device node in the transmission path, the target device performs data collection according to a preset data collection list, and packages the collected data, the first transmission path information corresponding to the current device node, and the reference hidden identification information according to a preset data format to obtain a data packet to be transmitted. If the current device node is any node in the transmission path, but is not the starting device node in the transmission path, then the data packet to be transmitted sent by the previous node device transmitting end is received.
[0044] Optionally, after receiving the data packet to be transmitted, the method also includes: extracting the first transmission path information in the data packet to be transmitted, matching the device number of the current device node with the first transmission path information, if the match is successful, then determining that the current device node belongs to an authenticated device; if the match fails, then determining that the current device node belongs to an authenticated device.
[0045] Specifically, after receiving the data packet to be transmitted, the data packet to be transmitted is parsed, only the first transmission path information of the preset storage bit is extracted, the device number of the current device node is read, and the device number of the current device node is matched with the first transmission path information. If the device number that is the same as the device number of the current device node is matched in the first transmission path information, then it is determined that the current device node belongs to a successfully authenticated device, and subsequent data verification processing can be performed. If the device number that is the same as the device number of the current device node is not matched in the first transmission path information, then it is determined that the current device node belongs to a failed authentication device, indicating that the current device node does not have the authority to receive the data packet to be transmitted, and there is no need to perform data verification processing and data transmission processing. The data receiving end of the data packet to be transmitted is reselected from the first transmission path information, thereby avoiding the risk of device nodes that are not in the first transmission path parsing and tampering with the data packet to be transmitted.
[0046] In this embodiment, the device number of the current device node is matched with the first transmission path information to verify the current device node and determine whether the current device node belongs to an authenticated device. This avoids the problem of the data packet to be transmitted not being transmitted according to the preset first transmission path, and also avoids illegal devices intercepting the data packet to be transmitted, thereby improving the security of data transmission.
[0047] S120, extracting the actual hidden identification information corresponding to the data packet to be transmitted, obtaining the reference bit information of the current device node, and determining the verification result based on the actual hidden identification information and the reference bit information, wherein the reference bit information of the current device node is determined based on the reference hidden identification information.
[0048] The reference bit information can be specifically understood as information used for reference comparison of the actual hidden identification information. It can be obtained by processing the identification information pre-stored in the current device node according to the preset data processing algorithm. The identification information pre-stored in the current device node can be the reference hidden identification information, or it can be the hidden identification information associated with the reference hidden identification information. The preset data processing algorithm can be a pre-built RAC algorithm (Reference Covert Algorithm, reference covert algorithm), a bit operation algorithm, and a preset reference covert algorithm. It is not limited here. It can be any algorithm that can perform secure conversion processing on the data to obtain the corresponding bit position, which is helpful for rapid verification.
[0049] Specifically, after receiving the data packet to be transmitted, the data packet to be transmitted is parsed, and the actual hidden identification information in the data packet to be transmitted is processed according to the preset data processing algorithm to obtain the corresponding calculation result. The reference bit information of the current device node is determined based on the reference hidden identification information pre-configured by the current device node. Specifically, the reference hidden identification information pre-configured by the current device node can be calculated by the preset data processing algorithm to obtain the corresponding calculation result, so as to compare the calculation result of the actual hidden identification information with the calculation result of the reference hidden identification information corresponding to the current device node to obtain the verification result, avoid the risk of comparing the original data and modifying the data content by the Trojan black hole, and improve data security. It should be noted that the algorithm for processing the actual hidden identification information is the same as the algorithm for determining the reference bit information to ensure the accuracy and effectiveness of the verification result.
[0050] Optionally, before obtaining the reference bit information of the current device node, when it is detected that the current device node is the last device node in the first transmission path information, the transmission of the data packet to be transmitted is stopped to determine that the transmission of the data packet to be transmitted is successful.
[0051] Specifically, before obtaining the reference bit information of the current device node, it is possible to first determine whether the current device node is the last device node of the first transmission path. If it is the last device node, after the data packet verification is successful, the data packet to be transmitted can be stored, and there is no need to perform the step of determining the next device node information. The data transmission can be stopped directly to determine that the current data packet to be transmitted has been successfully transmitted to the end point of the transmission path according to the first transmission path, where the end point of the transmission path can be a node on the backbone network. If it is not the last device node, it is necessary to continue data verification and data transmission processing until the data to be transmitted is transmitted to the target data receiving end, where the target data receiving end can be any node on the backbone network of the power system.
[0052] Optionally, each device node is pre-configured with reference hidden identification information; obtaining the reference bit information of the current device node includes: processing the reference hidden identification information by a preset reference concealment algorithm to obtain the reference bit information of the current device node.
[0053] It should be noted that, during the installation phase of each device node, the corresponding reference hidden identification information is pre-set, and the reference hidden identification information set by each device node in the same transmission path is the same or has a mapping relationship, which is used to verify the hidden identification information. The preset reference concealment algorithm can be specifically understood as an algorithm for data transformation of the reference hidden identification information, which can be constructed by itself. In this embodiment, it can be the preset data processing algorithm proposed in the above content.
[0054] Specifically, when it is necessary to verify the received data packet to be transmitted, read the reference hidden identification information pre-configured by the current device node, call the preset reference hidden algorithm to process the reference hidden identification information, obtain the corresponding calculation result, and set it as the reference bit information for subsequent verification with the actual reference hidden identification information. Exemplary, the method of obtaining the reference hidden identification information x and determining the corresponding reference bit information y is: reference bit y = x e mod(n), where e and n are integers.
[0055] Exemplarily, for setting the reference hidden identification information, two relatively large prime numbers p and q can be selected, and p and q can be converted into binary codes respectively; the product of p and q can be calculated by string simulation to obtain n=p*q; m=(p-1)(q-1) is calculated in the same way, where m is the Euler function of n; a parameter e is selected between the interval (1, m) so that m and e are mutually prime; the inverse element d of e in the modulo m domain is calculated, that is, (e*d)mod(m)=1 is satisfied; the corresponding (p, q, e) and target data x are set in the reference hidden identification information, and (n, e) is determined based on (p, q, e), and the formula y=x is used. emod(n), process x to get the corresponding y, that is, the reference position information.
[0056] S130. When the verification result is successful, determine the next device node number based on the first transmission path information in the data packet to be transmitted, and transmit the data packet to be transmitted to the device node corresponding to the next device node number; when the verification result is failed, delete the data packet to be transmitted.
[0057] Specifically, the transmission processing operation of the data to be transmitted is controlled according to the verification result. If the verification result is a successful verification, the currently received data packet to be transmitted is used as the data packet to be transmitted of the sending end of the current device node, and the next device node number is determined according to the device number information of the current device node and the first transmission path information in the data packet to be transmitted. When the next device node number is determined, the data packet to be transmitted of the sending end of the current device node is transmitted to the device node corresponding to the next device node number. In the case where the verification result is a verification failure, the data packet to be transmitted is deleted. It should be noted that the device nodes in the transmission path verify whether the data packet to be transmitted has been tampered with, and will not perform other modifications, additions, deletions, etc. on the content of the data packet, so as to ensure the security of the data, promptly determine the data packet that has been tampered with, and avoid unreliable data packets from flowing into the backbone network, interfering with the monitoring of the hardware equipment by the power backbone network, and thus failing to obtain accurate monitoring results.
[0058] In this embodiment, the verification result is used to determine whether the data to be transmitted continues to be executed. In the case of continued execution, the next device node is determined based on the transmission path information in the data packet to be transmitted. In the case of a verification failure, the data packet to be transmitted is deleted and the transmission of the data to be transmitted is stopped. Unreliable data can be discovered in time, and the device nodes with abnormal problems can be identified so that subsequent maintenance can be performed as soon as possible, thereby improving the security and reliability of data transmission.
[0059] Optionally, determining the next device node number based on the first transmission path information in the data packet to be transmitted includes: obtaining the device node number of the current device node, comparing the device node number with the first transmission path information in the data packet to be transmitted, and determining the next device node number of the current device node.
[0060] Specifically, extract the first transmission path information in the data packet to be transmitted, traverse the number information of each device node in the first transmission path information, and match it with the device node number of the current device node. If the match is successful, the next device node number of the successfully matched device node in the first transmission path information can be used as the next device node number of the current device node. It should be noted that the number information of each device node has been configured during the installation phase, and the first transmission path information corresponding to each device node is also constructed according to the configured number information of each device node according to the preset transmission line.
[0061] In this embodiment, the first transmission path information in the data packet to be transmitted determines the transmission nodes in sequence, which can ensure the security of the data to be transmitted and the independence of the transmission path, and improve the security and reliability of data transmission.
[0062] Based on the above embodiment, when the verification result is a verification failure, the method further includes: generating corresponding alarm information based on the verification result; obtaining second transmission path information corresponding to the current device node, and uploading the alarm information based on the second transmission path information.
[0063] The second transmission path information can be specifically understood as path information pre-set for transmitting abnormal data and stored in a target storage location set in the device node. The first transmission path information for transmitting correct data can be isolated from the second transmission path information for transmitting abnormal data.
[0064] Specifically, when the verification result is a verification failure, corresponding alarm information can be generated according to the verification result, the number information of the current device node that failed the verification can be added to the preset alarm template, and the current timestamp information can also be written into the preset alarm template to obtain the corresponding alarm information. The second transmission path information of the current device node is read, and the generated alarm information is uploaded according to the second transmission path information. In addition, in order to perform abnormal analysis later, the data packet to be transmitted that failed the current verification can also be uploaded through the second transmission path.
[0065] In this embodiment, when the verification result is a verification failure, a corresponding alarm message is generated at the current device node, so that abnormal data can be detected in time, and the specific device node in the transmission path is also known, which facilitates subsequent abnormal maintenance processing and helps to improve system security.
[0066] The technical solution of this embodiment is to receive a data packet to be transmitted, wherein the data packet to be transmitted includes target device detection data, first transmission path information and actual hidden identification information, and the first transmission path information includes at least one device node number; extract the actual hidden identification information corresponding to the data packet to be transmitted, obtain the reference bit information of the current device node, and determine the verification result based on the actual hidden identification information and the reference bit information, wherein the reference bit information of the current device node is determined based on the reference hidden identification information; when the verification result is a successful verification, determine the next device node number based on the first transmission path information in the data packet to be transmitted, and transmit the data packet to be transmitted to the device node corresponding to the next device node number; when the verification result is a failed verification, delete the data packet to be transmitted. This solution realizes that the data sent by the previous node is verified in turn at each node in the transmission path to ensure that only the data that has been successfully verified can be transmitted in the transmission path, thereby ensuring the independence of the transmission path, avoiding the risk of tampered information being transmitted in the transmission path, and even being transmitted to the target node, improving the reliability of the data source, improving the security and reliability of data transmission, thereby improving the safe operation of the equipment, and helping to improve the security of the power system.
[0067] Embodiment 2
[0068] Figure 2 This is a flowchart of a data transmission method provided by the second embodiment of the present invention. The method of this embodiment is a further optimization of the method of the above embodiment. Optionally, the actual hidden identification information is processed by a preset reference concealment algorithm to obtain the basic bit information corresponding to the actual hidden identification information; determine whether the basic bit information and the reference bit information are consistent. If the basic bit information and the reference bit information are consistent, then determine that the verification result is a successful verification. If the basic bit information and the reference bit information are inconsistent, then determine that the verification result is a failed verification. Figure 2 As shown, the method includes:
[0069] S210, receiving a data packet to be transmitted, wherein the data packet to be transmitted includes target device detection data, first transmission path information and actual hidden identification information, and the first transmission path information includes at least one device node number;
[0070] S220: extract the actual hidden identification information corresponding to the data packet to be transmitted, and obtain the reference bit information of the current device node.
[0071] S230: Process the actual hidden identification information by using a preset reference concealment algorithm to obtain basic bit information corresponding to the actual hidden identification information.
[0072] Specifically, the actual hidden identification information in the data packet to be transmitted is extracted, and a preset reference concealment algorithm is called to process the actual hidden identification information to obtain corresponding bit data, that is, basic bit information corresponding to the actual hidden identification information.
[0073] S240, determining whether the basic bit information and the reference bit information are consistent. If the basic bit information and the reference bit information are consistent, then determining the verification result is a successful verification. If the basic bit information and the reference bit information are inconsistent, then determining the verification result is a failed verification.
[0074] Specifically, the reference bit information is also processed according to the preset reference concealment algorithm to obtain the corresponding calculation result, i.e., the reference bit information. The basic bit information and the reference bit information are compared to determine whether the basic bit information and the reference bit information are consistent. If the basic bit information and the reference bit information are consistent, it indicates that the actual hidden identification information in the data packet to be transmitted has not been modified, indicating that the current data packet to be transmitted is reliable, and the verification result is set to successful verification. If the basic bit information and the reference bit information are inconsistent, it indicates that the actual hidden identification information has been modified, indicating that there is an abnormality in the current data packet to be transmitted, and the verification result is determined to be a failed verification.
[0075] S250. When the verification result is successful, determine the next device node number based on the first transmission path information in the data packet to be transmitted, and transmit the data packet to be transmitted to the device node corresponding to the next device node number; when the verification result is failed, delete the data packet to be transmitted.
[0076] In a specific embodiment, Figure 3A flow chart of a data transmission method is shown. For any node in the transmission path, a data packet to be transmitted is received, wherein the data packet to be transmitted is a data packet sent by the sending end of the previous device node of the current device node, and the previous device node may also be the starting device node in the transmission path, and at the current device node, the actual hidden identification information, i.e., the actual hidden identification information in the data packet to be transmitted, is extracted, and the corresponding basic bit information is calculated, i.e., a preset concealment algorithm is called to process the actual hidden identification information to obtain the corresponding basic bit information, and the reference hidden identification information of the device node is obtained, and the corresponding reference bit information is calculated, i.e., a preset concealment algorithm is called to process the reference hidden identification information to obtain the corresponding reference bit information, and it is determined whether the basic bit is the same as the reference bit, and if not, the data transmission is interrupted, the data packet is discarded, and an alarm message is generated and uploaded, which may be uploaded to a remote server, for example; if they are the same, it is determined whether the device node is a data packet receiving terminal, and if so, the data packet transmission is completed; if not, it is sent to the next device node, and the next device node continues the above processing flow until the data packet to be transmitted is transmitted to the data packet receiving terminal, i.e., the last device node in the transmission path.
[0077] The technical solution of this embodiment is to receive a data packet to be transmitted, wherein the data packet to be transmitted includes target device detection data, first transmission path information and actual hidden identification information, and the first transmission path information includes at least one device node number; extract the actual hidden identification information corresponding to the data packet to be transmitted, and obtain the reference bit information of the current device node; process the actual hidden identification information through a preset reference concealment algorithm to obtain the basic bit information corresponding to the actual hidden identification information; determine whether the basic bit information and the reference bit information are consistent, if the basic bit information and the reference bit information are consistent, then determine the verification result to be a successful verification, if the basic bit information and the reference bit information are inconsistent, then determine the verification result to be a failed verification; if the verification result is a successful verification, determine the next device node number based on the first transmission path information in the data packet to be transmitted, and transmit the data packet to be transmitted to the device node corresponding to the next device node number, and if the verification result is a failed verification, delete the data packet to be transmitted. This solution realizes data transmission of the data to be transmitted according to the first transmission path information, verifies the data to be transmitted in the transmission path, and can quickly determine the verification result by comparing the determined basic bit information and reference bit information, thereby ensuring that only correct data can be transmitted in the transmission path, improving the reliability of the data source, improving the security and reliability of data transmission, thereby improving the safe operation of the equipment, and helping to improve the safety of the power system.
[0078] Embodiment 3
[0079] Figure 4Schematic diagram of a data transmission device provided by Embodiment 3 of the present invention. Figure 4 As shown, the device comprises:
[0080] The data packet receiving module 410 is used to receive the data packet to be transmitted, wherein the data packet to be transmitted includes target device detection data, first transmission path information and actual hidden identification information, and the first transmission path information includes at least one device node number;
[0081] A verification result determination module 420 is used to extract the actual hidden identification information corresponding to the data packet to be transmitted, obtain the reference bit information of the current device node, and determine the verification result based on the actual hidden identification information and the reference bit information, wherein the reference bit information of the current device node is determined based on the reference hidden identification information;
[0082] The data transmission module 430 is used to determine the next device node number based on the first transmission path information in the data packet to be transmitted when the verification result is successful, and transmit the data packet to be transmitted to the device node corresponding to the next device node number; when the verification result is a verification failure, delete the data packet to be transmitted.
[0083] The technical solution of this embodiment is to receive a data packet to be transmitted through a data packet receiving module to be transmitted, wherein the data packet to be transmitted includes target device detection data, first transmission path information and actual hidden identification information, and the first transmission path information includes at least one device node number; the verification result determination module extracts the actual hidden identification information corresponding to the data packet to be transmitted, obtains the reference bit information of the current device node, and determines the verification result based on the actual hidden identification information and the reference bit information, wherein the reference bit information of the current device node is determined based on the reference hidden identification information; the data transmission module determines the next device node number based on the first transmission path information in the data packet to be transmitted when the verification result is a successful verification, and transmits the data packet to be transmitted to the device node corresponding to the next device node number, and deletes the data packet to be transmitted when the verification result is a failed verification. This solution realizes the verification of the data sent by the previous node in each node in the transmission path in turn, so as to ensure that only the data that has been successfully verified can be transmitted in the transmission path, thereby ensuring the independence and reliability of the transmission path, avoiding the risk of tampered information being transmitted in the transmission path, and even being transmitted to the target node, improving the reliability of the data source, improving the security and reliability of data transmission, thereby improving the safe operation of the equipment, and helping to improve the security of the power system.
[0084] On the basis of the above embodiment, optionally, the verification result determination module 420 includes a reference bit information determination unit and a verification result determination unit; each device node is pre-configured with reference hidden identification information, and the reference bit information determination unit is used to process the reference hidden identification information through a preset reference concealment algorithm to obtain the reference bit information of the current device node; the verification result determination unit is used to process the actual hidden identification information through a preset reference concealment algorithm to obtain the basic bit information corresponding to the actual hidden identification information; determine whether the basic bit information and the reference bit information are consistent, if the basic bit information and the reference bit information are consistent, then determine that the verification result is successful, if the basic bit information and the reference bit information are inconsistent, then determine that the verification result is failed.
[0085] Optionally, the data transmission module 430 is specifically used to obtain a device node number of a current device node, compare the device node number with the first transmission path information in the data packet to be transmitted, and determine a next device node number of the current device node.
[0086] Optionally, when the verification result is a verification failure, the device is also used to: generate corresponding alarm information based on the verification result; obtain second transmission path information corresponding to the current device node, and upload the alarm information based on the second transmission path information.
[0087] Optionally, before acquiring the reference bit information of the current device node, the apparatus is further used to: when detecting that the current device node is the last device node in the first transmission path information, stop the transmission of the data packet to be transmitted and determine that the transmission of the data packet to be transmitted is successful.
[0088] Optionally, after receiving the data packet to be transmitted, the device is also used to: extract the first transmission path information in the data packet to be transmitted, match the device number of the current device node with the first transmission path information, if the match is successful, then determine that the current device node belongs to a successfully authenticated device; if the match fails, then determine that the current device node belongs to a failed authentication device.
[0089] The data transmission device provided in the embodiment of the present invention can execute the data transmission method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0090] Embodiment 4
[0091] Figure 51 is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0092] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0093] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0094] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a data transmission method.
[0095] In some embodiments, the data transmission method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the data transmission method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the data transmission method in any other appropriate manner (e.g., by means of firmware).
[0096] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0097] The computer program for implementing the data transmission method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed completely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or completely on a remote machine or server.
[0098] Embodiment 5
[0099] Embodiment 5 of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to execute a data transmission method, the method comprising:
[0100] receiving a data packet to be transmitted, wherein the data packet to be transmitted includes target device detection data, first transmission path information and actual hidden identification information, and the first transmission path information includes at least one device node number;
[0101] Extracting the actual hidden identification information corresponding to the data packet to be transmitted, obtaining the reference bit information of the current device node, and determining the verification result based on the actual hidden identification information and the reference bit information, wherein the reference bit information of the current device node is determined based on the reference hidden identification information;
[0102] If the verification result is successful, the next device node number is determined based on the first transmission path information in the data packet to be transmitted, and the data packet to be transmitted is transmitted to the device node corresponding to the next device node number. If the verification result is failed, the data packet to be transmitted is deleted.
[0103] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0104] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0105] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0106] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0107] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0108] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A data transmission method, characterized in that: Applied to each device node on the data transmission path, including: Receive a data packet to be transmitted, wherein the data packet to be transmitted includes target device detection data, first transmission path information and actual hidden identification information, and the first transmission path information includes at least one device node number; Extracting the actual hidden identification information corresponding to the data packet to be transmitted, obtaining the reference bit information of the current device node, and determining the verification result based on the actual hidden identification information and the reference bit information, wherein the reference bit information of the current device node is determined based on the reference hidden identification information; When the verification result is successful, the next device node number is determined based on the first transmission path information in the data packet to be transmitted, and the data packet to be transmitted is transmitted to the device node corresponding to the next device node number. When the verification result is failed, the data packet to be transmitted is deleted.
2. The method according to claim 1, characterized in that: Reference hidden identification information is pre-configured in each of the device nodes; The obtaining of the reference bit information of the current device node includes: The reference hidden identification information is processed by a preset reference hiding algorithm to obtain the reference bit information of the current device node.
3. The method according to claim 1, characterized in that The determining the verification result based on the actual hidden identification information and the reference bit information includes: Processing the actual hidden identification information by using a preset reference concealment algorithm to obtain basic bit information corresponding to the actual hidden identification information; Determine whether the basic bit information is consistent with the reference bit information. If the basic bit information is consistent with the reference bit information, determine that the verification result is a successful verification. If the basic bit information is inconsistent with the reference bit information, determine that the verification result is a failed verification.
4. The method according to claim 1, characterized in that: The determining the next device node number based on the first transmission path information in the data packet to be transmitted includes: The device node number of the current device node is obtained, and the device node number is compared with the first transmission path information in the data packet to be transmitted to determine the next device node number of the current device node.
5. The method according to claim 1, characterized in that When the verification result is a verification failure, the method further includes: Generate corresponding warning information based on the verification result; Acquire second transmission path information corresponding to the current device node, and upload the alarm information based on the second transmission path information.
6. The method according to claim 1, characterized in that Before obtaining the reference bit information of the current device node, the method further includes: When it is detected that the current device node is the last device node in the first transmission path information, the transmission of the data packet to be transmitted is stopped, and it is determined that the transmission of the data packet to be transmitted is successful.
7. The method according to claim 1, characterized in that After receiving the data packet to be transmitted, the method further includes: Extract the first transmission path information in the data packet to be transmitted, match the device number of the current device node with the first transmission path information, if the match is successful, determine that the current device node belongs to a successfully authenticated device, if the match fails, determine that the current device node belongs to a failed authentication device.
8. A data transmission device, characterized in that: include: A data packet receiving module to be transmitted, used for receiving a data packet to be transmitted, wherein the data packet to be transmitted includes target device detection data, first transmission path information and actual hidden identification information, and the first transmission path information includes at least one device node number; A verification result determination module, used to extract the actual hidden identification information corresponding to the data packet to be transmitted, obtain the reference bit information of the current device node, and determine the verification result based on the actual hidden identification information and the reference bit information, wherein the reference bit information of the current device node is determined based on the reference hidden identification information; A data transmission module is used to determine the next device node number based on the first transmission path information in the data packet to be transmitted when the verification result is a successful verification, and transmit the data packet to be transmitted to the device node corresponding to the next device node number; if the verification result is a failed verification, delete the data packet to be transmitted.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the data transmission method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data transmission method according to any one of claims 1 to 7 when executed.
Citation Information
Cited By
Inter-chip communication system and method
CN119759833A
