IPv6 address resource management method, device, equipment, medium and product

By dividing IPv6 addresses into subnet segments and marking services, the problem of decentralized IPv6 address management is solved, and fast query and efficient management of IPv6 address resources are achieved.

CN116016154BActive Publication Date: 2025-09-26CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211539034.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2025-09-26
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

IPv6 address management is decentralized, making it difficult to quickly query relevant IPv6 address resources based on business needs, increasing the planning and management difficulty for operation and maintenance personnel.

Method used

By dividing the target IPv6 address into subnet segments, determining the service tag information, and adjusting the address tag information according to the service association relationship between the subnet segments, the query efficiency is improved.

Benefits of technology

Based on actual business needs, IPv6 address resources related to business needs can be quickly queried, improving the management efficiency of IPv6 address resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016154B_ABST
    Figure CN116016154B_ABST
Patent Text Reader

Abstract

The present application provides a method, apparatus, device, medium, and product for managing IPv6 address resources, aiming to improve the efficiency of managing IPv6 address resources. The method comprises: dividing a target IPv6 address into subnet segments to obtain multiple subnet segments and target addresses contained in each of the multiple subnet segments; determining service tag information for each of the multiple target addresses based on the subnet segment information and service information of each of the multiple target addresses; determining multiple target subnet segments with service associations from the multiple subnet segments based on the service tag information of each of the multiple target addresses; and adjusting the service tag information of the target addresses contained in each of the multiple target subnet segments based on the service associations between the multiple target subnet segments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, apparatus, device, medium and product for managing IPv6 address resources. Background Art

[0002] IPv6 (Internet Protocol version 6) is the next-generation IP protocol designed by the IETF (The Internet Engineering Task Force) to replace IPv4 (Internet Protocol version 4). It has a huge number of addresses, enough to assign an address to every grain of sand in the world.

[0003] During the large-scale deployment and application of IPv6, IPv6 address management is decentralized due to reasons such as independent business network construction and illegal access, making it difficult to quickly query relevant IPv6 address resources according to business needs. Summary of the Invention

[0004] In view of the above problems, embodiments of the present application provide a method, apparatus, device, medium and product for managing IPv6 address resources to overcome the above problems or at least partially solve the above problems.

[0005] A first aspect of an embodiment of the present application provides a method for managing IPv6 address resources, the method comprising:

[0006] Divide the target IPv6 address into subnet segments to obtain multiple subnet segments and target addresses contained in each of the multiple subnet segments;

[0007] Determining service tag information of each of the plurality of target addresses according to the respective subnet segment information and service information of the plurality of target addresses;

[0008] Determining, from the plurality of subnet segments, a plurality of target subnet segments having a service association relationship according to the service tag information of each of the plurality of target addresses;

[0009] According to the service association relationship between the multiple target subnet segments, the service tag information of the target address contained in each of the multiple target subnet segments is adjusted.

[0010] Optionally, determining the service tag information of each of the plurality of target addresses according to the respective subnet segment information and service information of the plurality of target addresses includes:

[0011] Determining, based on the subnet segment information and business information of each of the multiple target addresses, hierarchical information and target scores of each of the multiple target addresses, wherein the hierarchical information of the target address is used to represent the subnet segment information of other target addresses that have a business association relationship with the target address, and the target score is used to represent the degree of association between the target address and the core business;

[0012] The subnet segment information, service information, level information, target score and address status of each of the plurality of target addresses are determined as the service tag information.

[0013] Optionally, for each target address, the target score of the target address is determined according to the following steps:

[0014] Determine the network segment level score corresponding to the target address according to the level of the subnet segment to which the target address belongs;

[0015] Determine the business level score corresponding to the target address based on the business type to which the target address belongs, wherein the target score is used to represent the degree of association between the target address and the core business type;

[0016] Determine the module level score corresponding to the target address based on the business module type to which the target address belongs, wherein the target score is used to represent the degree of association between the target address and the core business module type;

[0017] A target score for the target address is determined based on the network segment level score, the service level score, and the module level score corresponding to the target address.

[0018] Optionally, determining a plurality of target subnet segments having a service association relationship from the plurality of subnet segments based on the service tag information of each of the plurality of target addresses includes:

[0019] Determining, based on the service information of the target addresses included in each subnet segment, a business address group having the largest number of target addresses and a service association relationship between the target addresses in each subnet segment;

[0020] Determining a plurality of target business address groups having a business association relationship from the plurality of business address groups;

[0021] The subnet segments corresponding to each of the plurality of target business address groups are respectively determined as the target subnet segments.

[0022] Optionally, adjusting the service tag information of the target addresses contained in each of the plurality of target subnet segments according to the association relationship between the plurality of target subnet segments includes:

[0023] For each target address in the plurality of target service address groups, information of a target subnet segment having a service association relationship with the target subnet segment corresponding to the target address is added to the service tag information of the target address.

[0024] Optionally, the plurality of subnet segments are determined by the following steps:

[0025] Divide the target IPv6 address into multiple character strings in sequence according to the address information represented by the target IPv6 address;

[0026] According to the division order of the plurality of character strings, the last non-zero character string obtained by division is determined as a first character string, and the character string obtained by division before the first character string is determined as a second character string;

[0027] Using the number of required subnet segments as the number of loops, perform hexadecimal-based cyclic accumulation on the first character string to obtain multiple third character strings;

[0028] The second character string is concatenated with the plurality of third character strings to obtain a plurality of subnet segments.

[0029] According to a second aspect of an embodiment of the present application, a device for managing IPv6 address resources is provided, the device comprising:

[0030] A subnet division module is used to divide the target IPv6 address into subnet segments to obtain multiple subnet segments and the target addresses contained in each of the multiple subnet segments;

[0031] A first marking module, configured to determine service marking information of each of the plurality of target addresses according to the respective subnet segment information and service information of the plurality of target addresses;

[0032] An information processing module, configured to determine, from the plurality of subnet segments, a plurality of target subnet segments having a service association relationship based on the service tag information of each of the plurality of target addresses;

[0033] The second marking module is configured to adjust the service marking information of the target addresses contained in each of the plurality of target subnet segments according to the association relationship between the plurality of target subnet segments.

[0034] A third aspect of an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for managing IPv6 address resources described in the first aspect are implemented.

[0035] In a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the steps of the IPv6 address resource management method as described in the first aspect are implemented.

[0036] In a fifth aspect of the embodiments of the present application, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the IPv6 address resource management method described in the first aspect.

[0037] The embodiments of the present application include the following advantages:

[0038] In this embodiment, based on actual business needs, the business tag information of each target address is determined according to the subnet segment information and business information of the target address, as well as the business association relationship between the target subnet segments. Based on this business tag information, IPv6 address resources related to business needs can be quickly queried, thereby improving the management efficiency of IPv6 address resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0040] Figure 1 This is a flowchart of an implementation method for managing IPv6 address resources according to an embodiment of the present application;

[0041] Figure 2 This is a flowchart of a method for dividing a target IPv6 address into subnet segments according to an embodiment of the present application;

[0042] Figure 3 This is a flowchart of a method for performing service marking on a target IPv6 address after dividing the subnet segments according to an embodiment of the present application;

[0043] Figure 4 This is a schematic diagram of the structure of an IPv6 address resource management device according to an embodiment of the present application;

[0044] Figure 5 It is a schematic diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0046] Since IPv4 address resources are limited, which seriously restricts the application and development of the Internet, the use of IPv6 address resources can not only solve the problem of the number of network address resources, but also solve the obstacles for various access devices to connect to the Internet. Therefore, the Internet will fully evolve and upgrade to IPv6.

[0047] During the large-scale deployment and application of IPv6, IPv6 address management has become decentralized due to reasons such as independent network construction based on business and illegal access, which has increased the difficulty of IP address planning and management for operation and maintenance personnel.

[0048] However, the IPv6 address format differs from the IPv4 address format, and current IPv4 address resource management methods are not suitable for IPv6 address resource management. Furthermore, with the widespread deployment and application of IPv6, IPv6 address management has become fragmented due to factors such as independent network construction and unauthorized access. This makes it difficult to quickly query relevant IPv6 address resources based on business needs, thus increasing the difficulty of IP address planning and management for operations and maintenance personnel.

[0049] In response to the problems existing in the above-mentioned related technologies, the present application proposes to set business tag information for each IPv6 address based on the subnet segment information and business information of the target address, as well as the business association relationship between the target subnet segments. Based on this business tag information, the query efficiency of IPv6 address resources related to business needs can be improved, which is conducive to the rapid implementation of management operations such as query, allocation, and business information modification of IPv6 address resources related to business needs, thereby improving the management efficiency of IPv6 address resources.

[0050] The following describes in detail the IPv6 address resource management method provided by the embodiments of the present application through some embodiments and their application scenarios in combination with the accompanying drawings.

[0051] First, refer to Figure 1 FIG. 1 is a flowchart of an implementation method for managing IPv6 address resources provided by an embodiment of the present application. The method may include the following steps:

[0052] Step S11: Divide the target IPv6 address into subnet segments to obtain multiple subnet segments and target addresses contained in each of the multiple subnet segments.

[0053] Among them, the subnet segment can be used to represent the subnet range address (i.e., multiple target addresses) in a computer network that can directly communicate using the same physical layer device (such as transmission media, repeaters, hubs, etc.). For example, the subnet segment ABCD:09A9:ERFC:0033:00F1:: / 64 (64 means the prefix length is 64 bits) can represent the subnet range address of ABCD:09A9:ERFC:0033:00F1:0000:0000:0000:0000 to ABCD:09A9:ERFC:0033:00F1:FFFF:FFFF:FFFF:FFFF.

[0054] During specific implementation, the target IPv6 address can be divided into subnet segments according to actual business needs to obtain multiple subnet segments. If the number of target addresses contained in the multiple subnet segments obtained by this division cannot meet the actual business needs, one or more target addresses in the multiple subnet segments can continue to be subnetted until the number of target addresses contained in each subnet segment obtained meets the actual business needs.

[0055] Step S12: determining the service tag information of each of the plurality of target addresses according to the subnet segment information and service information of each of the plurality of target addresses.

[0056] In specific implementation, after completing the division of subnet segments, each target address contained in each subnet segment can be marked with the information of the subnet segment to which it belongs. When querying the target address contained in a certain subnet segment later, the subnet segment information in the service tag information of each target address can be directly searched, without having to calculate the subnet segment to which the target address belongs based on the subnet bit and the target address, thereby improving the query efficiency. It is understandable that the target address can be any IPv6 address contained in a certain subnet segment, and the target address can also be one of the IPv6 addresses pre-planned for use under the subnet segment. By marking the target address with the information of the service to which it belongs, it is possible to batch search for multiple target addresses or multiple subnet segments related to a certain service based on the service information in the service tag information of each target address, thereby speeding up the query efficiency.

[0057] Step S13: determining a plurality of target subnet segments having a service association relationship from the plurality of subnet segments according to the service tag information of each of the plurality of target addresses.

[0058] In a specific implementation, considering that the services to which target addresses within the same subnet segment belong are generally the same, the multiple subnet segments to which multiple target addresses with a service association belong can be defined as multiple target subnet segments with a service association. It is understood that the multiple target subnet segments with a service association can be multiple target subnet segments with the same service or related services, wherein the service association can be flexibly set based on actual needs.

[0059] Step S14: adjusting the service tag information of the target addresses contained in each of the plurality of target subnet segments according to the service association relationship between the plurality of target subnet segments.

[0060] In the specific implementation, the target address contained in the target subnet segment is marked with the information of the subnet segment with which it has a business association relationship, so that the information of all target subnet segments related to the business to which the target address belongs can be quickly found through the information of each subnet segment in the business marking information of any target address (including the subnet segment to which the target address itself belongs, and the subnet segment with which the target address has a business association relationship), which is conducive to efficient management of IPv6 address resources related to the business to which the target address belongs.

[0061] By adopting the technical solution of the embodiment of the present application, based on actual business needs, the business tag information of each target address is determined according to the subnet segment information and business information of the target address, as well as the business association relationship between the target subnet segments. Based on the business tag information, IPv6 address resources related to business needs can be quickly queried, thereby improving the management efficiency of IPv6 address resources.

[0062] Example 1

[0063] This embodiment describes a method for dividing a target IPv6 address into subnet segments. By dividing the IPv6 address segment into multiple character strings and calculating the subnet segments in a character string manner, the amount of computation required for the subnet segment division process can be reduced.

[0064] like Figure 2 As shown in the figure, the steps to divide the target IPv6 address into subnet segments are as follows:

[0065] Step S21: Divide the target IPv6 address into multiple character strings in sequence according to the address information represented by the target IPv6 address.

[0066] In practice, considering that IPv6 addresses contain 128 bits and are represented in hexadecimal, the target IPv6 address can be divided into eight segments, in the order from the prefix to the interface identifier. Each segment represents a separate character string. For example, the target IPv6 address ABCD:09A9:ERFC:0033:00F1:0000:0000:0000 with a 64-bit prefix length is divided into eight character strings: "ABCD," "09A9," "ERFC," "0033," "00F1," "0000," "0000," and "0000."

[0067] Step S22: according to the division order of the plurality of character strings, determining the last non-zero character string obtained by division as the first character string, and determining the character string obtained by division before the first character string as the second character string.

[0068] Taking the eight character strings obtained by dividing the target IPv6 address ABCD:09A9:ERFC:0033:00F1:0000:0000:0000 as an example, the first character string is "00F1" and the second character string includes "ABCD", "09A9", "ERFC" and "0033".

[0069] Step S23: taking the number of subnet segments to be divided as the number of loops, performing hexadecimal-based cyclic accumulation on the first character string to obtain a plurality of third character strings.

[0070] Hexadecimal cyclic accumulation uses the hexadecimal progression of 0, 1, ..., 9, A, B, C, D, E, and F to cyclically add the first string (adding 0 the first time and 1 each time). Each cyclic addition generates a third string. For example, if the number of subnet segments to be divided is four, performing four hexadecimal cyclic additions on "00F1" results in four third strings: "00F1," "00F2," "00F3," and "00F4."

[0071] In specific implementations, the number of subnet segments required can be determined based on actual business needs, or can be the maximum number of subnets when the current target IPv6 address is divided into two-level classification subnet segments. In the case where the number of subnet segments required is the maximum number of subnets when the current target IPv6 address is divided into two-level classification subnet segments, the number of subnet segments required can be expressed as 2 to the power of n, where n is the difference between the subnet bits of the current target IPv6 address (i.e., the fixed prefix length of the target IPv6 address, such as 64 bits) and the segment abbreviation (i.e., the actual prefix length occupied by the corresponding subnet segment, such as 63 bits).

[0072] Taking the target IPv6 address with a fixed prefix length of 64 bits as an example, the mapping relationship between the segment abbreviation, the number of segments (2 to the power of n) and the corresponding number of IPv6 segments (i.e. the number of subnet segments required to be divided) is as follows:

[0073] As shown in Table 1.

[0074] Segment abbreviation Number of segments Corresponding IPv6 segment number / 64 2 to the power of 0 1 / 63 2 to the power of 1 2 / 62 2 to the power of 2 4 / 61 2 to the power of 3 8 / 60 2 to the power of 4 16 / 59 2 to the power of 5 32 / 58 2 to the power of 6 64 / 57 2 to the power of 7 128 / 56 2 to the power of 8 256 / 55 2 to the power of 9 512 / 54 2 to the power of 10 1024 / 53 2 to the power of 11 2048

[0075] Table 1

[0076] Step S24: concatenate the second character string with the plurality of third character strings to obtain a plurality of subnet segments.

