A cloud storage method and system for home customers
By using the IPFS protocol and the review layer of the distributed network in the cloud storage system of home customers, the preliminary and secondary review of uploaded files is realized, the prohibited content is identified and processed, and the problem of the spread of prohibited content in the existing technology is solved. Improved the security and network purification effect of the cloud storage system.
Patent Information
- Application Number
- CN202111289511.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-02
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-11-02
AI Technical Summary
Existing cloud storage technology is difficult to effectively identify and filter prohibited content uploaded by home customers, leading to cyberspace pollution.
In the cloud storage system for home customers, a distributed network is built based on the IPFS protocol, and a review layer is set up on each user node. Through the preliminary review and secondary review mechanisms, prohibited content is detected and deleted to ensure strict review of file content. .
It achieves strict auditing of home customer storage content, purifies network space, and improves the security and reliability of cloud storage systems.
Smart Images

Figure CN114138715B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of Internet cloud storage, and is a method and system for realizing cloud storage for home customers by using Internet technology. Background Art
[0002] With the rapid development of the Internet, big data, cloud space, and cloud storage have emerged; cloud storage refers to a functional system that uses cluster applications, grid technology, or distributed file systems to bring together a large number of different types of networked storage devices in a distributed network through application software to work together and provide data storage and business access to the outside world. The cloud storage system has the characteristics of massive storage capacity, high reliability, high availability, and low cost. It has an open and standardized interface to connect with other systems, which can ensure that data is always online. Files stored in cloud storage are stored reliably through multiple copies, erasure codes, off-site storage, and backup. However, in the prior art, the contents of files uploaded to cloud storage by home customers are diverse, including positive content, negative content, and even some prohibited content. The release of these negative and prohibited contents to the network will have a bad impact on society. Summary of the invention
[0003] One aspect of the present invention relates to a cloud storage method and system for home customers. In embodiments of these methods, a cloud storage method for home customers is characterized in that the cloud storage method comprises the following steps:
[0004] Build a distributed network for home users to store files based on the IPFS protocol;
[0005] A review layer for reviewing files is constructed for the distributed network. The review layer includes a monitoring program located on each home user node, a module for files to be reviewed, and a module for files that have been reviewed and passed; each home user node first performs a preliminary review when uploading a file. The specific steps are as follows:
[0006] A) roughly slicing the pre-uploaded file to obtain several larger block files;
[0007] B) encapsulating the plurality of relatively large block files to obtain a plurality of encapsulated relatively large block files;
[0008] C) performing hash operation on the plurality of encapsulated large block files to obtain a plurality of pre-uploaded file hash values;
[0009] D) storing the hash values of the pre-uploaded files in a file-to-be-audited module;
[0010] E) The monitoring program in the review layer detects several hash values of the pre-uploaded files stored in the to-be-reviewed file module; the review layer automatically reviews several hash values of the pre-uploaded files in the to-be-reviewed file module and obtains a preliminary review result; and performs corresponding processing based on the preliminary review result: if the preliminary review result is that the pre-uploaded file contains prohibited content, the review layer sends a prompt message that the pre-uploaded file contains prohibited content; if the preliminary review result is that the pre-uploaded file does not contain prohibited content, the review layer sends the pre-uploaded file to the approved file module; the review layer sends information that the pre-uploaded file has passed the preliminary review;
[0011] F) receiving information sent by the review layer and processing it: if the review layer receives prompt information that the pre-uploaded file contains prohibited content, removing and deleting the pre-uploaded file from the pending review file module; if the review layer receives information that the pre-uploaded file has passed preliminary review, performing erasure coding on several pre-uploaded files in the reviewed file module to obtain several replica slices;
[0012] G) performing asymmetrical encryption on the plurality of replica slices and sending them to a plurality of other nodes at a layer closest to the logical distance of the node for storage;
[0013] H) Complete the preliminary review.
[0014] The beneficial effect of the present invention is that a cloud storage method and system for home customers are provided. The verification test results of the cloud storage method and system for home customers of the present invention show that, based on the comparison of similar products, the cloud storage method and system for home customers are more advanced, the execution logic and process are more optimized, and the storage content review is more rigorous, which meets the storage needs of home customers and purifies the network space. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 Preliminary review of the first part of the diagram;
[0016] Figure 2 Preliminary review of Part II diagram;
[0017] Figure 3 Second review logic diagram;
[0018] Figure 4 Fog computing network topology diagram;
[0019] Figure 5 Content distribution network topology diagram;
[0020] Figure 6 Diagram of the functional division of the underlying protocol. DETAILED DESCRIPTION
[0021] The technical features of different embodiments of the present invention may be arbitrarily combined in accordance with the spirit of the present invention. Therefore, any specific embodiment should not be construed as limiting the protection scope of the present invention.
[0022] In some embodiments of a cloud storage method and system for home customers, a cloud storage method for home customers is characterized in that the cloud storage method comprises the following steps:
[0023] Build a distributed network for home users to store files based on the IPFS protocol;
[0024] A review layer for reviewing files is built for the distributed network. The review layer includes a monitoring program located on each home user node, a module for files to be reviewed, and a module for files that have been reviewed and passed. Each home user node will first conduct a preliminary review when uploading a file. The specific steps are as follows:
[0025] A) roughly slicing the pre-uploaded file to obtain several larger block files;
[0026] B) encapsulating a plurality of relatively large block files to obtain a plurality of encapsulated relatively large block files;
[0027] C) performing hash operations on a number of encapsulated larger block files to obtain a number of pre-uploaded file hash values;
[0028] D) storing hash values of several pre-uploaded files into the file module to be reviewed;
[0029] E) The monitoring program in the review layer detects several pre-uploaded file hash values stored in the to-be-reviewed file module; the review layer automatically reviews several pre-uploaded file hash values in the to-be-reviewed file module and obtains a preliminary review result; and makes corresponding processing based on the preliminary review result: if the preliminary review result is that the pre-uploaded file contains prohibited content, the review layer sends a prompt message that the pre-uploaded file contains prohibited content; if the preliminary review result is that the pre-uploaded file does not contain prohibited content, the review layer sends the pre-uploaded file to the approved file module; the review layer sends information that the pre-uploaded file has passed the preliminary review;
[0030] F) Receive information sent by the review layer and process it: if the review layer sends a prompt message that the pre-uploaded file contains prohibited content, remove the pre-uploaded file from the pending review file module and delete it; if the review layer sends a message that the pre-uploaded file has passed the preliminary review, perform erasure coding on several pre-uploaded files in the approved file module to obtain several replica slices;
[0031] G) Asymmetrically encrypt several replica slices and send them to several other nodes in the layer closest to the logical distance of the node for storage;
[0032] H) Complete the preliminary review.
[0033] In the preliminary review A), the pre-uploaded file is roughly sliced to obtain several larger block files, which are generally roughly sliced into 6 equal block files of the original file. The number of roughly sliced file blocks can also be set according to different situations;
[0034] The term "IPFS" refers to a new type of hypermedia transmission protocol based on content addressing, distributed, and supports the creation of fully distributed applications. IPFS is also a distributed file system, and its goal is to connect all computing devices to the same file system, thus becoming a global unified storage system.
[0035] The term "distributed network" refers to a P2P network, i.e. a peer-to-peer computer network, which is a distributed application architecture that distributes tasks and workloads among peers. It is a form of networking or network formed by a peer-to-peer computing model at the application layer.
[0036] In some embodiments of the cloud storage method and system for home customers, the review layer matches the pre-uploaded data hash value with the prohibited data hash value in the prohibited file fingerprint library for automatic review;
[0037] The monitoring program in the review layer monitors the pre-uploaded file hash value sent by the file to be reviewed module and the instruction to automatically review the pre-uploaded data hash value; matches the pre-uploaded file hash value with the prohibited data hash value in the prohibited file fingerprint library to obtain the pre-uploaded file matching result; converts the pre-uploaded file matching result into the preliminary review result and sends it to the file to be reviewed module.
[0038] In some embodiments of cloud storage methods and systems for home customers, the banned file fingerprint library is distributedly stored in the storage space contributed by each node in the review layer; the banned file fingerprint library includes a banned file fingerprint table; the entries of the banned file fingerprint table include: banned data hash value, banned data type and node ID of the node that uploaded the banned data.
[0039] In some embodiments of cloud storage methods and systems for home customers, based on the asymmetric encryption function of the IPFS protocol, each home user node asymmetrically encrypts several replica slices and generates several pairs of public keys and private keys; the public key is embedded in the file name of the replica slice.
[0040] In some embodiments of the cloud storage method and system for home customers, the specific steps of the first node among the other nodes performing a secondary review on the stored partial file content are as follows:
[0041] Z1) receives some files and stores them in this node;
[0042] Z2) decrypting part of the file contents using the public key embedded in the file name; reviewing part of the file contents and obtaining a secondary review result;
[0043] Z3) Make corresponding processing based on the secondary audit result: if the secondary audit result is that part of the file content contains prohibited content, then perform a hash operation on the part of the file content and upload it to the prohibited file fingerprint library; if the secondary audit result is that part of the file content does not contain prohibited content, perform a hash operation on the part of the file content to obtain a green pass hash value; upload the green pass hash value to the green pass file fingerprint library;
[0044] The other nodes for secondary review are the nodes that are logically closest to the node that publishes the file; the number of other nodes for secondary review is the same as the number of replica slices.
[0045] In some embodiments of cloud storage methods and systems for home customers, the green pass file fingerprint library is distributedly stored in the storage space contributed by each node in the review layer; the green pass file fingerprint library includes several green pass file fingerprint tables; the entries of the green pass file fingerprint table include: green pass data hash value, green pass data type and node ID of the node that uploaded the green pass data.
[0046] In some embodiments of cloud storage methods and systems for home customers, based on the blocking mechanism of the IPFS protocol, the speeds of uploading and downloading files by all newly added nodes to the distributed network are equal, that is, the blocking values are equal; nodes can obtain corresponding rewards for providing storage space; the rewards are acceleration values; nodes use acceleration values when uploading or downloading content, and the acceleration values will offset part of the blocking values when the nodes upload or download content.
[0047] In some embodiments of the cloud storage method and system for home customers, the acceleration value of a node can be donated to other nodes that have established a connection relationship with the node; the nodes establish a connection relationship by saving and binding the node IDs of other nodes.
[0048] In some embodiments of cloud storage methods and systems for home customers, based on the IPFS protocol, a Kademlia binary state tree structure is used to number each node; each node is a leaf node, starting from the root, the prefix of the root is empty, and the left subtree and the right subtree are numbered 1 and 0 respectively; each node starts from the root node and arrives along its shortest unique prefix path; the digital string number connected in series by the shortest unique prefix path is used as the node ID of the node.
[0049] In some embodiments of cloud storage methods and systems for home customers, the node is a networked device that can provide storage space by downloading and installing the IPFS protocol; the storage space of the networked device includes self-use storage space, pre-upload storage space and contribution storage space; the space capacity of the pre-upload storage space and the contribution storage space can be changed; the total space capacity of the networked device minus the self-use storage space capacity to obtain the remaining storage space capacity; the proportion of the space capacity of the pre-upload storage space and the contribution storage space to the remaining storage space capacity is not fixed; the proportion of the space capacity of the pre-upload storage space and the contribution storage space to the remaining storage space capacity can be set and changed.
[0050] The present invention will be further described below by more specific embodiments:
[0051] Please refer to Figure 1 , 2, a preliminary review of the first part of a cloud storage method and system for home customers and a preliminary review of the second part of the diagram of the embodiment; wherein a cloud storage method for home customers, characterized in that the cloud storage method comprises the following steps:
[0052] Build a distributed network for home users to store files based on the IPFS protocol;
[0053] A review layer for reviewing files is built for the distributed network. The review layer includes a monitoring program located on each home user node, a module for files to be reviewed, and a module for files that have been reviewed and passed. When each home user node uploads a file, the following steps are performed first:
[0054] A) roughly slicing the pre-uploaded file to obtain several larger block files;
[0055] B) encapsulating a plurality of relatively large block files to obtain a plurality of encapsulated relatively large block files;
[0056] C) performing hash operations on a number of encapsulated larger block files to obtain a number of pre-uploaded file hash values;
[0057] D) storing hash values of several pre-uploaded files into the file module to be reviewed;
[0058] E) The monitoring program in the review layer detects several pre-uploaded file hash values stored in the to-be-reviewed file module; the review layer automatically reviews several pre-uploaded file hash values in the to-be-reviewed file module and obtains a preliminary review result; and makes corresponding processing based on the preliminary review result: if the preliminary review result is that the pre-uploaded file contains prohibited content, the review layer sends a prompt message that the pre-uploaded file contains prohibited content; if the preliminary review result is that the pre-uploaded file does not contain prohibited content, the review layer sends the pre-uploaded file to the approved file module; the review layer sends information that the pre-uploaded file has passed the preliminary review;
[0059] F) Receive information sent by the review layer and process it: if the review layer sends a prompt message that the pre-uploaded file contains prohibited content, remove the pre-uploaded file from the pending review file module and delete it; if the review layer sends a message that the pre-uploaded file has passed the preliminary review, perform erasure coding on several pre-uploaded files in the approved file module to obtain several replica slices;
[0060] G) Asymmetrically encrypt several replica slices and send them to several other nodes in the layer closest to the logical distance of the node for storage;
[0061] The above completes the preliminary review steps when the home node uploads files.
[0062] refer to Figure 3 As shown, a secondary review logic diagram of a cloud storage method and system for home customers in this embodiment; wherein the specific steps of the first node among the other nodes performing secondary review on the content of a portion of the stored files are as follows:
[0063] Z1) receives some files and stores them in this node;
[0064] Z2) decrypting part of the file contents using the public key embedded in the file name; reviewing part of the file contents and obtaining a secondary review result;
[0065] Z3) Make corresponding processing based on the result of the secondary review: If the result of the secondary review is that some file contents contain prohibited content, then the partial file contents are hashed and uploaded to the prohibited file fingerprint library; if the result of the secondary review is that some file contents do not contain prohibited content, then the partial file contents are hashed to obtain the green pass hash value; the green pass hash value is uploaded to the green pass file fingerprint library.
[0066] refer to Figure 4 As shown, a fog computing network topology diagram of a cloud storage method and system for home customers in this embodiment; wherein the customer, IDC service provider, home NAS and PC end all download software programs based on the IPFS protocol;
[0067] The term "IDC" refers to an Internet data center, which is a facility with complete equipment (including high-speed Internet access bandwidth, high-performance LAN, safe and reliable computer room environment, etc.), professional management, and a complete application service platform;
[0068] The term "home NAS" refers to computing storage devices used at home.
[0069] refer to Figure 5As shown, a content distribution network topology diagram of a cloud storage method and system for home customers in this embodiment; wherein the product is in the form of deploying a large number of edge nodes (mobile phone terminals, smart IoT devices, etc.) to form an edge distribution network, and distributing content through the edge distribution network.
[0070] refer to Figure 6 As shown, a functional division diagram of the underlying protocol of a cloud storage method and system for home customers in this embodiment; wherein the functions of the underlying protocol of the cloud storage system for home customers include an application layer, a content review layer, a scheduling layer, a routing layer, a link layer and a network layer;
[0071] The application layer is also the core layer of IPFS. The application layer can be said to be the implementation layer of all protocols and a running application. It can achieve network acceleration, data value, and the economic value of IPFS. This is to accelerate the development of the distributed storage network ecosystem.
[0072] The main function of the content review layer is to review the content of the file;
[0073] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output.
[0074] To transmit interactions with a user, embodiments of the subject matter described in this specification may be implemented on a computer having: a display device, such as a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, for displaying information to the user; and a keyboard and a pointing device, such as a mouse or a trackball, with which the user can transmit input to the computer. Other kinds of devices may also be used to transmit interactions with a user; for example, feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any form, including acoustic input, voice input, or tactile input. In addition, a computer may interact with a user by sending documents to a device used by the user and receiving documents from the device; for example, by sending a web page to a web browser on a user's client device in response to a request received from the web browser.
[0075] Although this specification contains many specific implementation details, these should not be interpreted as limitations on the scope of any invention or the scope of what can be claimed, but rather as an illustration of features that can concretize a particular embodiment of a particular invention. The specific features described in this specification in the context of independent embodiments can also be implemented in combination with a single embodiment. Conversely, the various features described in the context of a single embodiment can also be implemented independently in multiple embodiments, or in any suitable sub-combination. In addition, although the features can be described above as a combination effect and even initially required, one or more features from the required combination can be removed from the combination in some cases, and the required combination can be turned to a sub-combination or a variation of the sub-combination.
Claims
1. A cloud storage method for home customers, characterized in that: The cloud storage method comprises the following steps: Build a distributed network for home users to store files based on the IPFS protocol; A review layer for reviewing files is constructed for the distributed network. The review layer includes a monitoring program located on each home user node, a module for files to be reviewed, and a module for files that have been reviewed and passed; each home user node first performs a preliminary review when uploading a file. The specific steps are as follows: A) Roughly slice the pre-uploaded file to obtain several larger block files; B) encapsulating the plurality of relatively large block files to obtain a plurality of encapsulated relatively large block files; C) performing hash operations on the plurality of encapsulated relatively large block files to obtain a plurality of pre-uploaded file hash values; D) storing the hash values of the pre-uploaded files into a module for files to be reviewed; E) the monitoring program in the review layer detects several hash values of the pre-uploaded files stored in the to-be-reviewed file module; the review layer automatically reviews the several hash values of the pre-uploaded files in the to-be-reviewed file module and obtains a preliminary review result; and performs corresponding processing based on the preliminary review result: if the preliminary review result is that the pre-uploaded file contains prohibited content, the review layer sends a prompt message that the pre-uploaded file contains prohibited content; If the preliminary review result is that the pre-uploaded file does not contain prohibited content, the review layer sends the pre-uploaded file to the reviewed and approved file module; the review layer sends the information that the pre-uploaded file has passed the preliminary review; F) receiving information sent by the review layer and processing it: if the review layer receives prompt information that the pre-uploaded file contains prohibited content, removing and deleting the pre-uploaded file from the pending review file module; if the review layer receives information that the pre-uploaded file has passed preliminary review, performing erasure coding on several pre-uploaded files in the reviewed file module to obtain several replica slices; G) Asymmetrically encrypting the plurality of replica slices and sending them to a plurality of other nodes at a layer closest to the logical distance of the node for storage; H) Complete the preliminary review.
2. A cloud storage method for home customers according to claim 1, characterized in that: In step E), the review layer matches the hash value of the pre-uploaded data with the hash value of the prohibited content in the prohibited file fingerprint library for automatic review; The monitoring program in the review layer monitors the pre-upload file hash value sent by the file to be reviewed module and the instruction to automatically review the pre-upload data hash value; matches the pre-upload file hash value with the prohibited content hash value in the prohibited file fingerprint library to obtain a pre-upload file matching result; converts the pre-upload file matching result into the preliminary review result and sends it to the file to be reviewed module.
3. A cloud storage method for home customers according to claim 2, characterized in that: The prohibited file fingerprint library is distributed and stored in the storage space contributed by each node in the review layer; The prohibited file fingerprint library includes a prohibited file fingerprint table; The entries of the prohibited file fingerprint table include: prohibited content hash value, prohibited content type and node ID of the node that uploaded the prohibited content.
4. According to claim 1, a cloud storage method for home customers, characterized in that: In step G), based on the asymmetric encryption function of the IPFS protocol, each of the home user nodes asymmetrically encrypts a number of the replica slices and generates a number of pairs of public keys and private keys; the public key is embedded in the file name of the replica slice.
5. A cloud storage method for home customers according to claim 2, characterized in that: The specific steps for the first node among the other nodes to conduct a secondary review of the stored partial file content are as follows: Z1) receives some files and stores them in this node; Z2) decrypting the partial file content using the public key embedded in the file name; reviewing the partial file content and obtaining a secondary review result; Z3) Make corresponding processing based on the secondary audit result: if the secondary audit result is that the partial file content contains prohibited content, then perform hash operation on the partial file content and upload it to the prohibited file fingerprint library; if the secondary audit result is that the partial file content does not contain prohibited content, then perform hash operation on the partial file content to obtain a green pass hash value; upload the green pass hash value to the green pass file fingerprint library.
6. A cloud storage method for home customers according to claim 5, characterized in that: The green pass file fingerprint library is distributedly stored in the storage space contributed by each node in the review layer; the green pass file fingerprint library includes several green pass file fingerprint tables; the entries of the green pass file fingerprint table include: green pass data hash value, green pass data type and node ID of the node that uploaded the green pass data.
7. A cloud storage method for home customers according to claim 1, characterized in that: Based on the blocking mechanism of the IPFS protocol, all nodes newly added to the distributed network have the same speed for uploading and downloading files, that is, the blocking values are equal; the nodes can obtain corresponding rewards by providing storage space; the rewards are acceleration values; the nodes use the acceleration values when uploading or downloading content, and the acceleration values will offset part of the blocking values when the nodes upload or download content.
8. A cloud storage method for home customers according to claim 7, characterized in that: The acceleration value of the node can be donated to other nodes that have established a connection relationship with the node; the nodes establish a connection relationship by saving and binding the node IDs of other nodes.
9. A cloud storage method for home customers according to claim 8, characterized in that: Based on the IPFS protocol, the Kademlia binary state tree structure is used to number each node. Each node has a path from the root of the binary state tree along the shortest unique prefix of the node to reach it; the digital string number connected in series by the shortest unique prefix path is used as the node ID of the node.
10. A cloud storage method for home customers according to claim 9, characterized in that: The node is a networked device that can provide storage space by downloading and installing the IPFS protocol; the storage space of the networked device includes self-use storage space, pre-upload storage space and contribution storage space; the space capacity of the pre-upload storage space and the contribution storage space can be changed; the total space capacity of the networked device minus the self-use storage space capacity to obtain the remaining storage space capacity; The ratio of the space capacity of the pre-upload storage space and the contribution storage space to the remaining storage space capacity is not fixed; the ratio of the space capacity of the pre-upload storage space and the contribution storage space to the remaining storage space capacity can be set and changed.
