Hierarchical data storage system based on CDN and P2P

Through the combination of CDN and P2P technology, a hierarchical data storage system is designed to solve the data loss problem caused by high storage costs on the content platform, realize data state conversion and reasonable forgetting, reduce storage costs, and ensure the resource utilization of the data center. efficiency.

CN118796124APending Publication Date: 2024-10-18NORTH CHINA UNIV OF WATER RESOURCES & ELECTRIC POWER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410887345.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Content platforms suffer from data loss due to high storage costs. Existing technologies are difficult to effectively reduce storage costs, resulting in excessive data storage burdens and irreparable data loss.

Method used

A hierarchical data storage system based on CDN and P2P is adopted. Through the hierarchical storage module, CDN distribution module and P2P distribution and data recognition and retrieval module, the state conversion and reasonable forgetting of data are realized, and storage costs are reduced.

Benefits of technology

Through the design of hierarchical storage controllers and multiple data pools, combined with CDN and P2P technology, data state transition and reasonable forgetting are achieved, reducing data storage costs, reducing the burden on the data center, and ensuring the preservation of unpopular resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796124A_ABST
    Figure CN118796124A_ABST
Patent Text Reader

Abstract

The invention provides a hierarchical data storage system based on CDN (Content Delivery Network) and P2P (Peer to Peer). The system is provided with a hierarchical storage controller, a new data pool, a hot data pool, a general data pool, an immediate distribution data pool, a to-be-abandoned data pool, a cold data pool, a CDN distribution controller and a plurality of CDN distribution nodes, so that state conversion among new data, hot data, general data, immediate distribution data, to-be-abandoned data and cold data can be realized; meanwhile, a P2P distribution and data claiming and retrieving module is further designed in the system, and data removal and retention can be realized by adopting a user voting mode through the P2P distribution and data claiming and retrieving module; moreover, the P2P distribution is combined with the hierarchical storage of the data center, so that the storage cost of the data center can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data storage, and in particular to a hierarchical data storage system based on CDN and P2P. Background Art

[0002] As the amount of information and users increases, the amount of data that content platforms need to store increases. However, the cost is also increasing, and the data storage burden of content platforms is getting heavier, causing most content platforms to close due to the high cost, which ultimately causes irreparable data loss. Summary of the invention

[0003] In order to alleviate the problem of data loss caused by high storage cost, the present invention provides a hierarchical data storage system based on CDN and P2P.

[0004] The present invention provides a hierarchical data storage system based on CDN and P2P, comprising: a hierarchical storage module, a CDN distribution module and a P2P distribution and data claim and retrieval module (also referred to as a P2P distribution module); the hierarchical storage module comprises a hierarchical storage controller and a new data pool, a hot data pool, a general data pool, an expired distribution data pool, a to-be-abandoned data pool and a cold data pool; the CDN distribution module comprises a CDN distribution controller and a plurality of CDN distribution nodes; each CDN distribution node comprises a new data copy pool, a hot data copy pool, a general data cache pool and a new data cache pool; the P2P distribution and data claim and retrieval module comprises a P2P distribution controller; Among them, the CDN distribution node is used to collect new data submitted by the users of this node and cache it in the new data cache pool; optionally, the user signs the data with the user's private key and saves the new data in the new data cache pool of this node. After the data is submitted to the new data cache pool, it needs to be reviewed by the administrator.

[0005] The CDN controller is used to review the data in the new data cache pool. If the review is passed, the reviewed data is synchronized to the new data pool of the hierarchical storage module; if the reviewed data is consistent with the copy verification of the new data pool, it is moved from the new data cache pool of the node where it is located to the new data copy pool; and control other CDN distribution nodes to synchronize the reviewed data from the new data pool to their own new data copy pools, so that the local new data copy pool is synchronized with the new data pool of the hierarchical storage module; The P2P distribution controller is used to release the data voting function when the data that has not been distributed enters the data pool of the upcoming distribution, so that users can vote on whether to keep or remove the data. When the number of votes in favor reaches the target amount, the hierarchical storage controller is notified to transfer it back to the general data pool, and the voting ends. If the number of votes against reaches the target amount or does not reach the set value within the specified time, the data will be signed and added to the distribution queue to open the data claim. The data can be signed with the system private key to prevent tampering after distribution. The distributed data includes the user's signature to prove the authority.

