CN110324395B - IOT equipment data processing method based on double heavy chains - Google Patents

IOT equipment data processing method based on double heavy chains Download PDF

Info

Publication number
CN110324395B
CN110324395B CN201910098923.8A CN201910098923A CN110324395B CN 110324395 B CN110324395 B CN 110324395B CN 201910098923 A CN201910098923 A CN 201910098923A CN 110324395 B CN110324395 B CN 110324395B
Authority
CN
China
Prior art keywords
iot
data
hash value
group
equipment
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
CN201910098923.8A
Other languages
Chinese (zh)
Other versions
CN110324395A (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.)
Linde China Forklift Truck Corp Ltd
Original Assignee
Linde China Forklift Truck Corp 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 Linde China Forklift Truck Corp Ltd filed Critical Linde China Forklift Truck Corp Ltd
Priority to CN201910098923.8A priority Critical patent/CN110324395B/en
Publication of CN110324395A publication Critical patent/CN110324395A/en
Application granted granted Critical
Publication of CN110324395B publication Critical patent/CN110324395B/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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1042Peer-to-peer [P2P] networks using topology management mechanisms
    • 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
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • 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
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • 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
    • H04L67/1097Protocols 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The invention discloses a data processing method of IOT equipment based on double heavy chains, which is applied to a system comprising a cloud server and a plurality of IOT equipment, wherein the cloud server is respectively connected with the IOT equipment, and the IOT equipment is divided into a plurality of groups; the data processing method comprises the following steps: broadcasting the first hash value of each IOT device in the group to other IOT devices in the group to construct a single chain among the IOT devices in the group; broadcasting the second hash value of the optional IOT device from each single chain to the optional IOT devices from the other single chains to construct the heavy chain of inter-group IOT devices; performing data synchronization of the IOT devices in the group based on the single chain; and performing data synchronization of the IOT devices among the groups based on the heavy chains. According to the invention, by establishing the single chain of the IOT equipment in the group and the heavy chain of the IOT equipment among the groups, the real-time synchronization of data among the IOT equipment can be realized, the data safety is ensured, and the bandwidth, the time and the cloud space are saved.

Description

IOT equipment data processing method based on double heavy chains
Technical Field
The invention relates to the technical field of IOT equipment data processing, in particular to a double-heavy-chain-based IOT equipment data processing method.
Background
At present, data management modes of the IOT device mainly include local management and cloud storage. Local management refers to saving data generated by an IOT device directly in the local. The cloud storage refers to uploading data generated by the IOT equipment to the cloud, the data can be stored for a long time, and the data can be processed on the cloud. The two existing data management methods have the following problems: if local management is adopted, the local data needs to be cleaned regularly due to the limited storage space of the IOT equipment, which inevitably leads to the situation that some data with commercial value cannot be stored for a long time, and in addition, the safety of the data cannot be guaranteed and is easy to be tampered; if cloud storage is adopted, certain data bandwidth support is needed, when the number of IOT devices is large, the amount of interactive data is huge, and a lot of uploaded data are worthless, so that not only are bandwidth, time and cloud space wasted, but also the processing load of subsequent data is increased, and when the IOT devices need to restore the data, the data need to be acquired from the cloud, and the bandwidth, the time and the like are wasted.
Disclosure of Invention
The invention mainly aims to overcome the defects in the prior art and provides a data processing method of IOT equipment based on double heavy chains.
The invention adopts the following technical scheme:
a data processing method of IOT equipment based on double heavy chains is applied to a system comprising a cloud server and a plurality of IOT equipment, wherein the cloud server is respectively connected with the IOT equipment, and the IOT equipment is divided into a plurality of groups; the data processing method comprises the following steps:
broadcasting the first hash value of each IOT device in the group to other IOT devices in the group to construct a single chain among the IOT devices in the group;
broadcasting the second hash value of the optional IOT device from each single chain to the optional IOT devices from the other single chains to construct the heavy chain of inter-group IOT devices;
performing data synchronization of the IOT devices in the group based on the single chain;
and performing data synchronization of the IOT devices among the groups based on the heavy chains.
Preferably, a plurality of IP pools are stored on the cloud server, and an IP address of the IOT device in the same group is stored in each IP pool;
the broadcasting the first hash value of each IOT device in the group to other IOT devices in the group to construct a single chain between IOT devices in the group, including:
each IOT device in the group acquires the IP addresses of other IOT devices in the group from the corresponding IP pool on the cloud server; broadcasting a first hash value uniquely corresponding to one IOT device to other IOT devices in the group; the other IOT devices in the group receive the broadcasted first hash value and respond to create a single chain.
Preferably, a plurality of IP pools are stored on the cloud server, and an IP address of the IOT device in the same group is stored in each IP pool;
the broadcasting the second hash value of the IOT device optional in each single chain to the IOT devices optional in other single chains to construct the heavy chain of the inter-group IOT device specifically includes:
one or more IOT devices are arbitrarily selected from any single chain to serve as external nodes, and one or more IP addresses are selected from other IP pools stored by the cloud server; broadcasting a second hash value uniquely corresponding to the selected IOT device to other groups of the selected IOT devices; the other group of selected IOT devices receives the broadcasted second hash value and responds to establish the heavy chain.
Preferably, the data synchronization of the IOT devices in the group based on the single chain includes:
the IOT equipment of a first data synchronization party sends a hash value verification request to other IOT equipment in the single chain; the other IOT equipment in the single chain compares the sent hash value with the stored first hash value of the IOT equipment of the first data synchronizer, and if the hash value is consistent with the stored first hash value, the IOT equipment of the first data synchronizer sends a verification passing response message to the IOT equipment of the first data synchronizer;
and the IOT equipment of the first data synchronizer counts the proportion of response messages passing the verification, and if the proportion is greater than or equal to a first preset value, the IOT equipment of the first synchronized party synchronizes data to the IOT equipment of the first synchronized party.
Preferably, the data synchronization of the IOT devices between groups based on the heavy chain comprises:
the IOT equipment of the second data synchronizer sends a hash value verification request to other IOT equipment in the heavy chain; the other IOT equipment in the heavy chain compares the sent hash value with a stored second hash value of the IOT equipment of the second data synchronizer, and if the hash value is consistent with the stored second hash value, the IOT equipment of the second data synchronizer sends a response message that the verification is passed to the IOT equipment of the second data synchronizer;
and the second data synchronizer IOT equipment counts the proportion of response messages passing the verification, and synchronizes data to the second synchronized IOT equipment if the proportion is greater than or equal to a second preset value.
Preferably, the synchronized IOT device includes one or more devices.
Preferably, the data processing method further includes:
and uploading the processing result of the dynamic updating data of the IOT equipment to the cloud server for storage by the IOT equipment.
Preferably, the data processing method further includes:
after uploading the processing result of the dynamic updating data of the IOT equipment to the cloud server, deleting the expired data according to a preset rule by the IOT equipment; the expiration data is set according to time.
Preferably, the method for generating the first hash value includes:
each IOT device in the group acquires a first device parameter of the IOT device and generates a first hash value based on the first device parameter of the IOT device; the first device parameter includes part or all of the IOT device unique identifier and/or the dynamic update data.
Preferably, the method for generating the second hash value includes:
the selected IOT equipment obtains the second equipment parameter of the selected IOT equipment, and generates a second hash value based on the second equipment parameter of the selected IOT equipment; the second device parameters include part or all of the selected IOT device unique identification and/or the dynamic update data.
As can be seen from the above description of the present invention, compared with the prior art, the present invention has the following advantages:
(1) the invention relates to a data processing method of IOT equipment based on double heavy chains, which is characterized in that a plurality of IOT equipment are grouped, and the IOT equipment in a group constructs a single chain, so that the data synchronization of the IOT equipment in the group is realized, namely, each IOT equipment in the group stores the initial data and the dynamic update data result of other IOT equipment, so that the data can be quickly recovered from any other IOT equipment after the IOT equipment in the group is tampered, the cloud server is not required to synchronize the data, and the space, the time and the flow are saved;
(2) according to the IOT equipment data processing method based on the double heavy chains, one or more IOT equipment is selected from each group to construct the heavy chains, so that data synchronization of the IOT equipment among the groups is realized, namely when the data of all the IOT equipment in the single chains are tampered, the data can be quickly recovered from other IOT equipment on the heavy chains without a cloud server, and the space, the time and the flow are saved;
(3) according to the data synchronization method, before data synchronization is carried out, other IOT equipment in the chain is required to verify the hash value, so that synchronization is carried out on the premise that data are not tampered, and data safety is guaranteed;
(4) according to the data processing method of the IOT equipment based on the double-heavy chain, only the latest data in the preset time is stored on the IOT equipment, and the historical data is stored on the cloud server, so that the load of the IOT equipment is reduced, and the data can be ensured not to be lost.
The above description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the description of the technical means more comprehensible.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
FIG. 1 is a system block diagram of an embodiment of the present invention;
FIG. 2 is a flow chart of a data processing method for a dual-heavy chain-based IOT device according to an embodiment of the present invention;
FIG. 3 is a schematic illustration of a constructed single strand of an embodiment of the invention;
FIG. 4 is a schematic representation of a constructed duplex according to an embodiment of the present invention;
fig. 5 is a flowchart of a data synchronization method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1 and 2, the method for processing data of an IOT device based on a dual-heavy chain is applied to a system including a cloud server and a plurality of IOT devices, wherein the cloud server is connected to the plurality of IOT devices respectively, and the IOT devices are divided into a plurality of groups; the data processing method comprises the following steps:
s101, broadcasting the first hash value of each IOT device in the group to other IOT devices in the group to construct a single chain among the IOT devices in the group;
s102, broadcasting the second hash value of the optional IOT device in each single chain to the optional IOT devices in other single chains to construct the heavy chain of the IOT devices among the groups;
s103, carrying out data synchronization of IOT equipment in the group based on the single chain;
and S104, performing data synchronization of the IOT devices among the groups based on the heavy chains.
The cloud server is provided with a plurality of IP pools, and each IP pool is provided with an IP address of the IOT equipment in the same group;
specifically, the step S101 of broadcasting the first hash value of each IOT device in the group to other IOT devices in the group to construct a single chain between the IOT devices in the group includes:
each IOT device in the group acquires the IP addresses of other IOT devices in the group from the corresponding IP pool on the cloud server; broadcasting a first hash value uniquely corresponding to one IOT device to other IOT devices in the group; the other IOT devices in the group receive the broadcasted first hash value and respond to create a single chain.
In this embodiment, the method for constructing the single chain includes two parts, which are an initial constructed chain and a dynamic updated chain.
The process of initially building the chain includes:
s201, each IOT device in the group acquires initial data of the IOT device;
specifically, the initial data includes a first device parameter of the IOT device, where the first device parameter at least includes a unique identifier of the IOT device, and may further include one or more of a production date, a manufacturer, a repair date, a model number, and the like. The initial data may be stored on the IOT device or on the cloud server.
S202, each IOT device acquires the IP addresses of other IOT devices from the IP pool on the cloud server.
Specifically, each IOT device is installed with a terminal device including a 4G module, and based on the terminal device, the IOT device can access the internet.
The cloud server stores the IP addresses of the IOT devices (terminal devices) interacting with the cloud server into an IP address pool, and each IOT device in the group can acquire the IP addresses of other IOT devices from the IP pool on the cloud server so as to carry out mutual communication and construct a single chain. In addition, when the IOT devices in the group change, for example, a new IOT device is added or an IOT device is deleted in the group, the cloud server adds or deletes the IP address, notifies other IOT devices in the group, and establishes or deletes a corresponding chain to perform data synchronization or to no longer perform data synchronization.
S203, each IOT device in the group generates a first hash value based on the first device parameter of the IOT device, and broadcasts the first hash value to other IOT devices in the group.
S204, each IOT device in the group receives the broadcasted first hash value and responds to establish a single chain.
Specifically, the generation of the first hash value may be based on any existing algorithm, which is not specifically described in the embodiments of the present invention, as long as the parameter of the hash function is the initial IOT device parameter.
The specific process of broadcasting may be implemented by sending a message to other IOT devices based on the obtained IP address. Specifically, any IOT device may send a request message for establishing a chain to other IOT devices in the group, where the request message includes the first hash value of the IOT device, and at the same time, includes a field indicating that a chain is established in the message; and other IOT devices in the group receive the first hash value and return response messages. When each IOT device in the group has the first hash value of the other IOT devices in the group, the initial build chain is successful.
Referring to FIG. 3, a group includes four IOT devices, which need to be grouped into a single chain. During initialization, the cloud server stores the IP addresses of the four IOT devices in an IP pool, and each IOT device acquires the IP addresses of the other three IOT devices. In the subsequent interaction process, each IOT device generates a respective hash value based on the initial IOT device parameter and broadcasts the hash value to other IOT devices, and when receiving confirmation messages replied by the other three IOT devices, it indicates that the IOT device broadcasts the first hash value successfully, that is, the link establishment is completed.
It should be noted that the initial building chain is described by calculating the first hash value on each IOT device. In actual application, the first hash value may be calculated by the cloud server and then sent to the corresponding IOT device, and then the corresponding IOT device broadcasts to other forklifts in the group, or the cloud server broadcasts directly to all IOT devices in the group.
In this embodiment, since data of each IOT device may change, in order to further ensure the security of the data, when the IOT device has data that changes, a single-chain dynamic update needs to be performed, where the process of the dynamic update chain includes:
s301, when data of a certain IOT device in the group changes, a new first hash value is calculated based on the dynamic forklift parameters and is broadcasted to all IOT devices in the group.
S302, each IOT device in the group receives the broadcast new first hash value and responds to establish a single chain.
Specifically, the dynamic forklift parameter at least includes a forklift unique identifier, and may also include part or all of dynamically updated data.
Specifically, the generation of the new first hash value may be based on any existing algorithm, and may be consistent with or inconsistent with the foregoing calculation method of the initial first hash value.
The specific process of broadcasting may be implemented by sending a message to all IOT devices in the group based on the IP addresses stored in the IP address pool. Specifically, the data update IOT device may send a request message for updating the single chain to other IOT devices in the group, where the request message includes a new first hash value of the data update IOT device, and at the same time, includes a field indicating establishment of the chain in the message; the other IOT devices in the group receive the new first hash value and return response messages.
It should be noted that the above process of dynamically updating the chain is described by calculating the first hash value on each IOT device. In actual application, the first hash value may be calculated by the cloud server and then sent to the corresponding IOT device, and then the corresponding IOT device broadcasts to other forklifts in the group, or the cloud server broadcasts directly to all IOT devices in the group.
Specifically, the S102 broadcasts the second hash value of the optional IOT device in each single chain to the optional IOT devices in other single chains to construct the heavy chain of the inter-group IOT device, including:
one or more IOT devices are arbitrarily selected from any single chain to serve as external nodes, and one or more IP addresses are selected from other IP pools stored by the cloud server; broadcasting a second hash value uniquely corresponding to the selected IOT device to other groups of the selected IOT devices; the other group of selected IOT devices receives the broadcasted second hash value and responds to establish the heavy chain.
In general, one IOT device is selected from each single chain as a node for constructing the heavy chain. For some application scenarios, in order to further ensure the security of data, two or three IOT devices may be selected from each single chain as nodes for constructing the heavy chain, so that it may be ensured that when a problem occurs in one pair of external nodes, the external nodes may be switched to another pair of external nodes. Problems that may arise include hardware damage, slow node network speeds, or heavy node tasks. For example, two external nodes a1 and B1 are selected on a C1 chain, two external nodes a2 and B2 are selected on a C2 chain, and a1 and a2 constitute one chain, but B1 needs to keep heartbeat with a2 and B2, B2 needs to keep heartbeat with a1 and B1, when the a1 node cannot communicate with a2 within a certain time, the node is switched to B1, at this time, it is considered that a1 has a fault, and B1 replaces the position of a 1.
Further, the above construction method of the re-chain may also include two parts, namely an initial construction chain and a dynamic update chain, and the specific implementation process is consistent with the construction method of the single chain, and will not be described repeatedly here.
Referring to fig. 4, the IOT devices are divided into two groups, each group includes four IOT devices, and the four IOT devices in the two groups respectively construct a single chain. After the single chains are constructed, selecting an IOT equipment node (IOT-1 and IOT-2-1) from each single chain to construct the heavy chain, specifically, the IOT-1 and the IOT-2-1 send the respectively calculated second hash value to the opposite side, and when receiving a confirmation message replied by the opposite side, the fact that the sending of the second hash value is successful indicates that the construction of the heavy chain is completed.
Specifically, the S103 performs data synchronization of the IOT devices in the group based on the single chain, including:
s401, the IOT equipment of the first data synchronization party sends a hash value verification request to other IOT equipment in the single chain; the other IOT equipment in the single chain compares the sent hash value with the stored first hash value of the IOT equipment of the first data synchronizer, and if the hash value is consistent with the stored first hash value, the IOT equipment of the first data synchronizer sends a verification passing response message to the IOT equipment of the first data synchronizer;
s402, the IOT equipment of the first data synchronizer counts the proportion of response messages passing the verification, and if the proportion is larger than or equal to a first preset value, the IOT equipment of the first synchronized party synchronizes data.
Referring to FIG. 3, if IOT-1 has data changed, IOT-1 is the IOT device of the first data synchronizer; IOT-2, IOT-3 and IOT-4 are first synchronized IOT devices; IOT-1 synchronizes the change data to IOT-2, IOT-3 and IOT-4.
Specifically, referring to fig. 5, a specific flow of synchronizing data from the IOT device a to the IOT device B is shown, where the first preset value is 50%, and is specifically set according to actual needs.
Specifically, the S104 performs data synchronization of the inter-group IOT device based on the heavy chain, including:
s501, the IOT device of the second data synchronizer sends a hash value verification request to other IOT devices in the heavy chain; the other IOT equipment in the heavy chain compares the sent hash value with a stored second hash value of the IOT equipment of the second data synchronizer, and if the hash value is consistent with the stored second hash value, the IOT equipment of the second data synchronizer sends a response message that the verification is passed to the IOT equipment of the second data synchronizer;
s502, the second data synchronizer IOT equipment counts the proportion of response messages passing the verification, and if the proportion is larger than or equal to a second preset value, the data are synchronized to the second synchronized IOT equipment.
Referring to FIG. 4, if IOT-1 has data changed, IOT-1 is the second data synchronizer IOT device; IOT-2-1 is a second synchronized IOT device; IOT-1 synchronizes the change data to IOT-2-1.
When the intra-group IOT device data synchronization is performed based on a single chain and the inter-group IOT device data synchronization is performed based on a heavy chain, the synchronized IOT device includes one or more devices. The above-described verification process of the hash value needs to be performed only once if the synchronizer IOT device needs to synchronize data to all other IOT devices in the single chain or heavy chain at the same time. If the synchronizing IOT device needs to synchronize data to other IOT devices in a single chain or heavy chain at different times, verification of the hash value is required before each synchronization, even if the same data is synchronized.
In this embodiment, the data processing method further includes:
and uploading the processing result of the dynamic updating data of the IOT equipment to the cloud server for storage by the IOT equipment. That is, data on each IOT device is not only synchronously saved to other IOT devices in the single chain or the heavy chain, but also needs to be saved to the cloud server.
Further, the data processing method further includes:
after uploading the processing result of the dynamic updating data of the IOT equipment to the cloud server, deleting the expired data according to a preset rule by the IOT equipment; the expiration data is set according to time.
For example, only data within a preset time (e.g., about 1 year) is stored on the IOT device, other data of historical data for more than 1 year is deleted, and when the deleted data is needed, the data is obtained by the cloud server, so that the data is not lost.
Finally, it should be further noted that, in the present embodiment, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. In addition, the above step identifiers are only for convenience of reading, and the steps can be correspondingly adjusted in specific implementation.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A data processing method of IOT equipment based on double heavy chains is characterized in that the method is applied to a system comprising a cloud server and a plurality of IOT equipment, wherein the cloud server is respectively connected with the IOT equipment, and the IOT equipment is divided into a plurality of groups; the data processing method comprises the following steps:
broadcasting the first hash value of each IOT device in the group to other IOT devices in the group to construct a single chain among the IOT devices in the group;
broadcasting the second hash value of the optional IOT device from each single chain to the optional IOT devices from the other single chains to construct the heavy chain of inter-group IOT devices;
performing data synchronization of the IOT devices in the group based on the single chain;
performing data synchronization of the inter-group IOT devices based on the heavy chain;
the cloud server is provided with a plurality of IP pools, and each IP pool is provided with an IP address of the IOT equipment in the same group;
the broadcasting the first hash value of each IOT device in the group to other IOT devices in the group to construct a single chain between IOT devices in the group, including:
each IOT device in the group acquires the IP addresses of other IOT devices in the group from the corresponding IP pool on the cloud server; broadcasting a first hash value uniquely corresponding to one IOT device to other IOT devices in the group; receiving the broadcasted first hash value by other IOT equipment in the group and responding to establish a single chain;
the broadcasting the second hash value of the IOT device optional in each single chain to the IOT devices optional in other single chains to construct the heavy chain of the inter-group IOT device specifically includes:
one or more IOT devices are arbitrarily selected from any single chain to serve as external nodes, and one or more IP addresses are selected from other IP pools stored by the cloud server; broadcasting a second hash value uniquely corresponding to the selected IOT device to other groups of the selected IOT devices; the other group of selected IOT devices receives the broadcasted second hash value and responds to establish the heavy chain.
2. The method of claim 1, wherein synchronizing data of IOT devices within a group based on the single chain comprises:
the IOT equipment of a first data synchronization party sends a hash value verification request to other IOT equipment in the single chain; the other IOT equipment in the single chain compares the sent hash value with the stored first hash value of the IOT equipment of the first data synchronizer, and if the hash value is consistent with the stored first hash value, the IOT equipment of the first data synchronizer sends a verification passing response message to the IOT equipment of the first data synchronizer;
and the IOT equipment of the first data synchronizer counts the proportion of response messages passing the verification, and if the proportion is greater than or equal to a first preset value, the IOT equipment of the first synchronized party synchronizes data to the IOT equipment of the first synchronized party.
3. The method of claim 1, wherein the data synchronization of the IOT devices between groups based on the heavy chain comprises:
the IOT equipment of the second data synchronizer sends a hash value verification request to other IOT equipment in the heavy chain; the other IOT equipment in the heavy chain compares the sent hash value with a stored second hash value of the IOT equipment of the second data synchronizer, and if the hash value is consistent with the stored second hash value, the IOT equipment of the second data synchronizer sends a response message that the verification is passed to the IOT equipment of the second data synchronizer;
and the second data synchronizer IOT equipment counts the proportion of response messages passing the verification, and synchronizes data to the second synchronized IOT equipment if the proportion is greater than or equal to a second preset value.
4. The dual-heavy-chain-based IOT device data processing method according to claim 2 or 3, wherein the synchronized IOT device comprises one or more.
5. The dual heavy chain-based IOT device data processing method in accordance with claim 1, further comprising:
and uploading the processing result of the dynamic updating data of the IOT equipment to the cloud server for storage by the IOT equipment.
6. The dual heavy chain-based IOT device data processing method in accordance with claim 5, further comprising:
after uploading the processing result of the dynamic updating data of the IOT equipment to the cloud server, deleting the expired data according to a preset rule by the IOT equipment; the expiration data is set according to time.
7. The dual-heavy-chain-based IOT device data processing method according to claim 1, wherein the generating of the first hash value comprises:
each IOT device in the group acquires a first device parameter of the IOT device and generates a first hash value based on the first device parameter of the IOT device; the first device parameter includes part or all of the IOT device unique identifier and/or the dynamic update data.
8. The dual-heavy-chain-based IOT device data processing method according to claim 1, wherein the second hash value generation method comprises:
the selected IOT equipment obtains the second equipment parameter of the selected IOT equipment, and generates a second hash value based on the second equipment parameter of the selected IOT equipment; the second device parameters include part or all of the selected IOT device unique identification and/or the dynamic update data.
CN201910098923.8A 2019-01-31 2019-01-31 IOT equipment data processing method based on double heavy chains Active CN110324395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910098923.8A CN110324395B (en) 2019-01-31 2019-01-31 IOT equipment data processing method based on double heavy chains

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910098923.8A CN110324395B (en) 2019-01-31 2019-01-31 IOT equipment data processing method based on double heavy chains

