CN115361449A - 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
CN115361449A
CN115361449A CN202210889551.2A CN202210889551A CN115361449A CN 115361449 A CN115361449 A CN 115361449A CN 202210889551 A CN202210889551 A CN 202210889551A CN 115361449 A CN115361449 A CN 115361449A
Authority
CN
China
Prior art keywords
resource
resources
amount
determining
utilization rate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210889551.2A
Other languages
Chinese (zh)
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/CN115361449A/en
Publication of CN115361449A publication Critical patent/CN115361449A/en
Pending legal-status Critical Current

Links

Images

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 current IP resource usage amount, the historical IP resource usage amount and the allocated IP resource amount; judging whether the IP resources change or not according to the IP resource data; if the IP resources are changed, determining the utilization rate of the IP resources 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
A Software Defined Network (SDN) is a novel Network architecture, and a design concept thereof is to separate a control plane of a Network from a data forwarding plane, so that a Software platform of an integrated controller is used to implement management of hardware on a programmable control bottom layer, thereby implementing flexible Network resource allocation as required. In the SDN network, the network device is only responsible for pure data forwarding, and may adopt general hardware; the original operating system responsible for control is abstracted into an independent network operating system which is responsible for adapting different service characteristics, and the communication among the network operating system, the service characteristics and the hardware equipment 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
Embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for adjusting an IP resource, which can dynamically adjust the IP resource and improve 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 current IP resource usage amount, the historical IP resource usage amount and the allocated IP resource amount;
judging whether the IP resources change or not according to the IP resource data;
if the IP resources are changed, determining the utilization rate of the IP resources of the set network segment;
and adjusting the IP resources of the set network segment according to the IP resource utilization rate.
Optionally, the 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 changes.
Optionally, determining the IP resource usage rate of the set network segment includes:
and determining the ratio of the current IP resource usage amount to the allocated IP resource amount, and determining the ratio as the 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 includes:
and adjusting the IP resources of the set network segment according to the corrected IP resource utilization rate.
Optionally, adjusting the IP resource of the set network segment according to the IP resource usage rate includes:
determining IP resource adjustment quantity according to the IP resource utilization rate and a set threshold; the IP resource adjustment amount comprises an IP resource increase amount and an IP resource release amount;
and calling a set network controller to adjust the IP resources of the set network segment according to the IP resource adjustment amount.
Optionally, determining the IP resource adjustment amount according to the IP resource usage rate and a set threshold includes:
determining an adjustment proportion according to the IP resource utilization rate and a set threshold;
and determining the 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 a set threshold includes:
if the IP resource utilization rate is greater than the set threshold, determining the IP resource increment according to the IP resource utilization rate and the set threshold;
and if the IP resource utilization rate is smaller than the set threshold, determining the IP resource release amount according to the IP resource utilization rate and the set threshold.
In a second aspect, an embodiment of the present invention further provides an apparatus for adjusting an IP resource, 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 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 or not 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 resources change;
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, where the electronic device includes:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the method for adjusting IP resources according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to, when executed, cause a processor to implement the method for adjusting an IP resource according to any embodiment of the present invention.
The invention obtains 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 current IP resource usage amount, the historical IP resource usage amount and the allocated IP resource amount; judging whether the IP resources change or not according to the IP resource data; if the IP resources are changed, determining the utilization rate of the IP resources 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 an adjustment method for IP resources according to an embodiment of the present invention;
fig. 2 is a flowchart of an IP resource adjustment method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for adjusting IP resources 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 present invention will be described in further detail 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 to be construed as limiting the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an IP resource adjustment method according to an embodiment of the present invention, where this embodiment is applicable to a case of adjusting an IP resource, and the method may be executed by an IP resource adjustment apparatus, and specifically includes the following steps:
step 110, 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: current IP resource usage, historical IP resource usage, and allocated IP resource amount.
Embodiments of the present invention may be based on network devices in an SDN environment; the technical solution of this embodiment may be executed by a resource adjustment system, and the resource adjustment system may include main components such as a data acquisition component and a scheduling engine. In particular, the data collection component may be used to synchronize the amount of IP usage data in the current network environment in real-time. The scheduling engine may be used to strategically maintain and manage IP resource usage 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 can be a network segment under a designated 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 amount. The current usage amount of the IP resource may be the current usage amount of the IP resource at the current time of the network address of the set network segment in the current virtual computer. The historical usage amount of the IP resource can be the usage amount of the resource at the last moment of setting the network address IP resource of the network segment under the current virtual computer. The allocated IP resource amount may be an IP resource amount already 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 adjusting 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 step 120, judging whether the IP resources are changed or not according to the IP resource data.
In the embodiment of the invention, when the data is acquired by the data acquisition component, the interface is called to acquire the IP resource data in the set network segment of the virtual computer from the SDN controller to judge whether the IP resource changes.
In this 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.
In the embodiment of the invention, when the current IP resource usage amount is judged to be not equal to the historical IP resource usage amount, the change of the IP resource can be indicated. According to the scheme, whether the IP resources are changed or not can be judged according to the IP resource usage and the historical IP resource usage, and the method is more convenient and faster.
Step 130, if the IP resource changes, determining the usage rate of the IP resource of the set network segment.
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 utilization rate of the IP resources of the set network segment is determined.
In this embodiment of the present invention, optionally, determining the IP resource usage rate of the set network segment includes: and determining the ratio of the current IP resource usage amount to the allocated IP resource amount, and determining the ratio as the IP resource usage rate.
Wherein, the ratio may be a ratio of the current IP resource usage amount and the allocated IP resource amount. The IP resource usage rate may be determined according to a ratio of the current IP resource usage amount and the allocated IP resource amount. In the embodiment of the invention, the ratio of the current IP resource usage amount to the allocated IP resource amount is determined as the IP resource usage rate. According to the scheme, the ratio of the current IP resource usage amount to the allocated IP resource amount is determined as the IP resource usage rate, and the stability of data is guaranteed.
And step 140, adjusting the IP resources of the set network segment according to the IP resource utilization rate.
The scheduling engine of the resource adjusting system in the embodiment of the invention can adjust and set the IP resources of the network segment according to the IP resource utilization rate.
According to the technical scheme of the embodiment, the network address IP resource data of the set network segment under the current virtual computer is obtained; wherein the IP resource data comprises at least one of: the current IP resource usage amount, the historical IP resource usage amount and the allocated IP resource amount; judging whether the IP resources change or not according to the IP resource data; if the IP resources are changed, determining the utilization rate of the IP resources 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, the adjusting the IP resources of the set network segment according to the IP resource utilization includes: 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 information such as a firewall, F5, and load balancing. 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 actual requirements. The corrected IP resource usage may be an IP resource usage obtained by correcting the IP resource usage based on the correction coefficient.
In this embodiment, the resource adjustment system may obtain local network resource information, determine a corresponding correction coefficient according to the network resource information, and correct the usage rate of the IP resource based on the correction coefficient; and adjusting the IP resources of the set network segment according to the corrected IP resource utilization rate.
The method for correcting the IP resource utilization based on the correction coefficient may be: and multiplying the correction coefficient by the IP resource utilization rate.
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 an IP resource adjustment method according to a second embodiment of the present invention, which is optimized based on the second embodiment. The specific optimization is as follows: adjusting the IP resources of the set network segment according to the IP resource utilization rate, wherein the adjusting comprises the following steps: determining IP resource adjustment quantity according to the IP resource utilization rate and a set threshold; the IP resource adjustment amount comprises an IP resource increase amount and an IP resource release amount; and calling a set network controller to adjust the IP resources of the set network segment according to the IP resource adjustment amount.
Step 210, 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: current IP resource usage, historical IP resource usage, and allocated IP resource amount.
And step 220, judging whether the IP resources are changed or not according to the IP resource data.
And step 230, if the IP resource changes, determining the usage rate of the IP resource in the set network segment.
Step 240, determining an IP resource adjustment amount according to the IP resource utilization rate and a set threshold; and the IP resource adjustment amount comprises an IP resource increasing amount and an IP resource releasing amount.
Wherein, the set threshold value can be set 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 increase amount may be understood as an IP resource expansion step length determined according to the IP resource usage rate and a set threshold, thereby increasing the number of IP resources. The IP resource release amount can be understood as IP resource recovery step length determined according to the IP resource utilization rate and a set threshold value, so that the quantity of the IP resources is released.
Illustratively, when the number of IP network resource information in the current network environment is insufficient, regular automatic extension of IP network resource information can be realized by calling a relevant interface of an SDN controller based on the amount of adjustment of IP resources, that is, IP resources are increased; meanwhile, under the current network environment and under the condition that the idle network resource information IP is large in proportion, based on the IP resource adjustment amount, regular recovery of idle IP resources is achieved by calling a related interface of the SDN controller; therefore, the IP resources can be ensured to be at a reasonable level under the current overall network environment.
In this embodiment, the IP resource increase amount and the IP resource release amount may be determined according to the IP resource usage rate and the set threshold.
And step 250, calling a set network controller to adjust the IP resources of the set network segment according to the IP resource adjustment amount.
The setting network controller may be set according to actual requirements, may be an entire network controller, or may be a partial network controller. For example, a certain network controller or a plurality of network controllers may be set. In this embodiment, the network controller may be invoked to adjust the IP resources of the set network segment according to the IP resource adjustment amount.
According to the technical scheme of the embodiment, the network address IP resource data of the set network segment under the current virtual computer is obtained; wherein the IP resource data comprises at least one of: the current IP resource usage amount, the historical IP resource usage amount and the allocated IP resource amount; judging whether the IP resources change or not according to the IP resource data; if the IP resources are changed, determining the utilization rate of the IP resources of the set network segment; determining IP resource adjustment quantity according to the IP resource utilization rate and a set threshold; the IP resource adjustment amount comprises an IP resource increase amount and an IP resource release amount; and calling a set network controller to adjust the IP resources of the set network segment according to the IP resource adjustment amount. 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, determining the IP resource adjustment amount according to the IP resource usage rate and a set threshold includes: determining an adjustment proportion according to the IP resource utilization rate and a set threshold; and determining the IP resource adjustment amount according to the adjustment proportion and the allocated IP resource amount.
The adjustment proportion can be determined according to the IP resource utilization rate and a set threshold value; the adjustment proportion can also be a preset proportion; or the difference between the IP resource usage and a set threshold.
In this embodiment, the adjustment ratio may be determined according to the usage rate of the IP resource and the set threshold, and the IP resource adjustment amount may be determined according to the adjustment ratio and the allocated IP resource amount. By means of the arrangement, the IP resource adjustment amount can be determined by adjusting the proportion and the allocated IP resource amount, and the IP resources can be dynamically adjusted, so that the IP resources can be conveniently adjusted, and the resource balance and the effective utilization in the SDN network environment can be realized.
In this embodiment of the present invention, optionally, determining the IP resource adjustment amount according to the IP resource usage rate and a set threshold includes: if the IP resource utilization rate is greater than the set threshold, determining the IP resource increment according to the IP resource utilization rate and the set threshold; and if the IP resource utilization rate is smaller than the set threshold, determining the IP resource release amount according to the IP resource utilization rate and the set threshold.
In this embodiment, if the usage rate of the IP resource is greater than the set threshold, determining an increase amount of the IP resource according to the usage rate of the IP resource and the set threshold; and if the IP resource utilization rate is smaller than the set threshold, determining the IP resource release amount according to the IP resource utilization rate and the set threshold. According to the scheme, the IP resource adjustment amount can be determined by comparing the IP resource utilization rate with the set threshold value, so that the IP resource is ensured to be at a reasonable level under the current whole network environment.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an apparatus for adjusting an IP resource according to a third embodiment of the present invention, where the apparatus can execute a method for adjusting an IP resource according to any embodiment of the present invention, and has corresponding functional modules and beneficial effects of 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 current IP resource usage amount, the historical IP resource usage amount and the allocated IP resource amount;
a determining module 320, configured to determine whether the IP resource changes according to the IP resource data;
a determining module 330, configured to determine, if the IP resource changes, a usage rate of the IP resource of the set network segment;
and an adjusting module 340, configured to adjust the IP resource of the set network segment according to the IP resource utilization 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 the ratio of the current IP resource usage amount to the allocated IP resource amount, and determining the ratio as the IP resource usage rate.
Optionally, the apparatus further comprises: a correction module to:
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 quantity determining unit, configured to determine an IP resource adjustment quantity according to the IP resource usage rate and a set threshold; the IP resource adjustment amount comprises an IP resource increasing amount and an IP resource releasing amount;
and the IP resource adjusting unit is used for calling a set network controller to adjust the IP resources of the set network segment according to the IP resource adjusting amount.
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;
and determining the 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 greater than the set threshold, determining the IP resource increment according to the IP resource utilization rate and the set threshold;
and if the IP resource utilization rate is smaller than the set threshold, determining the IP resource release amount according to the IP resource utilization rate and the set threshold.
The device can execute the methods provided by all the embodiments of the invention, and has corresponding functional modules and beneficial effects for executing the methods. For details not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present invention.
Example four
FIG. 4 shows a schematic block diagram 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. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, 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 communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable 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 necessary for the operation of the electronic apparatus 10 can 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.
A number of 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, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, 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, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the respective methods and processes described above, such as the adjustment method of the IP resource.
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 the RAM 13 and executed by the 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 by any other suitable means (e.g. by means of firmware) to perform the method of adjusting the IP resources.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a 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 that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Computer programs for implementing the methods of the present invention can 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 performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a 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. A 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 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) by which a user may 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 can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, 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. A client and server are generally 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 host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and 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 for adjusting 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 at least one of: the current IP resource usage amount, the historical IP resource usage amount and the allocated IP resource amount;
judging whether the IP resources change or not according to the IP resource data;
if the IP resources are changed, determining the utilization rate of the IP resources of the set network segment;
and adjusting the IP resources of the set network segment according to the IP resource utilization rate.
2. The method according to claim 1, wherein determining whether the IP resource is changed according to 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 changes.
3. The method of claim 2, wherein determining the IP resource usage for the set network segment comprises:
and determining the ratio of the current IP resource usage amount to the allocated IP resource amount, and determining the ratio as the IP resource usage rate.
4. The method of claim 1, after determining the IP resource usage of the set network segment, further comprising:
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 includes:
and adjusting the IP resources of the set network segment according to the corrected IP resource utilization rate.
5. The method according to claim 1 or 4, wherein adjusting the IP resources of the set network segment according to the IP resource usage rate comprises:
determining IP resource adjustment quantity according to the IP resource utilization rate and a set threshold; the IP resource adjustment amount comprises an IP resource increase amount and an IP resource release amount;
and calling a set network controller to adjust the IP resources of the set network segment according to the IP resource adjustment amount.
6. The method of claim 5, wherein determining an amount of IP resource adjustment based on the IP resource usage and a set threshold comprises:
determining an adjustment proportion according to the IP resource utilization rate and a set threshold;
and determining the IP resource adjustment amount according to the adjustment proportion and the allocated IP resource amount.
7. The method of claim 5, wherein determining an amount of IP resource adjustment based on the IP resource usage and a set threshold comprises:
if the IP resource utilization rate is greater than the set threshold, determining the IP resource increment according to the IP resource utilization rate and the set threshold;
and if the IP resource utilization rate is smaller than the set threshold, determining the IP resource release amount according to the IP resource utilization rate and the set threshold.
8. An apparatus for adjusting an IP resource, 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 at least one of: 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 or not 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.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the method of adjusting IP resources of any of claims 1-7.
10. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions for causing a processor to implement the method for adjusting IP resources according to any one of claims 1-7 when executed.
CN202210889551.2A 2022-07-27 2022-07-27 Method, device, equipment and storage medium for adjusting IP resources Pending CN115361449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210889551.2A CN115361449A (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 CN115361449A (en) 2022-07-27 2022-07-27 Method, device, equipment and storage medium for adjusting IP resources

Publications (1)

Publication Number Publication Date
CN115361449A true CN115361449A (en) 2022-11-18

Family

ID=84032796

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN115361449A (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

Similar Documents

Publication Publication Date Title
JP2021121959A (en) Scheduling method for deep layer learning inference engine, device, equipment and medium
CN114500339B (en) Node bandwidth monitoring method and device, electronic equipment and storage medium
CN114911598A (en) Task scheduling method, device, equipment and storage medium
CN114490048A (en) Task execution method and device, electronic equipment and computer storage medium
CN112615795A (en) Flow control method and device, electronic equipment, storage medium and product
CN115952054A (en) Simulation task resource management method, device, equipment and medium
CN113986497B (en) Queue scheduling method, device and system based on multi-tenant technology
CN116248689A (en) Capacity expansion method, device, equipment and medium for cloud native application
CN115361449A (en) Method, device, equipment and storage medium for adjusting IP resources
CN113486229B (en) Control method and device for grabbing pressure, electronic equipment and readable storage medium
CN115438007A (en) File merging method and device, electronic equipment and medium
CN115269145A (en) High-energy-efficiency heterogeneous multi-core scheduling method and device for offshore unmanned equipment
CN114090247A (en) Method, device, equipment and storage medium for processing data
CN113434218A (en) Micro-service configuration method, device, electronic equipment and medium
CN112965836A (en) Service control method and device, electronic equipment and readable storage medium
CN114598705B (en) Message load balancing method, device, equipment and medium
CN115242626B (en) Cloud resource allocation prediction method, device, equipment, storage medium and program product
CN117707793B (en) Computing task processing method, device, equipment and medium
CN116048791B (en) Regulation and control method and device of test node, electronic equipment and storage medium
CN116893893B (en) Virtual machine scheduling method and device, electronic equipment and storage medium
EP4231155A1 (en) Performance testing method and apparatus, electronic device, 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
CN114637584A (en) Method, device, equipment and medium for adjusting parallelism of data processing task
CN117472471A (en) Application program configuration method, device, equipment and storage medium
CN115567141A (en) Multi-clock-source time service method, device, equipment and 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