[0006] In this implementation, the new data pool and the hot data pool use high-performance redundant storage; the general data pool and the upcoming distribution data pool use economical large-capacity redundant storage; the to-be-discarded data pool uses low-redundant storage; and the cold data pool uses cache. Optionally, the data in the new data pool and the hot data pool are also stored in the general data pool as a redundant backup to simplify operations.

[0007] The main function of the CDN distribution module is to synchronize the data in the new data pool and hot data pool in the hierarchical storage module to the new data copy pool and hot data copy pool of the CDN distribution node, so that users of the CDN distribution node can access the new data and hot data.

[0008] Furthermore, the CDN distribution node is also used to download the accessed data from the general data pool and save it to the general data cache pool when the user accesses the data in the general data pool so as to distribute the data to the user; and to remove the data from the general data cache pool when the data in the general data cache pool reaches a set time and does not meet the set maintenance conditions.

[0009] Furthermore, the CDN controller is also used to detect data in the general data cache pool of all CDN distribution nodes. If it is determined that the data meets the set conditions, the hierarchical storage controller is notified to copy or move the data to the hot data pool, and the corresponding CDN distribution node is controlled to move the data from its own general data cache pool to the hot data copy pool, and other CDN distribution nodes are controlled to synchronize the data from the hot data pool to their respective hot data copy pools.

[0010] Furthermore, the hierarchical storage controller is used to move the data into the hot data pool when the data in the new data pool reaches a set condition, and to notify the CDN distribution controller to move the data copies in all CDN distribution nodes from the new data copy pool to the hot data copy pool; and to check whether the data is stored in the general data pool when the data in the new data pool reaches a set time and does not meet the conditions for moving into the hot data pool. If so, the data is directly deleted from the new data pool; otherwise, the data is moved into the general data pool, and after deletion or moving in, the CDN distribution controller is notified to synchronously delete the data copy from the new data copy pool of all CDN distribution nodes.

[0011] Furthermore, the hierarchical storage controller is also used to check whether the data in the hot data pool is saved in the general data pool when the data in the hot data pool reaches the set time and does not meet the set maintenance conditions. If so, the data is directly deleted from the new data pool; otherwise, the data is moved to the general data pool, and after deletion or movement, the CDN distribution controller is notified to synchronously delete the data copy from the hot data copy pool of all CDN distribution nodes.

[0012] Furthermore, the hierarchical storage controller is also used to move / copy data in the general data pool to the hot data pool to convert it into hot data, and notify the CDN distribution controller to distribute the hot data to achieve manual hot distribution of general data; and when the usage of the general data pool exceeds the warning setting value, it is used to issue an early warning prompt to add new storage space. When the usage of the general data pool exceeds the distribution setting value, the data that has not been voted back recently and is the least active is transferred to the expiring distribution data pool. If the data already exists in the expiring distribution data pool, the copy in the general data pool is directly deleted until the usage of the general data pool is lower than the distribution setting value.

[0013] Furthermore, the P2P distribution controller is also used to display the data in the distribution queue to the user after data claiming is enabled, so that the user can select the data he needs and save it to the user device; and is used to record the claiming status of each data in the distribution queue, so that when the user who has not claimed the data accesses the data through the CDN distribution node, the CDN distribution node selects several users who have claimed the data through the P2P network to read the data, and saves it to the general data cache pool of this node for access by the users who have not claimed the data.

[0014] In this embodiment, after data claiming is turned on, users can view the data in the distribution queue, select the data that users like and save it to the user device. After saving the data, users can choose to provide other users with access services to the data to obtain points. Users can use the points to enjoy the services provided by the platform and exchange for value returns, which encourages users to claim data. The P2P distribution module records the claiming of each data, provides user information of the data access service, and facilitates users who have not claimed the data to access the data. When the user accesses the data through the CDN node, the CDN node selects several users who claim the data through the P2P network to read the data and perform verification. After the verification passes, it is saved to the general data cache of this node and provided to the user.

