CN115361449B - Method, device, equipment and storage medium for adjusting IP resources - Google Patents

Method, device, equipment and storage medium for adjusting IP resources Download PDF

Info

Publication number
CN115361449B
CN115361449B CN202210889551.2A CN202210889551A CN115361449B CN 115361449 B CN115361449 B CN 115361449B CN 202210889551 A CN202210889551 A CN 202210889551A CN 115361449 B CN115361449 B CN 115361449B
Authority
CN
China
Prior art keywords
resource
determining
amount
utilization rate
resources
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
Application number
CN202210889551.2A
Other languages
Chinese (zh)
Other versions
CN115361449A (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.)
Shanghai Pudong Development Bank Co Ltd
Original Assignee
Shanghai Pudong Development Bank 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 Shanghai Pudong Development Bank Co Ltd filed Critical Shanghai Pudong Development Bank Co Ltd
Priority to CN202210889551.2A priority Critical patent/CN115361449B/en
Publication of CN115361449A publication Critical patent/CN115361449A/en
Application granted granted Critical
Publication of CN115361449B publication Critical patent/CN115361449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for adjusting IP resources. Wherein the method comprises the following steps: acquiring network address IP resource data of a set network segment under a current virtual computer; wherein the IP resource data comprises at least one of the following: current IP resource usage, historical IP resource usage, and allocated IP resource; judging whether the IP resource changes according to the IP resource data; if the IP resources are changed, determining the IP resource utilization rate of the set network segment; and adjusting the IP resources of the set network segment according to the IP resource utilization rate. According to the technical scheme, the IP resources can be dynamically adjusted, and the flexibility of IP resource allocation is improved.

Description

