Cloud disk operating system capable of storing data in real time
By analyzing and optimizing the differential data of cloud folders and formulating and optimizing synchronization strategies, the problems of synchronization consistency and integrity of local files and cloud files are solved, and efficient synchronization operations are achieved.
Patent Information
- Application Number
- CN202410944681.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-12-17
AI Technical Summary
The existing technology is difficult to realize real-time synchronization of local files and cloud files, making it difficult to ensure the consistency and integrity of synchronized data.
By analyzing the differential data of local folders and cloud folders, a synchronization control strategy is formulated, and through simulation simulation and effect evaluation, the synchronization strategy is optimized to improve synchronization efficiency and ensure the consistency and integrity of the file.
Improve synchronization efficiency, ensure synchronization consistency and integrity of local files and cloud files, and reduce the need for synchronization time and storage space.
Smart Images

Figure CN119149553A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of cloud disk operation, and in particular to a cloud disk operating system capable of storing data in real time. Background Art
[0002] Automatic storage of computer data is of great significance and value to corporate managers. First of all, it can improve the efficiency of work and life. Cloud disks that automatically store data can synchronize files on different devices together, allowing users to browse and edit their files on different devices at any time, greatly improving efficiency. Therefore, in order to achieve consistency and integrity of synchronized data, a cloud disk operating system that can store data in real time is urgently needed. Summary of the invention
[0003] To solve the above technical problems, the present application provides a cloud disk operating system that can store data in real time. It obtains first difference data by analyzing local folders and cloud folders, formulates a first synchronization control strategy for the difference data, corrects the first synchronization control strategy according to the second difference data, obtains multiple second synchronization control strategies, simulates the multiple second synchronization control strategies, and evaluates the synchronization effects. According to the synchronization effect evaluation, the optimal synchronization control strategy is obtained, which improves the synchronization efficiency and ensures the consistency and integrity of local files and cloud files.
[0004] In some embodiments of the present application, a cloud disk operating system capable of storing data in real time is provided, including:
[0005] The login module is used to log in to the cloud client and establish a connection with the cloud server to bind the local folder with the cloud folder;
[0006] An analysis module, configured to analyze the first data content of the local folder and the second data content of the cloud folder to obtain first difference data, and formulate a first synchronization control strategy for the first difference data;
[0007] A correction module, used for synchronizing the first difference data according to the first synchronization control strategy, obtaining the second difference data, and correcting the first synchronization control strategy according to the second difference data to obtain multiple second synchronization control strategies;
[0008] The synchronization module is used to simulate each second synchronization control strategy, obtain the simulation synchronization difference characteristics and evaluate the synchronization effect, select the optimal synchronization control strategy according to the synchronization effect evaluation result, and synchronize the second difference data according to the optimal synchronization control strategy.
[0009] In some embodiments of the present application, binding a local folder with a cloud folder includes:
[0010] The user logs in to the cloud client and obtains the user's login request and the access key corresponding to the login request;
[0011] Authenticate the login request based on the access key. If the authentication is successful, the cloud client establishes a connection with the cloud server and sends the user's login request to the cloud server.
[0012] The cloud server receives the login request and parses the login information of the login request, and sends a binding request to multiple cloud folders according to the login information to implement binding between the local folder and the cloud folder.
[0013] In some embodiments of the present application, analyzing the first data content of the local folder and the second data content of the cloud folder to obtain the first difference data includes:
[0014] Acquire the first data content of the local folder in real time, cut the first data content into a plurality of first data blocks based on the CDC algorithm, set a first boundary value for each first data block, and generate a first important coefficient for each first data block according to the important coefficient of each data in the first data block;
[0015] Acquire the second data content of the cloud folder in real time, cut the second data content into a plurality of second data blocks based on the CDC algorithm, set a second boundary value for each second data block, and generate a second important coefficient for each second data block according to the important coefficient of each data in the second data block;
[0016] Matching a first boundary value of a first data block with a second boundary value of a corresponding second data block to obtain a first matching result, and obtaining a first difference data block group according to the first matching result;
[0017] Matching a first important coefficient of the first data block with a second important coefficient of the corresponding second data block to obtain a second matching result, and obtaining a second difference data block group according to the second matching result;
[0018] The first difference data block group and the second difference data block group are compared, duplicate difference data block groups are eliminated according to the comparison result, the remaining difference data block groups are analyzed to obtain first difference data, and corresponding index tags and index tag numbers are set for the first difference data, wherein the index tags include first index tags and second index tags.
[0019] In some embodiments of the present application, formulating a first synchronization control strategy for the first difference data includes:
[0020] Obtaining the important coefficient of each first difference data, and determining the synchronization strategy reference library corresponding to the important coefficient of the current first difference data based on the important coefficient-synchronization strategy reference library, wherein the synchronization strategy reference library includes a plurality of historical synchronization control strategies corresponding to the important coefficient of the current first difference data;
[0021] Screening out a preferred synchronization control strategy corresponding to each first difference data according to historical synchronization effect evaluation results of multiple historical synchronization control strategies corresponding to important coefficients of the first difference data;
[0022] A first synchronization control strategy for current first difference data is generated according to a plurality of preferred synchronization control strategies.
[0023] In some embodiments of the present application, obtaining the second difference data includes:
[0024] Acquire the third data content of the local folder and the fourth data content of the cloud folder after the first synchronization control strategy;
[0025] If the index tag of the first difference data is the first index tag, the index tag number corresponding to the first difference data is searched in the fourth data content of the cloud folder, and if the search result is that the first difference data exists, the corresponding first difference data is set as the synchronization data; if the search result is that the first difference data does not exist, the corresponding first difference data is set as the second difference data;
[0026] If the index tag of the first difference data is the second index tag, the index tag number corresponding to the first difference data is retrieved in the third data content of the local folder. If the search result is that it exists, the corresponding first difference data is set as the synchronization data. If the search result is that it does not exist, the corresponding first difference data is set as the second difference data.
[0027] In some embodiments of the present application, the first synchronization control strategy is modified according to the second difference data to obtain multiple second synchronization control strategies, including:
[0028] A number of importance evaluation intervals are preset, and each importance evaluation interval is mapped with a specific correction coefficient interval;
[0029] Performing an importance evaluation according to the importance coefficient of the second difference data, and determining a corresponding correction coefficient interval based on an importance evaluation interval corresponding to the importance evaluation;
[0030] Based on the corresponding correction coefficient interval, the synchronization control parameters in the first synchronization control strategy are corrected to generate multiple correction schemes. Based on each correction scheme, the first synchronization control strategy is corrected to obtain multiple second synchronization control strategies.
[0031] In some embodiments of the present application, each second synchronization control strategy is simulated to obtain a simulation synchronization difference feature, including:
[0032] Perform simulation for each second synchronization control strategy to generate a simulation cloud disk synchronization control model;
[0033] The simulation synchronization result in each simulation cloud disk synchronization control model is compared and analyzed with the preset standard synchronization result to determine the simulation synchronization difference characteristics, which include simulation synchronization difference data and simulation synchronization duration difference.
[0034] In some embodiments of the present application, the synchronization effect evaluation is performed on the simulation synchronization difference feature, including:
[0035] Determine the number of simulation synchronization difference data and the corresponding index tag numbers according to the simulation synchronization difference data, assign values to the corresponding index tag numbers, and obtain assignment coefficients of multiple index tag numbers;
[0036] According to the simulation synchronization time difference, the time difference between the simulation synchronization time of each simulation synchronization data and the corresponding standard synchronization time is obtained;
[0037] The synchronization effect of the corresponding simulation cloud disk synchronization control model is evaluated according to the number of simulation synchronization difference data, the corresponding assignment coefficient, and the duration difference in the simulation synchronization duration difference;
[0038] The calculation formula for the synchronization effect evaluation is:
[0039]
[0040] Among them, K is the synchronization effect evaluation result, r1 is the first conversion coefficient, r2 is the second conversion coefficient, a1 is the weight coefficient of the simulation synchronization difference data, a2 is the weight coefficient of the simulation synchronization duration difference, gi is the assignment coefficient of the i-th simulation synchronization difference data, n is the number of simulation synchronization difference data, Tv is the simulation synchronization duration of the v-th simulation synchronization data, T0v is the standard synchronization duration of the v-th simulation synchronization data, and s is the number of simulation synchronization data.
[0041] In some embodiments of the present application, an optimal synchronization control strategy is selected according to the synchronization effect evaluation result, and the second difference data is synchronized according to the optimal synchronization control strategy, including:
[0042] The simulation cloud disk synchronization control models are sorted according to the synchronization effect evaluation results, and the second difference data is synchronized according to the second synchronization control strategy corresponding to the first-ranked simulation cloud disk synchronization control model, the synchronization results are collected in real time, and the similarity between the current synchronization result and the simulation synchronization result of the first-ranked simulation cloud disk synchronization control model is calculated;
[0043] If the similarity is greater than a preset similarity threshold, the second synchronization control strategy corresponding to the first-ranked simulation cloud disk synchronization control model is set as the optimal synchronization control strategy.
[0044] In some embodiments of the present application, calculating the similarity between the current synchronization result and the simulation synchronization result of the first-ranked simulation cloud disk synchronization control model includes:
[0045] The synchronization effect is evaluated according to the current synchronization result, and the difference is made with the synchronization effect evaluation result of the simulation cloud disk synchronization control model ranked first to obtain the synchronization effect difference;
[0046] Pre-set synchronization effect difference threshold;
[0047] If the synchronization effect difference is less than the preset synchronization effect difference threshold, it is determined that the similarity between the previous synchronization result and the simulation synchronization result of the first ranked simulation cloud disk synchronization control model is greater than the preset similarity threshold;
[0048] If the synchronization effect difference is greater than the preset synchronization effect difference threshold, it is determined that the similarity between the previous synchronization result and the simulation synchronization result of the first-ranked simulation cloud disk synchronization control model is less than the preset similarity threshold.
[0049] Compared with the prior art, the cloud disk operating system capable of storing data in real time in the embodiment of the present application has the following beneficial effects:
[0050] By analyzing the local folder and the cloud folder to obtain the first difference data, a first synchronization control strategy is formulated for the difference data, the first synchronization control strategy is modified according to the second difference data to obtain multiple second synchronization control strategies, the multiple second synchronization control strategies are simulated, and the synchronization effect is evaluated, and the optimal synchronization control strategy is obtained according to the synchronization effect evaluation, which improves the synchronization efficiency and ensures the consistency and integrity of local files and cloud files. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a schematic diagram of a cloud disk operating system that can store data in real time in the preferred embodiment of the present application. DETAILED DESCRIPTION
[0052] The specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application but are not intended to limit the scope of the present application.
[0053] In the description of the present application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0054] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0055] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0056] like Figure 1 As shown, a cloud disk operating system capable of storing data in real time in a preferred embodiment of the present application includes:
[0057] The login module is used to log in to the cloud client and establish a connection with the cloud server to bind the local folder with the cloud folder;
[0058] An analysis module, configured to analyze the first data content of the local folder and the second data content of the cloud folder to obtain first difference data, and formulate a first synchronization control strategy for the first difference data;
[0059] A correction module, used for synchronizing the first difference data according to the first synchronization control strategy, obtaining the second difference data, and correcting the first synchronization control strategy according to the second difference data to obtain multiple second synchronization control strategies;
[0060] The synchronization module is used to simulate each second synchronization control strategy, obtain the simulation synchronization difference characteristics and evaluate the synchronization effect, select the optimal synchronization control strategy according to the synchronization effect evaluation result, and synchronize the second difference data according to the optimal synchronization control strategy.
[0061] In this embodiment, first difference data is obtained by analyzing local folders and cloud folders, a first synchronization control strategy is formulated for the difference data, the first synchronization control strategy is corrected according to the second difference data to obtain multiple second synchronization control strategies, the multiple second synchronization control strategies are simulated, and the synchronization effect is evaluated, and the optimal synchronization control strategy is obtained based on the synchronization effect evaluation, which improves the synchronization efficiency and ensures the consistency and integrity of local files and cloud files.
[0062] In some embodiments of the present application, binding a local folder with a cloud folder includes:
[0063] The user logs in to the cloud client and obtains the user's login request and the access key corresponding to the login request;
[0064] Authenticate the login request based on the access key. If the authentication is successful, the cloud client establishes a connection with the cloud server and sends the user's login request to the cloud server.
[0065] The cloud server receives the login request and parses the login information of the login request, and sends a binding request to multiple cloud folders according to the login information to implement binding between the local folder and the cloud folder.
[0066] In this embodiment, the access key is determined by the login information in the user's login request, and the key information is extracted from the login information. The key information is input into the key database of the cloud server for authentication. After the authentication is passed, the login request will be sent to the cloud server.
[0067] In this embodiment, the cloud server receives a login request and parses the login information in the login request. The local folders and cloud folders selected by the user for synchronization and backup can be obtained from the login information, and a binding request is sent to multiple cloud folders to bind the local folders to the cloud folders.
[0068] In some embodiments of the present application, analyzing the first data content of the local folder and the second data content of the cloud folder to obtain the first difference data includes:
[0069] Acquire the first data content of the local folder in real time, cut the first data content into a plurality of first data blocks based on the CDC algorithm, set a first boundary value for each first data block, and generate a first important coefficient for each first data block according to the important coefficient of each data in the first data block;
[0070] Acquire the second data content of the cloud folder in real time, cut the second data content into a plurality of second data blocks based on the CDC algorithm, set a second boundary value for each second data block, and generate a second important coefficient for each second data block according to the important coefficient of each data in the second data block;
[0071] Matching a first boundary value of a first data block with a second boundary value of a corresponding second data block to obtain a first matching result, and obtaining a first difference data block group according to the first matching result;
[0072] Matching a first important coefficient of the first data block with a second important coefficient of the corresponding second data block to obtain a second matching result, and obtaining a second difference data block group according to the second matching result;
[0073] The first difference data block group and the second difference data block group are compared, duplicate difference data block groups are eliminated according to the comparison result, the remaining difference data block groups are analyzed to obtain first difference data, and corresponding index tags and index tag numbers are set for the first difference data, wherein the index tags include first index tags and second index tags.
[0074] In this embodiment, the CDC (content-defined-chunking) algorithm refers to dividing the data content of the local folder and the cloud folder into data blocks of variable length. The length of the data block is between a specified maximum and minimum value. The variable-length data blocks are divided by a sliding window. When the hash value of the sliding window matches a benchmark value, a block is created, so that the size of the data block can achieve a desired distribution.
[0075] In this embodiment, the importance coefficient is set according to the number of calls of each data. The greater the number of calls, the larger the importance coefficient. The first importance coefficient is obtained according to the importance coefficient of all data in each first data block, and the second importance coefficient is obtained according to the importance coefficient of all data in each second data block.
[0076] In this embodiment, the first index tag refers to the difference data that is present in the local folder but not in the cloud folder, and the second index tag refers to the difference data that is not present in the local folder but in the cloud folder. The index tag number is set according to the importance coefficient of the difference data in the same index tag, and the numbers are set according to the size of the importance coefficient. The difference data with a larger importance coefficient has an earlier number in the corresponding index tag.
[0077] In this embodiment, the first difference data block group is a difference data block group determined according to different boundary values, and the second difference data block group is a difference data block group determined according to different important coefficients. The difference data block group includes changed data blocks and corresponding unsynchronized data blocks.
[0078] In this embodiment, the first data content and the second data content are cut into multiple first data blocks and second data blocks according to the same cutting method based on the CDC algorithm. By matching the important coefficients and boundary values of the first data block and the corresponding second data block, it is possible to obtain whether there is a difference in the data of the two data blocks, thereby obtaining the difference data, and establishing an index tag for the difference data, so as to synchronize the corresponding difference data to the corresponding folder. There is no need to adopt the entire file storage update method, which saves a lot of synchronization time and storage space, ensures the integrity of data synchronization, and improves the synchronization efficiency.
[0079] In some embodiments of the present application, formulating a first synchronization control strategy for the first difference data includes:
[0080] Obtaining the important coefficient of each first difference data, and determining the synchronization strategy reference library corresponding to the important coefficient of the current first difference data based on the important coefficient-synchronization strategy reference library, wherein the synchronization strategy reference library includes a plurality of historical synchronization control strategies corresponding to the important coefficient of the current first difference data;
[0081] Screening out a preferred synchronization control strategy corresponding to each first difference data according to historical synchronization effect evaluation results of multiple historical synchronization control strategies corresponding to important coefficients of the first difference data;
[0082] A first synchronization control strategy for current first difference data is generated according to a plurality of preferred synchronization control strategies.
[0083] In this embodiment, the synchronization strategy reference library includes synchronization strategies for data of different important coefficients. The synchronization strategies include synchronization cycles, file filtering methods, network transmission optimization, etc. The historical synchronization effect evaluation results refer to the evaluation values of the data integrity and synchronization duration of the historical synchronization control strategies.
[0084] In some embodiments of the present application, obtaining the second difference data includes:
[0085] Acquire the third data content of the local folder and the fourth data content of the cloud folder after the first synchronization control strategy;
[0086] If the index tag of the first difference data is the first index tag, the index tag number corresponding to the first difference data is searched in the fourth data content of the cloud folder, and if the search result is that the first difference data exists, the corresponding first difference data is set as the synchronization data; if the search result is that the first difference data does not exist, the corresponding first difference data is set as the second difference data;
[0087] If the index tag of the first difference data is the second index tag, the index tag number corresponding to the first difference data is retrieved in the third data content of the local folder. If the search result is that it exists, the corresponding first difference data is set as the synchronization data. If the search result is that it does not exist, the corresponding first difference data is set as the second difference data.
[0088] In this embodiment, the index tag number set by the retrieval is used to quickly determine whether the corresponding first difference data is synchronized to the corresponding folder, thereby avoiding repeated retrieval of existing data content, thereby improving the storage space and synchronization efficiency of the cloud disk.
[0089] In some embodiments of the present application, the first synchronization control strategy is modified according to the second difference data to obtain multiple second synchronization control strategies, including:
[0090] A number of importance evaluation intervals are preset, and each importance evaluation interval is mapped with a specific correction coefficient interval;
[0091] Performing an importance evaluation according to the importance coefficient of the second difference data, and determining a corresponding correction coefficient interval based on an importance evaluation interval corresponding to the importance evaluation;
[0092] Based on the corresponding correction coefficient interval, the synchronization control parameters in the first synchronization control strategy are corrected to generate multiple correction schemes. Based on each correction scheme, the first synchronization control strategy is corrected to obtain multiple second synchronization control strategies.
[0093] In this embodiment, the synchronization control parameters are corrected according to the corresponding correction coefficient interval, and the synchronization control parameters include synchronization duration, synchronization cycle or number of synchronization transmissions, etc. The first synchronization control strategy is corrected according to multiple correction schemes to obtain multiple second synchronization control strategies. The synchronization control strategy is corrected through real-time feedback difference data to ensure the consistency and integrity of the cloud folder and the local folder.
[0094] In some embodiments of the present application, each second synchronization control strategy is simulated to obtain a simulation synchronization difference feature, including:
[0095] Perform simulation for each second synchronization control strategy to generate a simulation cloud disk synchronization control model;
[0096] The simulation synchronization result in each simulation cloud disk synchronization control model is compared and analyzed with the preset standard synchronization result to determine the simulation synchronization difference characteristics, which include simulation synchronization difference data and simulation synchronization duration difference.
[0097] In this embodiment, the simulation synchronization result includes simulation synchronization data, simulation synchronization duration of the simulation synchronization data, and simulation synchronization difference data. The preset standard synchronization result refers to all successfully synchronized data of the second difference data and the standard synchronization duration of all successfully synchronized data. By comparing the simulation synchronization result with the preset standard synchronization result, the simulation synchronization difference data and the simulation synchronization duration difference can be obtained. The simulation synchronization duration difference = simulation synchronization duration of the simulation synchronization data - the corresponding standard synchronization duration.
[0098] In some embodiments of the present application, the synchronization effect evaluation is performed on the simulation synchronization difference feature, including:
[0099] Determine the number of simulation synchronization difference data and the corresponding index tag numbers according to the simulation synchronization difference data, assign values to the corresponding index tag numbers, and obtain assignment coefficients of multiple index tag numbers;
[0100] According to the simulation synchronization time difference, the time difference between the simulation synchronization time of each simulation synchronization data and the corresponding standard synchronization time is obtained;
[0101] The synchronization effect of the corresponding simulation cloud disk synchronization control model is evaluated according to the number of simulation synchronization difference data, the corresponding assignment coefficient, and the duration difference in the simulation synchronization duration difference;
[0102] The calculation formula for the synchronization effect evaluation is:
[0103]
[0104] Among them, K is the synchronization effect evaluation result, r1 is the first conversion coefficient, r2 is the second conversion coefficient, a1 is the weight coefficient of the simulation synchronization difference data, a2 is the weight coefficient of the simulation synchronization duration difference, gi is the assignment coefficient of the i-th simulation synchronization difference data, n is the number of simulation synchronization difference data, Tv is the simulation synchronization duration of the v-th simulation synchronization data, T0v is the standard synchronization duration of the v-th simulation synchronization data, and s is the number of simulation synchronization data.
[0105] In this embodiment, the synchronization effects of multiple second synchronization control strategies are evaluated to obtain the optimal synchronization control strategy, thereby improving the storage space and synchronization efficiency while ensuring the consistency and integrity of the cloud folder and the local folder.
[0106] In some embodiments of the present application, an optimal synchronization control strategy is selected according to the synchronization effect evaluation result, and the second difference data is synchronized according to the optimal synchronization control strategy, including:
[0107] The simulation cloud disk synchronization control models are sorted according to the synchronization effect evaluation results, and the second difference data is synchronized according to the second synchronization control strategy corresponding to the first-ranked simulation cloud disk synchronization control model, the synchronization results are collected in real time, and the similarity between the current synchronization result and the simulation synchronization result of the first-ranked simulation cloud disk synchronization control model is calculated;
[0108] If the similarity is greater than a preset similarity threshold, the second synchronization control strategy corresponding to the first-ranked simulation cloud disk synchronization control model is set as the optimal synchronization control strategy.
[0109] In this embodiment, the synchronization results are collected in real time, and the similarity between the current synchronization result and the simulation synchronization result of the first-ranked simulation cloud disk synchronization control model is calculated. According to the similarity, the credibility of the corresponding simulation cloud disk synchronization control model and the second synchronization control strategy can be obtained, thereby setting the optimal synchronization control strategy, and updating the optimal synchronization control strategy to the important coefficient-synchronization strategy reference library, thereby improving the synchronization efficiency and ensuring the consistency and integrity of the local folder and the cloud folder.
[0110] In some embodiments of the present application, calculating the similarity between the current synchronization result and the simulation synchronization result of the first-ranked simulation cloud disk synchronization control model includes:
[0111] The synchronization effect is evaluated according to the current synchronization result, and the difference is made with the synchronization effect evaluation result of the simulation cloud disk synchronization control model ranked first to obtain the synchronization effect difference;
[0112] Pre-set synchronization effect difference threshold;
[0113] If the synchronization effect difference is less than the preset synchronization effect difference threshold, it is determined that the similarity between the previous synchronization result and the simulation synchronization result of the first ranked simulation cloud disk synchronization control model is greater than the preset similarity threshold;
[0114] If the synchronization effect difference is greater than the preset synchronization effect difference threshold, it is determined that the similarity between the previous synchronization result and the simulation synchronization result of the first-ranked simulation cloud disk synchronization control model is less than the preset similarity threshold.
[0115] In summary, the present application discloses a cloud disk operating system that can store data in real time, including: a login module, used to log in to a cloud client and establish a connection with a cloud server to realize the binding of a local folder and a cloud folder; an analysis module, used to analyze the first data content of the local folder and the second data content of the cloud folder, obtain first difference data, and formulate a first synchronization control strategy for the first difference data; a correction module, used to synchronize the first difference data according to the first synchronization control strategy, obtain second difference data, and correct the first synchronization control strategy according to the second difference data to obtain multiple second synchronization control strategies; a synchronization module, used to simulate each second synchronization control strategy, obtain simulated synchronization difference characteristics and evaluate the synchronization effect, select the optimal synchronization control strategy according to the synchronization effect evaluation result, and synchronize the second difference data according to the optimal synchronization control strategy; the above technical solution discloses the generation of a synchronization control strategy for the difference data of local files and cloud files, and corrects the synchronization control strategy through multiple analysis of difference data, thereby ensuring that the synchronization control is more accurate and the consistency and integrity of local files and cloud files are ensured.
[0116] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present application. These improvements and substitutions should also be regarded as the scope of protection of the present application.
Claims
1. A cloud disk operating system that can store data in real time. It is characterized in that include: The login module is used to log in to the cloud client and establish a connection with the cloud server to bind the local folder with the cloud folder; An analysis module, configured to analyze the first data content of the local folder and the second data content of the cloud folder to obtain first difference data, and formulate a first synchronization control strategy for the first difference data; A correction module, used for synchronizing the first difference data according to the first synchronization control strategy, obtaining the second difference data, and correcting the first synchronization control strategy according to the second difference data to obtain multiple second synchronization control strategies; The synchronization module is used to simulate each second synchronization control strategy, obtain the simulation synchronization difference characteristics and evaluate the synchronization effect, select the optimal synchronization control strategy according to the synchronization effect evaluation result, and synchronize the second difference data according to the optimal synchronization control strategy.
2. The cloud disk operating system capable of storing data in real time as claimed in claim 1, It is characterized in that Bind the local folder with the cloud folder, including: The user logs in to the cloud client and obtains the user's login request and the access key corresponding to the login request; Authenticate the login request based on the access key. If the authentication is successful, the cloud client establishes a connection with the cloud server and sends the user's login request to the cloud server. The cloud server receives the login request and parses the login information of the login request, and sends a binding request to multiple cloud folders according to the login information to implement binding between the local folder and the cloud folder.
3. The cloud disk operating system capable of storing data in real time as claimed in claim 2, It is characterized in that Analyze the first data content of the local folder and the second data content of the cloud folder to obtain first difference data, including: Acquire the first data content of the local folder in real time, cut the first data content into a plurality of first data blocks based on the CDC algorithm, set a first boundary value for each first data block, and generate a first important coefficient for each first data block according to the important coefficient of each data in the first data block; Acquire the second data content of the cloud folder in real time, cut the second data content into a plurality of second data blocks based on the CDC algorithm, set a second boundary value for each second data block, and generate a second important coefficient for each second data block according to the important coefficient of each data in the second data block; Matching a first boundary value of a first data block with a second boundary value of a corresponding second data block to obtain a first matching result, and obtaining a first difference data block group according to the first matching result; Matching a first important coefficient of the first data block with a second important coefficient of the corresponding second data block to obtain a second matching result, and obtaining a second difference data block group according to the second matching result; The first difference data block group and the second difference data block group are compared, duplicate difference data block groups are eliminated according to the comparison result, the remaining difference data block groups are analyzed to obtain first difference data, and corresponding index tags and index tag numbers are set for the first difference data, wherein the index tags include first index tags and second index tags.
4. The cloud disk operating system capable of storing data in real time as claimed in claim 3, It is characterized in that Formulating a first synchronization control strategy for the first difference data includes: Obtaining the important coefficient of each first difference data, and determining the synchronization strategy reference library corresponding to the important coefficient of the current first difference data based on the important coefficient-synchronization strategy reference library, wherein the synchronization strategy reference library includes a plurality of historical synchronization control strategies corresponding to the important coefficient of the current first difference data; Screening out a preferred synchronization control strategy corresponding to each first difference data according to historical synchronization effect evaluation results of multiple historical synchronization control strategies corresponding to important coefficients of the first difference data; A first synchronization control strategy for current first difference data is generated according to a plurality of preferred synchronization control strategies.
5. The cloud disk operating system capable of storing data in real time as claimed in claim 4, It is characterized in that The second difference data is obtained, including: Acquire the third data content of the local folder and the fourth data content of the cloud folder after the first synchronization control strategy; If the index tag of the first difference data is the first index tag, the index tag number corresponding to the first difference data is searched in the fourth data content of the cloud folder, and if the search result is that the first difference data exists, the corresponding first difference data is set as the synchronization data; if the search result is that the first difference data does not exist, the corresponding first difference data is set as the second difference data; If the index tag of the first difference data is the second index tag, the index tag number corresponding to the first difference data is retrieved in the third data content of the local folder. If the search result is that it exists, the corresponding first difference data is set as the synchronization data. If the search result is that it does not exist, the corresponding first difference data is set as the second difference data.
6. The cloud disk operating system capable of storing data in real time as claimed in claim 5, It is characterized in that The first synchronization control strategy is modified according to the second difference data to obtain multiple second synchronization control strategies, including: A number of importance evaluation intervals are preset, and each importance evaluation interval is mapped with a specific correction coefficient interval; Performing an importance evaluation according to the importance coefficient of the second difference data, and determining a corresponding correction coefficient interval based on an importance evaluation interval corresponding to the importance evaluation; Based on the corresponding correction coefficient interval, the synchronization control parameters in the first synchronization control strategy are corrected to generate multiple correction schemes. Based on each correction scheme, the first synchronization control strategy is corrected to obtain multiple second synchronization control strategies.
7. The cloud disk operating system capable of storing data in real time as claimed in claim 6, It is characterized in that Each second synchronization control strategy is simulated to obtain simulation synchronization difference characteristics, including: Perform simulation for each second synchronization control strategy to generate a simulation cloud disk synchronization control model; The simulation synchronization result in each simulation cloud disk synchronization control model is compared and analyzed with the preset standard synchronization result to determine the simulation synchronization difference characteristics, which include simulation synchronization difference data and simulation synchronization duration difference.
8. The cloud disk operating system capable of storing data in real time as claimed in claim 7, It is characterized in that The synchronization effect is evaluated on the simulation synchronization difference characteristics, including: Determine the number of simulation synchronization difference data and the corresponding index tag numbers according to the simulation synchronization difference data, assign values to the corresponding index tag numbers, and obtain assignment coefficients of multiple index tag numbers; According to the simulation synchronization time difference, the time difference between the simulation synchronization time of each simulation synchronization data and the corresponding standard synchronization time is obtained; The synchronization effect of the corresponding simulation cloud disk synchronization control model is evaluated according to the number of simulation synchronization difference data, the corresponding assignment coefficient, and the duration difference in the simulation synchronization duration difference; The calculation formula for the synchronization effect evaluation is: Among them, K is the synchronization effect evaluation result, r1 is the first conversion coefficient, r2 is the second conversion coefficient, a1 is the weight coefficient of the simulation synchronization difference data, a2 is the weight coefficient of the simulation synchronization duration difference, gi is the assignment coefficient of the i-th simulation synchronization difference data, n is the number of simulation synchronization difference data, Tv is the simulation synchronization duration of the v-th simulation synchronization data, T0v is the standard synchronization duration of the v-th simulation synchronization data, and s is the number of simulation synchronization data.
9. The cloud disk operating system capable of storing data in real time as claimed in claim 8, It is characterized in that An optimal synchronization control strategy is selected according to the synchronization effect evaluation result, and the second difference data is synchronized according to the optimal synchronization control strategy, including: The simulation cloud disk synchronization control models are sorted according to the synchronization effect evaluation results, and the second difference data is synchronized according to the second synchronization control strategy corresponding to the first-ranked simulation cloud disk synchronization control model, the synchronization results are collected in real time, and the similarity between the current synchronization result and the simulation synchronization result of the first-ranked simulation cloud disk synchronization control model is calculated; If the similarity is greater than a preset similarity threshold, the second synchronization control strategy corresponding to the first-ranked simulation cloud disk synchronization control model is set as the optimal synchronization control strategy.
10. The cloud disk operating system capable of storing data in real time as claimed in claim 9, It is characterized in that Calculate the similarity between the current synchronization result and the simulation synchronization result of the simulation cloud disk synchronization control model ranked first, including: The synchronization effect is evaluated according to the current synchronization result, and the difference is made with the synchronization effect evaluation result of the simulation cloud disk synchronization control model ranked first to obtain the synchronization effect difference; Pre-set synchronization effect difference threshold; If the synchronization effect difference is less than the preset synchronization effect difference threshold, it is determined that the similarity between the previous synchronization result and the simulation synchronization result of the first ranked simulation cloud disk synchronization control model is greater than the preset similarity threshold; If the synchronization effect difference is greater than the preset synchronization effect difference threshold, it is determined that the similarity between the previous synchronization result and the simulation synchronization result of the first-ranked simulation cloud disk synchronization control model is less than the preset similarity threshold.
Citation Information
Patent Citations
Content-defined chunking remote file real-time updating method
CN103729225A
Automatic cloud storage synchronous management system for a plurality of cloud storage service platforms and method thereof
CN105100170A
Cloud storage data synchronization method based on a plurality of control strategies
CN105430026A
Cloud disk file synchronization updating method and apparatus thereof
CN105763644A
Coating deviation correction control method and system based on PID (Proportion Integration Differentiation) control
CN117572760A