Publications (2)

Publication Number Publication Date
CN110324395A CN110324395A (en) 2019-10-11
CN110324395B true CN110324395B (en) 2022-04-19

Family

ID=68112683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910098923.8A Active CN110324395B (en) 2019-01-31 2019-01-31 IOT equipment data processing method based on double heavy chains

Country Status (1)

Country Link
CN (1) CN110324395B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0002390A1 (en) * 1977-12-05 1979-06-13 International Business Machines Corporation Method for cryptographic file security in multiple domain data processing systems
CN101860559A (en) * 2009-04-08 2010-10-13 中兴通讯股份有限公司 Peer-to-peer network and resource information backup operation method based on same
WO2013033259A2 (en) * 2011-08-29 2013-03-07 Viewphone.Com Llc Systems and methods for a video sharing social network
CN103226561A (en) * 2012-01-26 2013-07-31 阿普赛尔有限公司 Content addressable stores based on sibling groups
CN103873501A (en) * 2012-12-12 2014-06-18 华中科技大学 Cloud backup system and data backup method thereof
CN105228157A (en) * 2015-09-16 2016-01-06 华东师范大学 A kind of wireless sensor network security light weight reprogramming method
CN105868045A (en) * 2015-01-21 2016-08-17 中国移动通信集团陕西有限公司 Data caching method and apparatus
CN205809860U (en) * 2016-06-15 2016-12-14 成都云祺科技有限公司 A kind of virtual machine backup and recovery system
CN106357808A (en) * 2016-10-25 2017-01-25 广东欧珀移动通信有限公司 Data synchronization method and device
CN107133334A (en) * 2017-05-15 2017-09-05 成都优孚达信息技术有限公司 Method of data synchronization based on high bandwidth storage system
CN107171794A (en) * 2017-06-27 2017-09-15 葛峰 A kind of electronic document based on block chain and intelligent contract signs method
CN108829539A (en) * 2018-06-08 2018-11-16 中国联合网络通信集团有限公司 Data backup, data reconstruction method and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015153667A2 (en) * 2014-03-31 2015-10-08 Gopro, Inc. Distributed video processing and selective video upload in a cloud environment
US10678654B2 (en) * 2016-10-26 2020-06-09 Acronis International Gmbh Systems and methods for data backup using data binning and deduplication

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0002390A1 (en) * 1977-12-05 1979-06-13 International Business Machines Corporation Method for cryptographic file security in multiple domain data processing systems
CN101860559A (en) * 2009-04-08 2010-10-13 中兴通讯股份有限公司 Peer-to-peer network and resource information backup operation method based on same
WO2013033259A2 (en) * 2011-08-29 2013-03-07 Viewphone.Com Llc Systems and methods for a video sharing social network
CN103226561A (en) * 2012-01-26 2013-07-31 阿普赛尔有限公司 Content addressable stores based on sibling groups
CN103873501A (en) * 2012-12-12 2014-06-18 华中科技大学 Cloud backup system and data backup method thereof
CN105868045A (en) * 2015-01-21 2016-08-17 中国移动通信集团陕西有限公司 Data caching method and apparatus
CN105228157A (en) * 2015-09-16 2016-01-06 华东师范大学 A kind of wireless sensor network security light weight reprogramming method
CN205809860U (en) * 2016-06-15 2016-12-14 成都云祺科技有限公司 A kind of virtual machine backup and recovery system
CN106357808A (en) * 2016-10-25 2017-01-25 广东欧珀移动通信有限公司 Data synchronization method and device
CN107133334A (en) * 2017-05-15 2017-09-05 成都优孚达信息技术有限公司 Method of data synchronization based on high bandwidth storage system
CN107171794A (en) * 2017-06-27 2017-09-15 葛峰 A kind of electronic document based on block chain and intelligent contract signs method
CN108829539A (en) * 2018-06-08 2018-11-16 中国联合网络通信集团有限公司 Data backup, data reconstruction method and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Incentive Mechanism of Data Storage Based on Blockchain for Wireless Sensor Networks";Yongjun Ren等;《Mobile Information Systems》;20180829;第1-2页 *
"基于多目标优化的云存储副本分布策略的研究";张华伟 李志华;《万方数据库》;20151021;第44-50页 *