[0077] For example, the four third character strings "00F1", "00F2", "00F3" and "00F4" obtained above are respectively concatenated with the second character string obtained above to obtain four subnet segments, namely ABCD:09A9:ERFC:0033:00F1:: / 64, ABCD:09A9:ERFC:0033:00F2:: / 64, ABCD:09A9:ERFC:0033:00F3:: / 64 and ABCD:09A9:ERFC:0033:00F4:: / 64.

[0078] According to the format of the IPv6 address, the IPv6 address is split into 8 strings according to the string structure, and the non-all-zero strings are retained as the spliced ​​address. By splicing the strings, the amount of calculation when calculating the actual range of the start IP and end IP of each subnet can be reduced, and the amount of calculation in the subnet segment division process can be reduced, thereby improving the management efficiency of IPv6 address resources.

[0079] Example 2

[0080] This embodiment describes a method for performing service marking on a target IPv6 address after dividing the subnet segments, which helps to improve the query efficiency of IPv6 address resources.

[0081] like Figure 3 As shown, the business marking method includes the following steps:

[0082] Step S31: determining the respective level information and target scores of the plurality of target addresses according to the respective subnet segment information and service information of the plurality of target addresses.

[0083] Among them, the hierarchical information of the target address is used to characterize the subnet segment information of other target addresses that have a business association relationship with the target address, such as: whether there are other target addresses with business association relationships with different subnet segments for the target address, and whether there are other target addresses with business association relationships with the same subnet segment for the target address, etc.; the target score is used to characterize the degree of association between the target address and the core business.

[0084] In specific implementation, the network segment level score corresponding to the target address can be determined according to the level of the subnet segment to which the target address belongs; the business level score corresponding to the target address can be determined according to the business type to which the target address belongs, and the target score is used to characterize the degree of association between the target address and the core business type; the module level score corresponding to the target address can be determined according to the business module type to which the target address belongs, and the target score is used to characterize the degree of association between the target address and the core business module type; the target score of the target address can be determined according to the network segment level score, business level score and module level score corresponding to the target address.

[0085] Among them, a hierarchical identifier can be set for the multiple sub-segments divided, and the segment hierarchical score can be determined according to the hierarchical identifier corresponding to the target address. For example, if the hierarchical identifier of the sub-segment to which the target address belongs is 0, then the segment hierarchical score of the target address is 0; the business type can also be divided into core business and non-core business. If the target address belongs to the core business, the business hierarchical score of the target address is 1; if the target address belongs to the non-core business, the business hierarchical score of the target address is 0; the business module type can also be divided into core business module and non-core business module. If the target address belongs to the core business module, the module hierarchical score of the target address is 1; if the target address belongs to the non-core business module, the module hierarchical score of the target address is 0; the segment hierarchical score, business hierarchical score and module hierarchical score corresponding to the target address are added together to obtain the target score of the target address.

[0086] As a possible implementation, the network segment level score, service level score, and module level score of each target address can be determined by multiplying the total number of target addresses at the same level as the target address (including the target address itself) by the corresponding level weight. In this case, the target score of any target address A can be determined according to the following formula:

[0087]

[0088] Among them, code represents the target score of target address A, x represents the number of target addresses contained in the subnet segment to which target address A belongs, y represents the number of target addresses associated with the business type to which target address A belongs, z represents the number of target addresses contained in the business module type to which target address A belongs, S represents the number weight, X represents the network segment level weight corresponding to target address A, Y represents the business level weight corresponding to target address A, and Z represents the module level weight corresponding to target address A.

[0089] Step S32: Determine the subnet segment information, service information, level information, target score and address status of each of the plurality of target addresses as the service tag information.

[0090] Among them, the business tag information can be expressed as: information of the subnet segment to which it belongs###level information###target score###information of the business to which it belongs###address status (free / occupied).

[0091] Step S33: Based on the business information of the target addresses contained in each of the subnet segments, determine the business address group in each of the subnet segments that has the largest number of target addresses and a business association relationship between the target addresses; from the multiple business address groups, determine multiple target business address groups that have a business association relationship; and determine the subnet segments corresponding to each of the multiple target business address groups as the target subnet segments.

