A method and apparatus for link anomaly detection

By obtaining and matching link sets from different terminals in the target database, and using similarity thresholds, hash thresholds, and character-by-character matching strategies, the problem of not being able to detect accidental deletion of links in a timely manner is solved, ensuring system stability.

CN115292623BActive Publication Date: 2026-01-16PING AN PAY ELECTRONIC PAYMENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210925459.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-03
Publication Date
2026-01-16
Estimated Expiration
2042-08-03

AI Technical Summary

Technical Problem

Existing technologies cannot detect in a timely and effective manner abnormal situations caused by the accidental deletion of backend links, resulting in abnormal user access and affecting system stability.

Method used

By obtaining the link sets of different terminals from the target database and performing matching processing according to the link matching mapping relationship, link anomaly information is generated when generating difference matching, including strategies such as similarity threshold matching, hash threshold matching and character-by-character matching, to achieve automatic updating and matching.

Benefits of technology

It enables automatic acquisition and matching of link data, timely detection of link loss anomalies, and ensures the stable and reliable operation of system functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115292623B_ABST
    Figure CN115292623B_ABST
Patent Text Reader

Abstract

The application discloses a kind of linking exception detection method and device, it is related to software detection technical field, main purpose is to solve the problem that linking exception causes unable to access situation cannot be detected and found in time effectively. Including: first link set and second link set are obtained from target database according to first time interval, the first link set is updated according to second time interval from the first terminal and is obtained by first link data, and the second link set is updated by second link data according to third time interval and is obtained from the second terminal;According to the matching processing of the first link set and the second link set according to link matching mapping relationship, the mapping relationship between different link sets and different matching strategies is included in the link matching mapping relationship;When the matching result of the first link set and the second link set is difference matching, link exception information is generated, and output is carried out.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application relates to the technical field of software detection, and in particular to a link abnormality detection method and device. BACKGROUND

[0002] During the development of a web backend, some long-term unused links are identified as useless links during code optimization or function reconstruction and are deleted. When a request is sent from a web front end, the deleted links cannot be used to connect to the corresponding addresses, so normal access cannot be achieved. In severe cases, production line accidents may occur, which are unbearable to imagine.

[0003] At present, the problem of link deletion by mistake can only be discovered when a user calls the deleted link and cannot access normally. Developers cannot discover that the link is deleted in advance of the user, so that the access failure caused by the link abnormality cannot be detected and discovered in time and effectively. Therefore, a link abnormality detection mechanism is urgently needed to detect the abnormality of the link, to ensure normal access of the user and to improve the access efficiency of the user. SUMMARY

[0004] Therefore, the application provides a link abnormality detection method and device, which mainly aims to solve the problem that the deleted link cannot be detected and discovered in time and effectively.

[0005] According to an aspect of the application, a link abnormality detection method is provided, which comprises the following steps.

[0006] acquiring a first link set and a second link set from a target database according to a first time interval, the first link set being obtained by updating first link data acquired from a first terminal according to a second time interval, and the second link set being obtained by updating second link data acquired from a second terminal according to a third time interval;

[0007] performing matching processing on the first link set and the second link set according to a link matching mapping relationship, the link matching mapping relationship comprising a mapping relationship between different link sets and different matching strategies;

[0008] when the matching result of the first link set and the second link set is a difference matching, generating link abnormality information and outputting the link abnormality information.

[0009] Further, before the step of acquiring the first link set and the second link set from the target database according to the first time interval, the method further comprises the following steps.

[0010] loading first business running basic data in the first terminal according to the second time interval;

[0011] finding a first link identifier from the first service running basis data, and extracting first link data in the first service running basis data based on the found first link identifier;

[0012] storing and updating the first link data into a first link set in the target database, the first link set corresponding to the first terminal.

[0013] Further, before the first link set and the second link set are acquired from the target database according to the first time interval, the method further comprises:

[0014] loading second service running basis data in the second terminal according to the third time interval;

[0015] finding a second link identifier from the second service running basis data, and extracting second link data in the second service running basis data based on the found second link identifier;

[0016] storing and updating the second link data into a second link set in the target database, the second link set corresponding to the second terminal.

[0017] Further, the method further comprises:

[0018] acquiring a link identifier list matched with service running basis data, the link identifier list storing link identifiers used for marking link data in different service running basis data, to determine the link identifier found in different service running basis data.

