CN115811503A - Bandwidth adjustment method, device, equipment, storage medium and program product - Google Patents

Bandwidth adjustment method, device, equipment, storage medium and program product Download PDF

Info

Publication number
CN115811503A
CN115811503A CN202211441073.5A CN202211441073A CN115811503A CN 115811503 A CN115811503 A CN 115811503A CN 202211441073 A CN202211441073 A CN 202211441073A CN 115811503 A CN115811503 A CN 115811503A
Authority
CN
China
Prior art keywords
bandwidth
service
adjusted
user
user instance
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
CN202211441073.5A
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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202211441073.5A priority Critical patent/CN115811503A/en
Publication of CN115811503A publication Critical patent/CN115811503A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a bandwidth adjusting method, a device, equipment, a storage medium and a program product, and provides the bandwidth adjusting method aiming at a cloud service user comprising a plurality of businesses, and the bandwidth adjusting method comprises the following steps: when the bandwidth occupancy rate of a user instance reaches a first threshold value, determining services to be adjusted from a plurality of services corresponding to the user instance based on a flow log of the user instance; determining the current limiting bandwidth ratio of the service to be adjusted; and generating a current limiting configuration instruction of the user instance according to the current limiting bandwidth ratio so as to limit the bandwidth of the service to be adjusted. The method and the device realize the limitation of the bandwidth of the large-flow service when the bandwidth occupancy rate is higher, thereby balancing the bandwidth of the multiple services of the user and avoiding the higher delay of other services caused by the overhigh bandwidth occupancy rate of the large-flow service.

Description