[0092] For example, subnet segment A contains 30 target addresses, of which 20 target addresses belong to core businesses and the remaining 10 target addresses belong to non-core businesses. Subnet segment A contains two business address groups corresponding to core businesses and non-core businesses respectively, and the business address group corresponding to the core business is the target business address group. At this time, the target business address group of subnet segment B is the business address group corresponding to the core business (containing 10 target addresses). Subnet segments A and B are two target subnet segments with business association relationships. It can be understood that by determining the business association relationship between the two subnet segments through the target business address group, when the subnet segment contains target addresses of different businesses, the business association relationship can be determined according to the main business to which the subnet segment belongs (that is, the business containing the most target addresses). This is conducive to the subsequent rapid query of business-related and address-continuous (that is, the number of subnet segments involved) address resources based on actual business needs.

[0093] Step S34: For each target address in the plurality of target service address groups, information of a target subnet segment having a service association relationship with the target subnet segment corresponding to the target address is added to the service tag information of the target address.

[0094] Among them, the business tag information can be expressed as: information of the belonging subnet segment###information of other subnet segments with business association relationship###level information###target score###information of the belonging business###address status (free / occupied).

[0095] Based on the above embodiment, the present application first divides the IPv6 address into 8 address segments according to the format of the IPv6 address according to the character string, retains the non-all-0 character string as the splicing address, and improves the IPv6 management efficiency by reducing the amount of calculation of the actual range of the starting IP and ending IP of each subnet; after completing the subnet segment division of the target IPv6 address, the obtained subnet segments and the IPv6 addresses contained in each subnet segment can be saved in the system database, and an IPv6 address resource management library is established by setting service tag information for each IPv6 address. By querying and changing the service tag information of each IPv6 address, the entire life cycle management of IPv6 address resources, including application, planning, allocation, use, monitoring, and recycling, can be achieved; and the above-mentioned service tag information can be used to perform service tagging on IPv6 addresses according to actual business needs. For example, it can mark which specific business is using the IPv6 address, which IPv6 addresses are idle, which IPv6 addresses in a certain subnet segment are associated with businesses in other subnet segments, and other information, which can effectively improve the query efficiency of business-related IPv6 addresses and their subnet segments.

[0096] For the sake of simplicity, the method embodiments are described as a series of action combinations. However, those skilled in the art should be aware that the embodiments of the present application are not limited by the order of the actions described, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.

[0097] Secondly, Figure 4 1 is a schematic diagram of the structure of an IPv6 address resource management device according to an embodiment of the present application, wherein the device comprises:

[0098] A subnet division module is used to divide the target IPv6 address into subnet segments to obtain multiple subnet segments and the target addresses contained in each of the multiple subnet segments;

[0099] A first marking module, configured to determine service marking information of each of the plurality of target addresses according to the respective subnet segment information and service information of the plurality of target addresses;

[0100] An information processing module, configured to determine, from the plurality of subnet segments, a plurality of target subnet segments having a service association relationship based on the service tag information of each of the plurality of target addresses;

[0101] The second marking module is configured to adjust the service marking information of the target addresses contained in each of the plurality of target subnet segments according to the association relationship between the plurality of target subnet segments.

[0102] By adopting the technical solution of the embodiment of the present application, based on actual business needs, the business tag information of each target address is determined according to the subnet segment information and business information of the target address, as well as the business association relationship between the target subnet segments. Based on the business tag information, IPv6 address resources related to business needs can be quickly queried, thereby improving the management efficiency of IPv6 address resources.

[0103] Optionally, the first marking module includes:

[0104] a first processing module, configured to determine, based on the subnet segment information and business information of each of the plurality of target addresses, hierarchical information of the target address and a target score, wherein the hierarchical information of the target address is used to represent the subnet segment information of other target addresses that have a business association relationship with the target address, and the target score is used to represent the degree of association between the target address and the core business;