[0019] Further, before the first link set and the second link set are matched according to the link matching mapping relationship, the method further comprises:

[0020] receiving an input matching strategy, the matching strategy including at least one of a similarity threshold matching, a hash threshold matching, and a character-by-character matching;

[0021] determining at least one link set corresponding to different terminals, and assigning the matching strategy to any two of the link sets;

[0022] generating a link matching mapping relationship based on any two link sets to which the matching strategy is assigned, to determine a matching strategy of the first link set and the second link set based on the link matching mapping relationship, and to perform matching processing on the first link set and the second link set according to the matching strategy.

[0023] Further, before the at least one link set corresponding to different terminals is determined, and the matching strategy is assigned to any two of the link sets, the method further comprises:

[0024] creating at least one corresponding link set for different terminals in the target database, and initializing the link set to store the link data obtained from the terminal into the corresponding link set;

[0025] The assigning the matching strategy to any two of the link sets comprises:

[0026] selecting any two target link sets from the at least one link set, and assigning the matching strategy according to the link storage amount in the target link set, the target link set being a link set in a non-initialized state.

[0027] Further, after the matching processing of the first link set and the second link set according to the link matching mapping relationship, the method further comprises:

[0028] when the matching result of the first link set and the second link set is no-difference matching, starting a counter to perform time counting of the first time interval, so as to re-perform the step of obtaining the first link set and the second link set from the target database according to the first time interval.

[0029] According to another aspect of the present application, there is provided a link anomaly detection device, comprising:

[0030] an obtaining module, configured to obtain a first link set and a second link set from a target database according to a first time interval, the first link set being obtained by updating first link data obtained from a first terminal according to a second time interval, and the second link set being obtained by updating second link data obtained from a second terminal according to a third time interval;

[0031] a matching module, configured to perform matching processing of the first link set and the second link set according to a link matching mapping relationship, the link matching mapping relationship including a mapping relationship between different link sets and different matching strategies;

[0032] an output module, configured to generate and output link anomaly information when the matching result of the first link set and the second link set is difference matching.

[0033] According to still another aspect of the present application, there is provided a software platform, wherein at least one executable software is configured in the software platform, and the executable software performs operations corresponding to the above-mentioned link anomaly detection method.

[0034] According to yet another aspect of the present application, there is provided a computer device, comprising a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface completing communication with each other through the communication bus.

[0035] The memory is configured to store at least one executable instruction, and the executable instruction is configured to enable the processor to perform operations corresponding to the link anomaly detection method according to any one of claims 1-7.

[0036] By means of the technical solution, the technical solution provided by the embodiment of the application has at least the following advantages:

[0037] The application provides a link anomaly detection method and device, and compared with the prior art, the embodiment of the application obtains a first link set and a second link set from a target database according to a first time interval, the first link set is obtained by updating first link data from a first terminal according to a second time interval, and the second link set is obtained by updating second link data from a second terminal according to a third time interval; the first link set and the second link set are matched according to a link matching mapping relationship, the link matching mapping relationship includes a mapping relationship between different link sets and different matching strategies; when a matching result of the first link set and the second link set is a difference matching, link anomaly information is generated and output. The embodiment of the application realizes automatic acquisition and updating of link data in different terminals and a function of automatic matching according to link data. Due to the continuous automatic updating and matching of the link data, the application can effectively find a link loss anomaly in time, and ensures stable and reliable operation of a system function.

[0038] The above description is only a summary of the technical solution of the application, in order to more clearly understand the technical means of the application, the application can be implemented according to the content of the specification, and in order to make the above and other purposes, characteristics and advantages of the application more obvious and easy to understand, the following specifically describes the embodiment of the application. BRIEF DESCRIPTION OF DRAWINGS

[0039] Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The accompanying drawings are included to provide a description of the preferred embodiments and are not meant to limit the present application. Furthermore, the same reference numerals are used throughout the several drawings to designate the same or similar parts. In the drawings:

[0040] Figure 1 A flow chart of a link anomaly detection method provided by the embodiment of the application is shown;

[0041] Figure 2 A flow chart of another link anomaly detection method provided by the embodiment of the application is shown;

[0042] Figure 3 A flow chart of still another link anomaly detection method provided by the embodiment of the application is shown;

[0043] Figure 4 A flowchart of another link anomaly detection method provided by an embodiment of the present invention is shown;

