CN111107173A - IP address planning method and system of IP bearing network - Google Patents

IP address planning method and system of IP bearing network Download PDF

Info

Publication number
CN111107173A
CN111107173A CN201811270228.7A CN201811270228A CN111107173A CN 111107173 A CN111107173 A CN 111107173A CN 201811270228 A CN201811270228 A CN 201811270228A CN 111107173 A CN111107173 A CN 111107173A
Authority
CN
China
Prior art keywords
address
target
determining
requirement
field
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.)
Granted
Application number
CN201811270228.7A
Other languages
Chinese (zh)
Other versions
CN111107173B (en
Inventor
吕昶
朱益佳
王晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Group Zhejiang Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Group Zhejiang Co Ltd
Priority to CN201811270228.7A priority Critical patent/CN111107173B/en
Publication of CN111107173A publication Critical patent/CN111107173A/en
Application granted granted Critical
Publication of CN111107173B publication Critical patent/CN111107173B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Abstract

The embodiment of the invention provides an IP address planning method and a system of an IP bearing network, wherein the method comprises the following steps: determining IP address screening conditions according to the IP address demand information; determining a target IP address field meeting the IP address screening condition in a preset idle IP address database, and determining a target IP in the target IP address field; and taking the target IP as an IP address allocation result. According to the IP address planning method and system of the IP bearing network, provided by the embodiment of the invention, the corresponding screening condition is determined through the IP address demand information, the target IP address most suitable for distribution is automatically screened out from the idle IP address database, the accuracy of IP address distribution is ensured, meanwhile, the distributed IP address maximally meets the service demand, and the IP utilization rate is improved.

Description

IP address planning method and system of IP bearing network
Technical Field
The embodiment of the invention relates to the technical field of IP, in particular to an IP address planning method and system of an IP bearing network.
Background
The IP bearer network is a private network constructed by each operator by using IP technology, and is used for bearing services (such as soft switch, video, key customer VPN, etc.) with high requirements on transmission quality. The IP bearer network generally adopts a high-reliability design of dual planes and dual star dual homing, elaborately designs a flow switching model under various conditions, and adopts technologies such as multi-protocol label switching traffic engineering (MPLS TE), fast reroute (FRR), Bidirectional Forwarding Detection (BFD), etc., to quickly detect network breakpoints and shorten the switching time of faulty devices/links. The network design requires the light load of the service carried by the network, and deploys two-layer/three-layer QOS, thereby ensuring the quality of the carried service. By adopting the measures, the IP bearing network has the characteristics of low cost, good expansibility, flexible bearing service and the like of the IP network, and simultaneously has high reliability and safety of a transmission system.
The service system accesses the network by butting customer edge devices (CE devices) of the IP bearing network, and uses Virtual Private Networks (VPNs) to isolate according to different service types, different service address sections are planned for different VPNs on each pair of CE devices, and when the service system puts forward an access requirement, addresses in different VPNs are distributed to the service system according to the type of the service system from the service address sections. In the prior art, the planning, allocation, and management of IP addresses of an IP bearer network are mainly performed manually, and often an EXCEL table is used to record a planned service address segment on each pair of CE devices and which IP addresses under each VPN have been allocated to a service system, and then a required IP address is allocated to the service system by manually searching for an idle IP address. Or randomly calculating a section of idle IP address from a large section of IP when IP address allocation is carried out, and allocating the idle IP address to the service system.
In the prior art, when the IP address is allocated, the speed is low, the efficiency is low, and the phenomenon that the IP address is wrongly written, missed or wrongly allocated easily results in that the IP address allocated to the service system is repeated or the format is not standard, the IP address allocated to the service system cannot be used if the IP address is not recorded, and the operation of other services is influenced if the IP address is allocated. Therefore, there is a need for a method for planning IP addresses of an IP bearer network to solve the above problems.
Disclosure of Invention
In order to solve the above problems, embodiments of the present invention provide a method and a system for planning an IP address of an IP bearer network, which overcome the above problems or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a method for planning an IP address of an IP bearer network, including:
determining IP address screening conditions according to the IP address demand information;
determining a target IP address field meeting the IP address screening condition in a preset idle IP address database, and determining a target IP in the target IP address field;
and taking the target IP as an IP address allocation result.
A second aspect of the present invention provides an IP address planning system for an IP bearer network, including:
the condition determining module is used for determining IP address screening conditions according to the IP address demand information;
the address determination module is used for determining a target IP address field meeting the IP address screening condition in a preset idle IP address database and determining a target IP in the target IP address field;
and the address allocation module is used for taking the target IP as an IP address allocation result.
Third aspect an embodiment of the present invention provides an electronic device, including:
a processor, a memory, a communication interface, and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the memory stores program instructions which can be executed by the processor, and the processor calls the program instructions to execute the IP address planning method of the IP bearing network.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, which stores computer instructions, where the computer instructions cause the computer to execute the IP address planning method for an IP bearer network described above.
According to the IP address planning method and system of the IP bearing network, provided by the embodiment of the invention, the corresponding screening condition is determined through the IP address demand information, the target IP address most suitable for distribution is automatically screened out from the idle IP address database, the accuracy of IP address distribution is ensured, meanwhile, the distributed IP address maximally meets the service demand, and the IP utilization rate is improved.
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 described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for planning an IP address of an IP bearer network according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an IP address planning system architecture according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an IP address planning system of an IP bearer network according to an embodiment of the present invention;
fig. 4 is a block 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 described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments, 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.
At present, in the prior art, more methods are used for allocating IP addresses manually, or a section of idle IP address is randomly calculated from a large section of IP without distinguishing VPNs and allocated to a service system.
The IP address allocation method in the prior art has very low allocation efficiency and is easy to generate allocation errors, so that the IP address allocated to the service system cannot be used, and service operation is affected.
To solve the above problem, fig. 1 is a schematic flow chart of a method for planning an IP address of an IP bearer network according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
101. determining IP address screening conditions according to the IP address demand information;
102. determining a target IP address field meeting the IP address screening condition in a preset idle IP address database, and determining a target IP in the target IP address field;
103. and taking the target IP as an IP address allocation result.
It should be noted that, in order to perform an IP address allocation service more specifically, an IP address planning system is constructed in the embodiment of the present invention, fig. 2 is a schematic view of an IP address planning system architecture provided in the embodiment of the present invention, and as shown in fig. 2, the IP address planning system mainly includes four portions, namely, each pair of CE service address segment database, an allocated IP address database, an idle IP address database, and an IP address automatic allocation function module.
Each pair of CE service address segment databases is mainly used to record service address segments planned for each service VPN on each pair of CE devices, so that when IP address allocation is performed, selection can be performed from the planned service address segments.
Table 1 storage format table of each pair of CE service address field databases
CE VPN Service address field
Table 1 is a storage format table of each pair of CE service address segment databases provided in the embodiment of the present invention, and as shown in table 1, each row of data represents one of the service address segments in one VPN on the pair of CE devices. Specifically, the VPN column fills in the name of the VPN service, the CE column fills in the name of the CE device, and since the CE devices are generally planned in pairs and the service address segments planned for the CE devices are the same, only odd CE device names are filled here to represent a pair of CE devices, and the format of the service address segment is: x.x.x/x.
The allocated IP address database is used to record that those IP addresses under each service VPN on each pair of CE devices have been allocated, and update the contents of the allocated IP address database after each IP address allocation.
Table 2 storage format table of allocated IP address database
CE VPN Address Type (B) Name of service Port(s) Applicant Time of day
Table 2 is a storage format table of the allocated IP address database provided in the embodiment of the present invention, and as shown in table 2, each row of data represents one segment of IP address allocated to a certain service system by the CE device. Specifically, a VPN field fills in a name of a VPN service, a CE field fills in a name of a CE device, an address field fills in an IP address allocated to the service system, the format is x.x.x/x, a type field fills in an access mode of the service system, the access mode includes an exclusive type and a shared type, a service name field fills in the name of the service system, a port field fills in a port number accessed by the service system, an applicant field fills in a name of an applicant allocated to the IP address, and a time field fills in time allocated to the IP address, and the format is yyy/mm/dd.
The idle IP address database is mainly used for recording idle IP address information in each service address field of each pair of CE equipment, and updating the content of the idle IP address database after IP address allocation is carried out each time.
Table 3 storage format table of idle IP address database
CE VPN Service address field Free address
Table 3 is a storage format table of the idle IP address database provided in the embodiment of the present invention, and as shown in table 3, each row of data represents a continuous segment of idle IP addresses in each service address segment on each pair of CE devices. Specifically, a VPN column fills in the name of a VPN service, a CE column fills in the name of a CE device, a service address field column fills in a service address field to which a free IP address belongs, the format is x.x.x/x, the free address field fills in continuous free addresses and is represented by x-y, and x and y are the last number of the head IP and the tail IP of the free IP address field.
The IP address automatic allocation function module is mainly used for completing a function module for automatically allocating an IP address, and correspondingly, is also an execution main body of the embodiment of the present invention, and before an IP address allocation salesman is performed, some relevant parameters of a business system need to be filled, for example: the accessed CE equipment name, the service VPN name, the main and standby address requirements (address size and number), the shared address requirements (address size and number), the service system name, the port number accessed by the service system and the applicant. After the relevant parameters are filled, the IP address can be allocated to the service system according to the corresponding information, and the IP address allocation time provided by the embodiment of the invention reaches second-level allocation proved by experiments.
Specifically, in step 101, the embodiment of the present invention determines the screening condition of the IP address according to the requirement information of the IP address. It can be understood that different service systems have different IP address requirements, and before IP address allocation is performed, IP address requirement information needs to be determined, where the IP address requirement information is generally determined by relevant parameters which are pre-filled in advance, and generally includes three types, i.e., a single address requirement, a main/standby address requirement, and a common address requirement. According to different IP address requirement types, the embodiment of the invention determines different IP address screening conditions, thereby screening the IP address which is most suitable for the service system in a targeted manner according to the IP address screening conditions for distribution.
Further, in step 102, as can be seen from the above, the embodiment of the present invention presets a free IP address database to store IP addresses that have not been allocated yet. The screening conditions determined in step 101 can be searched in the idle IP address database, so as to determine the target IP address segment meeting the screening conditions and the target IP under the target IP address segment.
Finally, in step 103, the target IP address found from the idle IP address database is allocated to the service system as an allocation result.
According to the IP address planning method of the IP bearing network, provided by the embodiment of the invention, the corresponding screening condition is determined through the IP address demand information, and the target IP address most suitable for distribution is automatically screened out from the idle IP address database, so that the accuracy of IP address distribution is ensured, meanwhile, the distributed IP address maximally meets the service demand, and the IP utilization rate is improved.
On the basis of the above embodiment, if the IP address requirement is a single address requirement; correspondingly, the IP address screening condition is:
the number of the IP contained in the target IP address field is more than or equal to a first number of the IP contained in the target IP address field and the number of the IP contained in the target IP address field is less than or equal to the number of the IP contained in the rest IP address fields in the idle IP address database, wherein the first number of the IP is the number of the IP required in the IP address requirement information.
As can be seen from the content of the foregoing embodiments, in the embodiments of the present invention, different IP address screening policies are adopted according to different IP address requirements, and generally, the IP address requirements include three types, i.e., a single address requirement, a primary/standby address requirement, and a shared address requirement, and then for the single address requirement, corresponding IP address screening conditions are that the number of IPs included in the target IP address segment is greater than or equal to a first IP number, and the number of IPs included in the target IP address segment is less than or equal to the number of IPs included in the remaining IP address segments in the idle IP address database, where the first IP number is the number of IPs required in the IP address requirement information.
Specifically, when it is known that the IP address requirement is a single IP address requirement, the embodiment of the present invention calculates the number of IPs included in the IP address requirement of each segment, that is, the first IP number in the embodiment of the present invention.
Further, an IP address segment which contains the IP number which is not less than the first IP number and is the least in the idle IP address database is searched in the idle IP address database to be used as a target IP address segment.
It can be understood that the method provided by the embodiment of the invention can preferentially select the IP address segments with the same number for allocation, thereby avoiding the idle IP addresses from being too discrete and improving the management efficiency.
On the basis of the above embodiment, the method further includes:
and if a plurality of target IP address fields exist, selecting the IP address field with the top sequence in the idle IP address database.
It can be known from the content of the foregoing embodiment that, when the IP address requirement is a single IP address requirement, the target IP address field can be determined by using the corresponding IP address screening condition, but when the target IP address field is determined, a plurality of IP address fields meeting the screening condition may appear at the same time, at this time, in order to further improve the management efficiency of the database, in the embodiment of the present invention, the first IP address field ranked in the idle IP address database is selected as the target IP address field, and the remaining IP address fields are selected as alternatives.
On the basis of the above embodiment, if the IP address requirement is a 32-bit IP address requirement; correspondingly, the determining the target IP in the target IP address segment includes:
and selecting a first IP in the target IP address field as the target IP.
It will be appreciated that a single IP address requirement consists essentially of a 32-bit IP address requirement and a non-32-bit IP address requirement, with 32 bits referring to the prefix length of the IP address requirement and 32 bits being generally expressed as/32. Then for the 32-bit IP address requirement, the embodiment of the present invention directly selects the first IP (first IP) in the target IP address field as the target IP when determining the target IP in the target IP address field.
On the basis of the above embodiment, if the IP address requirement is a non-32-bit IP address requirement; correspondingly, the determining the target IP in the target IP address segment includes:
acquiring a head IP address and a tail IP address of the target IP address segment;
and determining the target IP according to the head IP address and the tail IP address of the target IP address field and the prefix length required by the IP address.
It can be understood that for IP address requirements other than 32 bits, the final allocated target IP needs to be determined according to the head IP address and the tail IP address of the target IP address segment and the prefix length of the specific IP address requirement.
The specific determination process is as follows:
assuming that the first IP address of the target IP address field is a, the last IP address of the target IP address field is b, and the prefix length required by the IP address is p, the prefix length required by the IP address is first converted into a corresponding subnet mask, and then the last decimal number of the subnet mask is converted into an eight-digit binary number, which is denoted as m.
And-ing the eight-bit binary form of the last decimal number of m and a, converting the operation result into decimal, and recording the decimal as c.
The eight-bit binary post (32-p) position 1 of c is converted into decimal system d after 1 is set.
And c and d are complemented into a format of x.x.x.x by taking the first three decimal numbers of a to obtain c1 and d 1.
Checking whether the segments c1-d1 are contained in the segments a-b, if the segments are completely contained, then c1/p is the target IP.
If not completely contained within a-b segment, then c needs to be added to the first IP number to get e.
The eight-bit binary post (32-p) position 1 of e is converted to decimal f after 1 is set.
And (4) taking the first three decimal numbers of a to complement e and f into a format of x.x.x.x to obtain e1 and f 1.
Checking whether the e1-f1 segment is contained in the a-b segment, if completely contained, then e1/p is the target IP.
If the destination IP address cannot be contained, the destination IP address is proved to be unavailable, the destination IP address needs to be determined again, and it needs to be explained that if all IP address fields in the idle IP address database are traversed, the allocation result cannot be obtained, a replanning instruction is generated and sent to the user, and the user is enabled to fill in the allocated service address field directly.
It can be seen from the above classification principle of the IP address that the automatic IP address allocation method provided in the embodiment of the present invention avoids fragmentation of remaining idle IP addresses after allocation according to the order-first and piecemeal evasion principles, improves the management efficiency of IP addresses, and also improves the utilization rate of IP address resources.
On the basis of the above embodiment, if the IP address requirement is a main/standby address requirement; correspondingly, the determining a target IP address segment meeting the IP address screening condition in a preset idle IP address database and determining a target IP in the target IP address segment includes:
searching a 24-bit IP address section in the idle IP address database;
taking the first half C section of the 24-bit IP address section as a first target IP address section, and taking the second half C section of the 24-bit IP address section as a second target IP address section;
and determining a first target IP according to the first target IP address field, and determining a second target IP according to the second target IP address field.
As can be seen from the content of the foregoing embodiment, different IP address screening policies are adopted according to different IP address requirements in the embodiments of the present invention, and generally, the IP address requirements include three types, i.e., a single address requirement, a primary/secondary address requirement, and a shared address requirement, and then for the type of the primary/secondary address requirement, the corresponding IP address screening condition provided in the embodiments of the present invention is a manner of searching for a 24-bit IP address segment and then performing segment allocation.
It can be understood that, when the service system is accessed, a pair of CE devices is often accessed in a dual-homing manner, and then there is a need for a master/standby address, that is, two IP addresses with the same length need to be allocated to odd CE devices and even CE devices. And according to the use habit of the service system, the allocated IP addresses at two ends generally belong to a first half C section and a second half C section of the same/24 IP address, wherein the half C section is to divide the C-type IP address into two ends with equal length, the first section is the first half C section, and the second section is the second half C section.
Specifically, the embodiment of the present invention may first search in the idle IP address database whether there is a/24 service address segment, and if not, may only allocate each segment of IP address required by the active/standby address according to the single IP address requirement.
If the 24-bit IP address field is found, the IP address is directly allocated from the 24-bit IP address field, and for the address requirement of a pair of main and standby relations, the first section is allocated from the idle IP address field of the first half C section, namely the first target IP address field in the embodiment of the invention, and the second section is allocated from the idle IP address field of the second half C section, namely the second target IP address field in the embodiment of the invention, thereby fitting the IP address use habit of the service system.
Further, after the first target IP address field and the second target IP address field are determined, for each idle IP address of the/24 service address, a target IP determination method using a single IP address requirement of not 32 bits is used for determining the first target IP and the second target IP. It should be noted that if any one target IP is not determined, the 24-bit IP address field needs to be replaced to perform the re-determination of the first target IP and the second target IP.
In particular, if all of the 24-bit IP address segments fail to achieve the determination of the first target IP and the second target IP, the first target IP and the second target IP are assigned according to the type of single IP address requirement.
It should be noted that the assignment of the type of the shared address requirement is basically the same as the assignment method of the single IP address requirement, and the only difference is that, in order to fit the usage habit of the IP address of the service system, when determining the destination IP address field, if there is a service address field belonging to/24, the destination IP address field is selected to be the free IP address field in the half C containing a large number of free IP addresses.
The IP allocation method provided by the embodiment of the invention combines the use habit of the IP address of the service system when allocating, thereby facilitating the use of the IP address by the service system.
On the basis of the above embodiment, after the allocating the target IP as an IP address, the method further includes:
checking the availability of the target IP;
and if the verification is correct, adding the target IP address field into a preset allocated IP address database and updating the idle IP address database.
In order to avoid errors and mistakes which may occur in the allocation process, the embodiment of the invention also checks the availability of the target IP after determining the target IP as the allocation result, thereby ensuring the accuracy of IP address allocation. The allocated IP address database and the free IP address database are updated only after the availability of the destination IP is verified to be correct. The updating process is to add the relevant information of the target IP in the allocated IP address database and delete the relevant information of the target IP in the idle IP address database.
The embodiment of the invention verifies the availability of the IP address after the allocation is finished, and ensures the accuracy of the IP address allocation while quickly finishing the IP address allocation, thereby ensuring that the service is not damaged.
Fig. 3 is a schematic structural diagram of an IP address planning system of an IP bearer network according to an embodiment of the present invention, as shown in fig. 3, including: a condition determining module 301, an address determining module 302, and an address assigning module 303, wherein:
the condition determining module 301 is configured to determine an IP address screening condition according to the IP address requirement information;
the address determining module 302 is configured to determine a target IP address segment that meets the IP address screening condition in a preset idle IP address database, and determine a target IP in the target IP address segment;
the address assignment module 303 is configured to use the target IP as an IP address assignment result.
Specifically, how to allocate the IP address through the condition determining module 301, the address determining module 302, and the address allocating module 303 may be used to execute the technical solution of the embodiment of the IP address planning method for an IP bearer network shown in fig. 1, and the implementation principle and the technical effect are similar, and are not described herein again.
According to the IP address planning system of the IP bearing network, provided by the embodiment of the invention, the corresponding screening condition is determined through the IP address demand information, and the target IP address most suitable for distribution is automatically screened out from the idle IP address database, so that the accuracy of IP address distribution is ensured, meanwhile, the distributed IP address maximally meets the service demand, and the IP utilization rate is improved.
On the basis of the above embodiment, if the IP address requirement is a single address requirement; correspondingly, the IP address screening condition determined by the condition determining module is:
the number of the IP contained in the target IP address field is more than or equal to a first number of the IP contained in the target IP address field and the number of the IP contained in the target IP address field is less than or equal to the number of the IP contained in the rest IP address fields in the idle IP address database, wherein the first number of the IP is the number of the IP required in the IP address requirement information.
On the basis of the above embodiment, the system further includes:
and the unique selection module is used for selecting the IP address field with the top sequence in the idle IP address database if a plurality of target IP address fields exist.
On the basis of the above embodiment, if the IP address requirement is a 32-bit IP address requirement; correspondingly, the address determination module comprises:
and the direct determination unit is used for selecting a first IP in the target IP address field as the target IP.
On the basis of the above embodiment, if the IP address requirement is a non-32-bit IP address requirement; correspondingly, the address determination module comprises:
a final address obtaining unit, configured to obtain a head IP address and a final IP address of the target IP address segment;
and the target IP determining unit is used for determining the target IP according to the head IP address and the tail IP address of the target IP address field and the prefix length required by the IP address.
On the basis of the above embodiment, if the IP address requirement is a main/standby address requirement; correspondingly, the address determination module comprises:
the searching unit is used for searching the 24-bit IP address section in the idle IP address database;
an IP address segment determining unit, configured to use a first half C segment of the 24-bit IP address segment as a first target IP address segment, and use a second half C segment of the 24-bit IP address segment as a second target IP address segment;
and the target IP segmentation determining unit is used for determining a first target IP according to the first target IP address field and determining a second target IP according to the second target IP address field.
On the basis of the above embodiment, after the allocating the target IP as an IP address, the method further includes:
the checking module is used for checking the availability of the target IP;
and the updating module is used for adding the target IP address field into a preset allocated IP address database and updating the idle IP address database if the target IP address field is verified to be correct.
The embodiment of the invention verifies the availability of the IP address after the allocation is finished, and ensures the accuracy of the IP address allocation while quickly finishing the IP address allocation, thereby ensuring that the service is not damaged.
An embodiment of the present invention provides an electronic device, including: at least one processor; and at least one memory communicatively coupled to the processor, wherein:
fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention, and referring to fig. 4, the electronic device includes: a processor (processor)401, a communication Interface (communication Interface)402, a memory (memory)403 and a bus 404, wherein the processor 401, the communication Interface 402 and the memory 403 complete communication with each other through the bus 404. Processor 401 may call logic instructions in memory 403 to perform the following method: determining IP address screening conditions according to the IP address demand information; determining a target IP address field meeting the IP address screening condition in a preset idle IP address database, and determining a target IP in the target IP address field; and taking the target IP as an IP address allocation result.
An embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer can execute the methods provided by the above method embodiments, for example, the method includes: determining IP address screening conditions according to the IP address demand information; determining a target IP address field meeting the IP address screening condition in a preset idle IP address database, and determining a target IP in the target IP address field; and taking the target IP as an IP address allocation result.
Embodiments of the present invention provide a non-transitory computer-readable storage medium, which stores computer instructions, where the computer instructions cause the computer to perform the methods provided by the above method embodiments, for example, the methods include: determining IP address screening conditions according to the IP address demand information; determining a target IP address field meeting the IP address screening condition in a preset idle IP address database, and determining a target IP in the target IP address field; and taking the target IP as an IP address allocation result.
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 method according to each embodiment 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. An IP address planning method of an IP bearing network is characterized by comprising the following steps:
determining IP address screening conditions according to the IP address demand information;
determining a target IP address field meeting the IP address screening condition in a preset idle IP address database, and determining a target IP in the target IP address field;
and taking the target IP as an IP address allocation result.
2. The method of claim 1, wherein if the IP address requirement is a single address requirement; correspondingly, the IP address screening condition is:
the number of the IP contained in the target IP address field is more than or equal to a first number of the IP contained in the target IP address field and the number of the IP contained in the target IP address field is less than or equal to the number of the IP contained in the rest IP address fields in the idle IP address database, wherein the first number of the IP is the number of the IP required in the IP address requirement information.
3. The method of claim 2, further comprising:
and if a plurality of target IP address fields exist, selecting the IP address field with the top sequence in the idle IP address database.
4. A method according to claim 2 or 3, wherein if the IP address requirement is a 32-bit IP address requirement; correspondingly, the determining the target IP in the target IP address segment includes:
and selecting a first IP in the target IP address field as the target IP.
5. A method according to claim 2 or 3, wherein if the IP address requirement is a non-32 bit IP address requirement; correspondingly, the determining the target IP in the target IP address segment includes:
acquiring a head IP address and a tail IP address of the target IP address segment;
and determining the target IP according to the head IP address and the tail IP address of the target IP address field and the prefix length required by the IP address.
6. The method of claim 1, wherein if the IP address requirement is a primary/backup address requirement; correspondingly, the determining a target IP address segment meeting the IP address screening condition in a preset idle IP address database and determining a target IP in the target IP address segment includes:
searching a 24-bit IP address section in the idle IP address database;
taking the first half C section of the 24-bit IP address section as a first target IP address section, and taking the second half C section of the 24-bit IP address section as a second target IP address section;
and determining a first target IP according to the first target IP address field, and determining a second target IP according to the second target IP address field.
7. The method of claim 1, wherein after the assigning the target IP as an IP address, the method further comprises:
checking the availability of the target IP;
and if the verification is correct, adding the target IP address field into a preset allocated IP address database and updating the idle IP address database.
8. An IP address planning system for an IP bearer network, comprising:
the condition determining module is used for determining IP address screening conditions according to the IP address demand information;
the address determination module is used for determining a target IP address field meeting the IP address screening condition in a preset idle IP address database and determining a target IP in the target IP address field;
and the address allocation module is used for taking the target IP as an IP address allocation result.
9. An electronic device, comprising a memory and a processor, wherein the processor and the memory communicate with each other via a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 7.
CN201811270228.7A 2018-10-29 2018-10-29 IP address planning method and system of IP bearing network Active CN111107173B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811270228.7A CN111107173B (en) 2018-10-29 2018-10-29 IP address planning method and system of IP bearing network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811270228.7A CN111107173B (en) 2018-10-29 2018-10-29 IP address planning method and system of IP bearing network

Publications (2)

Publication Number Publication Date
CN111107173A true CN111107173A (en) 2020-05-05
CN111107173B CN111107173B (en) 2023-04-07

Family

ID=70419868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811270228.7A Active CN111107173B (en) 2018-10-29 2018-10-29 IP address planning method and system of IP bearing network

Country Status (1)

Country Link
CN (1) CN111107173B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683164A (en) * 2020-07-08 2020-09-18 厦门网宿有限公司 IP address configuration method and VPN service system
CN112291383A (en) * 2020-10-15 2021-01-29 科大国创云网科技有限公司 IP address allocation method and system
CN114363167A (en) * 2021-12-20 2022-04-15 北京百度网讯科技有限公司 Network segment information processing method, device, electronic equipment and storage medium
CN114615194A (en) * 2020-11-23 2022-06-10 中盈优创资讯科技有限公司 Diversified address allocation method and device
WO2023221508A1 (en) * 2022-05-18 2023-11-23 天翼云科技有限公司 Floating ip allocation method and apparatus, and electronic device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1455563A (en) * 2003-06-19 2003-11-12 北京港湾网络有限公司 Method of distruting network protocol address of distributed wideband connecting-in authenticated node users
CN102143247A (en) * 2010-12-31 2011-08-03 华为技术有限公司 Method for allocating and configuring address, address allocation server and host machine
US20130091255A1 (en) * 2011-10-06 2013-04-11 Delta Electronics, Inc. Ip address assigning method and data center using such method
CN104486452A (en) * 2014-09-23 2015-04-01 华为技术有限公司 Address processing method and related equipment and system
CN105554178A (en) * 2015-12-31 2016-05-04 上海华为技术有限公司 Address allocation method, gateway and system
CN107786681A (en) * 2016-08-31 2018-03-09 中国电信股份有限公司 Methods, devices and systems for IP address scheduling of resource
CN108632400A (en) * 2017-08-31 2018-10-09 新华三技术有限公司 A kind of IPv6 address distribution methods and Leaf node devices
CN108712514A (en) * 2018-04-28 2018-10-26 新华三技术有限公司 IP address management method, apparatus and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1455563A (en) * 2003-06-19 2003-11-12 北京港湾网络有限公司 Method of distruting network protocol address of distributed wideband connecting-in authenticated node users
CN102143247A (en) * 2010-12-31 2011-08-03 华为技术有限公司 Method for allocating and configuring address, address allocation server and host machine
US20130091255A1 (en) * 2011-10-06 2013-04-11 Delta Electronics, Inc. Ip address assigning method and data center using such method
CN104486452A (en) * 2014-09-23 2015-04-01 华为技术有限公司 Address processing method and related equipment and system
CN105554178A (en) * 2015-12-31 2016-05-04 上海华为技术有限公司 Address allocation method, gateway and system
CN107786681A (en) * 2016-08-31 2018-03-09 中国电信股份有限公司 Methods, devices and systems for IP address scheduling of resource
CN108632400A (en) * 2017-08-31 2018-10-09 新华三技术有限公司 A kind of IPv6 address distribution methods and Leaf node devices
CN108712514A (en) * 2018-04-28 2018-10-26 新华三技术有限公司 IP address management method, apparatus and electronic equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
张永明: "移动软交换核心网IP化实现", 《电信工程技术与标准化》 *
李洪荣: "浅析信息系统建设的网络规划", 《中国科技信息》 *
江凡: "局域网地址的管理与分配策略", 《职业技术》 *
谭旺等: "新形势下IP地址规划原则与思路分析", 《金融科技时代》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683164A (en) * 2020-07-08 2020-09-18 厦门网宿有限公司 IP address configuration method and VPN service system
CN112291383A (en) * 2020-10-15 2021-01-29 科大国创云网科技有限公司 IP address allocation method and system
CN114615194A (en) * 2020-11-23 2022-06-10 中盈优创资讯科技有限公司 Diversified address allocation method and device
CN114615194B (en) * 2020-11-23 2023-06-23 中盈优创资讯科技有限公司 Diversified address allocation method and device
CN114363167A (en) * 2021-12-20 2022-04-15 北京百度网讯科技有限公司 Network segment information processing method, device, electronic equipment and storage medium
CN114363167B (en) * 2021-12-20 2024-03-19 北京百度网讯科技有限公司 Network segment information processing method and device, electronic equipment and storage medium
WO2023221508A1 (en) * 2022-05-18 2023-11-23 天翼云科技有限公司 Floating ip allocation method and apparatus, and electronic device and storage medium

Also Published As

Publication number Publication date
CN111107173B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN111107173B (en) IP address planning method and system of IP bearing network
US11586673B2 (en) Data writing and reading method and apparatus, and cloud storage system
US10075329B2 (en) Customizable high availability switchover control of application delivery controllers
CN102137014B (en) Resource management method, system and resource manager
CN109981493B (en) Method and device for configuring virtual machine network
US11403009B2 (en) Storage system, and method and apparatus for allocating storage resources
CN111585887B (en) Communication method and device based on multiple networks, electronic equipment and storage medium
US9596063B2 (en) Dynamically allocating network resources for communication session
CN106294352A (en) A kind of document handling method, device and file system
EP3800843A1 (en) Network optimization method and system, and network device
CN110290228B (en) Internet protocol IP address allocation method and device
US8705369B2 (en) Routing cost normalizing
US10785149B2 (en) System and method for adding routing paths in a network
CN112650692A (en) Heap memory allocation method, device and storage medium
US20210409376A1 (en) Firewall rule statistic mini-maps
US20230318922A1 (en) Model-based service placement
CN109005122B (en) Message sending method and device and network equipment
US11606269B1 (en) Service placement assistance
CN107491270B (en) Resource access method and device of multi-control storage system
CN112351050A (en) Method, device, communication equipment and storage medium for mirroring data stream
US10785103B2 (en) Method and system for managing control connections with a distributed control plane
CN110191055B (en) Label distribution method and device
CN107682271A (en) The generation method and device of a kind of route lines
CN112783673A (en) Method and device for determining call chain, computer equipment and storage medium
CN111144771A (en) Method and device for determining wind evaluation strategy and computer storage medium

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
GR01 Patent grant
GR01 Patent grant