CN116760844A - Data synchronization method, device, equipment and storage medium of digital twin model - Google Patents

Data synchronization method, device, equipment and storage medium of digital twin model Download PDF

Info

Publication number
CN116760844A
CN116760844A CN202310833884.8A CN202310833884A CN116760844A CN 116760844 A CN116760844 A CN 116760844A CN 202310833884 A CN202310833884 A CN 202310833884A CN 116760844 A CN116760844 A CN 116760844A
Authority
CN
China
Prior art keywords
data
network element
segment
data segment
synchronized
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.)
Pending
Application number
CN202310833884.8A
Other languages
Chinese (zh)
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.)
China Telecom Technology Innovation Center
China Telecom Corp Ltd
Original Assignee
China Telecom Technology Innovation Center
China Telecom Corp 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 China Telecom Technology Innovation Center, China Telecom Corp Ltd filed Critical China Telecom Technology Innovation Center
Priority to CN202310833884.8A priority Critical patent/CN116760844A/en
Publication of CN116760844A publication Critical patent/CN116760844A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/43Assembling or disassembling of packets, e.g. segmentation and reassembly [SAR]

Abstract

The application relates to a data synchronization method, a data synchronization device, computer equipment and a storage medium of a digital twin model. When the data quantity of the network element data is different from that of the twin data of the digital twin model and the data quantity of the network element data is larger than a preset data quantity threshold, segmenting the network element data and the twin data, obtaining a first abstract result of each first data segment corresponding to the segmented network element data and a second abstract result of each second data segment corresponding to the twin data, determining a first data segment to be synchronized and a second data segment to be synchronized according to a comparison result of the two abstract results, and synchronizing the data of the first data segment to be synchronized and the second data segment to be synchronized. Compared with the traditional synchronization based on the full data, the scheme determines the data segment to be synchronized by comparing the segmentation and the abstract result of the data, and then the synchronization is performed based on the data segment, so that the time spent for the synchronization is reduced, and the real-time performance of the synchronization is improved.

Description

