Tracing method applied to block chain-based digital command control information transmission and tracing system
Technical Field
The invention relates to a command control technology, in particular to a tracing method applied to a block chain-based digital command control information transmission and tracing system.
Background
With the rapid development of internet information technology, the digital command and control information interaction technology gradually enters the field of view of the technical field of command and control. The digital command control information interaction refers to a control command existing in an electronic data form, the command information needs to be subjected to an interaction process of being sent from a command terminal to a controlled terminal, being analyzed, verified, executed and fed back to the command terminal by the controlled terminal, and the interaction process widely exists in industries such as military deployment, industrial production, equipment management and the like.
The block chain technology is a decentralized technology, and only internal open nodes can carry out electronic data storage, encoding, checking and transmission. Under the view of command control technology, the block chain technology can be regarded as a digital command control information electronic data interactive network topology composed of distributed network nodes, any network node can transmit digital command control information in the network topology by the identity of a command end or a controlled end, and based on the open source of the block chain technology, except that command control information data of node codes in a continuously expanded block chain is encrypted, other data are highly transparent to the whole network, and any network node can effectively retrieve and trace the digital command control information through an open electronic data interface.
Currently, when command control information is transmitted from a command terminal to a controlled terminal in the industry, in order to ensure the authenticity of the command information, the most common method is to restrict the network addresses of the command terminal and the controlled terminal, and define the command control information field in advance in the form of a communication protocol and keep the command control information secret from the outside. However, since the network itself has a risk of data pollution and anonymous attack due to eavesdropping, there is a possibility of secret leakage in the management of the communication protocol, and the problems caused by handling the network are often accompanied by paralysis of the command and control information network, aliasing of the command and control information data, and great consumption of the cost of communication, coordination and repair between network nodes.
The introduction of the block chain technology can ensure high credibility of the transmission and the tracing of the digital command control information through the digital signature, and no published technical solution for the transmission and the tracing of the digital command control information based on the block chain exists at present. For the interaction of the digital command control information, a significant problem currently faced is that, because the command control information transmission and tracing are applied in the same network topology in a complex scene (such as single-node transmission, multi-node transmission, centralized tracing, distributed tracing, and the like), how to realize accurate, efficient, safe transmission and tracing of the digital command control information under the block chain network definition is a problem to be solved at present.
Disclosure of Invention
According to the technical problem, the invention provides a tracing method applied to a block chain-based digital command control information transmission and tracing system, which is characterized in that the block chain-based digital command control information transmission and tracing system is a decentralized distributed peer-to-peer network consisting of a command end network node and a controlled end network node, and a network node facility is deployed at any network node network interface; the system is based on the network node function and authority definition function, provides a command control information transmission scene definition function for a command end network node, provides a command control information tracing scene definition function for a controlled end network node, and accordingly provides a network node data encapsulation function, and under a command control information tracing scene, network nodes conforming to tracing scene constraints have a data providing function;
the specific tracing method comprises the following steps:
firstly, a command end network node generates command control information metadata according to a command end identifier and a network address of digital command control information, a controlled end identifier and a network address and command control instruction information data;
then, based on the information transceiving network node facility 203 corresponding to the command control information metadata, determining a transmission scene of the command control information metadata, and under the condition that the command control information metadata conforms to the requirement of a specific digital command control information transmission scene, carrying out coding encapsulation on the command control information metadata, transmission scene information and a network timestamp, and sending the command control information metadata, the transmission scene information and the network timestamp to different controlled end network nodes in a network;
the controlled end network node analyzes the digitized command control information data according to the transmission scene information and the network timestamp corresponding to the packaged command control information metadata, and executes feedback information data according to the controlled end identifier, the network address, the command end identifier, the network address and the command control instruction to generate command control information feedback data, the tracing scene information and the network timestamp are coded and packaged and are sent to the network, and a packaged command control information feedback data block chain is formed along the network timestamp information according to a block chain digital signature algorithm;
finally, the network nodes can trace back the interaction condition of the digital command control information according to the tracing scene information and the network timestamp corresponding to the encapsulated command control information feedback data;
the network node is a hardware device or a software program; the network nodes can define functions and authorities of the network nodes, so that the command control information metadata and the command control information feedback data are coded; the network node can analyze the digital command control interaction condition according to the defined digital command control information tracing scene.
The command end network node can determine whether command control information metadata meet the scene requirements through the defined digital command control information transmission scene, and encapsulates the scene information into the metadata, and the controlled end network node can trace back the scene through the defined digital command control information and encapsulate the scene information into command control information feedback data.
The invention has the beneficial effects that: the invention relates to a block chain-based digital command control information transmission and tracing method, which solves the problem of difficult digital command control information transmission and tracing in a complex application scene. The invention utilizes a decentralized trust mechanism of a block chain technology to encode and feed back the digital command control information, and determines the transmission and tracing modes of the digital command control information by judging the information command end and the controlled end defined by a network in the data transmission process of the digital command control information, thereby realizing the interaction of the digital command control information. The method and the facility for transmitting and tracing the digital command control information can realize the functions of accurate, efficient and safe interaction of the digital command control instruction, and solve the problem of difficult transmission and tracing of the digital command control information caused by complex application scenes in the same network topology.
Drawings
Fig. 1 is a schematic diagram of a network data flow where a block chain-based digital command control information interaction is located according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a block chain-based digital command control information interaction network according to an embodiment of the present invention;
fig. 3 is a flowchart of a block chain-based method for forwarding and tracing digital command control information transmission according to an embodiment of the present invention;
fig. 4 is a functional block diagram of a digital command control information interaction network node based on a blockchain according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a single-point transmission centralized trace back of a typical scene in which digital command control information is transmitted and traced back according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a multipoint transmission centralized trace back in a typical scene in which digital command control information is transmitted and traced back according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a single-point communication distributed tracing of an exemplary scene for communication and tracing of digital command control information according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a multipoint transmission distributed tracing in an exemplary scene in which digital command control information is transmitted and traced according to an embodiment of the present invention;
Detailed Description
The invention will be further explained with reference to the figures:
example 1
The invention provides a block chain-based digitalized command control information transmission tracing system and a tracing method, wherein the system is a decentralized distributed peer-to-peer network consisting of a command end network node 201 and a controlled end network node 202, and a network node facility 203 is deployed at any network node network interface; the system is based on the network node function and authority definition function, provides a command control information transmission scene definition function for a command end network node 201, provides a command control information tracing scene definition function for a controlled end network node 202, and accordingly provides a network node data encapsulation function. And under the scene of tracing back the command control information, providing data for the network nodes conforming to the constraint of the scene of tracing back. The specific tracing method comprises the following steps:
firstly, the command end network node 201 generates command control information metadata according to the command end identifier and network address, the controlled end identifier and network address and the command control instruction information data of the digital command control information; then, based on the information transceiving network node facility 203 corresponding to the command control information metadata, determining a transmission scene of the command control information metadata, and under the condition that the command control information metadata is determined to meet the requirement of a specific digital command control information transmission scene, carrying out coding encapsulation on the command control information metadata, transmission scene information and network time stamps, and sending the command control information metadata, the transmission scene information and the network time stamps to different controlled end network nodes 202 in the network;
the controlled end network node 202 analyzes the digitized command control information data according to the transmission scene information and the network timestamp corresponding to the encapsulated command control information metadata, and generates command control information feedback data by the controlled end identifier, the network address, the command end identifier, the network address and the command control instruction execution feedback information data, wherein the command control information feedback data, the tracing scene information and the network timestamp are encoded and encapsulated and are sent to the network, and an encapsulated command control information feedback data block chain is formed along the network timestamp information according to a block chain digital signature algorithm;
and finally, the network nodes can trace back the interaction condition of the digital command control information according to the trace-back scene information and the network timestamp corresponding to the encapsulated command control information feedback data.
The network node is a hardware device or a software program; the network nodes can define functions and authorities of the network nodes, so that the command control information metadata and the command control information feedback data are coded; the network node can analyze the digital command control interaction condition according to the defined digital command control information tracing scene.
Fig. 2 shows a block chain-based digital command control information interaction network topology provided by the present invention, where the system is a decentralized distributed peer-to-peer network composed of any plurality of command end network nodes 201 and any plurality of controlled end network nodes 202, and network nodes are disposed at any network node network interface.
Fig. 4 illustrates the function of the block chain-based network node for digital command and control information interaction according to the present invention. The facility provides a command control information transmission scene definition function for the command end network node 201 and a command control information tracing scene definition function for the controlled end network node 202 on the basis of the network node function and authority definition function, thereby providing a network node data encapsulation function. And under the scene of tracing back the command control information, providing data for the network nodes conforming to the constraint of the scene of tracing back.
The following describes in detail the block chain-based digitalized command control information transmission tracing method provided by the present invention with reference to fig. 1 and fig. 3.
Step 301, a command end network node 101 in the digital command control information interaction network initiates a command control command to a controlled end network node 105, the command data content includes a command sender identifier and a network address such as { id:101, addr:10.0.0.101}, includes a command receiver identifier and a network address such as { id:105, addr:10.0.0.105}, and includes command control command information such as { cmd: hold-on }, the command end network node 101 integrates the above information to generate command control information metadata 102 such as { fr: [ id [ { 101, addr:10.0.0.101} ], [ { id:105, addr:10.0.0.105} ] to cmd, hold-on }.
In step 302, the digital command control information interaction network node facility 103 of the command end network node 101 determines whether the command control information metadata 102 conforms to the node function authority and command control information transmission scenario constraint according to the network node function and authority (fig. 4 function 401) and the command control information transmission scenario (fig. 4 function 402) defined therein. If constraints are met, the network node infrastructure 103 encapsulates the command control information delivery context information, e.g., { s-scene: single-cmd } and network timestamps, e.g., { timestamp:201612120003258638} with the command control information metadata 102 (FIG. 4 function 404), and sends the encapsulated command control information metadata 104 to the entire interactive network.
Step 303, the network node 105 of the controlled end can receive the encapsulated command control information metadata 104 sent to the whole network by the network node facility 103 of the network node 101 of the command end through the digital command control information interaction network, and complete the digital command control information transmission service.
Step 304, the network node 105 at the controlled end analyzes the encapsulated command control information metadata 104 to obtain command control instruction information { cmd: hold-on } and execute the instruction, and after execution, an execution result such as { res: success } is obtained, and the command control instruction information, the feedback sender identifier, the network address such as { id:105, address: 10.0.0.105}, the feedback receiver identifier, the network address such as { id:101, address: 10.0.0.101} are integrated by the network node 105 at the controlled end to generate command control information feedback data 106 such as { id: [ { id:105, address: 10.0.0.105} ], to [ { id:101, address: 10.0.0.101} ], and res: success }.
Step 305, the network node facility 107 of interaction of digitized command and control information of the network node 105 at the controlled end judges the defined command and control information tracing scene (function 403 in fig. 4) such as { r-scene: multi-recv } according to the network node function and authority (function 401 in fig. 4) defined inside the network node, and transmits the scene with the command and control information in the encapsulated command and control information metadata 104, encapsulates the scene with the network timestamp such as { timestamp:2016121200033089745} and the command and control information feedback data 106 (function 404 in fig. 4), and transmits the encapsulated command and control information feedback data 109 to the whole network. The blockchain network may form a data blockchain with the earlier data 108 from the encapsulated command control information feedback data 109 according to its network timestamp through a digital signature algorithm, and reserve a digital signature interface for future data 110.
In step 306, the digitized commanding and control information interacting network node 111 of any network node 112 can initiate a commanding and control information tracing scenario decision from data in a data block chain formed by the encapsulated commanding and control information feedback data 109 and its earlier data 108 and future data 110, and if the data block chain conforms to the commanding and control information tracing scenario constraint, the network node 111 provides data (fig. 4 function 405) to the network node 112 to assist the network node in tracing the digitized commanding and control information interacting process.
Fig. 5-8 illustrate typical scenarios of block chain-based digital command control information communication traceability provided by the present invention, including a single-point communication centralized traceability scenario 501, a multi-point communication centralized traceability scenario 502, a single-point communication distributed traceability scenario 503, and a multi-point communication distributed traceability scenario 504. In particular, the solution provided by the invention is not limited to the exemplary scenario of fig. 5.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications can be made without departing from the principle of the present invention, and these modifications should also be construed as the protection scope of the present invention.