[0015] It is understandable that the P2P network refers to a network composed of all members who hold the data and all members who need the data. When the data is in the distribution pool, the P2P distribution and data claim and retrieval module is a member of the P2P network. When the data is not in the distribution pool, the P2P distribution and data claim and retrieval module is not a member of the P2P network. At this time, there are only users who claim the data and CDN nodes in the P2P network.

[0016] By using P2P technology in the system, the burden on the system (such as Bilibili, Weibo, and Baidu Netdisk) can be reduced, allowing users to save data for the platform, which can reduce costs. For example, the platform can not store some unpopular and niche resources, but let enthusiasts store them, and use platform points as rewards for enthusiasts to encourage enthusiasts to save data. In this way, the platform can use more high-quality storage resources to store data needed by more people, while also ensuring that unpopular resources are preserved.

[0017] Optionally, when the number of data claims is small and the data is about to be deleted from the expiring distribution data pool, users are recommended and encouraged to claim the data; users who have claimed the data are notified, recommended and encouraged to provide data access services to other users.

[0018] Furthermore, the CDN distribution controller is also used to notify the hierarchical storage controller to move or copy the data to the hot data pool and the general data pool, and mark the data as distributed, when the data in the expiring distribution data pool is converted into hot data; The P2P distribution controller is also used to move the data into the abandoned data pool when the data distribution time in the expired distribution data pool reaches the set conditions, and notify the author to retrieve the data, and then release the data abandonment voting function so that users can vote on whether to archive the data. If the vote reaches the set value, it will continue to be retained in the abandoned data pool. If the archive vote reaches the set value, the data will be moved to the write cache of the cold data pool. If the vote does not reach the set value within the specified time, it will be discarded and the voting will end to achieve reasonable and controllable forgetting of the data. It is understandable that if the distribution time of the cold backup data reaches the set conditions, it can be directly deleted from the abandoned data pool.

[0019] Optionally, the P2P distribution module regularly counts the data claimed by the claiming user and settles points for the user. The P2P distribution module provides data verification services. Users can submit data to the P2P distribution module to confirm whether the data has been tampered with. The P2P distribution module verifies the integrity of the data based on the data signature and gives an identification report.

[0020] Furthermore, it also includes a cold data access module, which is used to write the data in the cold data pool to cold media for redundant offline storage in multiple locations and retain the data index and cold storage reading method when the write cache of the cold data pool meets the archiving conditions, thereby realizing data archiving and facilitating later access.

[0021] In this embodiment, when a user accesses a piece of data through a CDN node and there is no other user to distribute it, a certain amount of points can be charged to the user for calling cold data to pay for the long-term storage fee of cold data, or the user can be encouraged to promise to distribute the data for a certain period of time and provide services to the user. After the user agrees, the CDN node makes a data access request to the cold data access module, and prompts the user that the data will provide short-term access services when available or continuously monitor the distribution status of the P2P module. After receiving the request, the cold data access module selects a cold storage medium corresponding to the data and loads it into the reader to read the data into the cold data read cache, notifying the user that it can access it, or notifying the P2P distribution module to provide the data to the claiming user. After receiving the notification, the user accesses the data through the CDN node or claims the data through the P2P distribution module. The CDN node obtains the data from the cold data read cache, saves it in the general data cache pool, and provides the data to the user. When the P2P module detects that the user requests the data, it saves the data to the expiring distribution data pool and provides the data to the user.

[0022] Furthermore, the cold data access module is also used to receive a data access request sent by the CDN distribution node, and select a cold storage medium corresponding to the data and load it into the reader to read the data into the read cache of the cold data pool, and notify the user so that the user can access the data through the CDN distribution node after receiving the notification or claim the data through the P2P distribution and data claim and retrieval module.