[0044] Figure 5 This diagram illustrates a block diagram of a link anomaly detection device provided in an embodiment of the present invention.

[0045] Figure 6 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention is shown. Detailed Implementation

[0046] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0047] This invention provides a method for detecting link anomalies, such as... Figure 1 As shown, the method includes:

[0048] 101. Obtain the first set of links and the second set of links from the target database according to the first time interval;

[0049] In the embodiment of the application, the first link set is obtained by updating the first link data from the first terminal according to the second time interval, and the second link set is obtained by updating the second link data from the second terminal according to the third time interval; the first terminal and the second terminal are two different terminal devices, which can be a web front end and a web back end in the development process, and the embodiment of the application does not make specific limitation. The first time interval, the second time interval and the third time interval are used to represent the same or different interval time, which can be set to 10 minutes at the same time, or can be set to 30 minutes, 20 minutes and 10 minutes respectively, and the embodiment of the application does not make specific limitation. The link data obtained by the current execution terminal from the first terminal is stored in the target database in the form of the first link set, and the link data obtained by the current execution terminal from the second terminal is stored in the target database in the form of the second link set. The first time interval, the second time interval and the third time interval can be the same or different time intervals, and the current execution terminal can obtain the first link set from the first terminal every 10 minutes or every 20 minutes; the current execution terminal can obtain the second link set from the second terminal every 15 minutes or every 20 minutes; the current execution terminal can obtain the first link set and the second link set from the target database every 20 minutes or every 30 minutes, and the embodiment of the application does not make specific limitation. Since the time node of the link being mistakenly deleted is unknown, in order to detect the link abnormal information in time, the current execution terminal needs to update the first link set in the target database at the second time interval in the detection process, and update the second link set at the third time interval. The target database is a container for storing data, which can be an Oracle database, a Mysql database or a configuration center, and the embodiment of the application does not make specific limitation. When storing, the data can be directly stored in the form of data, or can be stored in the form of a file, such as a txt file, and the embodiment of the application does not make specific limitation. The position of the target database can be set on the current execution terminal or a remote server, and the position of the target database is not limited in the embodiment of the application.

[0050] 102、According to the link matching mapping relationship, the first link set and the second link set are matched and processed;

[0051] In the embodiment of the present application, the mapping relationship in the link matching mapping relationship includes the mapping relationship between different link sets and different matching strategies. Since there can be multiple services in the first terminal or the second terminal, the links obtained from each service need to be stored in the form of a set separately to obtain different link sets. According to the service needs, a single service can also store links in multiple separate link sets according to different functional modules, which is not limited in the embodiment of the present application. In addition, since the services include but are not limited to security, logistics management, medical services, banking services, e-commerce services, smart home services, and the like, the application scenarios of the link anomaly detection implemented in steps 101-103 in the embodiment of the present application include but are not limited to security protection, Internet of Things management, medical services, financial services, e-commerce, smart home, and the like, to meet the needs of link anomaly detection in different terminals.

[0052] It should be noted that the matching strategy in the link matching mapping relationship in the embodiment of the present application can be configured according to the specific circumstances of each link set. For example, when the number of links contained in the link set is large, the similarity threshold matching strategy can be selected to calculate the similarity of the links and match with the set similarity threshold. When the number of links contained in the link set is small, the character-by-character matching strategy can be selected to match character-by-character according to the character content of the link itself, which is not limited in the embodiment of the present application.

[0053] 103. When the matching result of the first link set and the second link set is difference matching, link anomaly information is generated and output.

[0054] In the embodiment of the present application, difference matching means that there is a result that does not match in the two link sets. For example, when the matching strategy is set to similarity threshold matching, there is a case that the similarity calculated for all links in the second link set in the first link set does not satisfy the set similarity threshold. For another example, when the matching strategy is set to hash threshold matching, there is a case that the hash value calculated for all links in the second link set in the first link set does not satisfy the set hash value threshold, which is not limited in the embodiment of the present application. When the result of difference matching occurs, the current execution terminal generates link anomaly information and outputs it.

[0055] It should be noted that the link anomaly information includes but is not limited to the link data that does not match in the difference matching, the corresponding matching strategy, and the like, which is not limited in the embodiment of the present application. The output form includes but is not limited to a document, a table, a dialog box, and the like, which is not limited in the embodiment of the present application.

