Monitoring data transmission method, device, electronic device and storage medium

By adopting a consortium chain network in the video surveillance system, and using the coordinated work of transmission nodes, accounting nodes and service nodes, the delay and congestion caused by massive data transmission are solved, and efficient and reliable data transmission and processing are achieved.

CN115567546BActive Publication Date: 2025-02-14SHENZHEN HIVT TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211022367.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-25
Publication Date
2025-02-14
Estimated Expiration
2042-08-25

AI Technical Summary

Technical Problem

Existing video surveillance systems are prone to delay and congestion when mass data is transmitted, reducing the data processing rate.

Method used

The alliance chain network is adopted to improve data transmission efficiency through the coordinated work of transmission nodes, accounting nodes and service nodes.

Benefits of technology

Efficient monitoring data transmission is realized, delay and congestion is reduced, data processing rate is improved, and data credibility is improved through preliminary data verification of service nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115567546B_ABST
    Figure CN115567546B_ABST
Patent Text Reader

Abstract

The present application relates to the field of blockchain technology, and provides a monitoring data transmission method, device, electronic device and storage medium, which is applied to a consortium chain network; the consortium chain network includes multiple local area networks, each of which is composed of a transmission node, an accounting node and a service node; the method includes: for each local area network, obtaining the monitoring data collected by multiple transmission nodes, using the service node to authenticate each transmission node; obtaining the connection relationship between the transmission node and the service node that has passed the identity authentication, and transmitting the monitoring data and the connection relationship in the transmission node that has passed the identity authentication to the accounting node; using the accounting node to record the connection relationship and the monitoring data in the transmission node that has passed the identity authentication, and obtain the account book information for transmission in the consortium chain network. In this way, the monitoring data is transmitted using the consortium chain network, the data transmission rate is improved, it is not easy to be congested, and the timeliness is high, thereby improving the processing rate of the background data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a monitoring data transmission method, device, electronic device and storage medium. Background Art

[0002] With the continuous development of the Internet of Things and cloud computing, video surveillance systems have become an indispensable management tool in major cities. Video surveillance systems are one of the most widely used systems in security systems. They can replace manual work for part of the monitoring work, save manpower, and are safe and reliable.

[0003] In the prior art, the video surveillance system can be divided into two parts: the front-end and the back-end. Specifically, the front-end, such as sensors, collects and transmits corresponding data, and the back-end processes the transmitted data, and then stores the data and the data processing results.

[0004] However, since there are many monitoring nodes such as cameras in the video surveillance system, when massive data is transmitted over the network, there is a large delay and it is easy to cause congestion and reduce the data processing rate. Summary of the invention

[0005] The present application provides a monitoring data transmission method, device, electronic device and storage medium, which can improve the data transmission rate. Even massive data can be processed in a distributed manner, not prone to congestion, and highly timely. The service node has already performed preliminary processing on the data and verified the credibility of the data, thereby improving the processing rate of the background data.

[0006] In a first aspect, the present application provides a method for monitoring data transmission, which is applied to a consortium chain network; the consortium chain network includes multiple local area networks, each of which is composed of a transmission node, a bookkeeping node, and a service node; the method includes:

[0007] For each local area network, monitoring data collected by multiple transmission nodes is obtained, and identity verification of each transmission node is performed using the service node;

[0008] Obtaining a connection relationship between the transmission node that has passed identity authentication and the service node, and transmitting monitoring data in the transmission node that has passed identity authentication and the connection relationship to the accounting node;

[0009] The accounting node is used to record the connection relationship and the monitoring data in the transmission node that has passed the identity authentication, and the ledger information is obtained for transmission in the alliance chain network.

[0010] Optionally, using the service node to authenticate each transmission node includes:

[0011] Obtaining the identity information of each transmission node and the identification number of the local area network corresponding to the transmission node; the identification number is the domain number corresponding to the local area network;

[0012] Using the service node to determine whether the identification number corresponding to each transmission node is the same as the domain number of the local area network;

[0013] If yes, then compare the identity information in the pre-stored data table with the identity information of the transmission node to verify whether the identity is passed;

[0014] If not, the monitoring data in the transmission node is submitted to the local area network with a domain number consistent with the identification number.

[0015] Optionally, using the accounting node to record the connection relationship and monitoring data in the transmission node that has passed the identity authentication includes:

[0016] Obtaining the connection relationship between the transmission node and the service node that has passed the identity authentication within a preset time, and counting the connection relationship to obtain a statistical result;

[0017] The statistical results are analyzed based on a predefined algorithm to obtain a target connection relationship, and the target connection relationship and monitoring data in the transmission node in the target connection relationship are recorded.

[0018] Optionally, transmitting the monitoring data and the connection relationship in the transmission node that has passed the identity authentication to the accounting node includes:

[0019] Obtaining digital signature information of a transmission node that has passed identity authentication, and sending the digital signature information to the service node;

[0020] After receiving the digital signature information, the service node encrypts the digital signature information and the monitoring data in the transmission node based on a key generation algorithm to generate encrypted information;

