Cross-platform communication sharing synchronization method and system

By extracting the state change event stream based on the timestamp sequence in a cross-platform communication shared synchronization system, detecting conflicts and optimizing synchronization paths and resource scheduling, the problems of synchronization delay and low resource utilization in the prior art are solved, and efficient and real-time data synchronization and consistency are achieved.

CN119946076AActive Publication Date: 2025-05-06SHENZHEN TECHRISE ELECTRONICS

Patent Information

Application Number
CN202510424590.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-07
Publication Date
2025-05-06
Estimated Expiration
2045-04-07

AI Technical Summary

Technical Problem

The prior art has problems in cross-platform communication sharing synchronization, low resource utilization, reduced data transmission efficiency and data consistency, especially in the multi-device concurrent access scenarios.

Method used

By extracting cross-device state change event streams based on timestamp sequences, adjusting the time window size, detecting state change conflicts, optimizing synchronization paths, adjusting data survival time and synchronization priority, and optimizing resource scheduling rules to improve synchronization efficiency.

Benefits of technology

It reduces synchronization delay, improves resource utilization and data transmission efficiency, enhances data consistency, and ensures real-time high-demand data and timely synchronization of key data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119946076A_ABST
    Figure CN119946076A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of synchronous communication, in particular to a cross-platform communication sharing synchronization method and system, and the method comprises the following steps: based on a cross-platform communication sharing synchronization request timestamp sequence, extracting a cross-device state change event stream, comparing time window timestamp difference values, applying synchronous buffer adjustment, and adjusting the size of a time window. And obtaining a state change conflict detection result. According to the method, the state change event flow is extracted through the timestamp sequence, accurate comparison of cross-device state change data is achieved, time window adjustment and short-period change screening are combined, repeated change errors are reduced, state change frequency is quantitatively analyzed, high-frequency change is synchronized more quickly, conflict accumulation is reduced, and a synchronization path is optimized; non-optimal transmission and data redundancy are reduced, transmission efficiency and stability are improved, short-survival high-demand data are synchronized preferentially, life cycle management is optimized, synchronous scheduling rules are adjusted, resource utilization is optimized, and waste caused by life cycle mismatching is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of synchronous communication technology, and in particular to a cross-platform communication sharing synchronization method and system. Background Art

[0002] The field of synchronous communication technology includes data transmission and consistency assurance methods in a multi-device, multi-platform environment. The core content of this technology includes real-time data transmission, timing control, synchronization management and protocol adaptation, aiming to ensure that data between different terminals or systems can remain consistent. Synchronous communication relies on clock synchronization mechanisms, data caching technology and transmission control protocols to reduce delays and data conflicts. The overall technical field covers point-to-point synchronization, distributed synchronization, transaction synchronization and other modes, and is applied to distributed computing, remote collaboration, database replication and multi-terminal data sharing and other scenarios.

[0003] Among them, the cross-platform communication sharing and synchronization method refers to a specific technical solution for realizing data exchange and synchronization between devices with different operating systems or hardware architectures. This method mainly covers heterogeneous platform compatibility design, data format conversion, communication protocol adaptation and state synchronization mechanism. It specifically adopts standardized communication protocols to ensure data interoperability between different platforms, and uses consistency verification technology to ensure the accuracy of data synchronization. At the same time, it uses caching strategies and transaction processing technologies to coordinate data updates when multiple devices access concurrently to avoid asynchrony or data loss problems.

[0004] The existing technology has a large synchronization delay in the data transmission process, especially in the scenario of concurrent access by multiple devices. It fails to effectively distinguish the priority of state changes, resulting in high-frequency state updates competing with low-frequency state updates for synchronization resources, affecting the real-time performance of high-demand data. The existing methods rely on static routing or simple path selection rules for data synchronization path optimization, and fail to fully utilize dynamic path adjustment technology, resulting in reduced data transmission efficiency, increased redundant data traffic, and increased network load. In terms of data survival time management, the existing technology fails to dynamically adjust the synchronization priority according to the data life cycle, causing short-lived high-demand data to lose its value due to synchronization delays, affecting the effective use of data. The synchronization scheduling rules are relatively fixed and lack dynamic optimization of resource utilization, resulting in the inability to effectively adjust the scheduling strategy when synchronization resources are tight, resulting in reduced resource utilization and affecting the overall synchronization performance. In distributed computing and remote collaboration scenarios, data consistency issues increase. Summary of the invention

[0005] The purpose of the present invention is to solve the shortcomings in the prior art and to propose a cross-platform communication sharing synchronization method and system.

[0006] In order to achieve the above object, the present invention adopts the following technical solution: a cross-platform communication sharing synchronization method, comprising the following steps: S1: Based on the cross-platform communication sharing synchronization request timestamp sequence, extract the cross-device state change event stream, compare the time window timestamp difference, apply synchronization buffer adjustment, adjust the time window size, and obtain the state change conflict detection result; S2: according to the state change conflict detection result, identify the state change frequency, compare the state change threshold, filter the state exceeding the threshold, adjust the synchronization priority, apply synchronization buffer, and obtain the state change conflict optimization parameter; S3: based on the state change conflict optimization parameter, extract the data starting position identifier, match the synchronization path information, merge the same path data, optimize the data transmission mode, reduce redundant synchronization, and obtain the synchronization path processing result; S4: calling the synchronization path processing result, calculating the data survival time, filtering the data with short survival requirements, adjusting the synchronization priority, adjusting the synchronization of low-priority data, and obtaining the synchronization data survival time scheduling parameters; S5: Based on the synchronization data survival time scheduling parameters, the ratio of the data survival time to the synchronization time consumption is collected, the resource scheduling parameters are extracted to adjust the synchronization scheduling rules, the synchronization priority of the short-lived data is optimized, and the adjusted cross-platform synchronization resources are output.

[0007] As a further solution of the present invention, the state change conflict detection result includes the timestamp difference of the time window, the screening result of multiple change requests for the same state within a short period, the sorting effectiveness status, the synchronization buffer adjustment parameter and the time window size adjustment parameter; the state change conflict optimization parameter includes the state change frequency, the state change threshold, the exceeding threshold status, the synchronization priority adjustment parameter and the synchronization buffer parameter; the synchronization path processing result includes the data starting position identifier, the synchronization path information, the data hop number information, the key path node, the similar path data merging result, the non-optimal path data screening result, the synchronization path adjustment parameter, the data transmission mode optimization parameter and the redundant synchronization reduction parameter; the synchronization data survival time scheduling parameter includes the data survival time, the synchronization time consumption ratio, the resource scheduling parameter, the synchronization scheduling rule adjustment parameter and the short survival high priority data synchronization parameter; the adjusted cross-platform synchronization resource includes the synchronization resource optimization method, the synchronization priority adjustment parameter, the low priority data synchronization adjustment parameter and the synchronization data survival time optimization parameter.

[0008] As a further solution of the present invention, the step of obtaining the state change conflict detection result is specifically: S111: based on the cross-platform communication shared synchronization request timestamp sequence, extract the cross-device state change event stream, calculate the time difference of adjacent timestamps, filter multiple change requests of the same state in a short period, and obtain the short-period state change filtering result; S112: Based on the short-period state change screening result, sort the screened state change requests in order of timestamps, calculate the time difference between adjacent state changes, sort the effective states, and obtain a state change sorting result; S113: Based on the state change sorting result, apply synchronization buffer adjustment, adjust the time window size, analyze the state change conflict situation, and use the formula: ; Calculate the state change conflict detection value and obtain the state change conflict detection result; in, Represents the state change conflict detection value, Represents the effective state value of the i-th state change, Represents the effective status value of the i-1th status change, represents the timestamp interval of the i-th state change, Represents the total number of state changes.

[0009] As a further solution of the present invention, the step of obtaining the state change conflict optimization parameter is specifically as follows: S211: according to the state change conflict detection result, count the number of state changes, analyze the change range, filter out items exceeding the state change threshold, and obtain the exceeding threshold state; S212: calling the threshold-exceeding state, analyzing the synchronization priority between the differentiated devices, adjusting the priority according to the conflict degree, and obtaining an adjusted synchronization priority; S213: Based on the adjusted synchronization priority, the synchronization delay is analyzed, and a synchronization buffer parameter is introduced, using the formula: ; Calculate and obtain state change conflict optimization parameters; in, Represents the state change conflict optimization parameters, Represents the frequency of state changes. Represents the state change threshold, represents the delay of the jth state change, represents the synchronization weight of the jth state change, Represents the total number of threshold-exceeding states, Represents the synchronization buffer time, Represents the synchronization priority adjustment amount.

[0010] As a further solution of the present invention, the step of obtaining the synchronization path processing result is specifically: S311: based on the state change conflict optimization parameter, extract the data start position identifier, call the matching synchronization path information, identify the hop count information, screen the key path nodes, and obtain the synchronization path offset; S312: merging path data according to the synchronization path offset, filtering non-optimal path data, calculating a redundancy ratio, adjusting the synchronization path, and acquiring optimized synchronization path data; S313: Based on the optimized synchronization path data, optimize the data transmission mode, reduce redundancy, and adjust the path, using the formula: ; Calculate the optimized rate of the synchronization path and obtain the synchronization path processing result; in, represents the optimized rate of the synchronization path, Representative The data synchronization rate of each path, Represents the base rate of the synchronization path, Representative The data redundancy of each path, Representative The data transmission error of the path, Representative The transmission time of each path, Indicates the total number of paths.

[0011] As a further solution of the present invention, the step of obtaining the synchronization data survival time scheduling parameter is specifically: S411: Call the synchronization path processing result, extract the data synchronization start time, current time, data update frequency, analyze the time decay rate, life cycle proportion, and data retention ratio, and use the formula: ; Calculate the data survival time; in, Represents the data survival time, Represents the start time of data synchronization. Represents the current time, Represents the data update frequency, represents the data retention ratio; S412: calling the data survival time, screening the data with short survival time and high data request frequency, identifying the demand intensity factor, and obtaining a short survival and high demand data set; S413: Based on the short-lived high-demand data set, sort according to request frequency and survival time, adjust the synchronization priority, and obtain synchronization data survival time scheduling parameters.

[0012] As a further solution of the present invention, the step of acquiring the adjusted cross-platform synchronization resource is specifically as follows: S511: Based on the synchronization data survival time scheduling parameter, the ratio of the data survival time to the synchronization time consumption is calculated, the data set whose survival time is lower than the target threshold is screened, the synchronization scheduling criterion is extracted, and the short-term data synchronization optimization criterion is obtained; S512: Call the short-term data synchronization optimization criterion, extract resource scheduling parameters, and use the formula based on the ratio of survival time to synchronization time consumption: ; Calculate resource allocation adjustment values, adjust synchronization scheduling data, and obtain synchronization resource scheduling optimization parameters; in, Represents the resource allocation adjustment value, Represents the synchronization data survival time, represents the survival time threshold, Indicates the time taken by the current synchronization task. Represents the average time taken for synchronization tasks. represents the synchronous scheduling adjustment coefficient, Represents the maximum amount of resources that can be allocated. Represents the current amount of available resources; S513: Based on the synchronization resource scheduling optimization parameters, the synchronization parameters of the short-lived high-priority data are optimized, the synchronization execution priority is adjusted, and the adjusted cross-platform synchronization resources are output.

[0013] The cross-platform communication sharing synchronization system is used to execute the cross-platform communication sharing synchronization method, and the system includes: The cross-device state conflict detection module is based on the cross-platform communication sharing synchronization request timestamp sequence, extracts the state change event stream of multiple terminal devices, calculates the timestamp difference within the time window, filters repeated changes within a short period, adjusts the time window, applies synchronization buffering, and generates state change conflict detection results; The change frequency control module calculates the state change frequency of multiple terminal devices based on the state change conflict detection result, compares the threshold, filters the over-threshold state, adjusts the synchronization priority, applies synchronization buffer, and obtains the state change conflict optimization parameter; The synchronization path dynamic optimization module extracts the starting position identifier of the cross-platform data exchange path based on the state change conflict optimization parameters, matches the synchronization path information, records the number of data hops, selects high-latency paths, optimizes the data jump rules between nodes, adjusts the synchronization path, and generates a synchronization path processing result; The data survival time scheduling module identifies the survival time of cross-platform data packets based on the synchronization path processing results, filters short survival requirement data, adjusts the synchronization priority, rearranges the low priority data synchronization queue, and obtains synchronization data survival time scheduling parameters; The synchronization resource optimization configuration module calculates the ratio of data survival time to synchronization time consumption based on the synchronization data survival time scheduling parameters, optimizes the synchronization process of short-lived high-priority data, and obtains adjusted cross-platform synchronization resources.

[0014] Compared with the prior art, the advantages and positive effects of the present invention are: In the present invention, by establishing a state change event stream extraction method based on a timestamp sequence, accurate comparison of cross-device state change data is achieved. Combined with the adjustment of the time window and the screening of multiple change requests in a short period, the detection accuracy of state conflicts in the data synchronization process is optimized, the synchronization error caused by repeated changes is reduced, the state change frequency is quantitatively analyzed, and combined with the threshold judgment method, the priority of the state change exceeding the threshold is adjusted, so that high-frequency state changes obtain faster synchronization response, and the conflict accumulation caused by frequent changes is reduced. The synchronization path is optimized by means of data starting position identification, path matching and key node screening, etc., to reduce the data transmission of non-optimal paths and improve the transmission efficiency of synchronized data, and reduce data redundancy through path optimization to improve the stability of data synchronization. Based on the analysis of data survival time, the priority of short-lived high-demand data is adjusted so that it can obtain a higher transmission priority under limited synchronization resources, ensure the synchronization timeliness of key data, optimize data life cycle management, and adjust the synchronization scheduling rules by calculating the ratio of data survival time to synchronization time consumption. In combination with resource scheduling parameters, the synchronization strategy is optimized, so that the transmission efficiency of high-priority data is improved, and the resource utilization efficiency is optimized in a multi-device synchronization environment, and the resource waste caused by data life cycle mismatch is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a schematic diagram of the workflow of the present invention; Figure 2 It is a flow chart of obtaining the state change conflict detection result in the present invention; Figure 3 This is a flow chart for obtaining state change conflict optimization parameters in the present invention; Figure 4 A flowchart of obtaining the synchronization path processing result in the present invention; Figure 5 This is a flow chart for obtaining synchronization data survival time scheduling parameters in the present invention; Figure 6 This is a flow chart of obtaining adjusted cross-platform synchronization resources in the present invention. DETAILED DESCRIPTION

[0016] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0017] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.

[0018] Example 1: Please refer to Figure 1 The present invention provides a technical solution: a cross-platform communication sharing synchronization method, comprising the following steps: S1: Based on the cross-platform communication shared synchronization request timestamp sequence, extract the cross-device state change event stream, compare the timestamp difference of the time window, filter multiple change requests for the same state in a short period, sort the effective states, apply synchronization buffer adjustment, adjust the time window size, and obtain the state change conflict detection result; S2: According to the state change conflict detection result, identify the state change frequency, compare the state change threshold, filter the state exceeding the threshold, adjust the synchronization priority, apply synchronization buffer, and obtain the state change conflict optimization parameters; S3: Optimize parameters based on state change conflicts, extract data start position identifiers, match synchronization path information, record data hop information, extract key path nodes, merge similar path data, filter non-optimal path data to adjust synchronization paths, optimize data transmission methods, reduce redundant synchronization, and obtain synchronization path processing results; S4: Call the synchronization path processing result, calculate the data survival time, filter the data with short survival requirements, adjust the synchronization priority, adjust the synchronization of low-priority data, and obtain the synchronization data survival time scheduling parameters; S5: Based on the synchronization data survival time scheduling parameters, the ratio of data survival time to synchronization time is calculated, resource scheduling parameters are extracted to adjust the synchronization scheduling rules, the synchronization priority of short-lived data is optimized, and the adjusted cross-platform synchronization resources are output.

[0019] The state change conflict detection results include the timestamp difference of the time window, the screening results of multiple change requests for the same state within a short period, the sorting effective status, the synchronization buffer adjustment parameters and the time window size adjustment parameters. The state change conflict optimization parameters include the state change frequency, the state change threshold, the exceeding threshold status, the synchronization priority adjustment parameters and the synchronization buffer parameters. The synchronization path processing results include the data starting position identifier, the synchronization path information, the data hop number information, the key path node, the similar path data merging results, the non-optimal path data screening results, the synchronization path adjustment parameters, the data transmission method optimization parameters and the redundant synchronization reduction parameters. The synchronization data survival time scheduling parameters include the data survival time, the synchronization time consumption ratio, the resource scheduling parameters, the synchronization scheduling rule adjustment parameters and the short survival high priority data synchronization parameters. The adjusted cross-platform synchronization resources include the synchronization resource optimization method, the synchronization priority adjustment parameters, the low priority data synchronization adjustment parameters and the synchronization data survival time optimization parameters.

[0020] See also Figure 2 , the specific steps for obtaining the state change conflict detection results are: S111: based on the cross-platform communication shared synchronization request timestamp sequence, extract the cross-device state change event stream, calculate the time difference of adjacent timestamps, filter multiple change requests of the same state in a short period, and obtain the short-period state change filtering result; First, obtain the synchronization request timestamp sequence generated by each device. For example, device A sends a request at 10:00:00, device B sends a request at 10:00:01, and device C sends a request at 10:00:02. Arrange the timestamps in chronological order to form a complete timestamp sequence and extract the cross-device state change event stream. This requires monitoring the state changes of each device. For example, device A changes from state 0 to state 1 at 10:00:05, device B changes from state 1 to state 0 at 10:00:06, and device C changes from state 0 to state 1 at 10:00:07. Match the state change event with the previous timestamp sequence to form an event stream containing timestamps and state changes. Calculate the time difference between adjacent timestamps. For example, the time difference between device A and device B is 1 second. , the time difference between device B and device C is 1 second. The time difference is recorded for subsequent analysis to determine the shortest time interval within the time window. A time window is set, such as 5 seconds, and the shortest time interval between device status changes within this time window is calculated. For example, device A changes at 10:00:05 and device B changes at 10:00:06. The shortest interval is 1 second. This helps to identify frequent status changes and filter multiple change requests for the same status within a short period. For example, within the above 5-second time window, device A changes to status 1 twice at 10:00:05 and 10:00:08, and device B changes to status 0 twice at 10:00:06 and 10:00:09. Repeated status change requests in a short period of time are filtered out to obtain short-period status change filtering results.

