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
- planning strategy
- 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 59
- 238000013439 planning Methods 0.000 claims abstract description 156
- 238000011156 evaluation Methods 0.000 claims abstract description 45
- 238000009826 distribution Methods 0.000 claims abstract description 41
- 239000012634 fragment Substances 0.000 claims abstract description 12
- 238000004458 analytical method Methods 0.000 claims description 38
- 238000013467 fragmentation Methods 0.000 claims description 21
- 238000006062 fragmentation reaction Methods 0.000 claims description 21
- 238000003860 storage Methods 0.000 claims description 14
- 230000015654 memory Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 11
- 238000012216 screening Methods 0.000 claims 1
- 238000007726 management method Methods 0.000 abstract description 7
- 238000004364 calculation method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000013468 resource allocation Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000001914 filtration Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 239000000523 sample Substances 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000000547 structure data Methods 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 230000002776 aggregation Effects 0.000 description 1
- 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
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process 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
- 238000000638 solvent extraction Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及网络通信技术领域,具体涉及一种IP子网的分配方法及装置。另外,还涉及一种电子设备及处理器可读存储介质。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
子网划分(IP subnet partition)是指由将一个给定的网络分为若干个更小的部分,这些更小的部分被称为子网。子网是IP(Internet Protocol;网际互连协议)网络的逻辑细分。子网中的计算机在其IP地址中使用相同的最高有效位组进行寻址,称为网络号,最高有效位组的bit位数量称为子网掩码长度。子网是IP网络用于组织路由的标识,因此IP子网的规划和分配是构建和管理IP网络的研究重点。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.
目前,子网规划和分配主要是通过人工方式或辅助简单的资源记录系统进行管理和维护。随着云计算和5G网络建设,网络结构复杂度不断增加,原有规划和分配方式高度依赖管理人员对网络的熟悉程度和专业能力。在资源分配过程中,当网络管理人员收到IP子网分配申请后,需要事先人工调研IP地址需求的数量,确定掩码长度。根据IP子网需求的业务系统和用途,从IP子网分配记录数据中排除已经分配的子网,从IP地址资源空间中查找空闲IP网段,并从IP网段中分割出满足需求的IP子网,返回给申请方。该种分配方式较为依赖网络管理人员对所管理网络结构的熟悉程度和个人经验,对网络管理人员的专业技能要求较高,且人工分析和查找满足这些策略的最优IP子网非常困难,在实际IP地址资源分配和管理过程中,只能放弃考虑,以简化分配工作的复杂度。然而,随着IP网络不断扩展,网路中路由数据条目数越来越庞大,且难以路由汇总,严重时影响路由器正常工作;IP地址资源空间碎片化逐渐加剧,IP地址资源总量虽然足够,但却无法找到满足需求的IP子网;IP子网需要扩展时却没有足够空间,只能更换IP子网号,导致IP网络设备配置调整等额外工作。因此,如何设计一种稳定、高效的IP子网的分配方案成为亟待解决的难题。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
为此,本发明提供一种IP子网的分配方法及装置,以解决现有技术存在的IP子网的分配方案局限性较高,导致IP子网划分和分配的效率和稳定性较差的问题。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.
第一方面,本发明提供一种IP子网的分配方法,包括:In a first aspect, the present invention provides a method for allocating an IP subnet, comprising:
获取输入的IP子网查询请求,基于所述IP子网查询请求中IP地址资源需求描述信息确定候选IP子网列表;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;
基于预设的IP网络中子网分布的规划策略、IP地址资源空间碎片的规划策略、预留扩容空间的规划策略以及相应的规划策略权重值,确定所述候选IP子网列表中候选IP子网的综合评估分值;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;
根据所述综合评估分值的高低,输出相应的IP子网分配建议。According to the comprehensive evaluation score, a corresponding IP subnet allocation suggestion is output.
在一个实施例中,所述基于所述IP子网查询请求中IP地址资源需求描述信息确定候选IP子网列表,具体包括: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:
根据所述IP地址资源需求描述信息中的IP地址需求数量,确定最大子网掩码长度;Determine the maximum subnet mask length according to the number of IP address requirements in the IP address resource requirement description information;
根据所述IP地址资源需求描述信息中的归属IP网段、所述最大子网掩码长度,从IP地址资源空间中筛选出相应的候选IP子网列表。According to the belonging IP network segment in the IP address resource requirement description information and the maximum subnet mask length, a corresponding candidate IP subnet list is screened out from the IP address resource space.
在一个实施例中,所述的IP子网的分配方法,还包括:根据所述IP网络中子网分布的规划策略、所述IP地址资源空间碎片的规划策略以及所述预留扩容空间的规划策略分别对应的单项策略评价分值,确定所述IP网络中子网分布的规划策略、所述IP地址资源空间碎片的规划策略以及所述预留扩容空间的规划策略分别对应的所述规划策略权重值。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.
在一个实施例中,所述基于预设的IP网络中子网分布的规划策略、IP地址资源空间碎片的规划策略、预留扩容空间的规划策略以及相应的规划策略权重值,确定所述候选IP子网列表中候选IP子网的综合评估分值,具体包括: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:
基于所述IP网络中子网分布的规划策略、所述IP地址资源空间碎片的规划策略、所述预留扩容空间的规划策略以及所述规划策略权重值,并利用层次分析法模型进行综合分析,所述候选IP子网列表中候选IP子网的综合评估分值。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.
在一个实施例中,在获取输入的IP子网查询请求之前,还包括:In one embodiment, before obtaining the input IP subnet query request, the method further includes:
获得IP层网络拓扑结构描述数据和IP地址资源空间描述数据;Obtain IP layer network topology structure description data and IP address resource space description data;
基于所述IP层网络拓扑结构描述数据和所述IP地址资源空间描述数据,确定网络结构分析结果;其中,所述网络结构分析结果包括网络中在用的IP子网描述数据、网络中路由器路径关系描述数据以及IP地址资源空间中可用IP子网列表描述数据;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;
将所述网络结构分析结果发送到IP网络结构描述数据库。The network structure analysis result is sent to the IP network structure description database.
在一个实施例中,所述IP地址资源需求描述信息还包括IP地址类型、所需求的IP子网接入路由器以及IP子网用途描述信息中的至少一种。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.
第二方面,本发明还提供一种IP子网的分配装置,包括:In a second aspect, the present invention further provides an IP subnet allocation device, comprising:
第一规划分析单元用于获取输入的IP子网查询请求,基于所述IP子网查询请求中IP地址资源需求描述信息确定候选IP子网列表;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;
第二规划分析单元,用于基于预设的IP网络中子网分布的规划策略、IP地址资源空间碎片的规划策略、预留扩容空间的规划策略以及相应的规划策略权重值,确定所述候选IP子网列表中候选IP子网的综合评估分值;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;
分配建议输出单元,用于根据所述综合评估分值的高低,输出相应的IP子网分配建议。The allocation suggestion output unit is used to output the corresponding IP subnet allocation suggestion according to the comprehensive evaluation score.
在一个实施例中,所述第一规划分析单元,具体用于:In one embodiment, the first planning analysis unit is specifically configured to:
根据所述IP地址资源需求描述信息中的IP地址需求数量,确定最大子网掩码长度;Determine the maximum subnet mask length according to the number of IP address requirements in the IP address resource requirement description information;
根据所述IP地址资源需求描述信息中的归属IP网段、所述最大子网掩码长度,从IP地址资源空间中筛选出相应的候选IP子网列表。According to the belonging IP network segment in the IP address resource requirement description information and the maximum subnet mask length, a corresponding candidate IP subnet list is screened out from the IP address resource space.
在一个实施例中,所述的IP子网的分配装置,还包括:第三规划分析单元,用于根据所述IP网络中子网分布的规划策略、所述IP地址资源空间碎片的规划策略以及所述预留扩容空间的规划策略分别对应的单项策略评价分值,确定所述IP网络中子网分布的规划策略、所述IP地址资源空间碎片的规划策略以及所述预留扩容空间的规划策略分别对应的所述规划策略权重值。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.
在一个实施例中,所述第二规划分析单元,具体用于:In one embodiment, the second planning analysis unit is specifically used to:
基于所述IP网络中子网分布的规划策略、所述IP地址资源空间碎片的规划策略、所述预留扩容空间的规划策略以及所述规划策略权重值,并利用层次分析法模型进行综合分析,所述候选IP子网列表中候选IP子网的综合评估分值。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.
在一个实施例中,所述的IP子网的分配装置,还包括:网络结构分析单元;在第一规划分析单元执行获取输入的IP子网查询请求之前,所述网络结构分析单元,用于预先获得IP层网络拓扑结构描述数据和IP地址资源空间描述数据;基于所述IP层网络拓扑结构描述数据和所述IP地址资源空间描述数据,确定网络结构分析结果;其中,所述网络结构分析结果包括网络中在用的IP子网描述数据、网络中路由器路径关系描述数据以及IP地址资源空间中可用IP子网列表描述数据;将所述网络结构分析结果发送到IP网络结构描述数据库。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.
在一个实施例中,所述IP地址资源需求描述信息还包括IP地址类型、所需求的IP子网接入路由器以及IP子网用途描述信息中的至少一种。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.
第三方面,本发明还提供一种电子设备,包括:存储器、处理器及存储在存储器上并在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任意一项所述IP子网的分配方法的步骤。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.
第四方面,本发明还提供一种处理器可读存储介质,所述处理器可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现如上述任意一项所述IP子网的分配方法的步骤。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.
本发明实施例提供的所述IP子网的分配方法,通过综合考虑优化网络中IP子网分布的资源管理策略,能够适应不同需求下的IP子网规划和分配任务,提升了整个IP子网规划流程的效率和稳定性,提高了IP地址的资源利用率。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
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获取其他的附图。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.
图1为本发明实施例提供的IP子网的分配方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a method for allocating IP subnets provided in an embodiment of the present invention;
图2为本发明实施例提供的IP层网络拓扑结构的示意图;FIG2 is a schematic diagram of an IP layer network topology structure provided in an embodiment of the present invention;
图3为本发明实施例提供的IP子网的分配装置的结构示意图;3 is a schematic diagram of the structure of an IP subnet allocation device provided in an embodiment of the present invention;
图4为本发明实施例提供的电子设备的实体结构示意图。FIG. 4 is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention.
具体实施方式DETAILED DESCRIPTION
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获取的所有其他实施例,都属于本发明保护的范围。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.
本发明提供的IP子网的分配方案适用于在IPv4和IPv6协议环境下,为网络设备规划和分配适合的IPv4或IPv6子网。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.
下面基于本发明所述的IP子网的分配方法,对其实施例进行详细描述。如图1所示,其为本发明实施例提供的IP子网的分配方法的流程示意图,具体实现过程包括以下步骤:The following is a detailed description of an embodiment of the IP subnet allocation method according to the present invention. As shown in FIG1 , it is a flow chart of the IP subnet allocation method according to an embodiment of the present invention, and the specific implementation process includes the following steps:
步骤101:获取输入的IP子网查询请求,基于所述IP子网查询请求中IP地址资源需求描述信息确定候选IP子网列表。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.
在本发明实施例中,获取输入的IP子网查询请求之前,还包括:预先获得IP层网络拓扑结构描述数据和IP地址资源空间描述数据;基于所述IP层网络拓扑结构描述数据和所述IP地址资源空间描述数据,确定网络结构分析结果;其中,所述网络结构分析结果包括网络中在用的IP子网描述数据、网络中路由器路径关系描述数据以及IP地址资源空间中可用IP子网列表描述数据;并将所述网络结构分析结果发送到IP网络结构描述数据库。所述IP(Internet Protocol)为网际互连协议。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.
具体的,通过在IP网络中部署IP网络探针收集网络结构数据,即IP网络中的IP地址相关数据。包括:使用ICMP协议周期性扫描IP网络中IP地址,收集IP地址可达性和IP路由路径等信息,该类信息可用于辅助判断相关IP子网是否已存在于IP网络中;使用SNMP协议收集路由器和交换机中IP子网的网络号、掩码、下一跳IP地址、归属路由器等信息,该类信息可用于判断IP子网是否存在IP网络中以及计算IP子网间的相邻关系;以SSH或Telnet或文件方式收集不支持SNMP协议的路由器和交换机设备中的IP子网的网络号、掩码、下一跳IP地址、归属路由器等信息;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;
在本发明实施例中,通过预设算法整理和分析IP网络探针使用上述方法收集的网络结构数据,结合管理范围内的IP地址网段表(IP地址网段表中包含IP网络号、掩码长度等字段)和IP地址资源分配记录台账表(该IP地址资源分配记录台账表中包含IP网络号、掩码长度、归属路由器、用途等字段),形成完整的IP层网络拓扑结构描述数据和IP地址资源空间描述数据,具体包括网络中IP子网络号、掩码、归属路由器、用途描述信息等。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.
根据所述IP层网络拓扑结构描述数据和所述IP地址资源空间描述数据,确定网络结构分析结果,并将网络结构分析结果存入IP网络结构描述数据库。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.
所述网络结构分析结果包括网络中在用的IP子网描述数据、网络中路由器路径关系描述数据以及IP地址资源空间中可用IP子网列表描述数据;并将所述网络结构分析结果发送到IP网络结构描述数据库。其中,所述网络中在用的IP子网描述数据中包括IP子网号、掩码、归属路由器、用途描述信息等字段;所述网络中路由器路径关系描述数据中包含本端路由器信息、远端路由器信息等字段;IP地址资源空间中可用IP子网列表描述数据中包含IP子网号、掩码、归属IP网段等字段。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.
在本步骤中,具体可根据所述IP地址资源需求描述信息中的IP地址需求数量,确定最大子网掩码长度;并根据所述IP地址资源需求描述信息中的归属IP网段、所述最大子网掩码长度,从IP地址资源空间中筛选出相应的候选IP子网列表。其中,所述IP地址资源需求描述信息还包括IP地址类型(IPv4或IPv6)、IP地址需求数量、归属路由器、归属IP网段及该IP子网的用途描述信息;IP网络中子网分布的规划策略、IP地址资源空间碎片的规划策略以及预留扩容空间的规划策略分别对应的单项策略评价分值等,在此不做具体限定。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.
在实际实施过程中,首先获取网络管理员根据实际IP地址资源需求从客户端输入的包含IP地址资源需求描述信息,并获取输入的“IP网络中子网分布的规划策略”、“IP地址资源空间碎片的规划策略”和“预留扩容空间的规划策略”在资源分配中重要程度的主观评价,即分别对应的单项策略评价分值(比如评价值为非常重要为5、重要为4、一般重要为3、一般为2、考虑为1、不予考虑为0),发起IP子网查询请求。在接收IP子网查询请求后,基于IP层网络拓扑结构描述数据、IP地址资源空间描述数据和IP地址资源需求描述信息,确定IP地址资源需求数量、需求的IP子网掩码长度以及IP网段的描述数据,根据过滤规则从IP地址资源空间里可用子网列表中出候选IP子网列表。其中,该过滤规则为:通过IP子网归属IP网段与IP子网查询请求中描述的IP网段,当满足预设条件且可用IP子网的掩码长度小于或等于需求的IP子网掩码长度时,则将该IP子网放入候选子网列表。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.
步骤102:基于预设IP网络中子网分布的规划策略、IP地址资源空间碎片的规划策略、预留扩容空间的规划策略以及相应的规划策略权重值,确定所述候选IP子网列表中候选IP子网的综合评估分值。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.
在执行本步骤之前,需要预先根据所述IP网络中子网分布的规划策略、所述IP地址资源空间碎片的规划策略以及所述预留扩容空间的规划策略分别对应的单项策略评价分值,确定所述IP网络中子网分布的规划策略、所述IP地址资源空间碎片的规划策略以及所述预留扩容空间的规划策略分别对应的所述规划策略权重值。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 them.
在本步骤中,可基于所述IP网络中子网分布的规划策略、所述IP地址资源空间碎片的规划策略、预留扩容空间的规划策略以及所述规划策略权重值,并利用层次分析法模型进行综合分析,所述候选IP子网列表中候选IP子网的综合评估分值。其中,所述层次分析法模型为基于层次分析法(Analytic Hierarchy Process,AHP)的分析模型。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).
在具体实施过程中,使用层次分析法模型逐个计算候选IP子网列表中IP子网基于IP网络中子网分布的规划策略、IP地址资源空间碎片的规划策略以及预留扩容空间的规划策略确定的综合评估分值。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.
需要说明的是,在实际实施过程中,可根据实际情况单独选择或综合考虑以上列举的IP网络中子网分布的规划策略、IP地址资源空间碎片的规划策略以及预留扩容空间的规划策略。也就是,可以根据实际情况单独选择三种规划策略中的一种,还可以综合考虑IP网络中子网分布的规划策略、IP地址资源空间碎片的规划策略以及预留扩容空间的规划策略,在此不做具体限定。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.
步骤103:根据所述综合评估分值的高低,输出相应的IP子网分配建议。Step 103: Outputting corresponding IP subnet allocation suggestions according to the comprehensive evaluation score.
在具体实施过程中,可根据综合评估分值从高到低进行排序,根据排序结果向客户端输出相应的IP子网分配建议,从而便于网络管理员从IP子网分配建议中选择合适的IP子网返回给IP地址资源需求方,完成整个分配工作。该方案能够帮助网络管理员完成IP地址资源规划和分配过程中复杂且繁琐的现网IP层网络拓扑数据和IP地址资源空间利用情况数据分析工作,从而科学合理地简化网络管理中IP子网地址规划和分配工作。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.
为了更清楚地说明本发明的技术方案,下面提供一个完整的具体实施例。其中,用于IP地址资源分配的IP网段为2001::a0:0000/112;IP层网络拓扑结构如图3所示。In order to more clearly illustrate the technical solution of the present invention, a complete specific embodiment is provided below, wherein the IP network segment used for IP address resource allocation is 2001::a0:0000/112; the IP layer network topology is shown in FIG3 .
首先,通过分析IP网络探针收集的数据,构建网络中在用IP子网描述表,包含IP网络号、掩码长度、归属路由器等信息,具体如表1所示。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.
表1:在用的IP子网描述表Table 1: Description of IP subnets in use
然后,根据(1)中获取的信息,计算得出可用于分配的IP子网信息,包含网络号和最大掩码长度,具体如下表2所示。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.
表2:可用的IP子网描述表Table 2: Description of available IP subnets
进而,根据上述(1)和(2)获取的信息计算得出该IP网络路由器连接拓扑,包含的本端路由器和远端路由器,具体如下表3所示。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.
表3:IP网络路由器连接拓扑Table 3: IP network router connection topology
步骤101包括:获取客户端根据实际需求发起的IP子网查询请求。该IP子网查询请求包含的参数包括IP地址需求数量、归属IP网段、接入路由器、“IP网络中子网分布的规划策略”、“IP地址资源空间碎片的规划策略”和“预留扩容空间的规划策略”三种规划策略的,即分别对应的单项策略评价分值(比如评价值为非常重要为5、重要为4、一般重要为3、一般为2、考虑为1、不予考虑为0)。例如下表4是不同规划和分配策略下相同地址需求: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:
表4:不同规划和分配策略下相同地址需求案例表Table 4: Example of the same address requirement under different planning and allocation strategies
步骤102包括:根据规划需求中IP地址需求数量计算出最大子网掩码长度为121位;并根据规划需求中归属IP网段和计算得到的最大子网掩码长度筛选出候选IP子网列表,具体如表5所示。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.
表5:候选IP子网列表Table 5: Candidate IP subnet list
步骤102还包括:计算各个规划策略对应的规划策略权重值,计算公式为:规划策略权重值=单项策略主观评价分值或所有策略主观评价分值的和,计算结果具体如表6: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:
表6:规划策略计算结果表Table 6: Planning strategy calculation results
步骤102还包括:按“IP网络中子网分布的规划策略”、“IP地址资源空间碎片的规划策略”和“预留扩容空间的规划策略”三种规划策略分别独立计算出每条候选IP子网的综合评估分值,确定优先级。序号越小,优先级越高,同等级别赋予相同优先级。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.
步骤103包括:按综合评估分值从大到小或从高到低排序输出相应的IP子网分配建议到客户端。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.
具体的,预设IP网络中子网分布的规划策略的优先级计算方法为:在归属路由器中查找相邻的在用IP子网,如果有相邻子网则该候选子网为最高优先级1;如果在归属路由器中未找到相邻的在用IP子网,则在归属路由器相邻的路由器查找相邻的在用IP子网,如果有相邻子网则该候选子网优先级为2;如果在在归属路由器相邻的路由器中未找到相邻的在用IP子网,则在与归属路由器间跳数为2的路由器中查找相邻的在用IP子网,如果有相邻子网则该候选子网优先级为3;未找到以上相邻子网的候选子网优先级为9。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.
IP地址资源空间碎片的规划策略的优先级计算方法为:网络中存在与候选子网相邻的在用子网,则该候选子网优先级为基础值为1,并加上需求子网掩码长度减去候选子网掩码长度的差值。例如需求子网掩码长度为121,候选子网掩码长度为120,则优先级值计算结果为1+(121-120)=2;网络中没有满足条件1的相邻在用子网的侯选子网,根据掩码长度从大到小分别给予从2开始优先级,掩码长度每减少1,在优先级值加1,最大为9。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, up to 9.
预留扩容空间的规划策略的优先级计算方法为:The priority calculation method for the planning strategy of reserving expansion space is as follows:
a)候选子网掩码长度与需求子网掩码长度一致时,优先级赋值2,大于需求子网掩码长度时赋值1。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.
表7:候选子网单项评价优先级结果表Table 7: Candidate subnet single item evaluation priority results table
b)按(最大优先级值-候选子网优先级值)/(最大优先级值-最小优先级值)分别归一化各策略序号,并计算加权后各候选IP子网的综合评估分值,分值高的优先选择。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.
表8:候选子网不同策略组合下综合评估结果表Table 8: Comprehensive evaluation results of candidate subnets under different strategy combinations
c)按综合评估分值从大到小或从高到低排序输出相应的IP子网分配建议到客户端,网络管理人员从中选取最合适的IP子网信息返回给IP地址资源需求方。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.
在本实施中,以上三种规划策略各有侧重,但输出候选子IP网列表中IP子网的顺序都符合三种规划策略的组合,其中:第一次查询侧重路由的优化,确定的最优IP子网为2001::a0:200/121,与R10中在用IP子网2001::a0:280/121相邻,上级路由器可以汇总路由,达到优化的目的。第二次查询使用均衡策略,所有分配策略都需要考虑,系统综合计算给出最优子网为2001::a0:0/120、2001::a0:300/120和2001::a0:2100/120,同时考虑了三种规划策略的需求。第三次查询侧重扩展能力,且兼顾网络路由汇总,系统综合计算给出最优子网为2001::a0:0/120、2001::a0:300/120、2001::a0:2100/120和2001::a0:2200/119,其输出的候选子网建议符合在考虑扩展能力时兼顾优化IP网络中子网分布的要求。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.
本发明实施例提供的所述IP子网的分配方法,通过综合考虑优化网络中IP子网分布的资源管理策略,能够适应不同需求下的IP子网规划和分配任务,提升了整个IP子网规划流程的效率和稳定性,提高了IP地址的资源利用率。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.
与上述提供的一种IP子网的分配方法相对应,本发明还提供一种IP子网的分配装置。由于该装置的实施例相似于上述方法实施例,所以描述得比较简单,相关之处请参见上述方法实施例部分的说明即可,下面描述的IP子网的分配装置的实施例仅是示意性的。请参考图3所示,其为本发明实施例提供的一种IP子网的分配装置的结构示意图。Corresponding to the above-mentioned method for allocating an IP subnet, the present invention also provides an apparatus for allocating an IP subnet. 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 an IP subnet described below is only illustrative. Please refer to FIG. 3, which is a schematic diagram of the structure of an apparatus for allocating an IP subnet provided in an embodiment of the present invention.
本发明所述的IP子网的分配装置包括如下部分:The IP subnet allocation device of the present invention comprises the following parts:
第一规划分析单元301,用于获取IP子网查询请求,基于所述IP子网查询请求中IP地址资源需求描述信息确定候选IP子网列表;The first planning and
第二规划分析单元302,用于基于预设的IP网络中子网分布的规划策略、IP地址资源空间碎片的规划策略、预留扩容空间的规划策略以及相应的规划策略权重值,确定所述候选IP子网列表中候选IP子网的综合评估分值;The second planning and
分配建议输出单元303,用于根据所述综合评估分值的高低,输出相应的IP子网分配建议。The allocation
本发明实施例提供的所述IP子网的分配装置,通过综合考虑优化网络中IP子网分布的资源管理策略,能够适应不同需求下的IP子网规划和分配任务,提升了整个IP子网规划流程的效率和稳定性,提高了IP地址的资源利用率。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.
与上述提供的IP子网的分配方法相对应,本发明还提供一种电子设备。由于该电子设备的实施例相似于上述方法实施例,所以描述得比较简单,相关之处请参见上述方法实施例部分的说明即可,下面描述的电子设备仅是示意性的。如图4所示,其为本发明实施例公开的一种电子设备的实体结构示意图。该电子设备可以包括:处理器(processor)401、存储器(memory)402和通信总线403,其中,处理器401,存储器402通过通信总线403完成相互间的通信,通过通信接口404与外部进行通信。处理器401可以调用存储器402中的逻辑指令,以执行IP子网的分配方法。该方法包括:获取输入的IP子网查询请求,基于所述IP子网查询请求中IP地址资源需求描述信息确定候选IP子网列表;基于IP网络中子网分布的规划策略、IP地址资源空间碎片的规划策略、预留扩容空间的规划策略以及相应的规划策略权重值,确定所述候选IP子网列表中候选IP子网的综合评估分值;根据所述综合评估分值的高低,输出相应的IP子网分配建议。Corresponding to the above-mentioned method for allocating IP subnets, the present invention also provides an electronic device. Since the embodiment of the electronic device is similar to the above-mentioned method embodiment, the description is relatively simple. For relevant parts, please refer to the description of the above-mentioned method embodiment part. The electronic device described below is only schematic. As shown in Figure 4, 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 (processor) 401, a memory (memory) 402 and a
此外,上述的存储器402中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:存储芯片、U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the logic instructions in the above-mentioned
另一方面,本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储在处理器可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的IP子网的分配方法。该方法包括:获取输入的IP子网查询请求,基于所述IP子网查询请求中IP地址资源需求描述信息确定候选IP子网列表;基于预设的IP网络中子网分布的规划策略、IP地址资源空间碎片的规划策略、预留扩容空间的规划策略以及相应的规划策略权重值,确定所述候选IP子网列表中候选IP子网的综合评估分值;根据所述综合评估分值的高低,输出相应的IP子网分配建议。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 a corresponding planning strategy weight value; and outputting a corresponding IP subnet allocation suggestion according to the comprehensive evaluation score.
又一方面,本发明实施例还提供一种处理器可读存储介质,所述处理器可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各实施例提供的IP子网的分配方法。该方法包括:获取输入的IP子网查询请求,基于所述IP子网查询请求中IP地址资源需求描述信息确定候选IP子网列表;基于预设的IP网络中子网分布的规划策略、IP地址资源空间碎片的规划策略、预留扩容空间的规划策略以及相应的规划策略权重值,确定所述候选IP子网列表中候选IP子网的综合评估分值;根据所述综合评估分值的高低,输出相应的IP子网分配建议。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.
所述处理器可读存储介质可以是处理器能够存取的任何可用介质或数据存储设备,包括但不限于磁性存储器(例如软盘、硬盘、磁带、磁光盘(MO)等)、光学存储器(例如CD、DVD、BD、HVD等)、以及半导体存储器(例如ROM、EPROM、EEPROM、非易失性存储器(NANDFLASH)、固态硬盘(SSD))等。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)), optical storage (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drives (SSDs)), etc.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。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 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. Those of ordinary skill in the art may understand and implement it without creative effort.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。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.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。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 (10)
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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118233430A (en) * | 2024-03-25 | 2024-06-21 | 广州度岭科技有限公司 | Subnet allocation method, device, equipment and storage medium |
-
2021
- 2021-09-17 CN CN202111096910.0A patent/CN115842805A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118233430A (en) * | 2024-03-25 | 2024-06-21 | 广州度岭科技有限公司 | Subnet allocation method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7843827B2 (en) | Method and device for configuring a network device | |
CN113228573A (en) | Heuristic-based SD-WAN route reconfiguration | |
US20050071469A1 (en) | Method and system for controlling egress traffic load balancing between multiple service providers | |
CN101473605B (en) | Method for determining anticipation peer-to-peer collaborator of Internet service supplier | |
US20110167149A1 (en) | Internet flow data analysis method using parallel computations | |
CN103795644B (en) | Policy Table's list item collocation method, apparatus and system | |
JPH1056451A (en) | Device and method for finding ip | |
US20130329599A1 (en) | Method of Network Connectivity Analyses and System Thereof | |
US11469999B1 (en) | Systems and methods for determining energy efficiency quotients | |
CN115842805A (en) | IP subnet allocation method and device | |
CN110932971B (en) | An Inter-Domain Path Analysis Method Based on Layer-by-Layer Reconstruction of Request Information | |
US9210046B2 (en) | Zone-based network traffic analysis | |
Soenen et al. | A model to select the right infrastructure abstraction for service function chaining | |
CN114513448A (en) | Inter-Domain Path Computation Based on Abstract Topology | |
CN111641729A (en) | Inter-domain path identification prefix conflict detection and decomposition method based on prefix tree | |
Xiang et al. | Internet flattening: Monitoring and analysis of inter-domain routing | |
CN105939264A (en) | Routing management method and device | |
EP4404527A1 (en) | Service scheduling method and apparatus, device and computer readable storage medium | |
JP5587254B2 (en) | Allocation apparatus, allocation program, allocation method, and allocation system | |
CN107707379B (en) | A kind of CDN covering scheme generation method and device | |
CN115834340A (en) | Rule storage method and device, electronic equipment and storage medium | |
CN110875829A (en) | A method and apparatus for dividing an interior gateway protocol area in a network | |
Aloulou et al. | Effective controller placement in controller-based named data networks | |
CN118694701B (en) | Network topology drawing method, system, device and medium based on active detection | |
KR100454684B1 (en) | A Method and Server for Performing the Traffic Engineering Using Mock-experiment and Optimization in Multi-protocol Label Switching Network |
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 |