Bandwidth adjustment method, device, and storage medium

By automatically adjusting the public network bandwidth of cloud services and responding to changes in business volume in real time according to user configuration conditions and policies, it solves the problems of low bandwidth adjustment efficiency and poor immediacy in the existing technology, and reduces resource waste and costs.

CN114500288BActive Publication Date: 2024-09-20JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210067238.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-20
Publication Date
2024-09-20
Estimated Expiration
2042-01-20

AI Technical Summary

Technical Problem

In existing cloud service technology, users need to frequently manually adjust the bandwidth limit to cope with changes in business volume, resulting in low efficiency and poor immediacy, which may lead to data loss and waste of resources when the business volume is small.

Method used

By obtaining user configuration parameters and current instantaneous bandwidth, the public network bandwidth usage is determined, and the bandwidth upper limit is automatically adjusted according to the configured bandwidth adjustment trigger conditions and policies, including bandwidth upward and downward adjustments, to improve the efficiency and immediacy of bandwidth adjustment.

Benefits of technology

It improves the efficiency and immediacy of bandwidth adjustment, avoids data loss due to bandwidth limitations, reduces resource waste and user costs, and saves human resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114500288B
    Figure CN114500288B
Patent Text Reader

Abstract

The present disclosure provides a bandwidth adjustment method, device, and storage medium, and relates to the field of cloud computing technology. The method includes: obtaining user configuration parameters and the current instantaneous bandwidth, the user configuration parameters including: bandwidth adjustment trigger conditions and bandwidth adjustment strategies; determining the current public network bandwidth usage rate according to the current instantaneous bandwidth and the original bandwidth upper limit; determining whether the bandwidth adjustment trigger conditions are currently met according to the current public network bandwidth usage rate; and adjusting the bandwidth accordingly according to the bandwidth adjustment strategy when it is determined that the bandwidth adjustment trigger conditions are met. The present disclosure can solve the problems of low bandwidth adjustment efficiency and poor immediacy in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of cloud computing, and in particular to a bandwidth adjustment method, a bandwidth adjustment device, a computer-readable storage medium, and an electronic device. Background Art

[0002] Cloud computing is a computing service. Cloud vendors generate virtualized cloud computing resources through services, including servers, storage, networks, databases, applications, etc. With the rapid development of cloud services, more and more users are choosing cloud services. For cloud services, users only need to pay for the corresponding resources to use the corresponding resources, which can achieve fast delivery while avoiding expensive hardware configuration.

[0003] In the case of sudden changes in user-side business volume, in existing cloud service technologies, users need to set up monitoring items in advance to perform dynamic monitoring of public network IP, and then manually adjust the bandwidth upper limit according to the existing traffic conditions, and then continue monitoring. If the traffic continues to increase sharply, frequent manual intervention is required.

[0004] The existing manual adjustment of bandwidth caps based on monitoring results is inefficient and immediacy-poor, and may even result in business losses such as data loss. In addition, it will waste resources during periods of low business volume.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The purpose of the embodiments of the present disclosure is to provide a bandwidth adjustment method, a bandwidth adjustment device, a computer-readable storage medium and an electronic device, thereby solving the problems of low bandwidth adjustment efficiency and poor immediacy in the prior art to a certain extent.

[0007] According to a first aspect of the present disclosure, a bandwidth adjustment method is provided, comprising:

[0008] Acquire user configuration parameters and current instantaneous bandwidth, wherein the user configuration parameters include: bandwidth adjustment triggering conditions and bandwidth adjustment strategies;

[0009] Determine the current public network bandwidth usage rate according to the current instantaneous bandwidth and the original bandwidth upper limit;

[0010] Determining whether the bandwidth adjustment triggering condition is currently met according to the current public network bandwidth usage rate;

[0011] When it is determined that the bandwidth adjustment triggering condition is met, the bandwidth is adjusted accordingly according to the bandwidth adjustment policy.

[0012] In an exemplary embodiment of the present disclosure, based on the above-mentioned solution, the bandwidth adjustment triggering condition includes a bandwidth increase triggering condition and / or a bandwidth decrease triggering condition.

[0013] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the bandwidth increase trigger condition includes an upper limit of the public network bandwidth usage rate and a first duration limit; the bandwidth decrease trigger condition includes a lower limit of the public network bandwidth usage rate and a second duration limit.

[0014] In an exemplary embodiment of the present disclosure, based on the above-mentioned solution, the bandwidth adjustment strategy includes a bandwidth adjustment mode and a bandwidth adjustment base.

[0015] In an exemplary embodiment of the present disclosure, based on the above solution, obtaining user configuration parameters includes:

[0016] Receive configuration parameters entered by the user on the cloud service web service page or cloud client.

[0017] In an exemplary embodiment of the present disclosure, based on the above solution, before obtaining the user configuration parameters, the method further includes:

[0018] Interaction with the user is performed by configuring the input enablement end of the configuration parameters and the corresponding configuration window on the web service page of the cloud service or the cloud client.

[0019] In an exemplary embodiment of the present disclosure, based on the above solution, obtaining the current instantaneous bandwidth includes:

[0020] Receive the user instantaneous bandwidth obtained in real time by the cloud monitoring server.

[0021] In an exemplary embodiment of the present disclosure, based on the above solution, determining the current public network bandwidth usage rate according to the current instantaneous bandwidth and the original bandwidth upper limit includes:

[0022] Get the original bandwidth limit;

[0023] Calculate the ratio between the current instantaneous bandwidth and the original bandwidth upper limit;

[0024] According to the proportional relationship, the current public network bandwidth usage rate is determined.

[0025] In an exemplary embodiment of the present disclosure, based on the above-mentioned solution, determining whether the bandwidth adjustment triggering condition is currently met according to the current public network bandwidth usage rate includes:

[0026] Determine whether the current public network bandwidth usage rate exceeds the public network bandwidth usage rate upper limit;

[0027] Determine whether the duration of exceeding the upper limit of the public network bandwidth usage rate exceeds the first duration limit;

[0028] If the above conditions are met at the same time, it is determined that the bandwidth adjustment triggering condition is met.

[0029] In an exemplary embodiment of the present disclosure, based on the above-mentioned solution, determining whether the bandwidth adjustment triggering condition is currently met according to the current public network bandwidth usage rate includes:

[0030] Determine whether the current public network bandwidth usage rate is lower than the public network bandwidth usage rate lower limit;

[0031] Determine whether the duration below the lower limit of the public network bandwidth usage rate exceeds the second duration limit;

[0032] If the above conditions are met at the same time, it is determined that the bandwidth adjustment triggering condition is met.

[0033] In an exemplary embodiment of the present disclosure, based on the above solution, the step of adjusting the bandwidth accordingly according to the bandwidth adjustment strategy includes:

[0034] Determining a bandwidth adjustment method, wherein the bandwidth adjustment method includes increasing and decreasing;

[0035] According to the bandwidth adjustment base and the bandwidth adjustment mode, the original bandwidth upper limit is increased or reduced to obtain an adjusted bandwidth.

[0036] According to a second aspect of the present disclosure, a bandwidth adjustment device is provided, including:

[0037] An acquisition module is used to acquire user configuration parameters and current instantaneous bandwidth, wherein the user configuration parameters include: bandwidth adjustment triggering conditions and bandwidth adjustment strategies;

[0038] A first determination module, configured to determine a current public network bandwidth usage rate according to the current instantaneous bandwidth and an upper limit of the original bandwidth;

[0039] A second determination module is used to determine whether the bandwidth adjustment trigger condition is currently met according to the current public network bandwidth usage rate;

[0040] The adjustment module is used to adjust the bandwidth accordingly according to the bandwidth adjustment strategy when the second determination module determines that the bandwidth adjustment triggering condition is met.

[0041] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the bandwidth adjustment method described in any one of the above is implemented.

[0042] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the bandwidth adjustment methods described above by executing the executable instructions.

[0043] The exemplary embodiments of the present disclosure may have some or all of the following beneficial effects:

[0044] In the bandwidth adjustment method provided in the public example implementation, the user can configure parameters according to business needs, that is, input bandwidth adjustment trigger conditions and bandwidth adjustment strategies, and the monitoring system obtains the current instantaneous bandwidth; the cloud server determines the current public network bandwidth usage rate based on the received current instantaneous bandwidth and the original bandwidth upper limit; then determines whether the received bandwidth adjustment trigger conditions are currently met based on the current public network bandwidth usage rate; when it is determined that the bandwidth adjustment trigger conditions are met, the bandwidth is adjusted accordingly according to the received bandwidth adjustment strategy. On the one hand, when the business suddenly increases, the efficiency and immediacy of bandwidth adjustment can be improved, and business losses such as loss of data due to bandwidth limitations can be avoided. On the other hand, when the business is less, the bandwidth can be reduced to avoid waste of resources and reduce user costs. In addition, human resources are saved and costs are further reduced.

[0045] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0047] Figure 1 A schematic diagram showing an exemplary system architecture of a bandwidth adjustment method and device to which the present disclosure embodiments can be applied;

[0048] Figure 2 A flowchart of a bandwidth adjustment method according to an embodiment of the present disclosure is schematically shown;

[0049] Figure 3 A flowchart for determining the current public network bandwidth usage rate according to an embodiment of the present disclosure is schematically shown;

[0050] Figure 4 A flowchart of adjusting bandwidth according to a bandwidth adjustment strategy according to an embodiment of the present disclosure is schematically shown;

[0051] Figure 5 A flowchart of a bandwidth adjustment method implementation process according to an embodiment of the present disclosure is schematically shown;

[0052] Figure 6 The structure block diagram of a bandwidth adjustment device according to an embodiment of the present disclosure is schematically shown;

[0053] Figure 7 A block diagram of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0054] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0055] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0056] Figure 1 FIG. 1 is a schematic diagram showing a system architecture 100 of an exemplary application environment in which a bandwidth adjustment method and device according to an embodiment of the present disclosure can be applied. Figure 1As shown, the system architecture 100 may include one or more of cloud front-end interactive devices 101, 102, 103, a cloud back-end server 104, and a cloud monitoring server 105. The cloud front-end interactive devices 101, 102, 103 are used for the cloud back-end server to interact with users. The cloud monitoring server 105 is used to formulate monitoring plans for instances, system disks, and public network bandwidth. The cloud monitoring server 105 communicates with the cloud back-end server 104 via a communication link, so that the cloud monitoring server transmits the monitored instantaneous public network bandwidth to the cloud back-end server 104 via the communication link. The communication link may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc. The cloud front-end interactive devices 101, 102, 103 may be various electronic devices with display screens, including but not limited to desktop computers, portable computers, smart phones, and tablet computers, etc. It should be understood that Figure 1 The number of cloud front-end interactive devices 101, 102, 103, cloud back-end servers 104, and cloud monitoring servers 105 is only illustrative. According to the implementation requirements, there can be any number of cloud front-end interactive devices 101, 102, 103, cloud back-end servers 104, and cloud monitoring servers 105. For example, the cloud back-end server 104 can be a server cluster composed of multiple servers.

[0057] The bandwidth adjustment method provided in the embodiment of the present disclosure may be executed in the cloud backend server 104 , and accordingly, the bandwidth adjustment device is generally disposed in the cloud backend server 104 .

[0058] At present, the public IP resources in the virtual network resources provided by cloud vendors are elastic public IPs, that is, public IP addresses that can be applied for independently, which support dynamic binding and unbinding operations with cloud hosts, containers, load balancing, NFV instances and other resources. The main function of elastic public IP is to shield instance failures; when an instance fails, the elastic public IP is manually configured to drift to a redundant instance, thereby achieving the purpose of rapid response to the failure. At present, the settings for public network bandwidth are in the form of annual and monthly packages, by configuration or by usage, and these forms correspond to a fixed bandwidth limit. However, the demand for public network bandwidth by user services changes dynamically, and there may be a sharp increase in business volume. At this time, the fixed bandwidth limit obviously cannot meet the needs of users. In response to this problem, the present invention designs a bandwidth adjustment method.

[0059] The technical solution of the embodiment of the present disclosure is described in detail below:

[0060] refer to Figure 2 As shown, a bandwidth adjustment method according to an exemplary embodiment of the present disclosure may include the following steps:

[0061] Step S210, obtaining user configuration parameters and current instantaneous bandwidth, wherein the user configuration parameters include: bandwidth adjustment triggering conditions and bandwidth adjustment strategies;

[0062] Step S220, determining the current public network bandwidth usage rate according to the current instantaneous bandwidth and the original bandwidth upper limit;

[0063] Step S230, determining whether the bandwidth adjustment triggering condition is currently met according to the current public network bandwidth usage rate;

[0064] Step S240: When it is determined that the bandwidth adjustment triggering condition is met, the bandwidth is adjusted accordingly according to the bandwidth adjustment policy.

[0065] In the bandwidth adjustment method provided in this example implementation, the user can configure parameters according to business needs, that is, input bandwidth adjustment trigger conditions and bandwidth adjustment strategies, and the monitoring system obtains the current instantaneous bandwidth; the cloud server determines the current public network bandwidth usage rate based on the received current instantaneous bandwidth and the original bandwidth upper limit; then determines whether the received bandwidth adjustment trigger conditions are currently met based on the current public network bandwidth usage rate; when it is determined that the bandwidth adjustment trigger conditions are met, the bandwidth is adjusted accordingly according to the received bandwidth adjustment strategy. On the one hand, when the business increases sharply, the efficiency and immediacy of bandwidth adjustment can be improved, and business losses such as data loss due to bandwidth restrictions can be avoided. On the other hand, when the business is less, the bandwidth can be reduced to avoid resource waste and reduce user costs. In addition, human resources are saved and costs are further reduced.

[0066] Next, in another embodiment, the above steps are described in more detail.

[0067] In step S210, the user configuration parameters and the current instantaneous bandwidth are obtained. In this example implementation, the user configuration parameters may include: bandwidth adjustment trigger conditions and bandwidth adjustment strategies; the bandwidth adjustment trigger conditions may be used to determine under what circumstances bandwidth adjustment is performed. It may include a bandwidth increase trigger condition, i.e., a trigger condition for increasing the bandwidth upper limit value, which is targeted at the situation where the user's traffic volume continues to increase. It may also include a bandwidth decrease trigger condition, i.e., a trigger condition for reducing the bandwidth upper limit value, which is targeted at the situation where the user's traffic volume is small, i.e., the traffic idle period.