[0021] S112: based on the short-cycle state change screening result, sort the screened state change requests in the order of timestamps, calculate the time difference between adjacent state changes, sort the effective states, and obtain the state change sorting result; Sort the filtered status change requests in timestamp order. For example, if device A changes its status at 10:00:05 and 10:00:08, and device B changes its status at 10:00:06 and 10:00:09, arrange the changes in chronological order as follows: 10:00:05 (device A), 10:00:06 (device B), 10:00:08 (device A), 10:00:09 (device B). Calculate the time difference between adjacent status changes. For example, the time difference from 10:00:05 to 10:00:06 is 1 second, and the time difference from 10:00:05 to 10:00:06 is 1 second. The time difference from 10:00:06 to 10:00:08 is 2 seconds, and the time difference from 10:00:08 to 10:00:09 is 1 second. The time difference is recorded to analyze the frequency and regularity of state changes, sort the effective states, and determine the device state corresponding to each time point. For example, at 10:00:05, the state of device A is 1, at 10:00:06, the state of device B is 0, at 10:00:08, the state of device A is 1, and at 10:00:09, the state of device B is 0. Arrange the states in chronological order to form a state sequence and obtain the state change sorting result.

[0022] S113: Based on the state change sorting result, apply synchronization buffer adjustment, adjust the time window size, analyze the state change conflict, and use the formula: ; Calculate the state change conflict detection value and obtain the state change conflict detection result; in, Represents the state change conflict detection value, Represents the effective state value of the i-th state change, Represents the effective status value of the i-1th status change, represents the timestamp interval of the i-th state change, Represents the total number of state changes; Apply synchronization buffer adjustment and set a buffer time, such as 2 seconds, to smoothly process state changes and avoid system instability caused by frequent state switching. Adjust the time window size and determine a suitable time window based on the previously calculated time difference. For example, adjust the time window from 5 seconds to 3 seconds to capture the details of state changes more finely. Calculate state change conflicts and count the number of state conflicts within the adjusted time window. For example, within a 3-second time window, if device A and device B simultaneously try to change to opposite states, it is considered a conflict. Assume that within a time window, the state change sequence of device A and device B is: 1 (device A), 0 (device B), 1 (device A), 0 (device B), and the corresponding timestamp intervals are 1 second, 2 seconds, and 1 second. The calculated conflict detection value is: ; Get the state change conflict detection result.

[0023] See also Figure 3 , the specific steps for obtaining the state change conflict optimization parameters are: S211: according to the state change conflict detection result, count the number of state changes, analyze the change range, filter out items that exceed the state change threshold, and obtain the exceeding threshold state; In a communication network, each time a device changes its state, a state change log is recorded. The log is used to analyze the activity of the device and potential synchronization conflicts. By counting the log data within a month, the frequency of each state change can be obtained. For each state change, it is also necessary to calculate the change range within a specific time window. For example, the state change frequency during peak and non-peak periods will be significantly different. This requires parsing the timestamps in the log and calculating the number of occurrences of each state change during peak and non-peak periods. This calculation can be completed through simple time classification statistics to filter out state change items that exceed the preset threshold. This threshold is based on device design standards and historical data analysis. The maximum number of state changes allowed is based on the device's tolerance and network load. The state exceeding this threshold is considered an abnormal state and requires further analysis or adjustment to obtain an exceeding-threshold state.

[0024] S212: calling the threshold-exceeding state, analyzing the synchronization priority between the differentiated devices, adjusting the priority according to the conflict degree, and obtaining the adjusted synchronization priority; The actual application scenario may be that in a large data center, the data synchronization requirements between multiple servers are different. For example, servers with heavier loads require more frequent data synchronization to ensure information consistency. This requires prioritizing the status change records of each server and adjusting them based on their importance and the impact of synchronization conflicts. This priority adjustment is achieved by comparing the data processing capabilities of each server and the current network status. The data processing capabilities of the server can be determined by its specifications and actual operating data, and the network status can be evaluated by real-time monitoring of network traffic. Data aggregation and analysis can help decision makers formulate more reasonable synchronization strategies and obtain adjusted synchronization priorities.