Bandwidth adjustment method, device, equipment, storage medium and program product
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to a bandwidth adjustment method, apparatus, device, storage medium, and program product.
Background
With the rapid development of cloud services, more and more enterprises select cloud services to carry out business development.
When the enterprise uses the cloud service, the enterprise purchases a fixed bandwidth for network communication based on the self demand. For multi-service enterprises, when a large-traffic service is running, most of bandwidth is usually occupied or the bandwidth is directly occupied, so that other services are delayed greatly or cannot be performed normally.
Therefore, it is desirable to provide a bandwidth adjustment method to limit the bandwidth of large traffic.
Disclosure of Invention
The application provides a bandwidth adjusting method, a bandwidth adjusting device, bandwidth adjusting equipment, a storage medium and a program product, and the bandwidth limiting strategy of the service bandwidth is triggered timely and actively through monitoring of bandwidth occupancy rate, so that each service corresponding to an enterprise can run smoothly, and the overall response speed of the service is improved.
In a first aspect, the present application provides a bandwidth adjusting method, including:
when the bandwidth occupancy rate of a user instance reaches a first threshold value, determining services to be adjusted from a plurality of services corresponding to the user instance based on the flow logs of the user instance;
determining a bandwidth limiting parameter of the service to be adjusted;
and generating a current limiting configuration instruction of the user instance according to the bandwidth limiting parameter so as to limit the bandwidth of the service to be adjusted.
Optionally, when the bandwidth occupancy of the user instance reaches the first threshold, determining, based on the flow log of the user instance, a service to be adjusted from a plurality of services corresponding to the user instance, includes:
when the bandwidth occupancy rate of the user instance reaches a first threshold value, counting the use flow of each service corresponding to the user instance in a preset time period based on the session address of the data packet in the flow log;
and determining services to be adjusted from a plurality of services corresponding to the user examples based on the using flow of each service corresponding to the user examples.
Optionally, determining a service to be adjusted from a plurality of services corresponding to the user instance based on the usage traffic of each service corresponding to the user instance, includes:
based on the use flow of each service corresponding to the user instance, sequencing each service corresponding to the user instance;
and determining the service to be adjusted from a plurality of services corresponding to the user instances based on the sequencing result.
Optionally, determining the bandwidth limitation parameter of the service to be adjusted includes:
and determining the bandwidth limiting parameter of the service to be adjusted according to the bandwidth required by the real-time service corresponding to the user instance.
Optionally, the determining, according to the bandwidth required by the real-time service corresponding to the user instance, the ratio of the current-limiting bandwidth of the service to be adjusted includes:
and determining a bandwidth limiting parameter of each service to be adjusted according to the bandwidth required by the real-time service corresponding to the user instance and a first proportion, wherein the first proportion is a ratio of the traffic used by each service to be adjusted in a preset time period.
Optionally, the method further includes:
after the current limiting configuration instruction is issued, when the bandwidth occupancy rate of the user instance is reduced to a second threshold value, a wide stream configuration instruction of the user instance is generated, and the bandwidth limiting parameter of the service to be adjusted is adjusted upwards or cancelled.
In a second aspect, the present application provides another bandwidth adjustment method, including:
acquiring cross-domain bandwidth of a cross-domain enterprise instance, wherein the cross-domain bandwidth is network bandwidth distributed among different regions;
monitoring the bandwidth occupancy rate of the cross-domain enterprise instance according to the cross-domain bandwidth;
collecting a flow log of the cross-domain enterprise instance;
when the bandwidth occupancy rate reaches a first threshold value, determining a service to be adjusted from a plurality of services corresponding to the cross-domain enterprise instance based on the flow log;
determining a bandwidth limiting parameter of the service to be adjusted;
and generating a current limiting configuration instruction of the cross-domain enterprise instance according to the bandwidth limiting parameter so as to limit the bandwidth of the service to be adjusted.
In a third aspect, the present application provides a bandwidth adjusting apparatus, including:
the system comprises a to-be-adjusted service determining module, a to-be-adjusted service determining module and a to-be-adjusted service determining module, wherein the to-be-adjusted service determining module is used for determining a to-be-adjusted service from a plurality of services corresponding to a user instance based on a flow log of the user instance when the bandwidth occupancy rate of the user instance reaches a first threshold;
a parameter determining module, configured to determine a bandwidth limitation parameter of the service to be adjusted;
and the current limiting configuration instruction generating module is used for generating a current limiting configuration instruction of the user instance according to the bandwidth limiting parameter so as to limit the bandwidth of the service to be adjusted.
Optionally, the to-be-adjusted service determining module includes:
the using flow counting unit is used for counting the using flow of each service corresponding to the user example in a preset time period based on the session address of the data packet in the flow log when the bandwidth occupancy rate of the user example reaches a first threshold value;
and the service to be adjusted determining unit is used for determining the service to be adjusted from a plurality of services corresponding to the user example based on the using flow of each service corresponding to the user example.
Optionally, the to-be-adjusted service determining unit is specifically configured to:
based on the use flow of each service corresponding to the user instance, sequencing each service corresponding to the user instance;
and determining the service to be adjusted from a plurality of services corresponding to the user instances based on the sequencing result.
Optionally, the parameter determining module is specifically configured to:
and determining the bandwidth limiting parameter of the service to be adjusted according to the bandwidth required by the real-time service corresponding to the user instance.
Optionally, the number of the services to be adjusted is multiple, the bandwidth limiting parameter is a current limiting bandwidth ratio, and the parameter determining module is specifically configured to:
and determining a bandwidth limiting parameter of each service to be adjusted according to the bandwidth required by the real-time service corresponding to the user instance and a first proportion, wherein the first proportion is a ratio of the traffic used by each service to be adjusted in a preset time period.
Optionally, the apparatus further comprises:
and the wide flow module is used for generating a wide flow configuration instruction of the user example to adjust the bandwidth limitation parameter of the service to be adjusted upwards or cancel the bandwidth limitation parameter of the service to be adjusted when the bandwidth occupancy rate of the user example is reduced to a second threshold value after the current limiting configuration instruction is issued.
In a fourth aspect, the present application provides a bandwidth adjusting apparatus, comprising:
a processor, and a memory communicatively coupled to the processor; the memory stores computer-executable instructions; the processor executes computer-executable instructions stored by the memory to implement the method provided by the first aspect or the second aspect of the present application.
In a fifth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for implementing the method provided in the first or second aspect of the present application when executed by a processor.
In a sixth aspect, the present application provides a computer program product comprising a computer program that, when executed by a processor, implements the method provided in the first or second aspect of the present application.
According to the bandwidth adjusting method, device, equipment, storage medium and program product provided by the application, for a multi-service cloud service user, when it is detected that the bandwidth occupancy rate of a user instance is high, if a first threshold value is reached, one or more services to be adjusted, which occupy a higher bandwidth, are determined from a plurality of services corresponding to the user instance based on a flow log of the user instance, and a current-limiting bandwidth ratio is set for the services to be adjusted, so that the bandwidth of the services to be adjusted is limited by the current-limiting bandwidth ratio, and therefore, the response speed of other services of the user is too slow or even can not be performed normally due to the fact that the services to be adjusted occupy too high bandwidth. The balance of the multi-service bandwidth is realized by the limitation of the service bandwidth to be adjusted, and the overall response speed of the multi-service is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a bandwidth adjustment method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another bandwidth adjustment method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a bandwidth adjustment system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a cloud service platform according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another bandwidth adjustment method provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a bandwidth adjusting apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a bandwidth adjustment device according to an embodiment of the present application.
Specific embodiments of the present application have been shown by way of example in the drawings and will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
First, the title to which the present application relates is explained:
example (Instance): refers to a series of processes in an operating system and the memory blocks allocated for those processes. The example is a channel for accessing the database, and the operations of the user on the data in the database, including data query, data maintenance and the like, are all performed through the database example.
Fig. 1 is a schematic view of an application scenario provided by an embodiment of the present application, as shown in fig. 1, in order to meet the requirement of deployment in a production neighborhood and for system disaster tolerance, a large-scale enterprise system is usually deployed in multiple areas, for example, an area 1 to an area N in fig. 1, where N is any positive integer greater than 1, and N is taken as an example in fig. 1, where a system deployed in the area 1 is a headquarter. Data interaction is carried out between the area 1 (headquarters) and other areas through corresponding cross-area private lines, namely the cross-domain private line 1 to the cross-domain private line 3, and a cloud network of an enterprise, namely a cloud enterprise network, is formed through the forwarding router, the cross-domain private line and the local data center.
In some embodiments, except for the area corresponding to the headquarters, other areas may also perform data interaction through corresponding cross-domain dedicated lines, and may be configured based on specific needs of the enterprise, for example, data interaction may be performed between the area 2 and the area 3 through the cross-domain dedicated line 4.
For cost, the bandwidth of each cross-domain private line purchased by the enterprise has an upper bandwidth limit, such as 10M, 20M, 100M, and the like. There may be multiple services in different areas, different services have different requirements for bandwidth and network delay, and the traffic flow has peaks and troughs. Aiming at a plurality of cross-domain services (services between different areas) corresponding to the enterprise, when the bandwidth occupancy rate corresponding to the cross-domain dedicated line is too high, one or more services to be adjusted needing bandwidth limitation are determined through analysis of a flow log, so that the limitation of the bandwidth of the services to be adjusted is performed based on the determined current limiting bandwidth ratio, and the condition that the services to be adjusted occupy too high bandwidth and cause too high delay of other services on the cross-domain dedicated line is avoided.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a bandwidth adjustment method provided in an embodiment of the present application, where the bandwidth adjustment method may be executed by an electronic device with corresponding data processing capability, such as a bandwidth adjustment device or a system, and the electronic device may be any device in a cloud service platform, and may be in the form of a server, a computer, or the like.
As shown in fig. 2, the bandwidth adjusting method includes the following steps:
step S201, when the bandwidth occupancy rate of the user instance reaches a first threshold, determining services to be adjusted from a plurality of services corresponding to the user instance based on the flow log of the user instance.
The bandwidth occupancy rate is the ratio of the bandwidth currently used by the service in the user instance to the total bandwidth corresponding to the user instance. The user instance is an instance created by the cloud service platform for a user, and the user can be a large enterprise such as a cross-domain enterprise, a cross-border enterprise and the like, such as a logistics company, a large game company and the like.
The first threshold may be 70%, 80%, or other values, and may be configured by a user in a customized manner, or determined based on service attributes of multiple services corresponding to the user instance, where the service attributes may include requirements of the services on network latency, bandwidth, and other performance, service types, and the like.
The user instance may be a cross-domain instance, i.e., an instance running in a different service region, such as between the Shenzhen region and the hong Kong region, and may also be a cross-border instance, such as an instance between the Beijing region and the European region.
The bandwidth occupancy rate of the user instance can be monitored in real time, and when the bandwidth occupancy rate is greater than or equal to the first threshold, the flow logs of the user instance, such as the flow logs of the last period of time, such as the last 6 hours, the last day, the last three days, etc., are obtained. And determining at least one service to be adjusted from a plurality of services corresponding to the user instances based on the acquired flow logs.
The flow log is used for describing data packets flowing in the network acquired or captured in a time window, and includes the number of the data packets, the size of the data packets, and information such as a source IP address, a destination IP address, a source port, a destination port, a communication protocol and the like of a session corresponding to the data packets.
Wherein, the time window can be 10min, 5min, 2min or other values.
The flow log of the user instance may be recorded by a flow log server. The bandwidth adjusting device or system acquires the flow logs of the user instances from the flow log server, and determines one or more services to be adjusted through flow log analysis.
The flow log server can collect the flow logs in the forwarding router through the network corresponding to the user instance.
In some embodiments, the traffic to be adjusted is traffic occupying a bandwidth greater than a preset bandwidth, or the bandwidth occupancy is greater than a first ratio. The first ratio is the ratio of the preset bandwidth to the total bandwidth corresponding to the user instance. The bandwidth occupancy rate of the service is the ratio of the bandwidth used by the service to the total bandwidth of the corresponding user instance.
For example, the preset bandwidth may be a fixed value, such as 10M, 8M, or other values.
Specifically, the first ratio or the preset bandwidth may be determined according to the number of services corresponding to the user instance, and the first ratio or the preset bandwidth may also be determined according to parameters such as an average value and a maximum value of historical bandwidth used by the service to be adjusted.
For example, the preset bandwidth may be a ratio of a total bandwidth corresponding to the user instance to the number of services. The preset bandwidth may be the sum of the maximum value of the historical use bandwidth of the service to be adjusted and the preset bandwidth. The preset bandwidth may be 1M, 3M, or other values.
Step S202, determining the bandwidth limiting parameter of the service to be adjusted.
The bandwidth limiting parameter may be an upper limit bandwidth or a current limiting bandwidth ratio. The ratio of the limited bandwidth is the ratio of the upper limit bandwidth to the total bandwidth corresponding to the user instance.
The bandwidth limitation parameter of the service to be adjusted may be determined based on configuration information of the user instance.
The configuration information of the user instance may include bandwidth limitation parameters, such as a current limitation bandwidth ratio, corresponding to each service to be adjusted.
The user can configure the corresponding user instance at the user terminal by accessing the instance configuration page, including inputting the configuration information.
In some embodiments, the bandwidth limiting parameter may be determined according to a bandwidth usage condition of the service to be adjusted, for example, the bandwidth limiting parameter is determined as a preset proportion of an average value of the used bandwidths in the first time period, where the preset proportion is less than 1, and may be 80%, 75%, or another proportion. The first time period may be the last 30min, the last 15min, or other time.
Step S203, generating a current limiting configuration instruction of the user instance according to the bandwidth limiting parameter, so as to limit the bandwidth of the service to be adjusted.
After the bandwidth limiting parameters of the services to be adjusted are determined, based on the bandwidth limiting parameters, a current limiting configuration instruction of a user instance is generated, so that the bandwidth of the corresponding services to be adjusted is limited based on the bandwidth limiting parameters.
After generating the current-limiting configuration instruction of the user instance, the bandwidth adjusting device or system may issue the current-limiting configuration instruction to the user instance, and the user instance performs bandwidth limitation on the service to be adjusted according to the current-limiting configuration instruction, so as to prevent the bandwidth used by the service to be adjusted from exceeding the corresponding bandwidth upper limit or prevent the bandwidth occupancy rate of the service to be adjusted from exceeding the corresponding current-limiting bandwidth ratio.
According to the bandwidth adjusting method, for a multi-service cloud service user, when it is detected that the bandwidth occupancy rate of a user instance is high, if a first threshold is reached, one or more services to be adjusted, which occupy high bandwidth, are determined from a plurality of services corresponding to the user instance based on a flow log of the user instance, and a current-limiting bandwidth ratio is set for the services to be adjusted, so that the bandwidth of the services to be adjusted is limited through the current-limiting bandwidth ratio, and therefore the situation that the services to be adjusted occupy too high bandwidth and cause that the response speed of other services of the user is too slow or even cannot be performed normally is avoided. The balance of the multi-service bandwidth is realized by the limitation of the service bandwidth to be adjusted, and the overall response speed of the multi-service is improved.
Fig. 3 is a schematic flow chart of another bandwidth adjustment method provided in an embodiment of the present application, where in this embodiment, on the basis of the embodiment shown in fig. 2, steps S201 and S202 are further refined, and a related step of relaxing bandwidth limitation or canceling bandwidth limitation is added after step S203. As shown in fig. 3, the bandwidth adjusting method provided in this embodiment may include the following steps:
step S301, when the bandwidth occupancy rate of the user instance reaches a first threshold, counting the usage flow of each service corresponding to the user instance in a preset time period based on the session address of the data packet in the stream log.
Each service corresponds to a session or a session address, the session (session) address of a data packet can be determined according to the source IP address and the destination IP address corresponding to each data packet in the flow log, and the source IP address and the destination IP address corresponding to two data packets belonging to the same session or having the same session address are the same or opposite.
The bandwidth adjustment device may obtain the flow log of the user instance from the flow log stored by the flow log server.
Illustratively, the source IP address and the destination IP address of the data packet 1 are address 1 and address 2, the source IP address and the destination IP address of the data packet 2 are address 2 and address 1, and the source IP address and the destination IP address of the data packet 3 are address 1 and address 2, so that the session addresses of the data packet 1, the data packet 2 and the data packet 2 are the same and belong to the same session.
Obtaining a data packet corresponding to each session based on a session address corresponding to each data packet in a time window recorded in the stream log, and counting the usage flow of a service corresponding to the session in a preset time period based on the size of the data packet of each data packet corresponding to the session, wherein the preset time period can be an integral multiple of the time window.
Step S302, based on the usage flow of each service corresponding to the user instance, determining a service to be adjusted from a plurality of services corresponding to the user instance.
The service to be adjusted may be a service to be adjusted with a higher traffic usage than a preset traffic, and the preset traffic may be configured by a user or adopt a default value.
The service to be adjusted can also be determined from a plurality of services corresponding to the user instance based on the comparison result of the parameters such as the average value and the maximum value of the usage flow and the historical usage flow. The service to be adjusted may be a service in which the ratio of the average value or the maximum value of the used traffic to the historical used traffic is greater than a preset ratio, and the preset ratio may be 1.5, 2 or other values.
Optionally, determining a service to be adjusted from a plurality of services corresponding to the user instance based on the usage traffic of each service corresponding to the user instance, includes:
based on the use flow of each service corresponding to the user instance, sequencing each service corresponding to the user instance; and determining the service to be adjusted from a plurality of services corresponding to the user instances based on the sequencing result.
Specifically, the services corresponding to the user instances may be sorted according to the usage traffic from high to low or from low to high.
The service to be adjusted may be the first M services using a larger amount of traffic, and M may be 3, 5, 10, 20 or other values, and may be configured by a user or adopt a default value.
The services corresponding to the user instances can be sequenced from high to low according to the use flow, and the service with the use flow exceeding the preset flow in the first M services of the sequencing result is determined as the service to be adjusted.
In some embodiments, in order to improve the efficiency of bandwidth adjustment, the bandwidth adjustment device may obtain, according to a set period, a flow log of a user instance stored in the flow log server, and aggregate data in the flow log in advance according to a session address to obtain indexes such as a data packet corresponding to each session or service, usage traffic within a corresponding time window, and the like, and may also perform processing such as sorting on each service according to the usage traffic within a preset time period. Therefore, when the bandwidth occupancy rate of the user instance is detected to reach the first threshold value, the use flow of each service corresponding to the user instance is directly obtained, or the sequencing result of the use flow of each service corresponding to the user instance is directly obtained.
The service to be adjusted is a service except the real-time service in the service corresponding to the user instance, namely a non-real-time service. Compared with non-real-time services, real-time services have higher requirements on network delay, services to be adjusted are generally large-flow services, such as offline data synchronization services and settlement services, and real-time services are services requiring real-time response, such as order issuing services, live broadcast services and voice call services.
Step S303, determining a bandwidth limitation parameter of the service to be adjusted according to the bandwidth required by the real-time service corresponding to the user instance.
The sum of the bandwidths required by each real-time service in the user instance can be counted and recorded as the bandwidth of the real-time service, and then the bandwidth limitation parameter of the service to be adjusted can be determined according to the difference value of the total bandwidth corresponding to the user instance minus the bandwidth of the real-time service.
The upper limit bandwidth of each service to be adjusted may be determined as a ratio of a first bandwidth to the number of the services to be adjusted, where the first bandwidth may be a difference obtained by subtracting a real-time service bandwidth from a total bandwidth corresponding to the user instance, or may be a difference obtained by subtracting a sum of the real-time service bandwidth and a bandwidth redundancy amount from the total bandwidth corresponding to the user instance, and the bandwidth redundancy amount may be 2M, 3M, 5M, or another smaller value.
Illustratively, taking the total bandwidth corresponding to the user instance as 100M, the user instance corresponding to 2 real-time services, which respectively require 8M and 12M bandwidths, that is, the real-time service bandwidth is 20M, if the number of the services to be adjusted is 4, the upper limit bandwidth of the services to be adjusted is 20M, and the ratio of the current-limiting bandwidth is 20%.
The upper limit bandwidth or the current-limiting bandwidth ratio of the service to be adjusted (non-real-time service) is determined by combining the bandwidth required by the real-time service, so that more bandwidth is reserved for the real-time service after a corresponding bandwidth adjustment strategy is implemented, the network delay of the real-time service is reduced, and the response speed of the real-time service is improved.
Different services to be adjusted have different requirements on bandwidth, and in order to improve the accuracy of determining the bandwidth limitation parameter, the bandwidth limitation parameter of the service to be adjusted can be determined according to the service type, the historical bandwidth, the service level and other parameters of the service to be adjusted and the bandwidth required by the real-time service corresponding to the user instance.
Specifically, the weight coefficient of the service to be adjusted may be determined according to parameters such as the service type, the historical bandwidth, and the service level of the service to be adjusted, and the bandwidth limitation parameter of each service to be adjusted may be determined based on the first bandwidth and the weight coefficient of each service to be adjusted. The higher the service level, the higher the weight coefficient of the service to be adjusted. The service type may include a real-time type and a non-real-time type, and the service to be adjusted may be the service type which is the non-real-time type. The service types may further include a first type and a second type, wherein the first type of service may be determined as a service to be adjusted, and the second type of service is not allowed to be determined as a service to be adjusted, such as a service that is more critical or core for a user.
The ratio of the determined bandwidth limitation parameters should be consistent with the ratio of the weight coefficients of the service to be adjusted.
Optionally, the determining, according to the bandwidth required by the real-time service corresponding to the user instance, the ratio of the current-limiting bandwidth of the service to be adjusted includes:
and determining a bandwidth limiting parameter of each service to be adjusted according to the bandwidth required by the real-time service corresponding to the user instance and a first proportion, wherein the first proportion is a ratio of the traffic used by each service to be adjusted in a preset time period.
In some embodiments, the ratio of the bandwidth limiting parameters of each traffic to be adjusted is equal to or approximately equal to the first ratio.
Illustratively, taking 3 services to be adjusted as an example, where the first ratio is 1.
By combining the ratio of the latest service flow of the service to be adjusted, the bandwidth limiting parameter is established for the service to be adjusted in a differentiation mode, and the accuracy of determining the bandwidth limiting parameter is improved.
Step S304, generating a current limiting configuration instruction of the user instance according to the bandwidth limiting parameter, so as to limit the bandwidth of the service to be adjusted.
Step S305, issuing the current limit configuration instruction to the user instance.
The bandwidth adjusting device or system sends the current limiting configuration command to the user instance through an API (Application Programming Interface), where the Application becomes an Interface. And the user instance limits the bandwidth of each service to be adjusted based on the bandwidth limiting parameter of each service to be adjusted in the current limiting configuration instruction so as to prevent the bandwidth used by the service to be adjusted from exceeding the corresponding upper limit bandwidth.
Fig. 4 is a schematic structural diagram of a bandwidth adjustment system according to an embodiment of the present application, and as shown in fig. 4, the bandwidth adjustment system includes a configuration management server, a data storage module, a traffic analysis module, a log collection module, a rule engine, an API interface, and a task scheduling module, and may further include an early warning receiving module.
The configuration management server is responsible for providing a configuration management interface for a user or operation and maintenance personnel to configure the access user instance and the forwarding router instance, and the configuration of the bandwidth limiting parameters, the bandwidth required by the real-time service, the stream log generation rule and the like.
The log collection module is in butt joint with the stream log server to collect the original data of the stream log.
The flow analysis module is used for analyzing link flow of the collected original data of the flow log, ranking the link flow according to time and storing the ranking result into the data storage module. One service corresponds to one link, and the link flow is the use flow of the corresponding service.
And the data storage module is responsible for storing various configuration, sequencing results, link flow, scheduling history and other information. The scheduling history is a history of scheduling operations performed by the task scheduling module.
The rule engine is used for implementing various rules set by the configuration management service module and making corresponding decisions based on the rules, such as generating current-limiting configuration instructions based on the method.
And the API interface is used for issuing corresponding configuration to the user instance according to the judgment result of the rule engine, so that the acquisition of the flow logs, the issuing of the current-limiting configuration instruction and the like are realized.
And the task scheduling module is responsible for internal scheduling coordination, including acquisition of stream logs, triggering of rule engine calculation and the like.
The early warning receiving module is used for receiving the bandwidth occupancy rate of the user instance, carrying out early warning when the bandwidth occupancy rate is higher than a first threshold value, triggering task scheduling through the task scheduling module so as to adjust the bandwidth based on the rule engine, and sending the generated current-limiting configuration instruction to the user instance through the API.
Step S306, when the bandwidth occupancy of the user instance decreases to a second threshold, generating a wide flow configuration instruction of the user instance, to adjust the bandwidth limitation parameter of the service to be adjusted upward or cancel the bandwidth limitation parameter of the service to be adjusted.
The second threshold is smaller than the first threshold, and the second threshold may be 40%, 30%, 20%, or other values, and may be configured by a user or adopt default values.
In order to improve the bandwidth utilization rate of the user instance, when the bandwidth occupancy rate of the user instance is low, such as a valley period of the real-time service usage width, the width limiting parameter originally set for the service to be adjusted can be cancelled or relaxed, so that the service to be adjusted can occupy more bandwidth, and the bandwidth utilization rate of the user instance is improved.
The up-regulation value of the bandwidth limitation parameter can be a fixed value, and can also be determined according to the bandwidth occupancy rate and one or more of the parameters of the quantity of the service to be regulated, the historical use bandwidth, the service type, the service grade and the like.
When one user corresponds to a plurality of user instances, the bandwidth adjusting method provided by the above embodiment may be adopted to adjust for each user instance.
If a user instance corresponds to 3 or more than 3 regions, the bandwidth adjustment method provided in the above embodiment may be used to perform bandwidth adjustment by using the portion of the user instance between each two removed regions as an object, and the bandwidth occupancy of the user instance may be replaced by the bandwidth occupancy of the user instance between two corresponding regions, a service corresponding to the user instance, or may be replaced by a service of the user instance between two corresponding regions, and the bandwidth adjustment method between each two regions of the user instance corresponding to 3 or more than 3 regions may be obtained by performing adaptive adjustment by using the relevant parameters between the two regions as an object, which is not described herein again.
Fig. 5 is a schematic structural diagram of a cloud service platform according to an embodiment of the present application, and as shown in fig. 5, the cloud service platform includes a bandwidth adjustment system, a user instance, a streaming log server, and an operation and maintenance configuration device. The operation and maintenance configuration equipment is used for configuring parameters such as the first threshold, the second threshold, the bandwidth limiting parameter and the like, configuring a forwarding router fluid daily record rule, and configuring a policy or rule for bandwidth adjustment. The user instance can be realized through distributed service nodes provided by the cloud service platform. And the user instance periodically samples the flow logs in the forwarding router and stores the sampled flow logs in the log server. And the bandwidth adjusting system monitors the bandwidth utilization rate of the user instance by calling the API and acquires the stream log stored in the stream log server. The bandwidth adjusting system periodically inquires and analyzes the flow logs of the user instances, sequences the large-flow network links in the flow logs and stores the sequencing results, when the bandwidth utilization rate of the user instances exceeds a first threshold value, early warning is carried out, network link analysis is triggered, and therefore a quintuple and a current-limiting bandwidth ratio of a current-limiting link (a large-flow link or a service to be adjusted) are determined based on the link analysis results of the flow logs corresponding to the user instances, wherein the quintuple comprises a source IP address, a source port, a destination IP address, a destination port and a transport layer protocol. Meanwhile, the bandwidth adjusting system is also used for widening or canceling the current-limiting bandwidth ratio of the large-flow link to increase the bandwidth utilization rate after the bandwidth occupancy rate of the user instance is reduced to a second threshold value.
In this embodiment, when the bandwidth occupancy rate of the user instance is too high, for example, exceeds the first threshold, it is determined through stream log analysis that one or more services with higher traffic are to be adjusted, and bandwidth limitation is performed on the to-be-adjusted services based on the bandwidth requirement of the real-time services, so as to avoid that the network delay of the real-time services is too high and the performance of the real-time services is affected due to too much bandwidth occupied by the to-be-adjusted services with large traffic. Meanwhile, after the bandwidth of the service to be adjusted is adjusted, the bandwidth occupancy rate of the user instance is continuously monitored, and when the bandwidth occupancy rate is lower and is lower than a second threshold value, the original bandwidth limitation of the service to be adjusted is relaxed, so that the bandwidth occupancy rate of the user instance is increased.
Fig. 6 is a flowchart of another bandwidth adjustment method provided in this embodiment of the present application, where, for a case that a user is a cross-domain enterprise, a user instance is correspondingly called a cross-domain enterprise instance, and a bandwidth corresponding to the user instance is called a cross-domain bandwidth, as shown in fig. 6, for the cross-domain enterprise, the bandwidth adjustment method provided in this embodiment may include the following steps:
step S601, acquiring cross-domain bandwidth of the cross-domain enterprise instance.
Wherein the cross-domain bandwidth is a network bandwidth allocated among different regions. The cross-domain bandwidth can be configured by the cross-domain enterprise based on its own needs.
The cross-domain enterprise may correspond to at least 2 regions, and taking 3 regions, for example, region A1 to region A3, the cross-domain bandwidth between region A1 and region A2 may be 50M, the cross-domain bandwidth between region A1 and region A3 may be 80M, and the cross-domain bandwidth between region A3A and region A2 may be 20M.
And step S602, monitoring the bandwidth occupancy rate of the cross-domain enterprise instance according to the cross-domain bandwidth.
If the cross-domain enterprise corresponds to 3 or more than 3 regions, then for every two regions, monitoring the bandwidth occupancy rate of the cross-domain enterprise instance between the two regions, namely the ratio of the currently used bandwidth to the corresponding cross-domain bandwidth.
Step S603, collecting the flow log of the cross-domain enterprise instance.
Step S603 may be performed at any timing before step S604. If the execution can be performed in parallel with step S601 or step S602, the present application limits the timing for executing step S603, and fig. 6 exemplifies that step S603 is performed in parallel with step S601 and step S602.
In some embodiments, flow logs for cross-domain enterprise instances may be collected periodically.
Step S604, when the bandwidth occupancy reaches a first threshold, determining a service to be adjusted from a plurality of services corresponding to the cross-domain enterprise instance based on the flow log.
Step S605, determining the bandwidth limitation parameter of the service to be adjusted.
Step S606, according to the bandwidth limiting parameter, generating a current limiting configuration instruction of the cross-domain enterprise instance to limit the bandwidth of the service to be adjusted.
The relevant steps of the bandwidth adjustment method provided in this embodiment may be performed by referring to the relevant steps provided in the foregoing embodiment, and only the user instance is changed into the cross-domain enterprise instance, which is not described herein again.
Fig. 7 is a schematic structural diagram of a bandwidth adjusting apparatus according to an embodiment of the present application, and as shown in fig. 7, the bandwidth adjusting apparatus includes: a to-be-adjusted traffic determining module 710, a parameter determining module 720, and a current limit configuration instruction generating module 730.
The to-be-adjusted service determining module 710 is configured to determine, when the bandwidth occupancy of the user instance reaches a first threshold, a to-be-adjusted service from multiple services corresponding to the user instance based on the flow log of the user instance; a parameter determining module 720, configured to determine a bandwidth limiting parameter of the service to be adjusted; a current limiting configuration instruction generating module 730, configured to generate a current limiting configuration instruction of the user instance according to the bandwidth limiting parameter, so as to limit the bandwidth of the service to be adjusted.
Optionally, the to-be-adjusted service determining module 710 includes:
the using flow counting unit is used for counting the using flow of each service corresponding to the user example in a preset time period based on the session address of the data packet in the flow log when the bandwidth occupancy rate of the user example reaches a first threshold value;
and the service to be adjusted determining unit is used for determining the service to be adjusted from a plurality of services corresponding to the user example based on the using flow of each service corresponding to the user example.
Optionally, the to-be-adjusted service determining unit is specifically configured to:
based on the use flow of each service corresponding to the user instance, sequencing each service corresponding to the user instance;
and determining the service to be adjusted from a plurality of services corresponding to the user instances based on the sequencing result.
Optionally, the parameter determining module 720 is specifically configured to:
and determining the bandwidth limiting parameter of the service to be adjusted according to the bandwidth required by the real-time service corresponding to the user instance.
Optionally, the number of the services to be adjusted is multiple, the bandwidth limiting parameter is a current limiting bandwidth ratio, and the parameter determining module 720 is specifically configured to:
and determining a bandwidth limiting parameter of each service to be adjusted according to the bandwidth required by the real-time service corresponding to the user instance and a first proportion, wherein the first proportion is a ratio of the traffic used by each service to be adjusted in a preset time period.
Optionally, the apparatus further comprises:
and the wide flow module is used for generating a wide flow configuration instruction of the user example to adjust the bandwidth limitation parameter of the service to be adjusted upwards or cancel the bandwidth limitation parameter of the service to be adjusted when the bandwidth occupancy rate of the user example is reduced to a second threshold value after the current limiting configuration instruction is issued.
The bandwidth adjusting apparatus provided in the embodiment of the present application may be configured to implement the technical solution of the bandwidth adjusting method provided in any of the above embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a schematic structural diagram of a bandwidth adjusting device according to an embodiment of the present application, and as shown in fig. 8, a bandwidth adjusting device 800 according to the embodiment includes:
at least one processor 810; and a memory 820 communicatively coupled to the at least one processor; wherein the memory 820 stores computer executable instructions; the at least one processor 810 executes the memory-stored computer-executable instructions to cause the bandwidth adjustment apparatus 800 to perform a method as provided by any of the preceding embodiments.
Optionally, the memory 820 may be separate or integrated with the processor 810.
The implementation principle and technical effect of the bandwidth adjusting device provided in this embodiment may be referred to in the foregoing embodiments, and are not described herein again.
The embodiment of the present application further provides a cloud service platform, which includes a stream log server, and is configured to provide a distributed cloud server cluster of user instances and a bandwidth adjustment device 800.
The embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the method provided by any one of the foregoing embodiments may be implemented.
The embodiments of the present application further provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the method provided in any of the foregoing embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute some steps of the methods described in the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in the incorporated application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The memory may comprise a high speed memory, and may further comprise a non-volatile memory, such as at least one magnetic disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, and the like.
The storage medium may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as static random access memory, electrically erasable programmable read-only memory, magnetic memory, flash memory, magnetic or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit. Of course, the processor and the storage medium may reside as discrete components in an electronic device or bandwidth adjustment device.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods provided in the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (11)