[0068] Further, in this example implementation, the bandwidth increase triggering condition may include an upper limit of the public network bandwidth usage rate, wherein the public network bandwidth usage rate may be defined as the percentage of the instantaneous bandwidth to the original bandwidth upper limit. The upper limit of the public network bandwidth usage rate may be set to a threshold, or the upper limit of the public network bandwidth usage rate may be set to several thresholds, each of which may be used as one of the bandwidth increase triggering conditions. For example, the upper limit of the public network bandwidth usage rate is set to 70%, 80%, and 90%. At this time, each threshold needs to correspond to its own duration requirement to trigger the bandwidth increase mechanism. The bandwidth increase triggering condition may also include a first duration limit, and the first duration limit may be set to a threshold, or the first duration limit may be set to several thresholds, each threshold corresponding to an upper limit of the public network bandwidth usage rate, and the two indicators serve as a set of bandwidth increase triggering conditions. For example, the upper limit of the public network bandwidth usage rate is set to 70%, and the first duration limit is set to 7200s; the upper limit of the public network bandwidth usage rate is set to 80%, and the first duration limit is set to 3600s.

[0069] In this example implementation, the bandwidth reduction triggering condition may include a lower limit of the public network bandwidth usage rate, wherein the public network bandwidth usage rate may be defined as the percentage of the instantaneous bandwidth to the original bandwidth upper limit. The upper limit of the public network bandwidth usage rate may be set to a threshold, or the upper limit of the public network bandwidth usage rate may be set to several thresholds, each of which may be used as one of the bandwidth reduction triggering conditions. For example, the upper limit of the public network bandwidth usage rate is set to 20%, 30%, and 35%. At this time, each threshold needs to correspond to its own duration requirement to trigger the bandwidth reduction mechanism. The bandwidth reduction triggering condition may also include a second duration limit, and the second duration limit may be set to a threshold, or the second duration limit may be set to several thresholds, each threshold corresponding to an upper limit of the public network bandwidth usage rate, and the two indicators serve as a set of bandwidth reduction triggering conditions. For example, the lower limit of the public network bandwidth usage rate is set to 20%, and the second duration limit is set to 3600s.

[0070] In this example implementation, the bandwidth adjustment strategy may include a bandwidth adjustment method and a bandwidth adjustment base. The bandwidth adjustment method may be an increase or decrease, that is, an increase or decrease. The bandwidth adjustment method may also be a step-up or step-down adjustment, for example, the bandwidth is adjusted to the target bandwidth in two or three times, wherein the bandwidth adjustment amounts of two adjacent times may be the same or different. For example, the current bandwidth upper limit is 100Mbps, the target bandwidth is 130Mbps, and the bandwidth is adjusted in three times. When the bandwidth adjustment amounts of two adjacent times are the same, each adjustment amount is 10Mbps; when the bandwidth adjustment amounts of two adjacent times are different, the first adjustment may be 5Mbps, the second adjustment may be 10Mbps, and the third adjustment may be 15Mbps. In addition, the bandwidth adjustment may also be performed according to a set time, that is, the current bandwidth upper limit is adjusted to the target bandwidth within a specified time. This example implementation does not specifically limit the specific bandwidth adjustment method.

[0071] In this example implementation, the bandwidth adjustment base can be flexibly set according to the business volume. For example, the bandwidth adjustment base can be set as a percentage of the bandwidth adjustment base. Preferably, the bandwidth adjustment base percentage can be set to 10%-30%. When the bandwidth adjustment base percentage is set to 20% and the original bandwidth upper limit is 100Mbps, the adjusted bandwidth upper limit is 120Mbps. The bandwidth adjustment base can also be set to a fixed value or a numerical range. When the bandwidth adjustment base is a numerical range, a numerical value can be randomly selected within the numerical range as the bandwidth adjustment value, or the upper and lower limits of the numerical range can be related to obtain the bandwidth adjustment value. For example, the average of the upper and lower limits can be taken as the bandwidth adjustment value. This example implementation does not make any special restrictions on this.

[0072] In this example implementation, obtaining user configuration parameters may be that the cloud backend server receives the configuration parameters input by the user on the web service page of the cloud service or the cloud client. Obtaining the current instantaneous bandwidth may be that the cloud backend server receives the instantaneous bandwidth of the user obtained in real time by the cloud monitoring server. Cloud monitoring is a service related to cloud services. Through cloud monitoring (CloudMonitor), monitoring plans for instances, system disks, and public network bandwidth are formulated, which can obtain the user's public network bandwidth information in real time.

[0073] The existing cloud service web service page or cloud client does not have bandwidth adjustment trigger conditions and bandwidth adjustment policy configuration options. The cloud service ECS (Elastic Compute Service) mainly includes the following functional components:

[0074] Instance: Equivalent to a virtual server, it contains basic components such as CPU, memory, operating system, network configuration, disk, etc. The computing performance, memory performance and applicable business scenarios of an instance are determined by the instance specifications. Its specific performance indicators include the number of vCPU cores, memory size, network performance, etc.

[0075] Image: Provides the instance's operating system, initialization application data, and pre-installed software. The operating system supports multiple Linux distributions and multiple Windows Server versions.

[0076] Block storage: Block device type products, with high performance and low latency. Provides cloud disks based on distributed storage architecture and local disks based on local storage of physical machines.

[0077] Snapshot: A data status file of a cloud disk at a certain point in time. Commonly used for data backup, data recovery, and making custom images.

[0078] Security group: It is composed of mutually trusted instances in the same region with the same protection requirements. It is a virtual firewall used to set network access control for instances.

[0079] Network: Virtual Private Cloud: A logically isolated private network on the cloud. You can allocate private IP address ranges, configure routing tables and gateways, etc. Classic network: All classic network type instances are built on a shared basic network. The cloud vendor plans and manages the network configuration in a unified manner.

[0080] In this example implementation, the developer tool of the cloud server ECS API is called, so that the web service page of the cloud service or the cloud client is configured with the input enable terminal of the configuration parameters and the corresponding configuration window. For example, a button for dynamically adjusting the bandwidth limit is added to the page for creating a public IP. Once the user enables this switch, several adjustment index input boxes are added to the page for the user to enter the configuration parameters.

[0081] In this example implementation, the user is interacted with by configuring the input enablement end and the corresponding configuration window of the configuration parameters on the web service page of the cloud service or the cloud client.

[0082] In step S220, the current public network bandwidth usage rate is determined based on the current instantaneous bandwidth and the original bandwidth upper limit. In this example implementation, the original bandwidth upper limit may be the bandwidth upper limit before adjustment, and the bandwidth upper limit before adjustment may be the default bandwidth upper limit or the bandwidth upper limit after the last adjustment. The current instantaneous bandwidth is obtained through real-time monitoring of cloud monitoring.

[0083] In this example implementation, reference Figure 3As shown, the current public network bandwidth usage rate can be determined through steps S310-S330.

[0084] In step S310, the original bandwidth upper limit is obtained. In this example implementation, after the user purchases the cloud resources, the cloud service can allocate corresponding bandwidth resources to the user. According to the user's payment form (annual or monthly package, by configuration, or by usage), each cloud resource has a corresponding bandwidth upper limit. The configured bandwidth upper limit can be used as the original bandwidth upper limit. The bandwidth upper limit set by the user when performing the initial bandwidth configuration for the cloud resources can also be used as the original bandwidth upper limit. The bandwidth upper limit reconfigured by the user during use can also be used as the original bandwidth upper limit. The original bandwidth upper limit of this example can be determined according to the usage of the cloud resources.

[0085] In step S320, the proportional relationship between the current instantaneous bandwidth and the upper limit of the original bandwidth is calculated. In this example implementation, the percentage of the current instantaneous bandwidth to the upper limit of the original bandwidth can be calculated. Alternatively, an error threshold can be set first, and then the sum of the current instantaneous bandwidth and the error threshold is calculated, and finally the percentage of the sum result to the upper limit of the original bandwidth is calculated. This example does not make any special restrictions on this.

[0086] In step S330, the current public network bandwidth usage is determined according to the proportional relationship. In this exemplary implementation, the proportional relationship can be directly used as the current public network bandwidth usage; or the proportional relationship can be corrected based on experience and the corrected result can be used as the current public network bandwidth usage.

[0087] In step S230, it is determined whether the bandwidth adjustment triggering condition is currently satisfied according to the current public network bandwidth usage rate. In this example implementation, the bandwidth adjustment triggering condition may include one or both of a bandwidth increase triggering condition and a bandwidth decrease triggering condition.

[0088] In this example implementation, the process of determining whether the bandwidth increase trigger condition is met may be: first, determining whether the current public network bandwidth usage rate exceeds the upper limit of the public network bandwidth usage rate; second, determining whether the duration of exceeding the upper limit of the public network bandwidth usage rate exceeds the first duration limit; finally, if the above conditions are met at the same time, determining that the bandwidth adjustment trigger condition is met. For example, if the upper limit of the public network bandwidth usage rate is 80%, the current public network bandwidth usage rate is 85%, and the duration of the state of the public network bandwidth usage rate exceeding 80% exceeds 3600s, it is determined that the bandwidth increase trigger condition is met, and the bandwidth increase mechanism is triggered.

[0089] In this example implementation, the process of determining whether the bandwidth reduction trigger condition is met may be: first, determining whether the current public network bandwidth usage rate is lower than the public network bandwidth usage rate lower limit; second, determining whether the duration of being lower than the public network bandwidth usage rate lower limit exceeds the second duration limit; finally, if the above conditions are met at the same time, determining that the bandwidth adjustment trigger condition is met. For example, if the public network bandwidth usage rate lower limit is 25%, the current public network bandwidth usage rate is 20%, and the duration of the public network bandwidth usage rate lower than 25% exceeds 3600s, it is determined that the bandwidth reduction trigger condition is met, and the bandwidth reduction mechanism is triggered.