Also Published As

Publication number Publication date
CN110324395A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
CN107295080B (en) Data storage method applied to distributed server cluster and server
US10057130B2 (en) D2HCP protocol in ad hoc networks: merging of sub-networks and address conflict resolution
CN104320459A (en) Node management method and device
US20120290674A1 (en) Method and network for sharing sensor data among mobile terminals
CN113572835B (en) Data processing method, network element equipment and readable storage medium
CN107231400B (en) Data synchronization method and device
CN104468231A (en) SDN interchanger and controller dynamic registration method
CN105827439A (en) Method for realizing wireless device ad hoc network
CN110445657B (en) Distributed networking management system based on block chain
CN107547374B (en) Aggregation route processing method and device
GB2505230B (en) Leader node appointment
CN110213359B (en) Internet of vehicles networking data pushing system and method based on D2D
JP6555445B1 (en) Time synchronization system, time master, management master, and time synchronization method
CN112947333B (en) Socket long connection-based balanced load fragmentation method
CN110324395B (en) IOT equipment data processing method based on double heavy chains
CN111682968B (en) Network access management method and system for communication equipment
CN103812957A (en) Method and device for managing ARP (Address Resolution Protocol) records
US10931529B2 (en) Terminal device management method, server, and terminal device for managing terminal devices in local area network
CN112243139B (en) Program distribution synchronization method and system of multimedia terminal
CN109257448B (en) Session information synchronization method and device, electronic equipment and storage medium
CN110888892A (en) Block synchronization method, device and storage medium
CN105141687A (en) Message producing method
CN112702361B (en) Safety blocking method, device and equipment based on lightweight distributed cooperative equipment
CN103997518A (en) CDN-node file synchronization method and device
CN114979139A (en) Management system and method of heterogeneous virtual gateway in edge computing scene

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