Data synchronization method, device, equipment and storage medium of digital twin model
Technical Field
The present application relates to the field of communication networks, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for synchronizing data of a digital twin model.
Background
The digital twin network is a real-time virtual mapping to 5G physical network entities. To maintain operation of the digital twin network model of 5G communications, it is desirable to maintain consistency of the network element data in the twin network and the physical network. Because network element data in a 5G physical network entity may change at any time, a current method for maintaining data consistency is to periodically collect the full data of the network element to maintain the consistency of the digital twin network and the 5G physical network. However, by full data acquisition comparison, the real-time nature of data synchronization between the digital twin model and the 5G physical network can result.
Therefore, the current data synchronization method of the digital twin model has the defect of low synchronization instantaneity.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data synchronization method, apparatus, computer device, computer readable storage medium, and computer program product for a digital twin model that can improve synchronization instantaneity.
In a first aspect, the present application provides a method for data synchronization of a digital twin model, the method comprising:
acquiring network element data of network element equipment and twin data of a digital twin model corresponding to the network element equipment;
segmenting the network element data and the twin data under the condition that the data volume of the network element data is different from the data volume of the twin data and the data volume of the network element data is larger than a preset data volume threshold value, and obtaining a plurality of first data segments corresponding to the network element data and a plurality of second data segments corresponding to the twin data;
acquiring a first abstract result of each first data segment and a second abstract result of each corresponding second data segment;
and determining a first data segment to be synchronized and a corresponding second data segment to be synchronized according to the comparison result of each first abstract result and the corresponding second abstract result, and carrying out data synchronization on the first data segment to be synchronized and the second data segment to be synchronized.
In one embodiment, after the obtaining the network element data of the network element device, before segmenting the network element data and the twin data, the method further includes:
and sequencing the network element data of the network element equipment according to the data type so as to segment the network element data based on the sequenced network element data.
In one embodiment, the pair of the network element data and the twin data segment comprises:
based on the dichotomy, the network element data and the corresponding twin data are segmented respectively.
In one embodiment, the segmenting the network element data and the twin data to obtain a plurality of first data segments corresponding to the network element data and a plurality of second data segments corresponding to the twin data includes:
acquiring historical data change information of each data in the network element data;
extracting a first change data segment in the network element data according to the historical data change information; the first change data segment represents a data segment with data change information;
determining a second change data segment in the corresponding twin data according to the position of the first change data segment in the network element data;
and determining a plurality of first data segments according to the first change data segments, and determining a plurality of second data segments according to the second change data segments.
In one embodiment, the determining the first data segment to be synchronized and the corresponding second data segment to be synchronized according to the comparison result of each first summary result and each corresponding second summary result includes:
And aiming at each first data segment and the corresponding second data segment, if the comparison result is that the first summary result of the first data segment is different from the second summary result of the corresponding second data segment, and the data volume of the first data segment and the data volume of the corresponding second data segment are smaller than a preset data volume threshold value, determining that the first data segment is the first data segment to be synchronized, and determining that the second data segment is the second data segment to be synchronized.
In one embodiment, the determining the first data segment to be synchronized and the corresponding second data segment to be synchronized according to the comparison result of each first summary result and each corresponding second summary result includes:
and for each first data segment and the corresponding second data segment, if the comparison result is that the first summary result of the first data segment is different from the second summary result of the corresponding second data segment, and the data quantity of the first data segment or the data quantity of the corresponding second data segment is greater than or equal to a preset data quantity threshold value, segmenting the first data segment and the corresponding second data segment again to obtain a new plurality of first data segments and a new plurality of second data segments, and returning to the step of acquiring the first summary result of each first data segment and the second summary result of each corresponding second data segment.
In one embodiment, after obtaining the network element data of the network element device and the twin data of the digital twin model corresponding to the network element device, the method further includes:
and if the data quantity of the network element data and the data quantity of the corresponding twin data are smaller than a preset data quantity threshold, carrying out data synchronization on the network element data and the twin data according to the difference data of the network element data and the twin data.
In one embodiment, the performing data synchronization on the first data segment to be synchronized and the second data segment to be synchronized includes:
if the first data segment to be synchronized is smaller than a preset data quantity threshold value, acquiring difference data of the first data segment to be synchronized and the corresponding second data segment to be synchronized;
and updating the second data segment to be synchronized according to the difference data to obtain a synchronization result.
In one embodiment, after the obtaining the first summary result of each first data segment and the second summary result of each corresponding second data segment, the method further includes:
and determining that the first data segment and the corresponding second data segment are synchronous if the first summary result of the first data segment is identical to the second summary result of the corresponding second data segment aiming at each first data segment and the corresponding second data segment.
In a second aspect, the present application provides a data synchronization apparatus for a digital twin model, the apparatus comprising:
the acquisition module is used for acquiring network element data of network element equipment and twin data of a digital twin model corresponding to the network element equipment;
the segmentation module is used for segmenting the network element data and the twin data to obtain a plurality of first data segments corresponding to the network element data and a plurality of second data segments corresponding to the twin data under the condition that the data volume of the network element data is different from the data volume of the twin data and the data volume of the network element data is larger than a preset data volume threshold;
the summary module is used for acquiring a first summary result of each first data segment and a second summary result of each corresponding second data segment;
and the synchronization module is used for determining a first data segment to be synchronized and a corresponding second data segment to be synchronized according to the comparison result of each first abstract result and the corresponding second abstract result, and carrying out data synchronization on the first data segment to be synchronized and the second data segment to be synchronized.
In a third aspect, the present application provides a computer device comprising a memory storing a computer program and a processor implementing the steps of the method described above when the processor executes the computer program.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method described above.
In a fifth aspect, the application provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method described above.
According to the data synchronization method, the device, the computer equipment, the storage medium and the computer program product of the digital twin model, when the data amount of the network element data is different from that of the twin data of the digital twin model and is larger than the preset data amount threshold, the network element data and the twin data are segmented, a first abstract result of each first data segment corresponding to the segmented network element data and a second abstract result of each second data segment corresponding to the twin data are obtained, and according to the comparison result of the two abstract results, the first data segment to be synchronized and the second data segment to be synchronized are determined, and the first data segment to be synchronized and the second data segment to be synchronized are subjected to data synchronization. Compared with the traditional synchronization based on the full data, the scheme determines the data segment to be synchronized by comparing the segmentation and the abstract result of the data, and then the synchronization is performed based on the data segment, so that the time spent for the synchronization is reduced, and the real-time performance of the synchronization is improved.
Drawings
FIG. 1 is an application environment diagram of a data synchronization method of a digital twin model in one embodiment;
FIG. 2 is a flow diagram of a method of data synchronization for a digital twin model in one embodiment;
FIG. 3 is a flow chart of a method of data synchronization of a digital twin model according to another embodiment;
FIG. 4 is a block diagram of a data synchronization device of a digital twin model in one embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application 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 application 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 application.
The data synchronization method of the digital twin model provided by the embodiment of the application can be applied to an application environment shown in fig. 1. The terminal is connected with the network element equipment and the digital twin model through the network respectively. The terminal may obtain network element data of the network element device and twin data of the digital twin model. The terminal determines whether the network element data and the twin data need to be segmented or not through counting the data quantity of the network element data and the twin data, and further the terminal determines the data segment needing to be synchronized based on the segmented data segment through comparing the abstract result of the data segment of the network element data and the data segment of the twin data, and further synchronizes the network element data and the twin data. The terminal 102 may be, but is not limited to, a variety of personal computers, notebook computers, and tablet computers.
In one embodiment, as shown in fig. 2, a data synchronization method of a digital twin model is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
step S202, obtaining network element data of the network element equipment and twin data of a digital twin model corresponding to the network element equipment.
The network element equipment can be a network element in a 5G communication network, and the network element consists of one or more machine discs or machine frames and can independently complete certain transmission functions. In operation, the network element device may generate corresponding network element data. Wherein the network element data may be data of network elements in the physical world. And the physical network element corresponds to a corresponding digital twin model. The digital twin model may be a real-time virtual mapping of the network element devices described above. The digital twin model is correspondingly provided with twin data, so that the synchronization of the twin data and the network element data is required to be ensured for managing and monitoring the physical network element through the digital twin model.
Wherein, the network element equipment can have association relation with the digital twin model. In synchronization, the terminal may acquire network element data of the network element device and twin data of a digital twin model corresponding to the network element device. For example, the terminal acquires the network element data and the twin data after receiving the instruction issued by the staff, or the terminal acquires the network element data and the twin data according to a set period. The network element data and the twin data acquired by the terminal may be data that needs to be synchronized.
The terminal can obtain the network element data and the twin data after preprocessing the original data. For example, in one embodiment, the terminal may obtain the original network element data of the network element device, and perform normalization and normalization processing on the original network element data to obtain the network element data.
In addition, when the data amount of the network element data is too large, the terminal can segment the network element data. The terminal can sort the network element data and then segment the network element data. For example, in one embodiment, the terminal may sort the network element data of the network element device according to the data type to segment based on the sorted network element data. The data types may include, but are not limited to, data primary keys, business primary keys, and the like. The sorting position of each type of data can be set according to actual conditions. The twin data may be already ordered data.
Step S204, segmenting the network element data and the twin data to obtain a plurality of first data segments corresponding to the network element data and a plurality of second data segments corresponding to the twin data under the condition that the data volume of the network element data is different from the data volume of the twin data and the data volume of the network element data is larger than a preset data volume threshold.
Wherein, because the network element data is continuously changed, the data amounts of the network element data and the corresponding twin data may be the same or different. For network element data with different data volumes, the terminal can adopt different synchronization modes. For example, the terminal may segment the network element data and the twin data when detecting that the data amounts of the network element data and the twin data are different and that the data amount of the network element data is greater than a preset data amount threshold. For example, the terminal segments according to a preset data segmentation rule to obtain a plurality of first data segments corresponding to the network element data and a plurality of second data segments corresponding to the twin data.
The preset data segmentation rule can be formulated according to service data characteristics of network element data. For example, in one embodiment, the terminal may segment the network element data and its corresponding twin data based on a dichotomy, respectively. In addition, in one embodiment, the terminal may also obtain historical data change information of each data in the network element data during segmentation. The historical data change information indicates that data with a data change rate greater than a preset change rate threshold value, namely data which is changed frequently, in the historical network element data corresponding to the network element data.
The terminal can determine a first change data segment and a first fixed data segment according to the historical data change information, and extract the first change data segment in the network element data. Wherein the first change data segment indicates a data segment having data change information, for example, data having a data change rate greater than or equal to a preset change rate threshold; the first fixed data segment represents a data segment in which data does not change in the historical network element data. Because the network element data and the twin data can be the second change data segment in the corresponding twin data according to the position of the first change data segment in the network element data through the sequencing terminal. The terminal can determine a plurality of first data segments according to the first change data segments and a plurality of second data segments according to the second change data segments. For example, the first variable data segment of the terminal is divided into a plurality of data segments with the same size to obtain a plurality of first data segments, and the second variable data segment is divided into a plurality of data segments with the same size to obtain a plurality of second data segments. In addition, in some embodiments, the terminal may also use the first variable data segment as the first data segment and the second variable data segment as the second data segment. Namely, the terminal can realize data segmentation by distinguishing an invariable data part from a data part which is changed frequently in the network element data.
Step S206, obtaining a first summary result of each first data segment and a second summary result of each corresponding second data segment.
Wherein each of the first data segment and the corresponding second data segment may be data segments of the same data amount. When the data amounts of the first data segment and the second data segment are the same, it is indicated that the two data segments may be the same data segment. At this time, the terminal may detect the data difference between the two data segments through a digest algorithm. Wherein the summary algorithm represents converting data of any length into a data string of fixed length by a preset function. For example, the terminal may convert the network element data and the twin data according to a summarization algorithm to obtain a first summarization result of each first data segment and a second summarization result of each second data segment corresponding to each first data segment. The first data segment corresponds to the first abstract result one by one, and the second data segment corresponds to the second abstract result one by one.
Step S208, determining a first data segment to be synchronized and a corresponding second data segment to be synchronized according to the comparison result of each first abstract result and the corresponding second abstract result, and carrying out data synchronization on the first data segment to be synchronized and the second data segment to be synchronized.
After obtaining the first summary result of each first data segment and the second summary result of each second data segment, the terminal may compare each first summary result with each second summary result to obtain a corresponding comparison result. The terminal can determine the first data segment to be synchronized and the corresponding second data segment to be synchronized according to the comparison result of the first abstract comparison result and the second abstract comparison result. For example, when the first summary result and the second summary result are different, it is indicated that there is a difference between the data of the first data segment corresponding to the first summary result and the data of the second data segment corresponding to the second summary result. At this time, the terminal may further determine, for example, whether the data size of the first data segment and the second data segment with the difference is too large, and if the data size is too large, for example, greater than the preset data size threshold, further segmentation is required, and then comparison of the summary results is performed. If the data size is smaller, for example, smaller than or equal to the preset data size threshold, the terminal may determine that the first data segment is the first data segment to be synchronized, and determine that the second data segment is the second data segment to be synchronized.
Therefore, the terminal can synchronize the data aiming at the first data segment to be synchronized and the second data segment to be synchronized which have data differences, and the terminal can synchronize the plurality of first data segments to be synchronized and the plurality of second data segments to be synchronized, so that the synchronization of the network element data and the twin data is realized.
And when the terminal detects that the first abstract result and the second abstract result are the same, the terminal can also determine that the data of the corresponding first data segment and the corresponding second data segment are the same. For example, in one embodiment, for each first data segment and corresponding second data segment, if the terminal detects that the first summary result of the first data segment is the same as the second summary result of the corresponding second data segment, and the data amounts of the first data segment and the second data segment are the same, which indicates that the data of the first data segment and the second data segment are the same, the terminal may determine that the first data segment and the corresponding second data segment are completed synchronously.
According to the data synchronization method of the digital twin model, when the data amount of the network element data is different from that of twin data of the digital twin model and the data amount of the network element data is larger than the preset data amount threshold, the network element data and the twin data are segmented, a first abstract result of each first data segment corresponding to the segmented network element data and a second abstract result of each second data segment corresponding to the twin data are obtained, and according to a comparison result of the two abstract results, the first data segment to be synchronized and the second data segment to be synchronized are determined, and data synchronization is carried out on the first data segment to be synchronized and the second data segment to be synchronized. Compared with the traditional synchronization based on the full data, the scheme determines the data segment to be synchronized by comparing the segmentation and the abstract result of the data, and then the synchronization is performed based on the data segment, so that the time spent for the synchronization is reduced, and the real-time performance of the synchronization is improved.
In one embodiment, determining the first data segment to be synchronized and the corresponding second data segment to be synchronized according to the comparison result of each first summary result and each corresponding second summary result includes: for each first data segment and the corresponding second data segment, if the comparison result is that the first summary result of the first data segment is different from the second summary result of the corresponding second data segment, and the data volume of the first data segment and the data volume of the corresponding second data segment are smaller than a preset data volume threshold, determining that the first data segment is the first data segment to be synchronized, and determining that the second data segment is the second data segment to be synchronized.
In this embodiment, the terminal may determine the first data segment to be synchronized and the second data segment to be synchronized according to the comparison result of the first summary result and the second summary result and in combination with the data amounts of the corresponding first data segment and second data segment. For example, for each first data segment and each corresponding second data segment. The terminal may further detect whether the data size of the first data segment is smaller than a preset data size threshold and whether the data size of the second data segment is smaller than the preset data size threshold when detecting that the comparison result is that the first summary result of the first data segment is different from the second summary result of the corresponding second data segment. If the first data segment is smaller than the preset data quantity threshold, the terminal can determine that the first data segment is the first data segment to be synchronized, and determine that the second data segment is the second data segment to be synchronized. That is, when there is a data difference in the data segments and the data amount of the data segments is small, the terminal may determine that the data segments are not further segmented, so that the data segments are synchronized as the data segments to be synchronized.
Through the embodiment, the terminal can combine the abstract result and the data quantity of the data segments to determine the data segments to be synchronized, so that the data synchronization is performed based on the data segments to be synchronized, and the real-time performance of network element data synchronization is improved.
In one embodiment, determining the first data segment to be synchronized and the corresponding second data segment to be synchronized according to the comparison result of each first summary result and each corresponding second summary result includes: and if the comparison result is that the first summary result of the first data segment is different from the second summary result of the corresponding second data segment, and the data quantity of the first data segment or the data quantity of the corresponding second data segment is greater than or equal to a preset data quantity threshold value, segmenting the first data segment and the corresponding second data segment again to obtain a plurality of new first data segments and a plurality of new second data segments, and returning to the step of acquiring the first summary result of each first data segment and the second summary result of each corresponding second data segment.
In this embodiment, the terminal may determine the first data segment to be synchronized and the second data segment to be synchronized according to the comparison result of the first summary result and the second summary result and in combination with the data amounts of the corresponding first data segment and second data segment. For example, for each first data segment and each corresponding second data segment. The terminal may further detect whether the data size of the first data segment is greater than a preset data size threshold when detecting that the comparison result is that the first summary result of the first data segment is different from the second summary result of the corresponding second data segment, if the terminal detects that the data size of the first data segment is greater than or equal to the preset data size threshold, or if the terminal detects that the data size of the second data segment corresponding to the first data segment is greater than or equal to the preset data size threshold, it indicates that the data size of the first data segment or the second data segment is too large, and at this time, the terminal may segment the first data segment and the corresponding second data segment again. For example, the segments are performed according to the preset data segment rule, so as to obtain a new plurality of first data segments and a new plurality of second data segments.
After obtaining the new first data segments and the new second data segments, the terminal can return to the step of obtaining the first summary result of each first data segment and the second summary result of each corresponding second data segment, so that the terminal can compare the summary results again based on the new first summary result of the new first data segment and the new second summary result of the new second data segment. The number of the segments may be multiple times until the new first data segment and the new second data segment after the segments are smaller than a preset data amount threshold, where the terminal may respectively use the new first data segment and the new second data segment with different summary results as the first data segment to be synchronized and the second data segment to be synchronized.
Through the embodiment, the terminal can combine the abstract result and the data quantity of the data segments to determine the data segments to be synchronized, and when the data quantity is too large and the abstract result is different, the terminal performs further segmentation and then performs comparison of the abstract result to determine the data segments to be synchronized. And further, data synchronization is performed based on the data segments to be synchronized, so that the real-time performance of network element data synchronization is improved.
In one embodiment, after obtaining the network element data of the network element device and the twin data of the digital twin model corresponding to the network element device, the method further includes: if the data quantity of the network element data and the corresponding twin data are smaller than the preset data quantity threshold, carrying out data synchronization on the network element data and the twin data according to the difference data of the network element data and the twin data.
In this embodiment, after the terminal obtains the overall network element data and the twin data, the data amount may be compared first. If the terminal detects that the data quantity of the network element data and the corresponding twin data are smaller than the preset data quantity threshold, the terminal indicates that the overall data quantity of the network element data is smaller, at the moment, the terminal can directly acquire the difference data of the network element data and the twin data, and data synchronization is carried out on the network element data and the twin data according to the difference data. Therefore, when the data quantity of the network element data and the twin data is smaller, the terminal directly synchronizes the network element data and the twin data in a one-by-one comparison mode based on the difference data.
Through the embodiment, the terminal can synchronize the network element data and the twin data through the difference data when the overall data volume of the network element data and the twin data is smaller, so that the real-time performance of the network element data synchronization is improved.
In one embodiment, data synchronization is performed for a first data segment to be synchronized and a second data segment to be synchronized, including: if the first data segment to be synchronized is smaller than a preset data quantity threshold value, acquiring difference data of the first data segment to be synchronized and the corresponding second data segment to be synchronized; and updating the second data segment to be synchronized according to the difference data to obtain a synchronization result.
In this embodiment, after the terminal segments the network element data and the twin data, a first data segment to be synchronized and a second data segment to be synchronized may be obtained. The terminal may segment multiple times until the first data segment to be synchronized and the second data segment to be synchronized are less than a preset data amount threshold. Namely, when the terminal detects that the first data segment to be synchronized and the second data segment to be synchronized are smaller than a preset data quantity threshold value under the condition that the data quantity of the first data segment to be synchronized and the second data segment to be synchronized are the same and the summary result is different, the terminal can acquire difference data of the first data segment to be synchronized and the corresponding second data segment to be synchronized.
The terminal may update the second data segment to be synchronized based on the difference data between the first data segment to be synchronized and the second data segment to be synchronized, for example, delete and improve corresponding data, and obtain the synchronization result of the data segment based on the updated second data segment. The terminal can update the first data segment to be synchronized and the second data segment to be synchronized by comparing difference data one by one. The terminal can obtain the synchronization result of the network element data and the twin data through the synchronization result of the first data segment to be synchronized and the second data segment to be synchronized.
Through the embodiment, the terminal can synchronize the data segments through the difference data when the data volume of the first data segment to be synchronized and the second data segment to be synchronized is smaller, so that the real-time performance of network element data synchronization is improved.
In one embodiment, as shown in fig. 3, fig. 3 is a flow chart of a data synchronization method of a digital twin model in another embodiment. In this embodiment, the terminal may collect network element data that needs to be synchronized by the physical network element device, and determine whether the data amounts of the network element data and the corresponding twin data are the same. When the data amounts are different, the difference exists between the two data.
The terminal may determine whether the data amounts of the two are larger, for example, whether the data amount is larger than a preset data amount threshold. If yes, the terminal can segment according to a preset data segmentation rule. And the terminal can compare the abstract results of the two corresponding data segments until the data quantity of the network element data and the twin data in the corresponding data segments is the same. When the terminal detects that the data quantity of the corresponding two data segments is smaller than a preset data quantity threshold value, the terminal can directly realize data synchronization through one-by-one comparison. For example by synchronizing the first data segment and the second data segment by means of differential data as described above, or by synchronizing network element data and twinning data.
When the terminal detects that the data amounts of the two corresponding data segments are the same, the data of the data segments indicating the network element data and the data segments of the twin data may be the same. The two data segments may be the first data segment to be synchronized and the second data segment to be synchronized. At this time, the terminal can convert the data in the data segment through the summarization algorithm, compare the summarization result of the data segment of the network element data with the summarization result of the data segment of the twin data, and when the terminal detects that the two summarization results are identical, the terminal can determine that the twin data is identical with the data in the data segment corresponding to the network element data respectively, and the segment data is synchronized.
When the summary results are different and the data volume in the two data segments is larger than the preset data volume threshold, the terminal can return to the step of segmenting the data according to the segmentation rule, and compare the summary results again according to the segmented data segments until the data volumes of the two segmented data segments are smaller than the preset data volume threshold, and synchronization is realized in a one-by-one comparison mode when the summary results are different; or, the data quantity of the two segmented data segments is larger than or equal to a preset data quantity threshold value, but the abstract results are the same, which indicates that the two data segments are identical, and the data segments are synchronized.
Through the embodiment, the terminal determines the data segment to be synchronized by comparing the segmentation and the summary results of the data, so that the synchronization is performed based on the data segment, the time spent for the synchronization is reduced, and the real-time performance of the synchronization is improved. And the terminal combines the data and the service characteristics, so as to purposefully optimize the data segmentation logic, such as making segmentation rules for intervals where the data can not be changed or is less changed and is frequently changed, or segmenting by using a more general dichotomy, adapt to different service scene data, and purposefully improve the synchronization efficiency.
And the terminal only needs to process the network element data, does not need to acquire operation logs and other operations, reduces dependence on related authorities, is insensitive to information such as manufacturers and network element types and has good universality and expandability. In addition, through the scheme, the data synchronization efficiency and the network perception capability can be effectively improved, the instantaneity of the twin model is improved, and an effective solution is provided for synchronization of a large amount of network element data of different services. For example, the real-time performance of the digital twin model can be improved, the actual application of the digital twin model in a communication network is supported, and the application of the digital twin technology in more scenes with higher real-time requirements is promoted; and network element data of common factories and network element types of the existing network can be matched, so that the efficiency of the digital twin technology of the communication network is improved, and the intelligent level of the communication network is promoted.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a data synchronization device of the digital twin model for realizing the data synchronization method of the digital twin model. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the data synchronization device for one or more digital twin models provided below may be referred to the limitation of the data synchronization method for the digital twin model hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 4, there is provided a data synchronization apparatus of a digital twin model, including: an acquisition module 500, a segmentation module 502, a summary module 504, and a synchronization module 506, wherein:
the obtaining module 500 is configured to obtain network element data of a network element device and twin data of a digital twin model corresponding to the network element device.
The segmentation module 502 is configured to segment the network element data and the twin data to obtain a plurality of first data segments corresponding to the network element data and a plurality of second data segments corresponding to the twin data when the data amounts of the network element data and the twin data are different and the data amount of the network element data is greater than a preset data amount threshold.
The summarization module 504 is configured to obtain a first summarization result of each first data segment and a second summarization result of each corresponding second data segment.
The synchronization module 506 is configured to determine a first data segment to be synchronized and a corresponding second data segment to be synchronized according to a comparison result of each first summary result and a corresponding second summary result, and perform data synchronization for the first data segment to be synchronized and the second data segment to be synchronized.
In one embodiment, the apparatus further comprises: and the ordering module is used for ordering the network element data of the network element equipment according to the data types so as to segment the network element data based on the ordered network element data.
In one embodiment, the segmentation module 502 is configured to segment the network element data and the corresponding twin data based on a dichotomy.
In one embodiment, the segmentation module 502 is configured to obtain historical data change information of each data in the network element data; extracting a first change data segment in the network element data according to the historical data change information; the first change data segment represents a data segment with data change information; determining a second change data segment in the corresponding twin data according to the position of the first change data segment in the network element data; a plurality of first data segments is determined based on the first varying data segments, and a plurality of second data segments is determined based on the second varying data segments.
In one embodiment, the synchronization module 506 is configured to determine, for each first data segment and the corresponding second data segment, that the first data segment is the first data segment to be synchronized, and determine that the second data segment is the second data segment to be synchronized, if the comparison result is that the first summary result of the first data segment is different from the second summary result of the corresponding second data segment, and the data amount of the first data segment and the data amount of the corresponding second data segment are both smaller than a preset data amount threshold.
In one embodiment, the synchronization module 506 is configured to, for each first data segment and the corresponding second data segment, segment the first data segment and the corresponding second data segment again to obtain a new plurality of first data segments and a new plurality of second data segments, and return to the step of obtaining the first summary result of each first data segment and the second summary result of each corresponding second data segment if the comparison result is that the first summary result of the first data segment is different from the second summary result of the corresponding second data segment, and the data amount of the first data segment or the data amount of the corresponding second data segment is greater than or equal to the preset data amount threshold.
In one embodiment, the apparatus further comprises: and the integral synchronization module is used for carrying out data synchronization on the network element data and the twin data according to the difference data of the network element data and the twin data if the data quantity of the network element data and the data quantity of the corresponding twin data are smaller than a preset data quantity threshold value.
In one embodiment, the synchronization module 506 is configured to obtain difference data between the first data segment to be synchronized and the corresponding second data segment to be synchronized if the first data segment to be synchronized is smaller than a preset data amount threshold; and updating the second data segment to be synchronized according to the difference data to obtain a synchronization result.
In one embodiment, the apparatus further comprises: and the synchronization completion module is used for determining that the first data segment and the corresponding second data segment are synchronously completed according to each first data segment and the corresponding second data segment if the first summary result of the first data segment is the same as the second summary result of the corresponding second data segment.
The modules in the data synchronization device of the digital twin model can be implemented in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a data synchronization method of a digital twin model. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided that includes a memory having a computer program stored therein and a processor that implements the above-described method of data synchronization for a digital twin model when the computer program is executed.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor implements the data synchronization method of the digital twin model described above.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, implements the above-described method of data synchronization for a digital twin model.
The user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (13)

