[go: up one dir, main page]

CN119946076A - A cross-platform communication sharing synchronization method and system - Google Patents

A cross-platform communication sharing synchronization method and system Download PDF

Info

Publication number
CN119946076A
CN119946076A CN202510424590.9A CN202510424590A CN119946076A CN 119946076 A CN119946076 A CN 119946076A CN 202510424590 A CN202510424590 A CN 202510424590A CN 119946076 A CN119946076 A CN 119946076A
Authority
CN
China
Prior art keywords
synchronization
data
state change
time
path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202510424590.9A
Other languages
Chinese (zh)
Other versions
CN119946076B (en
Inventor
周伟伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Chuangtuojia Technology Co ltd
Original Assignee
Shenzhen Chuangtuojia Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Chuangtuojia Technology Co ltd filed Critical Shenzhen Chuangtuojia Technology Co ltd
Priority to CN202510424590.9A priority Critical patent/CN119946076B/en
Publication of CN119946076A publication Critical patent/CN119946076A/en
Application granted granted Critical
Publication of CN119946076B publication Critical patent/CN119946076B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明涉及同步通信技术领域,具体为一种跨平台通信共享同步方法及系统,包括以下步骤:基于跨平台通信共享同步请求时间戳序列,提取跨设备状态变更事件流,对比时间窗口时间戳差值,施加同步缓冲调整,调整时间窗口大小,获取状态变更冲突检测结果。本发明中,通过时间戳序列提取状态变更事件流,实现跨设备状态变更数据的精确对比,结合时间窗口调整与短周期变更筛选,减少重复变更误差,对状态变更频次量化分析,使高频变更更快同步,降低冲突累积,优化同步路径,减少非最优传输与数据冗余,提高传输效率与稳定性,优先同步短存活高需求数据,优化生命周期管理,调整同步调度规则,优化资源利用,减少生命周期不匹配导致的浪费。

The present invention relates to the field of synchronous communication technology, specifically a cross-platform communication sharing synchronization method and system, comprising the following steps: based on a cross-platform communication sharing synchronization request timestamp sequence, extracting a cross-device state change event stream, comparing the time window timestamp difference, applying synchronization buffer adjustment, adjusting the time window size, and obtaining a state change conflict detection result. In the present invention, the state change event stream is extracted through a timestamp sequence to achieve accurate comparison of cross-device state change data, combining time window adjustment with short-cycle change screening to reduce repeated change errors, quantitatively analyzing the state change frequency, making high-frequency changes synchronized faster, reducing conflict accumulation, optimizing synchronization paths, reducing non-optimal transmission and data redundancy, improving transmission efficiency and stability, giving priority to synchronizing short-lived high-demand data, optimizing life cycle management, adjusting synchronization scheduling rules, optimizing resource utilization, and reducing waste caused by life cycle mismatches.

Description

Cross-platform communication sharing synchronization method and system
Technical Field
The present invention relates to the field of synchronous communications technologies, and in particular, to a method and system for sharing synchronization in cross-platform communications.
Background
The technical field of synchronous communication comprises a data transmission and consistency guaranteeing method in a multi-device and multi-platform environment, the core content of the technical field comprises aspects of real-time transmission, time sequence control, synchronous management, protocol adaptation and the like of data, the aim of ensuring that data among different terminals or systems can keep consistent, the synchronous communication depends on a clock synchronization mechanism, a data caching technology and a transmission control protocol so as to reduce delay and data conflict, and the whole technical field covers modes of point-to-point synchronization, distributed synchronization, transaction synchronization and the like and is applied to scenes such as distributed computing, remote collaboration, database replication, multi-terminal data sharing and the like.
The method mainly comprises heterogeneous platform compatibility design, data format conversion, communication protocol adaptation and state synchronization mechanisms, specifically adopts standardized communication protocols to ensure data intercommunication among different platforms, ensures accuracy of data synchronization through consistency check technology, and simultaneously utilizes a caching strategy and transaction processing technology to coordinate data updating during concurrent access of multiple devices so as to avoid the problem of non-synchronization or data loss.
In the prior art, a larger synchronization delay exists in the data transmission process, particularly in a multi-device concurrent access scene, the priority of state change cannot be effectively distinguished, so that high-frequency state update and low-frequency state update compete for synchronous resources, the real-time performance of high-demand data is influenced, the existing method depends on static routing or simple path selection rules in the aspect of data synchronization path optimization, dynamic path adjustment technology cannot be fully utilized, the data transmission efficiency is reduced, redundant data flow is increased, network load is increased, in the aspect of data survival time management, the prior art cannot dynamically adjust the synchronization priority according to the life cycle of data, the short-survival high-demand data loses value due to synchronization delay, the effective utilization of the data is influenced, the synchronous scheduling rules are relatively fixed, dynamic optimization of the resource utilization rate is lacked, the scheduling strategy cannot be effectively adjusted when synchronous resources are tensed, the resource utilization rate is reduced, the overall synchronous performance is influenced, and the problem of data consistency is increased in the distributed computing and remote cooperation scene.
Disclosure of Invention
The invention aims to solve the defects in the prior art, and provides a cross-platform communication sharing synchronization method and system.
In order to achieve the purpose, the invention adopts the following technical scheme that the cross-platform communication sharing synchronization method comprises the following steps:
S1, based on a cross-platform communication sharing synchronization request timestamp sequence, extracting a cross-equipment state change event stream, comparing a timestamp difference value of a time window, applying synchronization buffer adjustment, adjusting the size of the time window, and obtaining a state change conflict detection result;
S2, according to the state change conflict detection result, identifying the state change frequency, comparing the state change threshold, screening states exceeding the threshold, adjusting the synchronization priority, applying the synchronization buffer, and obtaining the state change conflict optimization parameters;
S3, based on the state change conflict optimization parameters, extracting data initial position identification, matching synchronous path information, merging similar path data, optimizing a data transmission mode, reducing redundant synchronization and obtaining a synchronous path processing result;
S4, invoking the synchronous path processing result, calculating the data survival time, screening short survival requirement data, adjusting the synchronous priority, adjusting the low priority data to synchronize, and obtaining the synchronous data survival time scheduling parameter;
S5, based on the synchronous data survival time scheduling parameters, counting the ratio of the data survival time to the synchronous time consumption, extracting resource scheduling parameters to adjust synchronous scheduling rules, optimizing the synchronous priority of the short survival data, and outputting the adjusted cross-platform synchronous resources.
As a further scheme of the present invention, the state change conflict detection result includes a timestamp difference of a time window, a multiple change request screening result of the same state in a short period, a sorting effective state, a synchronization buffer adjustment parameter and a time window size adjustment parameter, the state change conflict optimization parameter includes a state change frequency, a state change threshold, an exceeding threshold state, a synchronization priority adjustment parameter and a synchronization buffer parameter, the synchronization path processing result includes a data start position identifier, synchronization path information, data hop count information, a critical path node, a similar path data merging result, a non-optimal path data screening result, a synchronization path adjustment parameter, a data transmission mode optimization parameter and a redundancy synchronization reduction parameter, the synchronization data survival time scheduling parameter includes a data survival time, a synchronization time consumption ratio, a resource scheduling parameter, a synchronization scheduling rule adjustment parameter and a short survival high priority data synchronization parameter, and the cross-platform synchronization resource after adjustment includes a synchronization resource optimization mode, a synchronization priority adjustment parameter, a low priority data synchronization adjustment parameter and a synchronization data survival time optimization parameter.
As a further aspect of the present invention, the step of obtaining the state change conflict detection result specifically includes:
S111, extracting a cross-equipment state change event stream based on a cross-platform communication sharing synchronization request timestamp sequence, calculating adjacent timestamp time difference values, and screening multiple change requests of the same state in a short period to obtain a short period state change screening result;
S112, sorting the screened state change requests according to the time stamp sequence based on the short-period state change screening result, calculating the time difference value of adjacent state change, and sorting the effective states to obtain a state change sorting result;
s113, based on the state change sequencing result, applying synchronous buffer adjustment, adjusting the size of a time window, analyzing the state change conflict situation, and adopting the formula:
;
calculating a state change conflict detection value, and obtaining a state change conflict detection result;
Wherein, A representative state change conflict detection value,An effective state value representing the ith state change,An effective status value representing the i-1 st status change,A time stamp interval representing the ith state change,Representing the total number of state changes.
As a further aspect of the present invention, the step of obtaining the state change conflict optimization parameter specifically includes:
s211, counting the occurrence times of state change according to the state change conflict detection result, analyzing the change amplitude, and screening items exceeding a state change threshold value to obtain a state exceeding the threshold value;
S212, calling the state exceeding the threshold value, analyzing the synchronous priority among the differentiated devices, and adjusting the priority according to the conflict degree to obtain the adjusted synchronous priority;
s213, analyzing synchronous time delay based on the adjusted synchronous priority, introducing synchronous buffer parameters, and adopting the formula:
;
Calculating and obtaining state change conflict optimization parameters;
Wherein, Representing the state change conflict optimization parameters,Representing the frequency of the state change,Representing a state change threshold value,Representing the amount of delay for the jth state change,The synchronization weight representing the jth state change,Representing the total number of states exceeding the threshold,Representing the time of the synchronization buffer and,Representing the synchronization priority adjustment amount.
As a further aspect of the present invention, the step of obtaining the synchronous path processing result specifically includes:
S311, based on the state change conflict optimization parameters, extracting a data initial position identifier, calling matching synchronous path information, identifying hop count information, screening critical path nodes and obtaining synchronous path offset;
s312, combining path data according to the synchronous path offset, screening non-optimal path data, calculating redundancy ratio, adjusting synchronous paths and obtaining optimized synchronous path data;
s313, optimizing a data transmission mode based on the optimized synchronous path data, reducing redundancy, adjusting a path and adopting a formula:
;
Calculating the optimization rate of the synchronous path, and obtaining the synchronous path processing result;
Wherein, Representing the optimal rate of the synchronous path,Represents the firstThe data synchronization rate of the strip path,Representing the reference rate of the synchronous path,Represents the firstThe amount of data redundancy of the strip path,Represents the firstThe data transmission errors of the one path,Represents the firstThe transmission time of the path of the strip,Representing the total number of paths.
As a further aspect of the present invention, the step of obtaining the synchronized data survival time scheduling parameter specifically includes:
S411, calling the synchronous path processing result, extracting the data synchronous starting time, the current time and the data updating frequency, analyzing the time attenuation rate, the life cycle duty ratio and the data retention ratio, and adopting the formula:
;
Calculating to obtain data survival time;
Wherein, Representing the time to live of the data,Representing the start time of the data synchronization,Representing the current time of day and,Representing the frequency of the data update,Representing a data retention ratio;
s412, invoking the data survival time, screening data with short survival time and high data request frequency, identifying a demand intensity factor, and obtaining a short survival high demand data set;
S413, based on the short-survival high-demand data set, adjusting the synchronous priority according to the request frequency and the survival time sequence, and obtaining the synchronous data survival time scheduling parameter.
As a further scheme of the present invention, the step of acquiring the adjusted cross-platform synchronization resource specifically includes:
S511, based on the synchronous data survival time scheduling parameters, counting the ratio of the data survival time to the synchronous time consumption, screening a data set with the survival time lower than a target threshold value, extracting a synchronous scheduling criterion, and acquiring a short-time data synchronous optimization criterion;
s512, calling the short-time data synchronization optimization criterion, extracting a resource scheduling parameter, and adopting a formula according to the ratio of the survival time to the synchronization time consumption:
;
Calculating a resource allocation adjustment value, and adjusting synchronous scheduling data to obtain synchronous resource scheduling optimization parameters;
Wherein, Representing the resource allocation adjustment value(s),Representing the time-to-live of the synchronized data,Representing a time-to-live threshold value,Representing the time-consuming time of the current synchronization task,Representing the average time-consuming of the sync task,Representing the synchronous schedule adjustment factor(s),Representing the maximum amount of allocable resources,Representing the amount of currently available resources;
s513, based on the synchronous resource scheduling optimization parameters, optimizing the synchronous parameters of the short-survival high-priority data, adjusting synchronous execution priority, and outputting the adjusted cross-platform synchronous resources.
The cross-platform communication sharing synchronization system is used for executing the cross-platform communication sharing synchronization method, and the system comprises the following steps:
The cross-equipment state conflict detection module extracts a multi-terminal equipment state change event stream based on a cross-platform communication sharing synchronization request timestamp sequence, calculates timestamp difference in a time window, screens repeated changes in a short period, adjusts the time window, applies synchronization buffering and generates a state change conflict detection result;
the change frequency regulation and control module calculates the change frequency of the state of the multi-terminal equipment based on the state change conflict detection result, compares the threshold value, screens the state of the super threshold value, adjusts the synchronous priority, applies synchronous buffering and obtains the state change conflict optimization parameter;
the synchronous path dynamic optimization module extracts a starting position mark of a cross-platform data exchange path based on the state change conflict optimization parameters, matches synchronous path information, records data hops, screens high-delay paths, optimizes data hopping rules among nodes, adjusts synchronous paths and generates synchronous path processing results;
The data survival time scheduling module identifies the survival time of the cross-platform data packet based on the synchronous path processing result, screens short survival demand data, adjusts the synchronous priority, rearranges the low-priority data synchronous queue and acquires synchronous data survival time scheduling parameters;
and the synchronous resource optimization configuration module calculates the ratio of the data survival time to the synchronous time consumption based on the synchronous data survival time scheduling parameter, optimizes the synchronous process of the short-survival high-priority data, and obtains the adjusted cross-platform synchronous resource.
Compared with the prior art, the invention has the advantages and positive effects that:
According to the invention, through establishing a state change event stream extraction mode based on a time stamp sequence, the accurate comparison of cross-equipment state change data is realized, the adjustment of a time window and the screening of multiple change requests in a short period are combined, the detection precision of state conflict in the data synchronization process is optimized, the synchronization error caused by repeated change is reduced, quantitative analysis is carried out on the state change frequency, and the priority adjustment is carried out on the state change exceeding the threshold value by combining a threshold value judging method, so that the high-frequency state change obtains faster synchronization response, the conflict accumulation caused by frequent change is reduced, the optimization of a synchronization path reduces the data transmission of a non-optimal path through means of data initial position identification, path matching, key node screening and the like, the transmission efficiency of the synchronization data is improved, the data redundancy is reduced through a path optimization mode, the stability of the data synchronization is improved, the priority adjustment is carried out on the short-survival high-demand data on the basis of analysis of the data survival time, the data synchronization timeliness is optimized, the data period management is enabled to be realized, the ratio of the data survival time and the synchronization time is calculated, the synchronization time consumption is reduced, the data life cycle is adjusted, the data survival time is prolonged, the data is not is matched with the priority resource under the condition that the optimization of the high-priority scheduling policy is optimized, and the life cycle is not matched with the data resource, and the life cycle is not optimized.
Drawings
FIG. 1 is a schematic workflow diagram of the present invention;
FIG. 2 is a flowchart of the method for obtaining the result of detecting the state change conflict in the present invention;
FIG. 3 is a flow chart of the acquisition of state change conflict optimization parameters in the present invention;
FIG. 4 is a flowchart of the method for obtaining the synchronous path processing result in the present invention;
FIG. 5 is a flowchart for acquiring a synchronous data survival time scheduling parameter according to the present invention;
FIG. 6 is a flowchart of the method for acquiring the cross-platform synchronous resource after adjustment.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the description of the present invention, it should be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like indicate orientations or positional relationships based on the orientation or positional relationships shown in the drawings, merely to facilitate describing the present invention and simplify the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and therefore should not be construed as limiting the present invention. Furthermore, in the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Referring to fig. 1, the present invention provides a method for cross-platform communication sharing synchronization, comprising the following steps:
S1, based on a cross-platform communication shared synchronization request timestamp sequence, extracting a cross-equipment state change event stream, comparing timestamp difference values of time windows, screening multiple change requests of the same state in a short period, ordering effective states, applying synchronization buffer adjustment, adjusting the size of the time windows, and obtaining a state change conflict detection result;
S2, according to the state change conflict detection result, identifying the state change frequency, comparing the state change threshold, screening states exceeding the threshold, adjusting the synchronization priority, applying the synchronization buffer, and obtaining the state change conflict optimization parameters;
S3, based on the state change conflict optimization parameters, extracting data initial position identification, matching synchronous path information, recording data hop count information, extracting key path nodes, merging similar path data, screening non-optimal path data to adjust synchronous paths, optimizing data transmission modes, reducing redundant synchronization and obtaining synchronous path processing results;
S4, invoking a synchronous path processing result, calculating data survival time, screening short survival requirement data, adjusting synchronous priority, adjusting low-priority data synchronization, and obtaining synchronous data survival time scheduling parameters;
S5, based on the synchronous data survival time scheduling parameters, counting the ratio of the data survival time to the synchronous time consumption, extracting the resource scheduling parameters to adjust the synchronous scheduling rule, optimizing the synchronous priority of the short survival data, and outputting the adjusted cross-platform synchronous resource.
The state change conflict detection result comprises a time stamp difference value of a time window, a multi-time change request screening result of the same state in a short period, a sequencing effective state, a synchronous buffer adjustment parameter and a time window size adjustment parameter, the state change conflict optimization parameter comprises a state change frequency, a state change threshold value, an exceeding threshold value state, a synchronous priority adjustment parameter and a synchronous buffer parameter, the synchronous path processing result comprises a data starting position identifier, synchronous path information, data hop count information, a critical path node, a similar path data merging result, a non-optimal path data screening result, a synchronous path adjustment parameter, a data transmission mode optimization parameter and a redundancy synchronous reduction parameter, the synchronous data survival time scheduling parameter comprises a data survival time, a synchronous time consumption ratio, a resource scheduling parameter, a synchronous scheduling rule adjustment parameter and a short-survival high priority data synchronization parameter, and the cross-platform synchronous resource after adjustment comprises a synchronous resource optimization mode, a synchronous priority adjustment parameter, a low-priority data synchronous adjustment parameter and a synchronous data survival time optimization parameter.
Referring to fig. 2, the step of obtaining the state change conflict detection result specifically includes:
S111, extracting a cross-equipment state change event stream based on a cross-platform communication sharing synchronization request timestamp sequence, calculating adjacent timestamp time difference values, and screening multiple change requests of the same state in a short period to obtain a short period state change screening result;
First a synchronization request timestamp sequence generated by each device is obtained, for example, device a sends a request at 10:00:00, device B sends a request at 10:00:01, device C sends a request at 10:00:02, the timestamps are arranged in time order to form a complete timestamp sequence, a cross-device state change event stream is extracted, which requires monitoring the state change 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, device C changes from state 0 to state 1 at 10:00:07, the state change event is matched with the previous timestamp sequence to form an event stream comprising a timestamp and a state change, the time difference between adjacent timestamps is calculated, for example, the time difference between device a and device B is 1 second, the time difference between the device B and the device C is 1 second, the time difference is recorded and used for subsequent analysis, the shortest time interval in the time window is determined, a time window is set, for example, 5 seconds, the shortest time interval of state change of each device in the time window is calculated, for example, the device a is changed at 10:00:05, the device B is changed at 10:00:06, the shortest time interval is 1 second, frequent state change is facilitated to be identified, multiple change requests of the same state in a short period are screened, for example, in the time window of 5 seconds, the device a is changed to be in a state 1 at 10:00:05 and 10:00:08 twice, the device B is changed to be in a state 0 at 10:00:06 and 10:00:09 twice, repeated state change requests in a short period are screened out, and a short period state change screening result is obtained.
S112, sorting the screened state change requests according to the time stamp sequence based on the short-period state change screening result, calculating the time difference value of adjacent state change, and sorting the effective states to obtain a state change sorting result;
sorting the selected state change requests according to the time stamp sequence, for example, the state change of the device a at 10:00:05 and 10:00:08 is performed, the state change of the device B at 10:00:06 and 10:00:09 is performed, the changes are arranged according to the time sequence to be 10:00:05 (device a), 10:00:06 (device B), 10:00:08 (device a), 10:00:09 (device B), the time difference of adjacent state changes is calculated, for example, the time difference of 10:00:05 to 10:00:06 is 1 second, the time difference of 10:00:06 to 10:00:08 is 2 seconds, the time difference of 10:00:08 to 10:00:09 is 1 second, the time difference is recorded, the frequency and rule of the state changes are used for analysis, the effective states are sorted, the device states corresponding to each time point are determined, for example, the state of the device a at 10:00:05 is 1, the state of the device B at 10:00:06 is 0, the state of the device a at 10:00:08 is 1, the state of the device B is 10:00:09 is the state of the device B is 1, the state of the device B is the state at 10:00:09 is the time point, the state of the device a 0:09 is the state of the device B is the state of the device B is the state according to be the time sequence, the sequence of the state change results are ordered, and the state change results are formed according to the sequence.
S113, based on the state change sequencing result, applying synchronous buffer adjustment, adjusting the size of a time window, analyzing the state change conflict situation, and adopting the formula:
;
calculating a state change conflict detection value, and obtaining a state change conflict detection result;
Wherein, A representative state change conflict detection value,An effective state value representing the ith state change,An effective status value representing the i-1 st status change,A time stamp interval representing the ith state change,Representing the total state change times;
applying a synchronous buffer adjustment, setting a buffer time, for example 2 seconds, for smoothing state changes, avoiding system instability caused by frequent state switching, adjusting the size of a time window, determining a proper time window according to a time difference value calculated before, for example, adjusting the time window from 5 seconds to 3 seconds to capture details of the state changes more finely, calculating a state change conflict situation, counting the number of times of state conflicts occurring in the adjusted time window, for example, in a time window of 3 seconds, the device A and the device B try to change to opposite states at the same time and consider as a conflict;
Assuming that the state change sequence of the device a and the device B is 1 (device a), 0 (device B), 1 (device a), 0 (device B) and the corresponding time stamp interval is 1 second, 2 seconds and 1 second in a time window, the calculated conflict detection value is:
;
and obtaining a state change conflict detection result.
Referring to fig. 3, the step of obtaining the state change conflict optimization parameters specifically includes:
S211, counting the occurrence times of state change according to a state change conflict detection result, analyzing change amplitude, and screening items exceeding a state change threshold value to obtain a state exceeding the threshold value;
In a communication network, each time a state is changed by a device, a state change log is recorded, the log is used for analyzing the activity degree and the potential synchronization conflict problem of the device, the frequency of each state change can be obtained by counting log data in one month, for each state change, the change amplitude of the state change in a specific time window needs to be calculated, for example, the change frequency of the state change in the peak period and the off-peak period has a significant difference, the timestamp in the log needs to be analyzed, the occurrence frequency of each state change in the peak period and the off-peak period is calculated, the calculation can be completed through simple time classification statistics, the state change item exceeding a preset threshold value is screened out, the threshold value is obtained based on the design standard of the device and the analysis of historical data, the allowed maximum state change frequency is considered based on the bearing capacity of the device and the network load, the state exceeding the threshold value is considered to be an abnormal state, and further analysis or adjustment is needed to obtain the state exceeding the threshold value.
S212, calling a state exceeding a threshold value, analyzing the synchronous priority among the differentiated devices, and adjusting the priority according to the conflict degree to obtain the adjusted synchronous priority;
The actual application scenario may be in a large data center, where the data synchronization requirements between multiple servers are different, for example, the servers with heavier loads need to synchronize data more frequently to ensure the consistency of information, so that priority ranking needs to be performed on the status change records of each server, and adjustment is performed based on the importance of the status change records and the influence degree of the synchronization conflict, where the adjustment of the priority is implemented by comparing the data processing capability of each server with the current network condition, the data processing capability of the server may be determined by the specification and the actual running data, the network condition may be evaluated by monitoring the network traffic in real time, and the summarization and analysis of the data may help the decision maker to make a more reasonable synchronization policy, so as to obtain the adjusted synchronization priority.
S213, analyzing synchronous time delay based on the adjusted synchronous priority, introducing synchronous buffer parameters, and adopting the formula:
;
Calculating and obtaining state change conflict optimization parameters;
Wherein, Representing the state change conflict optimization parameters,Representing the frequency of the state change,Representing a state change threshold value,Representing the amount of delay for the jth state change,The synchronization weight representing the jth state change,Representing the total number of states exceeding the threshold,Representing the time of the synchronization buffer and,Representing a synchronization priority adjustment amount;
For the time delay condition in the synchronization process, a synchronization buffer parameter is introduced, and in the practical application scene, such as a data synchronization task in a group of server clusters, the state change frequency of each server is different, so that the synchronization priority is adjusted, for example, the state change frequency of one server is adjusted 120 Times/hr and 80 times/hr, if the state changes thresholdIf the time is set to 100 times/hour, the state change of the first server exceeds the threshold value, which indicates that the synchronization requirement of the server is higher, and when the comprehensive regulation parameters of the synchronous data transmission are calculated, the time delay condition needs to be considered, for example, the transmission time delay between different servers in a certain data centerFor the time delay of the servers A to BTime delay of servers B through CTime delay of servers C to DSynchronization weight corresponding to each state changeSet as weights of servers A to BWeights of servers B to CWeights of servers C to DSynchronizing buffering timeDepending on the current network conditions, for example, 50ms is set when the network load is low, and 100ms is required to be adjusted when the network load is high, the priority adjustment amount is setThe comprehensive regulation and control parameters of synchronous data transmission can be calculated according to the processing capacity of the server and the network flow setting, for example, the current value is assumed to be 0.5;
the state change conflict optimization parameter is used for measuring the degree of the synchronous conflict, and the larger the numerical value is, the more serious the conflict is;
The state change frequency is obtained through server log statistics;
a state change threshold is set to 100 times/hour and is used for identifying abnormal state change conditions;
The j-th state is changed in time delay amount, and the transmission time delay between the servers is in ms;
The j-th state is changed to be synchronous weight, and the synchronous weight is set according to the importance of the data and the load condition of the server;
the total number of states exceeding the threshold value represents the number of servers currently needing to adjust the synchronization strategy;
the synchronous buffer time is determined by the network load condition and is currently set to be 50ms;
the adjustment amount of the synchronous priority is used for adjusting the synchronous strategy and is currently set to 0.5;
substituting specific numerical values for calculation:
;
;
;
the method comprises the steps of calculating and obtaining state change conflict optimization parameters, and establishing a final optimization strategy based on a calculation result to obtain the state change conflict optimization parameters, wherein the value can be used for dynamically adjusting the synchronization strategy to enable a high-frequency state change server to synchronize preferentially, and simultaneously, the network delay and load conditions are combined to optimize a data transmission path so as to reduce unnecessary resource occupation and improve overall synchronization efficiency, the current synchronous state change conflict optimization parameters are 6.47, the value is higher, the data synchronization conflicts among the servers are severe, and a stricter synchronization management strategy, such as increasing the synchronization priority of the high-frequency state change server or adjusting the synchronization buffer time, is adopted to relieve the synchronization pressure.
Referring to fig. 4, the step of obtaining the synchronous path processing result specifically includes:
s311, based on the state change conflict optimization parameters, extracting a data initial position identifier, calling matching synchronous path information, identifying hop count information, screening critical path nodes and obtaining synchronous path offset;
In the actual synchronization of the distributed databases, the data modification on different nodes causes synchronization conflict, the final state of the data can be more reasonably determined by introducing conflict optimization parameters, for example, assuming that two users modify the stock quantity of the same commodity almost simultaneously in one shopping website, the state change conflict optimization parameters help the system to determine which modification is preferential, a specific calculation mode depends on factors such as time stamps, user authority and the like to set weights and priorities, match synchronization path information is called, hop count information is calculated, critical path nodes are screened, series of operations are all to ensure the efficiency and accuracy of the data in the transmission process, the best path is selected to ensure the fastest arrival of the data through the evaluation and optimization of each data transmission path, the conflict and error are reduced, and the result reflects the overall efficiency and accuracy of the synchronization after the data processing and optimization through the steps.
S312, combining path data according to the synchronous path offset, screening non-optimal path data, calculating redundancy ratio, adjusting synchronous paths and obtaining optimized synchronous path data;
The method comprises the steps of effectively integrating data acquired from different data sources or different nodes, ensuring the consistency and the integrity of the data, for example, in the case of multi-source data integration, different data sources provide different information fragments related to the same entity, determining which data are new or more accurate by calling synchronous path offset, further selecting proper data to combine, screening non-optimal path data, eliminating data items affecting synchronous precision, identifying and eliminating paths or data fragments which cause data quality to be reduced, adjusting paths for data synchronization, optimizing data flow and processing procedures, thereby improving overall performance and data accuracy, acquiring optimized synchronous path data, and displaying how to more efficiently and accurately the paths for data synchronization after screening and optimization.
S313, optimizing a data transmission mode based on optimized synchronous path data, reducing redundancy, adjusting paths, and adopting the formula:
;
Calculating the optimization rate of the synchronous path, and obtaining the synchronous path processing result;
Wherein, Representing the optimal rate of the synchronous path,Represents the firstThe data synchronization rate of the strip path,Representing the reference rate of the synchronous path,Represents the firstThe amount of data redundancy of the strip path,Represents the firstThe data transmission errors of the one path,Represents the firstThe transmission time of the paths represents the total number of paths;
firstly, the optimized data synchronous paths need to be monitored, and the data transmission rate of each path is recorded, for example, in a global distributed storage, a plurality of data centers need to synchronize data, each data center has different network bandwidths and load conditions, and it is assumed that in a certain synchronization task, the paths To the point ofThe synchronization rates of (a) are 120MB/s, 100MB/s, 80MB/s, 130MB/s, and 90MB/s, respectively, so that the deviation of the synchronization rates from the reference synchronization rate can be calculated, the data transmission mode is optimized, the redundancy amount of the synchronous data is reduced, the operation involves the statistical data redundancy ratio, for example, the data has repeated packets when transmitted between different paths, the synchronization efficiency is reduced, and the redundancy data amount of the assumed paths is reducedThe method comprises the steps of sequentially 5MB, 7MB, 6MB, 4MB and 8MB, evaluating the influence of redundant data, and performing path adjustment according to the synchronous rate offset rate, wherein the key of the operation is to calculate a synchronous rate relative offset value and adjust the path to optimize the synchronous efficiency;
substituting specific numerical values for calculation, assuming a reference rate MB/s, error of transmission of each pathRespectively 2MB, 3MB, 1MB, 2MB, 3MB, the transmission time of each path10S, 12s, 11s, 9s, 13s, respectively, are calculated as follows:
Calculating an offset molecular moiety:
;
calculating denominator first part (square root term):
;
;
summation of denominator first part: ;
calculating denominator second part (time term):
;
Final calculation :;
The synchronous path processing result is obtained, the adjustment strategy of the synchronous rate can be optimized based on the synchronous condition of the current path, the overall efficiency of data transmission is improved, and an administrator can perform the following stepsFurther adjustments to the synchronization path are made, for example, ifBelow a set reference value (e.g., 1.5), it is desirable to reduce the use of certain low speed paths or adjust the data load distribution to improve overall synchronization performance.
Referring to fig. 5, the step of acquiring the synchronized data survival time scheduling parameter specifically includes:
S411, invoking a synchronous path processing result, extracting data synchronous starting time, current time and data updating frequency, analyzing time attenuation rate, life cycle duty ratio and data retention ratio, and adopting a formula:
;
Calculating to obtain data survival time;
Wherein, Representing the time to live of the data,Representing the start time of the data synchronization,Representing the current time of day and,Representing the frequency of the data update,Representing a data retention ratio;
First extracting data synchronization start time And the current timeAnd data update frequencyTaking an actual application scenario as an example, in a banking transaction, a certain transaction record is synchronously stored in a database when the transaction record is in 2024, 1 month, 1 day, 00:00:00, the current time is 2024, 2 months, 1 day, 00:00, the data updating frequency of the transaction record is once every 6 hours, and the updating time interval is 6 hours, so as to calculate the survival time of the data;
Wherein, (I.e. 2024 1, 00: 00),Hours (i.e. 2024 month 21 day 00: 00),(Update frequency 6 hours),(Data retention ratio, typically set according to data type and importance, in the financial industry, for high security data, the value can be set to 0.05-0.1);
Substituting the numerical value into calculation: ;
The data survival time of the transaction record is 297.72 hours, namely about 12.4 days, the numerical value shows that the data still has higher value after being stored, the data can be used for subsequent analysis, inquiry and adjustment of a synchronization strategy, if the value is lower than a survival time threshold value set by a system (for example, 10 days), the synchronization frequency is required to be adjusted or the data storage strategy is required to be optimized so as to ensure that the data is processed in an effective time, by adopting the calculation mode, the data synchronization flow can be dynamically optimized, the storage and bandwidth resources can be reasonably distributed, the timeliness and the usability of the data are improved, and particularly in the fields of finance, medical treatment, online transaction and the like, the accuracy and the usability of the data are ensured, the data survival time is finally obtained for 297.72 hours, and the result is used for screening short survival requirement data in the subsequent step so as to optimize the synchronization priority.
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 high demand data set;
The data which need to be preferentially synchronized is identified by setting a threshold value of data request frequency and survival time, taking practical application of the telecommunication industry as an example, if the set request frequency threshold value is once every minute and the survival time threshold value is not more than 24 hours, then the data which meets the conditions is regarded as high priority, the data comprises user information of real-time communication record or high-frequency update, the screening mechanism ensures that the most urgent and critical data needs can be preferentially processed, thereby improving the real-time performance and user satisfaction of the service, generating a short-survival high-demand data set, and the data is used for subsequent synchronous priority adjustment to ensure the rapid processing and updating of the critical data.
S413, based on the short survival high-demand data set, adjusting the synchronous priority according to the request frequency and the survival time sequence, and acquiring a synchronous data survival time scheduling parameter;
The priority of data synchronization is adjusted, and the data synchronization sequence is reordered 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 are given higher synchronization priority due to frequent change and great influence on user decision, resources can be more effectively allocated through the priority adjustment, the user is ensured to acquire the latest information when shopping decision is made, the data flow efficiency is optimized, the user experience of the platform is enhanced, the synchronous data survival time scheduling parameters are obtained, and the parameters are used for further optimizing the whole data synchronization so as to adapt to real-time requirements of different data types, and therefore the aim of improving the overall performance is achieved.
Referring to fig. 6, the steps for acquiring the adjusted cross-platform synchronization resource specifically include:
S511, based on the synchronous data survival time scheduling parameters, counting the ratio of the data survival time to the synchronous time consumption, screening a data set with the survival time lower than a target threshold value, extracting a synchronous scheduling criterion, and acquiring a short-time data synchronous optimization criterion;
The process of counting the ratio of the survival time to the time consumption of the synchronization starts from collecting the historical execution data of the synchronization tasks, including the start time and the end time of each task, so as to calculate the survival time and the time consumption of each task, the process is typically applied to the synchronization task management of a data center, the ratio of the time consumption of the synchronization to the time consumption of the data with extremely short survival time, such as temporary files or log information, is particularly concerned, if the ratio is lower than a certain set threshold, such as 0.5, the ratio means that the data is hardly effectively utilized before the data is consumed, so that the synchronization strategy needs to be adjusted to optimize the resource utilization efficiency, and through such analysis and calculation, the scheduling rule of the short survival data needing to be preferentially synchronized can be extracted, so as to obtain a short-time data synchronization optimization criterion, and the criterion directly influences the strategy and the resource allocation of the data synchronization, so that the data processing efficiency is improved.
S512, invoking a short-time data synchronization optimization criterion, extracting a resource scheduling parameter, and adopting a formula according to the ratio of the survival time to the synchronization time consumption:
;
Calculating a resource allocation adjustment value, and adjusting synchronous scheduling data to obtain synchronous resource scheduling optimization parameters;
Wherein, Representing the resource allocation adjustment value(s),Representing the time-to-live of the synchronized data,Representing a time-to-live threshold value,Representing the time-consuming time of the current synchronization task,Representing the average time-consuming of the sync task,Representing the synchronous schedule adjustment factor(s),Representing the maximum amount of allocable resources,Representing the amount of currently available resources;
Firstly, key parameters such as survival time, synchronization time consumption, resource availability and the like of synchronous data are required to be defined, the parameters are obtained through monitoring and statistics of historical data, for example, in a cross-platform synchronization scene of a data center, the survival time of certain data can be obtained through log analysis For 10 hours, this value represents the length of time the data has been generated until cleaned or covered, and the time to live thresholdSet to 8 hours, representing a set short lived data criterion, if the data's survival time is below the threshold, it requires a higher priority synchronization policy, which is time consuming to synchronize the dataFor 2 hours, the average synchronization calculated is time-consumingFor 1.5 hours, the value is calculated by historical execution time average value of a plurality of data tasks, and the parameter of the resource management part comprises the maximum resource allocation amountCurrent available resource amount of 1000 units800 Units, simultaneously and synchronously scheduling adjustment coefficientsSetting the resource allocation policy to be 0.3 for adjusting the resource allocation policy under different conditions;
the parameters are substituted into the formula: ;
calculating the results of each part, firstly calculating the difference between the survival time and the threshold value Recalculating the difference between the synchronization time and the average timeTaking the square root of it to obtainThen calculate the first partial result asRe-computing a second partial resource adjustment term;
Finally, calculating a resource allocation adjustment value:;
The value indicates that about 61.414 units of resources are required to be additionally added to optimize the short-lived synchronous task under the current synchronous environment, the data synchronous efficiency is ensured to be maximized, and a synchronous scheduling strategy is adjusted by combining a short-time data synchronous optimization criterion to obtain synchronous resource scheduling optimization parameters which are used for the subsequent cross-platform synchronous resource allocation and synchronous task priority adjustment so as to optimize the whole synchronous process.
S513, optimizing the synchronization parameters of the short-survival high-priority data based on the synchronization resource scheduling optimization parameters, adjusting the synchronization execution priority, and outputting the adjusted cross-platform synchronization resources;
In the process of distributing cross-platform synchronous resources and adjusting synchronous execution priority, high-priority data are particularly concerned, for example, the timely synchronization of the data is important for transaction data in the financial industry, because transaction decision and risk management are influenced, the data can be ensured to be quickly and accurately synchronized in a cross-platform manner by optimizing scheduling parameters, so that the timeliness and the integrity of the data are ensured, meanwhile, the excessive occupation and the waste of resources are avoided, the adjusted cross-platform synchronous resources are output, the efficiency and the response speed of the whole data synchronous architecture are directly influenced, and the overall data processing capacity and the stability are improved.
The cross-platform communication sharing synchronization system is used for executing the cross-platform communication sharing synchronization method, and the system comprises the following steps:
The cross-equipment state conflict detection module extracts a multi-terminal equipment state change event stream based on a cross-platform communication sharing synchronization request timestamp sequence, calculates timestamp difference in a time window, screens repeated changes in a short period, adjusts the time window, applies synchronization buffering and generates a state change conflict detection result;
the change frequency regulation and control module calculates the change frequency of the state of the multi-terminal equipment based on the state change conflict detection result, compares the threshold value, screens the super-threshold state, adjusts the synchronous priority, applies synchronous buffering and obtains the state change conflict optimization parameter;
The synchronous path dynamic optimization module extracts a starting position mark of a cross-platform data exchange path based on state change conflict optimization parameters, matches synchronous path information, records data hops, screens high-delay paths, optimizes data hopping rules among nodes, adjusts synchronous paths and generates synchronous path processing results;
the data survival time scheduling module identifies the survival time of the cross-platform data packet based on the synchronous path processing result, screens short survival demand data, adjusts the synchronous priority, rearranges the low-priority data synchronous queue and acquires the synchronous data survival time scheduling parameter;
And the synchronous resource optimization configuration module calculates the ratio of the data survival time to the synchronous time consumption based on the synchronous data survival time scheduling parameter, optimizes the synchronous process of the short-survival high-priority data, and obtains the adjusted cross-platform synchronous resource.
The present invention is not limited to the above embodiments, and any equivalent embodiments which can be changed or modified by the technical disclosure described above can be applied to other fields, but any simple modification, equivalent changes and modification made to the above embodiments according to the technical matter of the present invention will still fall within the scope of the technical disclosure.

Claims (8)

1.一种跨平台通信共享同步方法,其特征在于,包括以下步骤:1. A cross-platform communication sharing synchronization method, characterized in that it includes the following steps: S1:基于跨平台通信共享同步请求时间戳序列,提取跨设备状态变更事件流,对比时间窗口时间戳差值,施加同步缓冲调整,调整时间窗口大小,获取状态变更冲突检测结果;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:根据所述状态变更冲突检测结果,识别状态变更频次,对比状态变更阈值,筛选超出阈值状态,调整同步优先级,施加同步缓冲,获取状态变更冲突优化参数;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:基于所述状态变更冲突优化参数,提取数据起始位置标识,匹配同步路径信息,合并同类路径数据,优化数据传输方式,减少冗余同步,获取同步路径处理结果;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:调用所述同步路径处理结果,计算数据存活时间,筛选短存活需求数据,调整同步优先级,调整低优先级数据同步,获取同步数据存活时间调度参数;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:基于所述同步数据存活时间调度参数,统计数据存活时间与同步耗时比值,提取资源调度参数调整同步调度规则,优化短存活数据的同步优先级,输出调整后跨平台同步资源。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.根据权利要求1所述的跨平台通信共享同步方法,其特征在于,所述状态变更冲突检测结果包括时间窗口的时间戳差值、短周期内同一状态的多次变更请求筛选结果、排序生效状态、同步缓冲调整参数和时间窗口大小调整参数,所述状态变更冲突优化参数包括状态变更频次、状态变更阈值、超出阈值状态、同步优先级调整参数和同步缓冲参数,所述同步路径处理结果包括数据起始位置标识、同步路径信息、数据跳数信息、关键路径节点、同类路径数据合并结果、非最优路径数据筛选结果、同步路径调整参数、数据传输方式优化参数和冗余同步减少参数,所述同步数据存活时间调度参数包括数据存活时间、同步耗时比值、资源调度参数、同步调度规则调整参数和短存活高优先级数据同步参数,所述调整后跨平台同步资源包括同步资源优化方式、同步优先级调整参数、低优先级数据同步调整参数和同步数据存活时间优化参数。2. The cross-platform communication sharing synchronization method according to claim 1 is characterized in that the state change conflict detection result includes the timestamp difference of the time window, the screening result of multiple change requests of the same state in 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.根据权利要求1所述的跨平台通信共享同步方法,其特征在于,所述状态变更冲突检测结果的获取步骤具体为:3. The cross-platform communication sharing synchronization method according to claim 1, characterized in that the step of obtaining the state change conflict detection result is specifically: S111:基于跨平台通信共享同步请求时间戳序列,提取跨设备状态变更事件流,计算相邻时间戳时间差值,筛选短周期内同一状态的多次变更请求,得到短周期状态变更筛选结果;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:基于所述短周期状态变更筛选结果,按照时间戳顺序对筛选的状态变更请求进行排序,计算相邻状态变更的时间差值,对生效状态进行排序,得到状态变更排序结果;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:基于所述状态变更排序结果,施加同步缓冲调整,调整时间窗口大小,分析状态变更冲突情况,采用公式: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; 其中,代表状态变更冲突检测数值,代表第i次状态变更的生效状态值,代表第i-1次状态变更的生效状态值,代表第i次状态变更的时间戳间隔,代表总状态变更次数。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.根据权利要求3所述的跨平台通信共享同步方法,其特征在于,所述状态变更冲突优化参数的获取步骤具体为:4. The cross-platform communication sharing synchronization method according to claim 3, characterized in that the step of obtaining the state change conflict optimization parameter is specifically: S211:根据所述状态变更冲突检测结果,统计状态变更的发生次数,分析变更幅度,筛选超出状态变更阈值的项,得到超出阈值状态;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:调用所述超出阈值状态,分析在差异化设备间的同步优先级,根据冲突程度调整优先级,得到调整后的同步优先级;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:基于所述调整后的同步优先级,分析同步时延,引入同步缓冲参数,采用公式: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; 其中,代表状态变更冲突优化参数,代表状态变更频次,代表状态变更阈值,代表第j个状态变更的时延量,代表第j个状态变更的同步权重,代表超出阈值状态的总数,代表同步缓冲时间,代表同步优先级调整量。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.根据权利要求4所述的跨平台通信共享同步方法,其特征在于,所述同步路径处理结果的获取步骤具体为:5. The cross-platform communication sharing synchronization method according to claim 4, characterized in that the step of obtaining the synchronization path processing result is specifically: S311:基于所述状态变更冲突优化参数,提取数据起始位置标识,调用匹配同步路径信息,识别跳数信息,筛选关键路径节点,获取同步路径偏移量;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:根据所述同步路径偏移量,合并路径数据,筛选非最优路径数据,计算冗余比率,调整同步路径,获取优化同步路径数据;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:基于所述优化同步路径数据,优化数据传输方式,减少冗余量,调整路径,采用公式: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.根据权利要求5所述的跨平台通信共享同步方法,其特征在于,所述同步数据存活时间调度参数的获取步骤具体为:6. The cross-platform communication sharing synchronization method according to claim 5, characterized in that the step of obtaining the synchronization data survival time scheduling parameter is specifically: S411:调用所述同步路径处理结果,提取数据同步起始时间、当前时间、数据更新频率,分析时间衰减率、生命周期占比、数据保留比率,采用公式: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:调用所述数据存活时间,筛选存活时间短且数据请求频率高的数据,识别需求强度因子,获取短存活高需求数据集合;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:基于所述短存活高需求数据集合,依据请求频率和存活时间排序,调整同步优先级,获取同步数据存活时间调度参数。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.根据权利要求6所述的跨平台通信共享同步方法,其特征在于,所述调整后跨平台同步资源的获取步骤具体为:7. The cross-platform communication sharing and synchronization method according to claim 6, characterized in that the step of acquiring the adjusted cross-platform synchronization resource is specifically: S511:基于所述同步数据存活时间调度参数,统计数据存活时间与同步耗时比值,筛选存活时间低于目标阈值的数据集合,提取同步调度准则,获取短时数据同步优化准则;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:调用所述短时数据同步优化准则,提取资源调度参数,依据存活时间与同步耗时比值,采用公式: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:基于所述同步资源调度优化参数,优化短存活高优先级数据的同步参数,调整同步执行优先级,输出调整后跨平台同步资源。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.一种跨平台通信共享同步系统,其特征在于,根据权利要求1-7任一项所述的跨平台通信共享同步方法,所述系统包括:8. A cross-platform communication sharing synchronization system, characterized in that the cross-platform communication sharing synchronization method according to any one of claims 1 to 7, the system comprises: 跨设备状态冲突检测模块基于跨平台通信共享同步请求时间戳序列,提取多终端设备状态变更事件流,计算时间窗口内的时间戳差异,筛选短周期内重复变更,调整时间窗口,施加同步缓冲,生成状态变更冲突检测结果;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.
CN202510424590.9A 2025-04-07 2025-04-07 Cross-platform communication sharing synchronization method and system Active CN119946076B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510424590.9A CN119946076B (en) 2025-04-07 2025-04-07 Cross-platform communication sharing synchronization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510424590.9A CN119946076B (en) 2025-04-07 2025-04-07 Cross-platform communication sharing synchronization method and system

Publications (2)

Publication Number Publication Date
CN119946076A true CN119946076A (en) 2025-05-06
CN119946076B CN119946076B (en) 2025-07-08

Family

ID=95549000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510424590.9A Active CN119946076B (en) 2025-04-07 2025-04-07 Cross-platform communication sharing synchronization method and system

Country Status (1)

Country Link
CN (1) CN119946076B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120186230A (en) * 2025-05-21 2025-06-20 哈尔滨工业大学(深圳)(哈尔滨工业大学深圳科技创新研究院) Cache optimization method, device and storage medium based on traffic behavior characteristics

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130028112A1 (en) * 2011-07-26 2013-01-31 Hitachi, Ltd Information distribution system and information management device
CN114900367A (en) * 2022-05-25 2022-08-12 东南大学 Sharing strategy verification and conflict detection method based on priority dynamic adjustment
CN119342064A (en) * 2024-12-20 2025-01-21 陕西易创鸿城电子科技有限公司 A cross-platform electronic communication synchronization system
CN119696850A (en) * 2024-12-05 2025-03-25 国网福建省电力有限公司信息通信分公司 Distributed multi-mode data cross-trust domain data sharing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130028112A1 (en) * 2011-07-26 2013-01-31 Hitachi, Ltd Information distribution system and information management device
CN114900367A (en) * 2022-05-25 2022-08-12 东南大学 Sharing strategy verification and conflict detection method based on priority dynamic adjustment
CN119696850A (en) * 2024-12-05 2025-03-25 国网福建省电力有限公司信息通信分公司 Distributed multi-mode data cross-trust domain data sharing method and system
CN119342064A (en) * 2024-12-20 2025-01-21 陕西易创鸿城电子科技有限公司 A cross-platform electronic communication synchronization system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄晓辉 等: "EasiRCC:面向智能家居的规则匹配与冲突消除方法", 《计算机研究与发展》, 15 December 2017 (2017-12-15), pages 2711 - 2720 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120186230A (en) * 2025-05-21 2025-06-20 哈尔滨工业大学(深圳)(哈尔滨工业大学深圳科技创新研究院) Cache optimization method, device and storage medium based on traffic behavior characteristics
CN120186230B (en) * 2025-05-21 2025-07-29 哈尔滨工业大学(深圳)(哈尔滨工业大学深圳科技创新研究院) Cache optimization method, equipment and storage medium based on flow behavior characteristics

Also Published As

Publication number Publication date
CN119946076B (en) 2025-07-08

Similar Documents

Publication Publication Date Title
CN119946076B (en) Cross-platform communication sharing synchronization method and system
CN118590503B (en) Multi-source data synchronization processing system and method
CN112162865B (en) Scheduling method and device of server and server
CN110784929B (en) Access resource allocation method, device, equipment and system
CN119854295B (en) Internet of things data processing method and system based on cloud platform
CN119835280B (en) Data synchronization method and system of communication software
CN120104357B (en) Cloud environment GPU resource dynamic scheduling method
CN113760640A (en) Monitoring log processing method, device, device and storage medium
CN119342064A (en) A cross-platform electronic communication synchronization system
CN119484230B (en) Distributed service intelligent master selection method and system based on dual-engine collaboration
CN118524108B (en) Partition block chain transaction allocation method based on WPR (fuzzy graph) algorithm
CN119854317A (en) Cloud-based data synchronization method and system
CN118890361A (en) A data synchronization method, device, medium and equipment across a multi-level network structure
CN119561910A (en) Metaverse-based information transmission method, robot and group robot system
CN118101411A (en) Event-driven cross-channel data synchronization method and system
CN110399095A (en) A kind of statistical method and device of memory space
CN119996634B (en) A cloud-based camera remote access system
CN120499197B (en) Data processing method and system based on cloud computing
CN117808602B (en) Hot account billing method and related device based on sub-account expansion
CN119172401B (en) Cloud-based data synchronization system
LU508576B1 (en) A real-time update management system for measuring control points based on digital campus
CN117194172B (en) Network card power supply control method and related device
CN120238461B (en) Link quality assessment method based on test data fusion statistics
CN120086098B (en) File storage real-time monitoring method and system
CN120215887A (en) A software development and design information publishing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant