A method and device for allocating IP subnet

By obtaining IP subnet query requests and conducting comprehensive evaluation based on preset planning strategies, the problem of poor efficiency and stability of IP subnet planning and allocation in the prior art is solved, and more efficient and stable IP address resource management is achieved.

CN115842805BActive Publication Date: 2025-04-29CHINA MOBILE INFORMATION TECHNOLOGY CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111096910.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-17
Publication Date
2025-04-29
Estimated Expiration
2041-09-17

AI Technical Summary

Technical Problem

The prior art has poor efficiency and stability in IP subnet planning and allocation, and relies on manual familiarity with the network structure, making it difficult to effectively manage complex IP address resources.

Method used

By obtaining the IP subnet query request, determining the candidate IP subnet list, and using the hierarchical analysis method to conduct comprehensive evaluation, output IP subnet allocation suggestions.

Benefits of technology

It improves the efficiency and stability of IP subnet planning and allocation, optimizes the utilization rate of IP address resources, and reduces the dependence on artificial professional skills.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115842805B_ABST
    Figure CN115842805B_ABST
Patent Text Reader

Abstract

The present invention provides an allocation method and device for IP subnets. The method comprises: obtaining an input IP subnet query request, determining a candidate IP subnet list based on the IP address resource demand description information in the IP subnet query request; determining a comprehensive evaluation score of a candidate IP subnet in the candidate IP subnet list based on a preset planning strategy for subnet distribution in an IP network, a planning strategy for IP address resource space fragmentation, a planning strategy for reserved expansion space, and corresponding planning strategy weight values; and outputting corresponding IP subnet allocation suggestions according to the comprehensive evaluation score. The IP subnet allocation method provided by the present invention can adapt to IP subnet planning and allocation tasks under different requirements by comprehensively considering the resource management strategy for optimizing the distribution of IP subnets in the network, thereby improving the efficiency and stability of the entire IP subnet planning process and the resource utilization rate of IP addresses.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network communication technology, and in particular to a method and device for allocating an IP subnet. In addition, the present invention also relates to an electronic device and a processor-readable storage medium. Background Art

[0002] Subnet partitioning (IP subnet partition) refers to the division of a given network into several smaller parts, which are called subnets. Subnets are logical subdivisions of IP (Internet Protocol) networks. Computers in a subnet use the same most significant bit group in their IP addresses for addressing, called the network number, and the number of bits in the most significant bit group is called the subnet mask length. Subnets are identifiers used by IP networks to organize routing, so the planning and allocation of IP subnets is the focus of research on building and managing IP networks.

[0003] At present, subnet planning and allocation are mainly managed and maintained manually or with the assistance of a simple resource recording system. With the construction of cloud computing and 5G networks, the complexity of network structure continues to increase, and the original planning and allocation methods are highly dependent on the familiarity and professional ability of managers with the network. In the resource allocation process, when the network manager receives an application for IP subnet allocation, he needs to manually investigate the number of IP address requirements and determine the mask length in advance. According to the business system and purpose of the IP subnet requirements, the allocated subnets are excluded from the IP subnet allocation record data, and the free IP network segments are found from the IP address resource space. The IP subnets that meet the requirements are segmented from the IP network segments and returned to the applicant. This allocation method is more dependent on the network manager's familiarity with the managed network structure and personal experience, and has high requirements on the professional skills of the network manager. It is also very difficult to manually analyze and find the optimal IP subnet that meets these strategies. In the actual IP address resource allocation and management process, it can only be abandoned to simplify the complexity of the allocation work. However, as IP networks continue to expand, the number of routing data entries in the network is becoming increasingly large, and it is difficult to aggregate routes, which seriously affects the normal operation of routers; the fragmentation of IP address resource space is gradually increasing. Although the total amount of IP address resources is sufficient, it is impossible to find an IP subnet that meets the needs; when the IP subnet needs to be expanded, there is not enough space, and the IP subnet number can only be replaced, resulting in additional work such as IP network device configuration adjustment. Therefore, how to design a stable and efficient IP subnet allocation solution has become a problem that needs to be solved urgently. Summary of the invention

[0004] To this end, the present invention provides an IP subnet allocation method and device to solve the problem that the IP subnet allocation scheme in the prior art has high limitations, resulting in poor efficiency and stability in IP subnet division and allocation.

[0005] In a first aspect, the present invention provides a method for allocating an IP subnet, comprising:

[0006] Obtaining an input IP subnet query request, and determining a candidate IP subnet list based on the IP address resource requirement description information in the IP subnet query request;

[0007] Determine the comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list based on the planning strategy of subnet distribution in the preset IP network, the planning strategy of IP address resource space fragmentation, the planning strategy of reserving expansion space and the corresponding planning strategy weight values;

[0008] According to the comprehensive evaluation score, a corresponding IP subnet allocation suggestion is output.

[0009] In one embodiment, determining the candidate IP subnet list based on the IP address resource requirement description information in the IP subnet query request specifically includes:

[0010] Determine the maximum subnet mask length according to the number of IP address requirements in the IP address resource requirement description information;

[0011] According to the belonging IP network segment and the maximum subnet mask length in the IP address resource requirement description information, a corresponding candidate IP subnet list is screened out from the IP address resource space.

[0012] In one embodiment, the IP subnet allocation method further includes: determining the planning strategy weight values ​​corresponding to the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragments, and the planning strategy of reserved expansion space according to the individual strategy evaluation scores corresponding to the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragments, and the planning strategy of reserved expansion space.

[0013] In one embodiment, the planning strategy based on the preset subnet distribution in the IP network, the planning strategy of IP address resource space fragmentation, the planning strategy of reserving expansion space and the corresponding planning strategy weight value, determines the comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list, specifically including:

[0014] Based on the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragmentation, the planning strategy of reserved expansion space and the planning strategy weight value, and using the hierarchical analysis method model for comprehensive analysis, the comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list.

[0015] In one embodiment, before obtaining the input IP subnet query request, the method further includes:

[0016] Obtain IP layer network topology structure description data and IP address resource space description data;

[0017] Determine the network structure analysis result based on the IP layer network topology structure description data and the IP address resource space description data; wherein the network structure analysis result includes the IP subnet description data in use in the network, the router path relationship description data in the network, and the available IP subnet list description data in the IP address resource space;

[0018] The network structure analysis result is sent to the IP network structure description database.

[0019] In one embodiment, the IP address resource requirement description information further includes at least one of an IP address type, a required IP subnet access router, and IP subnet usage description information.

[0020] In a second aspect, the present invention further provides an IP subnet allocation device, comprising:

[0021] The first planning and analysis unit is used to obtain an input IP subnet query request, and determine a candidate IP subnet list based on the IP address resource requirement description information in the IP subnet query request;

[0022] A second planning and analysis unit is used to determine the comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list based on the planning strategy of subnet distribution in the preset IP network, the planning strategy of IP address resource space fragmentation, the planning strategy of reserved expansion space and the corresponding planning strategy weight value;

[0023] The allocation suggestion output unit is used to output the corresponding IP subnet allocation suggestion according to the comprehensive evaluation score.

[0024] In one embodiment, the first planning analysis unit is specifically configured to:

[0025] Determine the maximum subnet mask length according to the number of IP address requirements in the IP address resource requirement description information;

[0026] According to the belonging IP network segment and the maximum subnet mask length in the IP address resource requirement description information, a corresponding candidate IP subnet list is screened out from the IP address resource space.

[0027] In one embodiment, the IP subnet allocation device also includes: a third planning and analysis unit, which is used to determine the planning strategy weight values ​​corresponding to the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragments, and the planning strategy of reserved expansion space according to the individual strategy evaluation scores respectively corresponding to the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragments, and the planning strategy of reserved expansion space.

[0028] In one embodiment, the second planning analysis unit is specifically used to:

[0029] Based on the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragmentation, the planning strategy of reserved expansion space and the planning strategy weight value, and using the hierarchical analysis method model for comprehensive analysis, the comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list.

[0030] In one embodiment, the IP subnet allocation device further includes: a network structure analysis unit; before the first planning and analysis unit executes to obtain the input IP subnet query request, the network structure analysis unit is used to pre-obtain IP layer network topology structure description data and IP address resource space description data; based on the IP layer network topology structure description data and the IP address resource space description data, determine the network structure analysis result; wherein the network structure analysis result includes the IP subnet description data in use in the network, the router path relationship description data in the network and the available IP subnet list description data in the IP address resource space; the network structure analysis result is sent to the IP network structure description database.

[0031] In one embodiment, the IP address resource requirement description information further includes at least one of an IP address type, a required IP subnet access router, and IP subnet usage description information.

[0032] In a third aspect, the present invention further provides an electronic device comprising: a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the program, the steps of the IP subnet allocation method as described in any one of the above items are implemented.

[0033] In a fourth aspect, the present invention further provides a processor-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the IP subnet allocation method as described in any one of the above items are implemented.

[0034] The IP subnet allocation method provided in the embodiment of the present invention can adapt to IP subnet planning and allocation tasks under different requirements by comprehensively considering the resource management strategy for optimizing the distribution of IP subnets in the network, thereby improving the efficiency and stability of the entire IP subnet planning process and improving the resource utilization of IP addresses. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0036] Figure 1 A schematic diagram of a flow chart of a method for allocating IP subnets provided in an embodiment of the present invention;

[0037] Figure 2 A schematic diagram of an IP layer network topology structure provided by an embodiment of the present invention;

[0038] Figure 3 A schematic diagram of the structure of an IP subnet allocation device provided in an embodiment of the present invention;

[0039] Figure 4 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] The IP subnet allocation scheme provided by the present invention is suitable for planning and allocating suitable IPv4 or IPv6 subnets for network devices under IPv4 and IPv6 protocol environments.

[0042] The following is a detailed description of an embodiment of the method for allocating IP subnets according to the present invention. Figure 1 As shown, it is a flow chart of the method for allocating IP subnets provided by an embodiment of the present invention, and the specific implementation process includes the following steps:

[0043] Step 101: Obtain an input IP subnet query request, and determine a candidate IP subnet list based on the IP address resource requirement description information in the IP subnet query request.

[0044] In the embodiment of the present invention, before obtaining the input IP subnet query request, it also includes: obtaining IP layer network topology structure description data and IP address resource space description data in advance; determining the network structure analysis result based on the IP layer network topology structure description data and the IP address resource space description data; wherein the network structure analysis result includes the IP subnet description data in use in the network, the router path relationship description data in the network and the available IP subnet list description data in the IP address resource space; and sending the network structure analysis result to the IP network structure description database. The IP (Internet Protocol) is the Internet Protocol.

[0045] Specifically, IP network probes are deployed in the IP network to collect network structure data, that is, data related to IP addresses in the IP network. This includes: using the ICMP protocol to periodically scan IP addresses in the IP network, and collecting information such as IP address reachability and IP routing paths. This type of information can be used to assist in determining whether the relevant IP subnet already exists in the IP network; using the SNMP protocol to collect information such as the network number, mask, next-hop IP address, and home router of the IP subnet in routers and switches. This type of information can be used to determine whether the IP subnet exists in the IP network and calculate the adjacent relationship between IP subnets; using SSH, Telnet, or files to collect information such as the network number, mask, next-hop IP address, and home router of the IP subnet in routers and switch devices that do not support the SNMP protocol;

[0046] In an embodiment of the present invention, the network structure data collected by the IP network probe using the above method is sorted and analyzed by a preset algorithm, and combined with the IP address segment table within the management scope (the IP address segment table contains fields such as IP network number and mask length) and the IP address resource allocation record ledger table (the IP address resource allocation record ledger table contains fields such as IP network number, mask length, belonging router, purpose, etc.), to form a complete IP layer network topology structure description data and IP address resource space description data, specifically including the IP subnet number, mask, belonging router, purpose description information, etc. in the network.

[0047] The network structure analysis result is determined according to the IP layer network topology structure description data and the IP address resource space description data, and the network structure analysis result is stored in the IP network structure description database.

[0048] The network structure analysis result includes the description data of the IP subnets in use in the network, the description data of the router path relationship in the network, and the description data of the list of available IP subnets in the IP address resource space; and the network structure analysis result is sent to the IP network structure description database. The description data of the IP subnets in use in the network includes fields such as IP subnet number, mask, belonging router, and purpose description information; the description data of the router path relationship in the network includes fields such as local router information and remote router information; and the description data of the list of available IP subnets in the IP address resource space includes fields such as IP subnet number, mask, belonging IP network segment, etc.

[0049] In this step, the maximum subnet mask length can be determined based on the number of IP address requirements in the IP address resource requirement description information; and the corresponding candidate IP subnet list can be screened out from the IP address resource space based on the home IP network segment and the maximum subnet mask length in the IP address resource requirement description information. The IP address resource requirement description information also includes description information of the IP address type (IPv4 or IPv6), the number of IP address requirements, the home router, the home IP network segment, and the purpose of the IP subnet; the planning strategy for subnet distribution in the IP network, the planning strategy for IP address resource space fragmentation, and the planning strategy for reserved expansion space, etc., which are not specifically limited here.

[0050] In the actual implementation process, first obtain the IP address resource demand description information input by the network administrator from the client according to the actual IP address resource demand, and obtain the subjective evaluation of the importance of the input "subnet distribution planning strategy in the IP network", "IP address resource space fragmentation planning strategy" and "reserved expansion space planning strategy" in resource allocation, that is, the corresponding single strategy evaluation score (for example, the evaluation value is 5 for very important, 4 for important, 3 for general importance, 2 for general, 1 for consideration, and 0 for not considering), and initiate an IP subnet query request. After receiving the IP subnet query request, based on the IP layer network topology structure description data, IP address resource space description data and IP address resource demand description information, determine the number of IP address resource requirements, the required IP subnet mask length and the description data of the IP network segment, and select a candidate IP subnet list from the available subnet list in the IP address resource space according to the filtering rules. Among them, the filtering rule is: through the IP segment to which the IP subnet belongs and the IP segment described in the IP subnet query request, when the preset conditions are met and the mask length of the available IP subnet is less than or equal to the required IP subnet mask length, the IP subnet is added to the candidate subnet list.

[0051] Step 102: Based on the planning strategy of subnet distribution in the preset IP network, the planning strategy of IP address resource space fragmentation, the planning strategy of reserving expansion space and the corresponding planning strategy weight values, determine the comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list.

[0052] Before executing this step, it is necessary to determine the planning strategy weight values ​​corresponding to the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragments and the planning strategy of reserved expansion space according to the individual strategy evaluation scores corresponding to the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragments and the planning strategy of reserved expansion space.

[0053] In this step, the comprehensive evaluation scores of the candidate IP subnets in the candidate IP subnet list can be obtained based on the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragmentation, the planning strategy of reserved expansion space, and the weight value of the planning strategy, and by using a hierarchical analysis model. The hierarchical analysis model is an analysis model based on the Analytic Hierarchy Process (AHP).

[0054] During the specific implementation process, the hierarchical analysis method model is used to calculate the comprehensive evaluation scores of the IP subnets in the candidate IP subnet list one by one based on the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragmentation, and the planning strategy of reserving expansion space.

[0055] It should be noted that, in the actual implementation process, the planning strategies for subnet distribution in IP networks, planning strategies for IP address resource space fragmentation, and planning strategies for reserving expansion space listed above can be selected separately or comprehensively considered according to actual conditions. That is, one of the three planning strategies can be selected separately according to actual conditions, or the planning strategies for subnet distribution in IP networks, planning strategies for IP address resource space fragmentation, and planning strategies for reserving expansion space can be comprehensively considered, and no specific limitation is made here.

[0056] Step 103: Outputting corresponding IP subnet allocation suggestions according to the comprehensive evaluation score.

[0057] In the specific implementation process, the comprehensive evaluation scores can be sorted from high to low, and the corresponding IP subnet allocation suggestions can be output to the client based on the sorting results, so that the network administrator can select the appropriate IP subnet from the IP subnet allocation suggestions and return them to the IP address resource demander to complete the entire allocation work. This solution can help network administrators complete the complex and tedious analysis of the existing network IP layer network topology data and IP address resource space utilization data in the process of IP address resource planning and allocation, thereby scientifically and rationally simplifying the IP subnet address planning and allocation work in network management.

[0058] In order to more clearly illustrate the technical solution of the present invention, a complete specific embodiment is provided below. Among them, the IP network segment used for IP address resource allocation is 2001::a0:0000 / 112; the IP layer network topology is as follows Figure 3 shown.

[0059] First, by analyzing the data collected by the IP network probe, a description table of the IP subnets in use in the network is constructed, which includes information such as IP network number, mask length, and belonging router, as shown in Table 1.

[0060] Table 1: Description of IP subnets in use

[0061] IP network number Mask length Home Router 2001::a80:100 121 R1 2001::a80:280 121 R2 2001::a80:2000 120 R3 2001::a80:3080 120 R4 2001::a0:100 121 R9 2001::a0:280 121 R10 2001::a0:2000 120 R11 2001::a0:3080 121 R12

[0062] Then, based on the information obtained in (1), the IP subnet information that can be used for allocation is calculated, including the network number and the maximum mask length, as shown in Table 2 below.

