CN112565368A - Block chain-based offshore equipment ad hoc network system, method and medium - Google Patents
Block chain-based offshore equipment ad hoc network system, method and medium Download PDFInfo
- Publication number
- CN112565368A CN112565368A CN202011356463.3A CN202011356463A CN112565368A CN 112565368 A CN112565368 A CN 112565368A CN 202011356463 A CN202011356463 A CN 202011356463A CN 112565368 A CN112565368 A CN 112565368A
- Authority
- CN
- China
- Prior art keywords
- block chain
- node
- sub
- network
- blockchain
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0807—Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a block chain-based offshore equipment ad hoc network system, a method and a medium. Wherein the system includes: a blockchain network creation unit configured to: creating a block chain network, wherein nodes in the block chain network represent offshore equipment, and a request is initiated through the nodes to create a sub-block chain network; a cross-chain interaction unit configured to: triggering communication interaction between different block chains and monitoring the communication interaction, wherein the communication interaction comprises interaction between a monitor area block chain and a directory area block chain, interaction between the monitor area block chain and a sub-area block chain and interaction between the sub-area block chain and another sub-area block chain; and a dynamic networking adjustment unit configured to: dynamically adjusting the sub-block chains to join the block chain network by utilizing a consensus algorithm, selecting a substitute node of the silent node, and determining the admission of the sub-block chains by the consensus algorithm based on an intelligent contract; and eliminating the silent node from the blockchain network by using the distributed identity.
Description
Technical Field
The invention relates to the technical field of networking, in particular to a block chain-based offshore equipment ad hoc network system, a method and a medium.
Background
In complex marine environments, communication and interoperability between devices is important. In the prior system construction, a centralized information system construction scheme is often adopted, a communication hub service is taken as a center, communication individuals are connected to the communication hub to carry out information interaction and coordination, and the information interaction between the communication individuals needs to be forwarded by the communication hub. Such a centralized system can realize complex environment communication, but faces a great potential safety hazard, and once the centralized communication hub is attacked maliciously, the whole system faces a risk of paralysis. And by adopting the block chain technology, trust reconstruction and trust interaction under unequal trust modes in a complex environment can be solved, and the safety problem of a centralized communication hub is solved.
Networking technology is network building technology. There are many types of computer networks, and there are different classification bases according to different networking technologies. Networks can be divided into: a circuit switched network, a packet switched network. According to the transmission technology, the method can be divided into: broadcast networks, non-broadcast multiple access networks, point-to-point networks. They can be classified into bus type, star type, ring type, tree type, full mesh and partial mesh networks according to topology. Wired and wireless networks may be further separated according to transmission media. The wired network refers to a network formed by connecting coaxial cables, twisted pairs and optical fibers. A wireless network refers to a type of network that uses an electromagnetic wave as a carrier to realize data transmission. Maritime equipment is mainly a wireless broadcast network and is under security considerations, typically a local area network.
As shown in fig. 1, a conventional offshore equipment networking system mostly adopts a tree structure, where an upper processing unit is a root node and a lower processing unit is a leaf node. A typical networking system is shown in the above figure. On one hand, the root node is responsible for collecting and gathering data and is connected with each leaf node; on the other hand, the system is connected with a land terminal and feeds back the land terminal according to the data acquisition and analysis result to perform decision support of related actions.
The offshore equipment networking system of the tree model has obvious advantages, is centralized in power, clear in instruction, smooth in information and clear in authority, can clearly define the structure of the whole system, and is very easy to increase and reduce certain organization. However, the system has obvious defects, and in a complex offshore environment with weak connection and weak coordination, once a node fails or a coordination link is blocked, a failed node serving as a subsystem corresponding to a root node loses a superior command unit, so that the system cannot work normally. The distributed consensus-based block chain technology can well solve the problem that the whole system works normally after a single node fails.
Disclosure of Invention
The invention aims to provide a block chain-based offshore equipment ad hoc network scheme so as to solve the technical problems in the prior art. Aiming at the characteristics that the offshore equipment ad hoc network is limited in resources and is easy to interfere and attack, the scheme explores a comprehensive design technology which integrates multiple elements such as communication, safety, confidentiality and the like. Constructing a distributed trust and security foundation by researching a block chain network architecture; and a data security technology based on a block chain is researched, and data security and credible interaction between offshore equipment is realized.
The invention provides a block chain-based offshore equipment ad hoc network system in a first aspect, which comprises: a blockchain network creation unit configured to: creating a blockchain network, wherein nodes in the blockchain network represent the offshore equipment, and a request is initiated by the nodes to create the blockchain network; a cross-chain interaction unit configured to: triggering communication interaction between different block chains and monitoring the communication interaction, wherein the communication interaction comprises interaction between a supervision block chain and a directory block chain, interaction between the supervision block chain and a sub-block chain and interaction between the sub-block chain and another sub-block chain; and a dynamic networking adjustment unit configured to: dynamically adjusting the sub-block chains to join the block chain network by utilizing a consensus algorithm, and selecting a substitute node of a silent node, wherein the consensus algorithm determines the admission of the sub-block chains based on an intelligent contract; and eliminating the silent node from the blockchain network by using the distributed identity.
According to the system provided by the first aspect of the invention, the blockchain network creation unit is further configured to determine admission of the node and determine termination of the sub-blockchain.
According to the system provided by the first aspect of the present invention, the dynamic networking adjustment unit is further configured to select, according to task priority, a candidate alternate node from the candidate alternate nodes based on a time for the candidate alternate node to reach the mute node.
According to the system provided by the first aspect of the present invention, the dynamic networking adjustment unit is further configured to, in a case where the silent node appears in the blockchain network, initiate, by a non-silent node, an assertion for the silent node, and when the number of assertion reaches a threshold, remove the silent node from the blockchain network.
The invention provides a block chain-based offshore equipment ad hoc network method, which comprises the following steps: step S1, creating a block chain network, wherein nodes in the block chain network represent the offshore equipment, and a request is initiated through the nodes to create the sub-block chain network; step S2, triggering communication interaction among different block chains, and monitoring the communication interaction, wherein the communication interaction comprises interaction between a monitor area block chain and a directory area block chain, interaction between the monitor area block chain and a sub-area block chain, and interaction between the sub-area block chain and another sub-area block chain; and step S3, removing the silent node from the block chain network by using the distributed identity, dynamically adjusting the sub-block chain to join the block chain network by using a consensus algorithm, and selecting a substitute node of the silent node, wherein the consensus algorithm determines the admission of the sub-block chain based on an intelligent contract.
According to the method provided by the second aspect of the present invention, the step S1 further includes determining the admission of the node and determining the termination of the sub-blockchain.
According to the method provided by the second aspect of the present invention, in the step S3, the intelligent contract selects the candidate alternate node from the candidate alternate nodes based on the time of arrival of the candidate alternate node at the silent node according to the task priority.
According to the method provided by the second aspect of the present invention, in step S3, in the case that the silent node appears in the blockchain network, an assertion of the silent node is initiated by a non-silent node, and when the number of assertion reaches a threshold value, the silent node is removed from the blockchain network.
A third aspect of the invention provides a non-transitory computer readable medium having stored thereon instructions which, when executed by a processor, perform the steps of the blockchain based offshore rig ad hoc network method according to the second aspect of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description in the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of a tree structure of a conventional offshore equipment networking system;
FIG. 2 is a block chain architecture according to an embodiment of the present invention;
FIG. 3 is a block chain based marine equipment ad hoc network system in accordance with an embodiment of the present invention; and
fig. 4 is a flowchart of a block chain based offshore equipment ad hoc network method according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a block chain-based offshore equipment ad hoc network system in a first aspect. FIG. 2 is a block chain architecture according to an embodiment of the present invention; as shown in fig. 2, the blockchain system may be divided into infrastructure, infrastructure components, ledgers, consensus, smart contracts, interfaces, applications, operational practices, and system management.
The infrastructure layer provides an operating environment and hardware facilities (physical machines, cloud, and the like) required by the normal operation of the blockchain system, and specifically includes network resources (network cards, switches, routers, and the like), storage resources (hard disks, cloud disks, and the like), and computing resources (CPU, GPU, ASIC, and other chips). The infrastructure layer provides physical resources and driving for the upper layer, and is the basic support of the block chain system.
The basic component layer can realize the recording, verification and propagation of information in the block chain system network. In the basic component layer, a blockchain is a distributed system established on the basis of a propagation mechanism, a verification mechanism and a storage mechanism, the whole network has no centralized hardware or management mechanism, any equipment node has an opportunity to participate in the recording and verification of the general ledger, the calculation result is broadcasted and sent to other equipment nodes, and the operation of the whole system cannot be influenced by the damage or the exit of any equipment node. Specifically, the system mainly comprises five types of modules of network discovery, data transceiving, a password library, data storage and message notification. The network discovery blockchain system is formed by connecting a plurality of equipment nodes through a network, and a plurality of links in the ciphered library blockchain use a cryptographic algorithm. The cryptographic library provides basic cryptographic algorithm support for upper-layer components, and comprises various common encoding algorithms, hash algorithms, signature algorithms, privacy protection algorithms and the like. Meanwhile, the cipher library also relates to functions such as maintenance and storage of keys, data storage uses different data storage modes according to data types and system structural design, and data in the blockchain system. The storage schema includes a relational database (e.g., MySQL) and a non-relational database (e.g., LevelDB). Typically, the data to be saved includes public data (e.g., transaction data, state data, etc.) and local private data, etc. The message notification module provides message notification service for different components and different equipment nodes in the block chain. After a transaction is successful, the customer typically needs to track the records during the execution of the transaction and obtain the results of the execution of the transaction. The message notification module can complete the generation, distribution, storage and other functions of the message to meet the needs of the blockchain system.
The account book layer is responsible for storing information of the block chain system, and comprises the steps of collecting transaction data, generating data blocks, carrying out validity check on local data, and adding blocks passing the check to the chain. The account book layer embeds the signature of the previous block into the next block to form a block chain type data structure, so that the integrity and the authenticity of the data are guaranteed, and the block chain type data structure is the source of the anti-tampering and traceable characteristics of the block chain system.
The consensus layer is responsible for coordinating and ensuring the consistency of data records of all equipment nodes in the whole network. Data in the block chain system is independently stored by all equipment nodes, and under the coordination of a consensus mechanism, the consensus layer synchronizes accounts of all the equipment nodes, so that functions of equipment node election, data consistency verification, data synchronization control and the like are realized. Data synchronization and consistency coordination enable the blockchain system to have the characteristics of information transparency and data sharing.
The intelligent contract layer is responsible for realizing, compiling and deploying the service logic of the block chain system in a code form, finishing condition triggering and automatic execution of a set rule and reducing manual intervention to the maximum extent. Most of the operation objects of the intelligent contract are digital assets, and the characteristics of difficulty in modification after data chaining, strong triggering conditions and the like determine that the use of the intelligent contract has high value and high risk, and how to avoid the risk and exert the value is the difficulty of large-scale application of the current intelligent contract.
The system management layer is responsible for managing other parts in the blockchain architecture and mainly comprises two functions of authority management and equipment node management. Rights management is a critical part of blockchain technology, especially for license chains that have more requirements for data access. Rights management can be achieved in several ways: 1) submitting the authority list to an account book layer, and realizing decentralized authority control; 2) implementing access control using the access control list; 3) using authority controls, e.g. scores/sub-regions.
The interface layer is mainly used for completing the encapsulation of the functional module and providing a concise calling mode for the application layer. The application layer is communicated with other equipment nodes by calling the RPC interface, and accesses, writes and the like the local account book data by calling the SDK toolkit. Meanwhile, RPC and SDK should comply with the following rules: the system has complete functions, can complete transaction and maintain a distributed account book, and has a perfect intervention strategy and authority management mechanism. Secondly, the portability is good, and the method can be used for various applications in various environments and is not limited to certain absolute software or hardware platforms. And thirdly, the system is expandable and compatible, and should be as forward and backward compatible as possible, and the expandability is considered in the design. And fourthly, the method is easy to use, and a structural design and a good naming method are used for facilitating the use of developers. Common implementation techniques include invoking control and serialization objects, and the like.
The application layer is used as a part finally presented to a user, and is mainly used for calling an interface of the intelligent contract layer and adapting various application scenes of the block chain to provide various services and applications for the user.
The operation and maintenance layer is responsible for daily operation and maintenance work of the block chain system and comprises a log library, a monitoring library, a management library, an expansion library and the like.
FIG. 3 is a block chain based marine equipment ad hoc network system in accordance with an embodiment of the present invention; as shown in fig. 3, the system includes: a blockchain network creating unit 301 configured to: creating a blockchain network, wherein nodes in the blockchain network represent the offshore equipment, and a request is initiated by the nodes to create the blockchain network; a cross-chain interaction unit 302 configured to: triggering communication interaction between different block chains and monitoring the communication interaction, wherein the communication interaction comprises interaction between a supervision block chain and a directory block chain, interaction between the supervision block chain and a sub-block chain and interaction between the sub-block chain and another sub-block chain; and a dynamic networking adjustment unit 303 configured to: dynamically adjusting the sub-block chains to join the block chain network by utilizing a consensus algorithm, and selecting a substitute node of a silent node, wherein the consensus algorithm determines the admission of the sub-block chains based on an intelligent contract; and eliminating the silent node from the blockchain network by using the distributed identity.
The blockchain network creation unit 301 is further configured to determine admission of the node and to determine termination of the sub-blockchain.
Each equipment node represents offshore equipment, has unique distributed identity, and is connected with each other through a block chain to form a chain-shaped block chain network. The equipment nodes agree with each other through a consensus algorithm on the acquired data and the analysis result, and dynamic adjustment of a network structure is completed through a consensus mechanism. All offshore equipment is used as data nodes, a block chain network is formed based on a P2P protocol, different equipment has different attributes and functions, classification is performed based on different types of the equipment, equipment nodes with the same function type build a sub-block chain, therefore, equipment nodes with different functions build different sub-block chains, a directory block chain is needed when the sub-block chains are connected, the directory block chain stores all sub-block chain information, the attribute and the function of each sub-block chain are known, the distributed identity of each equipment node is stored, and the directory chain is built by equipment nodes with a relay function. In order to realize supervision on the sub-block chains and the directory block chains, a supervision block chain is needed, when equipment nodes A in the sub-block chains have faults or are disconnected, other equipment nodes which do not work judge whether the equipment nodes A can be rapidly added into the current sub-block chain through a networking scheme, and the task of the equipment nodes A is continuously completed, wherein the supervision block chain is built by a supervision party equipment node. Therefore, in the invention, in order to meet the requirement of a complex marine environment, a marine equipment node network model is designed, and dynamic networking can still be realized in an emergency. The offshore equipment node network is composed of a directory block chain, a monitoring area block chain and a plurality of sub-block chains. The directory block chain is responsible for communication and positioning of the whole block chain network, and the tasks are completed based on the distributed identity of the equipment nodes; the monitoring area block chain is responsible for monitoring and managing a block chain network and mainly comprises creation of sub-block chains, addition of the sub-block chains, authorization of directory block chains, cross-block chain communication among the block chains and the like; the sub-block chain is responsible for different offshore operation requirements and can be an attack and defense block chain and the like.
Creation of blockchain networks
The method comprises the steps that a plurality of equipment nodes respectively start network application on the local, when more than two thirds of all the equipment nodes start the network, the equipment node network is represented to run formally, the starting of the node network comprises the starting of a directory block chain and the starting of a supervision block chain, corresponding equipment nodes are automatically added into the directory block chain and the supervision block chain, and the respective public keys and identification information of all the equipment nodes are written into the directory block chain.
After the creation of the blockchain network is completed, the running chain comprises the following steps: a supervisor block chain responsible for managing the network; a directory block chain responsible for managing equipment node identities. All nodes maintain a set of public account book information together, and submit blocks, vote verification blocks, write block information into an account book and the like in sequence according to an improved Byzantine fault-tolerant consensus algorithm.
Creation of a chain of sub-blocks
Any equipment node can initiate a request for creating the sub-block chain, meanwhile, the equipment node can register in the directory block chain, and then the equipment node starts to run the sub-block chain based on different attributes, functions and tasks and is managed by the supervision block chain. The sub-block chains of the ad hoc network application system based on the block chain technology correspond to marine operation requirements in different scenes, equipment data can be classified and layered according to the marine operation requirements, different evidence storage sub-block chains are created, different data are stored, and the data splitting effect is achieved.
Joining of equipment nodes
Any equipment node can apply for adding into the existing sub-block chain, but the equipment node is required to provide signature information corresponding to the sub-block chain, the directory block chain of the equipment block chain network is used for checking, and the sub-block chain is started to run when the checking is passed.
Termination of a chain of subblocks
The equipment node running the sub-block chain may initiate a sub-block chain termination vote that terminates the running sub-block chain at the specified block height, the vote stopping the running of the sub-block chain, the sub-block chain not generating new equipment data but still providing query services for the equipment data.
For the cross-chain interaction unit 302, data communication can be performed between the sub-block chains, the equipment node applies for mutual monitoring between the sub-block chains in the monitoring block chain, and once the sub-block chain initiates a cross-chain request, monitoring is triggered by the main block chain to perform cross-chain communication. In the demand of the ad hoc network, the sub-block chains can be evidence storing chains, equipment data which are isolated from each other can be established according to different maritime operation demands, and meanwhile, communication among the equipment data can be guaranteed through an equipment block chain network. The node cross-chain interaction in the equipment block chain network comprises interaction of a monitor area block chain and a directory block chain, interaction of the monitor area block chain and a sub-area block chain and interaction of the sub-area block chain and the sub-area block chain.
Interaction of supervisor Block chains and directory Block chains
The node joining of the supervisor block chain requires the communication between the supervisor block chain and the directory block chain. The equipment node applies for adding into the monitoring area block chain, the monitoring area block chain needs the directory block chain to check the signature information provided by the equipment node, the directory block chain informs the monitoring area block chain of the check result, and the monitoring area block chain can determine whether the equipment node has the right to add into the network. Meanwhile, the equipment node is added into the monitoring area block chain, and the monitoring area block chain needs to write the public key information of the equipment node into an equipment node member list of the directory block chain through the directory block chain.
The creation of the sub-blockchain and the joining of the equipment node require the communication between the supervisor blockchain and the directory blockchain. The method comprises the steps that an equipment node initiates a creation request of a sub-block chain in a monitor area block chain, the monitor area block chain needs to communicate with a directory block chain, and a corresponding public key list is created in the directory block chain; the equipment node applies for adding an existing sub-block chain request in the monitor area block chain, the monitor area block chain needs to communicate with the directory block chain, signature information provided by the equipment node is verified, the equipment node is allowed to be added into the existing sub-block chain only after the verification is passed, and the directory block chain is informed to write the public key of the equipment node into the corresponding public key list.
Interaction of supervisor Block chains and sub-Block chains
In the equipment block chain network, equipment nodes apply for creating sub-block chains on the supervision block chain, and after the creation is successful, the sub-block chains inform the supervision block chain of the state hash of the sub-block chains after each block is generated, so that chain anchoring is performed. And the interaction among the sub-block chains applies for relay monitoring on the monitoring area block chain to trigger the communication between the monitoring area block chain and the sub-block chain.
Sub-blockchain and interaction of sub-blockchains
The interaction between the sub-blockchains is a complicated process, and monitoring management needs to be established and the relay processing is performed by the monitoring area blockchain. Assuming that sub-blockchain a needs to trigger the transaction processing of sub-blockchain B, the general flow is as follows:
and the sub-block chain A applies for monitoring in the monitoring block chain and deploys monitored dynamic codes. When the sub-block chain is transacted, the execution of the dynamic code is triggered in the supervision block chain, and the dynamic code can be screened, and chain crossing is triggered if the transaction meeting specified conditions; the dynamic code may perform data conversion, such as converting transactions of the sub-blockchain a into transaction formats of the sub-blockchain B. And the sub-block chain B agrees to monitor in the monitoring block chain, and deploys the dynamic code executed in a cross-chain mode. When the cross-chain transaction is triggered to be executed, the dynamic code can be made to operate and then trigger the transaction execution on the sub-block chain B. And after the transaction on the sub-block chain B is executed, informing the supervision block chain, and informing the sub-block chain A of completing the cross-chain interaction process by the supervision block chain. The chain-crossing interaction can ensure information communication between chains, and can also ensure that single-chain information is independent and isolated, and avoid information islands of the chains.
For the dynamic networking adjustment unit 303, the intelligent contract is further configured to select a candidate alternate node from the candidate alternate nodes based on a time for the candidate alternate node to reach the mute node according to the task priority. And under the condition that the silent node appears in the blockchain network, a non-silent node initiates an actual declaration of the silent node, and when the number of the actual declaration reaches a threshold value, the silent node is removed from the blockchain network.
The basis for realizing the dynamic networking of the equipment nodes is a networking model of offshore equipment, and the problem of dynamic networking of the equipment nodes in complex offshore operation is solved by a distributed identity identification technology and a consensus algorithm. In the equipment blockchain network, no matter whether equipment nodes carry out offshore operation or not, identifiers of the equipment nodes are different, only the equipment nodes carrying out normal operation are in the equipment blockchain network, when a certain equipment node is disconnected or fails, a replacement task is broadcasted in the whole directory blockchain network, and equipment which does not carry out offshore operation judges whether the equipment nodes are added into the network or not. For the same equipment node, two or more functional task requirements can be met, and when two or more task requirements appear, the sub-block chain to be added is determined according to the priority of the operation task. The specific dynamic networking process is as follows:
the equipment block chain network continuously sends offshore operation conditions to the equipment nodes, and stores offshore data in a distributed manner;
the equipment nodes receiving the broadcasted marine data store the data locally, perform local calculation, parameterization and standardized output, and provide a trusted data source for other equipment nodes.
When a plurality of equipment nodes have faults (are silent), and the adjacent equipment nodes do not respond after a plurality of requests, the equipment nodes send requests to the monitoring area block chain node to continue to carry out offshore operation tasks. Assuming that offshore tasks corresponding to a plurality of faulty equipment nodes are A1, A2 and A3, the priorities of the three tasks are A1> A2> A3, and other offshore operation tasks being executed are B1, B2 and B3, the priorities of the six tasks are B2< B2< B3, the priorities of the six tasks are totally ordered to be A1> B3> A2> A3> B2> B2, and the supervision block chain node broadcasts the demand information all over the network.
Searching all equipment nodes by the intelligent contract, and determining the equipment nodes which are executing the tasks and the nodes which are not executing the tasks; comparing the priority of the required task with the priority of the current task for the equipment node executing the task, and if the priority of the new task is lower, not interfering the current equipment node to allow the equipment node to continue executing the current task; if the new task has a higher priority or the task is not executed, the next step is continued.
The intelligent contract judges whether other equipment nodes meet the task requirements or not based on the attributes and functions of the equipment nodes, if not, other responses are not carried out, and if the task requirements can be met, the next step is continued.
And the intelligent contract judges whether all equipment nodes meeting the task requirements can reach the area of failed equipment node connection within the specified time T, and the time required for reaching the task execution area is determined by the target equipment node and the current position. Assuming that the coordinates of the current equipment node are (x1, y1), the area for executing the required task is the primitive area with the radius of d, and the coordinates of the center of the circle are (x0, y0), the time for the equipment node to reach the target area is:
where v represents the marine navigation speed of the equipment node. If T is less than or equal to T, a new required task can be executed, a new task network can be entered, and the next operation is continued; otherwise no response will be made to the equipment node.
The intelligent contract collects all equipment node distributed identities which can enter a network, sequences the navigation duration of the equipment nodes and sequences the offshore operation capacity. Then, the urgency and the importance of the target demand task are judged, and if the target demand task is the urgency task, the equipment node with the shortest navigation time length is selected as an access node; and if the important task is, selecting the equipment node with the strongest operation capability as the admission. And the intelligent contract initiates admission notification to the admission equipment node and continues the next operation.
And the monitoring area block chain node and the directory chain block chain node determine the current access node, broadcast the current access node in the whole network after consensus, prepare the node to enter a target task network to become a new member of the network, and continue to execute the task.
Distributed Identities (DID) are a Decentralized, verifiable digital identifier. The method is independent of any centralized authority, and can autonomously complete registration, analysis, updating or revocation without centralized registration and authorization. The DID is specifically analyzed as a DID description Document (DID Document), which mainly contains two contents, one is encryption material (such as public key, anonymous identity recognition protocol, etc.), and the other is attributes (including information for identity authentication and service endpoint). The authentication information and the encryption material can be combined to provide a set of mechanism as a DID principal for authentication, and the service endpoint supports trusted interaction with the DID principal.
Verifiable declaration (Verifiable credentialing) technology provides a specification to describe certain attributes that an entity has. It can represent the same information that a credential in the physical world can express. The DID holder, through a verifiable claim, can prove to other entities that certain attributes of itself are authentic. Meanwhile, by combining multiple signatures, zero-knowledge proof and other cryptographic technologies, the statement can be safer and more credible, and the privacy of the user can be further guaranteed against being invaded.
And (3) completing dynamic adjustment of the identity of the main body by adopting a distributed identity identification technology, namely adding and removing centralized complex environment equipment nodes in real time. When the existing equipment nodes in the network are found to be invalid, a single equipment node can initiate declaration of identity invalidation of the specific equipment node, and if sufficient signature endorsements of other equipment nodes are collected by the invalidation declaration, the equipment node is removed from the network. Meanwhile, the credible cooperation of the information and the protection of information privacy and safety can be realized.
In an equipment networking system in a complex offshore environment, a centralized information system construction scheme is often adopted, a communication hub service is used as a center, communication individuals are connected to the communication hub for information interaction, and the information interaction between the communication individuals needs to be forwarded by the communication hub. Such a centralized system can realize communication in a complex environment, but faces a great safety hazard, and once the centralized communication hub fails, the whole system faces a paralysis risk. And by adopting the block chain technology, trust reconstruction and trust interaction under unequal trust modes in a complex environment can be solved, and the safety problem of a centralized communication hub is solved.
The offshore equipment ad hoc network system based on the block chain adopts a distributed network, each equipment node is equal, the equipment node is used as a data information supply end and a data information user, and the system fault cannot be caused by the fault of a single equipment node. In the distributed network, how to ensure that the normal operation of the system can be safely and consistently ensured among the nodes of the whole network equipment is important to ensure the consistency of data. A consensus mechanism of an offshore equipment ad hoc network system based on a block chain is a consensus algorithm for solving data consistency in a multi-equipment node environment.
The improved practical Byzantine fault-tolerant consensus algorithm provided by the invention adds the right certificate on the basis of the practical Byzantine fault-tolerant algorithm so as to improve the system performance. The system can still work normally (fault tolerance) under the condition that one third of equipment nodes are not failed; meanwhile, when less than one third of malicious equipment nodes exist in the system, all non-malicious equipment nodes achieve consensus on real data, and diffusion and interference of false data (Byzantine fault tolerance) are avoided. The target consistency of all marine equipment can be realized based on the improved version of the Byzantine algorithm.
By means of the distributed identity identification technology in the block chain system, dynamic configuration of a marine equipment network can be achieved, and requirements for connection of a transient terminal in a marine environment are met. When the existing equipment nodes in the network are found to be invalid (such as terminal failure and terminal long-term silence), any equipment node can initiate declaration of identity invalidation of the specific terminal equipment node, and the declaration is written on the chain for auditing other offshore equipment in the whole block chain network. If the other equipment nodes confirm that the declaration is credible, the private key of the other equipment nodes can be used for storing hardware, and the signature supports the declaration; if the claim is deemed not authentic, the claim to revoke the claim may be written on the chain. If enough signature endorsements are collected by failure declaration (for example, 2/3 of the number of nodes of the whole network equipment, a threshold needs to be agreed in advance), operation can be automatically executed through an intelligent contract, a public key corresponding to a failed device is subjected to failure processing on a directory block chain, and the offshore equipment is removed from the network. Meanwhile, other network dynamic adjustment operations such as equipment node addition, equipment node permission change, equipment node connection relation change, system configuration adjustment and the like can also be realized by the distributed identity identification tool.
A second aspect of the present invention provides a block chain-based offshore equipment ad hoc networking method, and fig. 4 is a flowchart of a block chain-based offshore equipment ad hoc networking method according to an embodiment of the present invention, as shown in fig. 4, where the method includes: step S1, creating a block chain network, wherein nodes in the block chain network represent the offshore equipment, and a request is initiated through the nodes to create the sub-block chain network; step S2, triggering communication interaction among different block chains, and monitoring the communication interaction, wherein the communication interaction comprises interaction between a monitor area block chain and a directory area block chain, interaction between the monitor area block chain and a sub-area block chain, and interaction between the sub-area block chain and another sub-area block chain; and step S3, removing the silent node from the block chain network by using the distributed identity, dynamically adjusting the sub-block chain to join the block chain network by using a consensus algorithm, and selecting a substitute node of the silent node, wherein the consensus algorithm determines the admission of the sub-block chain based on an intelligent contract.
According to the method provided by the second aspect of the present invention, the step S1 further includes determining the admission of the node and determining the termination of the sub-blockchain.
According to the method provided by the second aspect of the present invention, in the step S3, the intelligent contract selects the candidate alternate node from the candidate alternate nodes based on the time of arrival of the candidate alternate node at the silent node according to the task priority.
According to the method provided by the second aspect of the present invention, in step S3, in the case that the silent node appears in the blockchain network, an assertion of the silent node is initiated by a non-silent node, and when the number of assertion reaches a threshold value, the silent node is removed from the blockchain network.
A third aspect of the invention provides a non-transitory computer readable medium having stored thereon instructions which, when executed by a processor, perform the steps of the blockchain based offshore rig ad hoc network method according to the second aspect of the invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (9)
1. An offshore equipment ad hoc network system based on a blockchain, the system comprising:
a blockchain network creation unit configured to: creating a blockchain network, wherein nodes in the blockchain network represent the offshore equipment, and a request is initiated by the nodes to create the blockchain network;
a cross-chain interaction unit configured to: triggering communication interaction between different block chains and monitoring the communication interaction, wherein the communication interaction comprises interaction between a supervision block chain and a directory block chain, interaction between the supervision block chain and a sub-block chain and interaction between the sub-block chain and another sub-block chain; and
a dynamic networking adjustment unit configured to:
dynamically adjusting the sub-block chains to join the block chain network by utilizing a consensus algorithm, and selecting a substitute node of a silent node, wherein the consensus algorithm determines the admission of the sub-block chains based on an intelligent contract; and
and eliminating the silent node from the block chain network by using distributed identity identification.
2. The blockchain-based offshore rig ad hoc network system according to claim 1, wherein the blockchain network creating unit is further configured to determine admission of the node and determine termination of the sub-blockchain.
3. The blockchain-based offshore rig ad hoc network system according to claim 1, wherein the dynamic networking adjustment unit is further configured to select the alternate node from the candidate alternate nodes based on a time of arrival of the alternate node at the quiet node according to a mission priority.
4. The blockchain-based offshore rig ad hoc network system according to claim 1, wherein the dynamic networking adjustment unit is further configured to initiate an assertion of the silent node by a non-silent node in case the silent node is present in the blockchain network, and the silent node is removed from the blockchain network when the number of assertion assertions reaches a threshold value.
5. A block chain based offshore equipment ad hoc networking method, the method comprising:
step S1, creating a block chain network, wherein nodes in the block chain network represent the offshore equipment, and a request is initiated through the nodes to create the sub-block chain network;
step S2, triggering communication interaction among different block chains, and monitoring the communication interaction, wherein the communication interaction comprises interaction between a monitor area block chain and a directory area block chain, interaction between the monitor area block chain and a sub-area block chain, and interaction between the sub-area block chain and another sub-area block chain; and
and step S3, removing the silent node from the block chain network by using the distributed identity, dynamically adjusting the sub-block chain to be added into the block chain network by using a consensus algorithm, and selecting a substitute node of the silent node, wherein the consensus algorithm determines the admission of the sub-block chain based on an intelligent contract.
6. The block chain based offshore rig ad hoc network method of claim 5, wherein said step S1 further comprises determining admission of said node and determining termination of said sub-block chain.
7. The blockchain-based offshore rig ad hoc network method according to claim 5, wherein in the step S3, the intelligent contract selects a candidate alternate node from the candidate alternate nodes based on a time of arrival of the candidate alternate node at the mute node according to a mission priority.
8. The blockchain-based offshore rig ad hoc network method according to claim 5, wherein in the step S3, in case that the silent node appears in the blockchain network, an actual declaration of the silent node is initiated by a non-silent node, and when the number of actual declarations reaches a threshold value, the silent node is removed from the blockchain network.
9. A non-transitory computer readable medium having stored thereon instructions which, when executed by a processor, perform the steps of the blockchain based offshore rig ad hoc network method according to claims 5-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011356463.3A CN112565368B (en) | 2020-11-26 | 2020-11-26 | Block chain based offshore equipment ad hoc network system, method and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011356463.3A CN112565368B (en) | 2020-11-26 | 2020-11-26 | Block chain based offshore equipment ad hoc network system, method and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112565368A true CN112565368A (en) | 2021-03-26 |
CN112565368B CN112565368B (en) | 2023-05-19 |
Family
ID=75046318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011356463.3A Active CN112565368B (en) | 2020-11-26 | 2020-11-26 | Block chain based offshore equipment ad hoc network system, method and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112565368B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113627809A (en) * | 2021-08-17 | 2021-11-09 | 山东大学 | Medical waste supervision system and method based on block chain |
CN114254395A (en) * | 2022-03-01 | 2022-03-29 | 南开大学 | Content distribution-oriented consensus forming method for autonomous network |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107734502A (en) * | 2017-09-07 | 2018-02-23 | 京信通信系统(中国)有限公司 | Micro-base station communication management method, system and equipment based on block chain |
WO2019021107A1 (en) * | 2017-07-24 | 2019-01-31 | nChain Holdings Limited | Computer-implemented system and method for managing a large distributed memory pool in a blockchain network |
CN110115001A (en) * | 2018-11-07 | 2019-08-09 | 阿里巴巴集团控股有限公司 | Promote practical Byzantine failure tolerance block chain common recognition synchronous with node |
US20190251199A1 (en) * | 2018-02-14 | 2019-08-15 | Ivan Klianev | Transactions Across Blockchain Networks |
CN110741372A (en) * | 2017-06-07 | 2020-01-31 | 区块链控股有限公司 | Computer-implemented system and method for managing transactions on a blockchain network |
-
2020
- 2020-11-26 CN CN202011356463.3A patent/CN112565368B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110741372A (en) * | 2017-06-07 | 2020-01-31 | 区块链控股有限公司 | Computer-implemented system and method for managing transactions on a blockchain network |
WO2019021107A1 (en) * | 2017-07-24 | 2019-01-31 | nChain Holdings Limited | Computer-implemented system and method for managing a large distributed memory pool in a blockchain network |
CN107734502A (en) * | 2017-09-07 | 2018-02-23 | 京信通信系统(中国)有限公司 | Micro-base station communication management method, system and equipment based on block chain |
US20190251199A1 (en) * | 2018-02-14 | 2019-08-15 | Ivan Klianev | Transactions Across Blockchain Networks |
CN110115001A (en) * | 2018-11-07 | 2019-08-09 | 阿里巴巴集团控股有限公司 | Promote practical Byzantine failure tolerance block chain common recognition synchronous with node |
EP3542514A2 (en) * | 2018-11-07 | 2019-09-25 | Alibaba Group Holding Limited | Facilitating practical byzantine fault tolerance blockchain consensus and node synchronization |
Non-Patent Citations (2)
Title |
---|
单进勇等: "区块链理论研究进展", 《密码学报》 * |
张利华等: "基于区块链的高速铁路监测数据安全存储方案", 《计算机工程与设计》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113627809A (en) * | 2021-08-17 | 2021-11-09 | 山东大学 | Medical waste supervision system and method based on block chain |
CN114254395A (en) * | 2022-03-01 | 2022-03-29 | 南开大学 | Content distribution-oriented consensus forming method for autonomous network |
Also Published As
Publication number | Publication date |
---|---|
CN112565368B (en) | 2023-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111598566A (en) | Network payment system based on mixed cross-chain | |
CN109919771B (en) | Industrial internet transaction device applying hierarchical block chain technology | |
Yang et al. | Blockchain-based secure distributed control for software defined optical networking | |
CN111444277B (en) | Anti-terrorism information cooperative sharing platform and method based on blockchain technology | |
CN105247529A (en) | Synchronizing credential hashes between directory services | |
CN112866380B (en) | Chain network architecture based on block chain | |
CN113141414B (en) | Grouped multi-chain asynchronous consensus method for block chain nodes in CNFS protocol | |
WO2020186807A1 (en) | System and method for power data linking based on blockchain technology | |
CN110324331B (en) | Block chain-based identity authentication method for safety and stability control terminal of power system | |
CN114978638B (en) | Block chain cross-chain supervision method based on shared node | |
US20230039643A1 (en) | Cross-chain collaborative governance system, method and device and storage medium | |
CN112565368A (en) | Block chain-based offshore equipment ad hoc network system, method and medium | |
CN111737735A (en) | BDChrain block chain service platform | |
Jiang et al. | A cross-chain solution to integration of iot tangle for data access management | |
He et al. | A novel cryptocurrency wallet management scheme based on decentralized multi-constrained derangement | |
Liu et al. | Bs-iot: blockchain based software defined network framework for internet of things | |
CN115499171A (en) | Artificial intelligence trusted computing unified framework, edge device secure computing trusted framework, and security control and decentralization method | |
CN111786785A (en) | Block chain-based power distribution Internet of things node switching method and device | |
Ali et al. | Ensuring security and transparency in distributed communication in iot ecosystems using blockchain technology: Protocols, applications and challenges | |
CN110555783A (en) | block chain-based power marketing data protection method and system | |
Liu et al. | Using blockchain technology in IoT manufacture environment for intelligence prediction | |
CN115202955A (en) | Cluster management method and device, computer equipment and storage medium | |
Fu et al. | A multiple-blockchains based service monitoring framework in edge-cloud computing | |
CN112988852B (en) | Block chain-based data management method, device and medium | |
de Morais et al. | Survey on integration of consensus mechanisms in IoT-based blockchains |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100094 No.1, Fengxian East Road, Haidian District, Beijing Applicant after: China Shipbuilding Corporation System Engineering Research Institute Applicant after: XI'AN ZHIGUI INTERNET TECHNOLOGY Co.,Ltd. Address before: 100094 No.1, Fengxian East Road, Haidian District, Beijing Applicant before: China Shipbuilding Industry System Engineering Research Institute Applicant before: XI'AN ZHIGUI INTERNET TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |