An address library checking method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202311042063.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-17
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-08-17
AI Technical Summary
目前,IP地址库大多通过购买获得,但由于不同厂家所提供的IP地址库中的数据差异比较大,在购买IP地址库后,无法确定所购买的IP地址库的准确性,在所购买的IP地址库准确性不高时,在服务用户时可能会影响到用户的使用体验
[0046]本申请实施例提供的上述技术方案与现有技术相比具有如下优点:本申请实施例提供的该方法,通过获取目标设备对应的第一版本类型IP地址和第二版本类型IP地址时,确定目标地址库是否存储有第一版本类型IP地址对应的第一目标属性信息和第二版本类型IP地址对应的属性信息,在目标地址库中存储有第一目标属性信息和第二属性信息时,根据第一目标属性信息和第二目标属性信息,对目标地址库进行校验,以得到目标地址库对应的目标校验结果,从而利用同一目标设备不同版本类型的IP地址对应的属性信息实现了目标地址库的校验,从而实现了目标地址库的准确评估。
Smart Images

Figure CN117176695B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to an address database verification method, apparatus, electronic device, and storage medium. Background Technology
[0002] To better serve users, it's typically necessary to use IP address databases to identify users' geographic location and carrier information, ensuring that resources from the same region and carrier are used to provide services. Currently, most IP address databases are obtained through purchase. However, due to significant differences in data between IP address databases provided by different vendors, the accuracy of the purchased database cannot be guaranteed. Inaccurate purchased IP address databases may negatively impact the user experience. Summary of the Invention
[0003] In view of this, in order to solve the above-mentioned technical problems or some of the technical problems, the present invention provides an address database verification method, apparatus, electronic device and storage medium.
[0004] Firstly, this application provides an address database verification method, including:
[0005] Obtain the first version type IP address and the second version type IP address corresponding to the target device;
[0006] Determine whether the target address database stores the first target attribute information corresponding to the first version type IP address and the second target attribute information corresponding to the second version type IP address;
[0007] When the target address database stores the first target attribute information and the second target attribute information, the target address database is verified based on the first target attribute information and the second target attribute information to obtain the target verification result corresponding to the target address database.
[0008] In an optional implementation, the method further includes:
[0009] When the target address database stores the first target attribute information but not the second target attribute information, the second target attribute information is determined based on the first target attribute information to complete the update of the target address database; or,
[0010] When the target address database stores the second target attribute information but not the first target attribute information, the first target attribute information is determined based on the second target attribute information to complete the update of the target address database.
[0011] In an optional implementation, determining the second target attribute information based on the first target attribute information to update the target address database includes:
[0012] The first target attribute information is determined as the second target attribute information to complete the update of the target address database; or,
[0013] The first interface information is determined based on the first target attribute information corresponding to the first version type IP address and the second version type IP address;
[0014] Determine the target terminal corresponding to the target address database;
[0015] The first interface information is sent to the target terminal so that the target terminal displays the first interface corresponding to the first interface information;
[0016] Receive first operation information sent by the target terminal for the first interface;
[0017] Based on the first operation information, the second target attribute information is determined to complete the update of the target address database.
[0018] In an optional implementation, the step of determining the first target attribute information based on the second target attribute information to complete the update of the target address database includes:
[0019] The second target attribute information is determined as the first target attribute information to complete the update of the target address database; or,
[0020] The second interface information is determined based on the second target attribute information corresponding to the second version type IP address and the first version type IP address;
[0021] Determine the target terminal corresponding to the target address database;
[0022] The first target display data is sent to the target terminal so that the target terminal displays the second interface corresponding to the second interface information;
[0023] Receive second operation information sent by the target terminal for the second interface;
[0024] Based on the second operation information, the first target attribute information is determined to complete the update of the target address database.
[0025] In an optional implementation, the step of verifying the target address database based on the first target attribute information and the second target attribute information to obtain the target verification result corresponding to the target address database includes:
[0026] Determine whether the first target attribute information and the second target attribute information are consistent;
[0027] When the first target attribute information and the second target attribute information are inconsistent, the target verification result is determined to be the first verification result, which is used to characterize the error in the target address library.
[0028] In an optional implementation, the method further includes:
[0029] When the target verification result is the first verification result, the target terminal corresponding to the target address database is determined;
[0030] The first verification result is sent to the target terminal so that the target terminal displays the first verification result;
[0031] Receive target adjustment information sent by the target terminal regarding the first verification result;
[0032] The target attribute information and / or the second target attribute information are processed according to the target adjustment information to complete the update of the target address database.
[0033] In an optional implementation, the method further includes:
[0034] When the target verification result is the first verification result, the correspondence between the first version type IP address, the second version type IP address and the target verification result is stored;
[0035] When a preset period is reached, all target verification results that meet preset conditions within the preset period are determined. The preset conditions include: the first version type IP address and the second version type IP address corresponding to each target verification result are different.
[0036] Determine the number of targets that satisfy all the preset conditions for the target verification results;
[0037] Based on the number of targets, determine the target accuracy corresponding to the target address database;
[0038] Determine the target terminal corresponding to the target address database;
[0039] The target accuracy is sent to the target terminal so that the target terminal can display the target accuracy.
[0040] Secondly, this application provides an address database verification device, comprising:
[0041] The acquisition module is used to acquire the first version type IP address and the second version type IP address corresponding to the target device;
[0042] The determination module is used to determine whether the target address database stores the first target attribute information corresponding to the first version type IP address and the second target attribute information corresponding to the second version type IP address;
[0043] The verification module is used to verify the target address database based on the first target attribute information and the second target attribute information when the target address database stores the first target attribute information and the second target attribute information, so as to obtain the target verification result corresponding to the target address database.
[0044] Thirdly, this application provides an electronic device, including a processor and a memory, wherein the processor is configured to execute an address database verification program stored in the memory to implement the address database verification method as described above.
[0045] Fourthly, this application provides a storage medium storing one or more programs that can be executed by one or more processors to implement the address database verification method described above.
[0046] Compared with the prior art, the above-mentioned technical solution provided in this application has the following advantages: The method provided in this application, when obtaining the first version type IP address and the second version type IP address corresponding to the target device, determines whether the target address database stores the first target attribute information corresponding to the first version type IP address and the attribute information corresponding to the second version type IP address. When the first target attribute information and the second target attribute information are stored in the target address database, the target address database is verified according to the first target attribute information and the second target attribute information to obtain the target verification result corresponding to the target address database. Thus, the target address database is verified by using the attribute information corresponding to the IP addresses of different version types of the same target device, thereby achieving accurate evaluation of the target address database. Attached Figure Description
[0047] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0048] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0049] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0050] Figure 1 A flowchart illustrating an address database verification method provided in an embodiment of this application;
[0051] Figure 2 A flowchart illustrating another address database verification method provided in this application embodiment;
[0052] Figure 3 A schematic diagram of the structure of an address database verification device provided in an embodiment of this application;
[0053] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0054] In the attached diagrams above:
[0055] 10. Acquisition Module; 20. Confirmation Module; 30. Verification Module;
[0056] 400. Electronic device; 401. Processor; 402. Memory; 4021. Operating system; 4022. Application program; 403. User interface; 404. Network interface; 405. Bus system. Detailed Implementation
[0057] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0058] The following disclosure provides numerous different embodiments or examples for implementing various structures of the invention. To simplify the disclosure of this application, specific examples of components and arrangements are described below. Of course, these are merely examples and are not intended to limit the invention. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0059] refer to Figure 1 , Figure 1This is a flowchart illustrating an address database verification method provided in an embodiment of this application. The address database verification method provided in this application includes the following steps:
[0060] S101: Obtain the first version type IP address and the second version type IP address corresponding to the target device.
[0061] In this embodiment, the executing entity can be a server. The target device can be understood as a terminal device running the target application, such as a mobile phone or tablet. The target application can be a video application, a social application, etc. The first version type IP address is the target device's IPv4 address, and the second version type IP address is the target device's IPv6 address. Of course, the first version type IP address can also be the target device's IPv6 address, and the second version type IP address can also be the target device's IPv4 address. The first and second version types can be set according to actual needs, and this embodiment does not impose specific limitations on them. Since the target device is currently online with both IPv4 and IPv6 dual-stack addresses, when the target device uses the target application over the network, the server can obtain both the first and second version type IP addresses from the network.
[0062] S102: Determine whether the target address database stores the first target attribute information corresponding to the first version type IP address and the second target attribute information corresponding to the second version type IP address.
[0063] In this embodiment, the target address database is an IP address database that has been pre-purchased. Since the attribute information between the first version type IP address and the second version type IP address of the same target device should be consistent, and the target address database stores a large number of correspondences between different IPv4 and IPv6 addresses and their corresponding attribute information, after obtaining the IPv4 and IPv6 addresses of the target device, the database can be queried to check the consistency of the attribute information corresponding to the IPv4 and IPv6 addresses of the target device. This allows for the verification of the target address database and the assessment of its accuracy.
[0064] In the above description, the first target attribute information includes the operator and the region, and the second target attribute information includes the operator and the region. The target address database includes an IPv4 address database and an IPv6 address database. The IPv4 address database stores the attribute information of the IPv4 addresses corresponding to each IPv6 address, and the IPv6 address database stores the attribute information of the IPv6 addresses corresponding to each IPv4 address. When the first version type IP address is an IPv4 address and the second version type IP address is an IPv6 address, after obtaining the first version type IP address and the second version type IP address corresponding to the target device, the first version type IP address is used to query the IPv4 address database to determine whether the IPv4 address database stores the first target attribute information corresponding to the first version type IP address, and the second version type IP address is used to query the IPv6 address database to determine whether the IPv6 address database stores the second target attribute information corresponding to the second version type IP address. If the first target attribute information is stored in the IPv4 address database and the second target attribute information is stored in the IPv6 address database, the target address database can be verified using the first target attribute information and the second target attribute information.
[0065] S103: When the target address database stores first target attribute information and second target attribute information, the target address database is verified according to the first target attribute information and second target attribute information to obtain the target verification result corresponding to the target address database.
[0066] In this embodiment, after determining that the target address database stores first target attribute information and second target attribute information, the consistency between the first target attribute information and the second target attribute information is judged, thereby realizing the verification of the target address database and thus realizing the evaluation of the accuracy of the target address database.
[0067] This application provides an address database verification method. When obtaining the first version type IP address and the second version type IP address corresponding to the target device, it determines whether the target address database stores the first target attribute information corresponding to the first version type IP address and the attribute information corresponding to the second version type IP address. If the first target attribute information and the second target attribute information are stored in the target address database, the target address database is verified based on the first target attribute information and the second target attribute information to obtain the target verification result corresponding to the target address database. Thus, the target address database is verified by utilizing the attribute information corresponding to IP addresses of different version types of the same target device, thereby achieving accurate evaluation of the target address database.
[0068] refer to Figure 2 , Figure 2This is a flowchart illustrating another address database verification method provided in an embodiment of this application. An address database verification method provided in this application includes the following steps:
[0069] S201: Obtain the first version type IP address and the second version type IP address corresponding to the target device.
[0070] S202: Determine whether the target address database stores the first target attribute information corresponding to the first version type IP address and the second target attribute information corresponding to the second version type IP address.
[0071] In this embodiment, step S201 is the same as step S101, and step S202 is the same as step S102. For details, please refer to the above-described steps S101 and S102. This embodiment will not repeat them here.
[0072] S203: When the target address database stores first target attribute information and second target attribute information, the target address database is verified based on the first target attribute information and the second target attribute information to obtain the target verification result corresponding to the target address database.
[0073] In this embodiment, step S203 specifically includes:
[0074] Determine whether the first target attribute information and the second target attribute information are consistent;
[0075] When the first target attribute information and the second target attribute information are inconsistent, the target verification result is determined as the first verification result. The first verification result is used to characterize the error in the target address library.
[0076] When the first target attribute information and the second target attribute information are consistent, the target verification result is determined to be the second verification result. The second verification result is used to indicate that there is no error in the target address database.
[0077] As described above, since the first target attribute information corresponding to the first version type IP address and the second target attribute information corresponding to the second version type IP address in the same device should be consistent, the target address database can be verified using this characteristic. When the first target attribute information and the second target attribute information are consistent, it indicates that the first target attribute information and the second target attribute information corresponding to the first version type IP address stored in the target address database are accurate. Conversely, when the first target attribute information and the second target attribute information are inconsistent, it indicates that the first target attribute information and the second target attribute information corresponding to the first version type IP address stored in the target address database are inaccurate.
[0078] Specifically, when the target verification result is the second verification result, no processing of the target address database is required. However, when the target verification result is the first verification result, in order to ensure the accuracy of the target address database, it can be processed in the following way:
[0079] When the target verification result is the first verification result, the target terminal corresponding to the target address database is determined;
[0080] The first verification result is sent to the target terminal so that the target terminal can display the first verification result;
[0081] Receive target adjustment information corresponding to the first verification result sent by the target terminal;
[0082] The target address database is updated by processing the first target attribute information and / or the second target attribute information based on the target adjustment information.
[0083] Specifically, when the target verification result is the first verification result, if the target address database is not processed, the user experience will still be affected by errors in the target address database when it is used to serve users in the next instance. Therefore, to solve the above problem, when the target verification result is the first verification result, the first verification result is sent to the target terminal, so that the relevant personnel on the target terminal can adjust the first target attribute information and / or the second target attribute information based on the first verification result displayed on the target terminal to obtain the second verification result target adjustment information. The target terminal sends the target adjustment information to the server, so that the server adjusts the first target attribute information and / or the second target attribute information according to the received target adjustment information, thereby completing the update of the target address database. The aforementioned target adjustment information specifically refers to the relevant modification information of the first target attribute information and / or the second target attribute information to make the first target attribute information consistent with the second target attribute information. The target terminal can be a mobile terminal, tablet terminal, etc., and the specific form of the target terminal is not limited in this embodiment. It can be set according to actual needs.
[0084] S204: When the target address database stores first target attribute information but not second target attribute information, determine the second target attribute information based on the first target attribute information to complete the update of the target address database.
[0085] In this embodiment, in order to improve the accuracy of the target address database, when the target address database stores first target attribute information but does not store second target attribute information, the first target attribute information can be used to supplement the second target attribute information, thereby realizing the updating of the target address database.
[0086] In one implementation, the target address database can be updated in the following manner:
[0087] The first target attribute information is determined as the second target attribute information to complete the update of the target address database.
[0088] In the above process, when the target address database stores the first target attribute information, the first target attribute information can be assigned to the second target attribute information so that the first target attribute information and the second target attribute information are consistent, thereby completing the update of the target address database.
[0089] In another implementation, the target address database can be updated in the following manner:
[0090] The first interface information is determined based on the first target attribute information corresponding to the first version type IP address and the second version type IP address;
[0091] Determine the target terminal corresponding to the target address database;
[0092] Send the first interface information to the target terminal so that the target terminal can display the first operation information of the first interface information;
[0093] Based on the first operation information, determine the second target attribute information to complete the update of the target address database.
[0094] In the above, to avoid inaccurate second target attribute information due to inaccuracy of the first target attribute information when directly assigning the first target attribute information to the second target attribute information, when the first target attribute information is stored in the target address database but the second target attribute information is not stored, the first interface information is determined based on the first target attribute information corresponding to the first version type IP address and the second version type IP address. The first interface information is then sent to the target terminal corresponding to the target address database, so that the target terminal displays the first interface corresponding to the first interface information. This allows the relevant personnel of the target terminal to adjust the second target attribute information based on the first interface. After the adjustment is completed, the target terminal obtains the first operation information for the first interface and sends the first operation information to the server, so that the server determines the second target attribute information based on the first operation information, thereby completing the update of the target address database.
[0095] S205: When the target address database stores second target attribute information but not first target attribute information, determine the first target attribute information based on the second target attribute information to complete the update of the target address database.
[0096] In this embodiment, in order to improve the accuracy of the target address database, when the target address database stores second target belonging information but does not store first target attribute information, the second target attribute information can be used to supplement the first target attribute information, thereby realizing the updating of the target address database.
[0097] In one implementation, the target address database can be updated in the following manner:
[0098] The second target attribute information is identified as the first target attribute information to complete the update of the target address database.
[0099] In the above process, when the target address database stores the second target attribute information, the second target attribute information can be assigned to the first target attribute information so that the first target attribute information is consistent with the second target attribute information, thereby completing the update of the target address database.
[0100] In another implementation, the target address database can be updated in the following manner:
[0101] The second interface information is determined based on the second target attribute information corresponding to the second version type IP address and the first version type IP address;
[0102] Determine the target terminal corresponding to the target address database;
[0103] Send the second interface information to the target terminal so that the target terminal can display the second operation information of the second interface information;
[0104] Based on the second operation information, determine the first target attribute information to complete the update of the target address database.
[0105] In the above, to avoid inaccurate first target attribute information due to inaccuracy of the second target attribute information when directly assigning the second target attribute information to the first target attribute information, when the second target attribute information is stored in the target address database but the first target attribute information is not stored, the second interface information is determined based on the second target attribute information corresponding to the second version type IP address and the first version type IP address. The second interface information is then sent to the target terminal corresponding to the target address database, so that the target terminal displays the second interface corresponding to the second interface information. This allows the relevant personnel of the target terminal to adjust the first target attribute information based on the second interface. After the adjustment is completed, the target terminal obtains the second operation information for the first interface and sends the second operation information to the server, so that the server determines the first target attribute information based on the second operation information, thereby completing the update of the target address database.
[0106] The address database verification method provided in this embodiment further includes the following steps:
[0107] When the target verification result corresponding to the target address database is the first verification result, the correspondence between the first version type IP address, the second version type IP address and the target verification result is stored.
[0108] When the preset period is reached, all target verification results that meet the preset conditions within the preset period are determined. The preset conditions include: the first version type IP address and the second version type IP address corresponding to each target verification result are different.
[0109] Determine the number of targets whose verification results meet the preset conditions;
[0110] Determine the target accuracy corresponding to the target address database based on the number of targets;
[0111] Determine the target terminal corresponding to the target address database;
[0112] The target accuracy is sent to the target terminal so that the target terminal can display the target accuracy.
[0113] In this embodiment, to facilitate relevant personnel's real-time understanding of the target accuracy corresponding to the target address database, when the target verification result is determined to be the second verification result, the correspondence between the first version type IP address, the second version type IP address, and the target verification result is stored. This allows for the determination of all target verification results that meet the preset conditions within the preset period at the end of the preset period, and the determination of the number of targets that meet the preset conditions. Based on the determined number of targets, the total number of correspondences between all IPv4 addresses and IPv6 addresses stored in the target address database is determined. The ratio of the number of targets to the total number is then used to obtain the target accuracy corresponding to the target address database. This target accuracy is then sent to the target terminal, enabling the target terminal to display the target accuracy, thus allowing relevant personnel to understand the target accuracy corresponding to the target address in real time.
[0114] This application provides an address database verification method. When obtaining the first version type IP address and the second version type IP address corresponding to the target device, it determines whether the target address database stores the first target attribute information corresponding to the first version type IP address and the attribute information corresponding to the second version type IP address. If the first target attribute information and the second target attribute information are stored in the target address database, the target address database is verified based on the first target attribute information and the second target attribute information to obtain the target verification result corresponding to the target address database. Thus, the target address database is verified by utilizing the attribute information corresponding to IP addresses of different version types of the same target device, thereby achieving accurate evaluation of the target address database.
[0115] refer to Figure 3 , Figure 3 This is a schematic diagram of an address database verification device provided in an embodiment of this application. The address database verification device provided in this application includes: an acquisition module 10, used to acquire a first version type IP address and a second version type IP address corresponding to a target device; a determination module 20, used to determine whether the target address database stores first target attribute information corresponding to the first version type IP address and second target attribute information corresponding to the second version type IP address; and a verification module 30, used to verify the target address database based on the first target attribute information and the second target attribute information when the target address database stores the first target attribute information and the second target attribute information, so as to obtain a target verification result corresponding to the target address database.
[0116] The address database verification device provided in this embodiment further includes: an update module, which is used for:
[0117] When the target address database stores the first target attribute information but not the second target attribute information, the second target attribute information is determined based on the first target attribute information to complete the update of the target address database; or,
[0118] When the target address database stores the second target attribute information but not the first target attribute information, the first target attribute information is determined based on the second target attribute information to complete the update of the target address database.
[0119] In this embodiment, the update module is also used for:
[0120] The first target attribute information is determined as the second target attribute information to complete the update of the target address database; or,
[0121] The first interface information is determined based on the first target attribute information corresponding to the first version type IP address and the second version type IP address;
[0122] Determine the target terminal corresponding to the target address database;
[0123] The first interface information is sent to the target terminal so that the target terminal displays the first interface corresponding to the first interface information;
[0124] Receive first operation information sent by the target terminal for the first interface;
[0125] Based on the first operation information, the second target attribute information is determined to complete the update of the target address database.
[0126] In this embodiment, the update module is also used for:
[0127] The second target attribute information is determined as the first target attribute information to complete the update of the target address database; or,
[0128] The second interface information is determined based on the second target attribute information corresponding to the second version type IP address and the first version type IP address;
[0129] Determine the target terminal corresponding to the target address database;
[0130] The first target display data is sent to the target terminal so that the target terminal displays the second interface corresponding to the second interface information;
[0131] Receive second operation information sent by the target terminal for the second interface;
[0132] Based on the second operation information, the first target attribute information is determined to complete the update of the target address database.
[0133] In this embodiment, the verification module 30 is further configured to:
[0134] Determine whether the first target attribute information and the second target attribute information are consistent;
[0135] When the first target attribute information and the second target attribute information are inconsistent, the target verification result is determined to be the first verification result, which is used to characterize the error in the target address library.
[0136] In this embodiment, the update module is also used for:
[0137] When the target verification result is the first verification result, the target terminal corresponding to the target address database is determined;
[0138] The first verification result is sent to the target terminal so that the target terminal displays the first verification result;
[0139] Receive target adjustment information sent by the target terminal regarding the first verification result;
[0140] The target attribute information and / or the second target attribute information are processed according to the target adjustment information to complete the update of the target address database.
[0141] The address database verification device provided in this embodiment further includes: a storage module, which is used for:
[0142] When the target verification result is the first verification result, the correspondence between the first version type IP address, the second version type IP address, and the target verification result is stored.
[0143] The address database verification device provided in this embodiment further includes: a sending module, which is used for:
[0144] When a preset period is reached, all target verification results that meet preset conditions within the preset period are determined. The preset conditions include: the first version type IP address and the second version type IP address corresponding to each target verification result are different.
[0145] Determine the number of targets that satisfy the preset conditions for all target verification results;
[0146] Based on the number of targets, determine the target accuracy corresponding to the target address database;
[0147] Determine the target terminal corresponding to the target address database;
[0148] The target accuracy is sent to the target terminal so that the target terminal can display the target accuracy.
[0149] This application provides an address database verification device that, when acquiring a first version type IP address and a second version type IP address corresponding to a target device, determines whether the target address database stores first target attribute information corresponding to the first version type IP address and attribute information corresponding to the second version type IP address. If the target address database stores the first target attribute information and the second target attribute information, the target address database is verified based on the first target attribute information and the second target attribute information to obtain the target verification result corresponding to the target address database. Thus, the target address database is verified using the attribute information corresponding to IP addresses of different version types of the same target device, thereby achieving accurate evaluation of the target address database.
[0150] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 4 The illustrated electronic device 400 includes at least one processor 401, a memory 402, at least one network interface 404, and other user interfaces 403. The various components in the electronic device 400 are coupled together via a bus system 405. It is understood that the bus system 405 is used to implement communication between these components. In addition to a data bus, the bus system 405 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in… Figure 4 The general designated all buses as Bus System 405.
[0151] The user interface 403 may include a display, keyboard, or clicking device (e.g., mouse, trackball, touchpad, or touchscreen).
[0152] It is understood that the memory 402 in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 402 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0153] In some implementations, memory 402 stores elements, executable units or data structures, or subsets thereof, or extended sets thereof: operating system 4021 and application program 4022.
[0154] The operating system 4021 includes various system programs, such as the framework layer, core library layer, and driver layer, used to implement various basic business functions and handle hardware-based tasks. The application program 4022 includes various applications, such as a media player and a browser, used to implement various application functions. Programs implementing the methods of this application embodiment can be included in application program 4022.
[0155] In this embodiment, by calling the program or instructions stored in memory 402, specifically the program or instructions stored in application program 4022, processor 401 executes the method steps provided in each method embodiment, such as: obtaining a first version type IP address and a second version type IP address corresponding to the target device; determining whether the target address database stores first target attribute information corresponding to the first version type IP address and second target attribute information corresponding to the second version type IP address; when the target address database stores the first target attribute information and the second target attribute information, verifying the target address database according to the first target attribute information and the second target attribute information to obtain the target verification result corresponding to the target address database.
[0156] The methods disclosed in the embodiments of this application can be applied to processor 401, or implemented by processor 401. Processor 401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 401 or by instructions in the form of software. The processor 401 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software units in the decoding processor. The software units may be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 402. Processor 401 reads the information in memory 402 and, in conjunction with its hardware, completes the steps of the above method.
[0157] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or combinations thereof.
[0158] For software implementation, the techniques described herein can be implemented by units that perform the functions described herein. The software code can be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
[0159] The electronic device provided in this embodiment may be as follows: Figure 4 The electronic device shown can perform the following: Figure 1-2 All steps of the address database verification method are then implemented. Figure 1-2 For details on the technical effectiveness of the address database verification method shown, please refer to [link / reference]. Figure 1-2 The relevant descriptions are presented concisely and will not be elaborated upon here.
[0160] This application also provides a storage medium (computer-readable storage medium). This storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; it may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; and it may also include combinations of the above types of memory.
[0161] When one or more programs in the storage medium can be executed by one or more processors to implement the address database verification method described above, which is executed on the address database verification device side.
[0162] The processor is used to execute an address database verification program stored in the memory to implement the following steps of an address database verification method executed on the address database verification device side: obtaining a first version type IP address and a second version type IP address corresponding to the target device; determining whether the target address database stores first target attribute information corresponding to the first version type IP address and second target attribute information corresponding to the second version type IP address; if the target address database stores the first target attribute information and the second target attribute information, verifying the target address database according to the first target attribute information and the second target attribute information to obtain a target verification result corresponding to the target address database.
[0163] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0164] It should be noted that the terms "one implementation," "embodiment," "exemplary embodiment," and "some embodiments" used in the specification indicate that the described embodiment may include a specific feature, structure, or characteristic, but not every embodiment necessarily includes that specific feature, structure, or characteristic. Furthermore, such phrases do not necessarily refer to the same embodiment. Moreover, when a specific feature, structure, or characteristic is described in connection with an embodiment, implementing such a feature, structure, or characteristic in conjunction with other embodiments, whether explicitly described or not, is within the knowledge scope of those skilled in the art.
[0165] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. An address database verification method, characterized in that, include: Obtain the first version type IP address and the second version type IP address corresponding to the target device; Determine whether the target address database stores the first target attribute information corresponding to the first version type IP address and the second target attribute information corresponding to the second version type IP address; When the first target attribute information and the second target attribute information are stored in the target address database, it is determined whether the first target attribute information and the second target attribute information are consistent. When the first target attribute information and the second target attribute information are inconsistent, the target verification result corresponding to the target address library is determined as the first verification result, and the first verification result is used to characterize the error in the target address library; When the target verification result is the first verification result, the correspondence between the first version type IP address, the second version type IP address and the target verification result is stored; When a preset period is reached, all target verification results that meet preset conditions within the preset period are determined. The preset conditions include: the first version type IP address and the second version type IP address corresponding to each target verification result are different. Determine the number of targets that satisfy all the preset conditions for the target verification results; Based on the number of targets, determine the target accuracy corresponding to the target address database; Determine the target terminal corresponding to the target address database; The target accuracy is sent to the target terminal so that the target terminal can display the target accuracy.
2. The method according to claim 1, characterized in that, The method further includes: When the target address database stores the first target attribute information but not the second target attribute information, the second target attribute information is determined based on the first target attribute information to complete the update of the target address database; or, When the target address database stores the second target attribute information but not the first target attribute information, the first target attribute information is determined based on the second target attribute information to complete the update of the target address database.
3. The method according to claim 2, characterized in that, The step of determining the second target attribute information based on the first target attribute information to complete the update of the target address database includes: The first target attribute information is determined as the second target attribute information to complete the update of the target address database; or, The first interface information is determined based on the first target attribute information corresponding to the first version type IP address and the second version type IP address; Determine the target terminal corresponding to the target address database; The first interface information is sent to the target terminal so that the target terminal displays the first interface corresponding to the first interface information; Receive first operation information sent by the target terminal for the first interface; Based on the first operation information, the second target attribute information is determined to complete the update of the target address database.
4. The method according to claim 2, characterized in that, The step of determining the first target attribute information based on the second target attribute information to complete the update of the target address database includes: The second target attribute information is determined as the first target attribute information to complete the update of the target address database; or, The second interface information is determined based on the second target attribute information corresponding to the second version type IP address and the first version type IP address; Determine the target terminal corresponding to the target address database; The first target display data is sent to the target terminal so that the target terminal displays the second interface corresponding to the second interface information; Receive second operation information sent by the target terminal for the second interface; Based on the second operation information, the first target attribute information is determined to complete the update of the target address database.
5. The method according to claim 1, characterized in that, The method further includes: When the target verification result is the first verification result, the target terminal corresponding to the target address database is determined; The first verification result is sent to the target terminal so that the target terminal displays the first verification result; Receive target adjustment information sent by the target terminal regarding the first verification result; The target attribute information and / or the second target attribute information are processed according to the target adjustment information to complete the update of the target address database.
6. An address database verification device, characterized in that, include: The acquisition module is used to acquire the first version type IP address and the second version type IP address corresponding to the target device; The determination module is used to determine whether the target address database stores the first target attribute information corresponding to the first version type IP address and the second target attribute information corresponding to the second version type IP address; The verification module is used to determine whether the first target attribute information and the second target attribute information are consistent when the first target attribute information and the second target attribute information are stored in the target address database. When the first target attribute information and the second target attribute information are inconsistent, the target verification result corresponding to the target address library is determined as the first verification result, and the first verification result is used to characterize the error in the target address library; The storage module is used to store the correspondence between the first version type IP address, the second version type IP address and the target verification result when the target verification result is the first verification result; The sending module is used to determine, when a preset period is reached, all the target verification results that meet preset conditions within the preset period, the preset conditions including: the first version type IP address and the second version type IP address corresponding to each of the target verification results are different; Determine the number of targets that satisfy all the preset conditions for the target verification results; Based on the number of targets, determine the target accuracy corresponding to the target address database; Determine the target terminal corresponding to the target address database; The target accuracy is sent to the target terminal so that the target terminal can display the target accuracy.
7. An electronic device, characterized in that, include: A processor and a memory, the processor being configured to execute an address database verification program stored in the memory to implement the address database verification method according to any one of claims 1 to 5.
8. A storage medium, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the address database verification method according to any one of claims 1 to 5.
Citation Information
Patent Citations
IP address base update method and apparatus
CN106302843A