[0063] Table 2: Description of available IP subnets

[0064]

[0065]

[0066] Then, the IP network router connection topology is calculated based on the information obtained from (1) and (2) above, including the local router and the remote router, as shown in Table 3 below.

[0067] Table 3: IP network router connection topology

[0068]

[0069]

[0070] Step 101 includes: obtaining an IP subnet query request initiated by the client according to actual needs. The parameters contained in the IP subnet query request include the number of IP address requirements, the IP network segment to which it belongs, the access router, the three planning strategies of "planning strategy for subnet distribution in IP network", "planning strategy for IP address resource space fragmentation" and "planning strategy for reserved expansion space", i.e., the corresponding single strategy evaluation scores (for example, the evaluation value is 5 for very important, 4 for important, 3 for generally important, 2 for general, 1 for consideration, and 0 for not considering). For example, the following Table 4 shows the same address requirements under different planning and allocation strategies:

[0071] Table 4: Example of the same address requirement under different planning and allocation strategies

[0072]

[0073] Step 102 includes: calculating the maximum subnet mask length of 121 bits according to the number of IP address requirements in the planning requirements; and filtering out a candidate IP subnet list according to the belonging IP network segment in the planning requirements and the calculated maximum subnet mask length, as shown in Table 5.

[0074] Table 5: Candidate IP subnet list

[0075]

[0076]

[0077] Step 102 also includes: calculating the planning strategy weight value corresponding to each planning strategy, the calculation formula is: planning strategy weight value = the subjective evaluation score of a single strategy or the sum of the subjective evaluation scores of all strategies, the calculation result is specifically shown in Table 6:

[0078] Table 6: Planning strategy calculation results

[0079]

[0080]

[0081] Step 102 also includes: calculating the comprehensive evaluation score of each candidate IP subnet according to the three planning strategies of "planning strategy for subnet distribution in IP network", "planning strategy for IP address resource space fragmentation" and "planning strategy for reserved expansion space" to determine the priority. The smaller the sequence number, the higher the priority, and the same level is given the same priority.

[0082] Step 103 includes: sorting the comprehensive evaluation scores from large to small or from high to low and outputting corresponding IP subnet allocation suggestions to the client.

[0083] Specifically, the priority calculation method of the planning strategy for subnet distribution in the preset IP network is: search for adjacent IP subnets in use in the home router, and if there are adjacent subnets, the candidate subnet has the highest priority 1; if no adjacent IP subnets in use are found in the home router, search for adjacent IP subnets in use in routers adjacent to the home router, and if there are adjacent subnets, the priority of the candidate subnet is 2; if no adjacent IP subnets in use are found in routers adjacent to the home router, search for adjacent IP subnets in use in routers with a hop count of 2 to the home router, and if there are adjacent subnets, the priority of the candidate subnet is 3; the priority of the candidate subnet that does not find the above adjacent subnets is 9.

[0084] The priority calculation method of the planning strategy for IP address resource space fragmentation is as follows: if there is an in-use subnet adjacent to the candidate subnet in the network, the priority of the candidate subnet is 1, plus the difference between the required subnet mask length and the candidate subnet mask length. For example, if the required subnet mask length is 121 and the candidate subnet mask length is 120, the priority value calculation result is 1+(121-120)=2; for the candidate subnets that do not have an adjacent in-use subnet that meets condition 1 in the network, they are given a priority starting from 2 according to the mask length from large to small, and the priority value is increased by 1 for each decrease in the mask length, with a maximum of 9.

[0085] The priority calculation method for the planning strategy of reserving expansion space is as follows:

[0086] a) When the candidate subnet mask length is the same as the required subnet mask length, the priority is assigned a value of 2; when it is greater than the required subnet mask length, the priority is assigned a value of 1.

[0087] Table 7: Candidate subnet single item evaluation priority results table

[0088]

[0089]

[0090] b) Normalize each policy number according to (maximum priority value - candidate subnet priority value) / (maximum priority value - minimum priority value), and calculate the weighted comprehensive evaluation score of each candidate IP subnet, and give priority to the one with the higher score.

[0091] Table 8: Comprehensive evaluation results of candidate subnets under different strategy combinations

[0092]

[0093]

[0094]

[0095]

[0096] c) Sort the comprehensive evaluation scores from large to small or from high to low and output the corresponding IP subnet allocation suggestions to the client. The network administrator selects the most appropriate IP subnet information and returns it to the party demanding IP address resources.

