An intelligent data lineage tracking method
By marking data terminals in the data transmission link and using feedback methods to judge data transmission quality, the problem of low efficiency in multi-level processing of data traceability in the existing technology is solved, and efficient data traceability and abnormal data terminal identification are achieved.
Patent Information
- Application Number
- CN202311655625.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-05
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-12-05
AI Technical Summary
Existing data lineage tracking methods have low traceability and tracking efficiency when processing data at multiple levels, and cannot efficiently manage resources and troubleshoot problems.
By marking data terminals in the data transmission link, a data terminal link is formed, and the feedback method is used to judge the quality of data transmission to achieve efficient traceability and tracking of data.
It improves the efficiency of data traceability, can quickly find the source of data and assists in further distribution of data, and reduces the difficulty of identifying and repairing abnormal data terminals.
Smart Images

Figure CN117614723B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to an intelligent data lineage tracing method. Background Art
[0002] Big data lineage refers to tracking the data flow paths involved in each processing logic during big data processing, forming dependencies and generation relationships between different data tables, thereby achieving downward impact analysis or upward traceability analysis of the data, which helps users manage resources and troubleshoot problems.
[0003] In existing data lineage tracing methods, it is usually necessary to extract the features of the data to be tracked and use a step-by-step tracing method to find the source of the data. For multi-level processed data, the efficiency of tracing the source using this method is low. In view of this, we propose an intelligent data lineage tracing method. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, the present invention provides an intelligent data lineage tracing method, which can effectively solve the problem of low efficiency of traceability tracing for multi-level processed data in the existing data tracing.
[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0006] The present invention provides an intelligent data lineage tracing method, comprising the following steps:
[0007] S100: matching tags corresponding to multiple data terminals, and matching tags corresponding to the data terminals: data acquisition terminal, data processing terminal, data transmission terminal, and data receiving terminal, respectively, according to the nodes in the data transmission link;
[0008] S200: according to the assigned corresponding data terminal tag, assign the same type of data tag to the corresponding processed data, and according to the data transmission logic relationship of multiple data terminals, when the multiple data are transmitted, the multiple different tags assigned to them can be superimposed, and when each data completes the transmission, the multiple data terminals through which the data flows are recorded, and corresponding multiple data terminal links are formed;
[0009] S300: According to the multiple data assigned to the transmission link node, the data can be tracked in sequence according to the mark on the data, or further allocated for transmission in subsequent transmission;
[0010] S400: using a feedback method to determine the data transmission or data processing quality of multiple nodes corresponding to the data terminal, and recording the data transmission characteristics of the node in the current data transmission link to assist in data tracing or further data distribution.
[0011] Furthermore, step S200 also includes a data marking method:
[0012] S210: clarifying the node position of the current data terminal in the data transmission link, and matching one or more marks of the corresponding data collection terminal, data processing terminal, data transmission terminal and data receiving terminal;
[0013] S220: corresponding character spaces are respectively allocated at the beginning of corresponding data, the data are marked using the marks on the corresponding data terminals, and as the marks increase, the marks are superimposed in sequence at the end of the data.
[0014] Furthermore, step S220 also includes:
[0015] S221: Allocate corresponding character space at the end of corresponding data, and superimpose multiple marks at the end of the data.
[0016] Furthermore, a data link processing method is also included, which is used to sort multiple data terminals through which a unit data packet flows; the method comprises the following steps:
[0017] S230: Classify and process each data terminal link, and clarify the corresponding numbers of data collection terminals, data processing terminals, data transmission terminals, and data receiving terminals in the unit data packet transmission link;
[0018] S240: Grouping the above-mentioned multiple data terminals according to categories, and assigning the same terminal characters to multiple terminals in the same group, and correspondingly reflecting them in the data tags.
[0019] Further, the feedback method comprises the following steps:
[0020] S410: clarifying the size of a unit data packet when data is transmitted to a corresponding data terminal;
[0021] S420: and determining whether the size change of the corresponding unit data packet when the data is transmitted through the data terminal is the character size corresponding to the corresponding mark of the data transmission terminal;
[0022] S430: If yes, the data terminal is determined to be a normal data terminal. If the change in the unit data packet size is inconsistent with the corresponding character size, the data terminal is determined to be an abnormal data terminal.
[0023] Furthermore, the abnormal data tracking method includes the following steps:
[0024] S500: The data receiving terminal receives the data and restores it to multiple unit data packets in the transmission process, and determines whether there is an abnormality with respect to the multiple unit data packets. The abnormal unit data packets are abnormal data;
[0025] S510: Find the corresponding data terminal link according to the corresponding data tags in the multiple abnormal unit data packets, determine the overlapping data terminals in the multiple data links, first determine whether the overlapping data terminal is an abnormal data terminal, and if so, determine that the abnormal data is caused by the abnormal data terminal;
[0026] S520: If the overlapping data terminals in the multiple data links are not abnormal data terminals, further determine whether there is an abnormal terminal in each corresponding data terminal link. If so, take the abnormal data terminal as the starting point to perform source tracing verification of the unit data packet and subsequent transmission verification of the unit data packet;
[0027] S530: After the abnormal terminal is determined, the abnormal data is restored according to the data transmission characteristics of the node in the current data transmission link, and the singular data packet is continuously traced.
[0028] Beneficial Effects
[0029] Compared with the known public technology, the technical solution provided by the present invention has the following beneficial effects:
[0030] The present invention uses a marking method to sequentially mark the data transmitted in the transmission link and superimpose it on the data to form a data tag corresponding to each data. The data tag is combined with a feedback method to efficiently trace the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0032] Figure 1 It is an overall schematic diagram of the bloodline tracing method of the present invention;
[0033] Figure 2 It is an overall schematic diagram of the data labeling method of the present invention;
[0034] Figure 3 It is an overall schematic diagram of the abnormal data tracking method of the present invention;
[0035] Figure 4 It is a schematic diagram of a character string of the present invention being marked with data. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] The present invention will be further described below in conjunction with the embodiments.
[0038] Embodiment 1
[0039] An intelligent data lineage tracing method comprises the following steps:
[0040] S100: matching tags corresponding to multiple data terminals, and matching tags corresponding to the data terminals: data acquisition terminal, data processing terminal, data transmission terminal, and data receiving terminal, respectively, according to the nodes in the data transmission link;
[0041] S200: according to the assigned corresponding data terminal tag, assign the same type of data tag to the corresponding processed data, and according to the data transmission logic relationship of multiple data terminals, when the multiple data are transmitted, the multiple different tags assigned to them can be superimposed, and when each data completes the transmission, the multiple data terminals through which the data flows are recorded, and corresponding multiple data terminal links are formed;
[0042] S300: According to the multiple data assigned to the transmission link node, the data can be tracked in sequence according to the mark on the data, or further allocated for transmission in subsequent transmission;
[0043] S400: using a feedback method to determine the data transmission or data processing quality of multiple nodes corresponding to the data terminal, and recording the data transmission characteristics of the node in the current data transmission link to assist in data tracing or further data distribution.
[0044] Through steps S100-S400, in the actual data tracking process, the method usually adopted is that for the data receiving terminal, the method usually adopted is to trace the source step by step, determine the data transmission method in different data terminals, and trace the data according to the data overlap. Using the overlap to trace the data requires a long time on data comparison. It is easy to achieve if the data is small. If the data is large, the corresponding efficiency will be low, and if the data is transmitted through multi-level data transmission terminals, the number of overlap comparisons required will increase accordingly, making the efficiency of the entire data tracing low. The above is only for simple data transmission terminals, which do not have the function of modifying data. If some data terminals have data modification functions, such as encryption, then in addition to comparing the data overlap, it is also necessary to further eliminate the data modification part of the data terminal, making the entire data tracing more cumbersome.
[0045] In this case, in the data transmission link, the function of each data terminal will be clarified first. On the basis of clarifying its function, each data will be marked accordingly during data processing or data transmission. The data mark can reflect the nodes in the data transmission link used by the data in each link of collection, processing, transmission and reception, and record the multiple data terminals through which it flows. Through this recording method, when the data is at the data receiving terminal, it is necessary to trace the source. In the tracing link of this process, according to the data mark on the data, the source of the data can be well clarified; of course, in the above-mentioned situation, the data is not damaged when it is transmitted to the data receiving terminal, which means that there is no significant packet loss or garbled code;
[0046] Specifically, step S200 also includes a data marking method:
[0047] S210: clarifying the node position of the current data terminal in the data transmission link, and matching one or more marks of the corresponding data collection terminal, data processing terminal, data transmission terminal and data receiving terminal;
[0048] S220: corresponding character spaces are respectively allocated at the beginning of corresponding data, the data are marked using the marks on the corresponding data terminals, and as the marks increase, the marks are superimposed in sequence at the end of the data.
[0049] Specifically, the so-called data marking method is to record the nodes in multiple links through which the data flows in the data transmission link, and the nodes correspond to the data terminals, which are used to assist the effective transmission of the data. It is worth noting that in this case, the corresponding data marking is adopted by adding a mark at the end of the unit data packet. The generation of the unit data packet is the pre-processing of the data during the transmission process in order to ensure the stable transmission in each link, so that a complete data can be subdivided into multiple unit data packets of a certain size for transmission. As for the specific size of the unit data packet, it is determined according to factors such as the bandwidth of the link in the current data source transmission link, which will not be elaborated in this case. The so-called marking is to add characters at the end of the unit data packet. It should be noted that , the size of the character mark made for each unit data packet is negligible compared to the size of the entire unit data packet; and as the data is transmitted, the number of characters corresponding to the unit data packet increases with the increase of the mark, and in order to avoid the problem of mark confusion caused by multiple marks superimposed on the same data, in this case, each corresponding mark occupies a certain space of characters, and the size of the character space depends on the number of nodes and data terminals passed during the data transmission process, from the beginning of data collection to the completion of data reception. For example, for a data that needs to pass through 4 nodes to achieve the complete data collection and reception process, the corresponding character space can be the space occupied by 4 codes, and it only needs to ensure that the character code corresponding to the mark on each data terminal will not be confused;
[0050] For example, during data transmission, it passes through a data acquisition terminal, a data processing terminal, a data transmission terminal, and a data receiving terminal, and it is assumed that the character string corresponding to the unit data packet of the transmission is: 1011101011;
[0051] After passing through a data acquisition terminal, the string becomes: 00011011101011;
[0053] After passing through a data processing terminal, the string becomes: 000100011011101011;
[0055] After passing through a data transmission terminal, the string becomes: 0001000100011011101011;
[0057] After reaching the data receiving terminal, the string becomes: 00010001000100011011101011;
[0059] According to the attached Figure 4 As shown in , when the data is received at the terminal, it will delete the corresponding multiple tags added: 0001 (data receiving terminal tag), 0001 (data transmission terminal tag), 0001 (data processing terminal tag), and 0001 (data acquisition terminal tag), so that the subsequent multiple unit data packets can form complete data after the transmission is completed.
[0060] Multiple unit data packets with marking characters will also be saved synchronously. In the process of data tracking and tracing, the character markings in the character space can be used to quickly find the multiple data terminals through which the unit data packet flows, and finally find the corresponding data collection terminal.
[0061] Step S220 also includes S221: allocating a corresponding character space at the end of the corresponding data, and superimposing a plurality of marks at the end of the data.
[0062] As mentioned above, in steps S200-S220, by adding character tags to the first section of the unit data packet, and through step S221, the corresponding character tags are also added to the end of the unit data packet. On the one hand, it can be checked with the character tags at the beginning of the unit data packet. On the other hand, when part of the character tags in the unit data packet is lost due to modification of the data terminal, by increasing the number of character tags, the possibility of retaining the character tags can be increased, thereby better tracing the source.
[0063] It also includes a data link processing method for sorting multiple data terminals through which a unit data packet flows; it includes the following steps: S230: classify each data terminal link to clarify the corresponding number of data acquisition terminals, data processing terminals, data transmission terminals and data receiving terminals in the unit data packet transmission link; S240: group the above multiple data terminals according to categories, and assign the same terminal characters to multiple terminals in the same group, and reflect them in the data tags accordingly.
[0064] As mentioned above, in order to facilitate the tracking and tracing of subsequent data, in this case, for the data link formed by the transmission of the same unit data packet, multiple data terminals corresponding to it are found, and each data terminal is classified according to its function, and the data terminals with the same functionality are assigned the same terminal character, and the character is reflected in the character mark. This processing method is not of much help to normal data transmission, but when tracing the source of abnormal data, through this method, it is possible to more quickly clarify which specific link has a problem in the process of unit data packet collection to reception, and collect statistics on multiple data terminals with the same function, so as to quickly find the specific data terminal with abnormality, and further combine the abnormality of the current data terminal transmitting data to further restore the abnormal data, so that the data can be better traced.
[0065] The feedback method includes the following steps:
[0066] S410: clarify the size of the unit data packet when data is transmitted to the corresponding data terminal; S420: and the corresponding change in the size of the unit data packet when the data is transmitted through the data terminal, and determine whether the change in the size of the unit data packet is the character size corresponding to the corresponding mark of the data transmission terminal; S430: if so, determine that the data terminal is a normal data terminal, if the change in the size of the unit data packet is inconsistent with the corresponding character size, determine that the data terminal is an abnormal data terminal.
[0067] In the process of data transmission, the data transmission and processing quality of multiple data terminals in the data transmission link are first fed back through the feedback method, so as to better grasp the overall situation of the data transmission link. Specifically, for the data transmission terminal, it usually only serves as a medium for data transmission and does not adjust the content of the unit data packet. Of course, in this solution, the data transmission terminal will mark the unit data packet it transmits and does not adjust its content. Therefore, when the unit data packet is received from the data transmission terminal and subsequently output, the difference in the size of the unit data packet is the character size corresponding to the data mark. Through this judgment, the transmission quality of the unit data packet at the current data transmission terminal can be clearly determined. If the size change of the unit data packet is consistent with the corresponding character size, then the data transmission terminal is considered to be a normal data terminal. If the two are inconsistent, then the current data terminal is judged to be an abnormal data terminal.
[0068] The method also includes an abnormal data tracking method, which includes the following steps:
[0069] S500: The data receiving terminal receives the data and restores it to multiple unit data packets in the transmission process, and determines whether there is an abnormality with respect to the multiple unit data packets. The abnormal unit data packets are abnormal data;
[0070] S510: Find the corresponding data terminal link according to the corresponding data tags in the multiple abnormal unit data packets, determine the overlapping data terminals in the multiple data links, first determine whether the overlapping data terminal is an abnormal data terminal, and if so, determine that the abnormal data is caused by the abnormal data terminal;
[0071] S520: If the overlapping data terminals in the multiple data links are not abnormal data terminals, further determine whether there is an abnormal terminal in each corresponding data terminal link. If so, take the abnormal data terminal as the starting point to perform source tracing verification of the unit data packet and subsequent transmission verification of the unit data packet;
[0072] S530: After the abnormal terminal is determined, the abnormal data is restored according to the data transmission characteristics of the node in the current data transmission link, and the singular data packet is continuously traced.
[0073] Through steps S500-S530, the abnormal data can be effectively traced. Specifically, when the data receiving terminal receives the abnormal data, the abnormal data here refers to the abnormality of the unit data packet. Of course, in this case, when the unit data packet is abnormal, the complete data combined at the data receiving terminal will also be abnormal. When the unit data packet is detected to be abnormal, it will find the data terminal link corresponding to the abnormal data. It should be noted that when a unit data packet has a transmission problem, it is usually a problem with the data terminal used to transmit the data, resulting in problems with multiple unit data packets flowing through the data terminal. Therefore, at the data receiving terminal, when it detects that multiple unit data packets have problems, it will find the corresponding data terminal links respectively. The so-called data terminal link is a sequential combination of multiple data terminals that the unit data packet flows through during the data transmission process according to the transmission order of the unit data packet.
[0074] When multiple data terminal links corresponding to abnormal data are found, the overlapping data terminals in the multiple data terminal links will be found. Of course, the overlapping data terminals can be one or more. It should be noted that in the data transmission process, the feedback method can be used to distinguish data terminals into abnormal data terminals and normal data terminals. On this basis, when there is a data terminal marked as an abnormal data terminal among the overlapping data terminals, then the abnormality of the unit data packet is most likely caused by the abnormal data terminal. Therefore, in the data tracing process, other data terminals between the abnormal data terminal and the data receiving terminal do not need to be traced step by step. The source can be directly traced to the abnormal data terminal position, and in step S400, the feedback method is also used to record the data transmission characteristics of the node in the current data transmission link. The purpose is that the problem of the abnormal data terminal is that a part of the characters are missing during the data transmission process, or a certain character is modified in a targeted manner, which leads to abnormal transmission of the unit data packet. In this case, by mastering the data transmission characteristics of the current abnormal data terminal, the abnormal data can be well restored. After the restoration, the data mark of the corresponding unit data packet can be well reflected, so that the source can be traced quickly and conveniently without the need to trace the source step by step.
[0075] If the overlapping data terminals in the data terminal links corresponding to multiple unit data packets are not abnormal data terminals, it is necessary to individually evaluate whether there are abnormal data terminals in the data links corresponding to each unit data packet. If there are abnormal data terminals, it is determined whether the abnormality of the unit data packet is caused by the data terminal. Similarly, the unit data packet is restored according to the data transmission characteristics of the node in the current data transmission link.
[0076] Embodiment 2
[0077] In steps S230-S240, the number of data acquisition terminals, data processing terminals, data transmission terminals and data receiving terminals in the transmission link of the unit data packet is counted, and multiple data terminals are grouped according to categories, and multiple terminals in the same group are given the same terminal character, which is reflected in the data tag accordingly;
[0078] For the same data, it will be divided into multiple unit data packets for transmission. Of course, there will be differences in the actual data terminal links, and the difference is the difference in the data transmission terminals. Different paths lead to the same result, and different links are used for explanation, but the data terminals for collection, processing and reception are consistent. Therefore, in this case, when a unit data packet is defined as abnormal data, multiple unit data packets will also be classified to clarify whether they come from the same data. If so, then for multiple unit data packets allocated to the same data, they can be traced at the same time. First, only the data transmission terminal is centrally traced, and it can also refer to the method in steps S500-S530 to further improve the efficiency of data tracking and tracing.
[0079] And for multiple unit data packets presented by the same data distribution, multiple data transmission terminals in their corresponding transmission links are regarded as the same group, then the same terminal characters will be assigned to the corresponding multiple unit data packets. In the process of tracing, especially when data abnormalities occur, data terminals corresponding to the same terminal characters can be given priority consideration, and used as the starting point for tracing, to perform traceability verification of the unit data packets and subsequent transmission verification of the unit data packets.
[0080] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims
1. An intelligent data lineage tracking method, It is characterized in that The following steps are involved: S100: matching tags corresponding to multiple data terminals, and matching tags corresponding to the data terminals: data acquisition terminal, data processing terminal, data transmission terminal, and data receiving terminal, respectively, according to the nodes in the data transmission link; S200: according to the assigned corresponding data terminal tag, assign the same type of data tag to the corresponding processed data, and according to the data transmission logic relationship of multiple data terminals, when the multiple data are transmitted, the multiple different tags assigned to them can be superimposed, and when each data completes the transmission, the multiple data terminals through which the data flows are recorded, and corresponding multiple data terminal links are formed; S3 00: According to the multiple data assigned to the transmission link node, the data can be tracked in sequence according to the mark on the data, or further allocated for transmission in subsequent transmission; S400: using a feedback method to determine the data transmission or data processing quality of the data terminal corresponding to the multiple nodes, and recording the data transmission characteristics of the node in the current data transmission link to assist in data tracing or further data distribution; The feedback method includes the following steps: S410: clarifying the size of a unit data packet when data is transmitted to a corresponding data terminal; S420: and determining whether the size change of the corresponding unit data packet when the data is transmitted through the data terminal is the character size corresponding to the corresponding mark of the data transmission terminal; S430: If yes, the data terminal is determined to be a normal data terminal, and if the change in the unit data packet size is inconsistent with the corresponding character size, the data terminal is determined to be an abnormal data terminal; And a data link processing method for sorting multiple data terminals through which a unit data packet flows; comprising the following steps: S230: Classify and process each data terminal link, and clarify the corresponding numbers of data collection terminals, data processing terminals, data transmission terminals, and data receiving terminals in the unit data packet transmission link; S240: Grouping the plurality of data terminals according to categories, assigning the same terminal character to the plurality of terminals in the same group, and correspondingly reflecting the same terminal character in the data mark; And an abnormal data tracking method, the abnormal data tracking method comprises the following steps: S500: The data receiving terminal receives the data and restores it to multiple unit data packets in the transmission process, and determines whether there is an abnormality with respect to the multiple unit data packets. The abnormal unit data packets are abnormal data; S510: Find the corresponding data terminal link according to the corresponding data tags in the multiple abnormal unit data packets, determine the overlapping data terminals in the multiple data links, first determine whether the overlapping data terminal is an abnormal data terminal, and if so, determine that the abnormal data is caused by the abnormal data terminal; S520: If the overlapping data terminals in the multiple data links are not abnormal data terminals, further determine whether there is an abnormal terminal in each corresponding data terminal link. If so, take the abnormal data terminal as the starting point to perform source tracing verification of the unit data packet and subsequent transmission verification of the unit data packet; S530: After the abnormal terminal is determined, the abnormal data is restored according to the data transmission characteristics of the node in the current data transmission link, and the singular data packet is continuously traced.
2. According to the intelligent data lineage tracking method of claim 1, It is characterized in that Step S200 also includes a data marking method: S210: clarifying the node position of the current data terminal in the data transmission link, and matching one or more marks of the corresponding data collection terminal, data processing terminal, data transmission terminal and data receiving terminal; S220: corresponding character spaces are respectively allocated at the beginning of corresponding data, the data are marked using the marks on the corresponding data terminals, and as the marks increase, the marks are superimposed in sequence at the end of the data.
3. According to claim 2, an intelligent data lineage tracking method, It is characterized in that Step S220 also includes: S221: Allocate corresponding character space at the end of corresponding data, and superimpose multiple marks at the end of the data.