[0025] S213: Based on the adjusted synchronization priority, the synchronization delay is analyzed and the synchronization buffer parameter is introduced, using the formula: ; Calculate and obtain state change conflict optimization parameters; in, Represents the state change conflict optimization parameters, Represents the frequency of state changes. Represents the state change threshold, represents the delay of the jth state change, represents the synchronization weight of the jth state change, Represents the total number of threshold-exceeding states, Represents the synchronization buffer time, Represents the synchronization priority adjustment amount; In order to deal with the delay in the synchronization process, the synchronization buffer parameter is introduced. In actual application scenarios, such as data synchronization tasks in a group of server clusters, the state change frequency of each server is different, which leads to the adjustment of synchronization priority. For example, the state change frequency of a server is is 120 times / hour, and the other is 80 times / hour. If the state change threshold If the value is set to 100 times / hour, the state change of the first server exceeds the threshold, indicating that the synchronization demand of the server is high. When calculating the comprehensive control parameters of synchronous data transmission, the delay needs to be considered. For example, in a data center, the transmission delay between different servers is: the delay from server A to B , the delay from server B to C , the delay from server C to D , the synchronization weight corresponding to each state change Set as: weight of server A to B , the weight of server B to C , the weight of server C to D , synchronization buffer time Determined by the current network conditions, for example, when the network load is low, it is set to 50ms, and when the network load is high, it needs to be adjusted to 100ms. It can be set according to the server processing capacity and network traffic. For example, assuming that its current value is 0.5, the comprehensive control parameters for synchronous data transmission can be calculated; : State change conflict optimization parameter, used to measure the degree of synchronization conflict. The larger the value, the more serious the conflict. : The frequency of status changes, obtained through server log statistics; : The state change threshold is set to 100 times / hour to identify abnormal state changes; : The delay of the jth state change, the transmission delay between servers, in ms; : The synchronization weight of the jth state change is set according to the importance of the data and the server load; : The total number of servers that exceed the threshold status, indicating the number of servers that currently need to adjust the synchronization strategy; : Synchronous buffer time, determined by the network load, currently set to 50ms; : Synchronization priority adjustment amount, used to adjust the synchronization strategy, currently set to 0.5; Substitute specific values ​​for calculation: ; ; ; The state change conflict optimization parameter is calculated and the final optimization strategy is established based on the calculation result to obtain the state change conflict optimization parameter. This value can be used to dynamically adjust the synchronization strategy so that servers with high-frequency state changes are synchronized first. At the same time, the data transmission path is optimized in combination with network delay and load conditions to reduce unnecessary resource occupation and improve the overall synchronization efficiency. The current synchronization state change conflict optimization parameter is 6.47, which is a high value, indicating that the data synchronization conflict between servers is more serious. A stricter synchronization management strategy should be adopted, such as increasing the synchronization priority of servers with high-frequency state changes, or adjusting the synchronization buffer time to alleviate synchronization pressure.

[0026] See also Figure 4 , the specific steps for obtaining the synchronous path processing results are: S311: based on the state change conflict optimization parameter, extract the data start position identifier, call the matching synchronization path information, identify the hop number information, select the key path node, and obtain the synchronization path offset; In actual distributed database synchronization, data modifications on different nodes lead to synchronization conflicts. By introducing conflict optimization parameters, the final state of the data can be determined more reasonably. For example, suppose that in a shopping website, two users modify the inventory quantity of the same product almost at the same time. The state change conflict optimization parameters will help the system decide which modification is prioritized. The specific calculation method depends on factors such as timestamps and user permissions to set weights and priorities, call matching synchronization path information, calculate hop information, and filter key path nodes. A series of operations are to ensure the efficiency and accuracy of data during transmission. By evaluating and optimizing each data transmission path, the best path is selected to ensure the fastest data arrival, while reducing conflicts and errors, and obtaining the synchronization path offset. The results reflect the overall efficiency and accuracy of synchronization after the data processing and optimization of the above steps.

[0027] S312: merging path data according to the synchronization path offset, filtering non-optimal path data, calculating the redundancy ratio, adjusting the synchronization path, and obtaining optimized synchronization path data; Effectively integrate data obtained from different data sources or different nodes to ensure data consistency and integrity. For example, in the case of multi-source data integration, different data sources provide different information fragments about the same entity. By calling the synchronization path offset, you can determine which data is new or more accurate, and then select the appropriate data to merge, filter out non-optimal path data, and eliminate data items that affect synchronization accuracy. The key steps are to identify and exclude those paths or data fragments that cause data quality to deteriorate, adjust the path of data synchronization, optimize data flow and processing, thereby improving overall performance and data accuracy, and obtain optimized synchronization path data. The results show how the data synchronization path is more efficient and accurate after screening and optimization.

[0028] S313: Based on the optimized synchronization path data, the data transmission method is optimized, the redundancy is reduced, and the path is adjusted using the formula: ; Calculate the optimized rate of the synchronization path and obtain the synchronization path processing result; in, represents the optimized rate of the synchronization path, Representative The data synchronization rate of each path, Represents the base rate of the synchronization path, Representative The data redundancy of each path, Representative The data transmission error of the path, Representative The transmission time of the paths indicates the total number of paths; First, it is necessary to monitor the optimized data synchronization path and record the data transmission rate of each path. For example, in a global distributed storage, multiple data centers need to synchronize data. Each data center has different network bandwidth and load conditions. Suppose in a synchronization task, the path arrive The synchronization rates are 120MB / s, 100MB / s, 80MB / s, 130MB / s, and 90MB / s respectively. The deviation from the reference synchronization rate can be calculated to optimize the data transmission method and reduce the synchronization data redundancy. The operation involves statistical data redundancy ratio. For example, when data is transmitted between different paths, there are duplicate packets, which leads to a decrease in synchronization efficiency. Assuming that the redundant data volume of the path The sizes are 5MB, 7MB, 6MB, 4MB, and 8MB, respectively. The impact of redundant data can be evaluated, and the path can be adjusted according to the synchronization rate offset rate. The key to this operation is to calculate the relative offset value of the synchronization rate and adjust the path to optimize the synchronization efficiency. Substitute specific values ​​for calculation, assuming the base rate MB / s, transmission error of each path The transmission time of each path is 2MB, 3MB, 1MB, 2MB, and 3MB respectively. If they are 10s, 12s, 11s, 9s, and 13s respectively, the calculation is as follows: Calculate the numerator part of the offset: ; Calculate the first part of the denominator (the square root term): ; ; Total of the first part of the denominator: ; Calculate the second part of the denominator (the time term): ; Final calculation : ; Get the synchronization path processing results. Based on the synchronization status of the current path, you can optimize the synchronization rate adjustment strategy to improve the overall efficiency of data transmission. Administrators can The synchronization path is further adjusted by the value of If it is lower than the set benchmark value (such as 1.5), it is necessary to reduce the use of certain low-speed paths or adjust the data load distribution to improve the overall synchronization performance.

[0029] See also Figure 5 , the specific steps for obtaining the synchronization data survival time scheduling parameters are as follows: S411: Call the synchronization path processing result, extract the data synchronization start time, current time, data update frequency, analyze the time decay rate, life cycle proportion, and data retention ratio, and use the formula: ; Calculate the data survival time; in, Represents the data survival time, Represents the start time of data synchronization. Represents the current time, Represents the data update frequency, represents the data retention ratio; First extract the data synchronization start time and the current time , and data update frequency ,Take the actual application scenario as an example. In a bank transaction, a transaction record is synchronized and stored in the database at 00:00:00 on January 1, 2024. The current time is 00:00:00 on February 1, 2024. The data update frequency of the transaction record is once every 6 hours, so its update interval is 6 hours. In order to calculate the survival time of the data; in, (i.e. 00:00:00 on January 1, 2024), Hour (i.e. 00:00:00 on February 1, 2024), (Update frequency 6 hours), (Data retention ratio is usually set according to the type of data and importance. In the financial industry, for high-security data, this value can be set to 0.05~0.1); Substituting the values ​​into the calculation: ; The data survival time of this transaction record is 297.72 hours, or about 12.4 days. The value indicates that the data still has high value after storage and can be used for subsequent analysis, query, and synchronization strategy adjustment. If the value is lower than the survival time threshold set by the system (for example, 10 days), it is necessary to adjust the synchronization frequency or optimize the data storage strategy to ensure that the data is processed within the effective time. Through this calculation method, the data synchronization process can be dynamically optimized, storage and bandwidth resources can be reasonably allocated, and the timeliness and availability of data can be improved. Especially in the fields of finance, medical care, and online transactions, calculation is crucial to ensuring the accuracy and availability of data. The final data survival time is 297.72 hours. This result will be used in subsequent steps to screen short-lived demand data to optimize synchronization priority.

[0030] S412: calling the data survival time, filtering the data with short survival time and high data request frequency, identifying the demand intensity factor, and obtaining a short survival and high demand data set; By setting thresholds for data request frequency and survival time, data that needs to be synchronized first can be identified. Taking the actual application in the telecommunications industry as an example, assuming that the request frequency threshold is set to once per minute and the survival time threshold is no more than 24 hours, then eligible data is considered high priority. The data includes real-time communication records or frequently updated user information. This screening mechanism ensures that the most urgent and critical data needs can be processed first, thereby improving the real-time nature of the service and user satisfaction, and generating a short-lived high-demand data set. The data will be used for subsequent synchronization priority adjustments to ensure rapid processing and updating of critical data.

[0031] S413: Based on the short-lived high-demand data set, sort according to request frequency and survival time, adjust the synchronization priority, and obtain synchronization data survival time scheduling parameters; Adjust the priority of data synchronization, including re-ordering the synchronization order of data according to the request frequency and survival time of the data. For example, in a large online retail platform, commodity price information and inventory data will be given a higher synchronization priority because of their frequent changes and great impact on user decisions. Through this priority adjustment, resources can be allocated more effectively to ensure that users obtain the latest information when making shopping decisions. This not only optimizes the efficiency of data flow, but also enhances the user experience of the platform, and obtains the synchronization data survival time scheduling parameters. The parameters will be used to further optimize the entire data synchronization to adapt to the real-time needs of different data types, thereby achieving the goal of improving overall performance.

[0032] See also Figure 6 , the steps for obtaining cross-platform synchronization resources after adjustment are as follows: S511: Based on the synchronization data survival time scheduling parameter, the data survival time and the synchronization time consumption ratio are counted, the data set whose survival time is lower than the target threshold is screened, the synchronization scheduling criterion is extracted, and the short-term data synchronization optimization criterion is obtained; The process of calculating the ratio of data survival time to synchronization time begins with collecting historical execution data of synchronization tasks, including the start and end time of each task, so as to calculate the survival time and time consumption of each task. The process is typically applied to synchronization task management in data centers. For data with particularly short survival time, such as temporary files or log information, special attention will be paid to the ratio of its synchronization time consumption to survival time. If the ratio is lower than a certain set threshold, such as 0.5, it means that the data is hardly effectively utilized before it disappears, so its synchronization strategy needs to be adjusted to optimize resource utilization efficiency. After such analysis and calculation, the scheduling rules for short-lived data that needs to be synchronized first can be extracted, and the optimization criteria for short-time data synchronization can be obtained. The criteria will directly affect the data synchronization strategy and resource allocation, and improve data processing efficiency.

[0033] S512: Call the short-term data synchronization optimization criterion, extract resource scheduling parameters, and use the formula based on the ratio of survival time to synchronization time consumption: ; Calculate resource allocation adjustment values, adjust synchronization scheduling data, and obtain synchronization resource scheduling optimization parameters; in, Represents the resource allocation adjustment value, Represents the synchronization data survival time, represents the survival time threshold, Indicates the time taken by the current synchronization task. Represents the average time taken for synchronization tasks. represents the synchronous scheduling adjustment coefficient, Represents the maximum amount of resources that can be allocated. Represents the current amount of available resources; First, it is necessary to clarify key parameters such as synchronization data survival time, synchronization time, and resource availability. The parameters are obtained by monitoring and statistics of historical data. For example, in the cross-platform synchronization scenario of the data center, the survival time of a certain data can be obtained through log analysis. is 10 hours, which indicates the length of time from when data is generated to when it is cleaned or overwritten, and the survival time threshold Set to 8 hours, which represents the short-lived data standard. If the survival time of the data is lower than this threshold, it requires a higher priority synchronization strategy, and the synchronization of the data takes longer. The average synchronization time is 2 hours. 1.5 hours, which is calculated by the average of the historical execution time of multiple data tasks. The parameters of the resource management part include the maximum resource allocation is 1000 units, the current available resources 800 units, and the synchronous scheduling adjustment coefficient It is set to 0.3 to adjust the resource allocation strategy under different conditions; Substitute the parameters into the formula: ; Calculate the results of each part, first calculate the difference between the survival time and the threshold , and then calculate the difference between the synchronization time and the average time , and take its square root to get , and then calculate the first part of the result is , and then calculate the second part of the resource adjustment items ; Finally, the resource allocation adjustment value is calculated: ; This value indicates that in the current synchronization environment, approximately 61.414 additional units of resources are needed to optimize short-lived synchronization tasks to ensure maximum data synchronization efficiency. The synchronization scheduling strategy is adjusted based on the short-term data synchronization optimization criteria to obtain the synchronization resource scheduling optimization parameters. This parameter is used for subsequent cross-platform synchronization resource allocation and synchronization task priority adjustment to optimize the overall synchronization process.