[0097] In this implementation, the above three planning strategies have different focuses, but the order of IP subnets in the output candidate sub-IP network list conforms to the combination of the three planning strategies, among which: the first query focuses on routing optimization, and the optimal IP subnet determined is 2001::a0:200 / 121, which is adjacent to the IP subnet 2001::a0:280 / 121 in use in R10. The upper router can summarize the routes to achieve the purpose of optimization. The second query uses the balanced strategy, and all allocation strategies need to be considered. The system comprehensively calculates and gives the optimal subnets as 2001::a0:0 / 120, 2001::a0:300 / 120 and 2001::a0:2100 / 120, taking into account the needs of the three planning strategies at the same time. The third query focuses on expansion capabilities and takes into account network route aggregation. The system comprehensively calculates and gives the optimal subnets as 2001::a0:0 / 120, 2001::a0:300 / 120, 2001::a0:2100 / 120 and 2001::a0:2200 / 119. The output candidate subnet recommendations meet the requirements of optimizing subnet distribution in IP networks while considering expansion capabilities.

[0098] The IP subnet allocation method provided in the embodiment of the present invention can adapt to IP subnet planning and allocation tasks under different requirements by comprehensively considering the resource management strategy for optimizing the distribution of IP subnets in the network, thereby improving the efficiency and stability of the entire IP subnet planning process and improving the resource utilization of IP addresses.

[0099] Corresponding to the above-mentioned method for allocating IP subnets, the present invention also provides an apparatus for allocating IP subnets. Since the embodiment of the apparatus is similar to the above-mentioned method embodiment, the description is relatively simple. For the relevant parts, please refer to the description of the above-mentioned method embodiment. The embodiment of the apparatus for allocating IP subnets described below is only illustrative. Please refer to Figure 3 As shown, it is a structural diagram of an IP subnet allocation device provided by an embodiment of the present invention.

[0100] The IP subnet allocation device of the present invention comprises the following parts:

[0101] The first planning and analyzing unit 301 is used to obtain an IP subnet query request and determine a candidate IP subnet list based on the IP address resource requirement description information in the IP subnet query request;

[0102] The second planning and analysis unit 302 is used to determine the comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list based on the planning strategy of subnet distribution in the preset IP network, the planning strategy of IP address resource space fragmentation, the planning strategy of reserved expansion space and the corresponding planning strategy weight value;

[0103] The allocation suggestion output unit 303 is used to output the corresponding IP subnet allocation suggestion according to the comprehensive evaluation score.

[0104] The IP subnet allocation device provided in the embodiment of the present invention can adapt to IP subnet planning and allocation tasks under different requirements by comprehensively considering the resource management strategy for optimizing the distribution of IP subnets in the network, thereby improving the efficiency and stability of the entire IP subnet planning process and improving the resource utilization of IP addresses.

[0105] Corresponding to the IP subnet allocation method provided above, the present invention also provides an electronic device. Since the embodiment of the electronic device is similar to the above method embodiment, the description is relatively simple. For the relevant parts, please refer to the description of the above method embodiment. The electronic device described below is only for illustration. Figure 4 As shown, it is a schematic diagram of the physical structure of an electronic device disclosed in an embodiment of the present invention. The electronic device may include: a processor 401, a memory 402 and a communication bus 403, wherein the processor 401 and the memory 402 complete mutual communication through the communication bus 403, and communicate with the outside through the communication interface 404. The processor 401 can call the logic instructions in the memory 402 to execute the allocation method of the IP subnet. The method includes: obtaining an input IP subnet query request, determining a candidate IP subnet list based on the IP address resource demand description information in the IP subnet query request; determining the comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list based on the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragmentation, the planning strategy of reserved expansion space and the corresponding planning strategy weight value; outputting the corresponding IP subnet allocation suggestion according to the level of the comprehensive evaluation score.

[0106] In addition, the logic instructions in the above-mentioned memory 402 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: a storage chip, a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes.

[0107] On the other hand, an embodiment of the present invention further provides a computer program product, the computer program product includes a computer program stored on a processor-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the IP subnet allocation method provided by the above-mentioned method embodiments. The method includes: obtaining an input IP subnet query request, and determining a candidate IP subnet list based on the IP address resource demand description information in the IP subnet query request; determining a comprehensive evaluation score of a candidate IP subnet in the candidate IP subnet list based on a preset planning strategy for subnet distribution in an IP network, a planning strategy for IP address resource space fragmentation, a planning strategy for reserved expansion space, and corresponding planning strategy weight values; and outputting a corresponding IP subnet allocation suggestion according to the comprehensive evaluation score.