[0105] The first marking submodule is used to determine the subnet segment information, service information, level information, target score and address status of each of the multiple target addresses as the service marking information.

[0106] Optionally, the first processing module includes:

[0107] The first processing submodule is used to determine, for each target address, the network segment level score corresponding to the target address according to the level of the subnet segment to which the target address belongs; determine the business level score corresponding to the target address according to the business type to which the target address belongs, and the target score is used to characterize the degree of association between the target address and the core business type; determine the module level score corresponding to the target address according to the business module type to which the target address belongs, and the target score is used to characterize the degree of association between the target address and the core business module type; determine the target score of the target address according to the network segment level score, business level score and module level score corresponding to the target address.

[0108] Optionally, the information processing module includes:

[0109] A first information processing submodule is configured to determine, based on the service information of the target addresses included in each subnet segment, a business address group having the largest number of target addresses and having a business association relationship between the target addresses in each subnet segment;

[0110] A second information processing submodule is configured to determine a plurality of target business address groups having a business association relationship from the plurality of business address groups;

[0111] The third information processing submodule is configured to determine the subnet segments corresponding to each of the plurality of target service address groups as the target subnet segments.

[0112] Optionally, the second marking module includes:

[0113] The second marking submodule is configured to add, for each target address in the plurality of target business address groups, information of a target subnet segment having a business association relationship with the target subnet segment corresponding to the target address to the business marking information of the target address.

[0114] Optionally, the subnet division module includes:

[0115] A first subnet division submodule is configured to divide the target IPv6 address into a plurality of character strings in sequence according to the address information represented by the target IPv6 address;

[0116] a second subnet division submodule, configured to determine, according to a division order of the plurality of character strings, the last non-zero character string obtained by division as the first character string, and determine the character string obtained by division before the first character string as the second character string;

[0117] A third subnet division submodule is configured to perform hexadecimal-based cyclic accumulation on the first character string, taking the number of subnet segments to be divided as the number of cycles, to obtain multiple third character strings;

[0118] The third subnet division submodule is configured to concatenate the second character string with a plurality of the third character strings to obtain a plurality of the subnet segments.

[0119] It should be noted that the device embodiment is similar to the method embodiment, so the description is relatively simple, and the relevant parts can be referred to the method embodiment.

[0120] The present application also provides an electronic device, Figure 5 , Figure 5 Schematic diagram of the electronic device proposed in the embodiment of the present application. Figure 5As shown, the electronic device 100 includes: a memory 110 and a processor 120. The memory 110 and the processor 120 are connected via a bus communication. A computer program is stored in the memory 110. The computer program can be run on the processor 120 to implement the steps in the IPv6 address resource management method disclosed in the embodiment of the present application.

[0121] An embodiment of the present application also provides a computer-readable storage medium having a computer program / instruction stored thereon. When the computer program / instruction is executed by a processor, the method for managing IPv6 address resources as disclosed in the embodiment of the present application is implemented.

[0122] An embodiment of the present application also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the IPv6 address resource management method disclosed in the embodiment of the present application.

[0123] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0124] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0125] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, systems, devices, storage media, and program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0126] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0128] Although preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic inventive concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0129] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "includes," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements that are inherent to such process, method, article, or terminal device. In the absence of further restrictions, an element defined by the phrase "comprises a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.

[0130] The above is a detailed introduction to the IPv6 address resource management method, device, equipment, medium and product provided by this application. Specific examples are used in this article to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method of this application and its core ideas. At the same time, for general technical personnel in this field, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this application.

Claims