[0023] Optionally, when cold data becomes hot, the CDN distribution controller notifies the hierarchical storage controller to restore the data from the cold data pool to the general data pool and / or the general data cache pool and / or the expiring distribution data pool, and marks the data as stored in the cold backup, and recommends and encourages more users to claim the data; notifies, recommends and encourages users who have claimed the data to provide data access services to other users.

[0024] Beneficial effects of the present invention: (1) The system of the present invention can realize the state conversion between new data, hot data, general data, expiring distribution data, to be abandoned data and cold data by setting a hierarchical storage controller and a new data pool, a hot data pool, a general data pool, an expiring distribution data pool, a to-be-abandoned data pool and a cold data pool, a CDN distribution controller and a plurality of CDN distribution nodes; (2) The system also designs a P2P distribution and data claim and retrieval module, through which users can vote to decide whether to keep or cold store data, thereby achieving reasonable forgetting of data and ultimately reducing data storage costs; cold data can be archived and called in the short term, which can reduce the storage cost of the data center; (3) Combining CDN distribution with data center storage can reduce CDN costs; (4) By combining P2P distribution with hierarchical storage in data centers, the storage cost of data centers can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 One of the structural diagrams of the CDN and P2P-based hierarchical data storage system provided by an embodiment of the present invention; Figure 2 The second structural diagram of the CDN and P2P-based hierarchical data storage system provided by the embodiment of the present invention; Figure 3 The state conversion between new data, hot data and general data provided by the embodiment of the present invention; Figure 4 A schematic diagram of a process flow of data exit and data re-entry provided by an embodiment of the present invention; Figure 5 A schematic diagram of a data access process provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] Combination Figure 1 and Figure 2 As shown, the CDN and P2P-based hierarchical data storage system provided by the embodiment of the present invention mainly includes redundant storage clusters (also called data centers) of equal size located in Zone-A, Zone-B, and Zone-C respectively. The three clusters are linked via the Internet or a private network, and the data contents are synchronously backed up with each other.

[0028] Each cluster is equipped with 3 PowerEdge R6615 all-flash storage servers, EPYC 9124 processors, 12*256GDDR5-4800, 16 E3.s drives, 16*15.36T Kioxia CM6 NVME M.2 SSDs, Broadcom 57508 dual-port 100GbE QSFP, Debian operating system, and Ceph hyper-converged storage installed as a hot data pool.

[0029] Each cluster is equipped with 3 PowerEdge R6615 all-flash storage servers, EPYC 9124 processors, 12*256GDDR5-4800, 16 E3.s drives, 16*7.68T Kioxia CM6 NVME M.2 SSDs, Broadcom 57508 dual-port 100GbE QSFP, Debian operating system, and Ceph hyper-converged storage installed as a new data pool.

[0030] Each cluster is equipped with 50+ PowerEdge R7525 servers, EPYC 7413 processors, 16*32G DDR4-3200, 12x3.5 (SAS / SATA) + 4x2.5 (NVMe), 2CPU with XGMI, 4*15.36T Kioxia CM6 NVMEM.2 SSD, 12*22T SATA HDD, Broadcom 57508 dual-port 100GbE QSFP, Debian operating system, and Ceph hyper-converged storage installed as a general data pool.

[0031] Each cluster is equipped with 4 PowerEdge R7525 servers, EPYC 7413 processors, 16*32G DDR4-3200, 12x3.5 (SAS / SATA) + 4x2.5 (NVMe), 2CPU with XGMI, 4*15.36T Kioxia CM6 NVMEM.2 SSD, 12*22T SATA HDD, Broadcom 57508 dual-port 100GbE QSFP, Debian operating system, and Ceph hyper-converged storage installed as a temporary distribution data pool.

[0032] Each cluster is equipped with 2 PowerEdge R7525 servers, EPYC 7413 processors, 16*32G DDR4-3200, 12x3.5 (SAS / SATA) + 4x2.5 (NVMe), 2CPU with XGMI, 4*15.36T Kioxia CM6 NVMEM.2 SSD, 12*22T SATA HDD, Broadcom 57508 dual-port 100GbE QSFP, Debian operating system, and Ceph hyper-converged storage installed as a data pool to be abandoned.