1. A bandwidth adjustment method, comprising:
when the bandwidth occupancy rate of a user instance reaches a first threshold value, determining services to be adjusted from a plurality of services corresponding to the user instance based on a flow log of the user instance;
determining a bandwidth limiting parameter of the service to be adjusted;
and generating a current limiting configuration instruction of the user instance according to the bandwidth limiting parameter so as to limit the bandwidth of the service to be adjusted.
2. The method of claim 1, wherein when the bandwidth occupancy of the user instance reaches a first threshold, determining a service to be adjusted from a plurality of services corresponding to the user instance based on the flow log of the user instance comprises:
when the bandwidth occupancy rate of the user instance reaches a first threshold value, counting the use flow of each service corresponding to the user instance in a preset time period based on the session address of the data packet in the flow log;
and determining services to be adjusted from a plurality of services corresponding to the user examples based on the using flow of each service corresponding to the user examples.
3. The method according to claim 2, wherein determining the service to be adjusted from the plurality of services corresponding to the user instance based on the usage traffic of each service corresponding to the user instance comprises:
based on the use flow of each service corresponding to the user instance, sequencing each service corresponding to the user instance;
and determining the service to be adjusted from a plurality of services corresponding to the user instances based on the sequencing result.
4. The method of claim 1, wherein determining the bandwidth limitation parameter of the traffic to be adjusted comprises:
and determining the bandwidth limiting parameter of the service to be adjusted according to the bandwidth required by the real-time service corresponding to the user instance.
5. The method according to claim 4, wherein the number of the services to be adjusted is plural, the bandwidth limiting parameter is a ratio of current limiting bandwidths, and determining the ratio of the current limiting bandwidths of the services to be adjusted according to the bandwidth required by the real-time service corresponding to the user instance comprises:
and determining a bandwidth limiting parameter of each service to be adjusted according to the bandwidth required by the real-time service corresponding to the user instance and a first proportion, wherein the first proportion is a ratio of the traffic used by each service to be adjusted in a preset time period.
6. The method according to any one of claims 1-5, further comprising:
after the current limiting configuration instruction is issued, when the bandwidth occupancy rate of the user instance is reduced to a second threshold value, a wide stream configuration instruction of the user instance is generated, and the bandwidth limiting parameter of the service to be adjusted is adjusted upwards or cancelled.
7. A method of bandwidth adjustment, the method comprising:
acquiring cross-domain bandwidth of a cross-domain enterprise instance, wherein the cross-domain bandwidth is network bandwidth distributed among different regions;
monitoring the bandwidth occupancy rate of the cross-domain enterprise instance according to the cross-domain bandwidth;
collecting a flow log of the cross-domain enterprise instance;
when the bandwidth occupancy rate reaches a first threshold value, determining a service to be adjusted from a plurality of services corresponding to the cross-domain enterprise instance based on the flow log;
determining a bandwidth limiting parameter of the service to be adjusted;
and generating a current limiting configuration instruction of the cross-domain enterprise instance according to the bandwidth limiting parameter so as to limit the bandwidth of the service to be adjusted.
8. A bandwidth adjustment apparatus, comprising:
the system comprises a to-be-adjusted service determining module, a to-be-adjusted service determining module and a to-be-adjusted service determining module, wherein the to-be-adjusted service determining module is used for determining a to-be-adjusted service from a plurality of services corresponding to a user instance based on a flow log of the user instance when the bandwidth occupancy rate of the user instance reaches a first threshold;
a parameter determining module, configured to determine a bandwidth limitation parameter of the service to be adjusted;
and the current limiting configuration instruction generating module is used for generating a current limiting configuration instruction of the user instance according to the bandwidth limiting parameter so as to limit the bandwidth of the service to be adjusted.
9. A bandwidth adjustment apparatus, comprising:
a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any of claims 1-7.
10. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, perform the method of any one of claims 1-7.
11. A computer program product, characterized in that it comprises a computer program which, when being executed by a processor, carries out the method of any one of claims 1-7.
CN202211441073.5A 2022-11-17 2022-11-17 Bandwidth adjustment method, device, equipment, storage medium and program product Pending CN115811503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211441073.5A CN115811503A (en) 2022-11-17 2022-11-17 Bandwidth adjustment method, device, equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211441073.5A CN115811503A (en) 2022-11-17 2022-11-17 Bandwidth adjustment method, device, equipment, storage medium and program product

Publications (1)

Publication Number Publication Date
CN115811503A true CN115811503A (en) 2023-03-17

Family

ID=85483346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211441073.5A Pending CN115811503A (en) 2022-11-17 2022-11-17 Bandwidth adjustment method, device, equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN115811503A (en)

Similar Documents

Publication Publication Date Title
US9955023B2 (en) System and method for real-time analysis of network traffic
CN108028780B (en) Method and apparatus for data analysis management
EP3072260B1 (en) Methods, systems, and computer readable media for a network function virtualization information concentrator
CN110401657B (en) Processing method and device for access log
CN107070890A (en) Flow data processing device and communication network major clique system in a kind of communication network major clique system
US11467922B2 (en) Intelligent snapshot generation and recovery in a distributed system
CN100459589C (en) A method to monitor flow and flow monitoring equipment
JP6145067B2 (en) Communication traffic prediction apparatus, method and program
CN109327401B (en) Flow scheduling method and system of SDN (software defined network)
US20160150093A1 (en) System and method for reclaiming obligated network resources
CN107395409A (en) A kind of Electricity Information Network with communication quality monitoring
CN113259355A (en) Industrial Internet identification slice management system based on SDN
CN113347111A (en) Flow adjusting method and management system based on user experience
CN108322354B (en) Method and device for identifying running-stealing flow account
CN112887224B (en) Traffic scheduling processing method and device, electronic equipment and storage medium
CN115811503A (en) Bandwidth adjustment method, device, equipment, storage medium and program product
CN114143263B (en) Method, equipment and medium for limiting current of user request
WO2022001480A1 (en) Popular application identification method, network system, network device and storage medium
CN112769888B (en) Credit investigation data acquisition system and automatic routing method thereof
CN113923096B (en) Network element fault early warning method and device, electronic equipment and storage medium
CN114466069A (en) Data acquisition system
CN100473238C (en) Method for counting base station performance data
CN103260193A (en) Device and method for strategy control
CN111327688B (en) Resource scheduling method, server and readable storage medium
KR101988991B1 (en) Data using control method and data using control system

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