CN107770182B - Data storage method of home gateway and home gateway - Google Patents
Data storage method of home gateway and home gateway Download PDFInfo
- Publication number
- CN107770182B CN107770182B CN201711033636.6A CN201711033636A CN107770182B CN 107770182 B CN107770182 B CN 107770182B CN 201711033636 A CN201711033636 A CN 201711033636A CN 107770182 B CN107770182 B CN 107770182B
- Authority
- CN
- China
- Prior art keywords
- data
- stored
- block information
- home gateway
- home
- 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
Links
- 238000013500 data storage Methods 0.000 title claims abstract description 86
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004891 communication Methods 0.000 claims description 28
- 230000010365 information processing Effects 0.000 claims description 24
- 238000012795 verification Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 230000002452 interceptive effect Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000007796 conventional method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/0442—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0876—Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/101—Access control lists [ACL]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic 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/3297—Cryptographic 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 involving time stamps, e.g. generation of time stamps
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The data storage method of the home gateway and the home gateway provided by the invention receive a data storage request sent by a terminal through the home gateway, wherein the storage request comprises data to be stored; the home gateway respectively generates a private key and a first public key according to the data to be stored and a preset algorithm, encrypts the data to be stored by using the private key and adds a timestamp to generate and store first block information of the data to be stored; the home gateway broadcasts the first block information and the first public key of the data to be stored to other home gateways in a block chain network to which the home gateway is connected, so that the other home gateways analyze the first block information according to the first public key, and the analyzed first block information is stored after a timestamp is added, so that the data to be stored uploaded by the terminal can be stored in the block chain network in the form of the block information, the data safety is improved, and the problem of data loss caused by the fact that the home gateway is attacked is avoided.
Description
Technical Field
The present invention relates to data storage technologies, and in particular, to a data storage method for a home gateway and a home gateway.
Background
With the development of home internet technology in recent years, various intelligent devices can be connected with a home gateway and surf the internet through a service network or the internet of an operator borne by the home gateway.
The existing management of intelligent devices connected to a home gateway generally adopts a centralized storage scheme. Specifically, in the data storage process, the home gateway serves as a unique data storage center to receive and store operation data or state information or communication data of various intelligent devices connected with the home gateway.
However, in the process of storing data by using the home gateway, the security performance of the home gateway is poor, and once the home gateway is broken, the data stored in the home gateway is easily lost, which is very unfavorable for the user.
Disclosure of Invention
The invention provides a data storage method of a home gateway and the home gateway, aiming at the technical problem that data is easy to lose due to low security performance of the home gateway when the existing home gateway is used for storing data.
In one aspect, the present invention provides a data storage method for a home gateway, including:
the home gateway receives a data storage request sent by a terminal, wherein the storage request comprises data to be stored;
the home gateway respectively generates a private key and a first public key according to the data to be stored and a preset algorithm, encrypts the data to be stored by using the private key, adds a timestamp, and generates and stores first block information of the data to be stored;
the home gateway broadcasts the first block information of the data to be stored and the first public key to other home gateways in a block chain network connected with the home gateway, so that the other home gateways analyze the first block information according to the first public key and store the analyzed first block information after adding a timestamp.
In an optional embodiment, in order to improve the storage efficiency of the home gateway, the data storage request further includes a privacy level identifier corresponding to the data to be stored;
correspondingly, after the home gateway receives the data storage request sent by the terminal, the method further includes:
judging whether the data to be stored is private data or not according to the privacy level identification of the data to be stored;
if so, the home gateway executes the steps of respectively generating a private key and a first public key according to the data to be stored and a preset algorithm, encrypting the data to be stored by using the private key, adding a timestamp, and generating and storing first block information of the data to be stored;
if not, the home gateway adds a timestamp to the data to be stored, generates and stores first block information of the data to be stored, and broadcasts the first block information to other home gateways in the block chain network so that the other home gateways store the first block information.
In an optional embodiment, in order to further improve data storage security, the data storage request further includes a terminal identifier;
correspondingly, after the home gateway receives the data storage request sent by the terminal, the method further includes:
and verifying the legality of the terminal according to the terminal identifier and a pre-stored identifier list.
In an optional implementation manner, when the home gateway receives second block information and a second public key broadcast by other home gateways in the block chain network, the second block information is analyzed according to the second public key, and a timestamp is added to the analyzed second block information for storage.
In an optional embodiment, in order to facilitate the terminal to obtain the storage data, after the home gateway respectively generates the private key and the first public key according to the data to be stored and a preset algorithm, the method further includes:
and the home gateway sends the private key to the terminal.
In an alternative embodiment, the predetermined algorithm is a hash algorithm.
In another aspect, the present invention further provides a home gateway, including:
the communication module is used for receiving a data storage request sent by a terminal, wherein the storage request comprises data to be stored; the home gateway is further configured to broadcast the first block information of the data to be stored and the first public key to other home gateways in a block chain network to which the home gateway is connected, so that the other home gateways analyze the first block information according to the first public key and store the first block information after adding a timestamp;
and the block information processing module is used for respectively generating a private key and a first public key according to the data to be stored and a preset algorithm, and the home gateway encrypts the data to be stored by using the private key and adds a timestamp to generate and store first block information of the data to be stored.
In an optional embodiment, in order to improve the storage efficiency of the home gateway, the data storage request further includes a privacy level identifier corresponding to the data to be stored;
correspondingly, the block information processing module is further configured to, after the communication module receives a data storage request sent by a terminal, determine whether the data to be stored is private data according to the privacy level identifier of the data to be stored; if the data to be stored is private data, the block information processing module respectively generates a private key and a first public key according to a preset algorithm, encrypts the data to be stored by using the private key and adds a timestamp to generate and store first block information of the data to be stored; if the data to be stored is not private data, the block information processing module generates a first public key according to a preset algorithm, adds a timestamp to the data to be stored, and generates and stores first block information of the data to be stored. Correspondingly, the block information processing module is further configured to, after the communication module receives a data storage request sent by a terminal, determine whether the data to be stored is private data according to the privacy level identifier of the data to be stored; if the data to be stored is private data, the block information processing module respectively generates a private key and a first public key according to a preset algorithm, encrypts the data to be stored by using the private key and adds a timestamp to generate and store first block information of the data to be stored; if the data to be stored is not private data, the block information processing module adds a timestamp to the data to be stored, generates and stores first block information of the data to be stored
Correspondingly, the communication module is further configured to broadcast the first block information to other home gateways in the block chain network if the data to be stored is not private data, so that the other home gateways store the first block information.
In an optional embodiment, in order to further improve data storage security, the data storage request further includes a terminal identifier; correspondingly, the home gateway further comprises an authentication module;
and the verification module is used for verifying the legality of the terminal according to the terminal identifier and a pre-stored identifier list.
In an optional embodiment, the communication module is further configured to receive second tile information and a second public key broadcast by other home gateways in the blockchain network;
the block information processing module is further configured to analyze the second block information according to the second public key, and store the analyzed second block information after adding a timestamp.
The data storage method of the home gateway and the home gateway provided by the invention receive a data storage request sent by a terminal through the home gateway, wherein the storage request comprises data to be stored; the home gateway respectively generates a private key and a first public key according to the data to be stored and a preset algorithm, encrypts the data to be stored by using the private key and adds a timestamp to generate and store first block information of the data to be stored; the home gateway broadcasts the first block information of the data to be stored and the first public key to other home gateways in a block chain network connected with the home gateway, so that the other home gateways analyze the first block information according to the first public key and store the analyzed first block information after adding a timestamp, and therefore the data to be stored uploaded by the terminal can be stored in the block chain network by forming the block information, data safety is improved, and the problem of data loss caused by the fact that the home gateway is attacked is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic diagram of a network architecture according to the present invention;
fig. 2 is a schematic flowchart of a data storage method of a home gateway according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a data storage method of a home gateway according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a home gateway according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a home gateway according to a fourth embodiment of the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
With the development of home internet technology in recent years, various intelligent devices can be connected with a home gateway and surf the internet through a service network or the internet of an operator borne by the home gateway. The existing management of intelligent devices connected to a home gateway generally adopts a centralized storage scheme. Specifically, in the data storage process, the home gateway serves as a unique data storage center to receive and store operation data or state information or communication data of various intelligent devices connected with the home gateway. However, in the process of storing data by using the home gateway, the security performance of the home gateway is poor, and once the home gateway is broken, the data stored in the home gateway is easily lost, which is very unfavorable for the user.
In order to solve the problem that data stored in a single home gateway is easy to lose, a plurality of home gateways can be interconnected, and the data storage is realized by using a block chain technology. Fig. 1 is a schematic diagram of a network architecture provided by the present invention, and both the data storage method of the home network and the home gateway provided by the present invention are applicable to the architecture shown in fig. 1. Specifically, the blockchain is a chained data structure formed by sequentially connecting data blocks according to a time sequence, and can be used for decentralized data storage, as shown in fig. 1, in the network architecture used in the present invention, the blockchain network is composed of a plurality of interconnected home gateways, and each home gateway is in communication connection with each smart home device in a home. Each embodiment of the present invention will specifically describe a data storage method for any one of the home gateways, and the data storage methods for other home gateways in the block chain network are similar to the data storage method for the home gateway in the embodiment.
It is noted that the exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic flowchart of a data storage method of a home gateway according to an embodiment of the present invention, and as shown in fig. 2, the data storage method of the home gateway according to the embodiment includes:
Specifically, the terminal may be a home device such as an intelligent air conditioner, an intelligent refrigerator, and an intelligent lighting lamp shown in fig. 1, or an interactive terminal device such as a mobile phone terminal, a computer device, and a mobile tablet computer, and the entity of the home gateway may be a WLAN terminal, a router, or another terminal device that can be used for carrying a service network or internet service. The terminal can be connected to the home gateway through a wireless communication mode such as a wireless local area network or a wired communication mode such as a wired connection, and sends a data storage request including data to be stored to the home gateway according to a user instruction or a preset program, where the data to be stored may specifically be digital data, byte data, or text data, and the content of the data to be stored may relate to communication signaling and messages, media files, interactive instructions, and the like.
And 102, respectively generating a private key and a first public key by the home gateway according to the data to be stored and a preset algorithm, encrypting the data to be stored by using the private key, adding a timestamp, and generating and storing first block information of the data to be stored.
Specifically, after receiving the data storage request, the home gateway may generate a private key and a first public key corresponding to the data to be stored according to a preset algorithm and the data to be stored, then may encrypt the data to be stored by using the generated private key, add a timestamp to the encrypted data to be stored, generate first block information corresponding to the data to be stored, and store the first block information. It is to be appreciated that the predetermined algorithm may be a hash algorithm, and the encryption may be implemented by any conventional method.
Specifically, since the home gateway is connected to the local area link network, the home gateway may send the first block information and the first public key corresponding to the data to be stored to each other home gateway in the local area link network in a broadcast manner. After receiving the broadcast, the other home gateways may analyze the first block information using the received first public key, and store the analyzed first block information after adding a timestamp.
Through the processing mode, on one hand, the data to be stored, which are sent to the home gateway by the terminal, can be stored in each home gateway in the block chain network in a distributed manner, so that the data stored in a single home gateway is prevented from being lost easily; on the other hand, each home gateway needs to add a timestamp when operating the data to be stored or the corresponding block information, so that the operation process of the home gateway is controllable, the data information is prevented from being deleted or tampered when the home gateway is broken or controlled by a hacker, and the safety is also improved.
In other optional embodiments, in order to further improve the data storage security, the data storage request further includes a terminal identifier; correspondingly, after the home gateway receives the data storage request sent by the terminal in step 101, the method further includes: and verifying the legality of the terminal according to the terminal identifier and a pre-stored identifier list.
Specifically, when the terminal sends a data storage request to the home gateway, the data storage request may further include a terminal identifier. For example, if the terminal is an interactive terminal device, the terminal identifier may be an international mobile equipment identity code, a media access address, or the like, which can be used to represent and distinguish the terminal identity. The preset identifier list may be a terminal identifier preset in the home gateway, which may be used to indicate a trusted terminal that is allowed to access the home gateway or to connect to the home gateway.
In other optional embodiments, in order to facilitate the terminal to obtain the storage data, after the home gateway generates the private key and the first public key according to the data to be stored and a preset algorithm in step 102, the method further includes: the home gateway sends the private key to the terminal. The private key is sent to the terminal, so that the terminal can use the private key to send a data reading request to the home gateway and the connected block chain gateway, and the reading of the stored data is realized.
In another optional embodiment, when the home gateway receives the second block information and the second public key broadcast by other home gateways in the block chain network, the second block information is analyzed according to the second public key, and the analyzed second block information is stored after adding a timestamp.
Specifically, in the data storage method of the home gateway according to this embodiment, the home gateway may also be configured to store data information generated by other home gateways in the block networking network, that is, when the home gateway receives second block information and a second public key broadcast by other home gateways, the home gateway may analyze the second block according to the second public key, and store the second block information after adding a timestamp to the analyzed second block information.
The data storage method of the home gateway provided by the embodiment of the invention receives a data storage request sent by a terminal through the home gateway, the storage request comprises data to be stored, the home gateway respectively generates a private key and a first public key according to the data to be stored and a preset algorithm, the home gateway encrypts the data to be stored by using the private key and adds a timestamp to generate and store first block information of the data to be stored, the home gateway broadcasts the first block information and the first public key of the data to be stored to other home gateways in a block chain network connected with the home gateway so that the other home gateways analyze the first block information according to the first public key and store the analyzed first block information after adding the timestamp, thereby enabling the data to be stored uploaded by the terminal to be stored in the block chain network in the form of block information and further improving data security, the problem of data loss caused by the attack on the home gateway is avoided.
To further increase the storage processing speed in the home gateway, on the basis of the embodiments provided in the first embodiment, fig. 3 is a schematic flow diagram of a data storage method of the home gateway provided in the second embodiment of the present invention.
As shown in fig. 3, the method includes:
Similar to the embodiment, the terminal may be a home device such as the intelligent air conditioner, the intelligent refrigerator, the intelligent lighting lamp and the like shown in fig. 1, or an interactive terminal device such as a mobile phone terminal, a computer device, a mobile tablet computer and the like, and the entity of the home gateway may be a WLAN terminal, a router or other terminal devices that can be used for carrying a service network or carrying an internet service. The terminal can be connected to the home gateway through a wireless communication mode such as a wireless local area network or a wired communication mode such as a wired connection, and sends a data storage request including data to be stored to the home gateway according to a user instruction or a preset program, where the data to be stored may specifically be digital data, byte data, or text data, and the content of the data to be stored may relate to communication signaling and messages, media files, interactive instructions, and the like.
Different from the first embodiment, in the second embodiment, the data storage request further includes a privacy level identifier corresponding to the data to be stored, where the privacy level identifier is specifically determined according to keyword information carried in data content of the data to be stored, and if the data to be stored carries keywords such as "password", "account", "amount" and the like or keyword related information, the terminal may identify the privacy level identifier corresponding to the data to be stored when initiating the data storage request, so that the home gateway determines that the data to be stored is the privacy data. In addition, the privacy level identifier may also be determined according to the type of the terminal itself, and if the terminal is a device carrying personal information of a user, such as a body index measuring instrument or a password input device, the privacy level identifiers corresponding to all data to be stored sent by the terminal may be set as identified.
And 203, respectively generating a private key and a first public key according to the data to be stored and a preset algorithm, encrypting the data to be stored by using the private key and adding a timestamp to the data to be stored by using the home gateway, and generating and storing first block information of the data to be stored.
Step 204, broadcasting the first block information and the first public key of the data to be stored to other home gateways in the block chain network, so that the other home gateways analyze the first block information according to the first public key, and store the analyzed first block information after adding a timestamp.
Specifically, unlike the first embodiment, in steps 202 to 205, since the data storage request received by the home gateway includes the privacy level identifier corresponding to the data to be stored, it may determine whether the data to be stored is private data according to the privacy level identifier.
When the data to be stored is private data, a private key and a first public key corresponding to the data to be stored can be generated according to a preset algorithm and the data to be stored, then, the generated private key can be used for encrypting the data to be stored, a timestamp is added to the encrypted data to be stored, first block information corresponding to the data to be stored is generated, and the first block information is stored. Then, since the home gateway is connected to the local area link network, the home gateway can send the first block information and the first public key corresponding to the data to be stored to other home gateways in the block link network in a broadcast manner. After receiving the broadcast, the other home gateways may analyze the first block information using the received first public key, and store the analyzed first block information after adding a timestamp. It is to be appreciated that the predetermined algorithm may be a hash algorithm, and the encryption may be implemented by any conventional method.
When the data to be stored is not private data, a timestamp can be directly added to the data to be stored, first block information corresponding to the data to be stored is generated, and the first block information is stored. Then, since the home gateway is connected to the local area link network, the home gateway can send the first block information corresponding to the data to be stored to other home gateways in the block link network in a broadcast manner. These other home gateways may store the first tile information directly after receiving the broadcast.
Therefore, in the above embodiment, because the privacy level identifier of the data to be stored in the data storage request sent by the terminal is used, the home gateway further determines whether the data to be stored is the privacy data, and executes different storage steps according to the determination result. Through the processing, the storage process of the non-private data is simplified under the condition that the security of the private data is not affected, and therefore the storage processing efficiency of the data to be stored is effectively improved.
In other optional embodiments, in order to further improve the data storage security, the data storage request further includes a terminal identifier; correspondingly, after the home gateway receives the data storage request sent by the terminal in step 201, the method further includes: and verifying the legality of the terminal according to the terminal identifier and a pre-stored identifier list.
In other optional embodiments, in order to facilitate the terminal to obtain the storage data, after the home gateway generates the private key and the first public key according to the data to be stored and the preset algorithm in step 203, the method further includes: the home gateway sends the private key to the terminal so that the terminal can analyze the first block information obtained after sending the reading request to the home gateway by using the private key.
In other optional embodiments, when the home gateway receives second block information and a second public key broadcast by other home gateways in the block chain network, analyzing the second block information according to the second public key, and adding a timestamp to the analyzed second block information for storage; or when the home gateway receives the second block information broadcast by other home gateways in the block chain network, the second block information is directly stored after being added with the time stamp.
The data storage method of the home gateway provided by the second embodiment of the present invention is based on the first embodiment, and further determines whether the data to be stored is private data according to the privacy level identifier of the data to be stored in the data storage request sent by the terminal, and executes different storage steps according to the determination result. Through the processing, the storage process of the non-private data is simplified under the condition that the security of the private data is not affected, and therefore the storage processing efficiency of the data to be stored is effectively improved.
To solve the above-mentioned technical problem that data is easily lost due to low security performance of a home gateway when the existing home gateway is used to store data, fig. 4 is a schematic structural diagram of a home gateway provided in a third embodiment of the present invention, as shown in fig. 4, the home gateway includes:
the communication module 10 is configured to receive a data storage request sent by a terminal, where the storage request includes data to be stored; the home gateway is further configured to broadcast the first block information of the data to be stored and the first public key to other home gateways in a block chain network to which the home gateway is connected, so that the other home gateways analyze the first block information according to the first public key and store the first block information after adding a timestamp;
and the block information processing module 20 is configured to generate a private key and a first public key according to the data to be stored and a preset algorithm, encrypt the data to be stored by using the private key, add a timestamp, and generate and store first block information of the data to be stored.
In an optional embodiment, in order to improve the storage efficiency of the home gateway, the data storage request further includes a privacy level identifier corresponding to the data to be stored;
correspondingly, the block information processing module 20 is further configured to, after the communication module receives a data storage request sent by a terminal, determine whether the data to be stored is private data according to the privacy level identifier of the data to be stored; if the data to be stored is private data, the block information processing module respectively generates a private key and a first public key according to a preset algorithm, encrypts the data to be stored by using the private key and adds a timestamp to generate and store first block information of the data to be stored; if the data to be stored is not private data, the block information processing module adds a timestamp to the data to be stored, and generates and stores first block information of the data to be stored. The communication module 10 is further configured to broadcast the first block information to other home gateways in the block chain network when the data to be stored is not private data, so that the other home gateways store the first block information.
In an optional embodiment, the communication module 10 is further configured to receive second tile information and a second public key broadcast by other home gateways in the blockchain network;
the block information processing module 20 is further configured to analyze the second block information according to the second public key, and add a timestamp to the analyzed second block information and store the second block information.
According to the home gateway provided by the third embodiment of the invention, the data storage request sent by the receiving terminal is adopted, and the storage request comprises data to be stored; the home gateway respectively generates a private key and a first public key according to the data to be stored and a preset algorithm, encrypts the data to be stored by using the private key and adds a timestamp to generate and store first block information of the data to be stored; the home gateway broadcasts the first block information of the data to be stored and the first public key to other home gateways in a block chain network connected with the home gateway, so that the other home gateways analyze the first block information according to the first public key and store the analyzed first block information after adding a timestamp, and therefore the data to be stored uploaded by the terminal can be stored in the block chain network by forming the block information, data safety is improved, and the problem of data loss caused by the fact that the home gateway is attacked is solved.
On the basis of the embodiments shown in fig. 4, fig. 5 is a schematic structural diagram of a home gateway according to a fourth embodiment of the present invention, and as shown in fig. 5, similar to the third embodiment, the home gateway includes:
the communication module 10 is configured to receive a data storage request sent by a terminal, where the storage request includes data to be stored; the home gateway is further configured to broadcast the first block information of the data to be stored and the first public key to other home gateways in a block chain network to which the home gateway is connected, so that the other home gateways analyze the first block information according to the first public key and store the first block information after adding a timestamp;
and the block information processing module 20 is configured to generate a private key and a first public key according to the data to be stored and a preset algorithm, encrypt the data to be stored by using the private key, add a timestamp, and generate and store first block information of the data to be stored.
Unlike the third embodiment, the home gateway further includes an authentication module 30. The data storage request received by the communication module 10 further includes a terminal identifier, and the verification module 30 is configured to verify the validity of the terminal according to the terminal identifier and a pre-stored identifier list.
Therefore, after the communication module 10 receives the data storage request sent by the terminal and before the block information processing module 20 processes the data storage request, the verification module 30 can verify the identity of the terminal sending the data storage request, so that the stored data can be sourced from a legal terminal, and the data storage safety is further improved.
In addition, in other optional embodiments, in order to improve the storage efficiency of the home gateway, the data storage request further includes a privacy level identifier corresponding to the data to be stored. The block information processing module 20 is further configured to, after the communication module receives a data storage request sent by a terminal, determine whether the data to be stored is private data according to the privacy level identifier of the data to be stored; if the data to be stored is private data, the block information processing module respectively generates a private key and a first public key according to a preset algorithm, encrypts the data to be stored by using the private key and adds a timestamp to generate and store first block information of the data to be stored; if the data to be stored is not private data, the block information processing module adds a timestamp to the data to be stored, and generates and stores first block information of the data to be stored. The communication module 10 is further configured to broadcast the first block information to other home gateways in the block chain network when the data to be stored is not private data, so that the other home gateways store the first block information.
In other optional embodiments, the communication module 10 is further configured to receive second tile information and a second public key broadcast by other home gateways in the blockchain network; the block information processing module 20 is further configured to analyze the second block information according to the second public key, and add a timestamp to the analyzed second block information and store the second block information.
The home gateway provided by the fourth embodiment of the present invention is further provided with a verification module on the basis of the third embodiment, so that when a data storage request is received, the identity of a terminal that sends the data storage request can be effectively verified, thereby ensuring the security of data storage.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (8)
1. A data storage method of a home gateway is characterized by comprising the following steps:
the home gateway receives a data storage request sent by a terminal, wherein the storage request comprises data to be stored;
the home gateway respectively generates a private key and a first public key according to the data to be stored and a preset algorithm, encrypts the data to be stored by using the private key, adds a timestamp, and generates and stores first block information of the data to be stored;
the home gateway broadcasts the first block information of the data to be stored and the first public key to other home gateways in the connected block chain network, so that the other home gateways analyze the first block information according to the first public key and store the analyzed first block information after adding a timestamp;
the data storage request also comprises a privacy level identifier corresponding to the data to be stored;
correspondingly, after the home gateway receives the data storage request sent by the terminal, the method further includes:
judging whether the data to be stored is private data or not according to the privacy level identification of the data to be stored;
if so, the home gateway executes the steps of respectively generating a private key and a first public key according to the data to be stored and a preset algorithm, encrypting the data to be stored by using the private key, adding a timestamp, and generating and storing first block information of the data to be stored;
if not, the home gateway adds a timestamp to the data to be stored, generates and stores first block information of the data to be stored, and broadcasts the first block information to other home gateways in the block chain network so that the other home gateways store the first block information.
2. The data storage method of claim 1, wherein the data storage request further comprises a terminal identification;
correspondingly, after the home gateway receives the data storage request sent by the terminal, the method further includes:
and verifying the legality of the terminal according to the terminal identifier and a pre-stored identifier list.
3. The data storage method according to claim 1, wherein when the home gateway receives second block information and a second public key broadcast by other home gateways in the blockchain network, the second block information is parsed according to the second public key, and a timestamp is added to the parsed second block information for storage.
4. The data storage method according to claim 1, wherein after the home gateway generates a private key and a first public key according to the data to be stored and a preset algorithm, the method further comprises:
and the home gateway sends the private key to the terminal.
5. The data storage method according to any one of claims 1 to 4, wherein the predetermined algorithm is a hash algorithm.
6. A home gateway, comprising:
the communication module is used for receiving a data storage request sent by a terminal, wherein the storage request comprises data to be stored; the home gateway is further configured to broadcast the first block information and the first public key of the data to be stored to other home gateways in a block chain network to which the home gateway is connected, so that the other home gateways analyze the first block information according to the first public key and store the first block information after adding a timestamp;
the block information processing module is used for respectively generating a private key and a first public key according to the data to be stored and a preset algorithm, encrypting the data to be stored by using the private key and adding a timestamp to generate and store first block information of the data to be stored;
the data storage request also comprises a privacy level identifier corresponding to the data to be stored;
correspondingly, the block information processing module is further configured to, after the communication module receives a data storage request sent by a terminal, determine whether the data to be stored is private data according to the privacy level identifier of the data to be stored; if the data to be stored is private data, the block information processing module respectively generates a private key and a first public key according to a preset algorithm, encrypts the data to be stored by using the private key and adds a timestamp to generate and store first block information of the data to be stored; if the data to be stored is not private data, the block information processing module adds a timestamp to the data to be stored, and generates and stores first block information of the data to be stored;
correspondingly, the communication module is further configured to broadcast the first block information to other home gateways in the block chain network when the data to be stored is not private data, so that the other home gateways store the first block information.
7. The home gateway according to claim 6, wherein the data storage request further comprises a terminal identification; correspondingly, the home gateway further comprises: a verification module;
and the verification module is used for verifying the legality of the terminal according to the terminal identifier and a pre-stored identifier list.
8. The home gateway according to claim 6,
the communication module is further configured to receive second block information and a second public key broadcast by other home gateways in the block chain network; the block information processing module is further configured to analyze the second block information according to the second public key, and store the analyzed second block information after adding a timestamp.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711033636.6A CN107770182B (en) | 2017-10-30 | 2017-10-30 | Data storage method of home gateway and home gateway |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711033636.6A CN107770182B (en) | 2017-10-30 | 2017-10-30 | Data storage method of home gateway and home gateway |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107770182A CN107770182A (en) | 2018-03-06 |
CN107770182B true CN107770182B (en) | 2020-09-08 |
Family
ID=61270265
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711033636.6A Active CN107770182B (en) | 2017-10-30 | 2017-10-30 | Data storage method of home gateway and home gateway |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107770182B (en) |
Families Citing this family (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110445624B (en) * | 2018-05-04 | 2022-09-13 | 中国移动通信有限公司研究院 | CDR processing system and device |
CN108768961B (en) * | 2018-05-11 | 2021-03-30 | 中国联合网络通信集团有限公司 | Storage processing method and home gateway |
CN108629204A (en) * | 2018-05-15 | 2018-10-09 | 科影视讯(北京)信息科技有限公司 | A kind of intelligent digital guide to visitors methods of exhibiting and system |
CN108664631A (en) * | 2018-05-15 | 2018-10-16 | 科影视讯(北京)信息科技有限公司 | A kind of control method and device for indicating to adjust exhibition display by audio, video data file |
CN108765579A (en) * | 2018-05-15 | 2018-11-06 | 科影视讯(北京)信息科技有限公司 | One kind being based on VR technology exhibition display connection methods and device |
CN108848156B (en) * | 2018-06-08 | 2021-06-29 | 中国联合网络通信集团有限公司 | Access gateway processing method, device and storage medium |
CN108923925B (en) * | 2018-06-22 | 2022-11-08 | 北京京东尚科信息技术有限公司 | Data storage method and device applied to block chain |
CN109005220B (en) * | 2018-07-17 | 2022-01-25 | 中国联合网络通信集团有限公司 | Service implementation method of Internet of things terminal and Internet of things access gateway |
JP2022511393A (en) | 2018-10-25 | 2022-01-31 | ソニーグループ株式会社 | Privacy protection supported by blockchain MaaS (Mobility as a Service) |
CN109635572B (en) * | 2018-11-05 | 2021-05-25 | 深圳变设龙信息科技有限公司 | Contract signing method and device based on block chain and terminal equipment |
CN109327481B (en) * | 2018-12-17 | 2021-12-14 | 北京信息科技大学 | Block chain-based unified online authentication method and system for whole network |
CN109687961B (en) * | 2019-01-15 | 2021-12-07 | 如般量子科技有限公司 | Quantum computation resistant blockchain transaction method and system based on symmetric key pool routing device |
CN109660344B (en) * | 2019-01-17 | 2022-05-06 | 如般量子科技有限公司 | Anti-quantum computation block chain transaction method and system based on asymmetric key pool routing device |
CN109981673B (en) * | 2019-04-04 | 2021-10-08 | 上海人行道网络信息技术有限公司 | Block chain-based data evidence storage method, device, equipment and storage medium |
CN110120949B (en) * | 2019-05-10 | 2021-07-27 | 中国联合网络通信集团有限公司 | Data storage method and data storage system |
CN110247895B (en) * | 2019-05-20 | 2021-04-06 | 创新先进技术有限公司 | Receipt storage method, node, device and storage medium |
WO2020233421A1 (en) * | 2019-05-20 | 2020-11-26 | 创新先进技术有限公司 | Object-level receipt storage method and node based on code marking |
CN110263543B (en) * | 2019-05-20 | 2021-06-01 | 创新先进技术有限公司 | Object-level receipt storage method and node based on code labeling |
CN110557427B (en) * | 2019-07-15 | 2022-07-26 | 浙江工业大学 | Intelligent home security control method for balancing network performance and security |
CN112583772B (en) * | 2019-09-30 | 2022-07-15 | 重庆傲雄在线信息技术有限公司 | Data acquisition and storage platform |
CN111866863A (en) * | 2020-07-16 | 2020-10-30 | 国网山东省电力公司青岛供电公司 | WiFi security encryption system and method |
CN111885267A (en) * | 2020-07-22 | 2020-11-03 | 中国联合网络通信集团有限公司 | Terminal response method and ringing method based on block chain |
CN114168218B (en) * | 2021-11-30 | 2024-03-29 | 深圳市名竹科技有限公司 | Data processing method, device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105812126A (en) * | 2016-05-19 | 2016-07-27 | 齐鲁工业大学 | Lightweight back-up and efficient restoration method of health block chain data encryption keys |
US9569771B2 (en) * | 2011-04-29 | 2017-02-14 | Stephen Lesavich | Method and system for storage and retrieval of blockchain blocks using galois fields |
CN106598490A (en) * | 2016-11-25 | 2017-04-26 | 深圳前海微众银行股份有限公司 | Access method for block chain data and block chain management system |
CN107171806A (en) * | 2017-05-18 | 2017-09-15 | 北京航空航天大学 | Mobile terminal network cryptographic key negotiation method based on block chain |
CN107181599A (en) * | 2017-07-18 | 2017-09-19 | 天津理工大学 | The storage of route location data confidentiality and sharing method based on block chain |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101282218B (en) * | 2008-05-20 | 2011-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Method for ciphering and deciphering host computer and pickaback plane of split type terminal |
CN106446702B (en) * | 2015-08-11 | 2019-11-12 | 腾讯科技(北京)有限公司 | Cache information processing method and client |
CN106096441A (en) * | 2016-06-08 | 2016-11-09 | 深圳市星辰帷幄信息技术有限公司 | Date storage method and data storage device |
-
2017
- 2017-10-30 CN CN201711033636.6A patent/CN107770182B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9569771B2 (en) * | 2011-04-29 | 2017-02-14 | Stephen Lesavich | Method and system for storage and retrieval of blockchain blocks using galois fields |
CN105812126A (en) * | 2016-05-19 | 2016-07-27 | 齐鲁工业大学 | Lightweight back-up and efficient restoration method of health block chain data encryption keys |
CN106598490A (en) * | 2016-11-25 | 2017-04-26 | 深圳前海微众银行股份有限公司 | Access method for block chain data and block chain management system |
CN107171806A (en) * | 2017-05-18 | 2017-09-15 | 北京航空航天大学 | Mobile terminal network cryptographic key negotiation method based on block chain |
CN107181599A (en) * | 2017-07-18 | 2017-09-19 | 天津理工大学 | The storage of route location data confidentiality and sharing method based on block chain |
Also Published As
Publication number | Publication date |
---|---|
CN107770182A (en) | 2018-03-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107770182B (en) | Data storage method of home gateway and home gateway | |
US11229023B2 (en) | Secure communication in network access points | |
CN112926982B (en) | Transaction data processing method, device, equipment and storage medium | |
CN106464499B (en) | Communication network system, transmission node, reception node, message checking method, transmission method, and reception method | |
CN110958111B (en) | Block chain-based identity authentication mechanism of electric power mobile terminal | |
CN107454079B (en) | Lightweight equipment authentication and shared key negotiation method based on Internet of things platform | |
CN105656859B (en) | Tax control equipment software safety online upgrading method and system | |
CN110519753B (en) | Access method, device, terminal and readable storage medium | |
CN112686668A (en) | Alliance chain cross-chain system and method | |
CN103796151B (en) | The method and system that ad content is pushed | |
CN112152778B (en) | Node management method and device and electronic equipment | |
WO2015003503A1 (en) | Network device, terminal device and information security improving method | |
CN111246474B (en) | Base station authentication method and device | |
WO2011022950A1 (en) | Service access method, system and device based on wlan access authentication | |
CN113411190A (en) | Key deployment, data communication, key exchange and security reinforcement method and system | |
CN115842680B (en) | Network identity authentication management method and system | |
CN110535877A (en) | Internet-of-things terminal identity identifying method and Verification System based on double authentication | |
KR20210128418A (en) | Resource request method, device and storage medium | |
CN111130769A (en) | Internet of things terminal encryption method and device | |
CN115396121A (en) | Security authentication method for security chip OTA data packet and security chip device | |
CN111212425A (en) | Access method, server and terminal | |
CN112235290B (en) | Block chain-based Internet of things equipment management method and first Internet of things equipment | |
CN113784354B (en) | Request conversion method and device based on gateway | |
CN109302442B (en) | Data storage proving method and related equipment | |
CN115038084A (en) | Decentralized trusted access method for cellular base station |
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 |