CN107770296B - Method and device for allocating addresses - Google Patents
Method and device for allocating addresses Download PDFInfo
- Publication number
- CN107770296B CN107770296B CN201610688778.5A CN201610688778A CN107770296B CN 107770296 B CN107770296 B CN 107770296B CN 201610688778 A CN201610688778 A CN 201610688778A CN 107770296 B CN107770296 B CN 107770296B
- Authority
- CN
- China
- Prior art keywords
- address
- equipment
- management platform
- addresses
- idle
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method and a device for allocating addresses, wherein the method comprises the following steps: the method comprises the steps that a device management platform receives a request message used for indicating application of a network protocol IP address by a device; the device management platform responds to the request message and allocates the required IP address to the device according to the use condition of the managed IP address. The invention solves the problem that the IP equipment management platform distributes addresses for the IP equipment in the related technology possibly to be too small or too large, and achieves the effect of reasonably utilizing the IP addresses.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for allocating addresses.
Background
As the demand of the network for an Internet Protocol (IP) address increases, a more flexible and convenient way is required to manage an IP device address; at present, an address management mode is that an IP address device is configured as a fixed IP section, and an address needs to be applied from a unified IP device management platform. However, in this way, the address allocated by the IP device management platform to the IP device may be too small, which results in frequent address application by the IP device, and thus low allocation efficiency, and if the allocated address is too large, the address resource is not reasonably utilized.
In view of the above problems in the related art, no effective solution exists at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for allocating addresses, which are used for at least solving the problem that addresses allocated to IP equipment by an IP equipment management platform in the related art are possibly too small or too large.
According to an aspect of the present invention, there is provided a method of allocating an address, including: the method comprises the steps that a device management platform receives a request message used for indicating application of a network protocol IP address by a device; and the equipment management platform responds to the request message and allocates the required IP address for the equipment according to the use condition of the managed IP address.
Further, in a case that the IP address applied by the device is a non-fixed IP address, the allocating, by the device management platform, an IP address to the device according to the usage of the managed IP address in response to the request message includes: the equipment management platform calculates an IP address block corresponding to the equipment according to the service condition of the managed IP address; the equipment management platform compares an idle IP address in the managed IP addresses with the IP address block; the device management platform allocates the idle IP address to the device if the idle IP address is smaller than the IP address block; and under the condition that the idle IP address is larger than the IP address block, the equipment management platform allocates an address field corresponding to the IP address block to the equipment.
Further, in a case that the IP address applied by the device is a fixed IP address, the allocating, by the device management platform, an IP address to the device according to the usage of the managed IP address in response to the request message includes: the equipment management platform judges whether the fixed IP address applied by the equipment is an idle address; and under the condition that the fixed IP address applied by the equipment is an idle address, the equipment management platform allocates the applied fixed IP address to the equipment.
Further, after the device management platform successfully allocates the IP address to the device, the method further includes: and the management equipment platform updates the allocated IP address information into a locally stored IP equipment address information table.
Further, the method further comprises: under the condition that the equipment does not use the appointed IP address field within the preset time, the equipment management platform receives a release request message which is sent by the equipment and used for indicating the release of the appointed IP address field; and the equipment management platform updates the information of the specified IP address field into the IP equipment address information table.
Further, the method further comprises: under the condition that the service volume of the equipment changes, the equipment management platform receives a request message which is reported by the equipment and used for indicating the changed service volume information; and the equipment management platform updates the information of the changed service volume of the equipment into the IP equipment address information table.
Further, the usage of the IP address managed by the device management platform is determined by the following parameters in the IP device address information table: total number of IP addresses managed by the device management platform(ii) a Total number of IP devices accessed to the device management platform(ii) a Traffic of device applying for IP address(ii) a Sum of traffic volumes of IP devices accessed to the device management platform(ii) a IP address accumulated total released by equipment applying for IP address(ii) a Device applying for IP address accumulates total number(ii) a Broken link rate of device applying for IP address(ii) a Address block size applied by device applying for IP address。
according to another aspect of the present invention, there is provided an apparatus for allocating an address, which is applied to a device management platform side, including: a receiving module, configured to receive a request message for indicating a network protocol IP address application from a device; and the allocation module is used for responding to the request message and allocating the address required by the IP to the equipment according to the use condition of the managed IP address.
Further, in a case that the IP address applied by the device is a non-fixed IP address, the allocating module includes: a calculation unit configured to calculate an IP address block corresponding to the device according to the usage of the managed IP address; a comparing unit for comparing a free IP address in the managed IP addresses with the IP address block; a first allocation unit configured to allocate the idle IP address to the device if the idle IP address is smaller than the IP address block; a second allocating unit, configured to allocate, to the device, an address segment corresponding to the IP address block when the idle IP address is greater than the IP address block.
Further, in a case that the IP address applied by the device is a fixed IP address, the allocating module includes: the judging unit is used for judging whether the fixed IP address applied by the equipment is an idle address or not; and the third allocation unit is used for allocating the applied fixed IP address to the equipment under the condition that the fixed IP address applied by the equipment is an idle address.
Further, the apparatus further comprises: and the first updating module is used for updating the allocated IP address information into a locally stored IP device address information table after the allocating module successfully allocates the IP address to the device.
Further, the apparatus further comprises: a first receiving module, configured to receive, when the device does not use a specified IP address field within a preset time, a release request message sent by the device and used for instructing release of the specified IP address field; and the second updating module is used for updating the information of the specified IP address field into the IP equipment address information table.
Further, the apparatus further comprises: a second receiving module, configured to receive, when the traffic volume of the device changes, a request message, which is reported by the device and used for indicating information of the changed traffic volume; and the third updating module is used for updating the information of the changed service volume of the equipment into the IP equipment address information table.
Further, the usage of the IP address managed by the device management platform is determined by the following parameters in the IP device address information table: total number of IP addresses managed by the device management platform(ii) a Total number of IP devices accessed to the device management platform(ii) a Traffic of devices applying for IP addresses(ii) a Sum of traffic of IP device accessed to the device management platform(ii) a IP address accumulated total released by equipment applying for IP address(ii) a Device applying for IP address accumulates total number(ii) a Broken link rate of device applying for IP address(ii) a Address block size applied by device applying for IP address。
by the invention, the equipment management platform can allocate the required IP address for the equipment according to the use condition, namely, the IP address applied by the equipment is allocated when enough idle IP addresses exist in the managed IP addresses, and the idle IP address is allocated to the equipment when the idle IP address is insufficient, so that the problem that the address allocated to the IP equipment by the IP equipment management platform in the related technology is possibly too small or too large is solved, and the effect of reasonably utilizing the IP address is achieved.
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a method of allocating an address according to an embodiment of the present invention.
Fig. 2 is a block diagram of an apparatus for allocating an address according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
In the present embodiment, a method for allocating an address is provided, and fig. 1 is a flowchart of a method for allocating an address according to an embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
step S102: the method comprises the steps that a device management platform receives a request message used for indicating application of a network protocol IP address by a device;
step S104: the device management platform responds to the request message to allocate the required IP address for the device according to the use condition of the managed IP address.
As can be seen from the foregoing steps S102 to S104 in this embodiment, the device management platform may allocate a required IP address to the device according to a use condition, that is, when there is a sufficient idle IP address in the managed IP addresses, the IP address applied by the device is allocated, and if there is an insufficient idle IP address, the idle IP address is allocated to the device, so that a problem that an address allocated to the IP device by the IP device management platform in the related art may be too small or too large is solved, and an effect of reasonably using the IP address is achieved.
As for the modes involved in step S102 and step S104, the following describes the present embodiment in detail with reference to alternative embodiments of the present embodiment;
in an optional implementation manner of this embodiment, for the device management platform receiving device involved in step S102 of this embodiment, the request message used for indicating that a network protocol IP address is applied for may be: the dynamic address application means applying for an address block; the fixed address application is to apply for a specific IP address and IP address field. When the address is insufficient, the application is ended, and the insufficient address can be the exhaustion of the address or the reaching of the address utilization rate threshold. The following is a description with reference to two modes of the device applying for an address in this embodiment;
(1) in the case that the IP address applied by the device is a non-fixed IP address, the manner in which the device management platform related in step S104 of this embodiment allocates an IP address to the device according to the usage of the managed IP address in response to the request message may include:
s104-1: the equipment management platform calculates an IP address block corresponding to the equipment according to the service condition of the managed IP address;
s104-2: the equipment management platform compares an idle IP address in the managed IP addresses with the IP address block;
s104-3: under the condition that the idle IP address is smaller than the IP address block, the equipment management platform allocates the idle IP address to the equipment;
s104-4: and under the condition that the idle IP address is larger than the IP address block, the equipment management platform allocates an address field corresponding to the IP address block to the equipment.
It should be noted that, the size of the address block affects the address allocation efficiency and the IP management efficiency, wherein, the IP device with the too small address block frequently applies for addresses, which increases the complexity of allocation time and message interaction in the network, and also increases the processing load of the IP management device; and the address block is too large, so that the idle address cannot be accompanied by other IP equipment within a period of time, and the utilization rate of address resources is reduced.
Based on this, the usage of the IP address managed by the device management platform in this embodiment is determined by the following parameters in the IP device address information table: total number of IP addresses managed by the device management platform(ii) a Total number of IP devices accessed to device management platform(ii) a Traffic of device applying for IP address(ii) a Traffic summation of IP devices accessed to device management platform(ii) a IP address accumulated total released by equipment applying for IP address(ii) a Device applying for IP address accumulates total number(ii) a Broken link rate of device applying for IP address(ii) a Address block size applied by device applying for IP address。
Based on the above parameters, for the above steps S104-1 toCalculated IP Address Block referred to in S104-4In this embodiment, the following formula may be used to calculate:
ceil (double x) is a function in C/C + +, which functions to return the smallest integer greater than or equal to the value of x, e.g., ceil (4.5) = 5; ceil (4) = 4.
Therefore, the address block can be adjusted to reach a reasonable value by analyzing parameters influencing the size of the address block and an optional algorithm, so that the efficiency of address allocation and the utilization rate of address resources are improved.
In addition, it should be noted that, when the device is connected to the platform management platform, the service information needs to be reported at the first time.
Wherein, ifIs 0, thenIs 1; if it is notIs 0, i.e. the device first applies for an address, thenIs 0. TheThe calculation method of (2): within a period of time t, the successful connection times/connection times; and t is set manually.
In addition, the judgment of the traffic can be that the management platform sets rules, and the platform carries out statistics; the access device sets the access domain to distinguish different services, and then the number of the domains is the number of the services. The statistics of the traffic is not limited to the manner mentioned here, and the division manner is not limited to a domain and may be set according to a specific application scenario.
(2) In the case that the IP address applied by the device is a fixed IP address, the manner in which the device management platform related in step S104 of this embodiment allocates an IP address to the device according to the usage of the managed IP address in response to the request message may include:
s104-5: the device management platform judges whether the fixed IP address applied by the device is an idle address;
s104-6: and under the condition that the fixed IP address applied by the equipment is an idle address, the equipment management platform allocates the applied fixed IP address to the equipment.
It can be seen that, for the application of the fixed address, if the applied fixed address is an idle address, the device platform will allocate the fixed address applied by the device to the device, and certainly when the applied fixed address is not idle, the process of allocating the address is finished.
As for the above (1) and (2), after the device management platform successfully allocates the IP address to the device, the method of this embodiment may further include: and the management equipment platform updates the allocated IP address information into a locally stored IP equipment address information table.
Wherein, the IP equipment address information table is used for storing the information related to equipment and address; in addition to the above parameters for determining the usage of the IP address managed by the device management platform, in another implementation of this embodiment, the address-related information may further include: the total number of allocable addresses, the number of used addresses and the number of idle addresses; and the IP device information may further include: IP equipment number, cumulative total of released addresses, cumulative total of allocated addresses, traffic volume, connectivity rate, and connection state. That is, the information in the IP device address information table can be set according to actual conditions.
In another optional implementation manner of this embodiment, the method of this embodiment may further include:
step S106: under the condition that the equipment does not use the appointed IP address field within the preset time, the equipment management platform receives a release request message which is sent by the equipment and used for indicating the release of the appointed IP address field;
step S108: and the equipment management platform updates the information of the appointed IP address field into an IP equipment address information table.
That is, when the device management platform receives the released idle address or the fixed IP address, if the release is successful, the address information is updated to the IP device address information table, such as address occupation and address release number accumulation. If the address release is normal, the response message carries a success state, otherwise, the response message carries a failure state.
In another optional implementation manner of this embodiment, the method of this embodiment may further include:
step S110: under the condition that the service volume of the equipment is changed, the equipment management platform receives a request message which is reported by the equipment and used for indicating the changed service volume information;
step S112: and the equipment management platform updates the information of the changed service volume of the equipment into an IP equipment address information table.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a device for allocating an address is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and the description of the device that has been already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a block diagram of an apparatus for assigning an address according to an embodiment of the present invention, which is applied to a device management platform side, as shown in fig. 2, and includes: a receiving module 22, configured to receive a request message for indicating that a device applies for a network protocol IP address; and an allocating module 24, coupled to the receiving module 22, for allocating a required IP address to the device according to the usage of the managed IP address in response to the request message.
Optionally, in a case that the IP address applied by the device is a non-fixed IP address, the allocating module 24 includes: a calculation unit for calculating an IP address block corresponding to the device according to the use condition of the managed IP address; a comparing unit for comparing a free IP address in the managed IP addresses with the IP address block; a first allocation unit for allocating an idle IP address to the device in the case that the idle IP address is smaller than the IP address block; and a second allocating unit for allocating an address segment corresponding to the IP address block to the device in the case that the idle IP address is greater than the IP address block.
Optionally, in a case that the IP address applied by the device is a fixed IP address, the allocating module 24 includes: the judging unit is used for judging whether the fixed IP address applied by the equipment is an idle address or not; and the third allocation unit is used for allocating the applied fixed IP address to the equipment under the condition that the fixed IP address applied by the equipment is an idle address.
Optionally, the apparatus may further include: and the first updating module is used for updating the allocated IP address information into the IP equipment address information table stored locally after the allocating module successfully allocates the IP address to the equipment.
Optionally, the apparatus may further include: the first receiving module is used for receiving a release request message which is sent by the equipment and used for indicating the release of the specified IP address field under the condition that the equipment does not use the specified IP address field within the preset time; and the second updating module is used for updating the information of the appointed IP address field into the IP equipment address information table.
Optionally, the apparatus may further include: a second receiving module, configured to receive, when a traffic volume of the device changes, a request message, which is reported by the device and used for indicating information of the changed traffic volume; and the third updating module is used for updating the information of the changed service volume of the equipment into the IP equipment address information table.
In this embodiment, the usage of the IP address is determined by the following parameters in the IP device address information table: total number of IP addresses managed by device management platform(ii) a Total number of IP devices accessed to device management platform(ii) a Traffic of device applying for IP address(ii) a Traffic summation of IP devices accessed to device management platform(ii) a Cumulative total of IP addresses released by equipment applying for IP addresses(ii) a Device applying for IP address accumulates total number(ii) a Broken link rate of device applying for IP address(ii) a Address block size applied by device applying for IP address。
it should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
The present embodiment is a specific embodiment of the above embodiments 1 and 2 in a specific application scenario;
the present embodiment provides an address allocation method based on an address management platform, which takes an access IP device as an example in the present embodiment, but is not limited to the access IP device, and the method of the present embodiment includes the steps of:
step S202: when the IP equipment is accessed to the IP management platform, an 'IP equipment information table' is initialized.
Wherein, all the access IP devices independently undertake the function of distributing addresses; the IP management platform supervises the connection state and the address use condition of each access IP device. The access IP equipment and the IP management platform can be communicated with each other and receive instructions;
in addition, the IP management platform needs to maintain an information table: the "address information table" and the "IP device information table" are adjusted according to the fact status as shown in tables 1 and 2.
Table 1: address information table
Numbering | Total number of assignable addresses | Number of address used | Number of free addresses | Total traffic volume |
And the corresponding address information is updated in time when the use state of the IP management equipment address changes every time. The total traffic in the network is the sum of the traffic of each IP device, and the performance attribute can be increased according to the requirement.
Table 2: IP equipment information table
IP device numbering | Cumulative total of assigned addresses | Cumulative total of released addresses | Traffic volume | Rate of communication | Connection state | Device address |
The IP device number, the allocated address list, the total number of released addresses, the traffic, the connection state and the device address.
The address block size calculation method follows the following formula:
: and the traffic of the certain IP equipment is actively reported and actively updated by the IP equipment.
: and applying for a cumulative total of the release addresses on the certain IP equipment. The number of the applied addresses needs to be accumulated once when the addresses are successfully applied each time instead of the number of the applied addresses.
: and the application address on the certain IP equipment is accumulated to a total number. Each time the address is released successfully, it needs to be accumulated.
: a link-down rate of the certain IP device. For example, the communication rate over time is: the ratio of success number to connection number, the chain breakage rate is 1-connection rate.
: the certain IP equipment applies for the size of the address block, namely the number of addresses applied at one time.
It should be noted that, when the IP device is connected to the IP platform management, the service information needs to be reported at the first time.
If it is notIs 0, i.e. the device first applies for an address, thenIs 0. TheThe calculation method of (2): within a period of time t, the successful connection times/connection times; and t is set manually.
The calculation method of (2): within a period of time t, the successful connection times/connection times; and t is set manually.
Step S204: IP equipment applies for an address request to an IP management platform;
wherein the triggering condition is as follows: and the idle address is insufficient, and a fixed address is applied. The lack of an address may be an exhaustion of the address or an reaching of an address usage threshold. The dynamic address application is to apply for an address block, and the fixed address application is to apply for a specific IP address and IP address field.
Step S206: the IP equipment releases the idle address to the IP management platform;
wherein, the trigger condition for releasing the free address is as follows: (1) the IP equipment is actively released, and when the address is detected to be idle, the idle address is recovered; (2) when the long-time offline state of the IP equipment is detected, the IP equipment can be considered to be in fault or not to exist, and at the moment, the IP management platform recovers all the addresses of the offline IP equipment. (3) The manager actively deletes the address.
Step S208: the address block is automatically adjusted;
wherein, (1) when the IP management platform receives the non-fixed address request information of the IP equipment:
a, calculating the size of the address block first, to b)
b, checking whether a free address exists, if yes, going to c), otherwise, f).
c, if the free address is smaller than the address block size, allocating all free addresses, to e), otherwise to d).
d, allocating an address segment of the address block size, to f).
e, successfully distributing the address, and updating the address related information table to f).
f, ending the distribution and returning a success or failure result.
(2) When the IP management platform receives the IP device fixed address request message,
detecting an address state; address not occupied, to g), address occupied to h).
And g, allocating addresses and updating address state information.
h, ending the distribution and returning the distribution result.
It should be noted that, in this embodiment, the IP device and the IP management platform implement functions of allocating and managing addresses through a series of message interactions. The message types are mainly: address application message, address release message, information collection message. The message type is not limited to these types and may be set as needed.
For example, the address application message: an address request message is assigned. Initiating by the IP equipment; the message carries the DUTid, address type, IP address (optional, fixed IP address needs to be carried).
An assignment address response message: initiating by an IP management platform; the message carries the DUTid, address type, address, allocation success status. If the allocation is unsuccessful, the dynamic address is filled with 0; successful allocation, returnAnd updating the IP management platform to update the address information table by the individual address or the fixed address.
Address release message: the free address request information is released. The IP device detects that a certain address is not used within a certain period of time, and sends a request for releasing the address. The message carries the DUTid, address field, address type.
Releasing the idle address response information, and initiating by the IP management platform; the message carries the DUTid, address field, address type, release success status. And simultaneously updating the address information table.
And information collection information and reporting equipment service information. The traffic on the IP equipment is changed, and the changed service information needs to be reported in real time; and simultaneously updating the address information table entry. The message carries the DUTid, the service information and the service type.
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1: the method comprises the steps that a device management platform receives a request message used for indicating application of a network protocol IP address by a device;
s2: the device management platform responds to the request message and allocates the required IP address to the device according to the use condition of the managed IP address.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method of assigning addresses, comprising:
the method comprises the steps that a device management platform receives a request message used for indicating application of a network protocol IP address by a device;
under the condition that the IP address applied by the equipment is a non-fixed IP address, the equipment management platform calculates an IP address block corresponding to the equipment according to the service condition of the managed IP address; the equipment management platform compares an idle IP address in the managed IP addresses with the IP address block; the device management platform allocates the idle IP address to the device if the idle IP address is smaller than the IP address block; under the condition that the idle IP address is larger than the IP address block, the equipment management platform allocates an address field corresponding to the IP address block to the equipment;
a total number of IP addresses managed for the device management platform;the total number of IP devices accessed to the device management platform;traffic for devices applying for IP addresses;the total traffic of the IP equipment accessed to the equipment management platform;accumulating the total number of IP addresses released by the equipment applying for the IP addresses;applying for the total IP address accumulation for the equipment applying for the IP address;for applying for IP addressThe chain scission rate is obtained.
2. The method of claim 1, wherein, in the case that the IP address applied for by the device is a fixed IP address, the allocating, by the device management platform in response to the request message, an IP address to the device according to the usage of the managed IP address comprises:
the equipment management platform judges whether the fixed IP address applied by the equipment is an idle address;
and under the condition that the fixed IP address applied by the equipment is an idle address, the equipment management platform allocates the applied fixed IP address to the equipment.
3. The method of claim 1 or 2, wherein after the successful assignment of the IP address to the device by the device management platform, the method further comprises:
and the equipment management platform updates the allocated IP address information into an IP equipment address information table stored locally.
4. The method of claim 3, further comprising:
under the condition that the equipment does not use the appointed IP address field within the preset time, the equipment management platform receives a release request message which is sent by the equipment and used for indicating the release of the appointed IP address field;
and the equipment management platform updates the information of the specified IP address field into the IP equipment address information table.
5. The method of claim 3, further comprising:
under the condition that the service volume of the equipment changes, the equipment management platform receives a request message which is reported by the equipment and used for indicating the changed service volume information;
and the equipment management platform updates the information of the changed service volume of the equipment into the IP equipment address information table.
6. An apparatus for allocating addresses, applied to a device management platform side, comprising: a receiving module and a distributing module;
the receiving module is used for receiving a request message of the equipment for indicating the application of the IP address of the network protocol;
under the condition that the IP address applied by the equipment is a non-fixed IP address, the allocation module comprises:
a calculation unit for calculating an IP address block corresponding to the device according to the use condition of the managed IP address; a comparing unit for comparing a free IP address in the managed IP addresses with the IP address block; a first allocation unit configured to allocate the idle IP address to the device if the idle IP address is smaller than the IP address block; a second allocating unit, configured to allocate, to the device, an address segment corresponding to the IP address block if the idle IP address is greater than the IP address block;
a total number of IP addresses managed for the device management platform;the total number of IP devices accessed to the device management platform;traffic for devices applying for IP addresses;the total traffic of the IP equipment accessed to the equipment management platform;accumulating the total number of IP addresses released by the equipment applying for the IP addresses;applying for the total IP address accumulation for the equipment applying for the IP address;the link down rate of the device applying for the IP address.
7. The apparatus according to claim 6, wherein in case that the IP address requested by the device is a fixed IP address, the allocating module comprises:
the judging unit is used for judging whether the fixed IP address applied by the equipment is an idle address or not;
and the third allocation unit is used for allocating the applied fixed IP address to the equipment under the condition that the fixed IP address applied by the equipment is an idle address.
8. The apparatus of claim 6 or 7, further comprising:
and the first updating module is used for updating the allocated IP address information into a locally stored IP device address information table after the allocation module successfully allocates the IP address to the device.
9. The apparatus of claim 8, further comprising:
a first receiving module, configured to receive, when the device does not use a specified IP address field within a preset time, a release request message sent by the device and used for instructing release of the specified IP address field;
and the second updating module is used for updating the information of the specified IP address field into the IP equipment address information table.
10. The apparatus of claim 8, further comprising:
a second receiving module, configured to receive, when the traffic volume of the device changes, a request message, which is reported by the device and used for indicating information of the changed traffic volume;
and the third updating module is used for updating the information of the changed service volume of the equipment into the IP equipment address information table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610688778.5A CN107770296B (en) | 2016-08-18 | 2016-08-18 | Method and device for allocating addresses |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610688778.5A CN107770296B (en) | 2016-08-18 | 2016-08-18 | Method and device for allocating addresses |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107770296A CN107770296A (en) | 2018-03-06 |
CN107770296B true CN107770296B (en) | 2022-05-13 |
Family
ID=61261739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610688778.5A Active CN107770296B (en) | 2016-08-18 | 2016-08-18 | Method and device for allocating addresses |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107770296B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111193814A (en) * | 2019-12-09 | 2020-05-22 | 中国科学院计算机网络信息中心 | Industrial Internet identification analysis-oriented self-adaptive IPv6 address allocation method |
CN115150420B (en) * | 2021-03-29 | 2024-04-09 | 中移(上海)信息通信科技有限公司 | Service processing method and device and related equipment |
CN113766043B (en) * | 2021-05-11 | 2024-02-23 | 腾讯科技(深圳)有限公司 | Method, device, computer equipment and storage medium for configuring target container |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1549509A (en) * | 2003-05-06 | 2004-11-24 | 华为技术有限公司 | Management method for IP address configuration |
CN101247396A (en) * | 2008-02-20 | 2008-08-20 | 北大方正集团有限公司 | Method, device and system for distributing IP address |
CN101355469A (en) * | 2007-07-26 | 2009-01-28 | 华为技术有限公司 | Method for processing network address and route node |
CN102231764A (en) * | 2011-06-22 | 2011-11-02 | 华为技术有限公司 | Method and device for distributing network addresses |
CN102238239A (en) * | 2010-04-21 | 2011-11-09 | 电信科学技术研究院 | IP address allocation method and device |
WO2014149607A1 (en) * | 2013-03-15 | 2014-09-25 | Google Inc. | Ip allocation pools |
CN104378455A (en) * | 2014-11-13 | 2015-02-25 | 杭州华三通信技术有限公司 | IP address distribution method and device |
CN104486452A (en) * | 2014-09-23 | 2015-04-01 | 华为技术有限公司 | Address processing method and related equipment and system |
CN105306614A (en) * | 2014-07-31 | 2016-02-03 | 中国电信股份有限公司 | Address management method, address management system, address manager and local address management device |
-
2016
- 2016-08-18 CN CN201610688778.5A patent/CN107770296B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1549509A (en) * | 2003-05-06 | 2004-11-24 | 华为技术有限公司 | Management method for IP address configuration |
CN101355469A (en) * | 2007-07-26 | 2009-01-28 | 华为技术有限公司 | Method for processing network address and route node |
CN101247396A (en) * | 2008-02-20 | 2008-08-20 | 北大方正集团有限公司 | Method, device and system for distributing IP address |
CN102238239A (en) * | 2010-04-21 | 2011-11-09 | 电信科学技术研究院 | IP address allocation method and device |
CN102231764A (en) * | 2011-06-22 | 2011-11-02 | 华为技术有限公司 | Method and device for distributing network addresses |
WO2014149607A1 (en) * | 2013-03-15 | 2014-09-25 | Google Inc. | Ip allocation pools |
CN105306614A (en) * | 2014-07-31 | 2016-02-03 | 中国电信股份有限公司 | Address management method, address management system, address manager and local address management device |
CN104486452A (en) * | 2014-09-23 | 2015-04-01 | 华为技术有限公司 | Address processing method and related equipment and system |
CN104378455A (en) * | 2014-11-13 | 2015-02-25 | 杭州华三通信技术有限公司 | IP address distribution method and device |
Non-Patent Citations (1)
Title |
---|
新IP网络的地址资源池化及智能调度技术;解冲锋等;《电信技术》;20160725(第07期);17-21 * |
Also Published As
Publication number | Publication date |
---|---|
CN107770296A (en) | 2018-03-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11546644B2 (en) | Bandwidth control method and apparatus, and device | |
CN109618002B (en) | Micro-service gateway optimization method, device and storage medium | |
CN104836819A (en) | Dynamic load balancing method and system, and monitoring and dispatching device | |
CN107026907A (en) | A kind of load-balancing method, load equalizer and SiteServer LBS | |
CN112532675A (en) | Method, device and medium for establishing network edge computing system | |
CN107770296B (en) | Method and device for allocating addresses | |
US9332132B1 (en) | System and method for reclaiming obligated network resources | |
CN110244901B (en) | Task allocation method and device and distributed storage system | |
CN108111628B (en) | Dynamic capacity-expansion storage method and system | |
CN112965784B (en) | Service access method, device, equipment and computer readable storage medium | |
US20170111279A1 (en) | Methods, systems, and computer readable media diverting diameter traffic from an overloaded policy and charging rules function (pcrf) | |
CN110445884A (en) | A kind of container IP address management method and device | |
CN107295054A (en) | The management method and device of cloud conferencing resource | |
WO2020185132A1 (en) | Method and current edge cloud manager for controlling resources | |
CN112351083A (en) | Service processing method and network service system | |
US20160205063A1 (en) | Method, device and system for implementing address sharing | |
CN110858986A (en) | Bandwidth adjusting method, device, communication equipment and computer readable storage medium | |
CN105530202A (en) | Bandwidth allocation method and server | |
CN101594642B (en) | Resource allocation method and resource allocation device used for communication network element device | |
CN108667940B (en) | Resource allocation method and device of cloud platform and computer readable storage medium | |
CN109413117B (en) | Distributed data calculation method, device, server and computer storage medium | |
CN114364031A (en) | Service providing method, device and storage medium | |
CN107547674A (en) | Address distribution method and device | |
CN108200185B (en) | Method and device for realizing load balance | |
CN109526032B (en) | Method and device for modifying network slice example |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20180418 Address after: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No. Applicant after: ZTE Corporation Address before: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68 Applicant before: Nanjing Zhongxing Software Co., Ltd. |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |