Big data comparison method, device and equipment based on bloom filter
Big data comparison through Bloom filters solves the problem of waste of resources and high cost of massive data comparison in mobile communication systems, and achieves efficient data security verification.
Patent Information
- Application Number
- CN202310332227.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, the comparison of massive data generated by mobile communication systems requires a large amount of storage resources and computing resources, resulting in resource waste and high costs, and hash connections in relational databases increase time and space complexity.
Using a big data comparison method based on Bloom filters, by generating feature strings and storing them in Bloom filters, we can determine the mapping relationship between southbound data and northbound data, and determine whether the data has been tampered with, which reduces the risk of The time and space complexity of the comparison.
It effectively reduces the cost and resource consumption of data comparison, improves data security, and solves the problems of overly complex and high cost data comparison systems in the existing technology.
Smart Images

Figure CN118733836A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data, and in particular to a big data comparison method, device, computing equipment and computer storage medium based on Bloom filter. Background Art
[0002] With the development of mobile Internet technology, mobile communication systems generate massive amounts of measurement data every day, such as PM (Performance Management) and MR (Measurement Report). After the data is collected by the base station, it is processed by the OMC system to generate data files that can be used by other big data systems. In this process, the input data of the OMC system is southbound data, and the output data of the OMC system is northbound data. Both southbound data and northbound data are structured data, consisting of rows and columns. Each column has a unique column name to indicate the meaning of the column data, and each row has a unique key as the unique mark of the row. There is a mapping relationship between southbound data and northbound data. The value of a column in northbound data is calculated based on one or more columns in southbound data. Therefore, southbound data and northbound data generated by southbound data calculation have unique keys.
[0003] Since the OMC system is usually controlled by equipment manufacturers, and the southbound data contains a large number of network quality indicators, there is a risk that the manufacturer will tamper with the output northbound data by controlling the OMC system, causing the northbound data to be distorted. In order to verify the accuracy of the northbound data, it is necessary to compare the southbound and northbound data to determine whether the southbound data and the northbound data conform to the given mapping relationship.
[0004] In the prior art, the comparison technology is mainly based on the hash join of relational databases. By loading the CSV (Comma-Separated Values) file of southbound data and the CSV file of northbound data into the database, the unique key in the southbound data is hashed with the unique key in the northbound data, and the theoretical value of the corresponding field in the northbound data is calculated through the specific field in the southbound data according to the mapping relationship, and then the theoretical value is compared with the actual value of the corresponding field in the northbound data to determine whether the northbound data has been tampered with.
[0005] However, due to the huge number of mobile communication users, the number of cells, the number of data indicator points in the data, and the frequent reporting times, a huge amount of data is generated every day. Based on the existing technology, these data need to be stored and then compared, so a large amount of storage resources are required. In addition, since the hash connection of the relational database is based on memory calculation, in order to meet the computing needs of massive data, a large amount of hardware resources need to be consumed to build MPP (Massively Parallel Processing) or a big data computing platform, and the use of MPP or a big data computing platform will generate network transmission within the platform, increasing the time complexity and space complexity. The data in the relational database is temporary data and can be deleted after the comparison is completed. Therefore, the entire comparison process causes a huge waste of storage resources and computing resources (such as MPP or a big data computing platform with a high cost structure). Summary of the invention
[0006] In view of the above problems, the present invention is proposed to provide a big data comparison method based on Bloom filter and a corresponding big data comparison device based on Bloom filter, computing equipment and computer storage medium that overcome the above problems or at least partially solve the above problems.
[0007] According to one aspect of the present invention, a big data comparison method based on Bloom filter is provided, the method comprising:
[0008] Obtain southbound data and northbound data to be compared;
[0009] Traversing northbound data, generating a first string set according to the northbound data, and storing each first string in the first string set into a Bloom filter;
[0010] Traversing the southbound data, obtaining a southbound unique key corresponding to each row in the southbound data; generating a second string corresponding to each southbound unique key according to a preset mapping relationship between the southbound data and the northbound data, and obtaining a second string set;
[0011] It is determined whether any second character string in the second character string set exists in the Bloom filter. If any second character string does not exist in the Bloom filter, it is determined that the northbound data corresponding to the any second character string is risk data.
[0012] In the above solution, traversing the northbound data and generating a first string set according to the northbound data further includes:
[0013] Traversing the northbound data, obtaining a northbound unique key corresponding to each row in the northbound data;
[0014] Generate a first character string corresponding to the northbound unique key according to the northbound data content of each row in the northbound data;
[0015] Each first character string is added to the first character string set.
[0016] In the above solution, the northbound unique key includes a timestamp, a site ID and a cell ID; the northbound data content of each row includes a timestamp, a site ID, a cell ID, an indicator name and an indicator value.
[0017] In the above scheme, traversing the southbound data to obtain the southbound unique key corresponding to each row in the southbound data; generating a second string corresponding to each southbound unique key according to a preset mapping relationship between the southbound data and the northbound data, and obtaining the second string set further includes:
[0018] Traverse the southbound data and obtain the southbound unique key corresponding to each row in the southbound data;
[0019] According to a preset mapping relationship between the southbound data and the northbound data, at least one theoretical indicator name and a theoretical indicator value of at least one theoretical indicator name corresponding to each southbound unique key are calculated;
[0020] For each theoretical indicator name, generating a second character string corresponding to the southbound unique key according to the southbound unique key corresponding to the theoretical indicator name, the theoretical indicator name, and the theoretical indicator value of the theoretical indicator name;
[0021] Each second character string is added to the set of second characters.
[0022] In the above solution, the southbound unique key includes a timestamp, a site ID, and a cell ID.
[0023] In the above solution, the preset mapping relationship records at least one column in the southbound data on which the indicator value calculation process of the indicator name of each column in the northbound data is based.
[0024] In the above solution, the southbound data and the northbound data are data in multiple rows and columns.
[0025] According to another aspect of the present invention, a big data comparison device based on Bloom filter is provided, comprising: an acquisition module, a first traversal module, a second traversal module and a comparison module; wherein,
[0026] The acquisition module is used to acquire southbound data and northbound data to be compared;
[0027] The first traversal module is used to traverse the northbound data, generate a first string set according to the northbound data, and store each first string in the first string set into a Bloom filter;
[0028] The second traversal module is used to traverse the southbound data to obtain the southbound unique key corresponding to each row in the southbound data; generate a second string corresponding to each southbound unique key according to a preset mapping relationship between the southbound data and the northbound data, and obtain a second string set;
[0029] The comparison module is used to determine whether any second string in the second string set exists in the Bloom filter, and if any second string does not exist in the Bloom filter, determine that the northbound data corresponding to any second string is risk data.
[0030] According to another aspect of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0031] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the above-mentioned big data comparison method based on Bloom filter.
[0032] According to another aspect of the present invention, a computer storage medium is provided, in which at least one executable instruction is stored, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned big data comparison method based on Bloom filter.
[0033] According to the technical solution provided by the present invention, the southbound data and northbound data to be compared are obtained; the northbound data is traversed, a first string set is generated according to the northbound data, and each first string in the first string set is stored in a Bloom filter; the southbound data is traversed, and the southbound unique key corresponding to each row in the southbound data is obtained; according to the preset mapping relationship between the southbound data and the northbound data, a second string corresponding to each southbound unique key is generated to obtain a second string set; it is determined whether any second string in the second string set exists in the Bloom filter, and if any second string does not exist in the Bloom filter, the northbound data corresponding to any second string is determined to be risk data. This solves the problem that the data comparison system is too complicated and the cost is too high in the prior art. Since the present invention traverses the southbound data and the northbound data, compares the characteristic strings of the two through the Bloom filter, performs security verification based on the characteristics of the Bloom filter, and determines whether the data has been tampered with, while ensuring the security of the data, the time and space complexity of data comparison is greatly reduced, and the consumption of computing resources is effectively reduced, and the cost of data comparison is reduced.
[0034] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0036] Figure 1 A schematic flow chart of a big data comparison method based on a Bloom filter according to an embodiment of the present invention is shown;
[0037] Figure 2 A schematic diagram of the Bloom filter comparison principle according to an embodiment of the present invention is shown;
[0038] Figure 3 A schematic diagram of a process flow of a northbound data traversal method according to an embodiment of the present invention is shown;
[0039] Figure 4 A schematic diagram of northbound data according to an embodiment of the present invention is shown;
[0040] Figure 5A schematic diagram of a southbound data traversal method flow according to an embodiment of the present invention is shown;
[0041] Figure 6 A schematic diagram of southbound data according to an embodiment of the present invention is shown;
[0042] Figure 7 A schematic diagram of north-south data mapping relationship according to an embodiment of the present application is shown;
[0043] Figure 8 A schematic diagram of a process flow of a big data comparison method according to an embodiment of the present invention is shown;
[0044] Fig. 9 A schematic diagram of a big data comparison algorithm flow chart according to another embodiment of the present invention is shown;
[0045] Fig.10 A structural block diagram of a big data comparison device based on a Bloom filter according to an embodiment of the present invention is shown;
[0046] Fig.11 A schematic structural diagram of a computing device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0047] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0048] Figure 1 FIG. 4 shows a flow chart of a big data comparison method based on a Bloom filter according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0049] Step S101, obtaining southbound data and northbound data to be compared.
[0050] Step S102 , traversing northbound data, generating a first string set according to the northbound data, and storing each first string in the first string set into a Bloom filter.
[0051] Step S103, traverse the southbound data to obtain the southbound unique key corresponding to each row in the southbound data; generate a second string corresponding to each southbound unique key according to a preset mapping relationship between the southbound data and the northbound data, and obtain a second string set.
[0052] Step S104, determining whether any second character string in the second character string set exists in the Bloom filter; if any second character string does not exist in the Bloom filter, determining that the northbound data corresponding to any second character string is risk data.
[0053] Preferably, the working principle of the Bloom filter is that when an element is added to a set, the element is mapped to K points in a bit array through K hash functions, and the corresponding positions of these points are set to 1. When judging whether a certain element is included in a set, the corresponding positions in the set are determined through the hash function of the element, and the values of these positions are checked: if the value is 0, it means that the element is definitely not included in the set.
[0054] like Figure 2 As shown, Figure 2 A schematic diagram of the Bloom filter comparison principle according to an embodiment of the present invention is shown. Hash 1, Hash 2, and Hash 3 are hash functions of elements. As can be seen from the figure, at the position in the bit array corresponding to the hash function, the value is 1, which means that the set contains element 1 and element 2.
[0055] According to the big data comparison method based on Bloom filter provided in this embodiment, the southbound data and northbound data to be compared are obtained; the northbound data is traversed, a first string set is generated according to the northbound data, and each first string in the first string set is stored in the Bloom filter; the southbound data is traversed, and the southbound unique key corresponding to each row in the southbound data is obtained; according to the preset mapping relationship between the southbound data and the northbound data, a second string corresponding to each southbound unique key is generated to obtain a second string set; it is determined whether any second string in the second string set exists in the Bloom filter, and if any second string does not exist in the Bloom filter, the northbound data corresponding to any second string is determined to be risk data. This solves the problem that the data comparison system in the prior art is too complicated and the cost is too high. Since the present invention traverses the southbound data and the northbound data, compares the characteristic strings of the two through the Bloom filter, performs security verification based on the characteristics of the Bloom filter, and determines whether the data has been tampered with, while ensuring the security of the data, the time and space complexity of data comparison is greatly reduced, and the consumption of computing resources is effectively reduced, and the cost of data comparison is reduced.
[0056] Figure 3 FIG. 4 shows a flow chart of a method for traversing northbound data according to an embodiment of the present invention. Figure 3 As shown, the method comprises the following steps:
[0057] Step S301, traverse the northbound data to obtain the northbound unique key corresponding to each row in the northbound data.
[0058] Specifically, each row in the northbound data contains specific fields. A specific field combination of each row is selected to generate a northbound unique key corresponding to the row.
[0059] Preferably, the northbound data is structured data of x rows and y columns; the northbound unique key includes a timestamp, a site ID, and a cell ID;
[0060] The northbound unique key can be as follows Figure 4 As shown, Figure 4 FIG. 4 shows a schematic diagram of northbound data according to an embodiment of the present invention. Each row of the northbound data includes a site ID, a cell ID and a timestamp. Figure 4 Taking the first line as an example, the site ID corresponds to the field "1544239", the cell ID corresponds to the field "00000", and the timestamp corresponds to the field "2022 / 4 / 1318:00".
[0061] Step S302: Generate a first character string corresponding to the northbound unique key according to the northbound data content of each row in the northbound data.
[0062] Preferably, the northbound data content of each row includes a timestamp, a site ID, a cell ID, an indicator name and an indicator value.
[0063] Based on the timestamp, site ID, and cell ID in the northbound unique key, determine the row containing the northbound unique key from the northbound data; then determine the corresponding indicator name and indicator value based on the northbound data content of the row, and generate the first character string containing the timestamp, site ID, cell ID, indicator name and indicator value.
[0064] Step S303: adding each first character string to the first character string set.
[0065] Specifically, the first character strings determined according to each row are grouped together to generate the first character string set; and then, according to the first character string set, each first character string therein is stored in the Bloom filter.
[0066] Preferably, the first character string is stored as follows: Figure 2 As shown, in the Bloom filter, the corresponding position of each of the first strings is set to 1 through multiple hash functions.
[0067] According to the above method, the traversal of northbound data can be completed. Then the traversal of southbound data is carried out. The specific process can be as follows: Figure 5 As shown, Figure 5A schematic flow chart of a southbound data traversal method according to an embodiment of the present invention is shown.
[0068] Step S501, traverse the southbound data to obtain the southbound unique key corresponding to each row in the southbound data.
[0069] Specifically, each row in the southbound data contains specific fields. A specific field combination of each row is selected to generate a southbound unique key corresponding to the row.
[0070] Preferably, the southbound data is structured data of m rows and n columns; the southbound unique key includes a timestamp, a site ID and a cell ID;
[0071] The southbound unique key can be as follows: Figure 6 As shown, Figure 6 FIG. 4 shows a schematic diagram of southbound data according to an embodiment of the present invention; wherein each row of the southbound data includes a timestamp, a site ID, and a cell ID. Figure 6 Taking the first line in as an example, the timestamp corresponds to the field "2022 / 3 / 30 10:00", the site ID corresponds to the field "2106357", and the cell ID corresponds to the field "1".
[0072] Step S502: Calculate at least one theoretical indicator name and at least one theoretical indicator value of the theoretical indicator name corresponding to each of the southbound unique keys according to a preset mapping relationship between the southbound data and the northbound data.
[0073] Specifically, the preset mapping relationship records at least one column in the southbound data on which the indicator value calculation process of the indicator name of each column in the northbound data is based.
[0074] Furthermore, the value of a column in the northbound data is calculated from one or more columns of data in the southbound data, and a value in a row in the northbound data is also calculated from one or more data in the corresponding row in the southbound data.
[0075] Preferably, the preset mapping relationship between the southbound data and the northbound data can be as follows: Figure 7 As shown, Figure 7 A schematic diagram of the north-south data mapping relationship according to an embodiment of the present application is shown.
[0076] Among them, the names of theoretical indicators in the northbound data include: average RRC connection establishment time, maximum RRC connection establishment time, minimum RRC connection establishment time, RRU cell unavailable time, and RRU cell available time.
[0077] Based on the mapping relationship, the average RRC connection establishment time corresponds to M8006C206 and M8006C215 in the southbound data; the maximum RRC connection establishment time corresponds to M8006C206 and M8006C216 in the southbound data; the minimum RRC connection establishment time corresponds to M8006C206 and M8006C217 in the southbound data; the RRU cell unavailable time corresponds to M8306C206 and M8036C218 in the southbound data; the RRU cell available time corresponds to M8306C206 and M8036C219 in the southbound data.
[0078] It can be seen that the average RRC connection establishment time, as a theoretical indicator in the northbound data, corresponds to two columns in the southbound data; at the same time, the M8006C206 column in the southbound data corresponds to three indicator names. That is, each southbound unique key corresponds to at least one indicator name and at least one indicator value of the indicator name;
[0079] Therefore, the indicator name and indicator value calculated based on the preset mapping relationship using the southbound unique key are the theoretical indicator name and theoretical indicator value.
[0080] Step S503: for each theoretical indicator name, according to the southbound unique key corresponding to the theoretical indicator name, the theoretical indicator name and the theoretical indicator value of the theoretical indicator name, generate a second character string corresponding to the southbound unique key.
[0081] Specifically, each of the southbound unique keys is combined with the theoretical indicator name and the theoretical indicator value of the theoretical indicator name calculated based on the southbound unique key to generate the second character string; wherein each of the second character strings contains the timestamp, site ID, cell ID in the corresponding southbound unique key, as well as the theoretical indicator name and the theoretical indicator value of the theoretical indicator name.
[0082] Step S504: adding each second character string to the second character string set.
[0083] Specifically, the second character strings generated based on the southbound unique keys are aggregated to generate the second character string set.
[0084] According to the above method, the first string set and the second string set can be obtained respectively. Based on the first string set and the second string set, data comparison can be performed to complete data security detection, such as Figure 8 As shown, Figure 8 A schematic diagram of a big data comparison method according to an embodiment of the present invention is shown, and the method comprises the following steps:
[0085] Step S801: Determine whether any second character string in the second character string set exists in the Bloom filter.
[0086] Preferably, each second character string is extracted from the second character string set in sequence, and it is determined whether the second character string exists in the Bloom filter.
[0087] The determination method is based on the property of the Bloom filter, searching the second string for a value at a corresponding position in the Bloom filter through a corresponding plurality of hash functions;
[0088] If the values of the corresponding positions are all 1 (no 0), the Bloom filter contains the second string; that is, further illustrating that the first string set stored in the Bloom filter contains the second string;
[0089] If there is 0 in the value of the corresponding position, the Bloom filter does not include the second character string; that is, to further illustrate, the first character string set stored in the Bloom filter does not include the second character string.
[0090] Step S802: If all the second character strings in the second character string set exist in the Bloom filter, the northbound data is safe data.
[0091] Specifically, if after judging all the second strings in the second string set, it is determined that all the second strings exist in the Bloom filter, it means that all the elements of the second string set are the same as those of the first string set, that is, the actual value measured by the northbound data is exactly the same as the theoretical value calculated, so it can be determined that the northbound data may not have been tampered with, and the northbound data is determined to be safe data.
[0092] Step S803: If any of the second character strings does not exist in the Bloom filter, determining that the northbound data corresponding to any of the second character strings is risk data.
[0093] Specifically, if after judging all the second strings in the second string set, it is found that any second string does not exist in the Bloom filter, it means that the elements in the second string set are not completely the same as those in the first string set, that is, the actual value measured by the northbound data is not completely the same as the theoretical value calculated, it means that the northbound data corresponding to any second string may be tampered with, and the northbound data is determined as risky data.
[0094] Through the above method, the comparison between the northbound data and the southbound data can be completed, the data security detection can be completed, and it can be determined whether the data has been tampered with. The specific process can be as follows Fig. 9 As shown, Fig. 9 A schematic diagram of a big data comparison algorithm flow according to another embodiment of the present invention is shown.
[0095] Step S901, obtaining north-south data.
[0096] Step S902, traverse northbound data.
[0097] Step S903: for each row in the northbound data, generate a corresponding string according to the unique key, and put the generated string into the Bloom filter.
[0098] Step S904, traverse southbound data.
[0099] Step S905: For each row in the southbound data, obtain their unique keys and find the corresponding northbound indicator data according to the mapping relationship.
[0100] Step S906, traverse all northbound indicator fields that can be generated, and generate corresponding strings according to the unique key.
[0101] Step S907, determining whether the string exists in the Bloom filter.
[0102] Step S908: The northbound data corresponding to the character string may not have been tampered with.
[0103] Step S909: the northbound data corresponding to the string must have been tampered with.
[0104] Preferably, based on the properties of the Bloom filter, the above-mentioned big data comparison method can be completed to achieve data security detection.
[0105] By traversing southbound data and northbound data, the characteristic strings of the two are compared through Bloom filters, and security verification is performed based on the characteristics of Bloom filters to determine whether the northbound data has been tampered with. While ensuring data security, the time and space complexity of data comparison is greatly reduced, and the consumption of computing resources and the cost of data comparison are effectively reduced.
[0106] Fig.10 FIG. 4 shows a structural block diagram of a big data comparison device based on a Bloom filter according to an embodiment of the present invention. Fig.10 As shown, the device includes: an acquisition module 1001, a first traversal module 1002, a second traversal module 1003 and a comparison module 1004; wherein,
[0107] The acquisition module 1001 is used to acquire southbound data and northbound data to be compared.
[0108] The first traversal module 1002 is used to traverse the northbound data, generate a first string set according to the northbound data, and store each first string in the first string set into a Bloom filter.
[0109] Specifically, the first traversal module 1002 is further used to: traverse the northbound data to obtain the northbound unique key corresponding to each row in the northbound data; generate a first string corresponding to the northbound unique key based on the northbound data content of each row in the northbound data; and add each first string to the first string set.
[0110] Specifically, the northbound unique key includes a timestamp, a site ID, and a cell ID; and the northbound data content of each row includes a timestamp, a site ID, a cell ID, an indicator name, and an indicator value.
[0111] The second traversal module 1003 is used to traverse the southbound data and obtain the southbound unique key corresponding to each row in the southbound data; based on the preset mapping relationship between the southbound data and the northbound data, generate a second string corresponding to each southbound unique key to obtain a second string set.
[0112] Specifically, the second traversal module 1003 is further used to: traverse the southbound data to obtain the southbound unique key corresponding to each row in the southbound data; calculate at least one theoretical indicator name and at least one theoretical indicator value corresponding to each southbound unique key according to a preset mapping relationship between the southbound data and the northbound data; for each theoretical indicator name, generate a second string corresponding to the southbound unique key according to the southbound unique key corresponding to the theoretical indicator name, the theoretical indicator name and the theoretical indicator value of the theoretical indicator name; and add each second string to the second string set.
[0113] Specifically, the southbound unique key includes a timestamp, a site ID, and a cell ID.
[0114] Specifically, the preset mapping relationship records at least one column in the southbound data on which the indicator value calculation process of the indicator name of each column in the northbound data is based.
[0115] Specifically, the southbound data and the northbound data are data in multiple rows and columns.
[0116] The comparison module 1004 is used to determine whether any second string in the second string set exists in the Bloom filter. If any second string does not exist in the Bloom filter, determine that the northbound data corresponding to any second string is risk data.
[0117] According to the big data comparison device based on Bloom filter provided in this embodiment, the southbound data and northbound data to be compared are obtained; the northbound data is traversed, and a first string set is generated according to the northbound data, and each first string in the first string set is stored in the Bloom filter; the southbound data is traversed to obtain the southbound unique key corresponding to each row in the southbound data; according to the preset mapping relationship between the southbound data and the northbound data, a second string corresponding to each southbound unique key is generated to obtain a second string set; it is determined whether any second string in the second string set exists in the Bloom filter, and if any second string does not exist in the Bloom filter, the northbound data corresponding to any second string is determined to be risk data. The technical solution provided by the present invention solves the problem that the data comparison system in the prior art is too complicated and the cost is too high. Since the present invention traverses southbound data and northbound data, compares the characteristic character strings of the two through a Bloom filter, performs security verification based on the characteristics of the Bloom filter, and determines whether the data has been tampered with, it greatly reduces the time and space complexity of data comparison while ensuring the security of the data, effectively reduces the consumption of computing resources, and reduces the cost of data comparison.
[0118] The present invention also provides a non-volatile computer storage medium, which stores at least one executable instruction, and the executable instruction can execute the big data comparison method based on Bloom filter in any of the above method embodiments.
[0119] Fig.11 A schematic diagram of the structure of a computing device according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the computing device.
[0120] like Fig.11 As shown, the computing device may include: a processor (processor) 1102 , a communication interface (Communications Interface) 1104 , a memory (memory) 1106 , and a communication bus 1108 .
[0121] in:
[0122] The processor 1102 , the communication interface 1104 , and the memory 1106 communicate with each other via a communication bus 1108 .
[0123] The communication interface 1104 is used to communicate with other devices such as clients or other servers.
[0124] The processor 1102 is used to execute the program 1110, and specifically can execute the relevant steps in the above-mentioned big data comparison method embodiment based on Bloom filter.
[0125] Specifically, the program 1110 may include program codes, which include computer operation instructions.
[0126] The processor 1102 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0127] The memory 1106 is used to store the program 1110. The memory 1106 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0128] Program 1110 can be specifically used to enable processor 1102 to execute the big data comparison method based on Bloom filter in any of the above-mentioned method embodiments. The specific implementation of each step in program 1110 can refer to the corresponding descriptions in the corresponding steps and units in the above-mentioned big data comparison embodiment based on Bloom filter, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the aforementioned method embodiment, which will not be repeated here.
[0129] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific languages is for disclosing the best mode of the present invention.
[0130] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0131] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those expressly recited in each claim. Rather, as reflected in the claims, inventive aspects lie in less than all of the features of the individual embodiments previously disclosed. Therefore, the claims that follow the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present invention.
[0132] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0133] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.
[0134] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0135] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
Claims
1. A big data comparison method based on Bloom filter, comprising: Obtain southbound data and northbound data to be compared; Traversing northbound data, generating a first string set according to the northbound data, and storing each first string in the first string set into a Bloom filter; Traverse the southbound data and obtain the southbound unique key corresponding to each row in the southbound data; According to a preset mapping relationship between the southbound data and the northbound data, a second string corresponding to each southbound unique key is generated to obtain a second string set; It is determined whether any second character string in the second character string set exists in the Bloom filter. If any second character string does not exist in the Bloom filter, it is determined that the northbound data corresponding to the any second character string is risk data.
2. The method according to claim 1, wherein: The traversing northbound data and generating a first string set according to the northbound data further comprises: Traverse the northbound data to obtain a northbound unique key corresponding to each row in the northbound data; Generate a first character string corresponding to the northbound unique key according to the northbound data content of each row in the northbound data; Each first character string is added to the first character string set.
3. The method according to claim 2, wherein: The northbound unique key includes a timestamp, a site ID, and a cell ID; the northbound data content of each row includes a timestamp, a site ID, a cell ID, an indicator name, and an indicator value.
4. The method according to claim 1, wherein: The southbound data is traversed to obtain a southbound unique key corresponding to each row in the southbound data; According to the preset mapping relationship between the southbound data and the northbound data, a second string corresponding to each southbound unique key is generated, and obtaining the second string set further includes: Traverse the southbound data and obtain the southbound unique key corresponding to each row in the southbound data; According to a preset mapping relationship between the southbound data and the northbound data, at least one theoretical indicator name and a theoretical indicator value of at least one theoretical indicator name corresponding to each southbound unique key are calculated; For each theoretical indicator name, generating a second character string corresponding to the southbound unique key according to the southbound unique key corresponding to the theoretical indicator name, the theoretical indicator name, and the theoretical indicator value of the theoretical indicator name; Each second character string is added to the set of second characters.
5. The method according to claim 1, wherein: The southbound unique key includes a timestamp, a site ID, and a cell ID.
6. The method according to claim 1, wherein: The preset mapping relationship records at least one column in the southbound data on which the indicator value calculation process of the indicator name of each column in the northbound data is based.
7. The method according to any one of claims 1 to 6, wherein: The southbound data and the northbound data are data with multiple rows and columns.
8. A big data comparison device based on Bloom filter, comprising: An acquisition module, a first traversal module, a second traversal module and a comparison module; wherein, The acquisition module is used to acquire southbound data and northbound data to be compared; The first traversal module is used to traverse the northbound data, generate a first string set according to the northbound data, and store each first string in the first string set into a Bloom filter; The second traversal module is used to traverse the southbound data to obtain the southbound unique key corresponding to each row in the southbound data; generate a second string corresponding to each southbound unique key according to a preset mapping relationship between the southbound data and the northbound data, and obtain a second string set; The comparison module is used to determine whether any second string in the second string set exists in the Bloom filter, and if any second string does not exist in the Bloom filter, determine that the northbound data corresponding to any second string is risk data.
9. A computing device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the big data comparison method based on Bloom filter as described in any one of claims 1-7.
10. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute operations corresponding to the big data comparison method based on Bloom filter as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Load ownership network evidence-obtaining method and system based on Bloom filters
CN105429968A
Data comparison method, device and equipment and computer readable storage medium
CN111882310A
Data verification method, system and device based on Bloom filter and medium
CN112800055A
Abnormality detection method and device, computer equipment and storage medium
CN113904811A
Data maintenance method, device and equipment for distributed storage equipment and readable medium
CN114328464A