1. A method for managing IPv6 address resources, characterized in that: The method comprises: Divide the target IPv6 address into subnet segments to obtain multiple subnet segments and target addresses contained in each of the multiple subnet segments; Determining service tag information of each of the plurality of target addresses according to the respective subnet segment information and service information of the plurality of target addresses; Determining, from the plurality of subnet segments, a plurality of target subnet segments having a service association relationship according to the service tag information of each of the plurality of target addresses; Adjusting the service tag information of the target addresses contained in each of the plurality of target subnet segments according to the service association relationship between the plurality of target subnet segments; The determining of the service tag information of each of the plurality of target addresses according to the respective subnet segment information and service information of the plurality of target addresses includes: Determining, based on the subnet segment information and business information of each of the multiple target addresses, hierarchical information and target scores of each of the multiple target addresses, wherein the hierarchical information of the target address is used to represent the subnet segment information of other target addresses that have a business association relationship with the target address, and the target score is used to represent the degree of association between the target address and the core business; The subnet segment information, service information, level information, target score and address status of each of the plurality of target addresses are determined as the service tag information.

2. The method according to claim 1, characterized in that For each of the target addresses, the target score of the target address is determined according to the following steps: Determine the network segment level score corresponding to the target address according to the level of the subnet segment to which the target address belongs; Determine the business level score corresponding to the target address based on the business type to which the target address belongs, wherein the target score is used to represent the degree of association between the target address and the core business type; Determine the module level score corresponding to the target address based on the business module type to which the target address belongs, wherein the target score is used to represent the degree of association between the target address and the core business module type; A target score for the target address is determined based on the network segment level score, the service level score, and the module level score corresponding to the target address.

3. The method according to claim 1, characterized in that The determining, based on the service tag information of each of the plurality of target addresses, a plurality of target subnet segments having a service association relationship from the plurality of subnet segments comprises: Determining, based on the service information of the target addresses included in each subnet segment, a business address group having the largest number of target addresses and a service association relationship between the target addresses in each subnet segment; Determining a plurality of target business address groups having a business association relationship from the plurality of business address groups; The subnet segments corresponding to each of the plurality of target business address groups are respectively determined as the target subnet segments.

4. The method according to claim 3, characterized in that The adjusting, according to the association relationship between the plurality of target subnet segments, the service tag information of the target addresses contained in each of the plurality of target subnet segments includes: For each target address in the plurality of target service address groups, information of a target subnet segment having a service association relationship with the target subnet segment corresponding to the target address is added to the service tag information of the target address.

5. The method according to any one of claims 1 to 4, characterized in that: The plurality of subnet segments are determined by the following steps: Divide the target IPv6 address into multiple character strings in sequence according to the address information represented by the target IPv6 address; According to the division order of the plurality of character strings, the last non-zero character string obtained by division is determined as a first character string, and the character string obtained by division before the first character string is determined as a second character string; Using the number of required subnet segments as the number of loops, perform hexadecimal-based cyclic accumulation on the first character string to obtain multiple third character strings; The second character string is concatenated with the plurality of third character strings to obtain a plurality of subnet segments.

6. A device for managing IPv6 address resources, characterized in that: The device comprises: A subnet division module is used to divide the target IPv6 address into subnet segments to obtain multiple subnet segments and the target addresses contained in each of the multiple subnet segments; A first marking module, configured to determine service marking information of each of the plurality of target addresses according to the respective subnet segment information and service information of the plurality of target addresses; An information processing module, configured to determine, from the plurality of subnet segments, a plurality of target subnet segments having a service association relationship based on the service tag information of each of the plurality of target addresses; A second marking module is used to adjust the service marking information of the target address contained in each of the multiple target subnet segments according to the association relationship between the multiple target subnet segments; Wherein, the first marking module includes: a first processing module, configured to determine, based on the subnet segment information and business information of each of the plurality of target addresses, hierarchical information of the target address and a target score, wherein the hierarchical information of the target address is used to represent the subnet segment information of other target addresses that have a business association relationship with the target address, and the target score is used to represent the degree of association between the target address and the core business; The first marking submodule is used to determine the subnet segment information, service information, level information, target score and address status of each of the multiple target addresses as the service marking information.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the method for managing IPv6 address resources according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for managing IPv6 address resources according to any one of claims 1 to 5 are implemented.

9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the method for managing IPv6 address resources according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • IP address management method and related equipment

    CN114827090A

  • Enterprise IPv6 address level-to-level management method and system and storage medium

    CN114979074A