[0034] S513: Based on the synchronization resource scheduling optimization parameters, the synchronization parameters of the short-lived high-priority data are optimized, the synchronization execution priority is adjusted, and the adjusted cross-platform synchronization resources are output; When allocating cross-platform synchronization resources and adjusting synchronization execution priorities, special attention should be paid to high-priority data. For example, for transaction data in the financial industry, timely synchronization of data is crucial because it affects transaction decisions and risk management. By optimizing scheduling parameters, data can be synchronized quickly and accurately across platforms, thereby ensuring data timeliness and integrity while avoiding excessive occupation and waste of resources. The cross-platform synchronization resources after output adjustment directly affect the efficiency and response speed of the entire data synchronization architecture, improving overall data processing capabilities and stability.

[0035] The cross-platform communication sharing synchronization system is used to execute the above cross-platform communication sharing synchronization method, and the system includes: The cross-device state conflict detection module is based on the cross-platform communication sharing synchronization request timestamp sequence, extracts the state change event stream of multiple terminal devices, calculates the timestamp difference within the time window, filters repeated changes within a short period, adjusts the time window, applies synchronization buffering, and generates state change conflict detection results; The change frequency control module calculates the state change frequency of multiple terminal devices based on the state change conflict detection results, compares the threshold, filters out the over-threshold state, adjusts the synchronization priority, applies synchronization buffer, and obtains the state change conflict optimization parameters; The synchronization path dynamic optimization module optimizes parameters based on state change conflicts, extracts the starting position identifier of the cross-platform data exchange path, matches the synchronization path information, records the number of data hops, screens high-latency paths, optimizes data jump rules between nodes, adjusts the synchronization path, and generates synchronization path processing results; The data survival time scheduling module identifies the survival time of cross-platform data packets based on the synchronization path processing results, filters the data with short survival requirements, adjusts the synchronization priority, rearranges the synchronization queue of low-priority data, and obtains the synchronization data survival time scheduling parameters; The synchronization resource optimization configuration module calculates the ratio of data survival time to synchronization time based on the synchronization data survival time scheduling parameters, optimizes the synchronization process of short-lived high-priority data, and obtains the adjusted cross-platform synchronization resources.

[0036] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. A cross-platform communication sharing synchronization method, characterized in that: The following steps are involved: S1: Based on the cross-platform communication sharing synchronization request timestamp sequence, extract the cross-device state change event stream, compare the time window timestamp difference, apply synchronization buffer adjustment, adjust the time window size, and obtain the state change conflict detection result; S2: according to the state change conflict detection result, identify the state change frequency, compare the state change threshold, filter the state exceeding the threshold, adjust the synchronization priority, apply synchronization buffer, and obtain the state change conflict optimization parameter; S3: based on the state change conflict optimization parameter, extract the data starting position identifier, match the synchronization path information, merge the same path data, optimize the data transmission mode, reduce redundant synchronization, and obtain the synchronization path processing result; S4: calling the synchronization path processing result, calculating the data survival time, filtering the data with short survival requirements, adjusting the synchronization priority, adjusting the synchronization of low-priority data, and obtaining the synchronization data survival time scheduling parameters; S5: Based on the synchronization data survival time scheduling parameters, the ratio of the data survival time to the synchronization time consumption is collected, the resource scheduling parameters are extracted to adjust the synchronization scheduling rules, the synchronization priority of the short-lived data is optimized, and the adjusted cross-platform synchronization resources are output.

2. The cross-platform communication sharing synchronization method according to claim 1, characterized in that: The state change conflict detection result includes the timestamp difference of the time window, the screening result of multiple change requests for the same state within a short period, the sorting effective state, the synchronization buffer adjustment parameter and the time window size adjustment parameter; the state change conflict optimization parameter includes the state change frequency, the state change threshold, the exceeding threshold state, the synchronization priority adjustment parameter and the synchronization buffer parameter; the synchronization path processing result includes the data starting position identifier, the synchronization path information, the data hop number information, the key path node, the same path data merging result, the non-optimal path data screening result, the synchronization path adjustment parameter, the data transmission mode optimization parameter and the redundant synchronization reduction parameter; the synchronization data survival time scheduling parameter includes the data survival time, the synchronization time consumption ratio, the resource scheduling parameter, the synchronization scheduling rule adjustment parameter and the short survival high priority data synchronization parameter; the adjusted cross-platform synchronization resource includes the synchronization resource optimization mode, the synchronization priority adjustment parameter, the low priority data synchronization adjustment parameter and the synchronization data survival time optimization parameter.

3. The cross-platform communication sharing and synchronization method according to claim 1, characterized in that: The steps for obtaining the state change conflict detection result are specifically as follows: S111: based on the cross-platform communication shared synchronization request timestamp sequence, extract the cross-device state change event stream, calculate the time difference of adjacent timestamps, filter multiple change requests of the same state in a short period, and obtain the short-period state change filtering result; S112: Based on the short-period state change screening result, sort the screened state change requests in order of timestamps, calculate the time difference between adjacent state changes, sort the effective states, and obtain a state change sorting result; S113: Based on the state change sorting result, apply synchronization buffer adjustment, adjust the time window size, analyze the state change conflict situation, and use the formula: ; Calculate the state change conflict detection value and obtain the state change conflict detection result; in, Represents the state change conflict detection value, Represents the effective state value of the i-th state change, Represents the effective status value of the i-1th status change, represents the timestamp interval of the i-th state change, Represents the total number of state changes.