[0090] In step S240, when it is determined that the bandwidth adjustment triggering condition is met, the bandwidth is adjusted accordingly according to the bandwidth adjustment policy.

[0091] In this example implementation, reference Figure 4 As shown, the bandwidth is adjusted according to the bandwidth adjustment strategy through steps S410-S420.

[0092] In step S410, determine the bandwidth adjustment method, which includes increase and reduction. In this example implementation, the bandwidth is adjusted by increase or reduction according to the type of bandwidth adjustment triggered. The bandwidth adjustment method can be a direct increase or reduction of a fixed value or a fixed ratio; it can also be a step-by-step increase or step-by-step decrease. For example, the bandwidth is adjusted to the target bandwidth in two or three times, and the bandwidth adjustment amounts of two adjacent times can be the same or different. In addition, the bandwidth can also be adjusted according to a set time, that is, the current bandwidth upper limit is adjusted to the target bandwidth within a specified time. This example implementation does not specifically limit the specific bandwidth adjustment method.

[0093] In step S420, the original bandwidth upper limit is increased or reduced according to the bandwidth adjustment base and the bandwidth adjustment method to obtain the adjusted bandwidth. In this example implementation, the bandwidth adjustment base can be flexibly set according to the business volume. For example, the bandwidth adjustment base can be set as a percentage of the bandwidth adjustment base. Preferably, the bandwidth adjustment base percentage can be set to 10%-30%. The bandwidth adjustment base can also be set to a fixed value or a numerical range. When the bandwidth adjustment base is a numerical range, a numerical value can be randomly selected within the numerical range as the bandwidth adjustment value, or the upper and lower limits of the numerical range can be related to each other to obtain the bandwidth adjustment value. For example, the average value of the upper and lower limits can be taken as the bandwidth adjustment value. The original bandwidth upper limit is adjusted accordingly according to the bandwidth adjustment method and base. The object of adjustment in the present disclosure is the current bandwidth upper limit.

[0094] For example, Figure 5As shown, it is assumed that the user has purchased a public network bandwidth IP of a company. Then, the upper limit of the public network bandwidth is customized and dynamically adjusted according to the following steps S510-S580. In step S510, the user enters the user configuration parameters through the front-end interactive device, for example, the web service page with interactive operation on the ECS management console of the cloud service enters the user configuration parameters. In step S520, the cloud background server obtains the user configuration parameters. In step S530, the cloud monitoring server obtains the current instantaneous bandwidth. In step S540, the cloud monitoring server sends the current instantaneous bandwidth. In step S550, the cloud background server obtains the original bandwidth upper limit. In step S560, the cloud background server calculates the current public network bandwidth usage rate; for example, the percentage of the current instantaneous bandwidth to the original bandwidth upper limit can be used as the current public network bandwidth usage rate. In step S570, the cloud background server determines whether the bandwidth adjustment trigger condition is currently met; for example, if the public network bandwidth usage rate exceeds the corresponding user configuration parameter and the duration exceeds the first duration limit, it is determined that the bandwidth adjustment trigger condition is currently met. Or if the public network bandwidth usage rate is lower than the corresponding user configuration parameter and the duration exceeds the second duration limit, it is determined that the bandwidth adjustment trigger condition is currently met. In step S580, the cloud backend server adjusts the bandwidth accordingly according to the bandwidth adjustment strategy. When the business volume changes suddenly, the user configuration parameters can be re-determined and input. Generally, multiple adjustments are not required.

[0095] The user of the present disclosure can configure parameters according to business needs, that is, input bandwidth adjustment trigger conditions and bandwidth adjustment strategies, and the monitoring system obtains the current instantaneous bandwidth; the cloud server determines the current public network bandwidth utilization rate based on the received current instantaneous bandwidth and the upper limit of the original bandwidth; then determines whether the received bandwidth adjustment trigger conditions are currently met based on the current public network bandwidth utilization rate; when it is determined that the bandwidth adjustment trigger conditions are met, the bandwidth is adjusted accordingly according to the received bandwidth adjustment strategy. On the one hand, when the business increases sharply, the efficiency and immediacy of bandwidth adjustment can be improved, and business losses such as loss of data due to bandwidth limitations can be avoided. On the other hand, when the business is less, the bandwidth can be reduced to avoid waste of resources and reduce user costs. In addition, human resources are saved and costs are further reduced.

[0096] The user configuration parameters disclosed in the present invention need to be set according to their own business conditions and business traffic bandwidth tolerance. After one adjustment of the present invention is completed, when the business volume continues to increase and reaches the bandwidth adjustment trigger condition again, the adjusted bandwidth upper limit can continue to be adjusted until the business volume matches the bandwidth upper limit. After each bandwidth adjustment, a period of silence (for example, 5s) can be set, and no bandwidth adjustment is performed during the silent period to reserve sufficient response time for the system.

[0097] Furthermore, in this exemplary embodiment, a bandwidth adjustment device 600 is also provided. The bandwidth adjustment device 600 can be applied to a cloud server. Figure 6 As shown, the bandwidth adjustment device 600 may include:

[0098] The acquisition module 610 may be used to acquire user configuration parameters and current instantaneous bandwidth, wherein the user configuration parameters include: bandwidth adjustment triggering conditions and bandwidth adjustment strategies;

[0099] The first determination module 620 may be configured to determine the current public network bandwidth usage rate according to the current instantaneous bandwidth and the original bandwidth upper limit;

[0100] The second determination module 630 may be configured to determine whether the bandwidth adjustment triggering condition is currently satisfied according to the current public network bandwidth usage rate;

[0101] The adjustment module 640 may be configured to adjust the bandwidth accordingly according to the bandwidth adjustment policy when the second determination module determines that the bandwidth adjustment triggering condition is met.

[0102] In an exemplary embodiment of the present disclosure, the first determining module 620 includes:

[0103] The bandwidth upper limit acquisition module can be used to obtain the original bandwidth upper limit;

[0104] The calculation module can be used to calculate the proportional relationship between the current instantaneous bandwidth and the original bandwidth upper limit;

[0105] The third determination module can be used to determine the current public network bandwidth usage rate according to the proportional relationship.

[0106] In an exemplary embodiment of the present disclosure, the second determination module 630 includes an upward adjustment condition determination module and a downward adjustment condition determination module; the upward adjustment condition determination module includes a first state determination module, a first time determination module, and a first trigger module; the downward adjustment condition determination module includes a second state determination module, a second time determination module, and a second trigger module; wherein:

[0107] The first state determination module can be used to determine whether the current public network bandwidth usage rate exceeds the public network bandwidth usage rate upper limit.

[0108] The first time determination module can be used to determine whether the duration of exceeding the upper limit of the public network bandwidth usage rate exceeds the first duration limit.

[0109] The first trigger module may be configured to determine that a bandwidth adjustment trigger condition is satisfied when the first state determination module and the first time determination module determine that the bandwidth adjustment trigger condition is satisfied.

[0110] The second state determination module can be used to determine whether the current public network bandwidth usage rate is lower than the public network bandwidth usage rate lower limit.

[0111] The second time determination module can be used to determine whether the duration below the lower limit of the public network bandwidth usage rate exceeds the second duration limit.

[0112] The second trigger module may be configured to determine that the bandwidth adjustment trigger condition is satisfied when the second state determination module and the second time determination module determine that the bandwidth adjustment trigger condition is satisfied.

[0113] In an exemplary embodiment of the present disclosure, the adjustment module 640 includes:

[0114] The fourth determination module may be used to determine a bandwidth adjustment method, where the bandwidth adjustment method includes increase and reduction.

[0115] The bandwidth adjustment module can be used to increase or decrease the original bandwidth upper limit according to the bandwidth adjustment base and the bandwidth adjustment mode to obtain the adjusted bandwidth.

[0116] The specific details of each module or unit in the above bandwidth adjustment device have been described in detail in the corresponding bandwidth adjustment method, so they will not be repeated here.

[0117] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being installed in the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiment. For example, the electronic device may implement the following method. Figure 2 to Figure 5 The various steps shown, etc.

[0118] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0119] Refer to the following Figure 7 The electronic device 700 according to this embodiment of the present disclosure is described in detail. The electronic device 700 shown in FIG7 is only an example and should not bring any limitation to the functions and scope of use of the embodiment of the present disclosure.

[0120] like Figure 7 As shown, the electronic device 700 is in the form of a general computing device. The components of the electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one storage unit 720, a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710), and a display unit 740.

[0121] The storage unit stores program codes, which can be executed by the processing unit 710, so that the processing unit 710 executes the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.

[0122] The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 7201 and / or a cache storage unit 7202 , and may further include a read-only storage unit (ROM) 7203 .

[0123] The storage unit 720 may also include a program / utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0124] Bus 730 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0125] The electronic device 700 may also communicate with one or more external devices 800 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 700, and / or may communicate with any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 750. Furthermore, the electronic device 700 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 760. As shown, the network adapter 760 communicates with other modules of the electronic device 700 via a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RA identification systems, tape drives, and data backup storage systems, etc.

[0126] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.

[0127] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0128] It should be noted that, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in the specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc., which shall all be considered as part of the present disclosure.

[0129] It should be understood that the disclosure disclosed and defined in this specification extends to all alternative combinations of two or more individual features mentioned or evident in the text and / or the accompanying drawings. All these different combinations constitute multiple alternative aspects of the disclosure. The embodiments of this specification illustrate the best mode known for implementing the disclosure and will enable those skilled in the art to utilize the disclosure.

Claims

