A method and system for data synchronization based on multi-dimensional data
By collecting the frequency and amplitude of data changes from the coolant flow meter, and combining this with the real-time transmission rate and storage capacity, a priority synchronization mechanism was set up to solve the problems of synchronization accuracy and flexibility in multi-dimensional data synchronization, thus optimizing data transmission efficiency and accuracy.
Patent Information
- Application Number
- CN202510779867.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-12
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2045-06-12
AI Technical Summary
Existing data synchronization methods lack support for synchronization consistency in multidimensional data structures with correlation, dynamism, and multi-source heterogeneous environments, resulting in low synchronization accuracy and poor flexibility, making it difficult to meet the data consistency and collaboration requirements across networks and platforms.
By collecting the frequency of changes in coolant flow rate and the amplitude of flow fluctuations, the synchronization coefficient of the flow data is calculated. Combined with the real-time transmission rate and storage capacity margin, a priority synchronization mechanism is set to optimize data transmission efficiency. A multi-dimensional data synchronization system is used for data synchronization.
It improves the efficiency and accuracy of data synchronization in isolated internal and external network environments, reduces the analysis cost of data conflict identification, and enables flexible synchronization triggering conditions.
Smart Images

Figure CN120499195B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing and communication systems, and more particularly, to a multi-dimensional data-based data synchronization method and system. BACKGROUND
[0002] Data synchronization technology involves various methods and devices in synchronization systems for ensuring efficient and accurate data interaction in an internal and external network isolation environment. The combination of these technologies provides basic support for the operation of local area networks and helps to improve the security and efficiency of local area network operations. In the prior art, data synchronization methods mainly rely on specific message-driven mechanisms or single-dimensional data processing methods, which have certain limitations in supporting multi-dimensional data synchronization in complex scenarios.
[0003] The prior art has the following disadvantages:
[0004] Currently, existing data synchronization methods focus on one-to-one synchronization between devices or centralized node identification mechanisms, and lack comprehensive consideration of the correlation, dynamics, and synchronization consistency in multi-dimensional data structures in a multi-source heterogeneous environment, resulting in low synchronization accuracy, poor flexibility, and low conflict resolution efficiency in complex business scenarios, making it difficult to meet the data consistency collaboration needs across networks and platforms. Therefore, a multi-dimensional data-based data synchronization method and system are proposed.
[0005] The above information disclosed in the background section is only used to enhance the understanding of the background of the present disclosure, and therefore it can include information that does not constitute prior art known to those of ordinary skill in the art. SUMMARY
[0006] In order to overcome the above-mentioned defects of the prior art, the embodiments of the present application provide a multi-dimensional data-based data synchronization method and system, which analyzes the multi-dimensional data synchronization requirements between the local area network and the external network, combines the dynamic change characteristics in the cooling fluid flow monitoring scene, calculates the synchronization priority of the flow data, and optimizes the data transmission efficiency in the internal and external network isolation environment, to solve the problems of insufficient multi-dimensional data processing capability, low conflict identification efficiency, and poor flexibility of synchronization trigger conditions mentioned in the background art.
[0007] To achieve the above-mentioned purpose, the present application provides the following technical scheme, a multi-dimensional data-based data synchronization method, comprising the following steps:
[0008] Step S1: In the local area network and external Internet environment, the data change frequency and flow fluctuation amplitude of the cooling fluid flowmeter are collected, and the weight of the flow data is calculated accordingly;
[0009] Step S2: Obtain the real-time transmission rate of the coolant flow meter, calculate the synchronization coefficient of the current flow data in combination with the flow data weight, detect the deviation of the data packet from the default synchronization queue, evaluate the data synchronization safety in combination with the synchronization coefficient and calculate the safety coefficient;
[0010] Step S3: Real-time monitor the storage capacity margin of the coolant flow meter, determine the buffer adjustment capability, judge whether to enter the priority synchronization mechanism in combination with the synchronization safety and the buffer adjustment capability, and detect the working state and data priority level of the current coolant flow meter after the priority synchronization mechanism;
[0011] Step S4: Set the synchronization increment based on the working state and the data priority level, calculate the adjustment capability coefficient in combination with the storage capacity margin, the buffer adjustment capability and the synchronization increment, and calculate the final synchronization rate in combination with the synchronization safety coefficient.
[0012] In a preferred embodiment, in step S1, the state of the coolant flow meter is evaluated by a preset time stamp, the time interval of adjacent time stamps is taken as the analysis time, and the data change frequency and flow fluctuation amplitude are collected within the analysis time by the frequency sensor and the fluctuation detector built in the flow meter;
[0013] When the coolant flow meter is running, the data change frequency is calculated by using the collected data change frequency of each analysis time;
[0014] When collecting the flow fluctuation amplitude, N detection points are set within the analysis time, the flow value of the coolant flow meter is detected at each detection point, and the deviation of the current flow value from the default flow value is recorded.
[0015] In a preferred embodiment, in step S1, the average value of the recorded data change frequency collected within the analysis time is taken as the data change standard, and when a time stamp of an analysis time end is passed, the ratio of the data change frequency collected between the current time stamp and the adjacent previous time stamp to the data change standard is taken as the data change frequency within the analysis time corresponding to the current time stamp;
[0016] The average value of the flow value deviation recorded at each detection point is taken as the flow fluctuation amplitude of the coolant flow meter within the analysis time;
[0017] The data change frequency and the flow fluctuation amplitude within the analysis time between the current time stamp and the adjacent previous time stamp are summed to obtain the flow data weight of the coolant flow meter at the current time stamp.
[0018] In a preferred embodiment, in step S2, the real-time transmission rate of the coolant flow meter in the analysis time is detected according to the preset N detection points, and the average value of the transmission rate is calculated as the real-time transmission rate between the current timestamp and the adjacent previous timestamp;
[0019] The real-time transmission rate of the coolant flow meter at each timestamp is recorded and combined into a transmission rate data set, and the real-time transmission rate at the current timestamp is standardized according to the transmission rate data set to obtain a transmission rate value at the current timestamp, and the product of the transmission rate value at the current timestamp and the flow data weight is taken as a synchronization coefficient;
[0020] The deviation of the flow meter data packet from the default synchronization queue, i.e. the distance difference between the flow meter data packet and the default queue position, is detected in the analysis time, and the maximum distance difference between the flow meter data packet and the default queue is recorded as an alternative deviation amount whenever the flow meter data packet deviates from the default queue. In the analysis time, the maximum alternative deviation amount is selected as the deviation amount of the coolant flow meter data packet from the default synchronization queue, and the deviation amount is standardized to obtain a deviation value at the current timestamp;
[0021] The synchronization safety is analyzed and a safety coefficient is calculated by using a logistic regression algorithm to synthesize the synchronization coefficient and the deviation value at the current timestamp.
[0022] In a preferred embodiment, in step S2, the safety coefficient is calculated by using a logistic regression algorithm formula to synthesize the synchronization coefficient and the deviation value at the current timestamp: A = e^(-z);
[0023] Wherein, A is the calculated safety coefficient, e is the natural base, and z is the sum of the inverse of the synchronization coefficient and the deviation value.
[0024] In a preferred embodiment, in step S3, the storage capacity of the coolant flow meter is monitored in real time, the ratio of the storage capacity at the current timestamp to the total storage capacity is calculated as a storage remaining coefficient, and the ratio of the storage capacity to the total storage capacity is compared with a preset storage threshold value;
[0025] If the storage remaining coefficient of the coolant flow meter exceeds the preset storage threshold value at the current timestamp, it is judged that the buffer adjustment capability of the flow data is strong;
[0026] On the contrary, it is judged that the buffer adjustment capability of the flow data is weak;
[0027] The rule for judging whether to enter the priority synchronization mechanism is: at the current timestamp, if the data synchronization safety of the coolant flow meter is low and the buffer adjustment capability of the flow data is strong, the priority synchronization mechanism is performed.
[0028] In a preferred embodiment, in step S4, the data priority level is divided into a low level and a high level, and the synchronous increment is set according to the working state of the current coolant flow meter and the data priority level, and the specific rules are as follows:
[0029] Rule 1: the working state of the current coolant flow meter is normal and the data priority level is high, then the synchronous increment of the current timestamp flow data is A;
[0030] Rule 2: the working state of the current coolant flow meter is normal and the data priority level is low, then the synchronous increment of the current timestamp flow data is B;
[0031] Rule 3: the working state of the current coolant flow meter is abnormal and the data priority level is high, then the synchronous increment of the current timestamp flow data is C;
[0032] Rule 4: the working state of the current coolant flow meter is abnormal and the data priority level is low, then the synchronous increment of the current timestamp flow data is D;
[0033] Wherein, A, B, C, D are respectively four preset synchronous increment values of different sizes, and the values are sorted in descending order according to the alphabetical order.
[0034] In a preferred embodiment, in step S4, the maximum value of the transmission rate of the coolant flow meter is recorded within the analysis time, and the transmission rate coefficient of the coolant flow meter at the current timestamp is obtained by dividing the transmission rate of the coolant flow meter detected at the current timestamp by the maximum value of the transmission rate recorded within the analysis time;
[0035] The adjustment capability coefficient of the flow data is calculated by combining the transmission rate coefficient of the coolant flow meter at the current timestamp, the storage remaining coefficient and the synchronous increment: T = Ya-Vt,
[0036] Wherein, T is the adjustment capability coefficient of the flow data at the current timestamp, Y is the storage remaining coefficient, V is the transmission rate coefficient of the coolant flow meter at the current timestamp, t is the synchronous increment, and a is a preset storage remaining coefficient adjustment parameter;
[0037] The flow data synchronization rate at the current timestamp is calculated according to the safety coefficient of the coolant flow meter and the adjustment capability coefficient, and the formula is: S = T / (1+A),
[0038] Wherein, S is the flow data synchronization rate, T is the adjustment capability coefficient of the flow data at the current timestamp, and A is the safety coefficient of the coolant flow meter at the current timestamp.
[0039] A data synchronization system based on multidimensional data comprises a data acquisition module, a security analysis module, a priority synchronization judgment module and a synchronization rate calculation module.
[0040] The data acquisition module is used for acquiring data change frequency, flow fluctuation amplitude, real-time transmission rate, working state and data priority level of the coolant flow meter, and real-time detecting storage capacity margin and transmission rate of the coolant flow meter.
[0041] The security analysis module calculates a synchronization coefficient of current flow data according to real-time transmission rate, data change frequency and flow fluctuation amplitude of the coolant flow meter, and analyzes data synchronization security according to the synchronization coefficient.
[0042] The priority synchronization judgment module judges whether to perform a priority synchronization mechanism according to data synchronization security and storage capacity margin of the coolant flow meter.
[0043] The synchronization rate calculation module is used for setting a synchronization increment to calculate adjustment capacity of current flow data, calculating flow data synchronization rate according to the data synchronization security coefficient and adjustment capacity, and accelerating flow data synchronization.
[0044] Technical effects and advantages of the present application:
[0045] The present application detects the coolant flow meter under the environment of local area network and Internet, acquires data change frequency and flow fluctuation amplitude of the flow meter, calculates a synchronization coefficient of flow data according to real-time transmission rate of the flow meter, confirms deviation amount when the flow meter data packet deviates from the default synchronization queue, analyzes data synchronization security according to the synchronization coefficient of flow data and deviation amount, and calculates a security coefficient. BRIEF DESCRIPTION OF DRAWINGS
[0046] Figure 1 The present application is a flowchart of a data synchronization method based on multidimensional data.
[0047] Figure 2It is a schematic diagram of the acquisition process of the data change frequency and the flow fluctuation amplitude of the cooling liquid flow meter in the analysis time in a data synchronization method based on multi-dimensional data.
[0048] Figure 3 It is a schematic diagram of the module structure of a data synchronization system based on multi-dimensional data. DETAILED DESCRIPTION
[0049] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the present application.
[0050] The present application provides a data synchronization method and system based on multi-dimensional data, which is used to solve the problems of low synchronization efficiency, insufficient conflict identification ability and poor flexibility of synchronization trigger condition in the cooling liquid flow monitoring scene under the local area network and Internet environment. The following will combine the accompanying drawings to specifically describe the technical solutions in the embodiments of the present application. Figure 1 to the accompanying drawings Figure 3 The specific embodiments of the present application will be described in detail.
[0051] Embodiment 1
[0052] As shown in the figure, a data synchronization method based on multi-dimensional data includes the overall process from data acquisition to synchronization rate calculation; Figure 1
[0053] Step S1: In the internal special network and external Internet environment of the local area network system, the data change frequency and the flow fluctuation amplitude of the cooling liquid flow meter are collected, and the weight of the flow data is calculated according to the data change frequency and the flow fluctuation amplitude;
[0054] Step S2: The real-time transmission rate of the cooling liquid flow meter is obtained, the synchronization coefficient of the current flow data is calculated by comprehensively considering the real-time transmission rate and the flow data weight, the deviation amount of the flow meter data packet from the default synchronization queue is detected, and the data synchronization safety is analyzed and the safety coefficient is calculated in combination with the synchronization coefficient of the current flow data;
[0055] Step S3: The storage capacity margin of the cooling liquid flow meter is monitored in real time, the buffer adjustment ability of the flow data is determined, and it is judged whether to enter the priority synchronization mechanism in combination with the data synchronization safety and the buffer adjustment ability of the flow data; After entering the priority synchronization mechanism, the working state of the current cooling liquid flow meter and the data priority level are detected.
[0056] Step S4: According to the working state of the current coolant flow meter and the data priority level setting, the synchronous increment is set, the storage capacity margin of the current flow meter, the cache adjustment capability and the adjustment capability coefficient of the synchronous increment calculation flow data are comprehensively considered, the data synchronization safety coefficient and the adjustment capability coefficient are comprehensively calculated to calculate the synchronization rate of the flow data.
[0057] In step S1, the data acquisition module collects the data change frequency and flow fluctuation amplitude of the coolant flow meter.
[0058] Specifically, the data acquisition module sets multiple time stamps within the analysis time, and records the state change of the coolant flow meter between each time stamp.
[0059] The analysis time is defined by the time interval of adjacent time stamps, and the frequency sensor and fluctuation monitor built-in the flow meter are used to collect the data change times and flow value deviation within the analysis time.
[0060] As shown in Figure 2 , N detection points are set within the analysis time, each detection point detects the flow value of the coolant flow meter and calculates the deviation of the current flow value from the default flow value, and these deviations are recorded as flow value deviations.
[0061] Subsequently, the data acquisition module takes the average value of the data change times between each time stamp as the data change standard, and calculates the data change frequency between the current time stamp and the adjacent previous time stamp.
[0062] At the same time, the average value of the flow value deviations recorded by each detection point is taken as the flow fluctuation amplitude within the analysis time, and the data change frequency corresponding to the current time stamp and the flow fluctuation amplitude are summed to obtain the flow data weight of the coolant flow meter at the current time stamp.
[0063] In step S2, the safety analysis module calculates the synchronization coefficient of the current flow data according to the real-time transmission rate and the flow data weight, and analyzes the data synchronization safety by detecting the deviation of the flow meter data packet from the default synchronization queue.
[0064] Specifically, the safety analysis module detects the real-time transmission rate of the coolant flow meter within the analysis time, sets N detection points to obtain a transmission rate data set, and calculates the average transmission rate as the real-time transmission rate between the current time stamp and the adjacent previous time stamp.
[0065] After standardizing the real-time transmission rate of each time stamp, the transmission rate value of the current time stamp is obtained, and the value is multiplied by the flow data weight and added as the synchronization coefficient.
[0066] At the same time, the security analysis module detects the deviation of the flow meter data packet from the default synchronization queue within the analysis time, records the maximum distance difference as the alternative deviation amount each time the flow meter data packet deviates from the default queue, and selects the maximum alternative deviation amount within the analysis time as the deviation amount of the coolant flow meter data packet from the default synchronization queue.
[0067] After the deviation amount is standardized, the deviation value of the current timestamp is obtained, and the security coefficient is calculated by comprehensively using the logical regression algorithm and the deviation value.
[0068] The calculation formula of the security coefficient is A=e^(-z), wherein A is the calculated security coefficient, e is the natural base, and z is the sum of the inverse numbers of the synchronization coefficient and the deviation value.
[0069] If the security coefficient calculated by the current timestamp is lower than the preset security threshold, it is judged that the data synchronization security of the coolant flow meter at the current timestamp is high; otherwise, it is judged that the data synchronization security is low.
[0070] In step S3, the priority synchronization judgment module monitors the storage capacity margin of the coolant flow meter in real time, and calculates the storage remaining coefficient according to the ratio of the storage capacity margin to the total storage capacity.
[0071] The priority synchronization judgment module compares the storage remaining coefficient of the current timestamp with the preset storage threshold, and if the storage remaining coefficient exceeds the storage threshold, it is judged that the cache adjustment capability of the flow data is strong.
[0072] Otherwise, it is judged that the cache adjustment capability is weak. The priority synchronization judgment module judges whether to enter the priority synchronization mechanism according to the data synchronization security and the cache adjustment capability.
[0073] The specific rule is: at the current timestamp, if the data synchronization security of the coolant flow meter is low and the cache adjustment capability of the flow data is strong, the priority synchronization mechanism is entered.
[0074] In step S4, the synchronization rate calculation module sets the synchronization increment according to the working state of the coolant flow meter and the data priority level, and calculates the adjustment capability coefficient and the synchronization rate of the flow data.
[0075] The synchronization rate calculation module divides the data priority level into low level and high level, and sets the synchronization increment according to the working state of the current coolant flow meter and the data priority level.
[0076] The specific rules are as follows:
[0077] Rule 1 is that the working state of the current coolant flow meter is normal state and the data priority level is high level, and the synchronization increment of the flow data at the current timestamp is A.
[0078] Rule 2 states that if the current coolant flow meter is in normal working condition and the data priority level is low, then the synchronization increment of the current timestamp flow data is B.
[0079] Rule 3 states that if the current coolant flow meter is in an abnormal state and the data priority level is high, then the synchronization upgrade of the current timestamp flow data is C.
[0080] Rule 4 states that if the current coolant flow meter is in an abnormal state and its data priority level is low, then the synchronization increment of the current timestamp flow data is D.
[0081] A, B, C, and D are four preset synchronous increment values of different sizes, and the values are sorted in alphabetical order from largest to smallest.
[0082] The synchronization rate calculation module records the maximum transmission rate of the coolant flow meter during the analysis time, and divides the transmission rate of the coolant flow meter detected at the current timestamp by the maximum transmission rate recorded during the analysis time to obtain the transmission rate coefficient of the coolant flow meter at the current timestamp.
[0083] Subsequently, the synchronization rate calculation module integrates the transmission rate coefficient, storage capacity coefficient, and adjustment capability coefficient of the current timestamp coolant flow meter as well as the synchronous upgrade calculation flow data.
[0084] Its formula is T = Ya - Vt.
[0085] Where T is the adjustment capability coefficient of the current timestamp flow data, Y is the storage reserve coefficient, V is the transmission rate coefficient of the current timestamp coolant flow meter, t is the synchronous increment, and a is the preset storage reserve coefficient adjustment parameter, which is used to adjust the storage reserve coefficient so that the calculated adjustment capability coefficient is positive and greater than the safety factor of the current timestamp coolant flow meter.
[0086] Finally, the synchronization rate calculation module calculates the flow data synchronization rate of the current timestamp based on the safety factor and adjustment capability factor of the coolant flow meter.
[0087] Its formula is S = T / (1 + A), where,
[0088] S is the flow data synchronization rate, T is the adjustment capability coefficient of the flow data at the current timestamp, and A is the safety factor of the coolant flow meter at the current timestamp.
[0089] like Figure 3 As shown, the flow meter data measurement system of the present invention includes a data acquisition module, a safety analysis module, a priority synchronization judgment module, and a synchronization rate calculation module.
[0090] The data acquisition module is connected with the coolant flow meter, and is used for acquiring data change frequency, flow fluctuation amplitude, real-time transmission rate, working state and data priority level of the coolant flow meter, and detecting storage capacity margin and transmission rate of the coolant flow meter in real time.
[0091] The data acquisition module transmits the acquired data to the safety analysis module, the safety analysis module calculates the synchronization coefficient of current flow data according to the real-time transmission rate, data change frequency and flow fluctuation amplitude of the coolant flow meter, and analyzes the data synchronization safety according to the synchronization coefficient.
[0092] The safety analysis module transmits the analysis result to the priority synchronization judgment module, the priority synchronization judgment module judges whether to perform the priority synchronization mechanism according to the data synchronization safety and the storage capacity margin of the coolant flow meter.
[0093] If the priority synchronization mechanism is entered, the priority synchronization judgment module transmits relevant data to the synchronization rate calculation module, the synchronization rate calculation module is used for setting a synchronization increment and calculating an adjustment ability coefficient of current flow data, and finally calculates the flow data synchronization rate according to the data synchronization safety coefficient and the adjustment ability coefficient, and speeds up the flow data synchronization.
[0094] The coolant flow meter in the intranet and the internet environment of the local area network system is detected, the data change frequency and the flow fluctuation amplitude of the flow meter are acquired, the synchronization coefficient of the flow data is calculated according to the real-time transmission rate of the flow meter, and the deviation amount of the flow meter data packet and the default synchronization queue is analyzed to analyze the data synchronization safety.
[0095] The synchronization safety of current flow meter data is reflected through the safety coefficient, the analysis direction is provided for the priority synchronization, and the analysis cost is reduced.
[0096] The storage capacity margin of the coolant flow meter is monitored in real time to determine the cache adjustment ability of the flow data, and whether the priority synchronization mechanism is entered is judged according to the data synchronization safety and the cache adjustment ability.
[0097] When the priority synchronization mechanism is entered, the working state and the data priority level of the current flow meter are monitored, the synchronization increment is set, the adjustment ability coefficient of the flow data is calculated through the synchronization increment, the flow data synchronization rate of the current state is determined according to the data synchronization safety coefficient, so that the data synchronization efficiency and accuracy under the intranet and extranet isolation environment are optimized.
[0098] In order to better enable the relevant personnel in the technical field to fully understand and implement the present application, the specific implementation principle of the present application is further supplemented in combination with a specific application scenario.
[0099] The cooling liquid flow meter is used for monitoring the cooling liquid flow change in the train running process in the local area network system under the internal network and external network isolation environment.
[0100] In order to ensure the efficiency and accuracy of data synchronization, first of all, the data acquisition module collects the data change frequency and flow fluctuation amplitude of the cooling liquid flow meter.
[0101] As shown in the analysis time, a plurality of detection points are set, each detection point records the actual flow value of the cooling liquid flow meter, and calculates the deviation of the default flow value, and the deviation is stored as the flow value deviation. Figure 2
[0102] The data acquisition module calculates the data change frequency between each timestamp according to the time interval defined by the adjacent timestamp, and obtains the flow data weight combined with the flow fluctuation amplitude.
[0103] This process is completed by the built-in frequency sensor and fluctuation detector, aiming to quantify the dynamic characteristics of the cooling liquid flow meter in a specific time period.
[0104] Subsequently, the safety analysis module calculates the synchronization coefficient of the current flow data according to the real-time transmission rate and flow data weight.
[0105] As shown in the analysis time, a plurality of detection points are set, each detection point records the actual flow value of the cooling liquid flow meter, and calculates the deviation of the default flow value, and the deviation is stored as the flow value deviation. Figure 3 At the same time, by detecting the deviation amount of the flow meter data packet and the default synchronization queue, the maximum alternative deviation amount in the analysis time is recorded, and it is standardized as the deviation value.
[0106] The logistic regression algorithm is used to integrate the synchronization coefficient and the deviation value to calculate the safety coefficient of the current timestamp.
[0107] If the safety coefficient is lower than the preset threshold, it is determined that the data synchronization safety is high;
[0108] On the contrary, it is determined that the data synchronization safety is low. The core of this step is to reflect the consistency of the data packet and the synchronization queue through the deviation amount, so as to identify the potential conflict risk.
[0109] The priority synchronization judgment module monitors the storage capacity margin of the cooling liquid flow meter in real time, and calculates the storage remaining coefficient according to the ratio of the storage capacity margin to the total storage capacity.
[0110] As shown in the analysis time, a plurality of detection points are set, each detection point records the actual flow value of the cooling liquid flow meter, and calculates the deviation of the default flow value, and the deviation is stored as the flow value deviation.
[0111] Figure 3 The priority synchronization judgment module compares the storage remaining coefficient of the current timestamp with the preset storage threshold to judge the cache adjustment ability of the flow data.
[0112] If the storage residual coefficient exceeds the storage threshold, it is considered that the cache adjustment capability is strong;
[0113] On this basis, the priority synchronization judgment module combines data synchronization security and cache adjustment capability to judge whether to enter the priority synchronization mechanism.
[0114] For example, when the data synchronization security of the coolant flow meter is low and the cache adjustment capability is strong, the priority synchronization mechanism is triggered to ensure that critical data can be transmitted preferentially.
[0115] The synchronization rate calculation module sets the synchronization increment according to the working state of the coolant flow meter and the data priority level, and calculates the adjustment capability coefficient and the synchronization rate of the flow data.
[0116] As shown in Figure 3 The synchronization rate calculation module divides the data priority into high and low levels, and sets different synchronization increments according to the working state of the coolant flow meter.
[0117] For example, when the coolant flow meter is in a normal state and the data priority is high, the synchronization increment is set to A;
[0118] And when the coolant flow meter is in an abnormal state and the data priority is low, the synchronization increment is set to D.
[0119] The synchronization rate calculation module also records the maximum transmission rate in the analysis time, and divides the transmission rate of the current timestamp by the maximum value to obtain the transmission rate coefficient.
[0120] By integrating the transmission rate coefficient, the storage residual coefficient, and the synchronization increment, the adjustment capability coefficient T is calculated.
[0121] Finally, based on the adjustment capability coefficient T and the safety coefficient A, the flow data synchronization rate S of the current timestamp is calculated.
[0122] In practical applications, the above method significantly optimizes the data synchronization efficiency in the isolated environment of the internal and external networks.
[0123] For example, when the coolant flow meter monitors that the flow fluctuation amplitude is too large within a certain period of time, the data acquisition module will quickly capture this change, and evaluate the data synchronization security through the safety analysis module.
[0124] If it is found that the data synchronization security is low and the storage capacity is sufficient, the priority synchronization mechanism will be triggered to ensure that critical data is transmitted preferentially to the target network.
[0125] In addition, by setting different synchronization increments, the system can flexibly adjust the synchronization rate according to the working state of the coolant flow meter and the data priority, thereby avoiding transmission delay or failure caused by data conflict.
[0126] To sum up, the present application realizes efficient and accurate data synchronization by collecting, analyzing and processing multi-dimensional data of the coolant flow meter, combining real-time transmission rate, storage capacity margin and working state and other factors.
[0127] Especially in complex scenarios, the present application can effectively cope with multi-dimensional data synchronization requirements, reduce the probability of conflict, and improve the data interaction capability in the LAN system under the internal and external network isolation environment.
[0128] The above formulas are all dimensionless numerical calculations, and the formulas are obtained by software simulation of a large amount of data to obtain a formula of the nearest real situation, and the preset parameters in the formula are set by the person skilled in the art according to the actual situation.
[0129] The above embodiments can be realized by software, hardware, firmware or any combination thereof, in whole or in part. When realized by software, the above embodiments can be realized in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the flow or function described in the embodiments of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. containing one or more available medium collections. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium. The semiconductor medium can be a solid state disk.
[0130] It should be understood that the term "and / or" in this document is merely used to describe associated relationship, and it can mean three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. In addition, the character " / " in this document generally means that the associated objects before and after the " / " are in an "or" relationship, but can also mean an "and / or" relationship, which can be understood according to the context before and after.
[0131] In this application, "at least one" means one or more, and "multiple" means two or more. "At least one of the following" or the like means any combination of the items, including any combination of single or multiple items. For example, at least one of a, b, or c can mean a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be singular or plural.
[0132] It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of the processes should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0133] Those skilled in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0134] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the above-mentioned system, device and unit can be referred to the corresponding process in the foregoing method embodiments, which will not be repeated here.
[0135] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be realized by other ways. For example, the above-described device embodiments are only schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed objects can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0136] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0137] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit.
[0138] The functions, if realized in the form of software functional units and sold or used as independent products, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or the part of the present application that essentially contributes to the prior art or the part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program code storage media.
[0139] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method for data synchronization based on multi-dimensional data, characterized in that: The method comprises the following steps: Step S1: In a local area network and an external Internet environment, the data change frequency and flow fluctuation amplitude of the coolant flow meter are collected, and the weight of the flow data is calculated accordingly; Step S2: The real-time transmission rate of the coolant flow meter is obtained, the synchronization coefficient of the current flow data is calculated in combination with the flow data weight, the deviation of the data packet from the default synchronization queue is detected, the data synchronization safety is evaluated in combination with the synchronization coefficient, and the safety coefficient is calculated; Step S3: The storage capacity of the coolant flow meter is monitored in real time, the buffer adjustment capability is determined, and it is judged whether to enter the priority synchronization mechanism in combination with the synchronization safety and the buffer adjustment capability; the working state and the data priority level of the current coolant flow meter are detected after the priority synchronization mechanism; Step S4: The synchronization increment is set based on the working state and the data priority level, the adjustment capability coefficient is calculated in combination with the storage capacity, the buffer adjustment capability and the synchronization increment, and the final synchronization rate is calculated in combination with the synchronization safety coefficient.
2. The data synchronization method based on multi-dimensional data according to claim 1, wherein: In step S1, the state of the coolant flow meter is evaluated through a preset time stamp, the time interval between adjacent time stamps is taken as the analysis time, and the data change frequency and the flow fluctuation amplitude are collected in the analysis time through the frequency sensor and the fluctuation detector built in the flow meter; When the coolant flow meter is running, the number of data changes in each analysis time is recorded, and the data change frequency is calculated using the collected number of data changes every time the time stamp of the end of an analysis time is reached; When collecting the flow fluctuation amplitude, N detection points are set in the analysis time, the flow value of the coolant flow meter is detected at each detection point, and the deviation of the current flow value from the default flow value is recorded.
3. The data synchronization method based on multi-dimensional data according to claim 2, wherein: In step S1, the average value of the number of data changes collected in the analysis time is taken as the data change standard, and when the time stamp of the end of an analysis time is reached, the ratio of the number of data changes collected between the current time stamp and the adjacent previous time stamp to the data change standard is taken as the data change frequency in the analysis time corresponding to the current time stamp; The average value of the flow value deviation recorded at each detection point is taken as the flow fluctuation amplitude of the coolant flow meter in the analysis time; The data change frequency and the flow fluctuation amplitude in the analysis time between the current time stamp and the adjacent previous time stamp are summed to obtain the flow data weight of the coolant flow meter at the current time stamp.
4. The data synchronization method based on multi-dimensional data according to claim 1, wherein: In step S2, the real-time transmission rate of the coolant flow meter in the analysis time is detected according to the preset N detection points, and the average value of the transmission rate is taken as the real-time transmission rate between the current time stamp and the adjacent previous time stamp. The real-time transmission rate of each timestamp of the coolant flow meter is recorded and combined into a transmission rate data set, the real-time transmission rate of the current timestamp is standardized according to the transmission rate data set to obtain a transmission rate value of the current timestamp, and the product of the transmission rate value of the current timestamp and the flow data weight is taken as a synchronization coefficient; The deviation of the flow meter data packet from the default synchronization queue, that is, the distance difference between the flow meter data packet and the default queue position, is detected within the analysis time, and the maximum distance difference between the flow meter data packet and the default queue is recorded as an alternative deviation amount whenever the flow meter data packet deviates from the default queue. Within the analysis time, the maximum alternative deviation amount is selected as the deviation amount of the coolant flow meter data packet from the default synchronization queue, and the deviation amount is standardized to obtain a deviation value of the current timestamp; The safety coefficient is calculated by comprehensively analyzing the synchronization coefficient and the deviation value of the current timestamp using a logistic regression algorithm.
5. The data synchronization method based on multi-dimensional data according to claim 4, characterized in that: In step S2, the safety coefficient is calculated by comprehensively analyzing the synchronization coefficient and the deviation value of the current timestamp using a logistic regression algorithm formula: A = e^(-z); Wherein, A is the calculated safety coefficient, e is the natural base, and z is the sum of the inverse of the synchronization coefficient and the deviation value.
6. The data synchronization method based on multi-dimensional data according to claim 5, characterized in that: In step S3, the storage capacity of the coolant flow meter is monitored in real time, and the ratio of the storage capacity of the current timestamp to the total storage capacity is calculated as a storage remaining coefficient, and the ratio of the storage capacity to the total storage capacity is compared with the preset storage threshold value; If the storage remaining coefficient of the coolant flow meter exceeds the preset storage threshold value at the current timestamp, it is determined that the buffer adjustment capability of the flow data is strong; Otherwise, it is determined that the buffer adjustment capability of the flow data is weak; The rule for determining whether to enter the priority synchronization mechanism is that, at the current timestamp, if the data synchronization safety of the coolant flow meter is low and the buffer adjustment capability of the flow data is strong, the priority synchronization mechanism is entered.
7. The data synchronization method based on multi-dimensional data according to claim 6, characterized in that: In step S4, the data priority level is divided into low and high levels, and the synchronization increment is set according to the working state of the current coolant flow meter and the data priority level, and the specific rules are as follows: Rule 1: If the working state of the current coolant flow meter is normal and the data priority level is high, the synchronization increment of the flow data at the current timestamp is A; Rule 2: If the working state of the current coolant flow meter is normal and the data priority level is low, the synchronization increment of the flow data at the current timestamp is B; Rule 3: If the working state of the current coolant flow meter is abnormal and the data priority level is high, the synchronization increment of the flow data at the current timestamp is C; Rule 4: the working state of the current coolant flow meter is an abnormal state and the data priority level is a low level, and the synchronization increment of the current timestamp flow data is D; Wherein, A, B, C, D are respectively the numerical values of four preset synchronization increments of different sizes, and the numerical values are sorted in descending order according to alphabetical order.
8. The data synchronization method based on multi-dimensional data according to claim 7, characterized in that: In step S4, the maximum transmission rate of the coolant flow meter in the analysis time is recorded, and the transmission rate coefficient of the coolant flow meter at the current timestamp is obtained by dividing the transmission rate detected at the current timestamp by the maximum transmission rate recorded in the analysis time; The adjustment capability coefficient of the flow data is calculated by comprehensively considering the transmission rate coefficient of the coolant flow meter at the current timestamp, the storage remaining coefficient and the synchronization increment: T=Ya-Vt, Wherein, T is the adjustment capability coefficient of the flow data at the current timestamp, Y is the storage remaining coefficient, V is the transmission rate coefficient of the coolant flow meter at the current timestamp, t is the synchronization increment, and a is the preset storage remaining coefficient adjustment parameter; The flow data synchronization rate at the current timestamp is calculated according to the safety coefficient and the adjustment capability coefficient of the coolant flow meter, and the formula is: S=T / (1+A), Wherein, S is the flow data synchronization rate, T is the adjustment capability coefficient of the flow data at the current timestamp, and A is the safety coefficient of the coolant flow meter at the current timestamp.
9. A data synchronization system based on multidimensional data, for implementing the data synchronization method based on multidimensional data according to any one of claims 1-8, characterized in that: The system comprises a data acquisition module, a safety analysis module, a priority synchronization judgment module and a synchronization rate calculation module. The data acquisition module is used to acquire the data change frequency, flow fluctuation amplitude, real-time transmission rate, working state and data priority level of the coolant flow meter, and to detect the storage capacity and transmission rate of the coolant flow meter in real time. The safety analysis module calculates the synchronization coefficient of the current flow data by comprehensively considering the real-time transmission rate, data change frequency and flow fluctuation amplitude of the coolant flow meter, and analyzes the data synchronization safety according to the synchronization coefficient; The priority synchronization judgment module judges whether to perform the priority synchronization mechanism according to the data synchronization safety and the storage capacity of the coolant flow meter; The synchronization rate calculation module is used to set the synchronization increment to calculate the adjustment capability of the current flow data, and to calculate the flow data synchronization rate by comprehensively considering the data synchronization safety coefficient and the adjustment capability to speed up the flow data synchronization.
Citation Information
Patent Citations
Industrial automation control equipment safety state monitoring method and system
CN118331204A
Method for sharing cybersecurity threat analysis and defensive measures amongst a community
US20190260783A1