Method, device, equipment and storage medium for adjusting IP resources
Technical Field
The embodiment of the invention relates to the technical field of Internet, in particular to a method, a device, equipment and a storage medium for adjusting IP resources.
Background
The software defined network (Software Defined Network, SDN) is a novel network architecture, and the design concept is to separate a control plane and a data forwarding plane of the network, so that hardware for managing a programmable control bottom layer is realized through a software platform of a centralized controller, and flexible on-demand allocation of network resources is realized. In an SDN network, network equipment is only responsible for simple data forwarding and can adopt general hardware; the original operating system in charge of control is extracted into an independent network operating system in charge of adapting different service characteristics, and the communication between the network operating system and the service characteristics and between the network operating system and the hardware devices can be realized through programming. Current SDN controller management cannot address the elastic traffic demands on network resources in increasingly complex environments.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for adjusting IP resources, which can dynamically adjust the IP resources and improve the flexibility of IP resource allocation.
In a first aspect, an embodiment of the present invention provides a method for adjusting an IP resource, including:
Acquiring network address IP resource data of a set network segment under a current virtual computer; wherein the IP resource data comprises at least one of the following: current IP resource usage, historical IP resource usage, and allocated IP resource;
judging whether the IP resource changes according to the IP resource data;
if the IP resources change, determining the IP resource utilization rate of the set network segment;
And adjusting the IP resources of the set network segment according to the IP resource utilization rate.
Optionally, determining whether the IP resource changes according to the IP resource data includes:
And if the current IP resource usage amount is not equal to the historical IP resource usage amount, the IP resource is changed.
Optionally, determining the IP resource usage rate of the set network segment includes:
And determining a ratio of the current IP resource usage amount to the allocated IP resource amount, and determining the ratio as an IP resource usage rate.
Optionally, after determining the IP resource usage rate of the set network segment, the method further includes:
acquiring local network resource information;
determining a correction coefficient according to the network resource information;
correcting the IP resource utilization rate based on the correction coefficient;
correspondingly, adjusting the IP resources of the set network segment according to the IP resource utilization rate comprises the following steps:
and adjusting the IP resources of the set network segment according to the corrected IP resource utilization rate.
Optionally, adjusting the IP resources of the set network segment according to the IP resource usage rate includes:
determining an IP resource adjustment amount according to the IP resource utilization rate and a set threshold value; wherein the IP resource adjustment amount comprises an IP resource increase amount and an IP resource release amount;
And calling a setting network controller according to the IP resource adjustment quantity to adjust the IP resource of the setting network segment.
Optionally, determining the IP resource adjustment amount according to the IP resource usage rate and the set threshold includes:
determining an adjustment proportion according to the IP resource utilization rate and a set threshold value;
and determining an IP resource adjustment amount according to the adjustment proportion and the allocated IP resource amount.
Optionally, determining the IP resource adjustment amount according to the IP resource usage rate and the set threshold includes:
if the IP resource utilization rate is larger than the set threshold value, determining an IP resource increment according to the IP resource utilization rate and the set threshold value;
and if the IP resource utilization rate is smaller than the set threshold value, determining the IP resource release amount according to the IP resource utilization rate and the set threshold value.
In a second aspect, an embodiment of the present invention further provides an apparatus for adjusting IP resources, including:
The acquisition module is used for acquiring network address IP resource data of a set network segment under the current virtual computer; wherein the IP resource data comprises at least one of the following: current IP resource usage, historical IP resource usage, and allocated IP resource;
The judging module is used for judging whether the IP resources change according to the IP resource data;
The determining module is used for determining the IP resource utilization rate of the set network segment if the IP resource changes;
and the adjusting module is used for adjusting the IP resources of the set network segment according to the IP resource utilization rate.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method for adjusting IP resources according to any one of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer instruction is stored, where the computer instruction is configured to cause a processor to execute the method for adjusting IP resources according to any one of the embodiments of the present invention.
The invention sets network address IP resource data of network segment under the current virtual computer; wherein the IP resource data comprises at least one of the following: current IP resource usage, historical IP resource usage, and allocated IP resource; judging whether the IP resource changes according to the IP resource data; if the IP resources are changed, determining the IP resource utilization rate of the set network segment; and adjusting the IP resources of the set network segment according to the IP resource utilization rate. According to the technical scheme, the IP resources can be dynamically adjusted, and the flexibility of IP resource allocation is improved.
Drawings
Fig. 1 is a flowchart of a method for adjusting IP resources according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for adjusting IP resources according to a second embodiment of the present invention;
Fig. 3 is a schematic structural diagram of an IP resource adjustment device according to a third embodiment of the present invention;
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a method for adjusting an IP resource according to a first embodiment of the present invention, where the method may be applied to a case of adjusting an IP resource, and the method may be performed by an apparatus for adjusting an IP resource, and specifically includes the following steps:
Step 110, obtaining the IP resource data of the network address of the set network segment under the current virtual computer; wherein the IP resource data comprises at least one of the following: current IP resource usage, historical IP resource usage, and allocated IP resource.
The embodiment of the invention can be based on network equipment in an SDN environment; the technical scheme of the embodiment can be executed by a resource adjustment system, and the resource adjustment system can comprise a data acquisition component, a scheduling engine and other main components. In particular, the data acquisition component can be utilized to synchronize in real time the amount of IP usage data in the current network environment. The scheduling engine can be used for strategically maintaining and managing the use of IP resources in a global or local network environment.
The virtual computer in the embodiment of the present invention may be a VPC. The set network segment may be a network segment under a specified virtual computer VPC determined according to a preset acquisition rule. The collection rules can be preset according to actual requirements. The IP resource data may include at least one of: current IP resource usage, historical IP resource usage, and allocated IP resource. The current IP resource usage may be a current time resource usage of a network address IP resource of the set network segment under the current virtual computer. The historical IP resource usage may be a resource usage of a network address IP resource of the set network segment under the current virtual computer at a previous time. The allocated IP resource amount may be an IP resource amount that has been allocated to each network device of the network address IP resource of the set network segment under the current virtual computer. In the embodiment of the invention, the data acquisition component can acquire the IP resource data from the SDN controller by taking the virtual computer VPC as granularity.
The resource adjustment system of the embodiment of the invention can acquire at least one of the current IP resource usage amount, the historical IP resource usage amount and the allocated IP resource amount of the network address of the set network segment under the current virtual computer according to the data acquisition component.
And 120, judging whether the IP resources change according to the IP resource data.
In the embodiment of the invention, when the data can be acquired by the data acquisition component, the calling interface acquires the IP resource data in the virtual computer set network segment from the SDN controller to judge whether the IP resource is changed or not.
In the embodiment of the present invention, optionally, determining whether the IP resource changes according to the IP resource data includes: and if the current IP resource usage amount is not equal to the historical IP resource usage amount, the IP resource is changed.
According to the embodiment of the invention, when the current IP resource usage amount and the historical IP resource usage amount are judged to be unequal, the change of the IP resource can be indicated. Through such setting, the scheme can judge whether the IP resource is changed according to the IP resource usage amount and the historical IP resource usage amount, thereby being more convenient and quick.
And 130, if the IP resources are changed, determining the IP resource utilization rate of the set network segment.
Wherein, the IP resource utilization rate of the set network segment can be determined when the IP resource changes.
In the embodiment of the invention, if the IP resources are changed, the IP resource utilization rate of the set network segment is determined.
In the embodiment of the present invention, optionally, determining the IP resource usage rate of the set network segment includes: and determining a ratio of the current IP resource usage amount to the allocated IP resource amount, and determining the ratio as an IP resource usage rate.
Wherein the ratio may be a ratio of a current amount of IP resources usage to an amount of allocated IP resources. The IP resource usage may be determined based on a ratio of a current amount of IP resource usage to an amount of allocated IP resources. In the embodiment of the invention, the ratio of the current IP resource usage to the allocated IP resource is determined as the IP resource usage. By means of the arrangement, the data stability is guaranteed by determining the ratio of the current IP resource usage amount to the allocated IP resource amount as the IP resource usage rate.
And 140, adjusting the IP resources of the set network segment according to the IP resource utilization rate.
The scheduling engine of the resource adjustment system in the embodiment of the invention can adjust and set the IP resources of the network segment according to the utilization rate of the IP resources.
According to the technical scheme, network address IP resource data of a set network segment under a current virtual computer are obtained; wherein the IP resource data comprises at least one of the following: current IP resource usage, historical IP resource usage, and allocated IP resource; judging whether the IP resource changes according to the IP resource data; if the IP resources are changed, determining the IP resource utilization rate of the set network segment; and adjusting the IP resources of the set network segment according to the IP resource utilization rate. According to the technical scheme, the IP resources can be dynamically adjusted, and the flexibility of IP resource allocation is improved.
In this embodiment of the present invention, optionally, after determining the IP resource usage rate of the set network segment, the method further includes: acquiring local network resource information; determining a correction coefficient according to the network resource information; correcting the IP resource utilization rate based on the correction coefficient; correspondingly, adjusting the IP resources of the set network segment according to the IP resource utilization rate comprises the following steps: and adjusting the IP resources of the set network segment according to the corrected IP resource utilization rate.
The local network resource information may be firewall information, F5 information, load balancing information, and the like. The correction system may be pre-established. In this embodiment, a new correspondence between the correction coefficient and the network resource may be pre-established according to the actual requirement. The corrected IP resource usage rate may be an IP resource usage rate obtained by correcting the IP resource usage rate based on the correction coefficient.
The resource adjustment system in this embodiment may acquire local network resource information, determine a corresponding correction coefficient according to the network resource information, and correct the IP resource usage rate based on the correction coefficient; and adjusting and setting the IP resources of the network segment according to the corrected IP resource utilization rate.
The method for correcting the IP resource usage rate based on the correction coefficient may be: the correction coefficient is multiplied by the IP resource usage.
According to the scheme, the correction coefficient is determined according to the network resource information, so that the network resource information is corrected, and the obtained resource utilization rate is more accurate.
Example two
Fig. 2 is a flowchart of a method for adjusting IP resources according to a second embodiment of the present invention, which is optimized based on the above embodiment. The concrete optimization is as follows: adjusting the IP resources of the set network segment according to the IP resource utilization rate, including: determining an IP resource adjustment amount according to the IP resource utilization rate and a set threshold value; wherein the IP resource adjustment amount comprises an IP resource increase amount and an IP resource release amount; and calling a setting network controller according to the IP resource adjustment quantity to adjust the IP resource of the setting network segment.
Step 210, obtaining the IP resource data of the network address of the set network segment under the current virtual computer; wherein the IP resource data comprises at least one of the following: current IP resource usage, historical IP resource usage, and allocated IP resource.
And 220, judging whether the IP resource changes according to the IP resource data.
Step 230, if the IP resource changes, determining the IP resource usage rate of the set network segment.
Step 240, determining an IP resource adjustment amount according to the IP resource usage rate and a set threshold; wherein the IP resource adjustment amount comprises an IP resource increase amount and an IP resource release amount.
The setting of the threshold may be performed according to actual requirements. The IP resource adjustment amount may include an IP resource increase amount and an IP resource release amount. The IP resource increment amount may be understood as an IP resource extension step determined according to an IP resource usage rate and a set threshold value, thereby increasing the number of IP resources. The IP resource release amount can be understood as an IP resource recovery step determined according to the IP resource usage rate and a set threshold value, thereby releasing the number of IP resources.
For example, when the number of the network resource information IP is insufficient in the current network environment, regular automatic expansion of the network resource information IP resources, namely increase of the IP resources, can be realized by calling related interfaces of the SDN controller based on the IP resource adjustment amount; meanwhile, under the condition that the occupied area of idle network resource information IP is relatively large in the current network environment, regular recovery of idle IP resources is realized by calling related interfaces of the SDN controller based on the adjustment quantity of the IP resources; thus, the IP resource can be ensured to be at a reasonable level in the current whole network environment.
In this embodiment, the increase amount of the IP resources and the release amount of the IP resources may be determined according to the usage rate of the IP resources and the set threshold.
Step 250, calling a setting network controller to adjust the IP resources of the setting network segment according to the IP resource adjustment quantity.
The network controller can be set according to actual requirements, can be an integral network controller or a partial network controller. By way of example, a network controller or a plurality of network controllers may be provided. In this embodiment, the setting network controller may be invoked to adjust the IP resources of the setting network segment according to the IP resource adjustment amount.
According to the technical scheme, network address IP resource data of a set network segment under a current virtual computer are obtained; wherein the IP resource data comprises at least one of the following: current IP resource usage, historical IP resource usage, and allocated IP resource; judging whether the IP resource changes according to the IP resource data; if the IP resources are changed, determining the IP resource utilization rate of the set network segment; determining an IP resource adjustment amount according to the IP resource utilization rate and a set threshold value; wherein the IP resource adjustment amount comprises an IP resource increase amount and an IP resource release amount; and calling a setting network controller according to the IP resource adjustment quantity to adjust the IP resource of the setting network segment. According to the technical scheme, the IP resources can be dynamically adjusted, and the flexibility of IP resource allocation is improved.
In the embodiment of the present invention, optionally, determining the IP resource adjustment amount according to the IP resource usage rate and the set threshold includes: determining an adjustment proportion according to the IP resource utilization rate and a set threshold value; and determining an IP resource adjustment amount according to the adjustment proportion and the allocated IP resource amount.
Wherein, the adjustment ratio can be determined according to the IP resource utilization rate and the set threshold value; the adjustment ratio can also be a preset ratio; or the difference between the IP resource usage and the set threshold.
In this embodiment, the adjustment ratio may be determined according to the IP resource usage rate and the set threshold, and the IP resource adjustment amount may be determined according to the adjustment ratio and the allocated IP resource amount. Through the arrangement, the IP resource adjustment quantity can be determined through the adjustment proportion and the allocated IP resource quantity, and the IP resources can be dynamically adjusted, so that the IP resources can be adjusted conveniently, and the resource balance and effective utilization in the SDN network environment can be realized.
In the embodiment of the present invention, optionally, determining the IP resource adjustment amount according to the IP resource usage rate and the set threshold includes: if the IP resource utilization rate is larger than the set threshold value, determining an IP resource increment according to the IP resource utilization rate and the set threshold value; and if the IP resource utilization rate is smaller than the set threshold value, determining the IP resource release amount according to the IP resource utilization rate and the set threshold value.
In this embodiment, if the IP resource usage rate is greater than the set threshold, determining an IP resource increment according to the IP resource usage rate and the set threshold; if the IP resource utilization rate is smaller than the set threshold value, determining the IP resource release amount according to the IP resource utilization rate and the set threshold value. Through the arrangement, the method and the device can compare the IP resource utilization rate with the set threshold value, thereby determining the IP resource adjustment amount, and being convenient for ensuring that the IP resource is at a reasonable level in the current whole network environment.
Example III
Fig. 3 is a schematic structural diagram of an IP resource adjustment device according to a third embodiment of the present invention, where the device may execute the IP resource adjustment method according to any embodiment of the present invention, and the device has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 3, the apparatus includes:
An obtaining module 310, configured to obtain network address IP resource data of a set network segment under a current virtual computer; wherein the IP resource data comprises at least one of the following: current IP resource usage, historical IP resource usage, and allocated IP resource;
a judging module 320, configured to judge whether the IP resource changes according to the IP resource data;
a determining module 330, configured to determine an IP resource usage rate of the set network segment if the IP resource changes;
and the adjusting module 340 is configured to adjust the IP resources of the set network segment according to the IP resource usage rate.
Optionally, the determining module 320 is specifically configured to:
And if the current IP resource usage amount is not equal to the historical IP resource usage amount, the IP resource is changed.
Optionally, the determining module 330 is specifically configured to:
And determining a ratio of the current IP resource usage amount to the allocated IP resource amount, and determining the ratio as an IP resource usage rate.
Optionally, the apparatus further includes: a correction module for:
After determining the IP resource utilization rate of the set network segment, acquiring local network resource information;
determining a correction coefficient according to the network resource information;
correcting the IP resource utilization rate based on the correction coefficient;
correspondingly, the adjusting module 340 is specifically configured to:
and adjusting the IP resources of the set network segment according to the corrected IP resource utilization rate.
Optionally, the adjusting module 340 includes:
an IP resource adjustment amount determining unit, configured to determine an IP resource adjustment amount according to the IP resource usage rate and a set threshold; wherein the IP resource adjustment amount comprises an IP resource increase amount and an IP resource release amount;
And the IP resource adjusting unit is used for calling a setting network controller to adjust the IP resource of the setting network segment according to the IP resource adjusting quantity.
Optionally, the IP resource adjustment amount determining unit is configured to:
determining an adjustment proportion according to the IP resource utilization rate and a set threshold value;
and determining an IP resource adjustment amount according to the adjustment proportion and the allocated IP resource amount.
Optionally, the IP resource adjustment amount determining unit is specifically configured to:
if the IP resource utilization rate is larger than the set threshold value, determining an IP resource increment according to the IP resource utilization rate and the set threshold value;
and if the IP resource utilization rate is smaller than the set threshold value, determining the IP resource release amount according to the IP resource utilization rate and the set threshold value.
The device can execute the method provided by all the embodiments of the invention, and has the corresponding functional modules and beneficial effects of executing the method. Technical details not described in detail in this embodiment can be found in the methods provided in all the foregoing embodiments of the invention.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, for example, the adjustment method of IP resources.
In some embodiments, the method of adjusting IP resources may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the above-described method of adjusting IP resources may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the adjustment method of the IP resources in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (7)