1. A method of data synchronization for a digital twin model, the method comprising:
acquiring network element data of network element equipment and twin data of a digital twin model corresponding to the network element equipment;
segmenting the network element data and the twin data under the condition that the data volume of the network element data is different from the data volume of the twin data and the data volume of the network element data is larger than a preset data volume threshold value, and obtaining a plurality of first data segments corresponding to the network element data and a plurality of second data segments corresponding to the twin data;
Acquiring a first abstract result of each first data segment and a second abstract result of each corresponding second data segment;
and determining a first data segment to be synchronized and a corresponding second data segment to be synchronized according to the comparison result of each first abstract result and the corresponding second abstract result, and carrying out data synchronization on the first data segment to be synchronized and the second data segment to be synchronized.
2. The method of claim 1, wherein after the obtaining the network element data of the network element device, before segmenting the network element data and the twin data, further comprises:
and sequencing the network element data of the network element equipment according to the data type so as to segment the network element data based on the sequenced network element data.
3. The method of claim 1, wherein the segmenting the network element data and the twin data comprises:
based on the dichotomy, the network element data and the corresponding twin data are segmented respectively.
4. The method of claim 1, wherein the segmenting the network element data and the twin data to obtain a plurality of first data segments corresponding to the network element data and a plurality of second data segments corresponding to the twin data comprises:
Acquiring historical data change information of each data in the network element data;
extracting a first change data segment in the network element data according to the historical data change information; the first change data segment represents a data segment with data change information;
determining a second change data segment in the corresponding twin data according to the position of the first change data segment in the network element data;
and determining a plurality of first data segments according to the first change data segments, and determining a plurality of second data segments according to the second change data segments.
5. The method according to claim 1, wherein determining the first data segment to be synchronized and the corresponding second data segment to be synchronized according to the comparison result of each first summary result and each corresponding second summary result includes:
and aiming at each first data segment and the corresponding second data segment, if the comparison result is that the first summary result of the first data segment is different from the second summary result of the corresponding second data segment, and the data volume of the first data segment and the data volume of the corresponding second data segment are smaller than a preset data volume threshold value, determining that the first data segment is the first data segment to be synchronized, and determining that the second data segment is the second data segment to be synchronized.
6. The method according to claim 1, wherein determining the first data segment to be synchronized and the corresponding second data segment to be synchronized according to the comparison result of each first summary result and each corresponding second summary result includes:
and for each first data segment and the corresponding second data segment, if the comparison result is that the first summary result of the first data segment is different from the second summary result of the corresponding second data segment, and the data quantity of the first data segment or the data quantity of the corresponding second data segment is greater than or equal to a preset data quantity threshold value, segmenting the first data segment and the corresponding second data segment again to obtain a new plurality of first data segments and a new plurality of second data segments, and returning to the step of acquiring the first summary result of each first data segment and the second summary result of each corresponding second data segment.
7. The method according to claim 1, wherein after obtaining the network element data of the network element device and the twin data of the digital twin model corresponding to the network element device, the method further comprises:
and if the data quantity of the network element data and the data quantity of the corresponding twin data are smaller than a preset data quantity threshold, carrying out data synchronization on the network element data and the twin data according to the difference data of the network element data and the twin data.
8. The method of claim 1, wherein the data synchronization for the first data segment to be synchronized and the second data segment to be synchronized comprises:
if the first data segment to be synchronized is smaller than a preset data quantity threshold value, acquiring difference data of the first data segment to be synchronized and the corresponding second data segment to be synchronized;
and updating the second data segment to be synchronized according to the difference data to obtain a synchronization result.
9. The method according to any one of claims 1 to 8, further comprising, after the obtaining the first summary result of each first data segment and the corresponding second summary result of each second data segment:
and determining that the first data segment and the corresponding second data segment are synchronous if the first summary result of the first data segment is identical to the second summary result of the corresponding second data segment aiming at each first data segment and the corresponding second data segment.
10. A data synchronization apparatus for a digital twin model, the apparatus comprising:
the acquisition module is used for acquiring network element data of network element equipment and twin data of a digital twin model corresponding to the network element equipment;
The segmentation module is used for segmenting the network element data and the twin data to obtain a plurality of first data segments corresponding to the network element data and a plurality of second data segments corresponding to the twin data under the condition that the data volume of the network element data is different from the data volume of the twin data and the data volume of the network element data is larger than a preset data volume threshold;
the summary module is used for acquiring a first summary result of each first data segment and a second summary result of each corresponding second data segment;
and the synchronization module is used for determining a first data segment to be synchronized and a corresponding second data segment to be synchronized according to the comparison result of each first abstract result and the corresponding second abstract result, and carrying out data synchronization on the first data segment to be synchronized and the second data segment to be synchronized.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 9 when the computer program is executed.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 9.
13. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 9.
CN202310833884.8A 2023-07-07 2023-07-07 Data synchronization method, device, equipment and storage medium of digital twin model Pending CN116760844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310833884.8A CN116760844A (en) 2023-07-07 2023-07-07 Data synchronization method, device, equipment and storage medium of digital twin model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310833884.8A CN116760844A (en) 2023-07-07 2023-07-07 Data synchronization method, device, equipment and storage medium of digital twin model

Publications (1)

Publication Number Publication Date
CN116760844A true CN116760844A (en) 2023-09-15

Family

ID=87957105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310833884.8A Pending CN116760844A (en) 2023-07-07 2023-07-07 Data synchronization method, device, equipment and storage medium of digital twin model

Country Status (1)

Country Link
CN (1) CN116760844A (en)

Similar Documents

Publication Publication Date Title
CN111931097B (en) Information display method and device, electronic equipment and storage medium
CN113568995B (en) Dynamic tile map manufacturing method and tile map system based on search conditions
US20240126817A1 (en) Graph data query
CN111061758B (en) Data storage method, device and storage medium
WO2021027331A1 (en) Graph data-based full relationship calculation method and apparatus, device, and storage medium
CN113297269A (en) Data query method and device
CN115660711A (en) User ID generation method and device, electronic equipment and readable storage medium
CN115022342A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN109947730A (en) Metadata restoration methods, device, distributed file system and readable storage medium storing program for executing
WO2017095413A1 (en) Incremental automatic update of ranked neighbor lists based on k-th nearest neighbors
CN107798063A (en) Snap processing method and snapshot processing unit
CN112925859A (en) Data storage method and device
CN111737206B (en) File deduplication processing method, system, terminal and storage medium
WO2023071367A1 (en) Processing method and apparatus for communication service data, and computer storage medium
CN116760844A (en) Data synchronization method, device, equipment and storage medium of digital twin model
CN115858471A (en) Service data change recording method, device, computer equipment and medium
CN111723089A (en) Method and device for processing data based on columnar storage format
CN115269519A (en) Log detection method and device and electronic equipment
CN113763099A (en) Data searching method, device, equipment and storage medium
CN116821102B (en) Data migration method, device, computer equipment and storage medium
CN117056133B (en) Data backup method, device and medium based on distributed Internet of things architecture
CN117978859A (en) Information pushing method and related equipment
CN113190551A (en) Feature retrieval system construction method, feature retrieval method, device and equipment
CN116932677A (en) Address information matching method, device, computer equipment and storage medium
CN116910115A (en) Group query method, device, computer equipment and storage medium

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