1. A bandwidth adjustment method, It is characterized in that include: By configuring the input enablement terminal and the corresponding configuration window of the user configuration parameters on the web service page of the cloud service or the cloud client, interacting with the user, obtaining the user configuration parameters, and receiving the current instantaneous bandwidth obtained in real time by the cloud monitoring server, the user configuration parameters include the bandwidth adjustment triggering conditions and the bandwidth adjustment strategy; the bandwidth is the public network bandwidth corresponding to the public network IP resources in the virtual network resources of the cloud service; Determining the current public network bandwidth usage rate according to the current instantaneous bandwidth and the original bandwidth upper limit, including: obtaining the original bandwidth upper limit; calculating the proportional relationship between the current instantaneous bandwidth and the original bandwidth upper limit; and determining the current public network bandwidth usage rate according to the proportional relationship; Determining whether the bandwidth adjustment triggering condition is currently met according to the current public network bandwidth usage rate; When it is determined that the bandwidth adjustment triggering condition is met, the bandwidth is adjusted accordingly according to the bandwidth adjustment strategy; the bandwidth adjustment strategy includes a bandwidth adjustment method and a bandwidth adjustment base; The step of adjusting the bandwidth accordingly according to the bandwidth adjustment strategy includes: Determine a bandwidth adjustment method, wherein the bandwidth adjustment method includes directly increasing or decreasing a fixed value or a fixed ratio, step-by-step increase, or step-by-step decrease; According to the bandwidth adjustment base and the bandwidth adjustment mode, the original bandwidth upper limit is increased or reduced to obtain an adjusted bandwidth.

2. The bandwidth adjustment method according to claim 1, It is characterized in that The bandwidth adjustment triggering condition includes a bandwidth increase triggering condition and / or a bandwidth decrease triggering condition.

3. The bandwidth adjustment method according to claim 2, It is characterized in that The bandwidth increase triggering condition includes an upper limit of the public network bandwidth usage rate and a first duration limit; the bandwidth decrease triggering condition includes a lower limit of the public network bandwidth usage rate and a second duration limit.

4. The bandwidth adjustment method according to claim 1, It is characterized in that The obtaining of user configuration parameters comprises: Receive configuration parameters entered by the user on the cloud service web service page or cloud client.

5. The bandwidth adjustment method according to claim 3, It is characterized in that The determining, according to the current public network bandwidth usage rate, whether the bandwidth adjustment triggering condition is currently met includes: Determine whether the current public network bandwidth usage rate exceeds the public network bandwidth usage rate upper limit; Determine whether the duration of exceeding the upper limit of the public network bandwidth usage rate exceeds the first duration limit; If the above conditions are met at the same time, it is determined that the bandwidth adjustment triggering condition is met.

6. The bandwidth adjustment method according to claim 3, It is characterized in that The determining, according to the current public network bandwidth usage rate, whether the bandwidth adjustment triggering condition is currently met includes: Determine whether the current public network bandwidth usage rate is lower than the public network bandwidth usage rate lower limit; Determine whether the duration below the lower limit of the public network bandwidth usage rate exceeds the second duration limit; If the above conditions are met at the same time, it is determined that the bandwidth adjustment triggering condition is met.

7. A bandwidth adjustment device, It is characterized in that include: The acquisition module is used to interact with the user through the input enable terminal and the corresponding configuration window configured on the web service page of the cloud service or the cloud client to acquire the configuration parameters and receive the current instantaneous bandwidth acquired in real time by the cloud monitoring server, wherein the configuration parameters include the bandwidth adjustment triggering conditions and the bandwidth adjustment strategy; the bandwidth is the public network bandwidth corresponding to the public network IP resources in the virtual network resources of the cloud service; A first determination module, configured to determine a current public network bandwidth usage rate according to the current instantaneous bandwidth and an upper limit of the original bandwidth; A second determination module is used to determine whether the bandwidth adjustment trigger condition is currently met according to the current public network bandwidth usage rate; An adjustment module, configured to adjust the bandwidth accordingly according to a bandwidth adjustment strategy when the second determination module determines that the bandwidth adjustment triggering condition is met; the bandwidth adjustment strategy includes a bandwidth adjustment mode and a bandwidth adjustment base; The first determining module comprises: The bandwidth upper limit acquisition module is used to obtain the original bandwidth upper limit; A calculation module, used to calculate the proportional relationship between the current instantaneous bandwidth and the original bandwidth upper limit; A third determination module is used to determine the current public network bandwidth usage rate according to the proportional relationship; The adjustment module comprises: A fourth determination module is used to determine a bandwidth adjustment method, wherein the bandwidth adjustment method includes directly increasing or decreasing a fixed value or a fixed ratio, step-by-step increase or step-by-step decrease; The bandwidth adjustment module is used to increase or decrease the original bandwidth upper limit according to the bandwidth adjustment base and the bandwidth adjustment mode to obtain the adjusted bandwidth.

8. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

9. An electronic device, It is characterized in that include: one or more processors; A storage device, used to store one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the method according to any one of claims 1 to 6.