1. The method for adjusting the IP resources is characterized by comprising the following steps:
Acquiring network address IP resource data of a set network segment under a current virtual computer; wherein the IP resource data comprises the current IP resource usage amount, the historical IP resource usage amount and the allocated IP resource amount;
judging whether the IP resource changes according to the IP resource data;
if the IP resources change, determining the IP resource utilization rate of the set network segment;
adjusting the IP resources of the set network segment according to the IP resource utilization rate;
After determining the IP resource usage rate of the set network segment, the method further includes:
acquiring local network resource information;
determining a correction coefficient according to the network resource information;
Correcting the IP resource utilization rate based on the correction coefficient; the method for correcting the IP resource utilization rate based on the correction coefficient is as follows: multiplying the correction coefficient with the IP resource utilization rate;
correspondingly, adjusting the IP resources of the set network segment according to the IP resource utilization rate comprises the following steps:
determining an IP resource adjustment amount according to the IP resource utilization rate and a set threshold value; wherein the IP resource adjustment amount comprises an IP resource increase amount and an IP resource release amount;
Calling a setting network controller to adjust IP resources of the setting network segment according to the IP resource adjustment quantity;
determining an IP resource adjustment amount according to the IP resource usage rate and a set threshold, including:
Determining an adjustment proportion according to the IP resource utilization rate and a set threshold value; wherein the adjustment ratio is a difference between the IP resource usage rate and the set threshold;
and determining an IP resource adjustment amount according to the adjustment proportion and the allocated IP resource amount.
2. The method of claim 1, wherein determining whether the IP resource has changed based on the IP resource data comprises:
And if the current IP resource usage amount is not equal to the historical IP resource usage amount, the IP resource is changed.
3. The method of claim 2, wherein determining the IP resource usage of the set network segment comprises:
And determining a ratio of the current IP resource usage amount to the allocated IP resource amount, and determining the ratio as an IP resource usage rate.
4. The method of claim 1, wherein determining an IP resource adjustment based on the IP resource usage and a set threshold comprises:
if the IP resource utilization rate is larger than the set threshold value, determining an IP resource increment according to the IP resource utilization rate and the set threshold value;
and if the IP resource utilization rate is smaller than the set threshold value, determining the IP resource release amount according to the IP resource utilization rate and the set threshold value.
5. An IP resource adjustment apparatus, comprising:
the acquisition module is used for acquiring network address IP resource data of a set network segment under the current virtual computer; wherein the IP resource data comprises the current IP resource usage amount, the historical IP resource usage amount and the allocated IP resource amount;
The judging module is used for judging whether the IP resources change according to the IP resource data;
The determining module is used for determining the IP resource utilization rate of the set network segment if the IP resource changes;
the adjusting module is used for adjusting the IP resources of the set network segment according to the IP resource utilization rate;
The correction module is used for acquiring local network resource information after determining the IP resource utilization rate of the set network segment; determining a correction coefficient according to the network resource information; correcting the IP resource utilization rate based on the correction coefficient; the method for correcting the IP resource utilization rate based on the correction coefficient is as follows: multiplying the correction coefficient with the IP resource utilization rate;
correspondingly, the adjusting module comprises:
an IP resource adjustment amount determining unit, configured to determine an IP resource adjustment amount according to the IP resource usage rate and a set threshold; wherein the IP resource adjustment amount comprises an IP resource increase amount and an IP resource release amount;
the IP resource adjusting unit is used for calling a setting network controller to adjust the IP resource of the setting network segment according to the IP resource adjusting quantity;
The IP resource adjustment amount determining unit is used for determining an adjustment proportion according to the IP resource utilization rate and a set threshold value; wherein the adjustment ratio is a difference between the IP resource usage rate and the set threshold; and determining an IP resource adjustment amount according to the adjustment proportion and the allocated IP resource amount.
6. An electronic device, the electronic device comprising:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of adjusting IP resources of any one of claims 1-4.
7. A computer readable storage medium storing computer instructions for causing a processor to implement the method of adjusting IP resources of any one of claims 1-4 when executed.
CN202210889551.2A 2022-07-27 2022-07-27 Method, device, equipment and storage medium for adjusting IP resources Active CN115361449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210889551.2A CN115361449B (en) 2022-07-27 2022-07-27 Method, device, equipment and storage medium for adjusting IP resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210889551.2A CN115361449B (en) 2022-07-27 2022-07-27 Method, device, equipment and storage medium for adjusting IP resources