[0021] The encrypted information and the connection relationship are transmitted to the accounting node.

[0022] Optionally, the method further includes:

[0023] When a new transmission node is added, the local area network closest to the transmission node is obtained, and a registration instruction is sent to the service node in the local area network;

[0024] After receiving the registration instruction, the service node obtains the identity information of the transmission node;

[0025] A new connection relationship is obtained based on the identity information of the transmission node, and the new connection relationship is sent to the accounting node for recording to update the local area network.

[0026] Optionally, the method further includes:

[0027] When a transmission node is deleted, a deregistration instruction is sent to a service node in the local area network where the transmission node is located;

[0028] After receiving the deregistration instruction, the service node obtains the identity information and monitoring data of the transmission node;

[0029] The identity information and monitoring data of the transmission node are deleted, and the connection relationship between the remaining transmission nodes and service nodes in the local area network where the transmission node is located is sent to the accounting node for recording, so as to update the local area network.

[0030] Optionally, the method further includes:

[0031] If there are multiple accounting nodes in the same local area network, the same computing task is issued to the multiple accounting nodes;

[0032] The rate at which each accounting node processes the computing task is obtained, and the accounting node with the highest rate is selected as the target accounting node of this local area network.

[0033] In a second aspect, the present application provides a monitoring data transmission device, which is applied to a consortium chain network; the consortium chain network includes multiple local area networks, each of which is composed of a transmission node, a bookkeeping node, and a service node; the device includes:

[0034] A verification module, for obtaining monitoring data collected by multiple transmission nodes for each local area network, and performing identity verification on each transmission node using the service node;

[0035] A transmission module, used to obtain the connection relationship between the transmission node that has passed the identity authentication and the service node, and transmit the monitoring data in the transmission node that has passed the identity authentication and the connection relationship to the accounting node;

[0036] The recording module is used to use the accounting node to record the connection relationship and the monitoring data in the transmission node that has passed the identity authentication, and obtain the account book information for transmission in the alliance chain network.

[0037] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0038] The memory stores computer-executable instructions;

[0039] The processor executes the computer-executable instructions stored in the memory to implement the method as described in any one of the first aspects.

[0040] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method as described in any one of the first aspects.

[0041] In summary, the present application provides a monitoring data transmission method, device, electronic device and storage medium, which is applied to a consortium chain network; the consortium chain network includes multiple local area networks, each of which is composed of a transmission node, an accounting node and a service node; specifically, for each local area network, the monitoring data collected by multiple transmission nodes can be obtained, and each transmission node can be authenticated using a service node; further, the connection relationship between the transmission node that has passed the identity authentication and the service node is obtained, and the monitoring data and connection relationship in the transmission node that has passed the identity authentication are transmitted to the accounting node; further, the accounting node is used to record the connection relationship and the monitoring data in the transmission node that has passed the identity authentication, and the account book information is obtained for transmission in the consortium chain network. In this way, the consortium chain network is used to transmit the monitoring data, which can improve the data transmission rate. Even if a large amount of data is transmitted, distributed processing can be performed, which is not easy to be congested and has high timeliness. The service node has already performed preliminary processing on the data, that is, the credibility of the data is verified, and the processing rate of the background data can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0043] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0044] Figure 2 A schematic diagram of the structure of a monitoring data transmission system provided in an embodiment of the present application;

[0045] Figure 3 A flowchart of a monitoring data transmission method provided in an embodiment of the present application;

[0046] Figure 4 A schematic diagram of a data structure of a transmission node provided in an embodiment of the present application;

[0047] Figure 5 A schematic diagram of the structure of a monitoring data transmission device provided in an embodiment of the present application;

[0048] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0049] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0050] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0051] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. For example, the first device and the second device are only used to distinguish different devices, and their order is not limited. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit them to be different.

[0052] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0053] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0054] In daily life, public places such as banks, shopping malls, residences, and traffic roads have basically been fully covered by video surveillance systems. These places are usually equipped with hundreds or thousands of video surveillance devices to ensure that the monitored objects can be tracked. Video surveillance systems play a huge role in urban public security, public transportation, and combating crimes, promoting the harmonious and stable development of cities and providing security. Among them, the video files generated by the video surveillance system are particularly important in the security industry. Video files can reflect facts and can be used repeatedly. They have strong information expansion and play an irreplaceable role in investigating and solving cases.

[0055] The video surveillance system can be divided into the front-end and the back-end. The front-end usually uses sensors to collect and transmit the corresponding data, while the back-end processes the transmitted data in a further step, such as intelligent recognition and secure storage. Among them, the monitoring front-end is generally composed of ordinary cameras, video servers, or network cameras.

[0056] However, with the advent of the big data era and the explosive growth of video equipment, there are many monitoring nodes such as cameras in the video surveillance system. When massive amounts of data are transmitted over the network, there is a large delay and it is easy to cause congestion, reducing the data processing rate.

[0057] Therefore, the structure of video surveillance systems has begun to transition from integrated and centralized to distributed and hierarchical. For example, distributed edge nodes can be used to process the original video stream, and useful information can be extracted through certain technical means, and transmitted to higher-level nodes to assist in advanced analysis tasks; where edge nodes can refer to any node with computing resources and network resources between the data generation source and the cloud center. For example, in a smart home system, the gateway is the edge node between smart furniture and cloud center storage.

[0058] It should be noted that edge computing is a method of distributing main processor tasks to the edge of the network, allowing distributed nodes at the edge of the network to perform more tasks and share the burden of central nodes or systems. Specifically, processing and analyzing data at the edge nodes of the network can provide users with close-range cloud services to promote real-time services and rapid response.

[0059] Blockchain integrates several related technologies such as distributed storage, cryptography, peer-to-peer network, and consensus mechanism. It is a safe and reliable new technology for data storage and exchange. It has many characteristics such as distributed fault tolerance, immutability, privacy protection, and trustworthiness. Therefore, blockchain technology can be used to establish a secure storage system for the transmission of video data.

[0060] Based on a comprehensive consideration of the problems existing in the above-mentioned video surveillance system, edge computing and blockchain, an embodiment of the present application provides a monitoring data transmission method based on blockchain and edge computing, which is applied to a monitoring front-end system. In the monitoring front-end system, multiple distributed local area networks are included. Switches, routers or other intermediaries in the same local area network act as edge devices. The edge devices can collect monitoring data collected by multiple sensors, authenticate the data, and then send the authenticated monitoring data to the server for processing; wherein the edge devices, sensors and servers are regional identity chain (RIC) network nodes. The RIC network nodes are established in different local area networks and are interconnected through the network to transmit monitoring data.

[0061] Specifically, each local area network can select and authenticate its own nodes, including transmission nodes, accounting nodes and service nodes. Transmission nodes such as sensors are used to collect data, and service nodes and accounting nodes such as edge devices and servers are used to verify, send and record accounts. In this way, the monitoring data can be transmitted through the alliance chain network and distributedly processed, which can improve the data transmission rate, reduce congestion and be highly timely.

[0062] It should be noted that multiple distributed local area networks can constitute a consortium chain network, also known as a regional chain network. In the monitoring front-end system, multiple consortium chain networks can also be included. The embodiments of the present application do not specifically limit the number of local area networks and consortium chain networks.

[0063] The following is an introduction to the embodiments of the present application in conjunction with the accompanying drawings. Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application. A monitoring data transmission method provided in the present application can be applied to Figure 1 In the application scenario shown. The application scenario includes: multiple local area networks such as local area network A and local area network B, each independent local area network is composed of several camera sensors, edge devices and server nodes, and then multiple local area networks are networked in a point-to-point network to form a consortium chain network.

[0064] Since the alliance chain network has the characteristics of distributed multi-centralization, it can meet the distribution environment of multiple independent monitoring LANs. Specifically, taking LAN A as an example, in LAN A, the camera sensor can collect monitoring data and transmit the monitoring data to the edge device. After collecting the monitoring data collected by multiple camera sensors, the edge device authenticates the data and then sends the authenticated monitoring data to the server for processing; the same monitoring data transmission process can be carried out in LAN B, and the embodiments of the present application will not be repeated here. Then, multiple LANs transmit monitoring data based on a point-to-point network to transmit it to the background for processing.

[0065] Exemplarily, the monitoring data transmission method is implemented based on a monitoring data transmission system. Figure 2 A schematic diagram of a monitoring data transmission system provided in an embodiment of the present application; Figure 2 As shown, the regional chain network includes multiple local area networks, each of which can select and authenticate its own nodes. The node types can be divided into three categories: transmission nodes, accounting nodes and service nodes; among them, the transmission node is played by a sensor node in a local area network, which is used to receive data and transmit data to the service node; the service node is played by an edge device node in a local area network, which is used to authenticate the identity of the transmission node and transmit the collected data of the transmission node, and combine the transaction data of the transmission node to broadcast to the network; the accounting node is played by a server node in a local area network, which is used to maintain the ledger in the regional chain network. The ledger is the transaction information recorded through a consensus mechanism, such as the connection and transmission relationship of each node.

[0066] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0067] Figure 3 A flow chart of a monitoring data transmission method provided in an embodiment of the present application, wherein the monitoring data transmission method is applied to a consortium chain network; the consortium chain network includes multiple local area networks, each of which is composed of a transmission node, an accounting node, and a service node; Figure 3 As shown, the monitoring data transmission method includes the following steps:

[0068] S301. For each local area network, monitoring data collected by multiple transmission nodes is obtained, and the service node is used to authenticate the identity of each transmission node.

[0069] In an embodiment of the present application, the transmission node is used to collect corresponding monitoring data. The transmission node can be a device with monitoring function such as a camera, a video server, or a network camera. The embodiment of the present application does not specifically limit the type of the transmission node.