[0033] Several CDN distribution nodes are distributed across the country. Each node is a computing cluster and each node serves the local area.

[0034] Each cluster is equipped with 3 PowerEdge R6615 all-flash storage servers, EPYC 9124 processors, 12*256GDDR5-4800, 16 E3.s drives, 16*15.36T Kioxia CM6 NVME M.2 SSD, Broadcom 57508 dual-port 100GbE QSFP, Debian operating system, and Ceph hyper-converged storage installed as a hot data replica pool to keep synchronized with the hot data pool of the data center.

[0035] Each cluster is equipped with 3 PowerEdge R6615 all-flash storage servers, EPYC 9124 processors, 12*256GDDR5-4800, 16 E3.s drives, 16*7.68T Kioxia CM6 NVME M.2 SSD, Broadcom 57508 dual-port 100GbE QSFP, Debian operating system, and Ceph hyper-converged storage is installed to keep the new data pool synchronized as a replica pool.

[0036] Each cluster is equipped with 2 PowerEdge R6615 all-flash storage servers, EPYC 9124 processors, 12*256GDDR5-4800, 16 E3.s drives, 16*7.68T Kioxia CM6 NVME M.2 SSDs, Broadcom 57508 dual-port 100GbE QSFP, Debian operating system, RAID10, mutual synchronization, serving as a new data cache pool to receive new data sent by users.

[0037] The cold data pool (also called the cold storage center) is located at the archive site, which can be multiple different archive sites. Each archive site is equipped with 2 PowerEdge R6615 all-flash storage servers, EPYC 9124 processors, 12*256G DDR5-4800, 16 E3.s drives, 16*7.68T Kioxia CM6 NVME M.2 SSD, Broadcom 57508 dual-port 100GbEQSFP, Debian operating system, RAID10, mutual synchronization, redundant backup. Equipped with Dell LTO8 tape drive tape library, archival BD-R optical disc burner, and optical disc library for cold backup.

[0038] The cluster of CDN distribution nodes runs a distributed CDN distribution controller, which controls the entire cluster by electing a master node. The platform uses anycast and DNS partition resolution to guide users in the responsible area to access the system platform through the CDN distribution node. The state flow diagram of new data, hot data, and general data is as follows: Figure 3 The data exit and data re-entry process is as follows Figure 4 shown.

[0039] (1) Submit new data. When a user delivers data to the system through a CDN distribution node, the CDN distribution node will store the data in a new data cache pool and notify the administrator to review the data. If the administrator fails to review the data, the CDN master node will discard the data.

[0040] (2) The new data is reviewed. When the administrator completes the review, the data center cluster synchronizes the data from the new data cache pool of the CDN distribution node. After the synchronization is complete, the data is deleted from the new data cache pool. Optionally, in order to avoid unnecessary cross-region transmission, after the synchronization is complete, the CDN node controller can move the data from the new data cache pool to the new data copy pool to speed up the synchronization process between the new data copy pool and the new data pool of the data center. Optionally, the data center cluster can copy the data to the general data pool to simplify subsequent operations, increase redundancy, and improve reliability.

[0041] (3) Synchronization of new data and hot data. The new data pool servers, hot data pool servers, and general data pool servers in the data center run distributed hierarchical storage controllers, and select the master control node through elections to control the entire cluster. Different regions then determine the platform master through elections. The platform master controls the data center and each CDN node to synchronize the data of the new data pool @ data center - new data copy pool @ CDN node and the hot data pool @ data center - hot data copy pool @ CDN node.

[0042] (4) New data becomes hot data. The platform master detects the parameters of the cached data of each CDN node. If the new data becomes hot (meets conditions such as the request volume reaching the standard), the new data is moved from the new data pool to the hot data pool and the CDN node is notified to synchronize.

[0043] (5) Hot data synchronization shortcut. The platform master detects the parameters of the cached data of each CDN node. If the general data becomes hot (the request volume meets the standard and other conditions), the new data is moved from the general data pool to the hot data pool and the CDN node is notified to synchronize. Optionally, the data can be copied from the general data pool to the hot data pool instead of moving it to simplify subsequent operations, increase redundancy and improve reliability.

[0044] (6) New data becomes old. The platform master detects the parameters of the cached data of each CDN node. If the new data becomes old (the request volume does not meet the standard within a certain period of time), if the data has been copied to the general data pool before, the data will be directly deleted from the new data pool. Otherwise, the new data will be moved from the new data pool to the general data pool, and the CDN node will be notified to synchronously delete the data from the corresponding new data copy pool.

[0045] (7) De-heating of hot data. The platform master detects the parameters of the cached data of each CDN node. If the hot data becomes old (the request volume does not meet the standard within a certain period of time), if the data has been copied to the general data pool before, the data will be directly deleted from the hot data pool. Otherwise, the new data will be moved from the hot data pool to the general data pool, and the CDN node will be notified to synchronously delete the data from the corresponding hot data copy pool.

[0046] (8) The general data pool abandons low-importance data. When the storage space of the general data pool in the data center is in urgent need or space needs to be released, the platform master will move the least important data into the expiring distribution data pool and repeat this process until the space release target is reached or the expiring distribution pool is full. Optionally, if the storage space of the general data pool is in urgent need, the administrator will be notified to increase the storage space or approve the data distribution.

[0047] (9-1.1) Data claim is allowed. The data pool for near-expiry distribution runs the P2P distribution and data claim module, which monitors the data in the near-expiry distribution data pool. When the data is moved into the near-expiry distribution data pool, the following steps are performed according to the requirements: If the data has not been approved for distribution before, notify the administrator to approve the data distribution; Furthermore, the administrator can set up automatic approval of data distribution. If the distribution is approved, a vote will be initiated to the platform users to vote on whether the data should be retained or removed. If the data is warmed up or the user votes to keep it on the platform, the P2P distribution and data claim and retrieval module will send the data back to the general data pool and reset the assessment conditions of the data. If the user votes to allow data distribution and claim, the P2P distribution and data claim and retrieval module will create a PT seed for the data, save the seed information to the PT Tracker server of the P2P distribution and data claim and retrieval module, and start seeding.

[0048] (9-1.2) User confirmation of claim. Users access the PT Tracker server of the P2P distribution and data claim and retrieval module. After user verification, they can view the data that is open for claiming. Users can choose the data they like to claim. Users confirm the claim relationship by downloading the seed file corresponding to the data. Optionally, when the file is just opened for claiming or the number of claimants is small and there is a risk of loss, the server prominently recommends claiming to the user.

[0049] (9-1.3) Distribute data to claiming users. When a user loads a seed file, the P2P distribution and data claiming and retrieval module starts distributing data to the claiming user. After receiving the data, the user starts seeding and distributing the data to other claiming users and CDN nodes.

[0050] (9-2) Data recovery. When a piece of data recovers, the P2P distribution and data claim module moves the data to the general data pool.

[0051] (9-3) Stop official distribution. When a piece of data is distributed for a certain period of time, the P2P distribution controller stops the official distribution and moves the data to the discarded data pool.

[0052] (10) Data redistribution: The abandoned data pool runs the P2P distribution and data claim and retrieval modules.

[0053] (11-1) Download. When the data is stored in the discarded data pool, the author is notified to retrieve the data, or the data download link is made public for users to download; (11-2.1) Voting decision. If the data has not been voted for archive before, a vote will be initiated to platform users to vote on whether the data is worthy of permanent archiving. If the vote is passed, the data will be moved to the cold data pool; (11-2.2) Data cold storage. When data enters the cold data pool, when the accumulated data reaches the archiving condition, a BD-R medium or (and) tape is allocated for cold backup. After the backup is completed, it is placed in the media storage warehouse for storage. Cold data pool storage and retrieval method.

[0054] (11-3) Destruction. If the data in the abandoned data pool exceeds the retention period, the data will be permanently destroyed, relying only on user distribution or cold backup. Optionally, if no claiming user distributes the data for a certain period of time and there is no cold backup, the data-related information will be completely deleted from the platform.

[0055] (12) Reloading and distribution upon request. If the user pays points to retrieve the data or promises to re-seed the data, the corresponding media will be loaded from the cold data pool to restore the data, and the data will be put back into the general data pool and the near-expiry distribution pool. The assessment conditions will be reset and the user will be notified to claim the data or use the data.

[0056] Data retrieval process Figure 5 When a user accesses platform data through a CDN distribution node, the new data copy pool and the hot data copy pool are queried first, and if a match is found, the query is returned to the user; If the data is general data, the general data pool of the data center is queried for the data. If a hit is found, the data is saved to the general data cache pool of the node and returned to the user.

[0057] If the data has expired in the general data pool, the P2P distribution and data claim retrieval module is requested for the data. After receiving the request, the P2P distribution and data claim retrieval module retrieves the data from the expiring distribution data pool or contacts the user who claimed the data through the P2P Tracker.

[0058] If the data is not distributed but there is a cold backup, the user will be notified when it is available, and then the corresponding cold media will be retrieved according to the records, and the data stored in the cold media will be read and restored to the corresponding storage pool. After the recovery, the user will be notified to claim the data or use the data.

[0059] P2P Tracker regularly issues points to users based on the number of users who claim data and the length of service to encourage them to maintain distribution, allowing users to obtain economic benefits.

[0060] Furthermore, the system includes a data signature module, which includes a platform private key and a public key. The public key is used by users to access and verify data, and the private key is used to sign the data on the platform. It also includes a user public key. Users can generate a public-private key pair and upload the public key to the module to facilitate other users to verify the author of the data. Users can also hand over the user's public-private key pair to the platform for hosting, so that users can use the platform to sign their own works.

[0061] When data is distributed to users, returned to authors, or publicly downloaded, in order to protect copyright, prevent tampering, and protect the rights and interests of the platform, the data signature module uses the platform's private key and the author's private key to perform a total signature and group signature on the data. Users can submit data or part of the data to the signature module to verify the copyright and integrity of the data.

[0062] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A hierarchical data storage system based on CDN and P2P, characterized in that: include: Hierarchical storage module, CDN distribution module, and P2P distribution and data claim and retrieval module; The hierarchical storage module includes a hierarchical storage controller and a new data pool, a hot data pool, a general data pool, an expiring distribution data pool, a to-be-abandoned data pool, and a cold data pool; the CDN distribution module includes a CDN distribution controller and a number of CDN distribution nodes; each CDN distribution node includes a new data copy pool, a hot data copy pool, a general data cache pool, and a new data cache pool; the P2P distribution and data claim and retrieval module includes a P2P distribution controller; Among them, the CDN distribution node is used to collect new data submitted by users responsible for this node and cache it in the new data cache pool; The CDN controller is used to review the data in the new data cache pool. If the review is passed, the reviewed data is synchronized to the new data pool of the hierarchical storage module; if the reviewed data is consistent with the copy verification of the new data pool, it is moved from the new data cache pool of the node where it is located to the new data copy pool; and control other CDN distribution nodes to synchronize the reviewed data from the new data pool to their own new data copy pool; The P2P distribution controller is used to release the data voting function when the data that has not been distributed enters the expiring distribution data pool, so that users can vote on whether to keep or remove the data. When the number of votes in favor reaches the target amount, the hierarchical storage controller is notified to transfer the data back to the general data pool, and the voting ends. If the number of votes against reaches the target amount or does not reach the set value within the specified time, the data will be signed and added to the distribution queue to start data claiming.

2. The CDN and P2P-based hierarchical data storage system according to claim 1, characterized in that: The CDN distribution node is also used to download the accessed data from the general data pool and save it to the general data cache pool when the user accesses the data in the general data pool so as to distribute the data to the user; and to remove the data from the general data cache pool when the data in the general data cache pool reaches a set time and does not meet the set maintenance conditions.

3. The CDN and P2P-based hierarchical data storage system according to claim 1, characterized in that: The CDN controller is also used to detect data in the general data cache pool of all CDN distribution nodes. If it is determined that the data meets the set conditions, it notifies the hierarchical storage controller to copy or move the data to the hot data pool, and controls the corresponding CDN distribution node to move the data from its own general data cache pool to the hot data copy pool, and controls other CDN distribution nodes to synchronize the data from the hot data pool to their respective hot data copy pools.

4. The CDN and P2P-based hierarchical data storage system according to claim 1, characterized in that: The hierarchical storage controller is used to move the data in the new data pool to the hot data pool when the data in the new data pool meets the set conditions, and notify the CDN distribution controller to move the data copies in all CDN distribution nodes from the new data copy pool to the hot data copy pool; It is also used to check whether the data in the new data pool is saved in the general data pool when the data in the new data pool reaches the set time and does not meet the conditions for moving to the hot data pool. If so, the data is directly deleted from the new data pool; otherwise, the data is moved to the general data pool, and after deletion or moving in, the CDN distribution controller is notified to synchronously delete the data copy from the new data copy pool of all CDN distribution nodes.

5. The CDN and P2P-based hierarchical data storage system according to claim 4, characterized in that: The hierarchical storage controller is also used to check whether the data in the hot data pool is saved in the general data pool when the data in the hot data pool reaches the set time and does not meet the set maintenance conditions. If so, the data is directly deleted from the new data pool; otherwise, the data is moved into the general data pool, and after deletion or movement, the CDN distribution controller is notified to synchronously delete the data copy from the hot data copy pool of all CDN distribution nodes.

6. The CDN and P2P-based hierarchical data storage system according to claim 5, characterized in that: The hierarchical storage controller is also used to move / copy data in the general data pool to the hot data pool to convert it into hot data, and notify the CDN distribution controller to distribute the hot data; and when the use of the general data pool exceeds the warning setting value, it is used to issue an early warning prompt to add new storage space. When the use of the general data pool exceeds the distribution setting value, the data that has not been voted back recently and is the least active is transferred to the expiring distribution data pool. If the data already exists in the expiring distribution data pool, the copy in the general data pool is directly deleted until the use of the general data pool is lower than the distribution setting value.

7. The CDN and P2P-based hierarchical data storage system according to claim 1, characterized in that: The P2P distribution controller is also used to display the data in the distribution queue to the user after data claiming is turned on, so that the user can select the data he needs and save it to the user device; and is used to record the claiming status of each data in the distribution queue, so that when the user who has not claimed the data accesses the data through the CDN distribution node, the CDN distribution node selects several users who have claimed the data through the P2P network to read the data, and saves it to the general data cache pool of this node for access by the users who have not claimed the data.

8. The CDN and P2P-based hierarchical data storage system according to claim 1, characterized in that: The CDN distribution controller is further used to notify the hierarchical storage controller to move or copy the data to the hot data pool and the general data pool when the data in the upcoming distribution data pool is converted into hot data, and mark the data as distributed; The P2P distribution controller is also used to move the data into the to-be-abandoned data pool when the data distribution time in the due distribution data pool reaches the set conditions, and notify the author to retrieve the data, and then release the data abandonment voting function so that users can vote on whether to archive the data. If the retention vote reaches the set value, the data will continue to be retained in the to-be-abandoned data pool. If the archiving vote reaches the set value, the data will be moved to the write cache of the cold data pool. If the vote does not reach the set value within the specified time, the data will be discarded and the voting will end.

9. The CDN and P2P-based hierarchical data storage system according to claim 8, characterized in that: It also includes a cold data access module, which is used to write the data in the cold data pool into cold media for redundant offline storage in multiple locations and retain the data index and cold storage reading method when the write cache of the cold data pool reaches the archiving condition.

10. The CDN and P2P-based hierarchical data storage system according to claim 9, characterized in that: The cold data access module is also used to receive a data access request sent by the CDN distribution node, select a cold storage medium corresponding to the data and load it into the reader to read the data into the read cache of the cold data pool, and notify the user so that the user can access the data through the CDN distribution node after receiving the notification or claim the data through the P2P distribution and data claim and retrieval module.