Publications (2)

Publication Number Publication Date
CN115361449A CN115361449A (en) 2022-11-18
CN115361449B true CN115361449B (en) 2024-06-07

Family

ID=84032796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210889551.2A Active CN115361449B (en) 2022-07-27 2022-07-27 Method, device, equipment and storage medium for adjusting IP resources

Country Status (1)

Country Link
CN (1) CN115361449B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7421499B1 (en) * 2002-04-10 2008-09-02 At&T Corp. Automated adjustment of IP address lease time based on usage
CN107045455A (en) * 2017-06-19 2017-08-15 华中科技大学 A kind of Docker Swarm cluster resource method for optimizing scheduling based on load estimation
CN107786681A (en) * 2016-08-31 2018-03-09 中国电信股份有限公司 Methods, devices and systems for IP address scheduling of resource
CN108768732A (en) * 2018-05-31 2018-11-06 广东电网有限责任公司韶关供电局 A kind of IP Asset Visualizations management method and system
CN114090252A (en) * 2021-11-23 2022-02-25 北京京东振世信息技术有限公司 Resource management method and device, storage medium and computer system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7421499B1 (en) * 2002-04-10 2008-09-02 At&T Corp. Automated adjustment of IP address lease time based on usage
CN107786681A (en) * 2016-08-31 2018-03-09 中国电信股份有限公司 Methods, devices and systems for IP address scheduling of resource
CN107045455A (en) * 2017-06-19 2017-08-15 华中科技大学 A kind of Docker Swarm cluster resource method for optimizing scheduling based on load estimation
CN108768732A (en) * 2018-05-31 2018-11-06 广东电网有限责任公司韶关供电局 A kind of IP Asset Visualizations management method and system
CN114090252A (en) * 2021-11-23 2022-02-25 北京京东振世信息技术有限公司 Resource management method and device, storage medium and computer system

Also Published As

Publication number Publication date
CN115361449A (en) 2022-11-18

Similar Documents

Publication Publication Date Title
CN116661960A (en) Batch task processing method, device, equipment and storage medium
CN113986497B (en) Queue scheduling method, device and system based on multi-tenant technology
CN114490048A (en) Task execution method and device, electronic equipment and computer storage medium
CN117472471A (en) Application program configuration method, device, equipment and storage medium
CN115361449B (en) Method, device, equipment and storage medium for adjusting IP resources
CN116048791B (en) Regulation and control method and device of test node, electronic equipment and storage medium
CN114143196B (en) Instance configuration updating method, device, equipment, storage medium and program product
CN115952054A (en) Simulation task resource management method, device, equipment and medium
CN113486229B (en) Control method and device for grabbing pressure, electronic equipment and readable storage medium
CN115577958A (en) Risk processing method, device, equipment and storage medium
CN112965836B (en) Service control method, device, electronic equipment and readable storage medium
CN115242626B (en) Cloud resource allocation prediction method, device, equipment, storage medium and program product
CN115442432B (en) Control method, device, equipment and storage medium
CN117707793B (en) Computing task processing method, device, equipment and medium
CN114598705B (en) Message load balancing method, device, equipment and medium
CN113992760B (en) Method, device, equipment and storage medium for scheduling back source traffic
CN114546852B (en) Performance test method and device, electronic equipment and storage medium
CN113313195B (en) Labeling task processing method, labeling task processing device, labeling task processing equipment, labeling task processing storage medium and labeling task processing program product
CN117082083B (en) Data storage method, device and medium based on distributed Internet of things architecture
CN116614379B (en) Bandwidth adjustment method and device for migration service and related equipment
CN114217872B (en) Application program starting method and device, electronic equipment and storage medium
CN116089034A (en) Task scheduling method and device, electronic equipment and storage medium
CN114637584A (en) Method, device, equipment and medium for adjusting parallelism of data processing task
CN116361008A (en) Task balanced distribution method, device, equipment and medium based on electric power Internet of things
CN116801001A (en) Video stream processing method and device, electronic equipment and 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