[0070] In this step, the service node is used to authenticate each transmission node, and the identity information corresponding to each transmission node can be used for verification. The identity information is information carried by each transmission node to represent the identity, such as an identity identification number (Identity Document, ID), Internet Protocol (Internet Protocol, IP) address or a pre-defined number, etc. The embodiment of the present application does not make specific limitations on this.

[0071] Optionally, the service node also needs to verify whether the monitoring data collected by the transmission nodes joining the alliance chain network is credible; specifically, after each transmission node collects the monitoring data, it can assign a corresponding trusted identity identifier, and further send the trusted identity identifier to the service node. The service node compares the trusted identity identifier in the pre-stored data table with the trusted identity identifier of the transmission node to verify whether the monitoring data is credible.

[0072] Optionally, the transmission node can encapsulate the monitoring data and / or trusted identity into trusted transmission protocol layer data, and send the trusted transmission protocol layer data to the service node, and the service node can verify the trusted transmission protocol layer data based on the trusted transmission protocol; the embodiment of the present application does not specifically limit the trusted transmission protocol.

[0073] Among them, in a local area network, the number of the transmission node and the number of the service node are both at least one, and usually the number of the transmission nodes is multiple. The embodiment of the present application does not specifically limit the number of the transmission nodes and the service nodes.

[0074] S302: Obtain the connection relationship between the transmission node that has passed the identity authentication and the service node, and transmit the monitoring data in the transmission node that has passed the identity authentication and the connection relationship to the accounting node.

[0075] In this step, the connection relationship between the transmission node and the service node may refer to the relationship between the transmission node and the service node for transmitting monitoring data, such as the relationship between transmission node 1 transmitting monitoring data to service node 1, or the relationship between transmission node 1 transmitting monitoring data to transmission node 2, and transmission node 2 transmitting the monitoring data of transmission node 1 and the monitoring data of transmission node 2 to service node 1, or the relationship between the monitoring data of transmission node 1 and the monitoring data of transmission node 2 respectively transmitted to service node 1. The embodiment of the present application does not specifically limit the number of transmission nodes and service nodes included in the connection relationship, but each connection relationship includes at least one transmission node and service node.

[0076] It should be noted that a transmission node can act as an intermediate node to store and transmit monitoring data of other transmission nodes, but the amount of stored monitoring data should not be too much.

[0077] S303: Use the accounting node to record the connection relationship and the monitoring data in the transmission node that has passed the identity authentication, and obtain the ledger information for transmission in the alliance chain network.

[0078] In an embodiment of the present application, the ledger information may refer to transaction information recorded through a consensus mechanism within a local area network, wherein the transaction information includes the connection relationship between each node, the monitoring data in each node, and the information transmitted by each node such as a public key.

[0079] For example, in Figure 1 In the application scenario, taking LAN A as an example, three camera sensors can collect monitoring data and transmit the collected monitoring data to the edge device, and then the edge device authenticates the three camera sensors. If only two camera sensors pass the identity authentication, the connection relationship between the two camera sensors that pass the identity authentication and the edge device and the monitoring data collected by the two camera sensors are sent to the server, and then the server records the connection relationship between the two camera sensors and the edge device and the monitoring data collected by the two camera sensors to obtain the account book information.

[0080] Therefore, the present application provides a monitoring data transmission method, which can obtain the monitoring data collected by multiple transmission nodes for each local area network, and use the service node to authenticate each transmission node; further, obtain the connection relationship between the transmission node that has passed the authentication and the service node, and transmit the monitoring data and connection relationship in the transmission node that has passed the authentication to the accounting node; further, use the accounting node to record the connection relationship and the monitoring data in the transmission node that has passed the authentication, and obtain the account book information for transmission in the alliance chain network. In this way, using the alliance chain network to transmit monitoring data can increase the data transmission rate, even if massive data is transmitted, it can also be distributedly processed, not prone to congestion, and has high timeliness, and the service node has already performed preliminary processing on the data, that is, verifying the credibility of the data, thereby increasing the processing rate of the background data.

[0081] Optionally, using the service node to authenticate each transmission node includes:

[0082] Obtaining the identity information of each transmission node and the identification number of the local area network corresponding to the transmission node; the identification number is the domain number corresponding to the local area network;

[0083] Using the service node to determine whether the identification number corresponding to each transmission node is the same as the domain number of the local area network;

[0084] If yes, then compare the identity information in the pre-stored data table with the identity information of the transmission node to verify whether the identity is passed;

[0085] If not, the monitoring data in the transmission node is submitted to the local area network with a domain number consistent with the identification number.

[0086] In an embodiment of the present application, the pre-stored data table may refer to a data table in which the monitoring data transmission system stores the identity information of multiple transmission nodes in advance and is used to authenticate the identity of the transmission nodes. In this data table, each transmission node corresponds to unique identity information, such as the identity information corresponding to transmission node 1 is ID1. The embodiment of the present application does not specifically limit the form of expression of the identity information, which may be numbers, letters, ID numbers, etc.

