CN115842805A - IP subnet allocation method and device - Google Patents
IP subnet allocation method and device Download PDFInfo
- Publication number
- CN115842805A CN115842805A CN202111096910.0A CN202111096910A CN115842805A CN 115842805 A CN115842805 A CN 115842805A CN 202111096910 A CN202111096910 A CN 202111096910A CN 115842805 A CN115842805 A CN 115842805A
- Authority
- CN
- China
- Prior art keywords
- subnet
- planning
- network
- candidate
- address resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 238000013439 planning Methods 0.000 claims abstract description 159
- 238000011156 evaluation Methods 0.000 claims abstract description 46
- 239000012634 fragment Substances 0.000 claims abstract description 30
- 238000004458 analytical method Methods 0.000 claims description 27
- 230000015654 memory Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012216 screening Methods 0.000 claims description 5
- 238000013467 fragmentation Methods 0.000 claims description 4
- 238000006062 fragmentation reaction Methods 0.000 claims description 4
- 238000007726 management method Methods 0.000 abstract description 7
- 238000004364 calculation method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000013468 resource allocation Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 239000000523 sample Substances 0.000 description 3
- 238000001914 filtration Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000000547 structure data Methods 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013479 data entry Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method and a device for allocating IP subnets. Wherein the method comprises the following steps: acquiring an input IP subnet inquiry request, and determining a candidate IP subnet list based on IP address resource demand description information in the IP subnet inquiry request; determining a comprehensive evaluation score of the candidate IP subnets in the candidate IP subnet list based on a preset planning strategy of subnet distribution in the IP network, a planning strategy of IP address resource space fragments, a planning strategy of reserved expansion space and a corresponding planning strategy weight value; and outputting corresponding IP subnet distribution suggestions according to the level of the comprehensive evaluation score. By adopting the IP subnet distribution method provided by the invention, the resource management strategy for optimizing the IP subnet distribution in the network is comprehensively considered, the IP subnet planning and distribution tasks under different requirements can be adapted, the efficiency and stability of the whole IP subnet planning process are improved, and the resource utilization rate of the IP address is improved.
Description
Technical Field
The invention relates to the technical field of network communication, in particular to a method and a device for allocating IP subnets. In addition, an electronic device and a processor-readable storage medium are also related.
Background
Subnet partitioning (IP subnet partition) refers to the division of a given network into smaller parts, which are referred to as subnets. A subnet is a logical subdivision of an IP (Internet Protocol) network. 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 the identifiers used by IP networks to organize routes, and therefore, IP subnet planning and allocation is the focus of research in building and managing IP networks.
Currently, subnet planning and allocation is mainly managed and maintained manually or assisted by a simple resource record system. With the construction of cloud computing and 5G networks, the complexity of network structures is continuously increased, and the original planning and distribution mode highly depends on the familiarity and professional ability of managers on the networks. In the resource allocation process, after a network manager receives an IP subnet allocation application, the number of IP address requirements needs to be manually investigated in advance to determine the mask length. According to the service system and the application required by the IP subnet, the distributed subnet is excluded from the IP subnet distribution record data, the idle IP network segment is searched from the IP address resource space, the IP subnet meeting the requirement is segmented from the IP network segment, and the IP subnet is returned to the applicant. The distribution formula depends on the familiarity of network managers on the managed network structure and personal experience, the requirement on the professional skills of the network managers is high, manual analysis and searching of the optimal IP subnet meeting the strategies are very difficult, and only consideration can be given up in the actual IP address resource distribution and management process so as to simplify the complexity of distribution work. However, as the IP network is continuously expanded, the number of routing data entries in the network is increasingly huge, and it is difficult to summarize the routes, which seriously affects the normal operation of the router; the fragmentation of the IP address resource space is gradually intensified, and although the total amount of the IP address resources is enough, an IP subnet which meets the requirement cannot be found; when the IP subnet needs to be expanded, enough space is not available, and only the IP subnet number can be replaced, which causes additional work such as configuration adjustment of IP network equipment. Therefore, how to design a stable and efficient allocation scheme of the IP subnet becomes a difficult problem to be solved urgently.
Disclosure of Invention
Therefore, the invention provides an IP subnet allocation method and device, which are used for solving the problems of poor IP subnet dividing and allocating efficiency and stability caused by high limitation of an IP subnet allocation scheme in the prior art.
In a first aspect, the present invention provides a method for allocating IP subnets, including:
acquiring an input IP subnet inquiry request, and determining a candidate IP subnet list based on IP address resource demand description information in the IP subnet inquiry request;
determining a comprehensive evaluation score of the candidate IP subnets in the candidate IP subnet list based on a preset planning strategy of subnet distribution in the IP network, a planning strategy of IP address resource space fragments, a planning strategy of reserved expansion space and a corresponding planning strategy weight value;
and outputting corresponding IP subnet distribution suggestions according to the level of the comprehensive evaluation score.
In an embodiment, the determining the candidate IP subnet list based on the IP address resource requirement description information in the IP subnet query request specifically includes:
determining the maximum subnet mask length according to the IP address demand quantity in the IP address resource demand description information;
and screening out a corresponding candidate IP subnet list from the IP address resource space according to the attribution IP network segment and the maximum subnet mask length in the IP address resource requirement description information.
In one embodiment, the method for allocating IP subnets further includes: and determining the planning strategy distributed by the subnet in the IP network, the planning strategy of the IP address resource space fragment and the planning strategy of the reserved expansion space respectively corresponding to the planning strategy evaluation scores according to the single strategy evaluation scores respectively corresponding to the planning strategy distributed by the subnet in the IP network, the planning strategy of the IP address resource space fragment and the planning strategy of the reserved expansion space.
In one embodiment, the determining a comprehensive evaluation score of the candidate IP subnets in the candidate IP subnet list based on a preset planning policy of subnet distribution in the IP network, a planning policy of fragments of an IP address resource space, a planning policy of reserving a volume expansion space, and a corresponding planning policy weight value specifically includes:
and carrying out comprehensive analysis by utilizing an analytic hierarchy process model based on a planning strategy of subnet distribution in the IP network, a planning strategy of IP address resource space fragments, a planning strategy of the reserved expansion space and the planning strategy weight value, and comprehensively evaluating scores of the candidate IP subnets in the candidate IP subnet list.
In one embodiment, before obtaining the input IP subnet query request, the method further includes:
obtaining IP layer network topological structure description data and IP address resource space description data;
determining a network structure analysis result based on the IP layer network topology structure description data and the IP address resource space description data; the network structure analysis result comprises IP subnet description data used in the network, router path relation description data in the network and available IP subnet list description data in an IP address resource space;
and sending the network structure analysis result to an IP network structure description database.
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.
In a second aspect, the present invention further provides an IP subnet allocating apparatus, including:
the first planning and analyzing unit is used for acquiring an input IP subnet inquiry request and determining a candidate IP subnet list based on IP address resource requirement description information in the IP subnet inquiry request;
the second planning and analyzing unit is used for determining the comprehensive evaluation score of the candidate IP subnets in the candidate IP subnet list based on a preset planning strategy of subnet distribution in the IP network, a planning strategy of IP address resource space fragments, a planning strategy of reserved expansion space and corresponding planning strategy weight values;
and the distribution suggestion output unit is used for outputting corresponding IP subnet distribution suggestions according to the level of the comprehensive evaluation score.
In an embodiment, the first planning analysis unit is specifically configured to:
determining the maximum subnet mask length according to the IP address demand quantity in the IP address resource demand description information;
and screening out a corresponding candidate IP subnet list from the IP address resource space according to the attribution IP network segment and the maximum subnet mask length in the IP address resource requirement description information.
In one embodiment, the IP subnet allocating device further includes: and a third planning analysis unit, configured to determine, according to the individual policy evaluation scores respectively corresponding to the planning policy for subnet distribution in the IP network, the planning policy for IP address resource space fragments, and the planning policy for reserved expansion space, the planning policy weight values respectively corresponding to the planning policy for subnet distribution in the IP network, the planning policy for IP address resource space fragments, and the planning policy for reserved expansion space.
In an embodiment, the second planning and analyzing unit is specifically configured to:
and carrying out comprehensive analysis by utilizing an analytic hierarchy process model based on a planning strategy of subnet distribution in the IP network, a planning strategy of IP address resource space fragments, a planning strategy of the reserved expansion space and the planning strategy weight value, and comprehensively evaluating scores of the candidate IP subnets in the candidate IP subnet list.
In one embodiment, the IP subnet allocating device further includes: a network structure analysis unit; before the first planning and analyzing unit executes and acquires the input IP subnet inquiry request, the network structure analyzing unit is used for acquiring IP layer network topology structure description data and IP address resource space description data in advance; determining a network structure analysis result based on the IP layer network topology structure description data and the IP address resource space description data; the network structure analysis result comprises IP subnet description data used in the network, router path relation description data in the network and available IP subnet list description data in an IP address resource space; and sending the network structure analysis result to an IP network structure description database.
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.
In a third aspect, the present invention also provides an electronic device, including: memory, processor and computer program stored on the memory and running on the processor, the processor implementing the steps of the method of allocating IP subnets as described in any one of the above when executing the program.
In a fourth aspect, the present invention further provides a processor-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the IP subnet allocation method as described in any one of the above.
The IP subnet distribution method provided by the embodiment of the invention can adapt to IP subnet planning and distribution tasks under different requirements by comprehensively considering the resource management strategy for optimizing the IP subnet distribution in the network, thereby improving the efficiency and stability of the whole IP subnet planning process and improving the resource utilization rate of IP addresses.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an allocation method for IP subnets according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an IP layer network topology according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an allocation apparatus for IP subnets according to an embodiment of the present invention;
fig. 4 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The IP subnet distribution scheme provided by the invention is suitable for planning and distributing proper IPv4 or IPv6 subnets for network equipment under IPv4 and IPv6 protocol environments.
The following describes an embodiment of the IP subnet allocation method according to the present invention in detail. As shown in fig. 1, which is a schematic flow chart of an IP subnet allocation method provided in an embodiment of the present invention, a specific implementation process includes the following steps:
step 101: the method comprises the steps of obtaining an input IP subnet inquiry request, and determining a candidate IP subnet list based on IP address resource demand description information in the IP subnet inquiry request.
In the embodiment of the present invention, before acquiring the input IP subnet query request, the method further includes: obtaining IP layer network topological structure description data and IP address resource space description data in advance; determining a network structure analysis result based on the IP layer network topology structure description data and the IP address resource space description data; the network structure analysis result comprises IP subnet description data used in the network, router path relation description data in the network and available IP subnet list description data in an IP address resource space; and sending the network structure analysis result to an IP network structure description database. The IP (Internet Protocol) is an Internet Protocol.
Specifically, the network structure data, i.e. the data related to the IP address in the IP network, is collected by deploying an IP network probe in the IP network. The method comprises the following steps: the ICMP protocol is used for periodically scanning IP addresses in the IP network and collecting information such as accessibility of the IP addresses and IP routing paths, and the information can be used for assisting in judging whether related IP subnets exist in the IP network or not; using SNMP protocol to collect information of network number, mask, next hop IP address, home router, etc. of IP sub-network in router and exchanger, which can be used to judge whether IP sub-network exists in IP network and calculate adjacent relation between IP sub-networks; collecting information such as network number, mask, next hop IP address, home router and the like of IP subnets in the router and the switch equipment which do not support the SNMP protocol in an SSH or Telnet or file mode;
in the embodiment of the present invention, the network structure data collected by the IP network probe using the method is sorted and analyzed by using a preset algorithm, and an IP address network segment table (the IP address network segment table includes fields such as an IP network number and a mask length) and an IP address resource allocation record ledger table (the IP address resource allocation record ledger table includes fields such as an IP network number, a mask length, a home router, and a use) within a management range are combined to form complete IP layer network topology structure description data and IP address resource space description data, which specifically include an IP subnet number, a mask, a home router, and use description information in a network.
And determining a network structure analysis result according to the IP layer network topology structure description data and the IP address resource space description data, and storing the network structure analysis result into an IP network structure description database.
The network structure analysis result comprises IP subnet description data used in the network, router path relation description data in the network and available IP subnet list description data in an IP address resource space; and sending the network structure analysis result to an IP network structure description database. The IP subnet description data used in the network comprises fields such as an IP subnet number, a mask, a home router, application description information and the like; the router path relation description data in the network comprises fields such as local router information, far-end router information and the like; the available IP subnet list description data in the IP address resource space comprises fields such as an IP subnet number, a mask, a home IP network segment and the like.
In this step, the maximum subnet mask length may be specifically determined according to the IP address demand number in the IP address resource demand description information; and screening out a corresponding candidate IP subnet list from the IP address resource space according to the attribution 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 comprises an IP address type (IPv 4 or IPv 6), IP address requirement quantity, a home router, a home IP network segment and the use description information of the IP subnet; 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 correspond to a single strategy evaluation score, etc., which are not specifically limited herein.
In the actual implementation process, firstly, IP address resource requirement description information input by a network administrator from a client according to an actual IP address resource requirement is obtained, and subjective evaluations of the importance degrees of the input "planning strategy for subnet distribution in an IP network", "planning strategy for fragmentation of an IP address resource space", and "planning strategy for reserving a volume expansion space" in resource allocation, that is, corresponding single policy evaluation scores (for example, evaluation value is 5, 4, 3, 2, 1, and 0) are obtained, and an IP subnet query request is initiated. After an IP subnet inquiry request is received, the quantity of IP address resource demands, the required IP subnet mask length and the description data of an IP network segment are determined based on IP layer network topology structure description data, IP address resource space description data and IP address resource demand description information, and a candidate IP subnet list is obtained from an available subnet list in an IP address resource space according to a filtering rule. Wherein the filtering rule is: and when the preset condition is met and the mask length of the available IP subnet is less than or equal to the required mask length of the IP subnet, the IP subnet is put into the candidate subnet list.
Step 102: and determining the comprehensive evaluation score of the candidate IP subnets in the candidate IP subnet list based on a planning strategy of subnet distribution in a preset IP network, a planning strategy of IP address resource space fragments, a planning strategy of reserved expansion space and corresponding planning strategy weight values.
Before executing this step, it is necessary to determine, in advance, the planning policy weight values corresponding to the planning policy for subnet distribution in the IP network, the planning policy for IP address resource space fragments, and the planning policy for reserved expansion space, according to the single policy evaluation scores corresponding to the planning policy for subnet distribution in the IP network, the planning policy for IP address resource space fragments, and the planning policy for reserved expansion space, respectively.
In this step, comprehensive analysis may be performed by using an analytic hierarchy process model based on a planning strategy of subnet distribution in the IP network, a planning strategy of IP address resource space fragments, a planning strategy of reserved expansion space, and the planning strategy weight value, and a comprehensive evaluation score of a candidate IP subnet in the candidate IP subnet list is obtained. Wherein the Analytic Hierarchy Process model is an Analytic Hierarchy Process (AHP) model.
In the specific implementation process, an analytic hierarchy process model is used for calculating comprehensive evaluation scores of IP subnets in a candidate IP subnet list one by one, wherein the comprehensive evaluation scores are determined by a planning strategy of IP subnet distribution in an IP network, a planning strategy of IP address resource space fragments and a planning strategy of reserved expansion space.
It should be noted that, in the actual implementation process, the above listed planning strategy for subnet distribution in the IP network, the above listed planning strategy for IP address resource space fragments, and the planning strategy for reserving the expansion space may be selected individually or considered comprehensively according to the actual situation. That is, one of the three planning strategies may be selected individually according to the actual situation, and a planning strategy of subnet distribution in the IP network, a planning strategy of fragments of the IP address resource space, and a planning strategy of reserving the expansion space may also be considered comprehensively, which is not limited specifically herein.
Step 103: and outputting corresponding IP subnet distribution suggestions according to the level of the comprehensive evaluation score.
In the specific implementation process, sorting can be performed from high to low according to the comprehensive evaluation score, and corresponding IP subnet allocation suggestions are output to the client according to the sorting result, so that a network administrator can conveniently select a proper IP subnet from the IP subnet allocation suggestions and return the proper IP subnet to an IP address resource demand side, and the whole allocation work is completed. The scheme can help a network administrator to finish complicated and fussy analysis work of current network IP layer network topology data and IP address resource space utilization condition data in the IP address resource planning and distribution process, thereby scientifically and reasonably simplifying the IP subnet address planning and distribution work in network management.
In order to more clearly illustrate the technical solution of the present invention, a complete specific example is provided below. Wherein, the IP network segment for IP address resource allocation is 2001: a0:0000/112; an IP layer network topology is shown in figure 3.
Firstly, an in-use IP subnet description table in the network is constructed by analyzing data collected by the IP network probe, and contains information such as an IP network number, a mask length, a home router, and the like, which is specifically shown in table 1.
Table 1: IP subnet description table in use
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 |
Then, according to the information obtained in (1), calculating out IP subnet information available for allocation, including a network number and a maximum mask length, as shown in table 2 below.
Table 2: available IP subnet description table
Further, the connection topology of the IP network router, including the home router and the remote router, is calculated according to the information obtained in (1) and (2), which is specifically shown in table 3 below.
Table 3: IP network router connection topology
Step 101 comprises: and acquiring an IP subnet inquiry request initiated by the client according to actual requirements. The parameters included in the IP subnet query request include three planning strategies, i.e., a number of required IP addresses, an attribution IP network segment, an access router, a planning strategy for subnet distribution in an IP network, a planning strategy for fragmentation of IP address resource space, and a planning strategy for reserving an expansion space, that is, a single strategy evaluation score (for example, an evaluation value is 5, 4, 3, 2, 1, and 0). For example, table 4 below is the same address requirements under different planning and allocation strategies:
table 4: case table for same address requirement under different planning and distribution strategies
Step 102 comprises: calculating the maximum subnet mask length to be 121 bits according to the IP address demand quantity in the planning demand; and screening out a candidate IP subnet list according to the attribution IP network segment in the planning requirement and the calculated maximum subnet mask length, which is specifically shown in table 5.
Table 5: candidate IP subnet list
Step 102 further comprises: calculating a planning strategy weight value corresponding to each planning strategy, wherein the calculation formula is as follows: the planning strategy weight value = the subjective evaluation score of a single strategy or the sum of the subjective evaluation scores of all strategies, and the calculation result is specifically shown in table 6:
table 6: planning strategy calculation result table
Step 102 further comprises: and respectively and independently calculating the comprehensive evaluation score of each candidate IP subnet according to three planning strategies of 'a planning strategy of subnet distribution in an IP network', 'a planning strategy of IP address resource space fragments' and 'a planning strategy of reserved expansion space', and determining the priority. The smaller the sequence number, the higher the priority, and the same level gives the same priority.
Step 103 comprises: and outputting corresponding IP subnet distribution suggestions to the client in the sequence from large to small or from high to low according to the comprehensive evaluation score.
Specifically, the method for calculating the priority of the planning strategy for presetting the distribution of the subnets in the IP network comprises the following steps: searching an adjacent IP subnet in use in the home router, wherein if the adjacent subnet exists, the candidate subnet is the highest priority 1; if the adjacent IP subnet is not found in the home router, searching the adjacent IP subnet in use in the router adjacent to the home router, if the adjacent subnet exists, the priority of the candidate subnet is 2; if the adjacent IP subnet is not found in the router adjacent to the home router, searching the adjacent IP subnet for the router with the hop number of 2 with the home router, and if the adjacent subnet exists, the priority of the candidate subnet is 3; the candidate subnet priority for which no above neighbor subnet is found is 9.
The priority calculation method of the planning strategy of the IP address resource space fragments comprises the following steps: if there is an active subnet adjacent to the candidate subnet in the network, the candidate subnet has a base value of 1, plus the difference between the desired subnet mask length minus 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; candidate subnets of adjacent active subnets which do not meet the condition 1 in the network are respectively given priority levels from 2 according to the mask length from large to small, and the maximum is 9 when the mask length is increased by 1 after being decreased by 1.
The priority calculation method of the planning strategy for reserving the expansion space comprises the following steps:
a) And when the length of the candidate subnet mask is consistent with that of the required subnet mask, assigning a value of 2 to the priority, and assigning a value of 1 to the priority when the length of the candidate subnet mask is greater than that of the required subnet mask.
Table 7: candidate subnet single item evaluation priority result table
b) And respectively normalizing the strategy serial numbers according to the maximum priority value-candidate subnet priority value/maximum priority value-minimum priority value, and calculating the comprehensive evaluation score of each weighted candidate IP subnet, wherein the score is high in priority selection.
Table 8: comprehensive evaluation result table under different strategy combinations of candidate subnets
c) And outputting corresponding IP subnet distribution suggestions to the client according to the sequence from large to small or from high to low of the comprehensive evaluation score, and selecting the most appropriate IP subnet information from the IP subnet distribution suggestions by a network manager and returning the most appropriate IP subnet information to the IP address resource demanding party.
In this implementation, the above three planning strategies are emphasized, but the order of the IP subnets in the output candidate sub-IP network list all conforms to the combination of the three planning strategies, where: the optimization of the first query side rerouting determines the optimal IP subnet 2001:: a0:200/121, and the upper level router can summarize routes to achieve the optimization purpose, wherein the optimal IP subnet is adjacent to the IP subnet 2001:: a0:280/121 in R10. The second query uses a balance strategy, all distribution strategies need to be considered, the optimal subnets given by the system comprehensive calculation are 2001:: a0:0/120, 2001:: a0:300/120 and 2001:: a0:2100/120, and the requirements of the three planning strategies are considered at the same time. The third query focuses on the expansion capability and gives consideration to network routing summary, the system comprehensively calculates to give out the optimal subnets of 2001:: a0:0/120, 2001:: a0:300/120, 2001:: a0:2100/120 and 2001:: a0:2200/119, and the output candidate subnet suggestions meet the requirement of optimizing subnet distribution in the IP network when the expansion capability is considered.
The IP subnet distribution method provided by the embodiment of the invention can adapt to IP subnet planning and distribution tasks under different requirements by comprehensively considering the resource management strategy for optimizing the IP subnet distribution in the network, thereby improving the efficiency and stability of the whole IP subnet planning process and improving the resource utilization rate of IP addresses.
Corresponding to the IP subnet distribution method, the invention also provides an IP subnet distribution device. Since the embodiment of the apparatus is similar to the above method embodiment, so that the description is simple, please refer to the description of the above method embodiment, and the following description of the embodiment of the IP subnet allocating apparatus is only illustrative. Fig. 3 is a schematic structural diagram of an IP subnet allocation apparatus according to an embodiment of the present invention.
The distribution device of the IP subnet comprises the following parts:
a first planning and analyzing unit 301, configured to obtain an IP subnet query request, and determine a candidate IP subnet list based on IP address resource requirement description information in the IP subnet query request;
a second planning and analyzing unit 302, configured to determine a comprehensive evaluation score of a candidate IP subnet in the candidate IP subnet list based on a preset planning policy of subnet distribution in the IP network, a planning policy of IP address resource space fragments, a planning policy of reserved expansion space, and a corresponding planning policy weight value;
and an allocation suggestion output unit 303, configured to output a corresponding IP subnet allocation suggestion according to the magnitude of the comprehensive evaluation score.
The distribution device of the IP subnet provided by the embodiment of the invention can adapt to IP subnet planning and distribution tasks under different requirements by comprehensively considering the resource management strategy for optimizing the IP subnet distribution in the network, thereby improving the efficiency and stability of the whole IP subnet planning process and improving the resource utilization rate of IP addresses.
Corresponding to the IP subnet distribution method, the invention also provides electronic equipment. Since the embodiment of the electronic device is similar to the above method embodiment, the description is simple, and please refer to the description of the above method embodiment, and the electronic device described below is only schematic. Fig. 4 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention. The electronic device may include: a processor (processor) 401, a memory (memory) 402 and a communication bus 403, wherein the processor 401 and the memory 402 communicate with each other through the communication bus 403 and communicate with the outside through a communication interface 404. Processor 401 may call logical instructions in memory 402 to perform the IP subnet assignment method. The method comprises the following steps: acquiring an input IP subnet inquiry request, and determining a candidate IP subnet list based on IP address resource demand description information in the IP subnet inquiry request; determining a comprehensive evaluation score of the candidate IP subnets in the candidate IP subnet list based on a planning strategy of subnet distribution in an IP network, a planning strategy of IP address resource space fragments, a planning strategy of reserved expansion space and corresponding planning strategy weight values; and outputting corresponding IP subnet distribution suggestions according to the level of the comprehensive evaluation score.
Furthermore, the logic instructions in the memory 402 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a Memory chip, a usb disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In another aspect, embodiments of the present invention further provide a computer program product, where the computer program product includes a computer program stored on a processor-readable storage medium, where 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 comprises the following steps: acquiring an input IP subnet inquiry request, and determining a candidate IP subnet list based on IP address resource demand description information in the IP subnet inquiry request; determining a comprehensive evaluation score of the candidate IP subnets in the candidate IP subnet list based on a preset planning strategy of subnet distribution in the IP network, a planning strategy of IP address resource space fragments, a planning strategy of reserved expansion space and a corresponding planning strategy weight value; and outputting corresponding IP subnet distribution suggestions according to the level of the comprehensive evaluation score.
In still another aspect, an embodiment of the present invention further provides a processor-readable storage medium, where a computer program is stored on the processor-readable storage medium, and when executed by a processor, the computer program is implemented to perform the IP subnet allocation method provided in each of the above embodiments. The method comprises the following steps: acquiring an input IP subnet inquiry request, and determining a candidate IP subnet list based on IP address resource demand description information in the IP subnet inquiry request; determining a comprehensive evaluation score of the candidate IP subnets in the candidate IP subnet list based on a preset planning strategy of subnet distribution in the IP network, a planning strategy of IP address resource space fragments, a planning strategy of reserved expansion space and a corresponding planning strategy weight value; and outputting corresponding IP subnet distribution suggestions according to the level of the comprehensive evaluation score.
The processor-readable storage medium can be any available medium or data storage device that can be accessed by a processor, including, but not limited to, magnetic memory (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc.), optical memory (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor memory (e.g., ROMs, EPROMs, EEPROMs, non-volatile memories (NAND FLASH), solid State Disks (SSDs)), etc.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A method for allocating IP subnets, comprising:
acquiring an input IP subnet inquiry request, and determining a candidate IP subnet list based on IP address resource demand description information in the IP subnet inquiry request;
determining a comprehensive evaluation score of the candidate IP subnets in the candidate IP subnet list based on a preset planning strategy of subnet distribution in the IP network, a planning strategy of IP address resource space fragments, a planning strategy of reserved expansion space and a corresponding planning strategy weight value;
and outputting corresponding IP subnet distribution suggestions according to the level of the comprehensive evaluation score.
2. The method according to claim 1, wherein the determining the candidate IP subnet list based on the IP address resource requirement description information in the IP subnet query request specifically comprises:
determining the maximum subnet mask length according to the IP address demand quantity in the IP address resource demand description information;
and screening out a corresponding candidate IP subnet list from the IP address resource space according to the attribution IP network segment and the maximum subnet mask length in the IP address resource requirement description information.
3. The method of allocating IP subnets of claim 2, further comprising: and determining the planning strategy distributed by the subnet in the IP network, the planning strategy of the IP address resource space fragment and the planning strategy of the reserved expansion space respectively corresponding to the planning strategy evaluation scores according to the single strategy evaluation scores respectively corresponding to the planning strategy distributed by the subnet in the IP network, the planning strategy of the IP address resource space fragment and the planning strategy of the reserved expansion space.
4. The IP subnet allocation method according to claim 1, wherein the determining the comprehensive evaluation score of the candidate IP subnet in the candidate IP subnet list based on a preset planning policy of subnet distribution in the IP network, a planning policy of IP address resource space fragmentation, a planning policy of reserved capacity expansion space, and a corresponding planning policy weight value specifically comprises:
and carrying out comprehensive analysis by utilizing an analytic hierarchy process model based on a planning strategy of subnet distribution in the IP network, a planning strategy of IP address resource space fragments, a planning strategy of the reserved expansion space and the planning strategy weight value, and comprehensively evaluating scores of the candidate IP subnets in the candidate IP subnet list.
5. The IP subnet allocation method according to claim 1, further comprising, before obtaining the input IP subnet query request:
obtaining IP layer network topological structure description data and IP address resource space description data;
determining a network structure analysis result based on the IP layer network topology structure description data and the IP address resource space description data; the network structure analysis result comprises IP subnet description data used in the network, router path relation description data in the network and available IP subnet list description data in an IP address resource space;
and sending the network structure analysis result to an IP network structure description database.
6. The method according to any of claims 1-5, wherein the IP address resource requirement description information further comprises at least one of IP address type, required IP subnet access router, and IP subnet usage description information.
7. An apparatus for allocating an IP subnet, comprising:
the first planning and analyzing unit is used for acquiring an input IP subnet inquiry request and determining a candidate IP subnet list based on IP address resource requirement description information in the IP subnet inquiry request;
the second planning and analyzing unit is used for determining the comprehensive evaluation score of the candidate IP subnets in the candidate IP subnet list based on a preset planning strategy of subnet distribution in the IP network, a planning strategy of IP address resource space fragments, a planning strategy of reserved expansion space and corresponding planning strategy weight values;
and the distribution suggestion output unit is used for outputting the corresponding IP subnet distribution suggestion according to the level of the comprehensive evaluation score.
8. The IP subnet allocation apparatus according to claim 7, wherein the second planning analysis unit is specifically configured to: and carrying out comprehensive analysis by utilizing an analytic hierarchy process model based on a planning strategy of subnet distribution in the IP network, a planning strategy of IP address resource space fragments, a planning strategy of the reserved expansion space and the planning strategy weight value, and comprehensively evaluating scores of the candidate IP subnets in the candidate IP subnet list.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that the processor implements the steps of the method of allocation of IP subnets according to any one of claims 1 to 6 when executing the program.
10. A processor-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for allocating IP subnets of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111096910.0A CN115842805A (en) | 2021-09-17 | 2021-09-17 | IP subnet allocation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111096910.0A CN115842805A (en) | 2021-09-17 | 2021-09-17 | IP subnet allocation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115842805A true CN115842805A (en) | 2023-03-24 |
Family
ID=85575133
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111096910.0A Pending CN115842805A (en) | 2021-09-17 | 2021-09-17 | IP subnet allocation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115842805A (en) |
-
2021
- 2021-09-17 CN CN202111096910.0A patent/CN115842805A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107241319B (en) | Distributed network crawler system based on VPN and scheduling method | |
US20050071469A1 (en) | Method and system for controlling egress traffic load balancing between multiple service providers | |
US9338128B2 (en) | Controlling the status of network address space | |
Yu et al. | Rethinking virtual network embedding: Substrate support for path splitting and migration | |
CN109451540B (en) | Resource allocation method and equipment for network slices | |
CN110519090B (en) | Method and system for allocating accelerator cards of FPGA cloud platform and related components | |
CN103001892B (en) | Based on network resource allocation method and the system of cloud computing | |
CN110858810A (en) | Network link state monitoring method, device, system and medium | |
Mühlbauer et al. | Impact of routing parameters on route diversity and path inflation | |
CN1330124C (en) | Method and apparatus for virtualizing network resources | |
WO2017148296A1 (en) | Method of assigning application to assigned service cluster and device | |
CN106982164A (en) | A kind of method for discovering network topology and equipment | |
CN107203623A (en) | The load balancing adjusting method of network crawler system | |
CN115842805A (en) | IP subnet allocation method and device | |
Chen et al. | Virtual network embedding with border matching | |
CN114448810B (en) | Bandwidth traction method and device and electronic equipment | |
JP5587254B2 (en) | Allocation apparatus, allocation program, allocation method, and allocation system | |
CN113595750B (en) | Network topology dividing method and device and network topology management equipment | |
CN109510875B (en) | Resource allocation method and device and electronic equipment | |
CN111935012B (en) | OSPF protocol-based enterprise network IP address convergence method and system | |
Chakraborty et al. | A particle swarm optimization-based approach towards the solution of the dynamic channel assignment problem in mobile cellular networks | |
Guo et al. | Service function chain optimization deployment mechanism based on node and link influence | |
JP6946937B2 (en) | Network controller, address design method and address design program | |
KR20190124512A (en) | Partitioning method and partitioning device for real-time distributed storage of graph stream | |
CN118118488B (en) | Cloud data service dynamic self-adaptive adjustment method and system based on cloud edge cooperation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |