CN107770182B - Data storage method of home gateway and home gateway - Google Patents

Data storage method of home gateway and home gateway Download PDF

Info

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
Application number
CN201711033636.6A
Other languages
Chinese (zh)
Other versions
CN107770182A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201711033636.6A priority Critical patent/CN107770182B/en
Publication of CN107770182A publication Critical patent/CN107770182A/en
Application granted granted Critical
Publication of CN107770182B publication Critical patent/CN107770182B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network 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/0442Network 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]
    • 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/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/3297Cryptographic 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

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

Data storage method of home gateway and home gateway
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:
step 101, a home gateway receives a data storage request sent by a terminal, wherein the storage request comprises data to be stored.
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.
Step 103, 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 by 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.
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:
step 201, receiving a data storage request sent by a terminal, where the storage request includes data to be stored and a privacy level identifier corresponding to the data to be stored.
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.
Step 202, judging whether the data to be stored is the privacy data or not according to the privacy level identification of the data to be stored. If yes, go to step 203; if not, go to step 205.
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.
Step 205, adding a timestamp to the data to be stored, generating and storing first block information of the data to be stored, and broadcasting the first block information to other home gateways in the block chain network, so that the other home gateways store the first block information.
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.
CN201711033636.6A 2017-10-30 2017-10-30 Data storage method of home gateway and home gateway Active CN107770182B (en)

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)

* Cited by examiner, † Cited by third party
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
CN108765579A (en) * 2018-05-15 2018-11-06 科影视讯(北京)信息科技有限公司 One kind being based on VR technology exhibition display connection methods and device
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
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
WO2020233421A1 (en) * 2019-05-20 2020-11-26 创新先进技术有限公司 Object-level receipt storage method and node based on code marking
CN110247895B (en) * 2019-05-20 2021-04-06 创新先进技术有限公司 Receipt storage method, node, device and storage medium
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
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
US20180309570A1 (en) Secure communication in network access points
CN107454079B (en) Lightweight equipment authentication and shared key negotiation method based on Internet of things platform
CN110958111B (en) Block chain-based identity authentication mechanism of electric power mobile terminal
CN105656859B (en) Tax control equipment software safety online upgrading method and system
CN113411190B (en) Key deployment, data communication, key exchange and security reinforcement method and system
CN103796151B (en) The method and system that ad content is pushed
CN112686668A (en) Alliance chain cross-chain system and method
WO2015003503A1 (en) Network device, terminal device and information security improving method
CN111246474B (en) Base station authentication method and device
CN112152778B (en) Node management method and device and electronic equipment
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
WO2011022950A1 (en) Service access method, system and device based on wlan access authentication
CN115842680B (en) Network identity authentication management method and system
CN111130769A (en) Internet of things terminal encryption method and device
CN115208705A (en) Encryption and decryption method and device based on link data self-adaptive adjustment
CN115038084A (en) Decentralized trusted access method for cellular base station
CN112235290B (en) Block chain-based Internet of things equipment management method and first Internet of things equipment
CN106537962B (en) Wireless network configuration, access and access method, device and equipment
KR101745482B1 (en) Communication method and apparatus in smart-home system
CN113965425A (en) Access method, device and equipment of Internet of things equipment and computer readable storage medium
WO2022078058A1 (en) Decryption method, server and storage medium

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