CN111355780B - Internet of things monitoring management method and system based on block chain - Google Patents

Internet of things monitoring management method and system based on block chain Download PDF

Info

Publication number
CN111355780B
CN111355780B CN202010099556.6A CN202010099556A CN111355780B CN 111355780 B CN111355780 B CN 111355780B CN 202010099556 A CN202010099556 A CN 202010099556A CN 111355780 B CN111355780 B CN 111355780B
Authority
CN
China
Prior art keywords
block
internet
chain
block chain
monitoring
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.)
Active
Application number
CN202010099556.6A
Other languages
Chinese (zh)
Other versions
CN111355780A (en
Inventor
黄步添
卢瑞瑞
俞之贝
高翠霞
黄媛媛
石太彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Yunxiang Network Technology Co Ltd
Original Assignee
Hangzhou Yunxiang Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Yunxiang Network Technology Co Ltd filed Critical Hangzhou Yunxiang Network Technology Co Ltd
Priority to CN202010099556.6A priority Critical patent/CN111355780B/en
Publication of CN111355780A publication Critical patent/CN111355780A/en
Application granted granted Critical
Publication of CN111355780B publication Critical patent/CN111355780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The invention provides a monitoring management method and a system based on a block chain, wherein the monitoring management method comprises the following steps: (1) establishing an Internet of things network based on multiple chains; (2) the environmental deployment of the block chain monitoring system; (3) carrying out cluster management and encapsulation on participating nodes on a network chain of the Internet of things; (4) the packaged block chain Internet of things network is visually monitored, and the corresponding system comprises a deployment module, a construction module, a management module and a monitoring module; the invention designs a convenient integrated block chain Internet of things supervision method and a system based on a block chain Internet of things network of a multi-chain architecture, is used for deploying and real-timely supervising the operation of the block chain Internet of things network, has two characteristics of monitoring and management, realizes data exchange among the multi-chain, performs category attribution management on the complex block chain architecture through interface packaging, provides a supervision way, and performs real-time monitoring and display on the state of an Internet of things underlying network by using a block chain technology.

Description

Block chain-based Internet of things monitoring management method and system
Technical Field
The invention belongs to the technical field of block chain Internet of things, and particularly relates to a block chain-based Internet of things monitoring and management method and system.
Background
During the long-term development and evolution process of the internet of things, the following industry pain points are met: device security, individual privacy, architecture rigidity, communication compatibility and multi-subject coordination. Recent proposals in internet of things access control systems have incorporated blockchains into them to overcome problems inherent in conventional internet of things systems. While internet of things systems have long existed in various forms, security challenges are emerging and will continue to emerge in the foreseeable future. General IT security methods and tools are unable to meet all of the specific requirements of a secure internet of things deployment. Therefore, it is very important to determine an emergency method suitable for a security solution of the internet of things.
At present, many internet of things are self-organizing networks inside operators and enterprises, the characteristics of multi-center and weak centralization of an operation alliance chain can reduce the high operation and maintenance cost of a centralization framework, the characteristics of information encryption and safe communication can be beneficial to protecting privacy, identity authority management and multi-party consensus can be beneficial to identifying illegal nodes, the access and the operation of malicious nodes can be prevented in time, and the core advantages of a block chain structure comprise: any node can create a transaction, after a period of confirmation, whether the transaction is valid can be reasonably confirmed, and the block chain can effectively prevent problems of both parties; the cost of attempting to overwrite or modify a transaction record is very high. The blockchain implements two types of recording: transactions (transactions) and blocks (blocks). Transactions are the actual data stored on the blockchain, and blocks are records that identify when and in what order certain transactions are part of the blockchain database. The block chain technology is an architecture design method for realizing a product with public data, transparency and traceability, and is calculated as a generalized block chain.
The combination of the block chain and the internet of things needs to deal with three risks of service provider reliability, authentication safety and legal supervision deficiency. When the internet of things is extended to billions of devices and millions of device owners, it is not possible to maintain ACLs for each internet of things device and rely on a centralized access control server. In order to enable these internet of things device owners to control the data generated by their devices, blockchain deployment is a possible solution, not including reliance on centralized third parties. However, in the process of applying the blockchain technology to more and more internet of things systems, how to more efficiently remove the centrally supervised internet of things system and how to effectively perform visual monitoring management on various gateway nodes so as to enable a huge internet of things system to efficiently respond and trade under the support of a blockchain underlying network is a problem to be solved currently.
Disclosure of Invention
In order to solve the problems, the invention designs a block chain Internet of things network with a multi-chain architecture, and provides a convenient integrated block chain Internet of things supervision method and system for deploying and real-time monitoring the operation of the block chain Internet of things network. The method has the advantages of monitoring and management, realizes data exchange among multiple chains, performs category attribution management on a complex block chain architecture through interface packaging, provides a supervision way, and performs real-time monitoring and display on the state of the Internet of things underlying network by using a block chain technology.
On one hand, the invention discloses a block chain-based Internet of things monitoring and management method, which comprises the following steps:
(1) the method comprises the following steps of establishing an Internet of things network based on a multi-chain architecture, wherein the Internet of things network comprises a main chain and a sub-chain:
1) any participating mechanism creates various gateway nodes and is connected with related equipment, the Internet of things equipment with different functions is connected with corresponding gateways to form a plurality of sub-chains, the participating mechanism comprises an Internet of things equipment providing mechanism and an equipment operation demand mechanism, and all the mechanisms are connected with the Internet of things equipment through the gateways.
The attribute information of each internet of things device is stored in each sub-chain, and the attribute information comprises: name, device usage, and index information. Each sub-chain realizes the chaining of the information of the Internet of things equipment with different functions of the Internet of things, and is transparent and can not be tampered.
2) Nodes are provided by each participating mechanism to form a main chain, each sub-chain selects one of the nodes to join the main chain to form a multi-chain Internet of things network architecture, and the main chain synchronizes the aggregation of the sub-chains belonging to the Internet of things equipment with different scene requirements, so that the operation of the whole Internet of things network is controllable.
In the main chain, participating mechanisms provide consensus nodes, all the nodes participate in deploying intelligent contracts, all the participating mechanisms perform event notification and data exchange through the main chain contracts, and all the sub-chains realize event response of the Internet of things through the provided main chain nodes and corresponding contracts;
each participating mechanism provides endorsement nodes, consensus nodes and accounting nodes, any node in a chain of the sublink can be randomly selected by the sublink or a node in a voting chain is voted according to scene requirements and is added into a main chain, the node shares the information of each node of the sublink to which the node belongs, the stored information is shared with other nodes of the main chain by adding the main chain, the information sharing of the internet of things of the whole network is realized, and the sublinks of different scenes serve different requirements through a multi-chain architecture.
3) A cross-chain protocol is set up, digital assets and states need to be transferred between these different chains, and the cross-chain protocol can achieve interoperability from chain to chain. Of course, here too, the impact of cross-chaining on performance and security is required; other demanding entities may choose to join the network via an invitation code.
(2) And carrying out block chain supervision environment deployment on the Internet of things network:
1) uploading an installation package containing a block chain bottom layer to a gateway node server, forming a file list, storing an absolute path, importing a mirror image related to a ranker, starting a ranker deployment cluster environment by using the imported mirror image, and deploying all mirror images which are depended by the cluster to the corresponding gateway node server through the ranker;
2) building a docker private warehouse in the cluster, and transmitting the related mirror images of the block chain into the private warehouse;
3) and installing a command line operation tool for inquiring and managing cluster resources, configuring a server and starting a block chain monitoring system.
(3) Carrying out cluster management and encapsulation on nodes on a network chain of the Internet of things:
1) the method comprises the steps that nodes in the multi-link Internet of things network are packaged in a set mode according to categories, node deployment is conducted through a cluster, relevant mirror images are pulled from a private warehouse, set operation is started, the relevant nodes are all operated in the cluster, if a certain node fails or crashes, the cluster is provided with a keep-alive mechanism, dynamic drifting of the nodes can be achieved, and data consistency is guaranteed;
2) and a cluster interface and a bottom communication transmission interface are arranged, the cluster interface is used for managing the state of nodes in the cluster, and the network communication transmission interface is used for managing the data information transmission between the monitoring interface and the multi-link Internet of things network.
(4) Carrying out visual monitoring on the packaged block chain Internet of things network, wherein the visual monitoring comprises topology display of the whole network connection and state monitoring of any block chain in each network:
1) establishing a block chain information general view table on an operation interface, connecting a bottom service end and an upper service end of a block chain through a network communication transmission interface, acquiring all block chain information including the running state of the sub-chain Internet of things equipment and main chain block information, and presenting the block chain information in the information general view table; the rear end is connected with a bottom layer server by utilizing a grpc to obtain the latest block of the block chain, and the detailed data of the analyzed block is pushed to the front end by utilizing a websocket;
the WebSocket protocol is a new network protocol based on TCP. It enables full-duplex (full-duplex) browser to server communication-allowing the server to actively send information to the client.
2) The node state page establishes WebSocket connection with the server side and is used for receiving and sending requests and responses related to the node state, the front end analyzes the response in the JSON format, the interface is updated by using React, the latest state data is displayed, and a user can click a stop/start button on the interface to manage the life cycle of each node;
3) calculating the topology map layout according to the nodes and the connecting line data, and rendering a topology map interface; (the specific method is that the position condition of a node and a connecting line is simulated in an svg by calling a function initSimuling, a force layout model of d3 is adopted, the process simulation times are 300, the final simulation result is cached in a browser supporting localStorage and returned to a caller, and a final topological graph interface is rendered according to the simulation result and the style configuration.)
4) And clicking any block chain in the information general view table, displaying the name, the block height, the number of executed contracts and the transaction condition of the currently selected block chain, and simultaneously reducing the transparency of nodes and connections which do not belong to the block chain on the topological graph so as to distinguish, thereby realizing the visual real-time monitoring on the chain of the Internet of things network.
Further, the real-time monitoring state includes a block state and a node state: the method comprises the steps of respectively obtaining block height, transaction condition, latest block time, TPS, contract execution condition, selected consensus algorithm, block average generation time, node creation joining, cancellation and node state acquisition, and realizing supervision control on the network state of the Internet of things, the running state of equipment and the calling condition by monitoring the block state and the node state.
On the other hand, the invention provides an internet of things monitoring and management system based on a block chain, which comprises the following components:
the deployment module is used for deploying the block chain Internet of things network environment;
the building module is used for building and joining the network, and building and joining a main chain and a sub chain to complete the basic building of the whole block chain monitoring network;
the management module is used for cluster management and interface encapsulation management;
the monitoring module is used for monitoring the state indexes of each block chain and each node and the topology display of the whole network connection.
Further, the building module comprises: the node module is responsible for creating, adding and canceling each participating mechanism node; a contract module: and (4) creation, deployment and updating of intelligent contracts in each blockchain.
Further, the cluster module is responsible for managing block chain physical machines, planning of host nodes, joining and exiting;
and the interface packaging module provides a cluster management interface and a transmission interface of a block chain Internet of things network, and realizes interface conversion and data packaging through packaging.
Further, the block monitoring module: providing a function of monitoring the state of each block in the block chain Internet of things network, and checking the real-time state of the block by a user through a block monitoring module: block height, transaction condition, latest block time, TPS, contract execution condition, selected consensus algorithm, block average generation time, node creation joining, cancellation and node state acquisition; and the monitoring control of the network state of the Internet of things, the running state of the equipment and the calling condition is realized by monitoring the block state and the node state.
A state display module: the module is responsible for displaying various monitoring index data in a user-specified block chain, namely the latest state of the block chain monitored by the block monitoring module, and displaying transaction data generated in the block chain;
a detail list module: the system is responsible for operations related to block state monitoring and related data list display and data storage, and the specific functions comprise block list details, transaction list details, contract calling times, world state checking and the like, and summary information overview lists are displayed;
a block meta-module: through the module, a user can check the currently generated block information, including a block number, a last block hash, the number of successful/failed transactions in the block and transaction details;
a world state module: this module is responsible for displaying the contract currently installed and running and the world state of the contract.
Drawings
FIG. 1: the invention discloses a multi-chain Internet of things network schematic diagram;
FIG. 2 is a schematic diagram: the present invention is a schematic diagram of a multi-chain architecture;
FIG. 3: the invention relates to a block chain-based Internet of things network supervision method;
FIG. 4: the whole block chain Internet of things supervision network architecture diagram is disclosed;
FIG. 5: the invention relates to a flow chart of an internet of things network supervision system based on a block chain.
Detailed Description
In order to describe the present invention more specifically, the following detailed description of the present invention is made with reference to the accompanying drawings and the detailed description of the present invention.
(1) As shown in fig. 1, the invention designs a blockchain internet of things network with a multi-chain architecture, and fig. 2 is a further supplement to fig. 1, in the network, internet of things participating mechanisms create various gateway nodes and connect with related devices, and connect internet of things devices with different functions with corresponding gateways to form a plurality of sub-chain networks, and each participating mechanism provides a node to form a main chain network. As shown in fig. 2, sub-chains 1, 2, and 3 update and recognize blocks according to internet of things device data on their chains to form new blocks, and after accounting and storing information of each sub-chain block, a summary is formed on the main chain and broadcast-recognized to form main chain blocks, so as to form a multi-chain internet of things network, and each sub-chain realizes internet of things device information chaining of different functions of the internet of things, and is transparent and tamper-proof.
Through a multi-chain architecture, sub-chains of different scenarios are made to serve different requirements. For example, a child chain running on a device with weak storage capacity may adopt a similar Mimble Wimble architecture to reduce storage; a child chain that focuses on a payment scenario may not need to run an intelligent contract.
And setting a cross-link protocol, namely adopting a cross-link mechanism with bidirectional locking to realize necessary digital asset transmission among the sub-chains, wherein other required mechanisms can choose to join the network through an invitation code issued by a joined uplink mechanism. Fig. 3 is a flowchart of a block chain-based internet of things supervision method according to the present invention.
A convenient integrated block chain Internet of things supervision method and system are provided for deploying and supervising the operation of a block chain Internet of things network in real time.
(2): and (3) environmental deployment of the block chain Internet of things network:
1) firstly, a server and a client are prepared, a network access relation is opened, a docker is installed, a ran cher related mirror image is imported, a ran cher is started by utilizing the imported mirror image, and a cluster (such as a Kubernetes cluster) environment is deployed through a browser page, wherein the ran cher is a cluster deploying tool.
The method comprises the following specific steps: importing a Rancher image: and importing all images relied on by deploying Kubernets through a ran to the gateway server of the Internet of things.
For example, on 5 different internet of things gateway servers, decompressing files under a cloud image block chain (yunphant _ bas) docker image directory:
# switch to mirrored compact package directory
cd$yunphant_baas/docker_images
# decompress the File
tar-xvzf rancher.tar.gz
tar-xvzf k8s.tar.gz
Respectively executing on any server:
# switch to installation script directory
cd$yunphant_baas/script
# execution script import Master related mirror
./load_master_images.sh
Executing on the remaining servers:
# switch to installation script directory
cd$yunphant_baas/script
# execution script import master related mirror
./load_slave_images.sh
Secondly, deploying kubernets by a ranker, starting the ranker by the mirror image imported in the previous step, deploying the kubernets by a browser page, starting a ranker server,
2) installing a command line operation tool kubecect which is used for inquiring and managing Kubernets resources, building a docker private warehouse in a cluster, and mainly storing the block chain related mirror images and transmitting the block chain related mirror images into the private warehouse;
3) and configuring a server and starting a block chain Internet of things monitoring system.
(3) Carrying out cluster management and encapsulation on nodes participating in a network chain of the Internet of things:
1) referring to fig. 4, a participating organization creates various nodes, including creating nodes such as a peer, an order, a kafka, and a zookeeper, and combines an equipment gateway to construct a multi-chain internet of things network, after a user logs in, a user can create a block chain internet of things network of the user, and can also join other block chain internet of things networks through an invitation code to share basic components such as the order, the kafka, and the zookeeper;
2) the method comprises the steps of carrying out collection encapsulation on nodes according to categories, carrying out node deployment through a cluster, and carrying out block chain Internet of things management on the Kubernets cluster, wherein each type of node is operated in the Kubernets cluster as an independent collection. Pulling a related mirror image from a docker private warehouse, starting collective operation to enable related nodes to operate in a cluster, and if a certain node fails or crashes, the cluster is provided with a keep-alive mechanism to realize dynamic drift of the node and ensure consistency of data;
3) the method comprises the steps that a Kubernetes interface and a block chain Internet of things network communication transmission interface are arranged, the cluster interface is used for managing the state of nodes in a cluster and comprises a creation set and a monitoring set, the network communication transmission interface is used for managing data information transmission between the monitoring interface and the bottom layer of the block chain Internet of things network, and a monitoring and management way is provided through one-layer packaging of the two interfaces.
In addition, a participating mechanism participates in creating a main chain part, a peer is added into the main chain, and each node participates in deploying an intelligent contract; the participating institutions publish the publicable information into the main chain and regularly update the information state through contracts, wherein the information state comprises the publicable data information such as chain organization update, node state, contract deployment, transaction records and the like. Event notification and data exchange are carried out between the bottom platforms of the block chains through contracts on the main chain, the network structure of the block chains is borrowed, the complexity of the network structure is not additionally increased, and the functions of message communication, mail notification, workflow and the like between mechanisms are realized.
(4): carrying out visual monitoring on the packaged block chain Internet of things network, reflecting various index states of the whole block chain Internet of things network in real time, including topology display of whole network connection, and monitoring indexes of each block chain:
1) establishing a block chain information general look-up table, establishing a WebSocket protocol connection through a network communication transmission interface, receiving a monitored state and data, connecting a block chain bottom layer server, acquiring a real-time monitoring state of a sub-block chain, and presenting the real-time monitoring state in the information general look-up table; the back end obtains the latest block of the block chain by utilizing grpc to connect with the bottom layer server, the detailed data of the analyzed block is pushed to the front end by utilizing websocket. Sending a message GetOverview to acquire initialized topological graph data, keeping Websocket connection, receiving topological graph change data pushed by an interface terminal until a route changes, and closing the Websocket at a client. The WebSocket protocol is a new network protocol based on TCP. The full-duplex communication between the browser and the server is realized, and the server is allowed to actively send information to the client.
And displaying an information summary table of the number of the block chains in the current network according to the data received by the websocket, and displaying each block chain in a clicked list form. Clicking any blockchain list to enter the blockchain information page, displaying the name, the consensus algorithm, the block height, the contract number and the transaction number of the currently selected blockchain, and reducing the transparency of nodes and connections which do not belong to the blockchain on the topological graph for distinguishing. The real-time monitoring of the state comprises: block height, transaction amount, latest block time, TPS, contract amount, selected consensus algorithm, block average generation time.
2) The user may click a stop/start button on the interface to manage the life cycle of each node, which specifically includes:
a) the node state page establishes WebSocket connection with the server, is used for receiving and transmitting requests and responses related to the node state, the front end analyzes the response in the JSON format, and the read is used for updating the interface and displaying the latest state data;
b) performing user identity verification, upgrading the http request into WebSocket connection, binding a message processor, and forwarding data received by the connection to the nodeOperationHandler;
c) analyzing data transmitted by the WebSocket, and calling a corresponding processing function;
d) state processing related services, including querying and returning results in the database; polling the node state in the cluster and storing the node state in a database;
e) and storing the state related data.
3) And calculating the topology map layout according to the nodes and the connecting line data, and rendering a topology map interface. The specific method comprises the following steps: and calling a function initSimuling to simulate the position condition of a node and a connecting line in an svg, adopting a force layout model of d3, wherein the process simulation times are 300, the final simulation result is cached in a browser supporting localStorage and returned to a caller, and a final topological graph interface is rendered according to the simulation result and the style configuration.
4) And clicking any block chain in the information general view table, displaying the name, the block height, the number of executed contracts and the transaction condition of the currently selected block chain, and simultaneously reducing the transparency of nodes and connections which do not belong to the block chain on the topological graph so as to distinguish, thereby realizing the visual real-time monitoring on the chain of the Internet of things network.
The real-time monitoring state comprises a block state and a node state: the method comprises the steps of respectively obtaining block height, transaction condition, latest block time, TPS, contract execution condition, selected consensus algorithm, block average generation time, node creation joining, node cancellation and node state acquisition, and realizing supervision control on the network state of the Internet of things, the running state of equipment and the calling condition by monitoring the block state and the node state.
According to the block chain-based supervision method, the block chain link points are subjected to cluster management, monitoring and display are carried out through a block chain information overview and a topological graph, event notification and data exchange among the block chains are carried out through building a main chain, and an ordered and controllable block chain Internet of things network is formed integrally.
In addition, an embodiment of the present application further provides a block chain-based internet of things monitoring system, a computer program for implementing the block chain monitoring method, and a block chain-based internet of things monitoring system, as shown in fig. 5, including:
the deployment module is used for environmental deployment of a block chain Internet of things network, and comprises a server and a client side, a network access relation is opened, a docker is installed on the server and operates, all images which are depended on by a ran-cher deployment cluster are led into the server, the ran-cher is started, the cluster is deployed through a browser page, a corresponding environment is added, a command line operation tool is used, and system environmental deployment is completed.
The building module is used for building a sub-chain and a main chain and completing the building of the whole multi-chain Internet of things network, and comprises: the node module is used for creating a resource part, creating, adding and canceling peer, orderer, kafka and zookeeper nodes, creating a main chain and adding the peer into the main chain;
a contract module: and (4) creating, deploying and instantiating the intelligent contracts in each blockchain for updating.
The management module is used for cluster management and interface encapsulation management, and comprises: and the cluster module is responsible for management of the physical machine, planning of the host node, and joining and quitting. The interface packaging module provides a cluster management interface and a network transmission interface of the block chain Internet of things network, interface conversion and data packaging are realized through packaging, network communication inside a cluster and between clusters is further realized, and the whole block chain Internet of things network communication is ensured.
The monitoring module is used for monitoring the state index of each block chain including the node and the topology display of the whole network connection.
a) Registering a monitoring service according to the request, monitoring a monitoring route of a page access state display module, establishing a WebSocket connection, receiving a monitored state and data, analyzing a JSON format response by a front end, updating an interface by using a React, and displaying the latest state data;
b) forwarding the request to a detail list module class for processing, and calling a corresponding block monitoring module to poll the real-time states of various resources, such as block height, transaction quantity, latest block time, TPS (thermoplastic elastomer), contract quantity, selected consensus algorithm and block average generation time aiming at the requested monitoring block;
c) monitoring data service is carried out, the state of resources is inquired from a database and a memory, and data are returned to a state display module, a block meta-module and a world state module;
d) the detail list module stores monitoring related data.
The monitoring system firstly calls the deployment module to deploy the cluster environment, uses the building module to build the block chain monitoring network, and uses the node building and contract deployment to form the block chain Internet of things network, then calls the management module to carry out the collection attribution and state management on the nodes, sets the management interface, provides a way for the system monitoring display, calls the monitoring module, and checks the real-time state and detail information of any block. The system completes the deployment, the creation and the supervision of the whole life cycle of the block chain Internet of things network, is convenient to deploy, operate and maintain, and meets the block chain service architecture required by different Internet of things scenes.
The embodiments described above are presented to enable a person having ordinary skill in the art to make and use the invention. It will be readily apparent to those skilled in the art that various modifications to the above-described embodiments may be made, and the generic principles defined herein may be applied to other embodiments without the use of inventive faculty. Therefore, the present invention is not limited to the above embodiments, and those skilled in the art should make improvements and modifications to the present invention based on the disclosure of the present invention within the protection scope of the present invention.

Claims (7)

1. A block chain-based Internet of things monitoring and management method is characterized by comprising the following steps:
(1) establishing a multi-chain-based internet of things network, wherein a multi-chain architecture comprises a main chain and a sub chain;
(2) carrying out block chain supervision environment deployment on the Internet of things network; wherein, the first and the second end of the pipe are connected with each other,
1) uploading the installation package containing the bottom layer of the block chain to a gateway node server, forming a file list, storing an absolute path, importing a rancher related mirror image, starting a rancher deployment cluster environment by using the imported mirror image, and deploying all mirror images depending on the cluster to the corresponding gateway node server through the rancher;
2) building a docker private warehouse in the cluster, and transmitting the related mirror images of the block chain into the private warehouse;
3) installing a command line operation tool for inquiring and managing cluster resources, configuring a server and starting a block chain monitoring system;
(3) carrying out clustering management and packaging on the participating nodes on the network chain of the Internet of things; wherein the content of the first and second substances,
1) the method comprises the steps that nodes in the multi-link Internet of things network are packaged in a set mode according to categories, node deployment is conducted through a cluster, relevant mirror images are pulled from a private warehouse, set operation is started, the relevant nodes are all operated in the cluster, if a certain node fails or crashes, the cluster is provided with a keep-alive mechanism, dynamic drifting of the nodes can be achieved, and data consistency is guaranteed;
2) the method comprises the steps that a cluster interface and a bottom communication transmission interface are arranged, the cluster interface is used for managing the state of nodes in a cluster, and the network communication transmission interface is used for managing data information transmission between a monitoring interface and a multi-link Internet of things network;
(4) carrying out visual monitoring on the packaged block chain Internet of things network, wherein the visual monitoring comprises topology display of the whole network connection and state monitoring of any block chain in each network; wherein the content of the first and second substances,
1) establishing a block chain information general view table on an operation interface, connecting a bottom service end and an upper service end of a block chain through a network communication transmission interface, acquiring all block chain information including the running state of the sub-chain Internet of things equipment and main chain block information, and presenting the block chain information in the information general view table; the rear end is connected with a bottom layer server by utilizing a grpc to obtain the latest block of the block chain, and the detailed data of the analyzed block is pushed to the front end by utilizing a websocket;
2) the method comprises the steps that WebSocket connection is established between a node state page and a server side and used for receiving and sending requests and responses related to node states, the front end analyzes the response in a JSON format, an interface is updated through React, the latest state data are displayed, and a user can click a stop/start button on the interface to manage the life cycle of each node;
3) calculating the topological graph layout according to the nodes and the connecting line data, and rendering a topological graph interface;
4) and clicking any block chain in the information general look-up table, displaying the name, the block height, the number of executed contracts and the transaction condition of the currently selected block chain, and simultaneously reducing the transparency of nodes and connections which do not belong to the block chain on the topological graph to distinguish, thereby realizing the visual real-time monitoring on the chain of the Internet of things network.
2. The monitoring and management method for the internet of things according to claim 1, wherein the step (1) is realized by the following specific steps:
1.1 any participating mechanism creates various gateway nodes and connects with related equipment, and connects the Internet of things equipment with different functions with corresponding gateways to form a plurality of sub-chain networks;
1.2, nodes are provided by each participating mechanism to form a main chain network, wherein each sub-chain selects the node to join the main chain to form a multi-chain Internet of things network architecture;
1.3 in the main chain, participating mechanisms provide common identification nodes, all the nodes participate in deploying intelligent contracts, all the participating mechanisms perform event notification and data exchange through the main chain contract, and all the sub-chains realize event response of the Internet of things through the provided main chain nodes and corresponding contracts;
1.4, a cross-chain protocol is established according to requirements, and the digital asset transmission required between chains is realized through the cross-chain protocol investigated by participating mechanisms.
3. The monitoring and management method for the internet of things according to claim 1, wherein the real-time monitoring state comprises a block state and a node state: the method comprises the steps of respectively obtaining block height, transaction condition, latest block time, TPS, contract execution condition, selected consensus algorithm, block average generation time, node creation joining, node cancellation and node state acquisition, and realizing supervision control on the network state of the Internet of things, the running state of equipment and the calling condition by monitoring the block state and the node state.
4. The utility model provides a thing networking control management system based on block chain which characterized in that includes:
the deployment module is used for deploying the block chain Internet of things network environment; the system comprises a gateway node server, a client side and a server side, wherein the gateway node server is used for uploading an installation package containing a block chain bottom layer to the gateway node server, forming a file list, storing an absolute path, importing a RANCHER related mirror image, starting a RANCHER deployment cluster environment by utilizing the imported mirror image, and deploying all mirror images depending on the cluster to the corresponding gateway node server through the RANCHER; the system comprises a private warehouse and a plurality of image processing units, wherein the private warehouse is used for building a docker in a cluster and transmitting related images of a block chain into the private warehouse; the system comprises a command line operation tool, a server and a block chain monitoring system, wherein the command line operation tool is used for inquiring and managing cluster resources, configuring the server and starting the block chain monitoring system;
the building module is used for building and joining the network, and building and joining a main chain and a sub chain to complete the basic building of the whole block chain monitoring network;
the management module is used for cluster management and interface encapsulation management; the system comprises a cluster, a private warehouse and a keep-alive mechanism, wherein the cluster is used for carrying out collection packaging on nodes in the multi-link Internet of things network according to categories, carrying out node deployment through the cluster, pulling relevant mirror images from the private warehouse, starting collection operation to enable the relevant nodes to operate in the cluster, and if a certain node fails or crashes, the cluster is provided with the keep-alive mechanism to realize dynamic drift of the nodes and ensure the consistency of data; the system comprises a network communication transmission interface, a monitoring interface and a bottom communication transmission interface, wherein the network communication transmission interface is used for managing data information transmission between the monitoring interface and a multi-link Internet of things network;
the monitoring module is used for monitoring the state indexes of each block chain and node and the topology display of the whole network connection; the system is used for establishing a block chain information master viewing table on an operation interface, connecting a bottom service end and an upper service end of a block chain through a network communication transmission interface, acquiring all block chain information including the running state of sub-chain Internet of things equipment and main chain block information, and displaying the block chain information in the information master viewing table; the rear end utilizes a grpc to connect a bottom layer server to obtain the latest block of the block chain, the detailed data of the analyzed block is pushed to the front end by a websocket; the system comprises a web socket connection between a node state page and a server, a JSON format response analysis front end, a React update interface, a latest state data display, and a user click stop/start button on the interface to manage the life cycle of each node, wherein the Websocket connection is used for receiving and sending a request and a response related to the node state; the system is used for calculating the topological graph layout according to the nodes and the connecting line data and rendering a topological graph interface; the system is used for clicking any block chain in the information general viewing table, displaying the name, the block height, the number of executed contracts and the transaction condition of the currently selected block chain, and simultaneously reducing the transparency of nodes and connections which do not belong to the block chain on the topological graph so as to distinguish, thereby realizing the visual real-time monitoring on the chain of the Internet of things network.
5. The monitoring and management system of the internet of things of claim 4, wherein the building module comprises: the node module is responsible for creating, adding and canceling each participating mechanism node; a contract module: and (4) creation, deployment and updating of intelligent contracts in each blockchain.
6. The monitoring and management system of the internet of things of claim 4, wherein the management module comprises:
the cluster module is responsible for managing planning, joining and exiting of the block chain physical machine and the host nodes;
and the interface packaging module provides a cluster management interface and a transmission interface of a block chain Internet of things network, and realizes interface conversion and data packaging through packaging.
7. The monitoring management system of the internet of things of claim 4, wherein the monitoring module comprises:
a block monitoring module: providing a function of monitoring the state of each block in the block chain Internet of things network, and checking the real-time state of the block by a user through a block monitoring module: block height, transaction condition, latest block time, TPS, contract execution condition, selected consensus algorithm, block average generation time, node creation joining, cancellation and node state acquisition; monitoring and controlling the network state of the Internet of things, the running state of equipment and the calling condition by monitoring the block state and the node state;
a state display module: the module is responsible for displaying various monitoring index data in a user-specified block chain, namely the latest state of the block chain monitored by the block monitoring module, and displaying transaction data generated in the block chain;
a detail list module: the system is responsible for operations related to block state monitoring and related data list display and data storage, and the specific functions comprise block list details, transaction list details, contract calling times, world state checking and the like, and summary information overview lists are displayed;
a block meta-module: through the module, a user can check the currently generated block information, including a block number, a last block hash, the number of successful/failed transactions in the block and transaction details;
a world state module: this module is responsible for displaying the contract currently installed and running and the world state of the contract.
CN202010099556.6A 2020-02-18 2020-02-18 Internet of things monitoring management method and system based on block chain Active CN111355780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010099556.6A CN111355780B (en) 2020-02-18 2020-02-18 Internet of things monitoring management method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010099556.6A CN111355780B (en) 2020-02-18 2020-02-18 Internet of things monitoring management method and system based on block chain

Publications (2)

Publication Number Publication Date
CN111355780A CN111355780A (en) 2020-06-30
CN111355780B true CN111355780B (en) 2022-09-13

Family

ID=71197069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010099556.6A Active CN111355780B (en) 2020-02-18 2020-02-18 Internet of things monitoring management method and system based on block chain

Country Status (1)

Country Link
CN (1) CN111355780B (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111917865B (en) * 2020-07-29 2022-09-20 成都质数斯达克科技有限公司 Block chain network system, gateway and networking method
CN112055002B (en) * 2020-08-24 2022-07-19 杭州云象网络技术有限公司 Cross-link network supervision method based on public management link
CN112134932A (en) * 2020-09-04 2020-12-25 上海航翼网络科技有限公司 Block chain technology-based distributed Internet of things implementation method
CN112101940A (en) * 2020-09-16 2020-12-18 上海万向区块链股份公司 Random verifiable sample selection system implemented with block chains
CN112272113B (en) * 2020-10-23 2021-10-22 上海万向区块链股份公司 Method and system for monitoring and automatically switching based on various block chain nodes
CN112350889A (en) * 2020-10-26 2021-02-09 成都商通时代数字科技有限公司 System and method for monitoring running state of block link point
CN112104665B (en) * 2020-11-02 2021-02-12 腾讯科技(深圳)有限公司 Block chain-based identity authentication method and device, computer and storage medium
CN112633706A (en) * 2020-12-25 2021-04-09 中国科学院计算技术研究所 Internet of things terminal data processing method and system based on layered multi-chain
CN112787849B (en) * 2020-12-28 2022-05-24 杭州趣链科技有限公司 Block chain state control method and device, terminal and storage medium
CN112804310B (en) * 2020-12-31 2023-03-24 河南中盾云安信息科技有限公司 Multi-chain intelligent security gateway for application of Internet of things and implementation method
CN112766699A (en) * 2021-01-13 2021-05-07 中国外运股份有限公司 Method and device for realizing electronic bill of lading monitoring, electronic equipment and storage medium
CN114826915B (en) * 2021-01-27 2024-04-19 迪莲娜(上海)大数据服务有限公司 Virtual network interface encapsulation and calling method, system, medium and management platform
CN113132455A (en) * 2021-03-01 2021-07-16 唐芮 Distributed industrial Internet of things monitoring method and system
CN113115315B (en) * 2021-04-02 2022-10-04 青岛科技大学 IOT equipment behavior credible supervision method based on block chain
CN113067899B (en) * 2021-06-02 2021-07-30 支付宝(杭州)信息技术有限公司 Method and device for starting/closing block link point service
CN113259458B (en) * 2021-06-02 2021-11-02 支付宝(杭州)信息技术有限公司 Method and device for starting/closing block link point service
CN113259119B (en) * 2021-06-02 2021-10-29 支付宝(杭州)信息技术有限公司 Block chain message distribution method and device
CN113268337B (en) * 2021-07-20 2021-10-22 杭州朗澈科技有限公司 Method and system for Pod scheduling in Kubernetes cluster
CN113760651B (en) * 2021-08-12 2024-04-02 熵链科技(福建)有限公司 Main sub-chain running state collection method, system and storage medium of block chain
CN113938496B (en) * 2021-10-11 2024-04-02 上海万向区块链股份公司 Block chain network method and system based on Internet of things equipment
CN113726819B (en) * 2021-11-01 2022-03-11 杭州未名信科科技有限公司 Local area network data supervision method and system based on block chain
CN114338676A (en) * 2021-12-31 2022-04-12 支付宝(杭州)信息技术有限公司 Block synchronization method and device, electronic equipment and storage medium
CN114650231B (en) * 2022-05-13 2022-10-18 南京金宁汇科技有限公司 Visual containerized union link point deployment method and system
CN116209014A (en) * 2023-04-25 2023-06-02 北京陆天通信技术有限公司 Communication cluster system and communication method

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506203A (en) * 2016-10-25 2017-03-15 杭州云象网络技术有限公司 A kind of monitoring nodes system for being applied to block chain
CN108632293A (en) * 2018-05-16 2018-10-09 山东建筑大学 Architectural Equipment Internet of things system based on block chain technology and method
CN108961643A (en) * 2018-06-12 2018-12-07 深圳市中电数通智慧安全科技股份有限公司 A kind of parameter management method based on block chain, device and terminal device
CN109271799A (en) * 2018-09-17 2019-01-25 深圳市天达国际商业咨询有限公司 A kind of medical monitoring platform based on block chain and Internet of Things
CN110024422A (en) * 2016-12-30 2019-07-16 英特尔公司 The name of Internet of Things and block chained record
CN110308903A (en) * 2019-07-04 2019-10-08 明链科技(深圳)有限公司 Create method, electronic equipment and the medium of block chain network
CN110308962A (en) * 2019-07-04 2019-10-08 明链科技(深圳)有限公司 Manage method, electronic equipment and the medium of block chain network
CN110546636A (en) * 2017-04-25 2019-12-06 微软技术许可有限责任公司 Confidentiality in federated blockchain networks
CN110557384A (en) * 2019-08-12 2019-12-10 杭州云象网络技术有限公司 internet of things management control method based on block chain
CN110620777A (en) * 2019-09-24 2019-12-27 北京艾摩瑞策科技有限公司 Smoke monitoring data uplink method and system of Internet of things on block chain
CN110706006A (en) * 2019-10-09 2020-01-17 北京物资学院 Supply chain logistics traceability system with block chain multi-chain cooperation

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI637280B (en) * 2017-05-16 2018-10-01 緯創資通股份有限公司 Monitoring method based on internet of things, fog computing terminal and internet of things system
US11924322B2 (en) * 2017-05-16 2024-03-05 Arm Ltd. Blockchain for securing and/or managing IoT network-type infrastructure
TWI677213B (en) * 2017-11-23 2019-11-11 財團法人資訊工業策進會 Monitor apparatus, method, and computer program product thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506203A (en) * 2016-10-25 2017-03-15 杭州云象网络技术有限公司 A kind of monitoring nodes system for being applied to block chain
CN110024422A (en) * 2016-12-30 2019-07-16 英特尔公司 The name of Internet of Things and block chained record
CN110546636A (en) * 2017-04-25 2019-12-06 微软技术许可有限责任公司 Confidentiality in federated blockchain networks
CN108632293A (en) * 2018-05-16 2018-10-09 山东建筑大学 Architectural Equipment Internet of things system based on block chain technology and method
CN108961643A (en) * 2018-06-12 2018-12-07 深圳市中电数通智慧安全科技股份有限公司 A kind of parameter management method based on block chain, device and terminal device
CN109271799A (en) * 2018-09-17 2019-01-25 深圳市天达国际商业咨询有限公司 A kind of medical monitoring platform based on block chain and Internet of Things
CN110308903A (en) * 2019-07-04 2019-10-08 明链科技(深圳)有限公司 Create method, electronic equipment and the medium of block chain network
CN110308962A (en) * 2019-07-04 2019-10-08 明链科技(深圳)有限公司 Manage method, electronic equipment and the medium of block chain network
CN110557384A (en) * 2019-08-12 2019-12-10 杭州云象网络技术有限公司 internet of things management control method based on block chain
CN110620777A (en) * 2019-09-24 2019-12-27 北京艾摩瑞策科技有限公司 Smoke monitoring data uplink method and system of Internet of things on block chain
CN110706006A (en) * 2019-10-09 2020-01-17 北京物资学院 Supply chain logistics traceability system with block chain multi-chain cooperation

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Trustworthy Management in Decentralized IoT applicaion using blockchain;Bhabendu K.;《2019 10th International Conference on Computing,Communication and Networking Technologies(ICCCNT)》;20190708;全文 *
一种基于区块链的物联网行为监控和活动管理方案;郎为民等;《信息网络安全》;20200210;全文 *

Also Published As

Publication number Publication date
CN111355780A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
CN111355780B (en) Internet of things monitoring management method and system based on block chain
CN105653315B (en) A kind of node operating system method for down loading based on block chain technology
CN109559258B (en) Educational resource public service system
CN101939736B (en) System and method for developing rich internet applications for remote computing devices
CN106022007B (en) The cloud platform system and method learning big data and calculating is organized towards biology
CN109286676B (en) Electric power data safety information system based on block chain
CN109800056A (en) A kind of block chain dispositions method based on container
CN110535824A (en) Smart home interlock method, system, terminal device and storage medium
CN106797392A (en) The issue and discovery of M2M IOT services
CN103608810A (en) Enriching database query responses using data from external data sources
CN103514245B (en) Creation user it is visible processing tracking can search for and global data base
CN108667861A (en) By browser to the method, system and server of device real-time monitoring
CN110488617A (en) Intelligent home control system, method and terminal device
CN111931215B (en) Data management method and device and storage medium
CN109478056A (en) Intelligent node for distributed grid network
CN115439249B (en) Method, device and system for realizing business service of cross-region block chain
CN113656824A (en) Intelligent terminal information safety interaction method of Internet of things based on block chain and IPFS technology
CN114780301B (en) Disaster recovery method and system supporting multi-cloud production environment
CN115118705A (en) Industrial edge management and control platform based on micro-service
CN113011598A (en) Financial data information federal migration learning method and device based on block chain
Wang Sok: Applying blockchain technology in industrial internet of things
CN109947844B (en) Medical data management system based on medical block chain
CN101924815A (en) 3G MOA phone middleware embedded system
CN107911400A (en) Data sharing method, electronic device and computer-readable recording medium
CN105471926A (en) Diagnostic data cloud model constructing system based on autonomous decentralized system

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
GR01 Patent grant
GR01 Patent grant