[0087] In this step, the service node is used to authenticate each transmission node. It is necessary to obtain data in the data structure corresponding to the transmission node and use the data for verification. For example, Figure 4 A data structure diagram of a transmission node provided in an embodiment of the present application, such as Figure 4 As shown, the data structure of the transmission node includes ID, domain number, identity information, operation information and digital signature, etc. The ID can be a transaction number; the domain number is the domain number of the local area network where each transmission node is located, that is, the identification number corresponding to each local area network; the identity information represents the identity information of the transmission node corresponding to the service node; the operation information represents the operation information on the identity information, such as cancellation operation information, registration operation information, etc.; the digital signature represents that the transmission node sends relevant digital signature information to the service node, such as key information.

[0088] Specifically, in Figure 1 In the application scenario, when authenticating a camera sensor, the edge device can obtain the identity information of the camera sensor and the identification number of the local area network corresponding to the camera sensor, such as local area network A, and further determine whether the identification number corresponding to the camera sensor is local area network A; if so, obtain the identity information of the camera sensor and compare it with the identity information in the pre-stored data table to verify whether the identity of the camera sensor is passed; if not, submit the monitoring data in the camera sensor to the local area network with the domain number consistent with the identification number of the camera sensor, such as local area network B.

[0089] It should be noted that the service node and the accounting node can have a data structure similar to that of the transmission node. The embodiment of the present application can also authenticate the service node and the accounting node. The verification method is similar to the verification method of the transmission node and will not be repeated here.

[0090] Therefore, the embodiment of the present application can utilize the service node to authenticate whether the transmission node joining the service node is legitimate, thereby improving the reliability of monitoring data transmission.

[0091] Optionally, using the accounting node to record the connection relationship and monitoring data in the transmission node that has passed the identity authentication includes:

[0092] Obtaining the connection relationship between the transmission node and the service node that has passed the identity authentication within a preset time, and counting the connection relationship to obtain a statistical result;

[0093] The statistical results are analyzed based on a predefined algorithm to obtain a target connection relationship, and the target connection relationship and monitoring data in the transmission node in the target connection relationship are recorded.

[0094] In an embodiment of the present application, the preset time may refer to the time corresponding to the target connection relationship designed for monitoring data transmission. Within the preset time, the optimal node-to-node connection relationship block can be found. The block can be understood as a regional chain consisting of connection relationships among nodes in the local area network. The embodiment of the present application does not limit the specific value corresponding to the preset time. It can be set in advance or modified manually. For example, the preset time is 5 minutes.

[0095] In this step, the statistical results are analyzed based on a predefined algorithm to obtain the target connection relationship. The predefined algorithm is an algorithm defined in advance for finding the optimal connection relationship. For example, the predefined algorithm can be a weighted algorithm, and corresponding weight values ​​are set between each node. The connection relationship between the nodes with the largest weight value calculated by the weighted algorithm is the target connection relationship. The weight value can be set based on the distance from the service node, and the embodiment of the present application does not make specific limitations on this.

[0096] It should be noted that the connection relationship corresponding to the node transmission path containing the largest number of nodes is usually selected as the target connection relationship. The embodiment of the present application does not specifically limit the predefined algorithm, which can also be a maximum value algorithm.

[0097] Therefore, the embodiment of the present application can select the optimal connection relationship to form a block, so that the monitoring data transmitted between nodes has integrity and stability.

[0098] Optionally, transmitting the monitoring data and the connection relationship in the transmission node that has passed the identity authentication to the accounting node includes:

[0099] Obtaining digital signature information of a transmission node that has passed identity authentication, and sending the digital signature information to the service node;

[0100] After receiving the digital signature information, the service node encrypts the digital signature information and the monitoring data in the transmission node based on a key generation algorithm to generate encrypted information;

[0101] The encrypted information and the connection relationship are transmitted to the accounting node.

[0102] In the embodiment of the present application, the digital signature information may refer to the public identity information of the transmission node, such as public key information. A transmission node with digital signature information indicates that the monitoring data in the transmission node has been encrypted.

[0103] In this step, the digital signature information and the monitoring data in the transmission node are encrypted based on the key generation algorithm. Specifically, the key generation algorithm is used to generate private key information, and the digital signature information and the monitoring data in the transmission node are encrypted using the private key information to generate encrypted information. By performing secondary encryption on the monitoring data, the security of the monitoring data transmission is improved.

[0104] Among them, the key generation algorithm may refer to any predetermined key generation algorithm, which may refer to an existing key generation algorithm or may be artificially redefined. The embodiment of the present application does not make any specific limitation on this.

[0105] It should be noted that in addition to the above-mentioned secondary encryption, the embodiments of the present application can also perform multiple encryptions, depending on the specific circumstances. The embodiments of the present application do not specifically limit the number of encryptions, wherein each private key has a corresponding public key, that is, each secret key has a corresponding public key for decryption.

[0106] It can be understood that since the present application is composed of multiple distributed local area networks and blockchain networks, the security of monitoring data transmission is guaranteed by the blockchain.

[0107] Therefore, the embodiment of the present application can encrypt the monitoring data and then transmit it to the accounting node, thereby enhancing the security of the monitoring data transmission.

[0108] Optionally, the method further includes:

[0109] When a new transmission node is added, the local area network closest to the transmission node is obtained, and a registration instruction is sent to the service node in the local area network;

[0110] After receiving the registration instruction, the service node obtains the identity information of the transmission node;

[0111] A new connection relationship is obtained based on the identity information of the transmission node, and the new connection relationship is sent to the accounting node for recording to update the local area network.

[0112] In an embodiment of the present application, the registration instruction can be stored in the data structure of the transmission node. After the transmission node transmits the monitoring data to the service node, the service node can accordingly identify the information contained in the data structure of the transmission node, such as registration operation information; the registration operation information is a registration instruction sent to the service node in the local area network.

[0113] Specifically, when a new sensor joins a service node, it can send a registration instruction to a nearby service node, that is, submit its own identity information. The service node then obtains a new connection relationship based on the identity information and sends the new connection relationship to the accounting node for recording to update the local area network.

[0114] Among them, the service node can generate the digital signature information of the sensor based on the corresponding encryption algorithm, and then the nearby service nodes can obtain the ID and digital signature information of the new sensor; further, the service node can submit the new sensor's ID, domain number, identity information, registration operation information, digital signature information and other structural information to the accounting node in the local area network. Specifically, the service node assembles the structural information together and broadcasts it to the blockchain network within a certain period of time, so that the accounting node can record the received structural information through a consensus mechanism to generate a new block.

[0115] Therefore, the embodiment of the present application can add new transmission nodes to improve the flexibility of building a consortium chain network.

[0116] Optionally, the method further includes:

[0117] When a transmission node is deleted, a deregistration instruction is sent to a service node in the local area network where the transmission node is located;

[0118] After receiving the deregistration instruction, the service node obtains the identity information and monitoring data of the transmission node;

[0119] The identity information and monitoring data of the transmission node are deleted, and the connection relationship between the remaining transmission nodes and service nodes in the local area network where the transmission node is located is sent to the accounting node for recording, so as to update the local area network.

[0120] In an embodiment of the present application, the logout instruction can also be stored in the data structure of the transmission node. After the transmission node transmits the monitoring data to the service node, the service node can accordingly identify the information contained in the data structure of the transmission node, such as logout operation information; the logout operation information is a logout instruction sent to the service node in the local area network.

[0121] Specifically, when a sensor is deregistered, it can send a deregistration instruction to a nearby service node, that is, submit its own identity information, and then the service node obtains the structural information and monitoring data of the sensor based on the identity information, and deletes the structural information and monitoring data of the sensor. Furthermore, the connection relationship between the remaining sensors and the service node in the local area network where the sensor is located is sent to the accounting node for recording, so as to update the local area network, that is, generate a new block.

[0122] Therefore, the embodiment of the present application can also cancel the transmission node, so that the flexibility of deploying nodes in the alliance chain network is greatly improved.

[0123] It should be noted that the transmission node can perform registration and deregistration operations, and correspondingly, the service node and the accounting node can also perform corresponding registration and deregistration operations. The operation process is similar to the above embodiment and will not be repeated here. However, there must be at least one accounting node and service node in each local area network. After adding or deleting an accounting node, there are multiple or no accounting nodes in the same local area network. In this case, a target accounting node needs to be selected in the local area network.

[0124] Optionally, the method further includes:

[0125] If there are multiple accounting nodes in the same local area network, the same computing task is issued to the multiple accounting nodes;

[0126] The rate at which each accounting node processes the computing task is obtained, and the accounting node with the highest rate is selected as the target accounting node of this local area network.

[0127] In the embodiment of the present application, the computing task may refer to a task for obtaining the processing speed of the accounting node. The embodiment of the present application does not specifically limit the computing task.

[0128] In this step, the reversible addition-break chain transfer aggregation (Raft) consensus mechanism suitable for the alliance chain is used to reach a consensus among different nodes on the data of the entire network. When there are multiple accounting nodes in the same local area network, the roles of the nodes in the local area network are as follows:

[0129] 1) Leader: One person is elected by the accounting nodes;

[0130] 2) Follower: It is the failed accounting node and service node;

[0131] 3) Candidate: All accounting nodes take on this role.

[0132] Among them, in the alliance chain network, all candidates obtain the corresponding rate by processing the same computing task. This application selects the accounting node with the largest computing rate to become the Leader (target accounting node), that is, the accounting node with the most votes, and the accounting nodes with other computing rates automatically become Followers.

[0133] It should be noted that becoming a Leader accounting node can form a new blockchain ledger by verifying the transaction information of each node over a period of time, and update the local area network at the same time, that is, synchronize the alliance chain network. Since accounting nodes are usually servers with high computing efficiency in a local area network, and then use this server to record accounts, instead of all nodes in the entire network competing for accounting, the efficiency of the blockchain can be improved.