[0108] On the other hand, an embodiment of the present invention further provides a processor-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor, the method for allocating IP subnets provided in the above embodiments is implemented. The method includes: obtaining an input IP subnet query request, and determining a candidate IP subnet list based on the IP address resource demand description information in the IP subnet query request; determining a comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list based on a preset planning strategy for subnet distribution in the IP network, a planning strategy for IP address resource space fragmentation, a planning strategy for reserved expansion space, and corresponding planning strategy weight values; and outputting a corresponding IP subnet allocation suggestion according to the comprehensive evaluation score.

[0109] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.

[0110] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0111] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for allocating IP subnets, characterized in that: include: Obtaining an input IP subnet query request, and determining a candidate IP subnet list based on the IP address resource requirement description information in the IP subnet query request; Determine the comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list based on the planning strategy of subnet distribution in the preset IP network, the planning strategy of IP address resource space fragmentation, the planning strategy of reserving expansion space and the corresponding planning strategy weight values; According to the comprehensive evaluation score, a corresponding IP subnet allocation suggestion is output.

2. The method for allocating IP subnets according to claim 1, characterized in that: The determining of the candidate IP subnet list based on the IP address resource requirement description information in the IP subnet query request specifically includes: Determine the maximum subnet mask length according to the number of IP address requirements in the IP address resource requirement description information; According to the belonging IP network segment and the maximum subnet mask length in the IP address resource requirement description information, a corresponding candidate IP subnet list is screened out from the IP address resource space.

3. The method for allocating IP subnets according to claim 2, characterized in that: Also includes: According to the individual strategy evaluation scores respectively corresponding to the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragments and the planning strategy of reserved expansion space, the planning strategy weight values ​​respectively corresponding to the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragments and the planning strategy of reserved expansion space are determined.

4. The method for allocating IP subnets according to claim 1, characterized in that: The planning strategy based on the preset subnet distribution in the IP network, the planning strategy of IP address resource space fragmentation, the planning strategy of reserving expansion space and the corresponding planning strategy weight values, determines the comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list, specifically including: Based on the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragmentation, the planning strategy of reserved expansion space and the planning strategy weight value, and using the hierarchical analysis method model for comprehensive analysis, the comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list.

5. The method for allocating IP subnets according to claim 1, characterized in that: Before receiving the input IP subnet query request, it also includes: Obtain IP layer network topology structure description data and IP address resource space description data; Determine the network structure analysis result based on the IP layer network topology structure description data and the IP address resource space description data; wherein the network structure analysis result includes the IP subnet description data in use in the network, the router path relationship description data in the network, and the available IP subnet list description data in the IP address resource space; The network structure analysis result is sent to the IP network structure description database.

6. The method for allocating IP subnets according to any one of claims 1 to 5, characterized in that: The IP address resource requirement description information also includes at least one of an IP address type, a required IP subnet access router, and IP subnet usage description information.

7. An IP subnet allocation device, characterized in that: include: The first planning and analysis unit is used to obtain an input IP subnet query request, and determine a candidate IP subnet list based on the IP address resource requirement description information in the IP subnet query request; A second planning and analysis unit is used to determine the comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list based on the planning strategy of subnet distribution in the preset IP network, the planning strategy of IP address resource space fragmentation, the planning strategy of reserved expansion space and the corresponding planning strategy weight value; The allocation suggestion output unit is used to output the corresponding IP subnet allocation suggestion according to the comprehensive evaluation score.

8. The IP subnet allocation device according to claim 7, characterized in that: The second planning and analysis unit is specifically used to: based on the planning strategy of subnet distribution in the IP network, the planning strategy of IP address resource space fragmentation, the planning strategy of reserved expansion space and the planning strategy weight value, and using the hierarchical analysis method model to perform a comprehensive analysis, the comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the steps of the IP subnet allocation method according to any one of claims 1 to 6 are implemented.

10. A processor-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for allocating an IP subnet as claimed in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • IPV6 address storage and rapid query method based on IPV6 address division

    CN105357334A

  • High-throughput resource schedule method with delay perception based on converged network virtualization

    CN106789744A