4. The cross-platform communication sharing synchronization method according to claim 3, characterized in that: The steps for obtaining the state change conflict optimization parameters are specifically as follows: S211: according to the state change conflict detection result, count the number of state changes, analyze the change range, filter out items exceeding the state change threshold, and obtain the exceeding threshold state; S212: calling the threshold-exceeding state, analyzing the synchronization priority between the differentiated devices, adjusting the priority according to the conflict degree, and obtaining an adjusted synchronization priority; S213: Based on the adjusted synchronization priority, the synchronization delay is analyzed, and a synchronization buffer parameter is introduced, using the formula: ; Calculate and obtain state change conflict optimization parameters; in, Represents the state change conflict optimization parameters, Represents the frequency of state changes. Represents the state change threshold, represents the delay of the jth state change, represents the synchronization weight of the jth state change, Represents the total number of threshold-exceeding states, Represents the synchronization buffer time, Represents the synchronization priority adjustment amount.

5. The cross-platform communication sharing and synchronization method according to claim 4, characterized in that: The steps for obtaining the synchronization path processing result are specifically as follows: S311: based on the state change conflict optimization parameter, extract the data start position identifier, call the matching synchronization path information, identify the hop count information, screen the key path nodes, and obtain the synchronization path offset; S312: merging path data according to the synchronization path offset, filtering non-optimal path data, calculating a redundancy ratio, adjusting the synchronization path, and acquiring optimized synchronization path data; S313: Based on the optimized synchronization path data, optimize the data transmission mode, reduce redundancy, and adjust the path, using the formula: ; Calculate the optimized rate of the synchronization path and obtain the synchronization path processing result; in, represents the optimized rate of the synchronization path, Representative The data synchronization rate of each path, Represents the base rate of the synchronization path, Representative The data redundancy of each path, Representative The data transmission error of the path, Representative The transmission time of each path, Indicates the total number of paths.

6. The cross-platform communication sharing and synchronization method according to claim 5, characterized in that: The steps for obtaining the synchronization data survival time scheduling parameters are specifically as follows: S411: Call the synchronization path processing result, extract the data synchronization start time, current time, data update frequency, analyze the time decay rate, life cycle proportion, and data retention ratio, and use the formula: ; Calculate the data survival time; in, Represents the data survival time, Represents the start time of data synchronization. Represents the current time, Represents the data update frequency, represents the data retention ratio; S412: calling the data survival time, screening the data with short survival time and high data request frequency, identifying the demand intensity factor, and obtaining a short survival and high demand data set; S413: Based on the short-lived high-demand data set, sort according to request frequency and survival time, adjust the synchronization priority, and obtain synchronization data survival time scheduling parameters.

7. The cross-platform communication sharing and synchronization method according to claim 6, characterized in that: The steps for obtaining the adjusted cross-platform synchronization resources are specifically as follows: S511: Based on the synchronization data survival time scheduling parameter, the ratio of the data survival time to the synchronization time consumption is calculated, the data set whose survival time is lower than the target threshold is screened, the synchronization scheduling criterion is extracted, and the short-term data synchronization optimization criterion is obtained; S512: Call the short-term data synchronization optimization criterion, extract resource scheduling parameters, and use the formula based on the ratio of survival time to synchronization time consumption: ; Calculate resource allocation adjustment values, adjust synchronization scheduling data, and obtain synchronization resource scheduling optimization parameters; in, Represents the resource allocation adjustment value, Represents the survival time of synchronization data. represents the survival time threshold, Indicates the time taken by the current synchronization task. Represents the average time taken for synchronization tasks. represents the synchronous scheduling adjustment coefficient, Represents the maximum amount of resources that can be allocated. Represents the current amount of available resources; S513: Based on the synchronization resource scheduling optimization parameters, the synchronization parameters of the short-lived high-priority data are optimized, the synchronization execution priority is adjusted, and the adjusted cross-platform synchronization resources are output.

8. A cross-platform communication sharing synchronization system, characterized in that: According to the cross-platform communication sharing and synchronization method according to any one of claims 1 to 7, the system comprises: The cross-device state conflict detection module extracts the state change event stream of multiple terminal devices based on the cross-platform communication shared synchronization request timestamp sequence, calculates the timestamp difference within the time window, filters repeated changes within a short period, adjusts the time window, applies synchronization buffering, and generates state change conflict detection results; The change frequency control module calculates the state change frequency of multiple terminal devices based on the state change conflict detection result, compares the threshold, filters the over-threshold state, adjusts the synchronization priority, applies synchronization buffer, and obtains the state change conflict optimization parameter; The synchronization path dynamic optimization module extracts the starting position identifier of the cross-platform data exchange path based on the state change conflict optimization parameters, matches the synchronization path information, records the number of data hops, selects high-latency paths, optimizes the data jump rules between nodes, adjusts the synchronization path, and generates a synchronization path processing result; The data survival time scheduling module identifies the survival time of cross-platform data packets based on the synchronization path processing results, filters short survival requirement data, adjusts the synchronization priority, rearranges the low priority data synchronization queue, and obtains synchronization data survival time scheduling parameters; The synchronization resource optimization configuration module calculates the ratio of data survival time to synchronization time consumption based on the synchronization data survival time scheduling parameters, optimizes the synchronization process of short-lived high-priority data, and obtains adjusted cross-platform synchronization resources.

Citation Information

Patent Citations

  • Shared strategy verification and conflict detection method based on priority dynamic adjustment

    CN114900367A

  • Cross-platform electronic communication synchronization system

    CN119342064A

  • Distributed multi-mode data cross-trust-domain data sharing method and system

    CN119696850A

  • Information distribution system and information management device

    US20130028112A1

Cited By

  • Cache optimization method and equipment based on traffic behavior characteristics and storage medium

    CN120186230A

  • Cache Optimization Method, Device and Storage Medium Based on Traffic Behavior Characteristics

    CN120186230B

  • Audio frequency integrated signal processor for 40G / 10G Ethernet and SRIO high-speed data transmission

    CN120811989A

  • Data synchronization method and system based on instant messaging client

    CN121357140A

  • Cross-platform data cascading and sharing method and system for water transportation internet of things

    CN122348948A