[0056] In another embodiment of the present application, in order to further limit and describe, Figure 2As shown, before the step of acquiring the first link set and the second link set from the target database according to the first time interval, the method further comprises:

[0057] 201, loading first service running basic data in the first terminal according to the second time interval;

[0058] In the embodiment of the application, the current execution end loads the first service running basic data from the first terminal according to the second time interval. The service running basic data is used to represent all data supporting the normal operation of the service, including but not limited to code data of the service, configuration data of the service, and interface data of the service, which are not limited in the embodiment of the application.

[0059] 202, finding a first link identifier from the first service running basic data, and extracting first link data in the first service running basic data based on the found first link identifier;

[0060] In the embodiment of the application, the current execution end finds the first link identifier from the first service running data. The link identifier is used to mark the link data, so that the current execution end finds the content of the link part in the numerous code data for extraction. The link identifier can be formed into a link identifier list in an artificial definition manner, and the link identifier is found in the current execution end by searching the content in the identifier list. When the link identifier list is artificially defined, it can be a single symbol, such as “;” and “*”, or multiple symbols, such as “ / / ” and “?!”, which are not limited in the embodiment of the application. After the first link identifier is found in the current execution end, the first link data in the first service running basic data is extracted based on the found first link identifier. The extraction process is to extract the specific link content after the link identifier, including but not limited to host name, port number, path, etc., which are not limited in the embodiment of the application.

[0061] 203, storing and updating the first link data to the first link set in the target database, and the first link set corresponds to the first terminal.

[0062] In the embodiment of the application, since the services in each terminal have operations such as upgrading and rolling back, the link data therein may be accidentally lost in the process of service upgrading or rolling back, so it is necessary to store the latest service link data into the target database for calling by the current execution end. In the process of updating the target database by the current execution end, the first link set and the first terminal are corresponded.

[0063] In the embodiment of the application, in order to extract the content of the link part, the first link identifier is set, and the position of the link part content in the code data is quickly obtained by identifying the position of the first link identifier.

[0064] In another embodiment of the present application, in order to further define and illustrate, as shown in the step of obtaining the first link set and the second link set from the target database according to the first time interval, the method further comprises: Figure 3

[0065] 301, loading the second service running basic data in the second terminal according to the third time interval;

[0066] In the embodiment of the present application, the current execution end loads the second service running basic data from the second terminal according to the third time interval. The service running basic data includes but is not limited to code data of the service, configuration data of the service, and interface data of the service, which are not limited in the embodiment of the present application.

[0067] 302, finding the second link identifier from the second service running basic data, and extracting the second link data in the second service running basic data based on the found second link identifier;

[0068] In the embodiment of the present application, the current execution end finds the second link identifier from the second service running data. The link identifier is used to mark the link data, so that the current execution end finds the content of the link part in the numerous code data for extraction. The link identifier can be formed in a link identifier list in an artificial definition manner, and the current execution end finds the content in the identifier list when finding the link identifier. The link identifier list can be a single symbol such as “;” and “*”, or multiple symbols such as “ / / ” and “?!”, which are not limited in the embodiment of the present application. After the current execution end finds the second link identifier, the second link data in the second service running basic data is extracted based on the found second link identifier. The extraction process is to extract the specific link content after the link identifier, including but not limited to host name, port number, path, etc., which are not limited in the embodiment of the present application.

[0069] 303, storing and updating the second link data to the second link set in the target database, the second link set corresponding to the second terminal.

[0070] In the embodiment of the present application, since the services in each terminal have operations such as upgrading and rolling back, the link data therein may be accidentally lost in the process of service upgrading or rolling back, so it is necessary to store the latest service link data into the target database for calling by the current execution end. In the process of updating the target database by the current execution end, the second link set and the second terminal are corresponded.

[0071] ​In the embodiment of the present application, in order to extract the content of the link part, a second link identifier is set, and the position of the link part in the code data is quickly obtained by identifying the position of the second link identifier.

[0072] In another embodiment of the present application, in order to further limit and illustrate, the method further comprises:

[0073] Obtaining a link identifier list matched with the business running basic data.

[0074] In the embodiment of the present application, in order to enable the current execution end to find the link based on the searching method, a link identifier list matched with the business running basic data is set. The current execution end obtains the link identifier list matched with the business basic data. The link identifier list stores link identifiers used for marking link data in different business running basic data, so as to determine the link identifier searched in different business running basic data.

[0075] It should be noted that, since the business basic data is artificially configured or automatically generated data, the business basic data of each business may be different, and therefore it is necessary to configure a corresponding link identifier list for each different business to determine the link identifier content searched in different business running basic data. The link identifier list includes at least one link identifier, and the link identifier can be a single symbol or multiple symbols, which is not limited in the embodiment of the present application.

[0076] In another embodiment of the present application, in order to further limit and illustrate, as shown in Figure 4 Before the step of matching the first link set and the second link set according to the link matching mapping relationship, the method further comprises:

[0077] 401、receiving the matched strategy;

[0078] In the embodiment of the present application, in order to optimize the matching effect between the first link set and the second link set and accelerate the matching efficiency of the two, different matching strategies are set. The matching strategy includes at least one of a similarity threshold matching, a hash threshold matching, and a character-by-character matching 。The current execution end receives a matching strategy input by a user, and the user can input according to the requirements of different businesses when inputting. For a single business, the user can also input different matching strategies according to different function modules, for example, a similarity threshold matching matching strategy can be input for a financial service business, a similarity threshold matching matching strategy can also be configured for a deposit module in the financial service business, a hash threshold matching matching strategy can be configured for a loan module therein, and a character one-by-one matching matching strategy can be configured for a financial module therein, and the embodiments of the present application are not limited thereto. When the user inputs the matching strategy, one or more of the similarity threshold matching, the hash threshold matching and the character one-by-one matching can be selected as needed, and the embodiments of the present application are not limited thereto.

[0079] 402、determine at least one link set corresponding to different terminals, and assign the matching strategy to any two of the link set;

[0080] In the embodiments of the present application, since each terminal can have multiple businesses, each terminal corresponds to multiple link sets. For example, the web front end is provided with business A, business B, business C and the like, and the web front end corresponds to a link set of business A, a link set of business B, a link set of business C and the like. The web back end is provided with business A, business B, business C and the like, and the web back end corresponds to a link set of business A, a link set of business B, a link set of business C and the like, and the embodiments of the present application are not limited thereto. The current execution end determines at least one corresponding link set from different terminals, for example, a link set of business A is determined from the web front end and the web back end. Since business A can include multiple function modules such as function module 1, function module 2 and function module 3, each function module has a separate link set, and the current execution end matches a character one-by-one matching matching strategy for the link set of function module 1 in the web front end and the link set of function module 1 in the web back end, or matches a similarity threshold matching matching strategy for the link set of function module 2 in the web front end and the link set of function module 2 in the web back end, and the embodiments of the present application are not limited thereto.

[0081] 403、generate a link matching mapping relationship based on any two link sets to which the matching strategy is assigned, to determine the matching strategy of the first link set and the second link set based on the link matching mapping relationship to perform matching processing.

[0082] In the embodiment of the present application, the current execution end generates a link matching mapping relationship based on any two link sets of the complete distribution matching strategy, and the link matching mapping relationship is used to represent the matching strategy used by the corresponding two link sets in different terminals when matching link data. The matching strategy is assigned to any two of the link sets of a single service or a single function module of different terminals, such as: "link set of web front-end service A, link set of web back-end service A→similarity threshold matching", "link set of function module 2 in web front-end service B, link set of function module 2 in web back-end service B→hash threshold matching", wherein "→" represents a specific mapping relationship, which is not limited in the embodiment of the present application. After the current execution end obtains the link matching mapping relationship, the matching strategy corresponding to the first link set and the second link set is directly obtained based on the link matching mapping relationship.

[0083] In another embodiment of the present application, in order to further limit and illustrate, before the step of determining at least one link set corresponding to different terminals and assigning the matching strategy to any two of the link sets, the method further comprises:

[0084] creating at least one corresponding link set for different terminals in the target database, and initializing the link set to store and update the link data obtained from the terminal into the corresponding link set;

[0085] In the embodiment of the present application, since different terminals have one or more services, each service has one or more function modules, in order to avoid confusion of the links obtained by each service or each function module, the number of link sets is created in a targeted manner. Therefore, the current execution end creates one or more link sets corresponding to different services or different function modules of a service in the target database. After the link set is created, the created link set is initialized, such as being initialized as an empty set, and the initialization process can be set artificially, which is not limited in the embodiment of the present application. After the link set is initialized, the current execution end stores the link data obtained from the terminal into the corresponding link set, and updates the initialized link set.

[0086] The step of assigning the matching strategy to any two of the link sets comprises:

[0087] selecting any two target link sets from the at least one link set, and assigning the matching strategy according to the link storage amount in the target link set;

[0088] In the embodiment of the present application, the current execution end selects any two target link sets from the at least one link set, and since the target link set needs to be assigned a matching strategy and then a matching operation is performed on the matching strategy, the target link set should be updated with the link data of the specific service obtained from the terminal, and cannot be empty or in an initialization state. In assigning the matching strategy, the specific matching operation is performed according to the size of the specific link storage in the link set, which is not specifically limited in the embodiment of the present application.

[0089] In another embodiment of the present application, in order to further limit and illustrate, after the step of performing matching processing on the first link set and the second link set according to the link matching mapping relationship, the method further comprises:

[0090] When the matching result of the first link set and the second link set is no-difference matching, a counter is started to perform time counting of the first time interval, so as to re-perform the step of obtaining the first link set and the second link set from the target database according to the first time interval.

[0091] In the embodiment of the present application, in order to realize automatic cyclic detection of the difference between the first link set and the second link set at the first time interval, a counter is set to perform time counting. When the current execution end matches the first link set and the second link set, it is found that the two link sets are completely matched and there is no unmatched case, and the software counter needs to be started to count. When the value of the software counter reaches the time of the first time interval, such as 30 minutes, 1 hour, etc., the embodiment of the present application does not make specific limitation. The current execution end re-obtains the first link set and the second link set from the target database according to the first time interval, and performs a new round of link anomaly detection.

[0092] The embodiment of the present application provides a link anomaly detection method. Compared with the prior art, the embodiment of the present application obtains the first link set and the second link set from the target database according to the first time interval, the first link set is obtained by updating the first link data obtained from the first terminal according to the second time interval, and the second link set is obtained by updating the second link data obtained from the second terminal according to the third time interval; the first link set and the second link set are matched according to the link matching mapping relationship, the link matching mapping relationship includes the mapping relationship between different link sets and different matching strategies; when the matching result of the first link set and the second link set is difference matching, link anomaly information is generated and output. The automatic acquisition and updating of link data in different terminals are realized, and the function of automatic matching according to the link data is realized. Due to the continuous automatic updating and matching of the link data, the abnormal situation of link loss can be found in time and effectively, and the stable and reliable operation of the system function is ensured.

[0093] Further, as the implementation of the method described above Figure 1 The embodiment of the present application provides a link anomaly detection device, as shown in the figure, which comprises: Figure 5

[0094] The acquisition module 51 is configured to acquire a first link set and a second link set from a target database according to a first time interval, the first link set is obtained by updating first link data acquired from a first terminal according to a second time interval, and the second link set is obtained by updating second link data acquired from a second terminal according to a third time interval;

[0095] The matching module 52 is configured to perform matching processing on the first link set and the second link set according to a link matching mapping relationship, and the link matching mapping relationship comprises a mapping relationship between different link sets and different matching strategies;

[0096] The output module 53 is configured to generate link anomaly information and output the link anomaly information when a matching result of the first link set and the second link set is a difference matching.

[0097] Further, the device further comprises:

[0098] The first data loading module is configured to load first business operation basic data in the first terminal according to the second time interval;

[0099] The first data extraction module is configured to find a first link identifier from the first business operation basic data, and extract first link data in the first business operation basic data based on the found first link identifier;

[0100] The first data storage module is configured to store and update the first link data to the first link set in the target database, and the first link set corresponds to the first terminal.

[0101] Further, the device further comprises:

[0102] The second data loading module is configured to load second business operation basic data in the second terminal according to the third time interval;

[0103] The second data extraction module is configured to find a second link identifier from the second business operation basic data, and extract second link data in the second business operation basic data based on the found second link identifier;

[0104] ​A second data storage module is configured to update the second link data to a second link set in the target database, and the second link set corresponds to the second terminal.

[0105] Further, the apparatus further comprises:

[0106] A list obtaining module is configured to obtain a list of link identifiers matched with the business operation basic data, and the list of link identifiers stores link identifiers used for marking link data in different business operation basic data, so as to determine the link identifiers searched in different business operation basic data.

[0107] Further, the apparatus further comprises:

[0108] A receiving module is configured to receive a matching strategy, and the matching strategy comprises at least one of similarity threshold matching, hash threshold matching, and character-by-character matching.

[0109] A distribution module is configured to determine at least one link set corresponding to different terminals, and distribute the matching strategy to any two of the link sets.

[0110] A generation module is configured to generate a link matching mapping relationship based on any two link sets to which the matching strategy is distributed, and determine that the matching strategy of the first link set and the second link set is matched based on the link matching mapping relationship.

[0111] Further, the apparatus further comprises:

[0112] A creation and update module is configured to create at least one corresponding link set for different terminals in the target database, initialize the link set, and update link data obtained from the terminals to the corresponding link set.

[0113] The distribution module further comprises a selection unit configured to select any two target link sets from at least one link set, and distribute the matching strategy according to the link storage amount in the target link set, and the target link set is a link set in a non-initialization state.

[0114] Further, the apparatus further comprises:

[0115] A timing module is configured to start a counter to perform time counting of the first time interval when the matching result of the first link set and the second link set is no-difference matching, so as to re-perform the step of obtaining the first link set and the second link set from the target database according to the first time interval.

[0116] The embodiment of the present application provides a link abnormality detection device, compared with the prior art, the embodiment of the present application obtains a first link set and a second link set from a target database according to a first time interval, the first link set is obtained by updating first link data from a first terminal according to a second time interval, and the second link set is obtained by updating second link data from a second terminal according to a third time interval;The first link set and the second link set are matched according to a link matching mapping relationship, the link matching mapping relationship includes the mapping relationship between different link sets and different matching strategies;When the matching result of the first link set and the second link set is difference matching, link abnormality information is generated and output. The automatic acquisition and updating of link data in different terminals are realized, and the function of automatic matching according to link data is realized. Due to the continuous automatic updating and matching of link data, the abnormal situation of link loss can be found in time and effectively, and the stable and reliable operation of the system function is ensured.

[0117] According to an embodiment of the present application, a software platform is provided, and at least one executable instruction is configured in the software platform, and the computer executable instruction can execute the link abnormality detection method in any method embodiment.

[0118] Figure 6 A structural schematic diagram of a computer device according to an embodiment of the present application is shown, and specific embodiments of the present application do not limit the specific implementation of the computer device.

[0119] As shown in Figure 6 The computer device can include a processor 602, a communications interface 604, a memory 606 and a communications bus 608.

[0120] The processor 602, the communications interface 604 and the memory 606 can communicate with each other through the communications bus 608.

[0121] The communications interface 604 is used for communicating with network elements of other devices, such as clients or other servers.

[0122] The processor 602 is used for executing the program 610, and specifically can execute related steps in the processing method of the public service data.

[0123] Specifically, the program 610 can include program code, and the program code includes computer operation instructions.

[0124] The processor 602 can be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to perform the embodiments of the present application. The computer device can include one or more processors of the same type or different types, such as one or more CPUs and one or more ASICs.

[0125] The memory 606 is configured to store programs 610. The memory 606 can include a high-speed RAM memory, and can further include a non-volatile memory, such as at least one disk memory.

[0126] The programs 610 can be specifically configured to cause the processor 602 to perform the following operations:

[0127] acquire a first link set and a second link set from a target database according to a first time interval, the first link set being updated according to a second time interval by acquiring first link data from a first terminal, and the second link set being updated according to a third time interval by acquiring second link data from a second terminal;

[0128] perform matching processing on the first link set and the second link set according to a link matching mapping relationship, the link matching mapping relationship including mapping relationships between different link sets and different matching strategies;

[0129] when the matching result of the first link set and the second link set is a difference matching, generate and output link exception information.

[0130] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be realized by general computing devices, which can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be realized by program codes executable by computing devices, so that they can be stored in storage devices and executed by computing devices, and in some cases, the steps shown or described can be executed in different order, or they can be manufactured into individual integrated circuit modules, or multiple modules or steps can be manufactured into a single integrated circuit module. Therefore, the present application is not limited to any specific combination of hardware and software.

[0131] The above merely provides the preferred embodiments of the present application, and is not used to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the principles and technical scope of the present application shall fall into the scope of the present application.

Claims

1. A method of link anomaly detection, characterized by, comprising obtaining a first link set and a second link set from a target database according to a first time interval, the first link set being updated according to a second time interval by obtaining first link data from a first terminal, and the second link set being updated according to a third time interval by obtaining second link data from a second terminal; performing matching processing on the first link set and the second link set according to a link matching mapping relationship, the link matching mapping relationship including a mapping relationship between different link sets and different matching strategies; the matching strategies are configured according to specific circumstances of different link sets; when the matching result of the first link set and the second link set is a difference matching, generating and outputting link exception information; before the matching processing on the first link set and the second link set according to the link matching mapping relationship, the method further comprises: receiving an input matching strategy, the matching strategy including at least one of a similarity threshold matching, a hash threshold matching, and a character-by-character matching; determining at least one link set corresponding to different terminals, and assigning the matching strategy to any two of the link sets; generating a link matching mapping relationship based on any two link sets to which the matching strategy is assigned, so as to determine the matching strategy of the first link set and the second link set based on the link matching mapping relationship for matching processing.

2. The method of claim 1, wherein, before the obtaining of the first link set and the second link set from the target database according to the first time interval, the method further comprises: loading first business operation basic data in the first terminal according to the second time interval; finding a first link identifier from the first business operation basic data, and extracting first link data in the first business operation basic data based on the found first link identifier; storing and updating the first link data to the first link set in the target database, the first link set corresponding to the first terminal.

3. The method of claim 1, wherein, before the obtaining of the first link set and the second link set from the target database according to the first time interval, the method further comprises: loading second business operation basic data in the second terminal according to the third time interval; finding a second link identifier from the second business operation basic data, and extracting second link data in the second business operation basic data based on the found second link identifier; storing and updating the second link data to the second link set in the target database, the second link set corresponding to the second terminal.

4. The method according to claim 2 or 3, characterized in that, the method further comprises: obtaining a link identifier list matched with business operation basic data, the link identifier list storing link identifiers in different business operation basic data for marking link data, so as to determine the link identifiers found in different business operation basic data.

5. The method of claim 1, wherein, before the determining of at least one link set corresponding to different terminals and the assigning of the matching strategy to any two of the link sets, the method further comprises: creating at least one corresponding link set for different terminals in the target database, and initializing the link set to store the link data obtained from the terminal into the corresponding link set; the assigning the matching strategy to any two of the link sets comprises: selecting any two target link sets from the at least one link set, and assigning the matching strategy according to the link storage amount in the target link set, the target link set being a link set in a non-initialized state.

6. The method according to any one of claims 1 to 5, characterized in that, after the matching processing of the first link set and the second link set according to the link matching mapping relationship, the method further comprises: when the matching result of the first link set and the second link set is no-difference matching, starting a counter to perform time counting of the first time interval, to re-perform the steps of obtaining the first link set and the second link set from the target database according to the first time interval.

7. A link anomaly detection apparatus characterized by comprising: comprises: an obtaining module, configured to obtain a first link set and a second link set from a target database according to a first time interval, the first link set being obtained by updating first link data obtained from a first terminal according to a second time interval, and the second link set being obtained by updating second link data obtained from a second terminal according to a third time interval; a matching module, configured to perform matching processing of the first link set and the second link set according to a link matching mapping relationship, the link matching mapping relationship comprising a mapping relationship between different link sets and different matching strategies; the matching strategy being configured according to the specific circumstances of different link sets; an output module, configured to generate link abnormal information and output the link abnormal information when the matching result of the first link set and the second link set is difference matching. the device further comprises: a receiving module, configured to receive an input matching strategy, the matching strategy comprising at least one of a similarity threshold matching, a hash threshold matching, and a character-by-character matching; an assigning module, configured to determine at least one link set corresponding to different terminals, and to assign the matching strategy to any two of the link sets; a generating module, configured to generate a link matching mapping relationship based on any two link sets to which the matching strategy is assigned, and to determine the matching strategy of the first link set and the second link set based on the link matching mapping relationship to perform matching processing.

8. A software platform, wherein at least one executable software is configured in the software platform, and the executable software performs operations corresponding to the link abnormality detection method according to any one of claims 1-6.

9. A computer device, comprising a processor, a memory, a communication interface, and a communication bus, the processor, the memory, and the communication interface performing communication with each other through the communication bus; the memory is configured to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the link abnormality detection method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Method and device for processing resource data

    CN108011934A

  • AC search optimization method and device for URL path matching

    CN111061972A