[0134] Therefore, the embodiment of the present application can select the accounting node with the fastest computing speed as the target accounting node, improve the transmission efficiency of the alliance chain network, and further improve the processing rate of the background data.

[0135] In the foregoing embodiments, the monitoring data transmission method provided by the embodiments of the present application is introduced, and in order to realize the various functions in the method provided by the embodiments of the present application, the electronic device as the execution subject may include a hardware structure and / or a software module, and the above functions are realized in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

[0136] For example, Figure 5 A schematic diagram of the structure of a monitoring data transmission device provided in an embodiment of the present application, wherein the monitoring data transmission device is applied to a consortium chain network; the consortium chain network includes multiple local area networks, each of which is composed of a transmission node, a bookkeeping node, and a service node; Figure 5 As shown, the device includes: a verification module 510, a transmission module 520 and a recording module 530; wherein the verification module 510 is used to obtain the monitoring data collected by multiple transmission nodes for each local area network, and use the service node to authenticate each transmission node;

[0137] The transmission module 520 is used to obtain the connection relationship between the transmission node that has passed the identity authentication and the service node, and transmit the monitoring data in the transmission node that has passed the identity authentication and the connection relationship to the accounting node;

[0138] The recording module 530 is used to use the accounting node to record the connection relationship and the monitoring data in the transmission node that has passed the identity authentication, and obtain the ledger information for transmission in the alliance chain network.

[0139] Optionally, the verification module 510 is specifically used to:

[0140] Obtaining the identity information of each transmission node and the identification number of the local area network corresponding to the transmission node; the identification number is the domain number corresponding to the local area network;

[0141] Using the service node to determine whether the identification number corresponding to each transmission node is the same as the domain number of the local area network;

[0142] If yes, then compare the identity information in the pre-stored data table with the identity information of the transmission node to verify whether the identity is passed;

[0143] If not, the monitoring data in the transmission node is submitted to the local area network with a domain number consistent with the identification number.

[0144] Optionally, the recording module 530 is specifically used to:

[0145] Obtaining the connection relationship between the transmission node and the service node that has passed the identity authentication within a preset time, and counting the connection relationship to obtain a statistical result;

[0146] The statistical results are analyzed based on a predefined algorithm to obtain a target connection relationship, and the target connection relationship and monitoring data in the transmission node in the target connection relationship are recorded.

[0147] Optionally, the transmission module 520 is specifically configured to:

[0148] Obtaining digital signature information of a transmission node that has passed identity authentication, and sending the digital signature information to the service node;

[0149] After receiving the digital signature information, the service node encrypts the digital signature information and the monitoring data in the transmission node based on a key generation algorithm to generate encrypted information;

[0150] The encrypted information and the connection relationship are transmitted to the accounting node.

[0151] Optionally, the device further includes a new module, and the new module is used to:

[0152] When a new transmission node is added, the local area network closest to the transmission node is obtained, and a registration instruction is sent to the service node in the local area network;

[0153] After receiving the registration instruction, the service node obtains the identity information of the transmission node;

[0154] A new connection relationship is obtained based on the identity information of the transmission node, and the new connection relationship is sent to the accounting node for recording to update the local area network.

[0155] Optionally, the device further includes a deletion module, wherein the deletion module is configured to:

[0156] When a transmission node is deleted, a deregistration instruction is sent to a service node in the local area network where the transmission node is located;

[0157] After receiving the deregistration instruction, the service node obtains the identity information and monitoring data of the transmission node;

[0158] The identity information and monitoring data of the transmission node are deleted, and the connection relationship between the remaining transmission nodes and service nodes in the local area network where the transmission node is located is sent to the accounting node for recording, so as to update the local area network.

[0159] Optionally, the device further includes a selection module, wherein the selection module is used to:

[0160] If there are multiple accounting nodes in the same local area network, the same computing task is issued to the multiple accounting nodes;

[0161] The rate at which each accounting node processes the computing task is obtained, and the accounting node with the highest rate is selected as the target accounting node of this local area network.

[0162] The specific implementation principle and effect of a monitoring data transmission device provided in an embodiment of the present application can be found in the relevant description and effects corresponding to the above embodiments, and will not be elaborated here.

[0163] The present application also provides a schematic diagram of the structure of an electronic device. Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the electronic device may include: a processor 601 and a memory 602 that is communicatively connected to the processor; the memory 602 stores a computer program; the processor 601 executes the computer program stored in the memory 602, so that the processor 601 executes the method described in any of the above embodiments.

[0164] The memory 602 and the processor 601 may be connected via a bus 603 .

[0165] An embodiment of the present application further provides a computer-readable storage medium, which stores computer program execution instructions. When the computer program execution instructions are executed by a processor, they are used to implement the method described in any of the aforementioned embodiments of the present application.

[0166] An embodiment of the present application further provides a chip for executing instructions, wherein the chip is used to execute the method described in any of the aforementioned embodiments as executed by an electronic device in any of the aforementioned embodiments of the present application.

[0167] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method described in any of the aforementioned embodiments of the present application executed by an electronic device can be implemented.

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

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

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

[0171] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application.

[0172] It should be understood that the above processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can be any conventional processor, etc. The steps of the method disclosed in the application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.

[0173] The memory may include high-speed random access memory (RAM), and may also include non-volatile memory (NVM), such as at least one disk storage, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk, etc.

[0174] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0175] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special computer.

[0176] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.

[0177] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the embodiment of the present application should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.

Claims

1. A monitoring data transmission method, characterized in that: Applied to a consortium chain network; the consortium chain network includes multiple local area networks, each of which is composed of a transmission node, a bookkeeping node, and a service node; the method includes: For each local area network, monitoring data collected by multiple transmission nodes is obtained, and identity verification of each transmission node is performed using the service node; Obtaining a connection relationship between the transmission node that has passed identity authentication and the service node, and transmitting monitoring data in the transmission node that has passed identity authentication and the connection relationship to the accounting node; The accounting node is used to record the connection relationship and the monitoring data in the transmission node that has passed the identity authentication, and the account book information is obtained for transmission in the alliance chain network; The method of using the accounting node to record the connection relationship and the monitoring data in the transmission node that has passed the identity authentication includes: Obtaining the connection relationship between the transmission node and the service node that has passed the identity authentication within a preset time, and counting the connection relationship to obtain a statistical result; The statistical results are analyzed based on a predefined algorithm to obtain a target connection relationship, and the target connection relationship and monitoring data in the transmission node in the target connection relationship are recorded.

2. The method according to claim 1, characterized in that Utilizing the service node to authenticate each transmission node includes: Obtaining the identity information of each transmission node and the identification number of the local area network corresponding to the transmission node; the identification number is the domain number corresponding to the local area network; Using the service node to determine whether the identification number corresponding to each transmission node is the same as the domain number of the local area network; If yes, then compare the identity information in the pre-stored data table with the identity information of the transmission node to verify whether the identity is passed; If not, the monitoring data in the transmission node is submitted to the local area network with a domain number consistent with the identification number.

3. The method according to claim 1, characterized in that Transmitting the monitoring data and the connection relationship in the transmission node that has passed the identity authentication to the accounting node, including: Obtaining digital signature information of a transmission node that has passed identity authentication, and sending the digital signature information to the service node; After receiving the digital signature information, the service node encrypts the digital signature information and the monitoring data in the transmission node based on a key generation algorithm to generate encrypted information; The encrypted information and the connection relationship are transmitted to the accounting node.

4. The method according to claim 1, characterized in that: The method further comprises: When a new transmission node is added, the local area network closest to the transmission node is obtained, and a registration instruction is sent to the service node in the local area network; After receiving the registration instruction, the service node obtains the identity information of the transmission node; A new connection relationship is obtained based on the identity information of the transmission node, and the new connection relationship is sent to the accounting node for recording to update the local area network.

5. The method according to claim 1, characterized in that The method further comprises: When a transmission node is deleted, a deregistration instruction is sent to a service node in the local area network where the transmission node is located; After receiving the deregistration instruction, the service node obtains the identity information and monitoring data of the transmission node; The identity information and monitoring data of the transmission node are deleted, and the connection relationship between the remaining transmission nodes and service nodes in the local area network where the transmission node is located is sent to the accounting node for recording, so as to update the local area network.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: If there are multiple accounting nodes in the same local area network, the same computing task is issued to the multiple accounting nodes; The rate at which each accounting node processes the computing task is obtained, and the accounting node with the highest rate is selected as the target accounting node of this local area network.

7. A monitoring data transmission device, characterized in that: Applied to a consortium chain network; the consortium chain network includes multiple local area networks, each of which is composed of a transmission node, a bookkeeping node, and a service node; the device includes: A verification module, for obtaining monitoring data collected by multiple transmission nodes for each local area network, and performing identity verification on each transmission node using the service node; A transmission module, used to obtain the connection relationship between the transmission node that has passed the identity authentication and the service node, and transmit the monitoring data in the transmission node that has passed the identity authentication and the connection relationship to the accounting node; A recording module, used to use the accounting node to record the connection relationship and the monitoring data in the transmission node that has passed the identity authentication, and obtain the account book information for transmission in the alliance chain network; The recording module is specifically used to: obtain the connection relationship between the transmission node and the service node that has passed the identity authentication within a preset time, and perform statistics on the connection relationship to obtain a statistical result; The statistical results are analyzed based on a predefined algorithm to obtain a target connection relationship, and the target connection relationship and monitoring data in the transmission node in the target connection relationship are recorded.

8. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Edge computing data security and privacy protection method based on Fabric

    CN110233868A

  • Distributed account book technology-based sensor network safety management method and safety system

    CN110445827A